Data communication forms the backbone of modern information systems, transforming raw physical phenomena into structured digital interactions. To build reliable networks, engineers utilize highly structured architectural models and addressing schemes that allow disparate systems to exchange information across complex physical and logical topologies.
A network is a collection of devices, often called nodes, connected by communication links. A node can be a computer, printer, router, or any other device capable of transmitting or receiving data.
Before examining topologies, we must classify how links connect devices:
The term physical topology refers to the structural representation of how links and nodes are physically arranged.
MESH TOPOLOGY STAR TOPOLOGY
Node---Node Node
/ \ / \ \
/ \ / \ \
Node-----X-----Node Node-------[ HUB ]-------Node
\ / \ / /
\ / \ / /
Node---Node Node
BUS TOPOLOGY RING TOPOLOGY
[Node] [Node] [Node] Node----Node
| | | / \
===================== Node Node
(Backbone Cable) \ /
Node----NodeIn a fully connected mesh topology, every device has a dedicated point-to-point link to every other device. For devices, the network parameters are:
Each device has a dedicated point-to-point link only to a central controller, usually called a hub or switch. Devices do not communicate directly with each other.
A multipoint configuration. One long cable acts as a backbone to link all devices in the network via drop lines and taps.
Each device has a dedicated point-to-point connection with only the two devices on either side of it. A signal is passed along the ring in one direction from device to device until it reaches its destination.
To travel through a medium, data must be transformed into electromagnetic signals. Signals can be classified as either analog or digital.
A periodic analog signal repeats a pattern over a continuous time frame. The sine wave is the fundamental periodic analog signal and can be described mathematically as:
Where:
Frequency () and period () are inversely related:
| Unit of Period () | Equivalent in Seconds () | Unit of Frequency () | Equivalent in Hertz () | | :--- | :--- | :--- | :--- | | Seconds () | | Hertz () | | | Milliseconds () | | Kilohertz () | | | Microseconds () | | Megahertz () | | | Nanoseconds () | | Gigahertz () | |
A phase shift describes the position of the wave relative to time origin :
Phase = 0 degrees (In Phase) Phase = 90 degrees (1/4 Cycle Offset)
/\ /\ /\ /\ /\ /\
_/ \ / \ / \ / \ / \ / \
/ \/ \/ \ / \/ \/ \
0-------------------> t 0-------------------> tWavelength binds the period or frequency of a simple sine wave to the propagation speed () of the medium:
For light or electromagnetic waves in a vacuum, . In a physical cable, the propagation speed is lower (e.g., ).
An analog signal can be visualized in two ways:
TIME DOMAIN FREQUENCY DOMAIN
Amplitude Amplitude
^ /\ /\ ^
| / \ / \ | | (Single Spike at f1)
| / \/ \ | |
+-----------------> Time +------+-------------> Frequency
0 T 0 f1According to Fourier analysis, any composite signal is a combination of simple sine waves with different frequencies, amplitudes, and phases.
The bandwidth () of a composite signal is the difference between its highest () and lowest () frequencies:
Signals travel through imperfect transmission media. This imperfection causes signal degradation, meaning the received signal differs from the transmitted one.
[Transmitted Signal] ------> [ TRANSMISSION MEDIUM ] ------> [Received Signal]
^
|
- Attenuation (Power Loss)
- Distortion (Phase Delay)
- Noise (Thermal, Crosstalk, External)Attenuation represents a loss of energy. When a signal travels through a medium, some of its energy is lost as heat. Engineers use the decibel (dB) to measure the relative strength or loss of a signal:
Where is the input power and is the output power.
Noise is unwanted background energy that corrupts a signal. The Signal-to-Noise Ratio (SNR) measures the ratio of signal power to noise power:
Latency is the total time it takes for a message to travel from source to destination:
The Bandwidth-Delay Product (BDP) defines the volume of a communication link. It represents the maximum number of bits that can fill the link at any given moment:
Visualizing the Link as a Pipe:
|<------------------------- Delay ------------------------->|
=============================================================
===> Bits in transit: [0][1][1][0][1][0][1][0][0][1][1][0] | ---> Cross-Sectional Area
============================================================= (Bandwidth)A key concern in networking is how fast data can be sent over a channel. This speed depends on three factors: available bandwidth, signal levels, and noise.
For a noiseless channel, the Nyquist formula defines the theoretical maximum bit rate:
Where:
Increasing the number of signal levels () allows more bits to be sent per level (), but it also increases system complexity and error susceptibility in the presence of even minimal noise.
Real-world channels are noisy. Claude Shannon developed a formula to determine the absolute theoretical limit of a noisy channel's data rate, regardless of how many signal levels are used:
Where is the channel capacity in bits per second (bps).
In network design, the Shannon formula gives the upper limit of what is physically possible. The Nyquist formula is then used to determine the number of signaling levels () required to achieve the target rate.
To handle the complexity of network communications, functions are organized into layered models. Each layer performs specific tasks and provides services to the layer above it.
The Open Systems Interconnection (OSI) model is a theoretical seven-layer framework developed by the International Standards Organization (ISO).
OSI MODEL TCP/IP SUITE
+-----------------------+ +-----------------------+
7 | Application | | |
+-----------------------+ | Application |
6 | Presentation | | |
+-----------------------+ +-----------------------+
5 | Session | | Transport |
+-----------------------+ +-----------------------+
4 | Transport | | Network |
+-----------------------+ +-----------------------+
3 | Network | | Data Link |
+-----------------------+ +-----------------------+
2 | Data Link | | Physical |
+-----------------------+ +-----------------------+
1 | Physical |
+-----------------------+The TCP/IP model is the practical, five-layer architectural framework that powers the modern Internet. It combines the Session and Presentation layers of the OSI model into a single Application layer:
As data travels down the protocol stack at the transmitter, each layer adds its own control information, called a header (and sometimes a trailer). This process is known as encapsulation. At the receiver, this process is reversed (decapsulation).
Layer Data Unit Process
-----------------------------------------------------------------
Application [ Data ] Raw Message
|
Transport [H4][ Data ] Segment / User Datagram
|
Network [H3][H4][ Data ] Datagram / Packet
|
Data Link [H2][H3][H4][ Data ][T2] Frame
|
Physical 01101010100101011101 Bitstream TransmissionFour distinct levels of addressing are used in a TCP/IP network to route data from a source application to a destination application:
+-----------------------+------------------------------------------+
| Address Level | TCP/IP Layer / Scope |
+-----------------------+------------------------------------------+
| Specific Addresses | Application Layer (e.g., email / URL) |
| Port Addresses | Transport Layer (16-bit process port) |
| Logical Addresses | Network Layer (IPv4 / IPv6) |
| Physical Addresses | Data Link/Physical Layer (MAC address) |
+-----------------------+------------------------------------------+07:01:02:01:2C:4B).80 for HTTP, port 443 for HTTPS).The network layer uses the Internet Protocol (IP) to transport data across physical boundaries. Packets at this layer are called datagrams.
An IPv4 datagram consists of a variable-length header (20 to 60 bytes) and a data payload. The header is typically represented in 32-bit (4-byte) rows:
0 1 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|Version| HLEN | DSCP/ECN | Total Length | Row 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Identification |Flags| Fragment Offset | Row 2
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Time to Live | Protocol | Header Checksum | Row 3
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Source IP Address | Row 4
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Destination IP Address | Row 5
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Options (Variable, 0 to 40 bytes) | Row 6...
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+0100 for IPv4).Different networks have different limits on the maximum frame size they can carry, known as the Maximum Transfer Unit (MTU). When an IP datagram's total length exceeds a network's MTU, it must be divided into smaller pieces through a process called fragmentation.
Consider an original IP datagram with a total length of 4020 bytes (including a standard 20-byte header, so the data payload is 4000 bytes) that needs to pass through a network with an MTU of 1420 bytes.
[Original Datagram: Total Length = 4020, Header = 20, Payload = 4000]
|
+--------------------+--------------------+
| |
[Fragment 1] [Fragment 2]
Total Length = 1420 Total Length = 1420
Header = 20 Header = 20
Payload = 1400 (Bytes 0-1399) Payload = 1400 (Bytes 1400-2799)
MF = 1, Offset = 0 MF = 1, Offset = 175
|
+--------------------+
|
[Fragment 3]
Total Length = 1220
Header = 20
Payload = 1200 (Bytes 2800-3999)
MF = 0, Offset = 350Fragment 1:
Total Length = bytesA seven-layer conceptual framework developed by the ISO to standardize network communication functions regardless of underlying hardware architecture.
The dominant five-layer practical framework (Physical, Data Link, Network, Transport, Application) that powers the modern Internet.
Theoretical mathematical limits defining maximum data rates: Nyquist for noiseless channels based on signaling levels, and Shannon for noisy channels based on signal-to-noise ratio.
The process of dividing an IP datagram into smaller fragments to fit within a physical link's Maximum Transfer Unit (MTU), tracked via Flags and a 13-bit Fragment Offset.
The structured separation of physical (MAC) addresses, logical (IP) addresses, and port addresses to facilitate hop-to-hop, source-to-destination, and process-to-process delivery.
Test your understanding with 5 questions
An IP datagram arrives with an HLEN value of 1000 in binary. If the total length field of the datagram is 100 bytes, how many bytes of options and how many bytes of payload data are being carried, respectively?
A channel has a bandwidth of 1 MHz and a Signal-to-Noise Ratio (SNR) of 63. To achieve the absolute maximum theoretical channel capacity, what is the minimum number of discrete signal levels (L) required according to the combined limits of Nyquist and Shannon?
A packet has arrived at its destination with a More Fragments (MF) flag of 0 and a Fragmentation Offset value of 350. What does this indicate about the packet and its payload bytes?
A signal travels through three cascaded blocks: a lossy transmission line with a loss of -3 dB/km over a distance of 2 km, followed by an amplifier with a power gain of 20 dB, and finally another transmission line with a loss of -1.5 dB/km over 4 km. What is the net decibel change of the signal, and is there a net gain or loss?
Which of the following parameters changes as a frame travels hop-to-hop across multiple physical networks, and which parameters remain constant from the original source to the final destination?
1 for ICMP, 2 for IGMP, 6 for TCP, 17 for UDP).MF = (more fragments follow)Fragment Offset = Fragment 2:
Total Length = bytesMF = (more fragments follow)Fragment Offset = Fragment 3:
Total Length = MF = (last fragment)Fragment Offset = 6 Modules
6 Modules