Week 07 · lesson

A Packet Has Context at More Than One Layer

When an application sends data, several systems have to agree about where that data belongs.

A useful beginner model is:

APPLICATION DATA

TRANSPORT ENDPOINTS

IP SOURCE / DESTINATION

LOCAL-LINK DELIVERY

PHYSICAL / VIRTUAL PATH

Each layer answers a different question.

Application data is not an IP packet

Suppose a fictional status client sends:

GET /status

That text does not contain enough information to cross a network by itself.

The operating system and protocol stack add context such as:

  • transport protocol;
  • source and destination ports;
  • source and destination IP addresses; and
  • local-link information needed for the next hop.

The exact headers depend on the protocol and path. The important point is that one message is carried inside other protocol structures.

This wrapping idea is often called encapsulation.

Different addresses answer different questions

Consider a fictional host:

host: RNX-CLIENT-01
IPv4: 192.0.2.10/24
default gateway: 192.0.2.1

and a fictional server:

host: RNX-SERVER-01
IPv4: 198.51.100.20/24

These documentation-only networks are reserved for examples. They are not targets to contact.

The client sees that 198.51.100.20 is not on its local /24 network. It therefore needs a route that points toward another system — usually a gateway.

The final destination IP remains 198.51.100.20, while the first local-link delivery is toward the next hop.

That distinction matters:

FINAL DESTINATION
198.51.100.20

FIRST NEXT HOP
192.0.2.1

They are not the same concept.

Prefixes define local network membership

For 192.0.2.10/24, the /24 means the first 24 bits identify the network portion.

In this simplified example, addresses from 192.0.2.0 through 192.0.2.255 are in the same IPv4 prefix.

So:

192.0.2.10 → local prefix
192.0.2.200 → local prefix
198.51.100.20 → different prefix

A host does not decide “near” and “far” from physical distance. It decides from configured addressing and routes.

Source fields are evidence, not identity proof

A packet summary might show:

src=192.0.2.10
dst=198.51.100.20
protocol=TCP

That supports a narrow statement about the packet representation you observed.

It does not automatically prove:

  • which human generated it;
  • that the source host was uncompromised;
  • that the source field was impossible to forge in every context;
  • what application intent existed; or
  • that the traffic completed successfully.

Network evidence needs the same claim discipline as every other system artifact.

A packet capture is one observation point

Where you capture traffic changes what you can observe.

A capture on the client may see packets before a router changes link-layer context.

A capture on another segment may see a different local-link header.

A server log may show an application request but not the complete route that delivered it.

So always ask:

Where was this evidence collected?

Without an observation point, packet evidence is easy to overinterpret.

Supplied packet summary

Use this fictional capture summary:

frame=41
capture_point=RNX-CLIENT-01/eth0
src_ip=192.0.2.10
dst_ip=198.51.100.20
transport=tcp
src_port=53144
dst_port=8080
flags=SYN

What can you support?

A strong interpretation:

At the client-side capture point, frame 41 shows a TCP SYN represented with source IPv4 address 192.0.2.10 and destination 198.51.100.20, targeting destination port 8080.

What can you not yet support?

You cannot claim the connection succeeded. A SYN is an attempt to begin a TCP connection, not evidence that the handshake completed.

Optional local observation

If you have an authorized Linux VM, you may inspect your own interface configuration with:

ip addr

Do not copy public addresses into a target list. The task is only to identify:

  • one interface;
  • one assigned address/prefix;
  • whether it is loopback, virtual, or another local interface; and
  • what the output actually proves.

A supplied transcript is always an acceptable alternative.

Build the first part of your Network Path Evidence Record

Record:

Observation point:
Source IP:
Destination IP:
Transport protocol:
Source port:
Destination port:
Observed flags/state:
Strongest supported claim:
One unsupported claim to avoid:

Lesson 2 adds the route decision that explains where the client tries to send the packet next.

process flow

Host State to End-to-End Network Claim

  1. Address

    Identify the local interface, address, prefix, and destination.

  2. Route

    Determine the most-specific route and next hop selected for the destination.

  3. Link

    Check whether the expected next hop can be reached in the supplied model.

  4. Transport

    Inspect whether transport establishment appears at the observation point.

  5. Application

    Check the required application response rather than stopping at lower-layer success.

  6. Correct One Variable

    Repair the narrow failed condition in the fictional or isolated model.

  7. Retest Chain

    Verify lower-layer recovery and the original required function.

  8. Bound Claim

    State what the observation point proves and what remains outside view.

Read this concept flow as plain text
  1. Address. Identify the local interface, address, prefix, and destination.
  2. Route. Determine the most-specific route and next hop selected for the destination.
  3. Link. Check whether the expected next hop can be reached in the supplied model.
  4. Transport. Inspect whether transport establishment appears at the observation point.
  5. Application. Check the required application response rather than stopping at lower-layer success.
  6. Correct One Variable. Repair the narrow failed condition in the fictional or isolated model.
  7. Retest Chain. Verify lower-layer recovery and the original required function.
  8. Bound Claim. State what the observation point proves and what remains outside view.