0% found this document useful (0 votes)
12 views52 pages

Computer Network Notes

The document provides a comprehensive overview of computer networks, detailing their fundamental concepts, importance, essential components, architecture models, and topologies. It explains how networks facilitate resource sharing, data exchange, communication, and remote access, while also discussing the roles of nodes, switches, routers, and protocols. Additionally, it covers various network architectures like client-server and peer-to-peer, as well as different topologies such as bus, star, and ring, highlighting their advantages and limitations.

Uploaded by

kuldeepbehera431
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views52 pages

Computer Network Notes

The document provides a comprehensive overview of computer networks, detailing their fundamental concepts, importance, essential components, architecture models, and topologies. It explains how networks facilitate resource sharing, data exchange, communication, and remote access, while also discussing the roles of nodes, switches, routers, and protocols. Additionally, it covers various network architectures like client-server and peer-to-peer, as well as different topologies such as bus, star, and ring, highlighting their advantages and limitations.

Uploaded by

kuldeepbehera431
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

I’ll provide detailed explanations for each topic with proper definitions, examples, and

comprehensive coverage without using bullet points.

1. FUNDAMENTALS OF COMPUTER NETWORKS

1.1 Understanding Computer Networks - A Complete Introduction

A computer network represents a sophisticated system of interconnected computing


devices that communicate with each other to share resources, exchange data, and enable
collaborative operations. At its core, a computer network consists of two or more
computers connected through physical cables or wireless connections, allowing them to
transmit information between each other using agreed-upon communication protocols.

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.

The Comprehensive Definition of a Computer Network:

A computer network is formally defined as a collection of autonomous computers and


peripheral devices interconnected by a single technology that enables them to exchange
data and share resources. The term “autonomous” indicates that no computer in the
network can forcibly start, stop, or control another computer. The phrase “single
technology” refers to the communication protocols and physical media that facilitate data
exchange between devices.

1.2 The Critical Importance and Purposes of Computer Networks

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.

Resource Sharing and Economic Efficiency:

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.

Data and Information Sharing:

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.

Communication and Collaboration:

Computer networks have revolutionized human communication. Email, instant messaging,


video conferencing, and collaborative tools all depend on network connectivity. These
communication tools have transformed how businesses operate, enabling global teams to
work together in real-time despite being separated by thousands of miles. A project
manager in New York can conduct a video conference with developers in India, designers
in London, and clients in Tokyo, all simultaneously sharing screens and documents. This
level of collaboration would be impossible without computer networks.

Remote Access and Flexibility:

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.

Reliability Through Redundancy:

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.

1.3 Essential Components of Computer Networks


Understanding the physical and logical components that make up computer networks is
crucial for comprehending how networks function.

Nodes and Hosts - The Endpoints of Communication:

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.

Network Interface Cards - The Gateway to the Network:

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.

Switches - The Intelligent Traffic Directors:

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.

Routers - The Network Interconnectors:

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 - The Physical Pathways:

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.

Network Protocols - The Rules of Communication:

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.

Client-Server Architecture - The Centralized Model:

Client-server architecture represents a centralized approach to network organization


where computers assume one of two roles: clients or servers. Servers are powerful
computers dedicated to providing specific services or resources, while clients are the
computers used by individual users to request and utilize those services.

In a typical corporate environment using client-server architecture, file servers store


company documents and databases, email servers handle all email communication, web
servers host internal websites and applications, and print servers manage printing
resources. Employee workstations act as clients, connecting to these servers to access the
resources they need.

The client-server model offers numerous advantages. Centralization makes administration


and security management much simpler because administrators can focus their efforts on
securing and maintaining a relatively small number of servers rather than hundreds or
thousands of individual client computers. Backup procedures are more efficient because
critical data resides on servers rather than being scattered across many individual
workstations. Software updates and security patches can be deployed from central servers
rather than requiring individual installation on each computer.

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.

Peer-to-Peer Architecture - The Distributed Model:

In peer-to-peer (P2P) architecture, no dedicated servers exist. Instead, every computer on


the network can function both as a client and as a server, sharing its resources with other
computers while also accessing resources shared by others. This decentralized approach
has both advantages and limitations.

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.

1.5 Network Topologies - The Physical Arrangement of Networks

Network topology refers to the physical or logical arrangement of devices in a network.


The topology chosen for a network significantly impacts its performance, reliability, cost,
and scalability. Understanding these topologies is essential for network design and
troubleshooting.

Bus Topology - The Linear Configuration:

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 - The Centralized Configuration:

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.

Ring Topology - The Circular Configuration:

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.

Ring topology offers predictable performance because the token-passing mechanism


ensures each device gets a turn to transmit. There are no collisions, and under heavy
network load, ring networks can actually outperform Ethernet networks of similar speeds.
The ring structure also provides some built-in redundancy in dual-ring configurations,
where data can travel in either direction around the ring.

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.

Mesh Topology - The Fully Connected Configuration:

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.

2. SIGNALS AND TRANSMISSION FUNDAMENTALS

2.1 Understanding Analog and Digital Signals

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.

Analog Signals - Continuous Wave Representation:

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.

In telecommunications, analog signals are represented mathematically as sine waves,


which can be completely described by three fundamental characteristics: amplitude,
frequency, and phase. The amplitude represents the strength or intensity of the signal,
measured as the maximum displacement from the zero point. In audio communications,
amplitude corresponds to volume. A signal with greater amplitude is stronger or louder,
while a signal with smaller amplitude is weaker or quieter.

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 - Discrete Value Representation:

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.

A digital signal can be visualized as a series of rectangular pulses. When representing a


binary 1, the signal voltage might be at +5 volts. When representing a binary 0, the voltage
might be at 0 volts. The signal transitions sharply between these two levels rather than
varying smoothly. This characteristic makes digital signals fundamentally different from
analog signals.
Consider how a computer stores and transmits text. The letter ‘A’ is represented by the
binary number 01000001 in ASCII encoding. When transmitting this letter, the network
interface card generates a sequence of eight voltage pulses corresponding to these eight
bits: low, high, low, low, low, low, low, high. The receiving device samples these voltage
levels and reconstructs the binary pattern, which it then interprets as the letter ‘A’.

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.

Storage and processing of digital information is straightforward because digital data


consists of discrete values that can be represented exactly. Copying a digital file produces a
perfect duplicate with no quality loss, unlike copying an analog recording. Modern
computers can easily process, compress, encrypt, and manipulate digital data using logical
operations.

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.

The Digital Revolution in Telecommunications:


The transition from analog to digital telecommunications represents one of the most
significant technological shifts of the late 20th century. Traditional telephone networks
transmitted voice as analog signals. Modern digital telephone systems convert voice to
digital data immediately at the telephone, transmit it digitally through the network, and
convert it back to analog only at the final destination for the human listener.

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.

2.2 Signal Impairments - Understanding Transmission Problems

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 - The Loss of Signal Strength:

Attenuation refers to the progressive weakening of a signal as it travels through a


transmission medium. This phenomenon affects all types of signals, both analog and
digital, and occurs in all transmission media, though to different degrees.

The physics behind attenuation is straightforward. As an electrical signal travels through a


copper wire, the electrons carrying that signal encounter resistance from the metal atoms
in the wire. This resistance converts some of the signal energy into heat, gradually
reducing the signal strength. The longer the distance traveled, the more energy is lost.
Similarly, when light signals travel through fiber optic cables, minute imperfections in the
glass absorb small amounts of light energy. Wireless signals spreading out through space
naturally become weaker as they spread over larger areas.

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.

Consider a practical example: a network engineer is running an Ethernet cable from a


server room to an office 90 meters away. Ethernet standards specify that twisted pair
cables should not exceed 100 meters in length. This limitation exists because of
attenuation. At 100 meters, the signal has weakened to the point where it might be
difficult for the receiving equipment to reliably distinguish between the voltage levels
representing binary 1s and 0s. Beyond this distance, the error rate would become
unacceptably high.

Different transmission media exhibit different attenuation characteristics. Fiber optic


cables have very low attenuation, allowing signals to travel many kilometers before
needing amplification. High-quality coaxial cables have moderate attenuation. Twisted
pair cables have higher attenuation and thus shorter maximum distances. Wireless signals
experience significant attenuation, particularly when passing through obstacles like walls
or operating at higher frequencies.

Networks employ several strategies to combat attenuation. Amplifiers boost signal


strength for analog signals, though they also amplify any noise present in the signal.
Repeaters completely regenerate digital signals, creating clean new signals based on the
weakened received signal. Switching to media with lower attenuation characteristics, such
as upgrading from twisted pair cable to fiber optic cable, extends transmission distances.
Higher-quality cables with better conductors and shielding reduce attenuation rates.

Distortion - The Alteration of Signal Shape:

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.

The most common form of distortion in data communications is frequency-dependent


distortion, where different frequency components of a signal travel at different speeds
through the medium or are attenuated by different amounts. This phenomenon creates
particular problems for complex signals that contain multiple frequency components.

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.

Phase distortion occurs when different frequency components of a signal experience


different time delays as they travel through the medium. Even if all frequencies are
attenuated equally, if they arrive at different times, the signal is distorted. Imagine
transmitting a complex musical chord through a communications channel. If the low notes
arrive earlier or later than the high notes, the chord sounds different at the receiving end
even if all the notes are the same volume.

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.

Networks compensate for distortion through various techniques. Equalization involves


using filters at the receiver that apply opposite distortion to cancel out the channel’s
distortion. Adaptive equalizers automatically adjust themselves to compensate for varying
channel conditions. Higher-quality transmission media with more uniform frequency
response reduces distortion. Lower transmission rates allow more time for each symbol,
reducing the impact of frequency-dependent delays. Advanced modulation techniques
spread information across multiple frequencies in ways that are less sensitive to
distortion.

Noise - The Unwanted Signal Interference:

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 (Johnson-Nyquist Noise):


Thermal noise, also called Johnson noise or white noise, arises from the random thermal
motion of electrons in conductors and semiconductors. At any temperature above
absolute zero, electrons in a conductor are constantly moving randomly due to their
thermal energy. This random motion creates small random voltage fluctuations that
appear as noise in electrical circuits.

Thermal noise is present in all electronic communications systems and cannot be


eliminated. It sets a fundamental limit on the sensitivity of receivers and the minimum
signal strength required for reliable communication. The amount of thermal noise is
proportional to temperature and bandwidth. Higher temperatures increase thermal
motion, increasing noise. Wider bandwidth means the system is sensitive to a broader
range of frequencies, each contributing noise.

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.

For example, consider a receiver operating at room temperature (approximately 300


Kelvin) with a bandwidth of 1 MHz. The thermal noise power would be: N = (1.38 × 10⁻²³) ×
300 × (1 × 10⁶) = 4.14 × 10⁻¹⁵ watts. While this seems like an extremely small amount of
power, signals can be even weaker, particularly after traveling long distances. A satellite
signal received on Earth might have a power of only 10⁻¹⁶ watts, making thermal noise a
significant challenge.

Induced Noise (External Electromagnetic Interference):

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.

Consider an example from an industrial environment. A factory floor contains heavy


machinery, welding equipment, variable-speed motor drives, and numerous other
electromagnetic noise sources. Network cables running through this environment without
proper shielding would experience significant noise, causing frequent communication
errors. Properly shielded cables with good grounding practices can operate reliably even in
such harsh electromagnetic environments.

Crosstalk - Signal Coupling Between Channels:

Crosstalk occurs when a signal transmitted on one communications channel creates an


unwanted effect on another channel. This phenomenon commonly occurs in multi-
conductor cables where multiple wire pairs run parallel to each other. The signal on one
pair creates electromagnetic fields that induce corresponding signals in adjacent pairs.

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.

2.3 Performance Metrics in Data Communications

Understanding how to measure and characterize network performance is essential for


designing, managing, and troubleshooting communications systems. Several key metrics
describe different aspects of performance.

Bandwidth - The Capacity for Data Transfer:

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.

In analog communications, bandwidth refers to the range of frequencies that a channel


can carry, measured in Hertz. For example, traditional analog telephone lines were
designed to carry frequencies from approximately 300 Hz to 3400 Hz, giving them a
bandwidth of 3100 Hz. This bandwidth was chosen because it adequately carries the
frequencies present in human speech, making conversations intelligible while minimizing
the amount of frequency spectrum required for each phone call. FM radio stations are
assigned frequency bands with approximately 200 kHz of bandwidth, which is sufficient to
carry high-fidelity audio.

In digital communications, bandwidth typically refers to the data transfer capacity of a


channel, measured in bits per second (bps). When your Internet service provider
advertises “100 megabit bandwidth,” they mean the connection can theoretically transfer
100 million bits of data per second. This usage of the term bandwidth is technically a data
rate rather than a frequency range, but the terms have become somewhat
interchangeable in common usage.

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.

Consider a practical example. A standard telephone line has approximately 3100 Hz of


bandwidth and a typical signal-to-noise ratio of about 30 dB (ratio of 1000:1). According to
the Shannon-Hartley theorem, the maximum theoretical data rate is: C = 3100 × log₂(1 +
1000) ≈ 3100 × 10 ≈ 31,000 bps. This calculation closely matches the 33.6 kbps maximum
speed of traditional telephone modems, showing that these modems were operating near
the theoretical limit of the telephone channel.

Throughput - The Actual Data Transfer Rate:

While bandwidth describes the theoretical capacity of a communications channel,


throughput describes the actual amount of data successfully transferred in practice.
Throughput is always less than or equal to bandwidth because various factors prevent the
theoretical maximum from being achieved.

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.

Network congestion significantly affects throughput. When multiple devices attempt to


use the same network resources simultaneously, they must share the available bandwidth.
A 100 Mbps Ethernet switch might be shared by 20 computers. If all 20 computers try to
transfer data simultaneously, each receives only a fraction of the total bandwidth. The
more loaded the network, the lower the throughput each individual user experiences.

Errors and retransmissions reduce throughput. When data is corrupted during


transmission, it must be retransmitted, consuming bandwidth without delivering new
data. In a noisy channel where 10% of packets require retransmission, the effective
throughput is reduced by approximately 10%. If conditions worsen and 50% of packets
require retransmission, throughput drops dramatically because the channel spends half its
time retransmitting old data.
For example, consider downloading a 100 MB file over a connection advertised as having
10 Mbps bandwidth. Theoretically, this should take: (100 megabytes × 8 bits/byte) / (10
megabits/second) = 80 seconds. In practice, the download might take 120 seconds or
more. The actual throughput might be only 6-7 Mbps due to protocol overheads, network
congestion, and other factors. This discrepancy between advertised bandwidth and actual
throughput is a common source of user frustration.

Propagation Speed and Propagation Time:

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.

For example, consider a transatlantic communications cable running 6000 kilometers


across the Atlantic Ocean. The propagation time would be: 6,000 kilometers / 200,000
kilometers per second = 0.03 seconds = 30 milliseconds. This 30 millisecond delay is the
absolute minimum latency for communication between the cable’s endpoints, determined
purely by physics. No amount of technology can reduce this fundamental propagation
delay without making the cable shorter or finding a faster transmission medium.

Satellite communications illustrate propagation delay dramatically. A geostationary


communications satellite orbits at approximately 36,000 kilometers altitude. A signal must
travel up to the satellite and back down, covering approximately 72,000 kilometers. At the
speed of light, this journey takes: 72,000 kilometers / 300,000 kilometers per second =
0.24 seconds = 240 milliseconds. This quarter-second delay is noticeable in satellite
telephone conversations, where you hear the other person’s response a quarter-second
after they speak, and they hear your response a quarter-second later. The round-trip delay
is nearly half a second, making conversations awkward.

Transmission Time - The Time to Put Data on the Channel:

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.

For example, sending a 1 MB file from New York to London:

 Distance: approximately 5600 km

 Bandwidth: 1 Gbps

 Propagation speed: 200,000 km/s

Transmission time = (1 megabyte × 8 bits/byte) / (1 gigabit/second) = 8 million bits / 1


billion bits/second = 0.008 seconds = 8 milliseconds

Propagation time = 5600 km / 200,000 km/s = 0.028 seconds = 28 milliseconds

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.

Wavelength - The Spatial Period of a Signal:


Wavelength represents the physical distance a signal travels during one complete cycle of
oscillation. This concept, while more commonly discussed in physics than in computer
networking, is important for understanding antenna design, wireless communications, and
the behavior of signals on transmission lines.

Wavelength is calculated as: Wavelength = Propagation Speed / Frequency.

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.

This 300-meter wavelength explains why AM radio antennas are so large—efficient


antennas are typically a significant fraction of a wavelength long. A quarter-wavelength
antenna for this frequency would be 75 meters tall.

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.

Understanding these performance metrics allows network engineers to make informed


decisions about network design, troubleshoot performance problems, and set realistic
expectations for network behavior under various conditions.

3. COMMUNICATION TECHNIQUES

3.1 Parallel Communication vs Serial Communication

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.

Parallel Communication - Simultaneous Transmission:

Parallel communication transmits multiple bits simultaneously through multiple physical


channels. In its simplest form, if we want to send 8 bits of data, we would use 8 separate
wires, one for each bit. All 8 bits travel through their respective wires at the same time,
arriving at the destination simultaneously.

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.

Inside computers, parallel communication remains common for short-distance, high-speed


connections. The internal bus connecting a processor to memory modules uses parallel
communication with typically 64 or more separate data lines, allowing an entire 64-bit
word to be transferred in one clock cycle. The PCI Express bus, despite its name suggesting
serial communication, actually uses multiple parallel lanes, with each lane itself using
serial signaling.

However, parallel communication faces several serious limitations that have led to serial
communication dominating in modern external connections and longer-distance
communications.

The Clock Skew Problem:

The most fundamental challenge in parallel communication is maintaining synchronization


across multiple channels. When 8 bits are transmitted simultaneously on 8 separate wires,
we expect them to arrive simultaneously. However, in reality, the bits on different wires
may arrive at slightly different times due to several factors.

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.

Crosstalk and Interference:

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.

Cost and Complexity:

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 - Sequential Transmission:

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.

Advantages of Serial Communication:

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 Transition from Parallel to Serial:

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.

3.2 Synchronous and Asynchronous Communication

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.

Asynchronous Communication - Self-Contained Character Transmission:

Asynchronous communication, despite its name suggesting a lack of timing coordination,


actually refers to a specific method of achieving synchronization. In asynchronous
communication, data is transmitted in small groups (typically individual characters or
bytes), with each group being self-contained and independently synchronized.

The fundamental characteristic of asynchronous communication is that there is no


continuous timing relationship between the sender and receiver. The sender can transmit
a character at any time, with variable and unpredictable gaps between characters. The
receiver does not continuously monitor the communication line expecting data at specific
times. Instead, the communication line rests at a known idle state (typically a high voltage
representing a binary 1), and the beginning of each character is marked by a special start
condition.

Structure of Asynchronous Transmission:

When a device wants to transmit a character asynchronously, it follows a specific


sequence:

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.

Timing and Synchronization in Asynchronous Communication:

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.

Example of Asynchronous Communication:

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”):

1. The line starts at idle (high/marking)

2. Start bit: transition to low (0) for one bit period

3. Data bits (transmitted least significant bit first): 1, 0, 0, 0, 0, 0, 1, 0

4. Stop bit: transition to high (1) for one bit period

5. Return to idle state

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:

Asynchronous communication is particularly well-suited for situations where data appears


irregularly. A keyboard provides a perfect example. When a user types, characters are
generated at unpredictable times with varying gaps between them. A user might type
several characters rapidly, then pause to think, then type more characters. Asynchronous
communication handles this variability naturally without requiring continuous
synchronization.

The simplicity of asynchronous communication is a major advantage. The transmitter and


receiver only need to agree on the baud rate, data format, and framing (number of data
bits, parity, stop bits). No complex clock recovery or continuous synchronization
mechanism is needed. This simplicity makes asynchronous communication easy to
implement in hardware and software.

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.

Disadvantages of Asynchronous Communication:

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.

The maximum reliable speed of asynchronous communication is limited by the


accumulated timing errors over the duration of one character. While modern crystal-
controlled oscillators can maintain very accurate timing, the asynchronous approach
inherently wastes the potential advantages of highly accurate timing. Synchronous
communication can achieve higher speeds by maintaining continuous synchronization.

Synchronous Communication - Continuous Synchronized Transmission:

Synchronous communication takes a fundamentally different approach. Rather than


synchronizing separately for each character, the sender and receiver maintain continuous
synchronization, allowing data to be transmitted as a continuous stream without start and
stop bits framing each character.

Clock Synchronization Methods:

The critical challenge in synchronous communication is maintaining timing synchronization


between sender and receiver. Several methods exist to achieve this:
Separate Clock Signal:

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:

Synchronous communications typically begin transmissions with a preamble or


synchronization pattern. This known pattern allows the receiver’s clock recovery circuits to
lock onto the transmitter’s timing. Once locked, the receiver can maintain synchronization
throughout the data transmission.

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.

Data Transmission in Synchronous Communication:

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:

Modern network communications almost universally use synchronous transmission.


Ethernet, WiFi, mobile networks, and most other networking technologies transmit data
synchronously. The higher efficiency and ability to achieve higher speeds make
synchronous transmission superior for carrying the continuous streams of data typical of
network communications.

Point-to-point synchronous connections, like T1 lines in telecommunications, use


synchronous transmission to efficiently carry voice and data traffic. The continuous nature
of digitized voice makes synchronous transmission an excellent fit.

Advantages 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.

Disadvantages of Synchronous Communication:

The complexity of synchronous communication is higher than asynchronous. Clock


recovery circuits, synchronization mechanisms, and the need to maintain continuous
timing make synchronous systems more complex to design and implement.

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

1.1 What is a Computer Network?

A computer network is a system of interconnected computers and devices that can


communicate and share resources with each other. Networks enable data exchange,
resource sharing, and collaborative work.

Why do we need computer networks?

 Resource Sharing: Share printers, storage, software

 Communication: Email, messaging, video conferencing

 Data Sharing: Transfer files and information

 Remote Access: Access systems from anywhere

 Cost Efficiency: Share expensive resources

 Reliability: Backup and redundancy options

1.2 Key Components of Computer Networks

1. Nodes/Hosts: End devices (computers, smartphones, servers)

2. Network Interface Cards (NICs): Hardware for network connection

3. Switches: Connect devices within a local network

4. Routers: Connect different networks and route data

5. Transmission Media: Cables or wireless channels

6. Protocols: Rules governing communication

7. Network Operating Systems: Software managing network resources

1.3 Network Architecture

Client-Server Architecture:

 Centralized model

 Server provides resources/services


 Clients request and use services

 Better security and management

 Examples: Web servers, email servers

Peer-to-Peer Architecture:

 Decentralized model

 All devices have equal status

 Each device can act as both client and server

 Simple but less secure

 Examples: File sharing networks

1.4 Network Topologies

Physical arrangement of network devices:

1. Bus Topology

o All devices connected to a single cable

o Simple and inexpensive

o Failure of main cable breaks entire network

2. Star Topology

o All devices connected to central hub/switch

o Easy to manage and troubleshoot

o Central device failure affects entire network

3. Ring Topology

o Devices connected in circular fashion

o Data travels in one direction

o Failure of one device can disrupt network

4. Mesh Topology

o Every device connected to every other device

o Highly reliable and fault-tolerant

o Expensive and complex

5. Hybrid Topology
o Combination of two or more topologies

o Flexible and scalable

2. SIGNALS AND SIGNAL IMPAIRMENTS

2.1 Analog vs. Digital Signals

Analog Signals:

 Continuous waveform

 Can take infinite values

 Examples: Human voice, radio waves

 Represented by sine waves

 Parameters: Amplitude, Frequency, Phase

Digital Signals:

 Discrete values (typically 0s and 1s)

 Finite set of values

 More resistant to noise

 Easier to process and store

 Examples: Computer data

Key Differences:

Aspect Analog Digital

Values Continuous Discrete

Noise Immunity Low High

Accuracy Limited High

Storage Difficult Easy

Processing Complex Simple

2.2 Signal Impairments

Three major types of impairments affect signal quality:

1. Attenuation

 Loss of signal strength as it travels through medium


 Signal becomes weaker over distance

 Measured in decibels (dB)

 Solution: Use amplifiers or repeaters

 Formula: Attenuation (dB) = 10 log₁₀(P₁/P₂)

2. Distortion

 Change in signal shape

 Different frequency components travel at different speeds

 Causes signal to become distorted

 Common in analog signals

 Solution: Equalization techniques

3. Noise

 Unwanted signals interfering with original signal

 Types of noise:

o Thermal Noise: Random electron motion (always present)

o Induced Noise: From external electromagnetic sources

o Crosstalk: Signal from one line interfering with another

o Impulse Noise: Sudden spikes (lightning, switching)

 Measurement: Signal-to-Noise Ratio (SNR)

2.3 Important Network Performance Concepts

Throughput:

 Actual amount of data transferred in given time

 Measured in bits per second (bps)

 Always less than or equal to bandwidth

 Affected by network congestion and errors

Bandwidth:

 Maximum data transfer capacity

 Range of frequencies available

 Measured in Hz (analog) or bps (digital)


Propagation Speed:

 Speed at which signal travels through medium

 Depends on medium type

 Speed in vacuum = 3 × 10⁸ m/s

 Speed in cable = typically 2 × 10⁸ m/s

Propagation Time:

 Time for signal to travel from sender to receiver

 Formula: Propagation Time = Distance / Propagation Speed

Transmission Time:

 Time to push all bits onto the medium

 Formula: Transmission Time = Data Size / Bandwidth

Wavelength:

 Distance signal travels in one cycle

 Formula: Wavelength = Propagation Speed / Frequency

 Important for antenna design and wireless communication

3. COMMUNICATION TECHNIQUES

3.1 Parallel vs. Serial Communication

Parallel Communication:

 Multiple bits transmitted simultaneously

 Uses multiple parallel channels/wires

 One wire per bit

 Advantages: Fast data transfer

 Disadvantages:

o Expensive (many wires needed)

o Limited distance (synchronization issues)

o Crosstalk between wires

 Examples: Old printer cables, internal computer buses


Serial Communication:

 Bits transmitted one after another on single channel

 Uses one or two wires

 Advantages:

o Cost-effective (fewer wires)

o Long-distance transmission

o Less crosstalk

 Disadvantages: Slower than parallel

 Examples: USB, Ethernet, RS-232

3.2 Synchronous vs. Asynchronous Communication

Asynchronous Communication:

 No shared clock between sender and receiver

 Each byte framed with start and stop bits

 Start bit: Signals beginning of data (usually 0)

 Stop bit: Signals end of data (usually 1)

 Characteristics:

o Simple implementation

o Lower efficiency (overhead bits)

o Variable gaps between data transmissions

o Good for sporadic data transfer

 Examples: Serial ports, keyboards

Synchronous Communication:

 Sender and receiver share common clock

 Continuous stream of data

 Synchronized timing

 Characteristics:

o Higher efficiency (no start/stop bits)

o More complex hardware


o Requires clock synchronization

o Better for continuous data streams

 Synchronization methods:

o Separate clock line

o Embedded clock in data

 Examples: Network communications, video streaming

4. COMMUNICATION MODES (SELF-STUDY)

4.1 Simplex Mode

 Direction: One-way communication only

 Data flows in single direction

 Sender can only send, receiver can only receive

 Examples:

o Television broadcasting

o Radio broadcasting

o Keyboard to computer

o Traditional paging systems

4.2 Half-Duplex Mode

 Direction: Two-way communication, but not simultaneous

 Both parties can send and receive

 Only one party can transmit at a time

 Examples:

o Walkie-talkies

o CB radios

o Some network protocols

Advantages:

 More efficient than simplex

 Single channel can be used for both directions


Disadvantages:

 Delays in switching between send/receive

 Channel switching overhead

4.3 Full-Duplex Mode

 Direction: Two-way simultaneous communication

 Both parties can send and receive at same time

 Examples:

o Telephone conversations

o Modern Ethernet

o Video conferencing

Advantages:

 Most efficient communication

 No waiting for channel

 Better performance

Disadvantages:

 More complex

 May require two separate channels

5. MULTIPLEXING TECHNIQUES

Multiplexing is the technique of combining multiple signals into one signal over a shared
medium, enabling efficient use of bandwidth.

5.1 Frequency Division Multiplexing (FDM)

Concept:

 Divides bandwidth into multiple frequency bands

 Each signal assigned different frequency range

 All signals transmitted simultaneously

 Used for analog signals

How it works:
1. Available bandwidth divided into sub-bands

2. Guard bands separate channels to prevent interference

3. Each user assigned unique frequency band

4. Signals combined using multiplexer

5. Separated using demultiplexer at receiver

Applications:

 Radio broadcasting (AM/FM)

 Television broadcasting

 First-generation cellular systems

 Cable television

Advantages:

 Simple implementation

 All users can transmit simultaneously

 No synchronization needed

Disadvantages:

 Guard bands waste bandwidth

 Requires analog circuitry

 Susceptible to crosstalk

5.2 Wavelength Division Multiplexing (WDM)

Concept:

 Similar to FDM but for optical fiber

 Different wavelengths (colors) of light used

 Each wavelength carries separate data stream

 Used in fiber optic communications

Types:

1. DWDM (Dense WDM): Many closely-spaced wavelengths

2. CWDM (Coarse WDM): Fewer, widely-spaced wavelengths

How it works:
1. Multiple laser sources with different wavelengths

2. Optical multiplexer combines light signals

3. Single fiber carries all wavelengths

4. Optical demultiplexer separates at receiver

Applications:

 Long-distance telecommunications

 High-capacity fiber networks

 Internet backbone infrastructure

Advantages:

 Enormous bandwidth capacity

 Can add channels without new fiber

 Different data rates on different wavelengths

5.3 Time Division Multiplexing (TDM)

Concept:

 Each signal gets entire bandwidth for short time slot

 Signals transmitted in turns

 Time divided into frames with slots

 Used for digital signals

Types:

Synchronous TDM:

 Fixed time slots assigned to each source

 Slot allocated even if no data to send

 Simple but can waste bandwidth

 Example: T1 lines (24 channels)

Statistical TDM (STDM):

 Dynamic allocation of time slots

 Slots assigned only when data available

 More efficient bandwidth use


 Requires addressing information

How it works:

1. Time divided into frames

2. Each frame divided into slots

3. Each source assigned specific slot(s)

4. Multiplexer samples each source in turn

5. Demultiplexer separates at receiver

Applications:

 Telephone systems (T1, E1)

 Digital broadcasting

 Cellular networks (GSM)

 Satellite communications

Advantages:

 Efficient use of high-speed channels

 Digital implementation

 No crosstalk between channels

Disadvantages:

 Requires synchronization

 All sources must have same data rate (synchronous TDM)

6. IP ADDRESSING

6.1 Introduction to IP Addressing

IP (Internet Protocol) Address:

 Unique identifier for devices on network

 Two versions: IPv4 and IPv6

 Enables routing and delivery of data packets

IPv4 Address:

 32-bit address
 Written as four octets (8 bits each)

 Dotted decimal notation: [Link]

 Each octet ranges from 0 to 255

 Total addresses: 2³² = 4,294,967,296

6.2 Classful IP Addressing

The original IPv4 addressing scheme divided into 5 classes:

Class A:

 Range: [Link] to [Link]

 First bit: 0

 Default mask: [Link] or /8

 Network bits: 8 (first octet)

 Host bits: 24

 Networks: 126 (0 and 127 reserved)

 Hosts per network: 16,777,214

 Use: Very large organizations

 First octet: 1-126

Class B:

 Range: [Link] to [Link]

 First bits: 10

 Default mask: [Link] or /16

 Network bits: 16 (first two octets)

 Host bits: 16

 Networks: 16,384

 Hosts per network: 65,534

 Use: Medium to large organizations

 First octet: 128-191

Class C:

 Range: [Link] to [Link]


 First bits: 110

 Default mask: [Link] or /24

 Network bits: 24 (first three octets)

 Host bits: 8

 Networks: 2,097,152

 Hosts per network: 254

 Use: Small organizations

 First octet: 192-223

Class D:

 Range: [Link] to [Link]

 First bits: 1110

 Use: Multicast addresses

 Not for regular host addressing

Class E:

 Range: [Link] to [Link]

 First bits: 1111

 Use: Reserved for experimental purposes

 Not used in production networks

6.3 Special IP Addresses

Reserved Addresses:

 [Link]: Default route/unknown address

 [Link] to [Link]: Loopback addresses ([Link] most common)

 Private addresses (not routable on Internet):

o Class A: [Link] to [Link]

o Class B: [Link] to [Link]

o Class C: [Link] to [Link]

Network and Broadcast Addresses:

 Network address: All host bits are 0 (identifies network)


 Broadcast address: All host bits are 1 (sends to all hosts)

 Example in [Link]/24:

o Network: [Link]

o Broadcast: [Link]

o Usable: [Link] to [Link]

6.4 Subnet Mask

Purpose:

 Separates network portion from host portion

 Used in routing decisions

 Determines which network device belongs to

Notation:

 Dotted decimal: [Link]

 CIDR notation: /24 (number of network bits)

Calculation:

 Number of hosts = 2^(host bits) - 2

 Subtract 2 for network and broadcast addresses

7. TRANSMISSION MEDIA

7.1 Classification

Transmission media is the physical path between transmitter and receiver in data
communication.

Two main categories:

1. Guided Media (Wired): Signal guided along physical path

2. Unguided Media (Wireless): Signal transmitted through air/space

7.2 Guided Transmission Media

7.2.1 Telephone Lines

Twisted Pair Cable:

 Two insulated copper wires twisted together


 Twisting reduces electromagnetic interference

Types:

Unshielded Twisted Pair (UTP):

 No shielding

 Most common for telephone and LANs

 Categories: Cat 3, Cat 5, Cat 5e, Cat 6, Cat 7

 Cat 5e: 1000 Mbps, 100 meters

 Cat 6: 10 Gbps, 55 meters

 Inexpensive and easy to install

Shielded Twisted Pair (STP):

 Additional metallic shielding

 Better noise immunity

 More expensive

 Used in high-interference environments

Characteristics:

 Short to medium distances

 Susceptible to external interference

 Easy installation and maintenance

7.2.2 Leased Lines vs. Switched Lines

Leased Lines:

 Dedicated permanent connection

 Always available (24/7)

 Fixed monthly cost

 Guaranteed bandwidth

 High reliability

 Advantages: Consistent performance, secure

 Disadvantages: Expensive, inflexible

 Examples: T1 (1.544 Mbps), T3 (45 Mbps), E1 (2.048 Mbps)


Switched Lines:

 Temporary connection established on demand

 Shared with other users

 Pay per use

 Variable bandwidth

 Advantages: Cost-effective, flexible

 Disadvantages: Variable quality, connection setup time

 Examples: Dial-up, ISDN, DSL

7.2.3 Coaxial Cable

Structure:

 Central copper conductor

 Insulating layer

 Metallic shield (mesh/foil)

 Outer plastic jacket

Types:

Baseband Coaxial Cable:

 Carries single signal at a time

 Digital transmission

 Used in Ethernet (older networks)

 50-ohm impedance

 Example: 10Base2, 10Base5 Ethernet

Broadband Coaxial Cable:

 Carries multiple signals simultaneously

 Analog transmission using FDM

 75-ohm impedance

 Examples: Cable TV, cable Internet

Characteristics:

 Better bandwidth than twisted pair


 Better noise immunity

 Longer distances (up to 500m for Ethernet)

 More expensive than twisted pair

 Bandwidth: Up to 1 GHz

 Data rate: Up to 10 Gbps

Advantages:

 High bandwidth

 Good noise immunity

 Relatively inexpensive

Disadvantages:

 Less flexible than twisted pair

 Difficult installation

 Bulkier cables

7.2.4 Optical Fiber

Principle:

 Uses light to transmit data

 Based on total internal reflection

 Light travels through glass/plastic core

Structure:

 Core: Thin glass center (carries light)

 Cladding: Surrounds core (reflects light back)

 Buffer coating: Protects fiber

 Jacket: Outer protection

Types:

Single-Mode Fiber (SMF):

 Very small core (8-10 μm)

 Single light ray path

 Laser light source


 Long distances (100+ km)

 Higher cost

 Higher bandwidth

 Used in long-distance telecommunications

Multi-Mode Fiber (MMF):

 Larger core (50-62.5 μm)

 Multiple light ray paths

 LED light source

 Shorter distances (2 km)

 Lower cost

 Used in LANs, data centers

Characteristics:

 Bandwidth: Extremely high (terabits/sec)

 Distance: Very long (tens to hundreds of km)

 Immunity: Complete immunity to electromagnetic interference

 Security: Difficult to tap

 Weight: Lightweight

 Size: Very thin cables

Advantages:

 Highest bandwidth

 Longest distances

 No electromagnetic interference

 Secure

 Lightweight and small

Disadvantages:

 Expensive

 Difficult installation

 Requires skilled technicians


 Fragile (can break if bent too much)

7.3 Unguided Transmission Media (Wireless)

Uses electromagnetic waves transmitted through air/space

Types based on frequency:

1. Radio Waves:

 Low to medium frequencies (3 KHz - 1 GHz)

 Omnidirectional

 Can penetrate walls

 Long-distance transmission

 Examples: AM/FM radio, TV, cordless phones

2. Microwaves:

 High frequencies (1 GHz - 300 GHz)

 Unidirectional (requires line of sight)

 Cannot penetrate walls well

 Types:

o Terrestrial: Between ground-based antennas

o Satellite: Earth to satellite communication

 Examples: Satellite TV, mobile phones, WiFi

3. Infrared:

 Very high frequencies (300 GHz - 400 THz)

 Short range

 Cannot penetrate walls

 Line of sight required

 Examples: TV remotes, wireless keyboards

Advantages:

 No physical connection needed

 Mobility

 Easy installation
 Good for difficult terrain

Disadvantages:

 Lower security

 Interference issues

 Weather-dependent

 Limited bandwidth

8. NETWORK PROTOCOLS AND OSI MODEL

8.1 What are Protocols?

Network Protocol:

 Set of rules governing communication

 Defines format, timing, sequencing, and error control

 Enables different devices to communicate

Key Functions:

 Syntax: Data format and encoding

 Semantics: Meaning of bits

 Timing: Speed matching and sequencing

8.2 Protocol Layers

Networks use layered architecture for modularity and easier management.

OSI Model (7 layers):

1. Physical: Bit transmission, hardware

2. Data Link: Frame transmission, error detection

3. Network: Routing, IP addressing

4. Transport: End-to-end communication, TCP/UDP

5. Session: Dialog control

6. Presentation: Data formatting, encryption

7. Application: User interface, HTTP, FTP

Each layer:
 Provides services to layer above

 Uses services from layer below

 Communicates with same layer on other devices

9. NETWORK SECURITY BASICS

9.1 Security Threats

Types of threats:

1. Interruption:

 Availability attack

 Resource destroyed or unavailable

 Examples: Hardware damage, DoS attacks

2. Interception:

 Confidentiality attack

 Unauthorized access to data

 Examples: Wiretapping, packet sniffing

3. Modification:

 Integrity attack

 Unauthorized alteration of data

 Examples: Man-in-the-middle attacks

4. Fabrication:

 Authenticity attack

 Creating fake data

 Examples: Spoofing, replay attacks

9.2 Security Services

1. Confidentiality:

 Protect data from unauthorized access

 Encryption

2. Integrity:
 Ensure data hasn’t been altered

 Checksums, hashing

3. Authentication:

 Verify identity

 Passwords, certificates

4. Non-repudiation:

 Prevent denial of actions

 Digital signatures

5. Access Control:

 Control who can access resources

 Permissions, firewalls

9.3 Security Mechanisms

1. Encryption:

 Converting data to unreadable format

 Symmetric (same key) and Asymmetric (public/private keys)

2. Firewall:

 Filters network traffic

 Prevents unauthorized access

3. Intrusion Detection System (IDS):

 Monitors for malicious activity

 Alerts administrators

4. Virtual Private Network (VPN):

 Secure encrypted tunnel

 Remote access

EXAM PREPARATION TIPS

Focus Areas for Maximum Marks:

1. Signal concepts (analog/digital, impairments) - Often tested


2. Multiplexing techniques - Compare and differentiate

3. IP addressing - Practice calculations

4. Transmission media - Compare characteristics

5. Communication modes - Understand applications

Practice Questions to Prepare:

1. Calculate propagation time given distance and speed

2. Determine IP class from address

3. Compare FDM, WDM, and TDM

4. Explain signal impairments with examples

5. Differentiate guided vs unguided media

6. Compare synchronous vs asynchronous communication

7. Calculate number of hosts in IP subnet

Quick Review Formulas:

 Attenuation: 10 log₁₀(P₁/P₂) dB

 Wavelength: Propagation Speed / Frequency

 Propagation Time: Distance / Propagation Speed

 Transmission Time: Data Size / Bandwidth

 Hosts in subnet: 2^(host bits) - 2

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!

You might also like