L4 vs L7 Dstat: what is the difference?

The layer identifies what a monitor measures. A Layer 4 Dstat observes transport traffic such as TCP and UDP; a Layer 7 Dstat observes application activity such as HTTP requests. JustStats lets you switch between L4 and L7 nodes from the dashboard menu.

Layer 3: IP traffic

L3 covers IP addressing, packet delivery and routing. Bandwidth, packet counts and loss can be relevant at this level. A chart’s label does not guarantee which packets or protocol headers its collector includes.

Layer 4: TCP and UDP

L4 concerns transport protocols and connections. JustStats L4 charts show incoming bandwidth and packets per second (PPS). A rise in PPS can occur without the same proportional increase in Gbps, because packet sizes vary.

Layer 7: HTTP and HTTPS

L7 concerns application requests. JustStats HTTP charts show requests per second (RPS). The number of requests differs from the number of connections: a connection can carry several requests, and request handling costs can vary.

Which chart should you choose?

Choose L4 to follow network throughput and packet rate. Choose L7 to follow HTTP request activity. During an authorized test of your own service, check both when both measurement sources are available. Neither chart replaces latency, error and availability checks.

Where protection changes the numbers

A CDN, WAF or reverse proxy can reject traffic before it reaches the origin. An edge monitor and an origin monitor may therefore report different rates. Check the measurement point before comparing two graphs.

Continue with bandwidth, PPS and RPS and CDN versus origin measurements.

Dstat news