Professional Documents
Culture Documents
NETWORK
Presented by:
Sahithi Sannayila
CONTENTS:
Network terminology:
Protocol
Gateway
CNTD ..
Network Types:
Networks may be divided into different types and
categories according to four different criteria
Geographic spread of nodes and hosts
Local Area Network (LAN)
Metropolitan Area Network (MAN)
Wide Area Network (WAN)
Access restrictions
private networks
public networks
Communication model employed by the nodes
point-to-point model
Broadcast model
Switching model employed by the nodes
Circuit switching
Packet switching
THE OSI MODEL
The International Standards Organization
(ISO) has developed a reference model for
systems communications called the Open
Systems Interconnection (OSI) in 1977
The OSI model proposes a seven-layer
architecture for networks. Each layer is
characterized by a set of standard
protocols which specify its behaviour.
WHY SO MANY LAYERS?
To reduce complexity networks are organised as stack of layers, one below the other
Each layer performs a specific task and provides service to adjacent layers.
Each of the seven layers of the OSI model hides the implementation details of the lower layers
from the upper layers.
THE INTERACTION BETWEEN LAYERS OF OSI
MODEL
DATA ENCAPSULATION AND DECAPSULATION
SERVICE PRIMITIVES
A service primitive is an abstract representation of the interaction between a service provider
and a service user.
primitives may be of one of the following four types
Request Primitive
IndicationPrimitive
Response Primitive
Confirm Primitive
A primitive name consists of the first letter of the layer to which it belongs, followed by its
command name, followed by its type.
For example, a request type primitive at the network layer for initiating a connection is named
‘N-CONNECT request’.
PROTOCOL NOTATIONS
There are two popular notations which are extensively used in standards and the literature
sequence diagrams
state transition diagrams
PHYSICAL LAYER
FUNCTIONS OF PHYSICAL
LAYER
Convert bits to signals
Bit synchronization
Manage physical connection
Bit rate control
Transmission mode
Multiplexing
Switching
NETWORK EQUIPMENT TYPES
Data Terminal Equipment (DTE)
Data Circuit-terminating Equipment (DCE)
Data Switching Equipment (DSE)
CNTD..
Cost
Two types of cost are relevant
Cost of installing the medium and equipment
Cost of running and maintaining the medium and its equipment
Reliability
Some media, by their physical nature, transmit data more reliably than others. Low reliability translates
into a higher number of errors
Coverage
The physical characteristics of a medium dictate how long a signal can travel in it before it is distorted
beyond recognition
TRANSMISSION MEDIA
Medium Bandwidth Data Rates Cost Reliability Coverage
Coaxial Cable 10s of MHz 10-100 mbps High/km Medium-High 10s of Kilometers
Optical Fiber 100s of MHz 100s of mbps High/km Very High 10s of Kilometers
Radio 100s of MHz 100s of mbps Very High Very High 1000s of Kilometers
Physical Addressing
Add a header to the frame to define the physical address of the source and the destination machines.
Flow Control
It is the traffic regulatory mechanism implemented by Data Link layer that prevents the fast sender
from drowning the slow receiver.
Error Control
It provides the mechanism of error control in which it detects and retransmits damaged or lost frames.
Feedback
after transmitting the frames, the system waits for the feedback.
LINK PROTOCOLS
The Data Link protocals are sub divided into following categories
Synchronous Protocols
character-oriented
bit-oriented protocol
Asynchronous Protocols
Master-Slave Protocols
Communication between the master and its slaves is governed by a general technique called polling
Peer-to-Peer Protocols
carrier-sense
LINK PROTOCOL FUNCTIONS
Acknowledgments
Acknowledgment (ACK)
Negative acknowledgment (NAK)
Timers
Timers provide a mechanism for placing a time limit on certain operations to be completed.
Two important timers (called T1 and T2) are used by most protocols.
Error Checking
Parity checking
Cyclic Redundancy Check (CRC)
Retransmission
Selective Reject
Go-Back-N
Flow Control
CYCLIC REDUNDANCY
CHECK (CRC)
This method is mostly used with bit-oriented protocols and also called as polynomial code.
The bit sequence 101001 represents the polynomial
1x 5 + 0x 4 + 1x 3 + 0x 2 + 0x 1 + 1x 0 = x 5 + x 3 + x 0
CRC works as follows.
A message (bit sequence) m represented by the polynomial m(x)
generator polynomial g(x) of order k
m is appended with exactly k zero bits.
The result is equivalent to the polynomial p(x) = x km(x). p(x) is divided by g(x) and the remainder is added to
p(x) to produce the final polynomial q(x)
q(x) = p(x) + (p(x) remg(x))
For example:
m = 100101110101
g = 10111 (k = 4)
p = 1001011101010000
By dividing p by g, using modulo 2 arithmetic we get reminder r = 1110
Add r to p to produce q = 1001011101010000 + 1110 = 1001011101011110
SLIDING
WINDOW
PROTOC
OL
DATA LINK LAYER
STANDARDS
Data link layer standards established by major computer manufacturers (e.g., BSC by IBM and
DDCMP by DEC) and others published by ISO, CCITT, and IEEE.
The two popular standards one character-oriented and one bit-oriented are
Binary Synchronous Control (BSC)
The High-level Data Link Control (HDLC)
BINARY SYNCHRONOUS
CONTROL (BSC)
BSC also known as BISYNC is a widely-used synchronous, character-oriented protocol
devised by IBM in the 1960s for half-duplex communication
Information is exchanged in character blocks. Below figure shows a sample block
HIGH-LEVEL DATA LINK
CONTROL (HDLC)
HDLC is a bit-oriented protocol and is specified by ISO 3309, ISO 4335, and ISO 7809
standards, and supports half- as well as full-duplex
Most vendors now tend to support this protocol (or one of its derivatives) in their networking
products.
HDLC offers a master-slave arrangement and offers three modes of operation
Normal Response Mode (NRM)
Asynchronous Response Mode (ARM)
Asynchronous Balanced Mode (ABM)
Congestion Control
A network has a certain carrying capacity, when this limit is approached, considerable delays are
experienced in packet delivery, and the network is said to be congested.
The best way to deal with congestion is to avoid it, the measures we have to take are
Reducing the load on a node by disposing packets
Reducing the traffic destined for a heavily-utilized link
Imposing a limit on the total number of packets in the network
Error Handling
INTERNETWORKING
The problem of interconnecting a set of
independent networks is called
internetworking
Each of the participating independent
networks is referred to as a subnetwork or
subnet.
The role of the Interworking Units (IWU)
is to carry out protocol conversion
between the subnets
NETWORK SUBLAYER
To better address the internetworking problem, the network layer is further subdivided into
three sublayers
Layer Name Main Function
3.3 Subnet Independence Convergence Deals with internetworking services (i.e., routing and data transfer between
Layer the subnets).
3.2 Subnet Dependence Convergence Deals with service mapping between the subnets (i.e., protocol conversion,
Layer address mapping).
3.1 Subnet Access Layer Deals with the services of a single subnet (i.e., subnet operation, access,
addressing, routing, etc.).
Depending on the packet switching mode employed by the subnets, three situations are possible
• All subnets use virtual circuits
• All subnets use datagrams
• Some subnets use virtual circuits, some datagrams
INCOMPATIBILITIES NEED TO BE OVERCOME BY THE IWUS
AND GATEWAYS
Error Control
Make sure that the entire message arrives without errors else retransmit.
Flow Control
Transport layer makes sure that the sender and the receiver both maintain same bit rate.
TRANSPORT SERVICES
The transport services are defined in terms of transport
primitives
Type B Exhibits acceptable data error rates, but unacceptable signaled X.25 network
error rates. The transport
layer is responsible for recovery from such errors.
Type C Exhibits unacceptable data and signaled error rates. The transport Datagram network
layer is responsible for recovery from
all such errors.
TRANSPORT PROTOCOL
Transport layer messages are exchanged by the network layer using Transport Protocol Data
Units (TPDUs)
Field Description
Header Length Length of the TPDU header in octets.
PROTOCOL
MUX DER SER FC ACK R/S EXP
Dialog Control
The session layer allows two systems to enter into a dialog.
Synchronization
Allows a process to add checkpoints to a stream of data.
SESSION SERVICES
Primitive Types Parameters Purpose
S-CONNECT request indicate (addresses, QOS, result, Used for initiating a session connection (connections are always
response confirm requirements, serial no., initiated by service users).
token, user data)
S-RELEASE request indicate (result, user data) Used for orderly release of a connection.
response confirm
S-EXPEDITED-DATA request (user data) Used for high priority data transfer.
indicate
S-TYPED-DATA request indicate (user data) Used for typed data transfer.
S-ACTIVITY-RESUME request indicate (new ID, old ID, serial no., Used for resuming an interrupted activity.
user data)
S-ACTIVITY-DISCARD request indicate (reason) Used for discarding an activity.
response confirm
S-ACTIVITY-END request indicate (serial no., user data) Used for ending an activity.
response
confirm
S-TOKEN-PLEASE request indicate (tokens, user data) Used by a service user for requesting a token.
S-TOKEN-GIVE request (tokens) Used by a service user for forwarding
indicate a token to the other user.
S-CONTROL-GIVE request indicate () Used by a service user for forwarding all tokens to the other
user.
S-SYNC-MINOR request indicate (type, serial no., user data) Used for setting a minor synchronization point.
response
confirm
S-SYNC-MAJOR request indicate (serial no., user data) Used for setting a major synchronization point.
response confirm
S-RESYNCHRONIZE request indicate (type, serial no., tokens, Used for resynchronization.
response user data)
confirm
SESSIO
N
SERVIC
ES
SEQUE
NCE
DIAGR
AM
SESSION
LAYER
FUNCTIO
NAL
UNITS
SESSION PROTOCOL
Tokens
Data token
Release token
Sync-Minor token
Sync-Major/Activity token
Transaction activity
Synchronization
Major Synchronization point
Minor Synchronization point
CCA: Conceptual
Communication Area
MESSAGE HANDLING SYSTEM (MHS)
Message Transfer
System (MTS)
Message Transfer
Agent (MTA)