Week 18 · lesson

Packets and Protocols: Move Data Without Sending One Giant Block

Networks do not usually move an entire application message as one undivided object.

Data is broken into smaller units, carried across network devices, and interpreted by the receiving system according to protocols.

This is packet switching.

Why packets?

Breaking communication into smaller pieces allows networks to:

  • share links among many conversations
  • route traffic through multiple devices
  • retransmit missing data when a protocol supports it
  • carry messages larger than one local frame

The exact units and behavior depend on the protocol layer.

Protocols are shared rules

In the TCP/IP family:

  • IP provides network-layer addressing and routing
  • TCP provides connection-oriented transport
  • UDP provides connectionless transport
  • application protocols define the meaning of data above transport

The point is not to memorize a stack diagram. It is to understand that each layer solves a different communication problem.

Encapsulation model

Use this simplified path:

application data -> transport segment/datagram -> IP packet -> local frame -> network

At the receiver, the system interprets the layers in reverse.

Concept flow

One application message crosses several protocol layers

Each layer adds the information needed for its responsibility. Packet analysis makes those layers visible instead of treating the network as one black box.

  1. APPLICATION DATAthe message the application wants to exchange
    wrapped by
  2. TCP SEGMENTports, sequence state, reliable connection behavior
    inside
  3. IP PACKETsource and destination IP addresses across networks
    inside
  4. ETHERNET FRAMElocal source and destination MAC addresses
    travels over
  5. NETWORK PATHswitches and routers move the data toward the destination

Use the flow as a reading order when you inspect a packet.

Ports identify transport endpoints

TCP and UDP use port numbers to help deliver data to an application/service endpoint on a host.

A port is not a physical hole in a computer.

A conversation can be described with:

source IP
source port
destination IP
destination port
transport protocol

Together, those values help distinguish conversations.

Read a real packet from the GSC synthetic capture

Return to:

gsc-week17-baseline.pcapng

The TCP connection in that file uses:

Client IP:        192.0.2.25
Client port:      51515
Server IP:        192.0.2.10
Server port:      80
Transport:        TCP

Those fields support the existence of a TCP conversation between the supplied endpoints.

They do not prove:

  • malicious behavior
  • which human initiated it
  • whether a routed Internet path was used
  • whether all application data should be trusted

Packet-switching simulation

Your teacher provides message cards representing:

ROBOTNIX NETWORK LAB

The message is divided into numbered chunks.

Then introduce one condition:

  • one chunk arrives late
  • one path becomes unavailable
  • chunks arrive out of order

Discuss which protocol responsibilities would be needed to detect, reorder, retry, or recover.

Do not overstate the simulation. Real network stacks are more complex.

Explore a routed network model

Use the Robotnix topology simulator:

Network simulator

Packet evidence narrows the fault

Use topology plus packet-style observations to distinguish addressing, route, and service failures.

1. predict2. run3. inspect4. compare

What do you expect to keep working, and where do you think the path will stop?

Read the topology as text
  • Client: 192.168.10.25
  • Switch: local Layer-2 path
  • Router: default gateway
  • Server: 203.0.113.10
  • Web service :443: application listener
  1. ClientSwitch: frame
  2. SwitchRouter: gateway
  3. RouterServer: routed packet
  4. ServerWeb service :443: TCP :443

Start with the healthy path, then compare bounded failure scenarios.

This model separates:

  • client
  • local switching
  • router
  • destination host
  • application service

Evidence boundary

The topology simulator is a model. It helps you reason about a routed path and possible failure locations.

The Week 17 .pcapng is packet evidence from a separate local synthetic conversation.

Do not write:

"The packet capture proves the packet crossed the simulated router."

It does not.

A stronger statement is:

"The capture proves the local packet fields I observed. The topology model shows how a routed scenario would be structured."

Build a layered packet card

Choose one TCP or HTTP packet from the GSC capture.

Record:

  • link-layer source/destination
  • IP source/destination
  • transport protocol
  • source/destination ports
  • packet length
  • application-layer label if Wireshark identifies one

Then explain what each layer contributes.

Evidence for Lesson 1

Submit:

  • encapsulation diagram
  • packet-switching simulation notes
  • network-simulator diagnosis notes
  • layered packet card
  • one paragraph distinguishing packet evidence from topology-model reasoning

Finish with:

Protocols make packet switching useful because they define ________.

The network becomes less mysterious when you separate the data, transport conversation, routed packet, and local delivery frame.

decision flow

Hardening Review and Secure Design: Defensive Evidence Flow

  1. Authorize

    Confirm the classroom boundary and permitted evidence.

  2. Observe

    Inspect a provided artifact or isolated system state.

  3. Assess

    Connect evidence to risk, limitation, and control.

  4. Defend

    Document a safeguard and how it would be safely verified.

Read this concept flow as plain text
  1. Authorize. Confirm the classroom boundary and permitted evidence.
  2. Observe. Inspect a provided artifact or isolated system state.
  3. Assess. Connect evidence to risk, limitation, and control.
  4. Defend. Document a safeguard and how it would be safely verified.