Module1 Layered Architecture Chap2
Module1 Layered Architecture Chap2
• Ann
needs to
move to
another
branch
located
in a city
very far
from
Maria.
Why Layering?
• Protocol layering enables us to divide a
complex task into several smaller and
simpler tasks.
• To achieve modularity. Modularity in this
case means independent layers.
• A layer (module) can be defined as a black
box with inputs and outputs, without
concern about how inputs are changed to
outputs.
Principles of Protocol Layering
1. If we want bidirectional communication, we need
to make each layer so that it is able to perform
two opposite tasks, one in each direction.
Ex: the third layer task is to listen (in one direction)
and talk (in the other direction).
Note:
• Although the logical connection at the network layer is
between the two hosts, identical objects exist between two
hops in this case because a router may fragment the packet at
the network layer and send more packets than received
• The link between two hops does not change the object.
Network support layers
physical layer
data link layer
network layer
User support layer
application layer
2.19
2. Data Link Layer (DLL)
Transforms the Physical layer, a raw transmission
facility into a reliable link
DLL Functions
1. Framing – divides the stream of bits into
smaller data units called frames
2. Physical addressing – Adds address of
receiver
3. Flow Control – Prevents a fast Transmitter
from swamping a slow receiver
4. Error Control – Adds a trailer for error
detection
5. Access Control – Determines which device
has control over the link at any instant of time
Data Link Layer Example
Note
2.24
3. Network Layer (NL)
Responsible for delivery of individual packets from
Source to destination
NL Functions
• Logical addressing – to distinguish between
source & destination when packets are
Crossing network boundaries
• Routing – During interconnection of
networks packets are to be routed to their
final destination
Example
Figure 2.20 IP addresses
2.29
NL Protocols
• It supports Internetworking protocol(IP) –Unreliable &
connectionless protocol (BEST EFFORT)
• IP uses 4 supporting protocols:
– ARP (Address resolution protocol) – Associates a logical
address with a physical address (finds PA when its LA is
known)
– RARP(Reverse ARP) – Allows a host to discover its network
address when its Physical address is known
– ICMP(Internet Control message protocol) – Mechanism
used by hosts & GW’s to send notification of datagram
problems back to the sender
– DHCP(Dynamic host configuration protocol) – Facilitates
IP to get the network layer address of a host
– IGMP(Internet Group management protocol) – To transmit
to a group of systems
Note
2.31
4. Transport Layer (TL)
Responsible for Process to Process delivery of the
entire message
TL Functions
1. Service –point addressing - Due to several programs
being run simultaneously on a computer addressing
should be made from the generating process port of
sender to that of the rx.
2. Segmentation & reassembly – Sequence numbers
are introduced in the packet header
3. Connection Control – Can be Connection-oriented
or connection less
4. Flow Control – End-to-end as compared to Single
link
5. Error Control – Process to Process (generally
achieved thro’ retransmission.)
Reliable process-to-process delivery of a message
Example
Figure shows an example of transport layer
communication. Data coming from the upper layers have
port addresses j and k (j is the address of the sending
process, and k is the address of the receiving process).
Since the data size is larger than the network layer can
handle, the data are split into two packets, each packet
retaining the port addresses (j and k). Then in the network
layer, network addresses (A and P) are added to each
packet.
Example
Transport Layer Protocols
• UDP – Unreliable packet delivery or Connection
less protocol.
– Adds only port addresses, checksum for error control
and length information of the data
• TCP – Reliable, connection oriented stream
transport protocol
– Provides sequencing, flow & error control.
• SCTP – Stream Control Transmission Protocol
– Combines best features of TCP & UDP
– Provides support for newer applications such as
VoIP
Note
2.38
5. Application Layer (App L)
Provides Communication Services to user
applications
App Layer Functions
• Network virtual terminal – Software version of
a physical terminal and it allows users to log
onto a remote host
• File transfer, access and management – access
& retrieve files from a remote host
• Mail Services – Basis for email forwarding &
storage
• Directory services – Provides distributed
database sources & access for global info.
Specific Addresses
User friendly addresses
Ex:
www.google.com
www.rediffmail.com
www.rnsit.co.in
Application Layer Protocols
• SNMP(Simple Network Management Protocol): used by an
administrator to manage the Internet at global and local
levels.
• FTP(File Transfer Protocol): used for transferring files
from one host to another
• SMTP(Simple Mail Transfer Protocol): main protocol used
in electronic mail (e-mail) service
• HTTP(Hyper text transfer protocol): is a vehicle for
accessing the world wide web
• DNS (Domain Name System ): used by other protocols to
find the network-layer address of a computer
• TELNET (Terminal Network): used for accessing a site
remotely
• …………….
Note
2. The transport layer takes the message as the payload, the load
that the transport layer should take care of. It adds the transport
layer header to the payload, which contains the identifiers of
the source and destination application programs that want to
communicate plus some more information that is needed for the
end-to-end delivery of the message, such as information needed
for flow, error control, or congestion control. The result is the
transport-layer packet, which is called the segment (in TCP)
and the user datagram (in UDP). The transport layer then
passes the packet to the network layer.
3. The network layer takes the transport-layer packet as data or
payload and adds its own header to the payload. The header
contains the addresses of the source and destination hosts and
some more information used for error checking of the header,
fragmentation information, and so on. The result is the network-
layer packet, called a datagram. The network layer then passes the
packet to the data-link layer.
1.Link layer/Physical
Addresses
2.Logical Addresses
3.Port Addresses
4.Specific
Addresses/Names
2.50
Addresses in TCP/IP
Relationship of layers and addresses in TCP/IP
Physical addresses-Review
Ex: IPv4
100.20.31.5
Or IPv6
Fe08:2189:557
f:3209
Port addresses
TCP/IP port
address is 2
bytes(16 bits) in
length
Ex: www.google.com
www.rediffmail.com
www.rnsit.co.in
www.vtu.ac.in
Multiplexing and Demultiplexing
Since the TCP/IP protocol suite uses several protocols at
some layers, we can say that we have multiplexing at the
source and demultiplexing at the destination.
•Standardizes interfaces
•Accelerates evolution
2.68
Session Layer
Note