Data communications and computer networks form the core infrastructure of modern distributed information systems. This guide covers the essential principles of signal transmission, physical media characteristics, reference architectures, and routing protocols.
At its simplest, telecommunication refers to communication at a distance. Modern data communications is the exchange of digital information between two endpoints through a transmission medium.
Every data communication system relies on five fundamental structural elements working together:
+-------------------------------------------------------------+
| Protocol |
+-------------------------------------------------------------+
| +--------+ Transmission Medium +----------+ |
| | Sender |==============================>| Receiver | |
| +--------+ +----------+ |
| || || |
| [Generates Msg] [Consumes Msg] |
+-------------------------------------------------------------+
Message: [Data]Information exchange between two communication nodes can occur in three distinct directions:
Simplex:
[ Node A ] ------------------------> [ Node B ] (One-way only)
Half-Duplex:
[ Node A ] <=======================> [ Node B ] (Alternating directions)
Full-Duplex:
[ Node A ] <=======================> [ Node B ] (Simultaneous bi-directional)
------------------------>
<------------------------A network is a collection of devices, often called nodes, connected by communication links. A node can be a computer, server, router, switch, or any other device capable of sending and receiving data across the network.
Topologies define the geometric and physical layout of links and nodes:
Star Topology: Bus Topology:
[Node A] [Node B] [Node A] [Node B] [Node C]
\ / | | |
v v =========================== (Bus Cable)
+-------------+ |
| Central Hub | [Node D]
+-------------+
^ ^ Ring Topology:
/ \ [Node A] ---> [Node B]
[Node C] [Node D] ^ |
| v
[Node D] <--- [Node C]Mesh: Every node has a dedicated point-to-point link to every other node in the network. A fully connected mesh network with nodes requires a total number of physical duplex channels () calculated by:
Each node must also have physical communication ports. While highly redundant and fault-tolerant, mesh topologies are expensive and difficult to scale.
Networks are generally categorized by their physical scale, administrative control, and geographic span:
For data to be sent across a transmission medium, it must first be converted into electromagnetic signals.
Signals can be represented in either analog or digital forms:
In data communications, we commonly use periodic analog signals (such as sine waves) and nonperiodic digital signals to represent information.
A simple periodic analog signal can be modeled mathematically as a sine wave:
Where the physical properties of the wave are defined as:
Peak Amplitude (): The absolute value of the signal's highest intensity, measured in volts () for electrical signals.
Frequency (): The number of complete cycles a wave completes in one second, measured in Hertz ().
Period (): The time in seconds required to complete one full cycle. Frequency and period are inversely related:
Electrical systems often measure power using the Root Mean Square (RMS) voltage instead of the peak voltage (). For a standard sinusoidal AC signal, the relationship is:
For example, a standard US wall outlet rated at has a peak voltage of:
Signals can be analyzed from two different perspectives:
Time Domain Representation: Frequency Domain Representation:
Amplitude Amplitude
^ _ _ ^
| / \ / \ | |
| / \ / \ | | (Single Spike at f1)
0 |---+----+---+----+---> Time |-------+---------------> Freq
| / \ / \ 0 f1
| / - -A single-frequency sine wave cannot carry complex data. To transmit information, we must use a composite signal, which is made of many individual sine waves.
According to Fourier Analysis, any composite signal is a combination of simple sine waves, each with its own frequency, amplitude, and phase.
The bandwidth () of a composite signal is the difference between its highest and lowest frequencies:
Digital signals represent discrete states. For example, a binary signal can map a to a positive voltage and a to zero volts.
If a digital signal has distinct signaling levels, the number of bits () required to represent each level is:
Digital signals can be sent across physical media in two ways:
Physical transmission lines are not perfect. This imperfection means that the signal received at the end of a link is not identical to the signal that was sent. There are three main causes of signal impairment:
+-----------------------------+
| Transmission Impairments |
+-----------------------------+
/ | \
v v v
+-------------+ +------------+ +-----------+
| Attenuation | | Distortion | | Noise |
+-------------+ +------------+ +-----------+Attenuation: The loss of signal energy as it travels over a distance. To compensate for this loss, networks use amplifiers or repeaters to boost the signal. Attenuation and gain are measured in decibels ():
A key consideration in network design is how fast data can be sent across a channel, measured in bits per second (). This maximum speed is determined by the channel's physical bandwidth, its signaling levels, and its noise levels.
For an ideal, noiseless channel, the Nyquist formula defines the maximum theoretical bit rate () as:
Where is the bandwidth in Hertz and is the number of signal levels. Increasing the number of signaling levels () increases the data rate, but makes the receiver more complex and sensitive to small variations.
Real-world channels always contain noise. The Shannon capacity formula determines the absolute maximum data rate () for a noisy channel:
This capacity limit cannot be exceeded, regardless of how many signaling levels are used. For extremely noisy channels where (the noise is much stronger than the signal), the capacity drops to zero, making data transmission impossible.
In practical system design, engineers use both formulas:
Bandwidth in Hz: The range of frequencies a channel can pass.
Bandwidth in bps: The nominal transmission speed of a link (e.g., Ethernet).
Throughput: The actual rate at which data is successfully sent through a network. Throughput is always less than the nominal bandwidth due to protocol overhead, collisions, and queue delays.
Latency (Delay): The total time required for an entire message to reach its destination. Latency is the sum of four delay components:
To simplify network design, complex communication tasks are divided into hierarchical layers. Each layer relies on the services of the layer directly below it and provides services to the layer directly above it.
The Open Systems Interconnection (OSI) model is a conceptual 7-layer framework developed by the International Organization for Standardization (ISO). The TCP/IP suite is the practical, 5-layer architecture used to build the modern Internet:
OSI Layer Model TCP/IP Suite Model
+-------------------------+ +-------------------------+
| 7. Application Layer | ===> | |
+-------------------------+ | 5. Application Layer |
| 6. Presentation Layer | ===> | |
+-------------------------+ +-------------------------+
| 5. Session Layer | ===> | (Managed by Application)|
+-------------------------+ +-------------------------+
| 4. Transport Layer | ===> | 4. Transport Layer |
+-------------------------+ +-------------------------+
| 3. Network Layer | ===> | 3. Network Layer |
+-------------------------+ +-------------------------+
| 2. Data Link Layer | ===> | 2. Data Link Layer |
+-------------------------+ +-------------------------+
| 1. Physical Layer | ===> | 1. Physical Layer |
+-------------------------+ +-------------------------+The TCP/IP suite uses four levels of addressing to route data across networks:
Layer Address Type Scope
+-------------+ +-----------------+ +-----------------+
| Application | =======> | Specific (URI) | | Global Process |
+-------------+ +-----------------+ +-----------------+
| Transport | =======> | Port (16-bit) | | Local Process |
+-------------+ +-----------------+ +-----------------+
| Network | =======> | Logical (IP) | | Global End-Host |
+-------------+ +-----------------+ +-----------------+
| Data Link | =======> | Physical (MAC) | | Local Link Hop |
+-------------+ +-----------------+ +-----------------+07:01:02:01:2C:4B) used to forward frames between adjacent devices on the same physical network.80 for HTTP, port 443 for HTTPS) that directs incoming data to the correct application or process running on a host.At the network layer, data is packaged into variable-length packets called datagrams. Each datagram contains two parts: a header and a data payload.
An IPv4 header has a base length of 20 bytes, but can expand up to 60 bytes if options are included. It 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 | TOS/DSCP | Total Length |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Identification |Flags| Fragment Offset |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Time to Live | Protocol | Header Checksum |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Source IP Address |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Destination IP Address |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Options (Variable, 0-40 Bytes) |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+0100 ().0101), which corresponds to a -byte header.1111), which corresponds to a -byte header.Each physical network link has a Maximum Transfer Unit (MTU), which is the largest frame payload size it can transmit. For example, standard Ethernet has an MTU of 1500 bytes.
When an IP datagram's size exceeds the outgoing link's MTU, routers must break the payload into smaller pieces through a process called fragmentation. Only the payload data is fragmented; a new IP header is generated for each fragment.
Original Datagram:
+-------------------+------------------------------------------+
| IP Header (20B) | Payload (4000B) |
+-------------------+------------------------------------------+
Total Length = 4020B, ID = 14567, Flags: DF=0, MF=0, Offset = 0
Fragmented for MTU = 1500B (Max Payload = 1480B):
+-------------------+-----------------------+
| IP Header (20B) | Payload (1480B) | Fragment 1: MF=1, Offset=0
+-------------------+-----------------------+
+-------------------+-----------------------+
| IP Header (20B) | Payload (1480B) | Fragment 2: MF=1, Offset=185
+-------------------+-----------------------+
+-------------------+-----------------------+
| IP Header (20B) | Payload (1040B) | Fragment 3: MF=0, Offset=370
+-------------------+-----------------------+Consider an IP datagram with a total length of 4020 bytes (including a 20-byte base IP header) that must pass through a network with an MTU of 1500 bytes.
The five core structural elements required for remote data exchange: message, sender, receiver, transmission medium, and protocol rules.
The fundamental representation of information as continuous wave patterns with infinite values or discrete voltage levels with finite states.
Degradation forces including attenuation, distortion, and noise that alter signals as they propagate through non-ideal physical media.
Standardized structural stacks (OSI 7-layer and TCP/IP 5-layer) designed to separate distinct network functions and simplify implementation.
The standard mechanism of dividing oversized layer-3 packets into smaller fragments to fit within the local network's Maximum Transfer Unit (MTU).
Test your understanding with 5 questions
If a noiseless channel has a physical bandwidth of 3 kHz and transmits a signal using 4 distinct voltage levels, what is the maximum theoretical bit rate achievable according to the Nyquist theorem?
An IP packet arrives with a header length (HLEN) field value of 1000 in binary. How many bytes of options are carried within this packet's header?
Which layer of the OSI reference model is primarily responsible for hop-to-hop frame delivery, physical addressing, and error/flow control across a single physical link?
If a signal's power is reduced to exactly one-fourth of its original value after passing through a transmission line, what is the power loss expressed in decibels (dB)?
An IP fragment arrives with a Fragmentation Offset field value of 100 in decimal. What is the byte sequence number of the first payload byte in this fragment?
Star: Each node is connected to a central controller or hub/switch via a dedicated point-to-point link. Nodes cannot communicate directly with one another; all data passes through the central controller. This model is easy to install and reconfigure, and prevents single-node failures from disrupting the rest of the network.
Bus: A multipoint topology where one long backbone cable serves as a shared transmission medium. Nodes connect to this common bus line using drop lines and taps. A signal traveling along the backbone is visible to all stations. Terminations at the cable ends prevent signal reflection.
Ring: Each node has a dedicated point-to-point connection with only the two nodes on either side of it. Signals flow in a single direction around a loop, passing through active repeaters at each node that regenerate the signal before forwarding it.
Hybrid: A combination of multiple topologies. For example, a star backbone can connect multiple lower-level bus networks.
Phase (): Indicates the wave's horizontal shift relative to time zero (). Phase is measured in degrees or radians:
Wavelength (): The physical distance a simple signal propagates through a medium during a single period. It depends on both the frequency and the propagation speed () of the medium:
Where is the input power and is the output power.
A loss of half the power corresponds to a decibel change of:
Alternatively, decibels can measure power relative to one milliwatt ():
Distortion: Changes in the signal's shape. This occurs because composite signals are made of multiple frequency components, and each frequency component propagates through the medium at a slightly different speed. This difference in arrival times at the receiver alters the phase of the composite wave.
Noise: Unwanted external signals that combine with the transmitted signal. Types of noise include thermal noise, induced noise, crosstalk, and impulse noise. The quality of a channel is often expressed as the Signal-to-Noise Ratio (SNR):
In decibels, this is written as:
Propagation Time (): The time it takes for a single bit to travel from sender to receiver:
Transmission Time (): The time required to push all the bits of a message onto the physical link:
Queuing Time (): The time a packet spends waiting in intermediate switch or router queues before being processed.
Processing Delay (): The time routers take to examine packet headers, check for errors, and determine the next-hop route.
Bandwidth-Delay Product (BDP): The volume of bits that can fill a link. It represents the maximum amount of data that can be in transit on a network link at any given moment:
6 Modules
6 Modules