Textbook language

Frames, packets, protocols, and exchange session

Data does not travel across the network as a continuous undivided stream — it is sliced into portions with address and verification fields. Look at how a frame is structured on the wire and where acknowledgments or retries appear. Standard Ethernet discards a frame with an erroneous FCS.

Packet, frame, and MTU

IP packet — a portion of data with an IP header. When transmitted over Ethernet, it is placed into the payload of the frame. A typical IP MTU on Ethernet is 1500 bytes including the IP header. Stream fragmentation allows different transmissions to share the channel.

The educational diagram below collects fields found in various transmission formats. A specific protocol defines its own structure:

  1. Preamble (receiver synchronization by bits);
  2. Destination address (individual, group, or broadcast);
  3. Source address (to know who to reply to);
  4. Service information (type, number, length, protocol inside);
  5. Data field (Payload) — the only variable-length field;
  6. Checksum (FCS/CRC) — integrity check;
  7. End marker (depends on technology and physical layer, Ethernet interframe gap separates adjacent transmissions).

Ethernet II frame format on the wire

At the physical layer, before the frame, the following are transmitted: 7 bytes of preamble Wi-Fi 6 1 byte of SFD (start frame delimiter). Next comes the frame itself with a length of 64–1518 bytes (or up to 1522 bytes with an 802.1Q VLAN tag):

Dst MAC (6 B) | Src MAC (6 B) | EtherType (2 B) | Data + Padding (46–1500 B) | FCS (4 B)
  • EtherType indicates the encapsulated protocol: 0x0800 — IPv4, 0x0806 — ARP, 0x86DD — IPv6, 0x8100 — 802.1Q VLAN.
  • If the data is less than 46 bytes (e.g., a small ARP or empty TCP ACK), padding is added (Padding) up to the minimum size of 64 bytes — this is necessary for reliable collision detection in classic Ethernet.
  • FCS uses the CRC-32 polynomial: it detects errors, but does not correct them — a corrupted frame is silently discarded.
In a Wireshark dump: the preamble, SFD, and often the FCS are not displayed — the network adapter processes and strips them at the hardware level before passing them to the OS.

Exchange session, protocol, stack, and network services

Network protocol — an agreed-upon set of rules, message formats, timing characteristics, and error-handling algorithms for exchange between peer layers. Protocol stack — a hierarchical complex of agreed-upon protocols.

Protocols can be with acknowledgment (receipt is acknowledged, and unacknowledged data can be retransmitted) and without acknowledgment (faster, but losses are allowed). The combination of client-server network services (file SMB/NFS/FTP, printing, DNS, mail, monitoring, and security) creates for the user transparent access to remote resources.

Key course protocols and their ports

ProtocolLayer / TransportPortPurpose
HTTP / HTTPS / HTTP/3Application (TCP / UDP)80 / 443Web pages and APIs (HTTPS — TLS over TCP 443; HTTP/3 — QUIC over UDP 443)
DNSApplication (UDP/TCP)53Converting domain names to IP addresses and back
DHCPApplication (UDP)67 / 68Automatic assignment of IP, mask, gateway, and DNS
FTP / TFTPApplication (TCP / UDP)20, 21 / 69File transfer (TFTP — simplified without authentication)
SSH / TelnetApplication (TCP)22 / 23Remote console (SSH encrypts traffic, Telnet — plain text)
SMTP / POP3 / IMAPApplication (TCP)25 (465, 587) / 110 (995) / 143 (993)Mail: sending (SMTP/Submission) and receiving (POP3/IMAP; secure TLS ports in parentheses)
NTP / RDPApplication (UDP / TCP+UDP)123 / 3389Time synchronization (NTP) and Windows Remote Desktop (RDP)
SNMPApplication (UDP)161 / 162Monitoring and management of network equipment
ICMP / ARPInternetwork / L2–L3—Diagnostics and errors (ping/tracert); MAC lookup by IPv4