slammed.st
EN
Get startedStart
Explainer / DDoS protection

Layer 4 vs Layer 7: where availability problems happen

Separate transport-level symptoms from application behavior so protection and monitoring address the right problem.

Slammed.st2 min read

Two different views of a service

Layer 4 refers to the transport layer, where protocols such as TCP and UDP operate. Layer 7 refers to application behavior, such as HTTP requests handled by a website or API. These labels are useful for locating a problem, but they are not a complete diagnosis.

A user experiences one journey across both layers. A failure to establish a connection and a slow response after a successful connection need different investigation paths.

Match monitoring to the symptom

For connection problems, inspect reachability, connection errors and relevant network or device counters. For an HTTP service that accepts traffic but responds poorly, inspect status codes, endpoint latency and application dependencies.

Keep timestamps aligned across the edge and origin. A normal origin chart may simply mean that traffic is being rejected or delayed earlier in the path.

Choose controls at the affected boundary

Confirm whether a provider covers the transport protocols you use and whether a web protection policy applies to each relevant hostname. Do not assume that protecting HTTP automatically covers every public service on the same server.

Within the application, review the cost of accepted work and the behavior when dependencies become slow. Protection at one boundary does not remove the need for predictable resource use elsewhere.

Make test reports specific

Describe the protocol, workload and observed behavior rather than calling a run only an L4 or L7 test. State whether the edge, origin or complete user journey was measured. Record exclusions so another team does not interpret a narrow test as an assessment of the whole service.

Sources & further reading

Related articles

← All articles

Have a question? Let's talk it through.

Need help choosing a plan or setting up your workspace?
Get in touch with our support team.

Your next step, with a little help.