Communication Fundamentals
Understanding how computers communicate forms the bedrock of all networking knowledge. This guide covers protocols, encoding, formatting, timing, and the vocabulary you'll encounter throughout this documentation.
Protocols
A protocol is a formal set of rules that governs how data is transmitted between devices. Without agreed-upon protocols, devices would be unable to interpret each other's signals.
Protocols exist at every layer of the network stack — from physical signals to application-level messaging formats.
All protocols must define:
- How to identify the sender and receiver
- The language and message structure
- Timing and speed of transmission
- Acknowledgement and error-handling rules
Establishes a dedicated channel before data transfer begins. Example: TCP.
Sends data without a prior handshake. Faster but less reliable. Example: UDP.
Message Encoding
Before data can travel across a network it must be encoded — converted into a form the physical medium can carry.
If sender and receiver use different encoding schemes the data will be garbled. Always verify encoding compatibility first.
Source data — the original text, file, or stream from an application.
Binary conversion — data is represented as sequences of 1s and 0s.
Signal encoding — bits are mapped to electrical pulses, light flashes, or radio waves depending on the medium.
Transmission — the encoded signal travels through the physical medium.
Decoding — the receiver reverses the process to recover the original data.
In Python, encoding a string to bytes looks like:
message = "Hello, Network!"
bytes_data = message.encode("utf-8")
print(bytes_data) # b'Hello, Network!'
Formatting & Encapsulation
Raw data is wrapped in headers and trailers at each layer of the network stack — a process called encapsulation. Each layer adds its own control information before passing the package to the layer below.
Think of encapsulation like nested envelopes: each outer envelope adds addressing for the next delivery stage.
Message Size
Networks impose a Maximum Transmission Unit (MTU) — the largest packet size allowed on a given link. Messages larger than the MTU are fragmented into smaller chunks for transmission and reassembled at the destination.
Excessive fragmentation degrades performance. Configure MTU correctly and use Path MTU Discovery (PMTUD) where possible.
Key Points
- Standard Ethernet MTU is
1500bytes. - Jumbo frames extend MTU up to
9000bytes on supported hardware. - IPv6 mandates PMTUD; fragmentation is handled by the source only.
Message Timing
Timing controls ensure data flows smoothly and that devices don't overwhelm each other or the network.
| Concept | Description | Example |
|---|---|---|
| Flow Control | Regulates the rate of transmission so the receiver is not overwhelmed. | TCP sliding window |
| Timeout | Defines how long to wait for a response before retransmitting. | TCP retransmission timer |
| Access Method | Determines which device may transmit at any given moment. | CSMA/CD (Ethernet) |
| Delivery Mode | Specifies how many recipients receive the message. | Unicast / Multicast / Broadcast |
Key Terminologies
These terms form the common vocabulary used throughout networking documentation. Learn them well — you'll encounter them constantly.
- Latency
- The time delay between a stimulus and a response — in networking, the round-trip time between sending a packet and receiving its acknowledgement. Measured in milliseconds (ms).
- Bandwidth
- The maximum theoretical capacity of a network link, measured in bits per second (bps). A 1 Gbps link can transmit up to 1 billion bits per second under ideal conditions.
- Throughput
- The actual data transfer rate achieved in practice, always less than the theoretical bandwidth due to overhead, retransmissions, and protocol inefficiencies.
- Goodput
- The rate at which useful application data is delivered — throughput minus the overhead of protocol headers and retransmitted packets.
- Jitter
- Variation in packet arrival times. High jitter is particularly damaging to real-time applications like VoIP and video conferencing.
- Packet Loss
- The percentage of packets that fail to reach their destination. Even 1% loss can severely degrade TCP performance through repeated retransmission cycles.
Further Reading
Deepen your understanding with these related topics: