← TCP/IP: fundamentals and diagnosis
06 / 12 · 40 MIN

Diagnosis in the application context

Choose comparable observations and validate the result after change.

Concept and mechanism

Start by identifying source, destination, ports, protocol, interface, namespace, and time window. A host test does not necessarily represent an application in a network namespace with its own sockets and routes. ss helps observe sockets, but a missing listener in the wrong context does not prove global absence. ip route get resolves local selection for supplied parameters; it is not proof of remote connectivity or a business result.

Keep local lookup, transport testing, and application testing separate. If IPv6 works and IPv4 does not, establish binding and effective IPV6_V6ONLY; the socket option can differ from the global default. Do not conclude that listening on :: guarantees every address family.

Guided application

To locate resets or lost traffic, correlate the same connection tuple and clocks across authorized observation points. A record from one endpoint can show the symptom without establishing origin. Bound collection, time, and required data while preserving relevant information and respecting permissions.

In the initial 2026-09-30 review, described captures and outputs were illustrative, without network execution. The additional 2026-10-02 lessons include actual loopback sockets without packet capture. After a correction, establish handshake, business operation, expected data, and stability from the affected source.

Retain evidence for investigation and regressions. If you lack namespace or device access, ask the responsible team for a specified collection instead of substituting a different test.

IN PRACTICE

The host reaches the API but the container does not: compare actual context before declaring networking validated.

Common pitfalls

Different test as equivalent; local route as connectivity; reset as proven origin; handshake as complete recovery.

Related topics: Addresses, prefixes, and scope · Routes and next-hop resolution · Transport, acknowledgement, and messages

Take this idea with you

Reproduce affected-flow conditions and confirm the end-to-end result.

Create account

References