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:
- Preamble (receiver synchronization by bits);
- Destination address (individual, group, or broadcast);
- Source address (to know who to reply to);
- Service information (type, number, length, protocol inside);
- Data field (Payload) — the only variable-length field;
- Checksum (FCS/CRC) — integrity check;
- 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):
- 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.
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
| Protocol | Layer / Transport | Port | Purpose |
|---|---|---|---|
| HTTP / HTTPS / HTTP/3 | Application (TCP / UDP) | 80 / 443 | Web pages and APIs (HTTPS — TLS over TCP 443; HTTP/3 — QUIC over UDP 443) |
| DNS | Application (UDP/TCP) | 53 | Converting domain names to IP addresses and back |
| DHCP | Application (UDP) | 67 / 68 | Automatic assignment of IP, mask, gateway, and DNS |
| FTP / TFTP | Application (TCP / UDP) | 20, 21 / 69 | File transfer (TFTP — simplified without authentication) |
| SSH / Telnet | Application (TCP) | 22 / 23 | Remote console (SSH encrypts traffic, Telnet — plain text) |
| SMTP / POP3 / IMAP | Application (TCP) | 25 (465, 587) / 110 (995) / 143 (993) | Mail: sending (SMTP/Submission) and receiving (POP3/IMAP; secure TLS ports in parentheses) |
| NTP / RDP | Application (UDP / TCP+UDP) | 123 / 3389 | Time synchronization (NTP) and Windows Remote Desktop (RDP) |
| SNMP | Application (UDP) | 161 / 162 | Monitoring and management of network equipment |
| ICMP / ARP | Internetwork / L2–L3 | — | Diagnostics and errors (ping/tracert); MAC lookup by IPv4 |