Chapter Two
Chapter Two
Chapter Two
1
2
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.
3
The OSI Model
• Developed by the International Organization for Standardization (ISO)
• ISO- is a multinational body dedicated to worldwide agreement on
international standards.
• An ISO standard that covers all aspects of network communications is
the Open Systems Interconnection (OSI) model
• Has seven layers
• Lower layers are concerned with greater levels of details
• Each layer provides services to the next higher layer
Note
ISO is the organization.
OSI is the model.
5
An exchange using the OSI model
6
LAYERS IN THE OSI MODEL
• Brief description of the functions of each layer in the OSI model.
Physical layer
• Framing-divides the stream of bits received from the network layer into
frames.
• Physical addressing-appends a header to the frame coming from network
layer.
• Flow control-ensures that source sends the data at a speed at which
destination can receive it
• If there is an overflow at the receiver-side the data will be lost
• Error control-is process of identification or correction of error occurred in
the transmitted data
Uses mechanisms to:
• Detect damaged-frames
• Retransmit lost frames
• Recognize duplicate frames
Normally, error control information is present in the trailer of the frame.
• Access control- determines which device has the right to send the data in
a multipoint connection 10
Hop-to-hop delivery
11
Network layer
13
Transport layer
15
Transport layer…cont’d
Responsible for
• Dialog control- allows 2 systems to start communication with each other in
half-duplex or Full-duplex.
• Synchronization- allows a process to add checkpoints into stream of data.
• The checkpoint is a way of informing the status of the data transfer
17
Presentation layer
20
Protocol Data Unit (PDU)
the combination of data and control information is a protocol data unit
(PDU)
typically control information is contained in a PDU header, some data
link layer PDUs include a trailer as well.
In this case, the PDU is referred to as a transport PDU.
Transport PDUs are typically called segments
The header in each segment contains control information to be used
by the peer transport protocol at computer B
headers may include:
source port, destination port, sequence number, and error-detection
code
21
TCP/IP Protocol Suite
The layers in the TCP/IP protocol suite do not exactly match those in
the OSI model. The original TCP/IP protocol suite was defined as having
four layers: host-to-network, internet, transport, and application.
However, when TCP/IP is compared to OSI, we can say that the TCP/IP
protocol suite is made of five layers: physical, data link, network,
transport, and application.
22
OSI Layers OSI v TCP/IP
23
TCP/IP Layers and Protocols
24
Physical Layer
covers the physical interface between computer and network
concerned with issues like:
characteristics of transmission medium
nature of the signals
data rates
implements procedures
needed to allow data to travel
across multiple interconnected
networks
IP is implemented in end
systems and routers
A router is a processor that connects two networks and whose primary function
is to relay data from one network to the other on its route from the source to the
26
destination end system.
IPv4(IP)
Minimum of 20 octets, 164bits
The header , together with the segment from the transport layer, forms
IP datagram or an IP packet.
The header includes 32-bit source and destination addresses.
The Header Checksum field is used to detect errors in the header to
avoid mis-delivery.
The Protocol field indicates which higher-layer protocol is using IP.
The ID, Flags, and Fragment Offset fields are used in the
fragmentation and reassembly process.
27
IPv6
Provides enhancements over existing IP
Designed to accommodate higher speeds and the mix of graphic and
video data
Driving force was the need for more addresses due to growth of the
Internet
IPv6 includes 128-bit source and destination address fields
28
Host-to-Host (Transport) Layer
29
Operation of TCP/IP
30
Operation of TCP/IP
IP header includes:
Destination subnetwork
address, priority
31
Transmission Control Protocol (TCP)
TCP is the transport layer protocol for most applications
TCP provides a reliable connection for transfer of data between
applications
A TCP segment is the basic protocol unit
TCP tracks segments between entities for duration of each connection
32
User Datagram Protocol(UDP)
alternative to TCP
does not guarantee delivery, preservation of sequence, or protection
against duplication
adds port addressing capability to IP
used with Simple Network Management Protocol (SNMP)
33
Application Layer
separate module ,
contains the logic dedicated to that
needed to support application, is needed
user applications for each type of
application
34
ADDRESSING
Four levels of addresses are used in an internet employing the TCP/IP
protocols: physical, logical, port, and specific.
Addresses in TCP/IP
2.35
Relationship of layers and addresses in TCP/IP
2.36
Physical addresses
Example
In Figure a node with physical address 10 sends a frame to a node with
physical address 87. The two nodes are connected by a link (bus topology
LAN). As the figure shows, the computer with physical address 10 is the
sender, and the computer with physical address 87 is the receiver.