Unit - I Fundamental and Link Layer
Unit - I Fundamental and Link Layer
1.1
UNIT - 1
Fundamentals and Link
Layer
A network is a set of devices (often referred to
as nodes) connected by communication links.
A node can be a computer, printer, or any
other device capable of sending and/or
A network consists of two receiving
or more computers that are
data generated bylinked
other in orderonto share
nodes
resources (such as printersthe
and CDs), exchange files, or allow electronic
network.
communications.
1.4
Data communications are the
components need for Data communication
exchange of data between two
devices via some form of
transmission medium such as a
wire cable.
set of rules that governs the data communications
2.Accuracy
System must deliver data accurately
3.Timeliness
System must deliver data in a timely manner.
4.Jitter
1.6
2.BUILDING A COMPUTER NETWORK
Connectivity
Manageability
BUILDING A NETWORK & TYPES
Connectivity
A network must provide connectivity among a set of computers
Point-to-point - dedicated link between two devices/nodes
nodes in computer network are connected by link.
The link can be of two types:
Multipoint/multidrop - more than two nodes share a common physical link
i. Point-to-point
example is TV and its remote
ii. Multipoint/multidrop
control
Solution:
=8(8-1)/2 =28
Star Topology
Every device has a dedicated point-to-point link only to a central controller
called a hub.
One long cable acts as a backbone to link all the devices in a network.
Ring Topology
each device has a dedicated point-to-point connection to its adjacent devices,
forming a ring type structure.
Hybrid Topology
NETWORK REQUIEREMNTS
Connectivity
Cost-effective resource sharing
nodes in the network share the link by multiplexing
Support for Common services
Each channel in the network provides the set of services required by the application.
Example: file access
two channels are program
requiredlike the File Transfer Protocol (FTP)
1. Request/reply channelsused by the file transfer and digital library
2. Message stream channels. Manageability
applications.
Used by both the video on demand and videoconferencing applications.
making changes as the network grows to carry more traffic or reach more
users and troubleshooting.
Distributed Processing – task is divided into multiple computers
Classification of Network
Campus Area
Network that links the
variety of campus
Network(CAN)
buildings
Wide Area Network (WAN)
Point to Point
WAN Switched WAN
1.27
Internetwork (or) internet
1.28
2.4 SWITCHED NETWORK
A switched network is
made up of series of Types of switched
interconnected nodes network
called switches.
Network
Architecture
PROTOCOLS
1.32
PROTOCOL GRAPH
Digital
RRP - Request/Reply Protocol
File Digital Video File Video
library library application
application application application application application MSP - Message Stream Protocol
HHP – Host-to-Host Protocol
HHP HHP
1.34
3.2 OSI ARCHITECTURE OR 7 LAYER
ARCHITECTURE
What is OSI model? Open Systems Interconnection
What is it composed of? The OSI Model breaks down this data
transfer/communication procedure into
different components (called layers) Why layers?
1.35
The purpose of the OSI reference model is to guide
Why OSI Model? vendors and developers so the digital communication
products and software programs they create will
interoperate, and to facilitate clear comparisons among
communications tools.
Application All
Away
Presentation People
Pizza
Session Seem
Sausage
To
Throw Transport
Due to the complexity of OSI model, the first implementations were pretty heavy and slow.
3.3 INTERNET PROTOCOL ARCHITECTURE (OR) TCP/IP
PROTOCOL ARCHITECTURE
Transmission User
Control Datagram
Protocol Protocol
Internet
Procol
Group of
stations
1.41
Merits of TCP/IP model
It operated independently.
2 Service interface and protocols were Service interface and protocols are
not clearly distinguished. clearly distinguished.
3 TCP/IP supports Internet working Internetworking not supported
1.44
5.PHYSICAL LAYER
The physical layer is the lowest or the first layer in the OSI
Physical layer truly justifies its name because it's actually physical in nature
and tangible as well.
Physical layer truly justifies its name because it's actually physical in nature
and tangible as well.
For example:
The network cable is a part of the physical layer, The female adapter of
NIC or the network card of a computer is a part of the physical layer.
1.45
1.46
5.LINK LAYER SERVICES
Framing
Flow
control
Error control
1.47
5.DATA LINK LAYER SERVICES
FRAMING
1.48
Three approaches to find frames
1.49
1.Byte-Oriented Protocols
1.51
2.Bit-Oriented Protocols
Bit oriented protocols views frames as a collection of bits
HDLC
Bit oriented protocol used on both point to point link and multipoint link
0111110
The Pattern “01111110” could be found inside a Frame which will destruct inner
structure of the frame.
To overcome this problem, Bit stuffing is used in which sender will insert 0 after
occurrence of 5 consecutive 1s
1.53
Types of HDLC Frames
HDLC
Synchronous Optical Network Standard is used for long distance transmission of data over
optical network.
Intended to multiplex many digital data streams over long-distance, high-bandwidth optical
fiber; avoiding the clock synchronization problems.
Each frame has a fixed length of 810 bytes, organized as a block of 9 rows of 90 bytes each,
with no bit/byte stuffing.
1.56
By interleaving bytes of lower-speed links, SONET multiplexes sub frames into larger
frames for higher-speed links.
Synchronous
Transport
Signal
1.57
LINK LAYER SERVICES
FLOW CONTROL
Flow control is a set of procedures used to restrict the amount of data that the sender can send
Flow Control
Protocol
Noisy channel
Noiseless Channel Noisy Channel
other wise called
ARQ(Automatic
Repeat Request)
Sliding
simplest Stop and wait Stop and wait
Window
Go back N Selective
ARQ Repeat ARQ
STOP AND WAIT ARQ
The simplest ARQ (Automatic Repeat Request) is stop and wait algorithm.
After transmitting one frame, the sender waits for an acknowledgement before transmitting the
next frame.
1.Normal Operation
2.Frame is Lost
3.Acknowledgement(ACK) is Lost
4.ACK is delayed
1.Normal Operation
In normal flow sender sends the frame 0 and receiver sends ack1 for the next frame.
2.Frame is Lost
The sender sends the frame 1 but the frame is lost. The sender waits for an ACK upto the time
out period.
1.64
4.ACK is delayed
1.65
Shortcomings of Stop and wait ARQ
1.Very inefficient
Multiple frames are sent by sender at the time without expecting ACK.
Go back N Selective
ARQ Repeat ARQ
1.68
Sequence Number
If m =3
1.73
Selective Repeat ARQ protocol retransmits
only the damaged frames instead of sending
Selective Repeat multiple frames.
ARQ
Sender window size =Receiver Window size = 2m − 1
RF is the sequence
RL is the number
sequenceofnumber
the firstof the last
frame in the slide
frame inwindow
the slide window
3 cases of operation:
1.Normal Operation
2. Lost frame
3. ACK is Lost
1.Normal Operation
2. Lost frame
3. ACK is Lost
Piggybacking A method to combine a data frame with ACK. & saves
Bandwidth.