Books indexNetwork Foundations: from mental models to data measurement

Lesson

Lesson 5: Endpoint and intermediary devices

Lesson 5 of 24 · Module 2: Data representation and performance

Learning goal

After this lesson, you can identify endpoints and intermediary devices and explain when an exchange stays local or requires routing.

Why this concept matters

Separating endpoints from intermediaries shows where data is created and forwarded. It also distinguishes a frame on one link from an IP packet crossing networks.

Compare a local path with a routed path

  1. For a printer in the same subnet, the computer sends a local frame through the switch or bridge toward the access point.
  2. The access point connects the wired and wireless sides; the frame reaches the printer.
  3. For a remote service, the host addresses the local frame to the default gateway’s link-layer address.
  4. The router extracts the IP packet, chooses an egress interface, then creates a new frame for the next link.
  5. A firewall may enforce policy, but its mere presence does not prove complete protection.

Data units and the path

A frame is a link-layer data unit in a technology such as Ethernet. An IP packet is an Internet Protocol data unit carrying IP addresses across networks. A subnet is a logical division of an IP address range that helps a host decide what is local and what requires a router.

Intermediary roles

  • A switch forwards frames in a local link environment.
  • A router forwards IP packets between networks under a routing table and policy.
  • An access point attaches wireless clients to the local distribution system.
  • A firewall applies traffic rules; its presence does not prove that all traffic is safe or that policy is correct.
Local printing path

A wired computer reaches a wireless printer through a switch or bridge and an access point.

Local printing pathA wired computer reaches a wireless printer through a switch or bridge and an access point.Local frameLocal frameLocal frameWired computersending endpointSwitch or bridgelocal intermediaryAccess pointwireless attachmentWireless printerreceiving endpointLocal printing pathA wired computer reaches a wireless printer through a switch or bridge and an access point.Wired computersending endpointSwitch or bridgelocal intermediaryAccess pointwireless attachmentWireless printerreceiving endpoint
Source or destinationDirection or relationTeaching simplification
Correct sequence: computer → switch/bridge → access point → printer.

Printing path and Internet path

The intended printing path is wired computer, then switch or bridge, then access point, then wireless printer. If both endpoints share a subnet and no VLAN or isolation policy blocks them, their exchange need not traverse a router.

For an external network the computer uses its default gateway: the address of the router interface on the local network, not a separate appliance. The diagram combines router and gateway because the address belongs to that interface.

Local and routed paths

Local traffic remains on the link; external traffic uses the router interface address as its default gateway.

Local and routed pathsLocal traffic remains on the link; external traffic uses the router interface address as its default gateway.Local frameLocal frameIP packetLocal subnetframes via switchLocal endpointdestination on-linkRouterits interfaceis gatewayAnother networkrouted IP packetsLocal and routed pathsLocal traffic remains on the link; external traffic uses the router interface address as its default gateway.Local subnetframes via switchLocal endpointdestination on-linkRouterits interface is gatewayAnother networkrouted IP packets
Source or destinationDirection or relationTeaching simplification
A default gateway is a router-interface address, not a separate device.

Common misconception

Intermediaries answer different forwarding questions
DeviceFunctional questionData unitExample decisionRole boundary
SwitchWhich local port gets this frame?Link-layer frameSelect a LAN portDoes not normally choose an inter-network IP route
RouterWhich network or next hop gets this packet?IP packetSelect an egress interfaceDoes not make the application trustworthy
Access pointHow do wireless stations join the LAN?Wireless and local framesAssociate a Wi‑Fi clientIt is not the Internet
FirewallDoes policy allow this traffic?Flows or packetsAllow or block by ruleCannot stop every threat merely by existing

Diagnostic exercise

Takeaway and the next lesson

Frames move on links; routers choose paths for IP packets and create a new frame for each next link. Lesson 6 shifts from devices to application roles.

Quick review

  1. How does a frame differ from an IP packet?
  2. When can printing stay on the local path?
  3. Why is the default gateway not drawn as a separate device?
Show the explained answers
  1. A frame is a link-layer unit for a local link; an IP packet carries logical addresses and can cross networks.
  2. When the computer and printer share the local network and can resolve and exchange locally without using a gateway.
  3. The default gateway is the address of a router interface on the host’s network, not a separate third device.

References and evidence limits