Networking handbook · Chapter 1

Networking fundamentals

A workstation sends a document to an application on another network. The application, the host, the switch and the router each make a different decision. Following one message through them explains why a working Ethernet link alone cannot establish application connectivity.

In this guide14 sections

Introduction

A workstation sends a document to an application on another network. The application, the host, the switch and the router each make a different decision. Following one message through them explains why a working Ethernet link alone cannot establish application connectivity.

Formula and calculation

Link serialization time
serialization time = frame bits / link rate in bits per second

This is the time needed to place the modeled bits on a link. Propagation, processing, queueing, and the return path add delay to a complete exchange.

frame bits · bits
number of bits transmitted on the link
link rate · bits/second
transmission rate

Follow the units of delivery

An application produces bytes. TCP presents an ordered byte stream and segments it for delivery. UDP carries individual datagrams. IP carries a transport segment or datagram across networks. For each Ethernet hop, a frame carries the IP packet to the next interface.

These units have different boundaries. A TCP application write can span several segments, and several writes can travel in one segment. The receiver reconstructs the stream. Software that needs message boundaries must supply them in its application protocol.

Separate the next hop from the destination

A host consults its routing information to choose an outgoing interface and next hop. For an IPv4 destination on a directly attached Ethernet subnet, the next hop is usually the destination. For a remote destination, it is normally a router. ARP supplies the Ethernet address for that local IPv4 next hop.

A switch forwards the frame within its link-layer domain. A router removes the incoming link header, examines the IP destination, reduces the packet's lifetime and builds the outgoing link header. A routed path can therefore use different link technologies along its length.

Read rate and delay separately

Serialization time is the time a link takes to put all the bits of a unit on the wire. Divide bits by bits per second. Propagation adds a distance-dependent delay. Processing and queues add further delay that can vary from packet to packet.

A high line rate shortens serialization. It cannot remove propagation time or a long queue. A round trip also includes the return path, which may use different links. Transfer time estimates need both a size and an assumption about sustained throughput.

Diagram

  1. Workstation · 192.0.2.21
  2. LAN switch · forwards frame
  3. Router · selects next hop
  4. Service · 198.51.100.8
On the workstation's Ethernet link, the router receives the frame. The remote service remains the IP destination throughout this ordinary routed example.

Worked examples

Trace a request to a remote service

  1. Give the workstation 192.0.2.21/24 and gateway 192.0.2.1. The service 198.51.100.8 lies outside 192.0.2.0/24.
  2. The default route selects 192.0.2.1. The workstation resolves the gateway's local Ethernet address, then addresses the frame to the gateway while leaving 198.51.100.8 in the packet's destination field.
  3. At a rate of 100,000,000 bit/s, serializing 1,500 bytes alone takes 1,500 × 8 ÷ 100,000,000 seconds, or 120 microseconds. A complete exchange also accounts for link overhead, intervening hops and the reply.

MAC Address Format Converter: Move an address from a switch table into an inventory

  1. Start with 0200.005e.1001. Joining the three groups gives the twelve digits 0200005e1001.
  2. Split those digits into octets: 02, 00, 00, 5e, 10 and 01. The colon form is 02:00:00:5e:10:01.
  3. Inspect the first octet, 02 = 00000010. Its least significant bit is zero (individual address). The next bit is one (locally administered).

Reference table

Networking fundamentals reference
Delivery questionRelevant fieldExample
Which peer receives this Ethernet frame?Destination MACGateway's local interface
Which address receives the IP packet?Destination IP198.51.100.8
Which TCP service receives the bytes?Destination port443

Configuration example

  • Workstation interface = 192.0.2.21/24
  • Connected route = 192.0.2.0/24 on workstation LAN
  • Default IPv4 route = 0.0.0.0/0 via 192.0.2.1

Common mistakes

  • Looking for a remote server's MAC address in the workstation's local neighbor table.
  • Using the advertised line rate as an application throughput guarantee.

Frequently asked questions

Can two devices communicate through a switch without a router?

Yes. Two correctly configured devices on the same Ethernet domain can deliver local IP traffic directly. A router is needed to forward between IP networks.

Why does a successful address lookup leave other checks to make?

DNS supplies a candidate address. Packet forwarding, transport establishment and the application exchange are subsequent steps, each with its own configuration.

Does a switch choose the route to a remote IP address?

An ordinary Layer 2 switch forwards frames within a link-layer domain using destination MAC information. A router selects a next hop for traffic crossing IP networks.

Does the destination MAC stay the same across the whole path?

Usually it changes at each routed Ethernet hop. The IP destination can remain the remote service while each local frame names the next hop on that link.

Why can a fast link still feel slow?

Line rate affects serialization, but propagation distance, queueing, processing, retransmissions, and the remote service also contribute to elapsed time.

Does a successful ping prove an application works?

No. It tests a particular ICMP exchange. DNS resolution, transport connection setup, firewall policy, TLS, and application behavior still need their own checks.

What is encapsulation?

Each protocol adds information needed for its part of delivery. Application bytes can be carried by a transport unit, inside an IP packet, inside a link frame, and ultimately as signals on a medium.

Does a router preserve the incoming Ethernet frame?

A router normally removes the incoming link-layer header, forwards the network-layer packet, then creates a new link-layer frame for the next link.

Why can packet loss reduce TCP throughput?

TCP interprets loss as a signal to recover data and adjust congestion behavior. Retransmissions consume capacity and a reduced sending window can slow later data.

Can DNS be working while a web connection fails?

Yes. DNS can return an address while routing, firewall policy, transport setup, TLS validation, or the web application fails later in the request path.

Why can a frame be discarded even when its destination IP is correct?

The local frame can contain an unknown or incorrect destination MAC, fail its frame check, belong to the wrong VLAN, or arrive on a link with a policy or physical fault. IP addressing is only one part of delivery.

What is a network MTU?

It is the maximum network-layer packet size a link is configured to carry without link-independent fragmentation. The link framing around that packet adds its own bytes.

Does DNS usually use TCP or UDP?

Traditional DNS queries commonly use UDP, while TCP is also used, including for some large or truncated replies and zone transfers. DNS over TLS and DNS over HTTPS use different transport arrangements.

Can one application exchange use several network paths?

Yes. DNS can return several addresses, routing can change, and modern transports can use multiple paths. A successful test on one address or route does not prove every path works.

What is the difference between capacity and throughput?

Capacity describes a link's potential rate under specified conditions. Throughput is the rate actually achieved for traffic across a path, after contention, protocol overhead, and other limits.

Further learning and references