Computer Network Notes
Computer Network Notes
The concept of computer networking emerged from the fundamental need to share
expensive computing resources among multiple users. In the early days of computing,
when computers were massive, expensive machines, organizations realized that
connecting these systems would allow multiple users to access computing power, share
storage devices, and communicate more efficiently. This realization led to the
development of networking technologies that have evolved into the complex, globe-
spanning systems we use today.
Understanding why computer networks exist and what purposes they serve is
fundamental to grasping their design and operation. Networks serve multiple critical
functions in modern computing environments.
The primary driver behind network development was resource sharing. When computers
were first developed, they were extraordinarily expensive. A single mainframe computer
might cost millions of dollars, and peripheral devices like printers and storage systems
were also costly. By networking computers together, organizations could allow multiple
users to access these expensive resources without duplicating them for each user. For
example, instead of purchasing a printer for every employee, a company could connect
one high-quality printer to the network, allowing all employees to access it. This principle
extends to software licenses, data storage systems, and processing power. Modern cloud
computing represents an evolution of this concept, where massive computing resources
are shared among thousands or millions of users simultaneously.
Networks enable seamless data exchange between users and systems. Before networks,
transferring data between computers required physical media like floppy disks or magnetic
tapes, a process known as “sneakernet” because someone had to physically walk the
media from one computer to another. Networks eliminate this inefficiency by allowing
instant digital transfer of files and information. In a business environment, employees can
collaborate on documents stored on shared network drives, accessing and editing the
same files from different locations. Databases can be accessed by multiple users
simultaneously, ensuring everyone works with the most current information.
Networks enable users to access computing resources from distant locations. An employee
working from home can securely connect to their company’s network through a Virtual
Private Network (VPN), accessing files, applications, and systems as if they were physically
present in the office. This capability has become increasingly important, particularly with
the rise of remote work arrangements. Students can access educational resources from
their homes, doctors can review patient records from different hospital locations, and
businesses can operate across multiple geographic sites while maintaining centralized
control over their systems.
Networks provide reliability through redundancy and backup capabilities. If one server
fails, network systems can automatically redirect traffic to backup servers, ensuring
continuous operation. Data can be replicated across multiple network storage devices,
protecting against data loss if one device fails. Financial institutions, healthcare providers,
and other critical service organizations depend on this reliability to maintain 24/7
operations.
In networking terminology, a node refers to any device connected to a network. This broad
category includes computers, servers, printers, smartphones, tablets, and even specialized
devices like network cameras or smart thermostats. The term “host” more specifically
refers to computers and devices that run applications and services, essentially the
endpoints where data originates or terminates. Every node or host on a network must
have a unique identifier, typically an IP address, that allows other devices to locate and
communicate with it.
Consider a university campus network as an example. The nodes would include thousands
of student laptops, desktop computers in computer labs, administrative servers, wireless
access points, printers in various buildings, security cameras, and perhaps even smart
building control systems. Each of these devices represents a node on the network, and
many serve as hosts running specific applications or services.
A Network Interface Card (NIC) serves as the interface between a computer and the
network medium. This hardware component, which may be built into the computer’s
motherboard or added as a separate expansion card, handles the physical transmission
and reception of data signals. The NIC contains a unique hardware address called a MAC
(Media Access Control) address, which serves as the device’s permanent physical identifier
on the network.
Modern NICs are sophisticated devices that perform multiple functions. They convert
digital data from the computer into electrical signals (for wired networks) or radio waves
(for wireless networks) suitable for transmission across the network medium. They also
perform the reverse operation, receiving signals from the network and converting them
into digital data the computer can process. NICs implement various error-checking
mechanisms to ensure data integrity and can handle multiple data streams
simultaneously.
A network switch is an intelligent device that connects multiple devices within a local area
network. Unlike simpler devices called hubs, which simply broadcast received data to all
connected devices, switches learn which devices are connected to each of their ports and
intelligently forward data only to the intended recipient. This selective forwarding
dramatically improves network efficiency and security.
When you send a file from your computer to a printer on the network, the switch
examines the destination MAC address in the data packets and forwards them only to the
port where the printer is connected. Other devices on the network never see this traffic,
improving both performance and privacy. Modern switches can support dozens or even
hundreds of simultaneous connections, each operating at high speeds such as 1 Gigabit or
10 Gigabits per second.
While switches connect devices within a single network, routers connect different
networks together. Your home router, for example, connects your local home network to
your Internet Service Provider’s network, which in turn connects to the broader Internet.
Routers operate at the network layer of the OSI model, making forwarding decisions based
on IP addresses rather than MAC addresses.
Routers maintain routing tables that contain information about network paths and make
intelligent decisions about the best route for data to reach its destination. When you
request a webpage from a server across the Internet, your data might pass through dozens
of routers, each making forwarding decisions to move the data closer to its destination.
Routers also perform Network Address Translation (NAT), allowing multiple devices on
your home network to share a single public IP address when communicating with the
Internet.
Transmission media refers to the physical pathways through which data signals travel. This
includes copper cables (twisted pair and coaxial), fiber optic cables, and wireless radio
frequencies. Each medium has different characteristics affecting bandwidth, distance
limitations, susceptibility to interference, and cost. The choice of transmission media
depends on the specific requirements of the network, including required speed, distance,
environmental factors, and budget.
Protocols are perhaps the most critical component of any network, though they are
entirely invisible to users. A protocol is a formal set of rules and conventions that govern
how data is formatted, transmitted, received, and acknowledged on a network. Without
protocols, devices from different manufacturers using different operating systems could
not communicate.
The most fundamental protocol in modern networking is the Internet Protocol (IP), which
defines how data packets are addressed and routed across networks. The Transmission
Control Protocol (TCP) works in conjunction with IP to ensure reliable delivery of data.
Higher-level protocols like HTTP (Hypertext Transfer Protocol) enable web browsing, while
SMTP (Simple Mail Transfer Protocol) enables email transmission. Every aspect of network
communication is governed by protocols, from the electrical characteristics of signals on
cables to the format of email messages.
1.4 Network Architecture Models
Network architecture refers to the design principles and organizational structures that
define how networks operate. Two primary architectural models dominate modern
networking: client-server and peer-to-peer.
For example, consider a bank’s network architecture. The bank’s databases containing
customer account information reside on secure, redundant servers in protected data
centers. When a teller needs to access a customer’s account, their workstation (the client)
sends a request to the database server. The server processes the request, verifies the
teller’s authorization, retrieves the requested information, and sends it back to the client
workstation. The actual customer data never resides on the teller’s workstation,
enhancing security. If the teller’s computer fails, no customer data is lost because it exists
only on the well-protected, backed-up servers.
Small businesses and home networks often use peer-to-peer architecture because it is
simpler and less expensive to implement. No expensive server hardware is required, and
no specialized server operating systems need to be purchased. Each computer can share
its files, printers, and other resources with other computers on the network.
For example, in a small design firm with five employees, each employee’s computer might
share a folder containing project files. Employee A can access design files stored on
Employee B’s computer, while simultaneously sharing their own files with Employee C.
Each computer acts as both a client (when accessing others’ resources) and a server (when
providing its own resources to others).
However, peer-to-peer architecture has significant limitations that make it unsuitable for
larger organizations. Security is difficult to maintain because each computer must be
individually secured, and there is no centralized control over who can access what
resources. Performance can be poor because regular desktop computers are not optimized
to serve multiple simultaneous requests like dedicated servers are. Backup is complicated
because important data is scattered across many different computers rather than
centralized in one location.
Modern networking often employs hybrid approaches that combine elements of both
architectures. For instance, a company might use centralized servers for critical
applications and data while allowing peer-to-peer sharing for certain collaborative
projects.
In a bus topology, all devices connect to a single central cable called the backbone or bus.
This cable runs through the area where computers are located, and each computer taps
into this main cable through a connector. The bus topology was commonly used in early
Ethernet networks, particularly in the 1980s and early 1990s.
Data transmission in a bus topology works through a broadcast mechanism. When one
computer sends data, that data travels along the entire length of the bus cable in both
directions. Every computer on the network receives the transmission, but only the
computer with the matching destination address actually processes the data. Other
computers ignore it.
The bus topology offers simplicity and economy as its primary advantages. Installation is
straightforward and requires relatively little cable compared to other topologies. Adding
new devices is easy because you simply tap into the existing bus cable at the appropriate
location. For very small networks, this simplicity can be appealing.
However, bus topology has serious limitations that make it unsuitable for modern
networks. The most critical problem is that if the main bus cable fails at any point, the
entire network becomes inoperative. This single point of failure represents an
unacceptable reliability risk for most organizations. Additionally, troubleshooting is
difficult because a problem anywhere along the bus affects the entire network, making it
challenging to isolate the fault location. As more devices are added to the bus,
performance degrades because all devices share the same communication channel and
must wait their turn to transmit. Network collisions, where two devices attempt to
transmit simultaneously, become more frequent as the network grows.
Star topology represents the most common network design in modern local area
networks. In this configuration, each device connects to a central connection point,
typically a switch. The star topology resembles a wheel, with the switch at the hub and
cables radiating outward like spokes to each connected device.
When a computer wants to send data to another computer in a star topology, the data
first travels to the central switch. The switch then forwards the data only to the intended
recipient computer. This centralized control provides several significant advantages over
bus topology.
The primary advantage of star topology is reliability. If one cable fails, only the device
connected by that cable is affected. The rest of the network continues to function
normally. This isolation of failures makes troubleshooting much simpler. If a user reports
network connectivity problems, the network administrator knows the problem likely
involves either that user’s computer, their network cable, or the specific switch port they
are connected to.
Management and monitoring are also superior in star topology. The central switch can be
equipped with diagnostic and monitoring tools that provide visibility into the traffic and
status of each connection. Modern managed switches can detect and report problems on
individual ports, dramatically simplifying network management.
The main disadvantage of star topology is the dependency on the central switch. If the
switch fails, all connected devices lose network connectivity. However, this risk can be
mitigated through the use of redundant switches and redundant connections, techniques
commonly employed in critical network environments. Star topology also requires more
cable than bus topology because each device needs its own cable run back to the central
switch, potentially increasing installation costs.
Consider a typical office building as an example. Each floor might have one or more
network switches located in a wiring closet. Each office and work area has network cables
running from wall jacks back to these switches, forming star topology configurations.
These floor switches then connect to core switches in the building’s main communications
room, forming a hierarchical star design.
In ring topology, each device connects to exactly two other devices, forming a circular
pathway for data transmission. Data travels around the ring in one direction (or
sometimes in both directions in dual-ring configurations), passing through each device
until it reaches its destination.
Token Ring networks, which were popular in the 1980s and competed with Ethernet, used
a ring topology. In a Token Ring network, a special data packet called a token circulates
around the ring. A computer can only transmit data when it possesses the token. After
transmitting its data, the computer releases the token so another computer can use it. This
token-passing mechanism prevents the data collisions that can occur in Ethernet
networks.
However, ring topology has significant disadvantages. If any device or cable in the ring
fails, the entire network can be disrupted (unless a dual-ring configuration with automatic
failover is used). Adding or removing devices requires temporarily disrupting the ring,
causing network downtime. Troubleshooting can be complex because a problem at one
point in the ring can manifest as symptoms throughout the entire network.
Modern Fiber Distributed Data Interface (FDDI) networks and some metropolitan area
networks still use ring topology concepts, but most local area networks have migrated to
star-based Ethernet designs due to their greater simplicity and lower cost.
In a full mesh topology, every device has a direct connection to every other device on the
network. If a network has n devices, each device requires n-1 connections, and the total
number of connections in the network is n(n-1)/2. For example, a network with 5 devices
would require 10 connections in a full mesh topology.
Mesh topology provides the highest level of reliability and redundancy. If any single
connection fails, data can be routed through alternative paths. Multiple simultaneous
communications can occur without interference. These characteristics make mesh
topology attractive for critical applications where network availability is paramount.
However, full mesh topology is extremely expensive and complex to implement in wired
networks. The number of required connections grows exponentially as devices are added.
A network with 10 devices would require 45 connections, while a network with 20 devices
would require 190 connections. This requirement makes full mesh topology impractical for
most wired local area networks.
Partial mesh topology represents a compromise, where some devices have connections to
multiple other devices, but not all devices are fully interconnected. This approach provides
some redundancy while reducing costs and complexity. Core Internet routers often use
partial mesh topologies to provide multiple paths for data and ensure reliability if any
single connection fails.
Wireless mesh networks have made mesh topology more practical in certain applications.
In a wireless mesh network, each wireless access point can communicate with multiple
other access points, allowing data to find its way through the network even if some paths
are blocked or overloaded. This approach is used in some municipal wireless networks and
in extending wireless coverage across large areas.
The concept of signals forms the foundation of all data communication. A signal is an
electromagnetic or electrical representation of data that can be transmitted from one
point to another. Understanding the characteristics and differences between analog and
digital signals is crucial for comprehending how networks transmit information.
An analog signal is characterized by its continuous nature, varying smoothly over time
without discrete jumps or breaks. Imagine watching a traditional mercury thermometer as
the temperature changes. The mercury rises or falls smoothly, passing through every
possible height value rather than jumping from one marking to the next. This continuous
variation exemplifies the nature of analog signals.
The frequency of an analog signal indicates how many complete cycles occur in one
second, measured in Hertz (Hz). When you tune your radio to a station at 101.5 FM, you
are receiving radio waves that oscillate at approximately 101.5 million cycles per second
(101.5 MHz). Different frequencies can carry different signals simultaneously without
interfering with each other, which is how your radio can receive many different stations
broadcasting at the same time.
Phase describes the position of the wave at a specific point in time relative to a reference
point. When two waves are “in phase,” their peaks and troughs align. When they are “out
of phase,” one wave’s peak might align with another wave’s trough. Phase relationships
become particularly important in advanced transmission techniques where information is
encoded by shifting the phase of the carrier wave.
Human speech provides an excellent example of analog signals. When you speak, your
vocal cords vibrate, creating pressure waves in the air that vary continuously in amplitude
and frequency. A microphone converts these pressure variations into electrical signals that
vary in voltage in direct correspondence to the original sound waves. These analog
electrical signals vary smoothly and continuously, just like the original sound.
Traditional telephone systems were designed to transmit analog signals. When you spoke
into a telephone handset, the microphone converted your voice into varying electrical
signals that traveled through the telephone wires. At the receiving end, a speaker
converted these electrical variations back into sound waves, reproducing your voice for
the listener.
Analog signals have certain inherent characteristics that affect their transmission. They can
theoretically take on an infinite number of values within their range. This infinite
resolution can be advantageous for representing complex, nuanced information. However,
analog signals are also susceptible to degradation. Any noise or interference picked up
during transmission becomes part of the signal and is difficult to distinguish from the
original information. When an analog signal is copied or amplified, these imperfections are
also copied and amplified, leading to progressive quality degradation.
Digital signals represent information using discrete values rather than continuous
variations. In binary digital systems, which form the basis of all modern computer
communications, signals take on only two values: typically represented as 0 and 1, or low
and high voltage levels.
Digital signals offer several profound advantages over analog signals, which is why modern
communications systems have largely transitioned to digital transmission. The most
significant advantage is noise immunity. Because digital signals only need to represent two
distinct values, the receiving device only needs to determine whether the received signal
is closer to the high value or the low value. Small amounts of noise or interference do not
change this determination. If a digital signal representing a binary 1 at 5 volts picks up
some noise during transmission and arrives at 4.5 volts, the receiving device still correctly
interprets it as a binary 1 because 4.5 volts is much closer to 5 volts than to 0 volts.
This noise immunity allows digital signals to be regenerated perfectly. When a digital
signal passes through a repeater, the repeater determines whether each bit is a 0 or 1 and
then generates a completely new signal representing that bit. Any noise or distortion in
the incoming signal is discarded, and the outgoing signal is pristine. This regeneration
capability allows digital signals to be transmitted over much longer distances than analog
signals without quality degradation.
Digital signals also enable powerful error detection and correction techniques. By adding
extra bits to the transmitted data according to mathematical algorithms, the receiving
device can detect when errors occur during transmission and, in many cases, correct those
errors without requiring retransmission. These techniques are impossible with analog
signals.
However, digital signals also have limitations. They require more bandwidth than analog
signals to represent the same information. A continuous analog signal varying between 0
and 5 volts can represent an infinite number of values, while a digital signal at those same
voltage levels can represent only two values. To transmit complex information digitally
requires sending many bits, each requiring its own time slot or frequency allocation.
Additionally, converting analog information (like voice or video) into digital form requires
sampling and quantization, which can lose some subtle details present in the original
analog signal if not done with sufficient resolution.
This digital conversion brought numerous benefits. Digital voice calls can be compressed to
use less bandwidth, allowing more calls to be carried on the same infrastructure. Multiple
calls can be combined using time division multiplexing. Digital networks enabled the
integration of voice, data, and video services on the same infrastructure. The quality and
reliability of communications improved dramatically.
Modern networks transmit virtually everything digitally. Even television and radio,
traditionally analog services, now broadcast digital signals. Streaming services deliver
digital video and audio over Internet connections. The analog signals of the past have
given way to the discrete, precise world of digital communications.
When signals travel through transmission media, they inevitably experience various forms
of degradation that can affect the quality and reliability of communication. Understanding
these signal impairments is crucial for designing networks that can compensate for them
and maintain reliable communication.
Attenuation is measured in decibels (dB), a logarithmic unit that compares the power of
the signal at one point to its power at another point. If a signal has a power of 100
milliwatts when transmitted and only 10 milliwatts when received, the attenuation would
be calculated as: Attenuation = 10 × log₁₀(100/10) = 10 × log₁₀(10) = 10 × 1 = 10 dB.
The logarithmic nature of the decibel scale means that each 3 dB of attenuation represents
a halving of signal power. A 10 dB loss means the signal has lost 90% of its power. A 20 dB
loss means it has lost 99% of its power. This dramatic power loss over distance explains
why signals cannot simply be transmitted indefinitely without some form of intervention.
Distortion occurs when a signal’s shape changes during transmission. While attenuation
uniformly weakens all components of a signal, distortion affects different components
differently, causing the received signal to have a different shape than the transmitted
signal.
To understand distortion, consider a digital signal that represents a series of bits. When we
transmit a square wave pattern representing the bits 1010, the sharp edges and flat tops
of the square wave actually consist of many different frequency components combined
together. The fundamental frequency defines the basic rate at which bits are transmitted,
but the sharp transitions from low to high voltage and back require higher frequency
components. If these higher frequency components are attenuated more than the lower
frequency components, or if they travel at different speeds, the square wave becomes
distorted. The sharp edges become rounded, and the flat tops might droop or overshoot.
This distortion creates practical problems. If a sequence of several binary 1s is transmitted,
and distortion causes the signal level to droop during this sequence, the voltage might fall
to the point where later bits are misinterpreted as 0s. If distortion causes overshoot when
transitioning from 0 to 1, the signal might briefly reach such a high voltage that it could
damage receiving equipment or cause false triggering.
Non-linear distortion occurs when the transmission medium or equipment does not
respond linearly to signal levels. For example, if an amplifier in the transmission path
amplifies weak signals correctly but compresses strong signals or distorts them into a
different shape, non-linear distortion results. This type of distortion can create new
frequency components that were not present in the original signal, a phenomenon called
harmonic distortion.
In a practical scenario, consider a DSL (Digital Subscriber Line) Internet connection that
uses ordinary telephone wires to carry high-speed digital data. These copper wires were
originally designed for voice frequencies (roughly 300 to 3400 Hz) but are now carrying
digital signals with frequencies extending to several million Hz. The wires attenuate higher
frequencies much more than lower frequencies, and different frequencies travel at
different speeds through the wire. This creates significant distortion that must be
compensated for using sophisticated equalization techniques at the receiver.
Noise represents any unwanted electrical or electromagnetic energy that interferes with
the intended signal. Unlike attenuation and distortion, which are predictable and
consistent for a given transmission path, noise often has random or unpredictable
characteristics, making it one of the most challenging signal impairments to combat.
Thermal noise has a uniform spectral density across all frequencies, meaning it affects all
frequencies equally. This characteristic gives it the name “white noise” in analogy to white
light, which contains all visible frequencies equally. The noise power in a system is given
by the formula: N = k × T × B, where k is Boltzmann’s constant (1.38 × 10⁻²³ joules per
Kelvin), T is the absolute temperature in Kelvin, and B is the bandwidth in Hz.
Induced noise comes from external electromagnetic sources that couple energy into the
communications system. Power lines carrying alternating current at 50 or 60 Hz create
electromagnetic fields that can induce corresponding AC signals in nearby communications
cables. Electrical motors, fluorescent lights, and various electrical equipment generate
electromagnetic noise that can interfere with signals.
Lightning strikes create massive electromagnetic pulses that can induce voltage spikes in
communications systems over wide areas. Radio transmitters, including legitimate
broadcast stations, mobile phones, and wireless networks, create electromagnetic fields
that can be picked up by communications cables acting as unintentional antennas. Even
the switching circuits inside digital equipment generate electromagnetic noise that can
affect nearby systems.
The severity of induced noise depends on several factors. Proximity to the noise source
matters significantly. A communications cable running parallel to a power line for a long
distance will pick up much more power line noise than a cable that crosses the power line
perpendicularly at one point. The frequency of the noise relative to the communications
signal affects how much it interferes. Shielding and grounding practices substantially affect
noise immunity.
There are two types of crosstalk. Near-end crosstalk (NEXT) occurs when the interfering
signal is measured at the same end of the cable as the transmitter creating the
interference. Far-end crosstalk (FEXT) occurs when the interfering signal is measured at the
opposite end of the cable from the interfering transmitter.
In a twisted pair Ethernet cable, four pairs of wires carry signals in the same cable jacket.
When data transmits on one pair, the changing electromagnetic fields around those wires
induce small currents in the adjacent pairs. If this crosstalk is strong enough, it can cause
errors in the data being transmitted on those adjacent pairs. Cable manufacturers combat
crosstalk through careful design. The twisting of wire pairs causes the crosstalk from each
twist to partially cancel the crosstalk from adjacent twists. Different pairs are twisted at
different rates to reduce crosstalk between them. Higher-quality cables use additional
shielding and separation between pairs.
Telephone systems provide a classic example of crosstalk. In older telephone systems, you
might occasionally hear fragments of other conversations in the background of your call.
This phenomenon occurred because signals from other calls on nearby wire pairs in the
telephone cable coupled into your connection through crosstalk. Modern digital telephone
systems with better cable design and signal processing have largely eliminated this
problem.
Impulse Noise:
Impulse noise consists of sudden, brief bursts of high-amplitude noise. Unlike thermal
noise, which is continuous and relatively uniform, impulse noise appears as sharp spikes of
energy. These spikes can be caused by lightning strikes, switching of large electrical loads,
arc welding, electrical arcing in poorly maintained equipment, or various other sources.
The challenge with impulse noise is that it can be extremely high amplitude even though it
is brief. A noise spike might be thousands of times stronger than the desired signal,
completely overwhelming it during the duration of the spike. Even though the spike might
last only microseconds, it can corrupt multiple bits of data.
For example, consider a network transmitting data at 100 megabits per second. At this
rate, one bit takes 10 nanoseconds to transmit. An impulse noise spike lasting one
microsecond would corrupt 100 bits of data. If those bits are part of a critical control
message or file transfer, the consequences could be significant.
Networks employ various strategies to combat noise. Shielding cables and equipment
reduces induced noise. Using twisted pair cables with proper twist rates minimizes
crosstalk. Differential signaling, where information is encoded as the difference between
two signals, cancels out common-mode noise that affects both signals equally. Error
detection codes allow receivers to determine when received data has been corrupted by
noise. Error correction codes can reconstruct the original data even when some bits are
corrupted. Increasing signal power relative to noise improves the signal-to-noise ratio,
making communication more reliable.
Bandwidth is one of the most commonly discussed yet frequently misunderstood concepts
in data communications. The term has different precise meanings depending on whether
we are discussing analog or digital communications.
The relationship between analog bandwidth (frequency range) and digital bandwidth
(data rate) is given by fundamental theorems in information theory. The Shannon-Hartley
theorem states that the maximum data rate of a channel is: C = B × log₂(1 + S/N), where C
is the channel capacity in bits per second, B is the bandwidth in Hertz, and S/N is the
signal-to-noise ratio. This theorem reveals that both bandwidth and signal quality affect
how much data can be transmitted.
Protocol overhead reduces throughput because not all transmitted bits carry user data.
Every data packet includes headers containing addressing and control information. Error
detection and correction codes add extra bits. Acknowledgment messages sent by
receivers to confirm data receipt consume bandwidth without carrying new data. These
overheads typically reduce throughput to 70-90% of the raw bandwidth, depending on the
protocols used.
Propagation speed refers to how fast a signal travels through a transmission medium. No
signal can travel faster than the speed of light in vacuum, approximately 300,000
kilometers per second or 186,000 miles per second. However, signals in physical media
always travel slower than this theoretical maximum.
Electrical signals in copper cables travel at approximately 200,000 kilometers per second,
roughly two-thirds the speed of light. This reduction occurs because the electromagnetic
fields carrying the signal interact with the copper conductors and the insulation
surrounding them, slowing the signal. The exact speed depends on the cable’s
construction and the electrical properties of its materials.
Light signals in fiber optic cables travel at approximately 200,000 kilometers per second in
typical fiber, again about two-thirds the speed of light in vacuum. This reduction occurs
because the glass or plastic fiber has a refractive index greater than 1, which slows light
traveling through it.
Radio waves in air or vacuum travel at essentially the speed of light, but they may take
indirect paths, especially when reflected by the ionosphere or relayed through satellites,
effectively reducing their apparent speed.
Propagation time is the time required for a signal to travel from the transmitter to the
receiver. It is calculated by dividing the distance by the propagation speed: Propagation
Time = Distance / Propagation Speed.
Transmission time represents how long it takes to physically push all the bits of a data unit
onto the transmission medium. This concept is distinct from propagation time.
Transmission time depends on the size of the data and the bandwidth of the channel,
calculated as: Transmission Time = Data Size / Bandwidth.
Consider sending a 1500-byte packet (a common size for Ethernet packets) over a 100
Mbps Ethernet connection. Converting to consistent units: 1500 bytes = 12,000 bits.
Transmission time = 12,000 bits / 100,000,000 bits per second = 0.00012 seconds = 0.12
milliseconds = 120 microseconds.
This calculation tells us it takes 120 microseconds to completely transmit the packet onto
the cable. This is separate from how long it takes the packet to travel to its destination
(propagation time). The first bit of the packet begins propagating immediately, but the last
bit is not transmitted until 120 microseconds later.
The relationship between transmission time and propagation time is important for
understanding network behavior. In high-speed, short-distance networks, transmission
time often dominates. In long-distance networks, propagation time often dominates. The
total latency is the sum: Total Latency = Transmission Time + Propagation Time +
Processing Delays + Queuing Delays.
Bandwidth: 1 Gbps
The total latency would be at least 36 milliseconds, plus any processing and queuing
delays in the network equipment along the path. Notice that propagation time dominates
in this scenario. If we increased the bandwidth to 10 Gbps, transmission time would
decrease to 0.8 milliseconds, but propagation time would remain 28 milliseconds. This
example illustrates why increasing bandwidth doesn’t necessarily make long-distance
communications much faster—physics imposes fundamental limits.
For example, consider an AM radio station broadcasting at 1000 kHz (1 MHz). Radio waves
travel at the speed of light, approximately 300,000 kilometers per second. The wavelength
would be: 300,000 km/s / 1,000,000 cycles/s = 0.3 km = 300 meters.
In contrast, consider a WiFi signal at 2.4 GHz (2.4 billion Hz). The wavelength would be:
300,000 km/s / 2,400,000,000 cycles/s = 0.000125 km = 12.5 centimeters.
This short wavelength allows WiFi antennas to be small—just a few centimeters long. The
shorter wavelength also explains some of WiFi’s characteristics. Shorter wavelengths are
more easily blocked by obstacles and have more difficulty penetrating walls, which is why
WiFi signals don’t travel as far as AM radio signals.
Wavelength also matters for fiber optic communications. Different wavelengths of light
experience different amounts of attenuation in optical fiber. Modern fiber optic systems
use specific wavelength “windows” where attenuation is minimal. Common windows
include 1310 nm and 1550 nm wavelengths, which experience very low attenuation in
silica fiber.
3. COMMUNICATION TECHNIQUES
The fundamental question of how to physically transmit data from one device to another
has two basic answers: send all bits simultaneously (parallel) or send bits one after
another (serial). Each approach has distinct advantages and disadvantages that make it
suitable for different applications.
The most intuitive advantage of parallel communication is speed. If we can send 8 bits
simultaneously in the time it takes serial communication to send 1 bit, parallel
communication is 8 times faster, assuming the same signaling rate on each wire. This
parallelism means that increasing the number of parallel channels directly increases the
data transfer rate.
Early computer systems extensively used parallel communication for internal connections
and some external interfaces. The parallel printer port (also called the Centronics interface
or LPT port) that was standard on personal computers from the 1980s through early 2000s
exemplified parallel external communication. This interface used 8 data lines to transfer
one byte at a time, plus additional lines for control signals and ground references, typically
requiring 25-pin connectors.
However, parallel communication faces several serious limitations that have led to serial
communication dominating in modern external connections and longer-distance
communications.
Manufacturing variations mean that no two wires have exactly identical electrical
characteristics. One wire might have slightly more capacitance than another, causing
signals on that wire to travel slightly slower. Temperature variations can affect different
wires differently, especially if they pass through different physical environments. Even the
physical length of each wire can vary slightly, causing different propagation delays.
These timing differences are called clock skew. At slow signaling rates, clock skew is
negligible—variations of a few nanoseconds don’t matter when each bit lasts
microseconds. However, as we increase the signaling rate to achieve higher speeds, clock
skew becomes problematic. If bits are being transmitted every 10 nanoseconds, but
different wires have timing variations of 5 nanoseconds, bits might arrive at different
times, causing some bits to be sampled in the wrong bit period. This limitation makes it
difficult to increase the signaling rate on parallel interfaces beyond a certain point.
When multiple wires carrying signals run parallel to each other, as they must in parallel
communication, they inevitably interfere with each other through crosstalk. The
electromagnetic fields created by current flowing in one wire induce unwanted currents in
adjacent wires. With 8 or more wires carrying different signals in close proximity, crosstalk
can become severe.
The severity of crosstalk increases with frequency. Higher signaling rates mean more
rapidly changing currents, which create stronger electromagnetic fields. This frequency
dependency means that parallel interfaces face increasing crosstalk problems as we try to
make them faster. Attempting to reduce crosstalk through careful cable design, shielding,
and spacing increases cost and cable bulk.
Parallel communication requires a separate physical conductor for each bit being
transmitted simultaneously, plus additional conductors for ground references and control
signals. An 8-bit parallel interface might require 20 or more total conductors, each needing
its own physical wire in the cable and its own pin in the connectors. This requirement
makes parallel cables thick, inflexible, and expensive. The connectors are large, expensive
to manufacture, and prone to damage because of their many pins.
Distance Limitations:
The combination of clock skew, crosstalk, and signal quality issues severely limits the
distance over which parallel communication can reliably operate. Practical parallel
interfaces are typically limited to a few meters. The old parallel printer cables were
officially limited to about 3 meters, though longer cables sometimes worked in practice.
Internal computer busses operate over distances of centimeters. These distance
limitations make parallel communication unsuitable for any kind of networking beyond
very short connections.
Serial communication transmits data bits one after another through a single channel.
Rather than requiring multiple wires for multiple bits, a serial interface needs only one
wire (or one pair of wires) for data transmission in one direction. To send the same 8 bits
that parallel communication sends simultaneously, serial communication sends them in
sequence, one after another.
At first glance, serial communication appears slower than parallel. If parallel can send 8
bits in the time serial sends 1 bit, parallel seems 8 times faster. However, this simple
analysis ignores the practical limitations of parallel communication. In practice, serial
communication can achieve much higher signaling rates precisely because it avoids the
clock skew and crosstalk problems that plague parallel interfaces.
Modern high-speed serial interfaces can actually transmit data much faster than parallel
interfaces. USB 3.0, a serial interface, operates at 5 Gbps. Modern Ethernet, also serial,
operates at 1 Gbps, 10 Gbps, or even 100 Gbps. These speeds far exceed what was ever
achieved with parallel interfaces like the parallel printer port, which peaked at about 2
MB/s (16 Mbps).
This speed advantage exists because serial communication can use much higher signaling
rates. With only one signal path to worry about, timing is much simpler. There is no clock
skew between different data bits because they are sent sequentially rather than
simultaneously. Differential signaling techniques, where data is encoded as the difference
between two wires rather than as an absolute voltage level, provide excellent noise
immunity and allow very high signaling rates.
Serial communication requires far fewer conductors than parallel. A USB cable contains
only a few wires. An Ethernet cable contains four twisted pairs (eight wires total). These
cables are thin, flexible, and inexpensive compared to parallel cables. The connectors are
small, inexpensive, and robust.
The reduced crosstalk in serial communication, especially when using twisted pair cables
with differential signaling, allows much longer cable runs. USB cables can be 5 meters
long. Ethernet cables can be 100 meters long. Fiber optic serial communications can span
thousands of kilometers. These distance capabilities make serial communication suitable
for networking applications.
The history of computer interfaces over the past few decades has been a story of serial
communication progressively replacing parallel communication for external connections.
The parallel printer port has been replaced by USB. Parallel ATA (IDE) hard drive interfaces
have been replaced by Serial ATA. Parallel SCSI has been replaced by Serial Attached SCSI.
The PCI bus has been replaced by PCI Express, which uses serial signaling despite the
multiple lanes.
This transition occurred because serial communication technology matured to the point
where it could achieve higher speeds than parallel, while being cheaper, more reliable,
and more flexible. The initial intuition that parallel must be faster than serial proved false
once practical engineering considerations were taken into account.
Today, parallel communication persists primarily within integrated circuits and on circuit
boards where distances are extremely short (millimeters to centimeters), and the
advantages of parallelism can be realized without encountering severe clock skew,
crosstalk, or distance limitations. For any connection outside a device, serial
communication has become dominant.
Beyond the question of parallel versus serial transmission, we must address another
fundamental aspect of communication: how do the sender and receiver stay synchronized
so the receiver knows when each bit begins and ends? Two approaches exist:
asynchronous communication and synchronous communication.
1. Idle State: When no data is being transmitted, the communication line remains at
the marking state (binary 1, typically a negative voltage in RS-232 systems or a high
voltage in TTL systems).
2. Start Bit: To signal the beginning of a character, the transmitter sends a start bit by
transitioning the line to the spacing state (binary 0). This transition from the idle
marking state to the spacing state signals the receiver that a character is beginning.
The receiver detects this transition and begins timing from this moment.
3. Data Bits: Immediately following the start bit, the transmitter sends the data bits of
the character, typically 5, 6, 7, or 8 bits depending on the configuration. Modern
systems typically use 8 data bits. Each bit lasts for a specific duration determined
by the agreed-upon baud rate.
4. Parity Bit (Optional): After the data bits, an optional parity bit may be transmitted
for simple error detection. The parity bit is set to make the total number of 1 bits
either even (even parity) or odd (odd parity).
5. Stop Bits: Finally, the transmitter sends one or more stop bits by returning the line
to the marking state. The stop bits ensure adequate time for the receiver to process
the character and prepare for the next start bit. Systems might use 1, 1.5, or 2 stop
bits.
After the stop bits, the line returns to the idle state, and it may remain idle for an
indefinite period until the next character is transmitted.
The receiver and transmitter must both be configured to the same baud rate (bits per
second), but they do not need to maintain long-term synchronization. Each character
transmission is independently synchronized. When the receiver detects the start bit
transition, it starts a timer. Based on the known baud rate, the receiver knows exactly
when to sample the line to read each subsequent bit.
For example, if the baud rate is 9600 bps, each bit lasts approximately 104 microseconds.
When the receiver detects the start bit, it waits 156 microseconds (1.5 bit periods) to
sample the first data bit, ensuring it samples in the middle of the bit period rather than at
the edges where transitions occur. It then samples every 104 microseconds for each
subsequent bit.
Small timing discrepancies between the transmitter’s and receiver’s clocks are acceptable
because synchronization lasts only for one character (typically 10 bit periods). Even if the
clocks differ by 5%, the accumulated error over 10 bit periods is only half a bit period, not
enough to cause misinterpretation. After each character, synchronization resets with the
next start bit.
Consider transmitting the ASCII character ‘A’ (binary 01000001) using 8 data bits, no parity,
and 1 stop bit (a common configuration called “8-N-1”):
The complete transmission sequence on the line would be: 1 (idle), 0 (start), 1, 0, 0, 0, 0, 0,
1, 0 (data bits), 1 (stop), 1 (idle).
Applications and Advantages of Asynchronous Communication:
Serial ports on computers, traditionally called COM ports or RS-232 ports, use
asynchronous communication. These ports have been used to connect mice, modems,
terminals, and various other devices. While less common on modern computers, they
remain prevalent in industrial equipment, networking equipment, and embedded systems
for configuration and monitoring.
The primary disadvantage is inefficiency. Every character requires at least two bits of
overhead (start and stop bits) in addition to the data bits. With an 8-N-1 configuration, 10
bits are transmitted to convey 8 bits of data, representing 20% overhead. For very high-
speed communication or when transmitting large amounts of continuous data, this
overhead becomes significant.
One approach uses a separate physical wire to carry a clock signal from the transmitter to
the receiver. The transmitter sends both the data signal and a clock signal. The receiver
uses the clock signal to determine exactly when to sample the data line. This approach is
simple and reliable but requires an additional conductor, limiting its use to short-distance
connections.
Many internal computer busses use separate clock signals. For example, the SPI (Serial
Peripheral Interface) bus used to connect integrated circuits on a circuit board includes
separate clock and data lines.
Embedded Clock:
A more sophisticated approach embeds the timing information within the data signal itself
through clever encoding schemes. Manchester encoding, used in traditional Ethernet,
guarantees at least one transition in the middle of every bit period. These regular
transitions allow the receiver to extract the clock timing from the data signal itself without
requiring a separate clock wire.
Other encoding schemes like 4B/5B (used in Fast Ethernet) encode every 4 bits of data as a
5-bit symbol chosen to ensure sufficient transitions for clock recovery. These encoding
schemes introduce some overhead but allow completely self-clocked operation without a
separate clock conductor.
Synchronization Preambles:
For example, Ethernet frames begin with a preamble of alternating 1s and 0s that provides
numerous transitions for the receiver’s clock recovery circuit to synchronize with. Only
after this preamble does the actual frame data begin.
Once synchronized, data flows continuously as a stream of bits without start and stop bits
separating characters. The receiver remains synchronized and samples the data at the
appropriate times based on the recovered clock.
Large blocks of data can be transmitted efficiently because the overhead of start and stop
bits is eliminated. Instead of 20% overhead per character, synchronous protocols have
much lower overhead, typically just a frame header and trailer for an entire block of data
containing hundreds or thousands of bytes.
Applications of Synchronous Communication:
The efficiency of synchronous communication is its primary advantage. Without start and
stop bits for every byte, the overhead is minimal. Protocols can transmit large frames
containing thousands of bytes with only a small header and trailer, achieving efficiency
above 95% for large frames.
Higher speeds are achievable because continuous synchronization allows the use of
sophisticated clock recovery and equalization techniques. Modern Ethernet achieves
multi-gigabit speeds through synchronous transmission combined with advanced signal
processing.
Synchronous communication is less suitable for bursty, irregular data patterns. The
overhead of establishing synchronization for each transmission makes it inefficient for
sending small, isolated bursts of data with long idle periods between them. For such
patterns, asynchronous communication may be more appropriate despite its per-character
overhead.
Modern networking has converged on synchronous communication for virtually all high-
speed, high-volume applications, while asynchronous communication persists in
specialized applications where simplicity is paramount or where data arrives in sporadic,
irregular patterns.
This covers the first three major sections in extensive detail. Would you like me to
continue with the remaining sections (Communication Modes, Multiplexing Techniques, IP
Addressing, Transmission Media, and Network Security)?
Comprehensive Computer Networks Study Guide for Your Exam
I’ll provide detailed information on each important topic, starting from the basics and
building up to more complex concepts.
1. BASICS OF NETWORKING
Client-Server Architecture:
Centralized model
Peer-to-Peer Architecture:
Decentralized model
1. Bus Topology
2. Star Topology
3. Ring Topology
4. Mesh Topology
5. Hybrid Topology
o Combination of two or more topologies
Analog Signals:
Continuous waveform
Digital Signals:
Key Differences:
1. Attenuation
2. Distortion
3. Noise
Types of noise:
Throughput:
Bandwidth:
Propagation Time:
Transmission Time:
Wavelength:
3. COMMUNICATION TECHNIQUES
Parallel Communication:
Disadvantages:
Advantages:
o Long-distance transmission
o Less crosstalk
Asynchronous Communication:
Characteristics:
o Simple implementation
Synchronous Communication:
Synchronized timing
Characteristics:
Synchronization methods:
Examples:
o Television broadcasting
o Radio broadcasting
o Keyboard to computer
Examples:
o Walkie-talkies
o CB radios
Advantages:
Examples:
o Telephone conversations
o Modern Ethernet
o Video conferencing
Advantages:
Better performance
Disadvantages:
More complex
5. MULTIPLEXING TECHNIQUES
Multiplexing is the technique of combining multiple signals into one signal over a shared
medium, enabling efficient use of bandwidth.
Concept:
How it works:
1. Available bandwidth divided into sub-bands
Applications:
Television broadcasting
Cable television
Advantages:
Simple implementation
No synchronization needed
Disadvantages:
Susceptible to crosstalk
Concept:
Types:
How it works:
1. Multiple laser sources with different wavelengths
Applications:
Long-distance telecommunications
Advantages:
Concept:
Types:
Synchronous TDM:
How it works:
Applications:
Digital broadcasting
Satellite communications
Advantages:
Digital implementation
Disadvantages:
Requires synchronization
6. IP ADDRESSING
IPv4 Address:
32-bit address
Written as four octets (8 bits each)
Class A:
First bit: 0
Host bits: 24
Class B:
First bits: 10
Host bits: 16
Networks: 16,384
Class C:
Host bits: 8
Networks: 2,097,152
Class D:
Class E:
Reserved Addresses:
Example in [Link]/24:
o Network: [Link]
o Broadcast: [Link]
Purpose:
Notation:
Calculation:
7. TRANSMISSION MEDIA
7.1 Classification
Transmission media is the physical path between transmitter and receiver in data
communication.
Types:
No shielding
More expensive
Characteristics:
Leased Lines:
Guaranteed bandwidth
High reliability
Variable bandwidth
Structure:
Insulating layer
Types:
Digital transmission
50-ohm impedance
75-ohm impedance
Characteristics:
Bandwidth: Up to 1 GHz
Advantages:
High bandwidth
Relatively inexpensive
Disadvantages:
Difficult installation
Bulkier cables
Principle:
Structure:
Types:
Higher cost
Higher bandwidth
Lower cost
Characteristics:
Weight: Lightweight
Advantages:
Highest bandwidth
Longest distances
No electromagnetic interference
Secure
Disadvantages:
Expensive
Difficult installation
1. Radio Waves:
Omnidirectional
Long-distance transmission
2. Microwaves:
Types:
3. Infrared:
Short range
Advantages:
Mobility
Easy installation
Good for difficult terrain
Disadvantages:
Lower security
Interference issues
Weather-dependent
Limited bandwidth
Network Protocol:
Key Functions:
Each layer:
Provides services to layer above
Types of threats:
1. Interruption:
Availability attack
2. Interception:
Confidentiality attack
3. Modification:
Integrity attack
4. Fabrication:
Authenticity attack
1. Confidentiality:
Encryption
2. Integrity:
Ensure data hasn’t been altered
Checksums, hashing
3. Authentication:
Verify identity
Passwords, certificates
4. Non-repudiation:
Digital signatures
5. Access Control:
Permissions, firewalls
1. Encryption:
2. Firewall:
Alerts administrators
Remote access
Attenuation: 10 log₁₀(P₁/P₂) dB
This comprehensive guide covers all major topics from your course. Focus on understanding
concepts rather than memorizing, and practice numerical problems for IP addressing and
signal calculations. Good luck with your exam!