CN Unit 1
CN Unit 1
Computer Networks
SS Jabeen
Assistant Professor
CSE Dept.
ISLEC
01/23/2025 SSJ 1
Unit I
Data communication Techniques for Bandwidth utilization:
Components: • Line configuration
• Representation of data • Multiplexing - Frequency division
communication • Time division and Wave division
• Flow of Networks • Asynchronous and Synchronous
transmission
• Layered architecture
• XDSL
• OSI and TCP/IP model
• Introduction to Wired and Wireless LAN
• Transmission Media.
01/23/2025 SSJ 2
Representation of Data
Communication
01/23/2025 SSJ 3
• Introduction
• Data Communication
• Data Representation
01/23/2025 SSJ 4
Introduction
The term telecommunication means communication at a distance.
The word data refers to information presented in whatever form is
agreed upon by the parties creating and using the data.
01/23/2025 SSJ
Data Communication
• Data Communication is defined as exchange of data
between two devices via some form of transmission media
such as a cable, wire or it can be air or vacuum also.
• For occurrence of data communication, communicating
devices must be a part of communication system made up
of a combination of hardware or software devices and
programs.
01/23/2025 SSJ 6
The effectiveness of a data communication system depends on
four fundamental characteristics:
i. Delivery
ii. Accuracy
iii. Timeliness
iv. Jitter
01/23/2025 SSJ 7
Data Communication System Components
01/23/2025 SSJ 8
Figure 1.1 Five Components of Data Communication
01/23/2025 SSJ 9
Data Representation
• Text
• Numbers
• Images
• Audio
• Video
01/23/2025 SSJ 10
Flow of Networks
01/23/2025 SSJ 11
Figure 1.2 Data flow (simplex, half-duplex, and full-duplex)
Networks
• Reliability
• Failure rate
of network components
• Measured in terms of availability/robustness
• Security
• Data protection against corruption/loss of data due to:
• Errors
• Malicious users
Physical Structures
• Type of Connection
• Point to Point - singletransmitter and receiver
• Multipoint - multiple recipients of single transmission
• Physical Topology
• Connection of devices
• Type of transmission - unicast, multicast, broadcast
Figure 1.3 Types of connections: point-to-point and multipoint
Figure 1.4 Categories of topology
Figure 1.5 A fully connected mesh topology (five devices)
Figure 1.6 A star topology connecting four stations
Figure 1.7 A bus topology connecting three stations
Figure 1.8 A ring topology connecting six stations
Figure 1.9 A hybrid topology: a star backbone with three bus networks
Categories of Networks
• Local Area Networks (LANs)
• Short distances
• Designed to provide local interconnectivity
• Wide Area Networks (WANs)
• Long distances
• Provide connectivity over large areas
• Metropolitan Area Networks (MANs)
• Provide connectivity over areas such as a city, a campus
Figure 1.10 An isolated LAN connecting 12 computers to a hub in a closet
Figure 1.11 WANs: a switched WAN and a point-to-point WAN
Figure 1.12 A heterogeneous network made of four WANs and two LANs
Layered Architecture
01/23/2025 SSJ 27
LAYERED TASKS
We use the concept of layers in our daily life. As an
example, let us consider two friends who communicate
through postal mail. The process of sending a letter to a
friend would be complex if there were no services
available from the post office.
Figure 1.13 Tasks involved in sending a letter
THE NEED FOR A PROTOCOL ARCHITECTURE
01/23/2025 SSJ 31
THE OSI MODEL
01/23/2025 SSJ 37
Figure 1.17 Physical layer
Note
2.42
Figure 1.20 Network layer
Note
01/23/2025 SSJ 56
TCP/IP PROTOCOL SUITE
01/23/2025 SSJ 59
Overview
• Guided - wire / optical fiber
• Unguided - wireless
• Characteristics and quality determined by medium and signal
• in unguided media - bandwidth produced by the antenna is more
important
• in guided media - medium is more important
• Interference
• Number of receivers in guided media
• More receivers introduces more attenuation
Electromagnetic Spectrum
Transmission Characteristics of
Guided Media
Frequency Typical Typical Repeater
Range Attenuatio Delay Spacing
Twisted pair 0 to 3.5 kHz n
0.2 dB/km 50 µs/km 2 km
(with @ 1 kHz
loading)
Twisted 0 to 1 MHz 0.7 dB/km 5 µs/km 2 km
pairs (multi- @ 1 kHz
pair cables)
Coaxial 0 to 500 7 dB/km @ 4 µs/km 1 to 9 km
cable MHz 10 MHz
Optical fiber 186 to 370 0.2 to 0.5 5 µs/km 40 km
THz dB/km
Twisted Pair
Twisted Pair - Transmission
Characteristics
• Analog
• needs amplifiers every 5km to 6km
• Digital
• can useeither analog or digital signals
• needs a repeater every 2-3km
• Limited distance
• Limited bandwidth (1MHz)
• Limited data rate (100MHz)
• Susceptible to interference and noise
Unshielded vs Shielded TP
• Unshielded Twisted Pair (UTP)
• ordinary telephone wire
• cheapest
• easiest to install
• suffers from external EM interference
• digital signals
• repeater every1km
• closer for higher data rates
Optical Fiber
Optical Fiber - Benefits
• Greater capacity
• data rates of hundreds of Gbps
• Smaller size & weight
• Lower attenuation
• Electromagnetic isolation
• Greater repeater spacing
• 10s of km at least
Optical Fiber - Transmission
Characteristics
• Uses total internal reflection to transmit light
• effectively acts as wave guide for 1014 to 1015 Hz
• Can use several different light sources
• Light Emitting Diode (LED)
• cheaper, wider operating temp range, lasts longer
• Injection Laser Diode (ILD)
• more efficient, has greater data rate
• 30MHz to 1GHz
• omnidirectional
• broadcast radio
• 3 x 1011 to 2 x 1014
• infrared
• local
Antennas
• Electrical conductor used to radiate or collect electromagnetic energy
• Transmission antenna
• Radio frequency energy from transmitter
• Converted to electromagnetic energy by antenna
• Radiated into surrounding environment
• Reception antenna
• Electromagnetic energy impinging on antenna
• Converted to radio frequency electrical energy
• Fed to receiver
• Also interference
Satellite Microwave
• Satellite is relay station
• Receives on one frequency, amplifies or repeats signal and
transmits on another frequency
• Eg. Uplink 5.925-6.425 ghz & downlink 3.7-4.2 ghz
01/23/2025 SSJ 84
Line Configuration - Topology
• Physical arrangement of stations on medium
• Point to point - two stations
• Suchas between two routers / computers
• Multi point - multiple stations
• Traditionally mainframe computer and terminals
• Now typically a local area network (LAN)
Line Configuration - Topology
Line Configuration - Duplex
• Classify data exchange as half or full duplex
• Half duplex (two-way alternate)
• Only one station may transmit at a time
• Requires one data path
01/23/2025 SSJ 88
Multiplexing
• Multiple links on 1 physical line
• Common on long-haul, high capacity, links
• Have FDM, TDM, STDM alternatives
Frequency Division Multiplexing
FDM
System
Overview
FDM Voiceband Example
Analog Carrier Systems
• Long-distance links use an FDM hierarchy
• AT&T (USA) and ITU-T (international) variants
• Group
• 12 voice channels (4khz each) = 48khz
• In range 60khz to 108khz
• Supergroup
• FDM of 5 group signals supports 60 channels
• On carriers between 420khz and 612 khz
• Mastergroup
• FDM of 10 supergroups supports 600 channels
• So original signal can be modulated many times
Wavelength Division Multiplexing
• FDM with multiple beams of light at different freq
• Carried over optical fiber links
• Commercial systems with 160 channels of 10 gbps
• Lab demo of 256 channels 39.8 gbps
• Also
have dense wavelength division multiplexing
(DWDM)
Synchronous Time Division
Multiplexing
TDM
System
Overview
TDM Link Control
• No headers and trailers
• Data link control protocols not needed
• Flow control
• Data rate of multiplexed line is fixed
• If one channel receiver can not receive data, the others must
carry on
• Corresponding source must be quenched
• Leaving empty slots
• Error control
• Errors detected & handled on individual channel
Data Link Control on TDM
Framing
• No flag or SYNC chars bracketing TDM frames
• Must still provide synchronizing mechanism between
src and dest clocks
• Added digit framing
• One control bit added to each TDM frame
• Identifiable bit pattern used on control channel
• Eg. Alternating 01010101…unlikely on a data channel
• Compare incoming bit patterns on each channel with known
sync pattern
Pulse Stuffing
• Have problem of synchronizing data sources
• With clocks in different sources drifting
• Alsoissue of data rates from different sources not related
by simple rational number
• Pulse stuffing a common solution
• Have outgoing data rate (excluding framing bits) higher than sum
of incoming rates
• Stuff extra dummy bits or pulses into each incoming signal until it
matches local clock
• Stuffed pulses inserted at fixed locations in frame and removed at
demultiplexer
TDM Example
Statistical TDM
• In synch TDM many slots are wasted
• Statistical TDM allocates time slots dynamically based
on demand
• Multiplexer scans input lines and collects data until
frame full
• Line data rate lower than aggregate input line rates
• May have problems during peak periods
• Must buffer inputs
Statistical TDM Frame Format
Cable Modems
• Dedicate two cable TV channels to data transfer
• Each channel shared by number of subscribers, using
statistical TDM
• Downstream
• Cable scheduler delivers data in small packets
• Active subscribers share downstream capacity
• Also allocates upstream time slots to subscribers
• Upstream
• Userrequests timeslots on shared upstream channel
• Headend scheduler notifies subscriber of slots to use
Cable Modem Scheme
XDSL
Asynchronous Transmission
In asynchronous transmission, each character is transmitted
separately with separate synchronization information. This type
of transmission is often used in situation when characters may
be generated at random intervals, such as when a user types at a
terminal. In asynchronous transmission, all of the bits that
comprise a character are framed and then sent as a single
transmission string.
Asynchronous transmission
Asynchronous Transmission
Start and Stop Bit Framing
The clocks of the transmitter and the receiver are not
continually synchronized.
But the receiver needs to know when the character
begins and ends.
For this reason, the character's bit string is framed
with start and stop bits. The start bit reset the
receiver's clock so that it matches the transmitter's.
The clock only needs to be accurate enough to stay in
sync for the next 8 to 11 ticks. At least one stop bit is
added to mark the end of the character and allow
recognition of the next start bit.
Asynchronous Transmission
Error Detection
One way to detect errors in asynchronous transmission is to add
an extra bit, called a parity bit, to the end of each character in a
frame.
Summary:
• Uncomplicated and inexpensive but slow and
• Overhead for each character.
Synchronous Transmission
In some application it is necessary for large blocks of data, such as the
contents of a disk file, to be transmitted. Synchronous transmission is
more efficient method of transmitting large block of data. The data are
usually buffered and transmitted as an entire message or frame. For this
reason, clocks on both sides must maintain synchronization during
transmission. This is accomplished in one of two ways:
123
Introduction
A local area network is a communication network that interconnects a
variety of data communicating devices within a small geographic area
and broadcasts data at
• high data transfer rates
• very low error rates.
(WANs now do this too)
Since the local area network first appeared in the 1970s, its use has
become widespread in commercial and academic environments.
124
Functions of a Local Area Network
• File server - A large storage disk drive that acts as a central storage repository.
• Print server - Provides the authorization to access a particular printer, accept and queue
print jobs, and provides a user access to the print queue to perform administrative duties.
• Interconnection - A LAN can provide an interconnection to other LANs and to wide area
networks.
• Video transfers - High speed LANs are capable of supporting video image and live video
transfers.
• Manufacturing support - LANs can support manufacturing and industrial environments.
• Distributed processing - LANs can support network operating systems which perform the
operations of distributed processing.
125
Advantages of Local Area Networks
• Ability to share hardware and software resources.
• Individual workstation might survive network failure.
• Component and system evolution are possible.
• Support for heterogeneous forms of hardware and software.
• Access to other LANs and WANs (Figure 7-1).
• Private ownership.
• Secure transfers at high speeds with low error rates.
126
Disadvantages of Local Area Networks
• Equipment and support can be costly.
• Level of maintenance continues to grow.
• Private ownership?
• Some types of hardware may not interoperate.
• Just because a LAN can support two different kinds of
packages does not mean their data can interchange easily.
• A LAN is only as strong as it weakest link, and there are
many links.
127
Wireless Topology
• Not really a specific topology since a workstation in a
wireless LAN can be anywhere as long as it is within
transmitting distance to an access point.
• Range varies from 50 to 800 ft with speeds of 2 to 11
Mbps
• Most wireless LANs include a wired LAN backbone
• Usually requires a wireless NIC
128
Wireless Topology – different forms
• Newer IEEE 802.11 and 802.11b (Wi-Fi) standard defines
various forms of wireless LAN connections.
• Speeds up to 11 Mbps with 802.11b standard.
• Workstations reside within a basic service set, while
multiple basic service sets create an extended service set.
129
Wireless Topology
Acceptable transmission ranges broken up into areas:
1. Basic service set – that surrounding an access point
2. Extended service set – collection of basic service sets
Workstations reside within a basic service set, while multiple
basic service sets create an extended service set.
130
Wireless Topology
• Two basic components necessary: the client radio, usually
a PC card with an integrated antenna, and the access point
(AP), which is an Ethernet port plus a transceiver.
• The AP acts as a bridge between the wired and wireless
networks and can perform basic routing functions.
• Workstations with client radio cards reside within a basic
service set, while multiple basic service sets create an
extended service set.
131
Single-cell wireless LAN configuration
132
Multiple-cell wireless LAN configuration
133
Ad-hoc configuration for a wireless LAN
134
Wireless Topology
• With directional antennae designed for point-to-point
transmission (rare), 802.11b can work for more than 10 miles.
• With an omni-directional antenna on a typical AP, range may
drop to as little as 100 feet.
• Distance is inversely proportional to transmission speed - as
speed goes up, distance goes down.
135
Other Wireless Standards
•IEEE 802.11 (older 2 Mbps)
•IEEE 802.11b (11 Mbps, 2.4 GHz)
Also called Wi-Fi (wireless fidelity)
•IEEE 802.11a (54 Mbps, 5 GHz, in 2002)
•IEEE 802.11g (54 Mbps, 2.4 GHz, in 2002)
•HiperLAN/2 (European standard, 54 Mbps in 5 GHz band)
136