Latency Monitor: lightweight tool for TCP and UDP monitoring
TL;DR
latency-monitor measures real application-like latency over TCP and UDP Supports one-way delay (OWD), not just RTT Works over established TCP connections Designed for high-frequency, continuous probing Requires time-synchronised endpoints (NTP/PTP) I needed a way to monitor the behaviour of connections between various endpoints over TCP and UDP. “Just run a ping” rarely works because in real networks, it rarely measures what actually matters.
Most of the applications are either using TCP or UDP, whereas “ping” most often means ICMP which is neither of those. So ping won’t help you debug anything in reality. Or, at least, not much. To have a solid understanding of what’s happening you need data, a lot of data. Depending on the nature of your environment, you may need very granular data points to capture short-timed events or micro-bursts. You can only capture these if you’re monitoring continuously. Many applications are designed to establish a TCP connection, maintain that state and exchange data. If you don’t reproduce that in your monitoring, you won’t be able to appropriately evaluate the network state for its actual production scenarios. In other words, you need a tool that monitors your network over an established TCP connection, as opposed to a tool that creates a separate TCP connection for every probe. The return path may not always be the same (i.e., from A to B your packets may take one route, but from B back to A, it may take a different route). This is where unidirectional per-segment monitoring makes a huge difference. Size matters. At least when it comes to payload. A connection between point A and B may behave differently depending on the packet size. Particularly for UDP. I’m going to refer back to these points throughout this article. With these in mind, I needed a tool that satisfied the following requirements:
Mircea Ulinic