Upload
tabby919
View
216
Download
0
Embed Size (px)
Citation preview
8/3/2019 DC-Lec-10 (TCP-IP Layers )
1/27
DATACOMMUNICATION
Lecture-10
8/3/2019 DC-Lec-10 (TCP-IP Layers )
2/27
Recap Of Lecture-8 & 9
The OSI Model
Function of Layers
8/3/2019 DC-Lec-10 (TCP-IP Layers )
3/27
Comparison andContrast between theOSI and TCP/IP Model
8/3/2019 DC-Lec-10 (TCP-IP Layers )
4/27
Introduction This presentation would discuss some comparison
and contrast between the 2 main reference modelswhich uses the concept of protocol layering.
Open System Interconnection Model (OSI)
Transport Control Protocol /Internet Protocol
(TCP/IP)
8/3/2019 DC-Lec-10 (TCP-IP Layers )
5/27
Introduction The topics that we will be discussing would be based
on the diagram below.
OSI TCP / IP
Application (Layer7)Application
Presentation (Layer6)
Session (Layer 5)Transport (Layer 4) Transport
Network (Layer 3) Internet
Data Link (Layer 2)Subnet
Physical (Layer 1)
8/3/2019 DC-Lec-10 (TCP-IP Layers )
6/27
The Upper LayersOSI TCP / IP
Application (Layer7)
ApplicationPresentation (Layer6)
Session (Layer 5)
Session
Presentation Application
8/3/2019 DC-Lec-10 (TCP-IP Layers )
7/27
The Session Layer The Session layer permits two parties to hold
ongoing communications called a session across anetwork.
Not found in TCP/IP model In TCP/IP, its characteristics are provided by the TCP
protocol. (Transport Layer)
8/3/2019 DC-Lec-10 (TCP-IP Layers )
8/27
The Presentation Layer The Presentation Layer handles data format
information for networked communications. This isdone by converting data into a generic format thatcould be understood by both sides.
Not found in TCP/IP model
In TCP/IP, this function is provided by theApplication Layer.
e.g. External Data Representation Standard (XDR)
Multipurpose Internet Mail Extensions (MIME)
8/3/2019 DC-Lec-10 (TCP-IP Layers )
9/27
The Application LayerThe Application Layer is the top layer of the reference model.It provides a set of interfaces for applications to obtain accessto networked services as well as access to the kinds ofnetwork services that support applications directly.
OSI - FTAM,VT,MHS,DS,CMIPTCP/IP - FTP,SMTP,TELNET,DNS,SNMP
Although the notion of an application process is common to
both, their approaches to constructing application entities isdifferent.
8/3/2019 DC-Lec-10 (TCP-IP Layers )
10/27
Approaches use inconstructing applicationentities The diagram belowprovides an overall view on the methods useby both the OSI and TCP/IPmodel.
http://h_cn_osi.ppt/http://h_cn_osi.ppt/http://h_cn_osi.ppt/http://h_cn_osi.ppt/http://h_cn_osi.ppt/http://h_cn_osi.ppt/8/3/2019 DC-Lec-10 (TCP-IP Layers )
11/27
Transport Layer
The functionality of the transport layer is to providetransparent transfer of data from a source end open systemto a destination end open system.
OSI TCP / IP
Transport (Layer 4) Transport (TCP/UDP)
8/3/2019 DC-Lec-10 (TCP-IP Layers )
12/27
Transport Layer Transport is responsible for
creating and maintaining the basic end-to-end connection betweencommunicating open systems,
ensuring that the bits delivered to the receiver are the same as the bits
transmitted by the sender; in the same order and without modification, loss or duplication
8/3/2019 DC-Lec-10 (TCP-IP Layers )
13/27
OSI Transport Layer Segmentation and reassembly Also provide a signaling service for the remote node so that the
sending node is notified when its data is received successfully bythe receiving node
capability to acknowledge and retransmit if noacknowledgement is received
mark packets with sequencing information so that thedestination system can properly order the packets if theyrereceived out-of-sequence
8/3/2019 DC-Lec-10 (TCP-IP Layers )
14/27
OSI Transport Layer Transport protocols provide the capability for multiple
application processes to access the network by using individuallocal addresses to determine the destination process for each
data stream
8/3/2019 DC-Lec-10 (TCP-IP Layers )
15/27
TCP/IP Transport Layer Defines two standard transport protocols:
TCP implements a reliable data-stream protocol
connection oriented UDP
implements an unreliable data-stream
connectionless
useful in many applications where data needs to bebroadcasted or multicasted
Primary difference is that UDP does not necessarily providereliable data transmission
8/3/2019 DC-Lec-10 (TCP-IP Layers )
16/27
TCP/IP Transport Layer Many programs will use a separate TCP
connection as well as a UDP connection
8/3/2019 DC-Lec-10 (TCP-IP Layers )
17/27
TCP/IP Transport Layer TCP is responsible for data recovery
by providing a sequence number with each packet that it
sends TCP requires ACK (acknowledgement) to ensure
correct data is received
Packet can be retransmitted if error detected
8/3/2019 DC-Lec-10 (TCP-IP Layers )
18/27
TCP/IP Transport Layer Use of ACK
8/3/2019 DC-Lec-10 (TCP-IP Layers )
19/27
TCP/IP Transport Layer TCP and UDP introduce the concept of ports
Common ports and the services that run onthem: FTP 21 and 20
telnet 23
SMTP 25
http 80 POP3 110
8/3/2019 DC-Lec-10 (TCP-IP Layers )
20/27
TCP/IP Transport Layer By specifying ports and including port numbers with
TCP/UDP data, multiplexing is achieved
Multiplexing allows multiple network connectionsto take place simultaneously
The port numbers, along with the source and
destination addresses for the data, determine asocket
8/3/2019 DC-Lec-10 (TCP-IP Layers )
21/27
Comparing Transport forboth Models The features of UDP and TCP defined at TCP/IP
Transport Layer correspond to many of therequirements of the OSI Transport Layer. There is abit of bleed over for requirements in the sessionlayer of OSI since sequence numbers, and portvalues can help to allow the Operating System tokeep track of sessions, but most of the TCP and UDPfunctions and specifications map to the OSI
Transport Layer.
8/3/2019 DC-Lec-10 (TCP-IP Layers )
22/27
Network vs. Internet
Like all the other OSI Layers, the network layerprovides both connectionless and connection-
oriented services. As for the TCP/IP architecture,the internet layer is exclusively connectionless.
OSI TCP / IP
Network (Layer 3) Internet
8/3/2019 DC-Lec-10 (TCP-IP Layers )
23/27
Data link / Physical vs.Subnet
Data link layer The function of the Data Link Layer is provides for the control of
the physical layer, and detects and possibly corrects errors whichmay occur .
In another words, the Data Link Layer transforms a stream of rawbits (0s and 1s) from the physical into a data frame and provides anerror-free transfer from one node to another, allowing the layersabove it to assume virtually error-free transmission
OSI TCP / IP
Data Link (Layer 2)Subnet
Physical (Layer 1)
8/3/2019 DC-Lec-10 (TCP-IP Layers )
24/27
Data link / Physical vs.Subnet Physical layer
The function of the Physical Layer is to provide
mechanical, electrical, functional, and procedural meansto activate a physical connection for bit transmission.
Basically, this means that the typical role of the physicallayer is to transform bits in a computer system into
electromagnetic (or equivalent) signals for a particulartransmission medium (wire, fiber, ether, etc.)
TCP/IP Model
8/3/2019 DC-Lec-10 (TCP-IP Layers )
25/27
OSI & TCP/IP ModelsTCP/IP Model
8/3/2019 DC-Lec-10 (TCP-IP Layers )
26/27
TCP/IP ModelApplication Layer
Application programs using the networkTransport Layer (TCP/UDP)
Management of end-to-end message transmission,
error detection and error correction
Network Layer (IP)Handling of datagrams : routing and congestion
Data Link LayerManagement of cost effective and reliable data delivery,
access to physical networksPhysical LayerPhysical Media
8/3/2019 DC-Lec-10 (TCP-IP Layers )
27/27
Suggested Reading Section
2.4,
Data Communications and Networking 4thEdition by Behrouz A. Forouzan