SlideShare a Scribd company logo
1 of 29
McGraw-Hill
Chapter 23
Process-to-Process Delivery:
UDP, TCP
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
McGraw-Hill
23-1 PROCESS-TO-PROCESS DELIVERY
The transport layer is responsible for process-to-
process delivery—the delivery of a packet, part of a
message, from one process to another. Two processes
communicate in a client/server relationship,
In Client/Server communication, four entities must be defined:
•Sending Node
•Local Host IP
•Local Process Port number
•Receiving Node
• Remote host IP
•Remote Process ID Port number
McGraw-Hill
Position of UDP in the TCP/IP protocol suite
McGraw-Hill
Nesting of TPDU, Packets, and Frames
 Transport Protocol Data Unit (TPDU)
 Term used for transport entity to transport entity messages
 TPDUs are contained in packets exchanged by network layer
 Packets are contained in frames exchanged by data link layer
McGraw-Hill
Figure 23.1 Types of data deliveries
McGraw-Hill
Transport layer duties
Packetizing
Sender side: breaks application messages into segments, passes them to network
layer
 Transport layer at the receiving host deliver data to the receiving process
Connection control
Connection-oriented
Connectionless
Addressing
Port numbers to identify which network application
 Reliability
Flow control
Error Control
transport
-end transport
McGraw-Hill
The Internet Transport Layer
 The Internet supports two transport
layer protocols:
 The Transport Control Protocol (TCP) for
reliable service
 The Unreliable (User) Datagram Protocol
(UDP)
McGraw-Hill
Processes communicating across network
 Process is an instance of a program in execution.
 Processes on two hosts communicate with each other by sending and
receiving messages
 The process receives messages from, and sends messages into the
network through its socket
 A socket is the interface between the application layer and the
transport layer within a host.
 Sockets are the programming interface used to build network
applications over the internet.
 Programmers can select which transport layer protocol (UDP or TCP)
to be used by the application and select few transport-layer parameters
(maximum buffer size, Maximum segment size, starting sequence
number of segment).
McGraw-Hill
Port numbers
Transport layer at the receiving host delivers data to the
socket
There should be a unique identifier for each socket.
Socket identifier is called socket address
Socket address = IP address & Port number
McGraw-Hill
Figure 23.2 Port numbers
McGraw-Hill
Figure 23.3 IP addresses versus port numbers
Process-to-Process delivery needs IP address
and Port number
McGraw-Hill
Figure 22.4 IANA ranges
Port numbers are 16-bit integers between 0 - 65535
Well-known: Assigned and controlled by Internet Assigned Numbers
Authority IANA for example: FTP 20,21, TELNET 23, SMTP 25, HTTP
80
McGraw-Hill
Table 23.1 Well-known ports used with UDP
McGraw-Hill
Table 23.2 Well-known ports used by TCP
McGraw-Hill
Figure 23.7 Error control
Why we need error control at the
transport layer?
McGraw-Hill
Figure 22.6 Multiplexing and demultiplexing
Sender Receiver
Multiplexing: (at the sending node) The process of encapsulating data
messages from different applications sockets with the header
information and pass the segments to the network layer
DeMultiplexing: (at the receiving node) The process of delivering the
received data segment to the correct application
Example:
Suppose that the following is running on the same computer:
 Downloading a web page while transferring data through FTP
 Two telnet sessions are also running
 Transport layer receives TPDUs from network layer for all four
processes
McGraw-Hill
23-2 User Datagram Protocol (UDP)
 Connectionless
 No handshaking between UDP sender, receiver
 Each UDP segment handled independently of others
 A server application that uses UDP serves only ONE request at a time. All other requests are
stored in a queue waiting for service.
 Unreliable protocol has no flow and error control
 A UDP segment can be lost, arrive out of order, duplicated, or corrupted
 Checksum field checks error in the entire UDP segment. It is Optional
 UDP doe not do anything to recover from an error it simply discard the segment 
Application accepts full responsibility for errors
 It uses port numbers to multiplex/demultiplex data from/to the application layer.
 Advantages: Simple, minimum overhead, no connection delay
 Services provided by UDP:
 Process-to-Process delivery
 Error checking (however, if there is an error UDP does NOT do anything to recover from
error. It will just discard the message
McGraw-Hill
Figure 23.12 Queues in UDP
McGraw-Hill
UDP Applications
 Used for applications that can tolerate
small amount of packet loss:
 Multimedia applications,
 Internet telephony,
 real-time-video conferencing
 Domain Name System messages
 Audio
 Routing Protocols
McGraw-Hill
Figure 23.9 User datagram format
Header size = 8 bytes
Minimum UDP process data size 0 bytes
Maximum UDP process data size=
65535 – 20 (network layer headers) - 8 (UDP headres)= 65507
bytes
McGraw-Hill
UDP length
= IP length – IP header’s length
Note
McGraw-Hill
23-3 Transmission Control Protocol
(TCP)
 Transmission Control Protocol
properties:
 Connection-oriented (establishment &
termination)
 Reliable
 Full-duplex
McGraw-Hill
Connection-Oriented
 Connection oriented means that a virtual connection is established
before any data is transferred.
 Connection ensures that the receiving process is available and ready
before the data is sent
 Three-way handshaking connection establishment procedure
because TCP is full-duplex both side must initialize communication
and get approval from the other side before any data transfer,
 Virtual connection since TCP protocol will make sure that segments
are given to the receiver application in the same order as they were
sent by the sender even if they travel through different physical paths
 A server application that uses TCP can handle many client requests at
the same time each has its own connection.
McGraw-Hill
Connection establishment and termination
Connection establishment
Connection release
Combined
into one
step
McGraw-Hill
Figure 23.13 Stream delivery
TCP establishes a virtual connection
TCP will deliver segments to the applications in order
and without error, lost, or duplicates
McGraw-Hill
Full Duplex
 Data segments can flow in both
directions at the same time.
 Each TCP connection has its own
sending and receiving buffers.
McGraw-Hill
Flow control and Reliability
 Flow control (process-to-process): TCP makes sure that the sender
does not cause the receiver buffer to overflow
 By defining the amount of data that can be sent before receiving an
acknowledgement from the receiver (sliding – window protocols)
 Error control (process-to-process): entire message arrives at the
receiving transport layer without error, loss, duplication and in the
same order they were sent
 Error detection is done using checksum and correction by retransmission
 Implemented by a sliding window ARQ
 Every transmission of data is acknowledged by the receiver.
 Acknowledgements are cumulative.
 If the sender does not receive ACK within a specified amount of time, the
sender retransmits the data.
 Accepts out of order but does Not send negative acknowledgements,
 if a segment is not acknowledged before time-out, it is considered to be
either corrupted or lost and the sender will retransmit the segment only
when it times-out
McGraw-Hill
TCP Applications
 Following applications require reliable
data transfer through TCP:
 WWW using HTTP
 Electronic mail using SMTP
 Telnet
 File transfer using FTP
McGraw-Hill
Figure 23.16 TCP segment format
Minimum header length is 20
bytes and the maximum is 60
bytes when there are options

More Related Content

Similar to Transport_layer.ppt

Transport Layer [Autosaved]
Transport Layer [Autosaved]Transport Layer [Autosaved]
Transport Layer [Autosaved]Ram Dutt Shukla
 
DCN 5th ed. slides ch24 Transport-Layer Protocols.pdf
DCN 5th ed. slides ch24 Transport-Layer Protocols.pdfDCN 5th ed. slides ch24 Transport-Layer Protocols.pdf
DCN 5th ed. slides ch24 Transport-Layer Protocols.pdfBilal Munir Mughal
 
Computer Communication Networks- TRANSPORT LAYER PROTOCOLS
Computer Communication Networks- TRANSPORT LAYER PROTOCOLSComputer Communication Networks- TRANSPORT LAYER PROTOCOLS
Computer Communication Networks- TRANSPORT LAYER PROTOCOLSKrishna Nanda
 
Group 3 Presen.pptx
Group 3 Presen.pptxGroup 3 Presen.pptx
Group 3 Presen.pptxStudyvAbhi
 
transport layer protocols
transport layer protocolstransport layer protocols
transport layer protocolsBE Smârt
 
UNIT IV-Transport Layer.pptx
UNIT IV-Transport Layer.pptxUNIT IV-Transport Layer.pptx
UNIT IV-Transport Layer.pptxLAVANYAsrietacin
 
Jaimin chp-6 - transport layer- 2011 batch
Jaimin   chp-6 - transport layer- 2011 batchJaimin   chp-6 - transport layer- 2011 batch
Jaimin chp-6 - transport layer- 2011 batchJaimin Jani
 
LECTURE-Transport-Layer_lec.ppt
LECTURE-Transport-Layer_lec.pptLECTURE-Transport-Layer_lec.ppt
LECTURE-Transport-Layer_lec.pptMonirHossain707319
 
23 Process to_Process_Delivery_UDP_TCP_and_SCTP
23 Process to_Process_Delivery_UDP_TCP_and_SCTP23 Process to_Process_Delivery_UDP_TCP_and_SCTP
23 Process to_Process_Delivery_UDP_TCP_and_SCTPAhmar Hashmi
 
transport-layer-forouzan.pdf
transport-layer-forouzan.pdftransport-layer-forouzan.pdf
transport-layer-forouzan.pdfAsifSalim12
 
Networking essentials lect3
Networking essentials lect3Networking essentials lect3
Networking essentials lect3Roman Brovko
 

Similar to Transport_layer.ppt (20)

Transport Layer [Autosaved]
Transport Layer [Autosaved]Transport Layer [Autosaved]
Transport Layer [Autosaved]
 
07 coms 525 tcpip - udp
07    coms 525 tcpip - udp07    coms 525 tcpip - udp
07 coms 525 tcpip - udp
 
DCN 5th ed. slides ch24 Transport-Layer Protocols.pdf
DCN 5th ed. slides ch24 Transport-Layer Protocols.pdfDCN 5th ed. slides ch24 Transport-Layer Protocols.pdf
DCN 5th ed. slides ch24 Transport-Layer Protocols.pdf
 
Computer Communication Networks- TRANSPORT LAYER PROTOCOLS
Computer Communication Networks- TRANSPORT LAYER PROTOCOLSComputer Communication Networks- TRANSPORT LAYER PROTOCOLS
Computer Communication Networks- TRANSPORT LAYER PROTOCOLS
 
Transport layer
Transport layerTransport layer
Transport layer
 
Group 3 Presen.pptx
Group 3 Presen.pptxGroup 3 Presen.pptx
Group 3 Presen.pptx
 
Unit 5.Transport Layer.pptx
Unit 5.Transport Layer.pptxUnit 5.Transport Layer.pptx
Unit 5.Transport Layer.pptx
 
transport layer protocols
transport layer protocolstransport layer protocols
transport layer protocols
 
UNIT IV-Transport Layer.pptx
UNIT IV-Transport Layer.pptxUNIT IV-Transport Layer.pptx
UNIT IV-Transport Layer.pptx
 
Jaimin chp-6 - transport layer- 2011 batch
Jaimin   chp-6 - transport layer- 2011 batchJaimin   chp-6 - transport layer- 2011 batch
Jaimin chp-6 - transport layer- 2011 batch
 
Lec6
Lec6Lec6
Lec6
 
LECTURE-Transport-Layer_lec.ppt
LECTURE-Transport-Layer_lec.pptLECTURE-Transport-Layer_lec.ppt
LECTURE-Transport-Layer_lec.ppt
 
TCP Vs UDP
TCP Vs UDP TCP Vs UDP
TCP Vs UDP
 
tcp.pptx
tcp.pptxtcp.pptx
tcp.pptx
 
TCP/IP Basics
TCP/IP BasicsTCP/IP Basics
TCP/IP Basics
 
23 Process to_Process_Delivery_UDP_TCP_and_SCTP
23 Process to_Process_Delivery_UDP_TCP_and_SCTP23 Process to_Process_Delivery_UDP_TCP_and_SCTP
23 Process to_Process_Delivery_UDP_TCP_and_SCTP
 
Ch23
Ch23Ch23
Ch23
 
transport-layer-forouzan.pdf
transport-layer-forouzan.pdftransport-layer-forouzan.pdf
transport-layer-forouzan.pdf
 
Networking essentials lect3
Networking essentials lect3Networking essentials lect3
Networking essentials lect3
 
Cs8591 u4
Cs8591 u4Cs8591 u4
Cs8591 u4
 

More from Jayaprasanna4

Human computer Interaction ch1-the human.pdf
Human computer Interaction ch1-the human.pdfHuman computer Interaction ch1-the human.pdf
Human computer Interaction ch1-the human.pdfJayaprasanna4
 
computer Networks Error Detection and Correction.ppt
computer Networks Error Detection and Correction.pptcomputer Networks Error Detection and Correction.ppt
computer Networks Error Detection and Correction.pptJayaprasanna4
 
HUman computer Interaction Socio-organizational Issues.ppt
HUman computer Interaction Socio-organizational Issues.pptHUman computer Interaction Socio-organizational Issues.ppt
HUman computer Interaction Socio-organizational Issues.pptJayaprasanna4
 
human computer Interaction cognitive models.ppt
human computer Interaction cognitive models.ppthuman computer Interaction cognitive models.ppt
human computer Interaction cognitive models.pptJayaprasanna4
 
World wide web and Hyper Text Markup Language
World wide web and Hyper Text Markup LanguageWorld wide web and Hyper Text Markup Language
World wide web and Hyper Text Markup LanguageJayaprasanna4
 
Activity planning.ppt
Activity planning.pptActivity planning.ppt
Activity planning.pptJayaprasanna4
 
Activity planning.ppt
Activity planning.pptActivity planning.ppt
Activity planning.pptJayaprasanna4
 
Lecture 19- Multicasting.ppt
Lecture 19- Multicasting.pptLecture 19- Multicasting.ppt
Lecture 19- Multicasting.pptJayaprasanna4
 
connecting LANs.pptx
connecting LANs.pptxconnecting LANs.pptx
connecting LANs.pptxJayaprasanna4
 
session and cookies.ppt
session and cookies.pptsession and cookies.ppt
session and cookies.pptJayaprasanna4
 
connecting devices.ppt
connecting devices.pptconnecting devices.ppt
connecting devices.pptJayaprasanna4
 

More from Jayaprasanna4 (20)

Human computer Interaction ch1-the human.pdf
Human computer Interaction ch1-the human.pdfHuman computer Interaction ch1-the human.pdf
Human computer Interaction ch1-the human.pdf
 
computer Networks Error Detection and Correction.ppt
computer Networks Error Detection and Correction.pptcomputer Networks Error Detection and Correction.ppt
computer Networks Error Detection and Correction.ppt
 
HUman computer Interaction Socio-organizational Issues.ppt
HUman computer Interaction Socio-organizational Issues.pptHUman computer Interaction Socio-organizational Issues.ppt
HUman computer Interaction Socio-organizational Issues.ppt
 
human computer Interaction cognitive models.ppt
human computer Interaction cognitive models.ppthuman computer Interaction cognitive models.ppt
human computer Interaction cognitive models.ppt
 
World wide web and Hyper Text Markup Language
World wide web and Hyper Text Markup LanguageWorld wide web and Hyper Text Markup Language
World wide web and Hyper Text Markup Language
 
CI-Monte-Carlo.ppt
CI-Monte-Carlo.pptCI-Monte-Carlo.ppt
CI-Monte-Carlo.ppt
 
Activity planning.ppt
Activity planning.pptActivity planning.ppt
Activity planning.ppt
 
Cost effort.ppt
Cost effort.pptCost effort.ppt
Cost effort.ppt
 
Activity planning.ppt
Activity planning.pptActivity planning.ppt
Activity planning.ppt
 
unit-1.ppt
unit-1.pptunit-1.ppt
unit-1.ppt
 
BGP.ppt
BGP.pptBGP.ppt
BGP.ppt
 
Lecture 19- Multicasting.ppt
Lecture 19- Multicasting.pptLecture 19- Multicasting.ppt
Lecture 19- Multicasting.ppt
 
line coding.ppt
line coding.pptline coding.ppt
line coding.ppt
 
error detection.ppt
error detection.ppterror detection.ppt
error detection.ppt
 
connecting LANs.pptx
connecting LANs.pptxconnecting LANs.pptx
connecting LANs.pptx
 
CS1302 06NOV.pdf
CS1302 06NOV.pdfCS1302 06NOV.pdf
CS1302 06NOV.pdf
 
session and cookies.ppt
session and cookies.pptsession and cookies.ppt
session and cookies.ppt
 
JDBC.ppt
JDBC.pptJDBC.ppt
JDBC.ppt
 
connecting devices.ppt
connecting devices.pptconnecting devices.ppt
connecting devices.ppt
 
ARP.ppt
ARP.pptARP.ppt
ARP.ppt
 

Recently uploaded

KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlysanyuktamishra911
 
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).pptssuser5c9d4b1
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxpurnimasatapathy1234
 
result management system report for college project
result management system report for college projectresult management system report for college project
result management system report for college projectTonystark477637
 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordAsst.prof M.Gokilavani
 
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...ranjana rawat
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxupamatechverse
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...roncy bisnoi
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdfankushspencer015
 
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service NashikCall Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 
Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxupamatechverse
 
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escortsranjana rawat
 
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSHARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSRajkumarAkumalla
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escortsranjana rawat
 
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...ranjana rawat
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Christo Ananth
 

Recently uploaded (20)

KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghly
 
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
 
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINEDJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptx
 
result management system report for college project
result management system report for college projectresult management system report for college project
result management system report for college project
 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
 
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptx
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
 
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdf
 
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service NashikCall Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
 
Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptx
 
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
 
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSHARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
 
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
 
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
 

Transport_layer.ppt

  • 1. McGraw-Hill Chapter 23 Process-to-Process Delivery: UDP, TCP Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
  • 2. McGraw-Hill 23-1 PROCESS-TO-PROCESS DELIVERY The transport layer is responsible for process-to- process delivery—the delivery of a packet, part of a message, from one process to another. Two processes communicate in a client/server relationship, In Client/Server communication, four entities must be defined: •Sending Node •Local Host IP •Local Process Port number •Receiving Node • Remote host IP •Remote Process ID Port number
  • 3. McGraw-Hill Position of UDP in the TCP/IP protocol suite
  • 4. McGraw-Hill Nesting of TPDU, Packets, and Frames  Transport Protocol Data Unit (TPDU)  Term used for transport entity to transport entity messages  TPDUs are contained in packets exchanged by network layer  Packets are contained in frames exchanged by data link layer
  • 5. McGraw-Hill Figure 23.1 Types of data deliveries
  • 6. McGraw-Hill Transport layer duties Packetizing Sender side: breaks application messages into segments, passes them to network layer  Transport layer at the receiving host deliver data to the receiving process Connection control Connection-oriented Connectionless Addressing Port numbers to identify which network application  Reliability Flow control Error Control transport -end transport
  • 7. McGraw-Hill The Internet Transport Layer  The Internet supports two transport layer protocols:  The Transport Control Protocol (TCP) for reliable service  The Unreliable (User) Datagram Protocol (UDP)
  • 8. McGraw-Hill Processes communicating across network  Process is an instance of a program in execution.  Processes on two hosts communicate with each other by sending and receiving messages  The process receives messages from, and sends messages into the network through its socket  A socket is the interface between the application layer and the transport layer within a host.  Sockets are the programming interface used to build network applications over the internet.  Programmers can select which transport layer protocol (UDP or TCP) to be used by the application and select few transport-layer parameters (maximum buffer size, Maximum segment size, starting sequence number of segment).
  • 9. McGraw-Hill Port numbers Transport layer at the receiving host delivers data to the socket There should be a unique identifier for each socket. Socket identifier is called socket address Socket address = IP address & Port number
  • 11. McGraw-Hill Figure 23.3 IP addresses versus port numbers Process-to-Process delivery needs IP address and Port number
  • 12. McGraw-Hill Figure 22.4 IANA ranges Port numbers are 16-bit integers between 0 - 65535 Well-known: Assigned and controlled by Internet Assigned Numbers Authority IANA for example: FTP 20,21, TELNET 23, SMTP 25, HTTP 80
  • 13. McGraw-Hill Table 23.1 Well-known ports used with UDP
  • 15. McGraw-Hill Figure 23.7 Error control Why we need error control at the transport layer?
  • 16. McGraw-Hill Figure 22.6 Multiplexing and demultiplexing Sender Receiver Multiplexing: (at the sending node) The process of encapsulating data messages from different applications sockets with the header information and pass the segments to the network layer DeMultiplexing: (at the receiving node) The process of delivering the received data segment to the correct application Example: Suppose that the following is running on the same computer:  Downloading a web page while transferring data through FTP  Two telnet sessions are also running  Transport layer receives TPDUs from network layer for all four processes
  • 17. McGraw-Hill 23-2 User Datagram Protocol (UDP)  Connectionless  No handshaking between UDP sender, receiver  Each UDP segment handled independently of others  A server application that uses UDP serves only ONE request at a time. All other requests are stored in a queue waiting for service.  Unreliable protocol has no flow and error control  A UDP segment can be lost, arrive out of order, duplicated, or corrupted  Checksum field checks error in the entire UDP segment. It is Optional  UDP doe not do anything to recover from an error it simply discard the segment  Application accepts full responsibility for errors  It uses port numbers to multiplex/demultiplex data from/to the application layer.  Advantages: Simple, minimum overhead, no connection delay  Services provided by UDP:  Process-to-Process delivery  Error checking (however, if there is an error UDP does NOT do anything to recover from error. It will just discard the message
  • 19. McGraw-Hill UDP Applications  Used for applications that can tolerate small amount of packet loss:  Multimedia applications,  Internet telephony,  real-time-video conferencing  Domain Name System messages  Audio  Routing Protocols
  • 20. McGraw-Hill Figure 23.9 User datagram format Header size = 8 bytes Minimum UDP process data size 0 bytes Maximum UDP process data size= 65535 – 20 (network layer headers) - 8 (UDP headres)= 65507 bytes
  • 21. McGraw-Hill UDP length = IP length – IP header’s length Note
  • 22. McGraw-Hill 23-3 Transmission Control Protocol (TCP)  Transmission Control Protocol properties:  Connection-oriented (establishment & termination)  Reliable  Full-duplex
  • 23. McGraw-Hill Connection-Oriented  Connection oriented means that a virtual connection is established before any data is transferred.  Connection ensures that the receiving process is available and ready before the data is sent  Three-way handshaking connection establishment procedure because TCP is full-duplex both side must initialize communication and get approval from the other side before any data transfer,  Virtual connection since TCP protocol will make sure that segments are given to the receiver application in the same order as they were sent by the sender even if they travel through different physical paths  A server application that uses TCP can handle many client requests at the same time each has its own connection.
  • 24. McGraw-Hill Connection establishment and termination Connection establishment Connection release Combined into one step
  • 25. McGraw-Hill Figure 23.13 Stream delivery TCP establishes a virtual connection TCP will deliver segments to the applications in order and without error, lost, or duplicates
  • 26. McGraw-Hill Full Duplex  Data segments can flow in both directions at the same time.  Each TCP connection has its own sending and receiving buffers.
  • 27. McGraw-Hill Flow control and Reliability  Flow control (process-to-process): TCP makes sure that the sender does not cause the receiver buffer to overflow  By defining the amount of data that can be sent before receiving an acknowledgement from the receiver (sliding – window protocols)  Error control (process-to-process): entire message arrives at the receiving transport layer without error, loss, duplication and in the same order they were sent  Error detection is done using checksum and correction by retransmission  Implemented by a sliding window ARQ  Every transmission of data is acknowledged by the receiver.  Acknowledgements are cumulative.  If the sender does not receive ACK within a specified amount of time, the sender retransmits the data.  Accepts out of order but does Not send negative acknowledgements,  if a segment is not acknowledged before time-out, it is considered to be either corrupted or lost and the sender will retransmit the segment only when it times-out
  • 28. McGraw-Hill TCP Applications  Following applications require reliable data transfer through TCP:  WWW using HTTP  Electronic mail using SMTP  Telnet  File transfer using FTP
  • 29. McGraw-Hill Figure 23.16 TCP segment format Minimum header length is 20 bytes and the maximum is 60 bytes when there are options