Lecture Objectives
Learn about the responsibilities of Transport
Layer
Process to Process Delivery
Protocols of Transport Layer
Working of UDP
working of TCP
Discussion about the Headers of UDP and TCP
Position of Transport Layer
The transport layer is responsible for
process-to-process delivery.
Note
Note:
:
Types of Data Deliveries
Port Numbers
IP addresses versus port numbers
IANA ranges
Socket address
Multiplexing and Demultiplexing
Connection establishment
Connection termination
Error control
UDP is a connectionless, unreliable
protocol that has no flow and error
control. It uses port numbers to
multiplex data from the application
layer.
Note
Note:
:
Well-known ports used by UDP
Well-known ports used by UDP
9 Discard Discards any datagram that is received
11 Users Active users
13 Daytime Returns the date and the time
17 Quote Returns a quote of the day
19 Chargen Returns a string of characters
53 Nameserver Domain Name Service
67 Bootps
Server port to download bootstrap
information
68 Bootpc
Client port to download bootstrap
information
69 TFTP Trivial File Transfer Protocol
111 RPC Remote Procedure Call
123 NTP Network Time Protocol
161 SNMP Simple Network Management Protocol
162 SNMP
Simple Network Management Protocol
(trap)
User datagram format
The calculation of checksum and its
inclusion in the user datagram are
optional.
Note
Note:
:
UDP is a convenient transport-layer
protocol for applications that provide
flow and error control. It is also used
by multimedia applications.
Note
Note:
:
TCP Services
TCP Services
Port Numbers
Services
Sequence Numbers
Segments
Connection
Flow and Error Control
Table 22.2
Table 22.2 Well-known ports used by TCP
Well-known ports used by TCP
Port Protocol Description
7 Echo Echoes a received datagram back to the sender
9 Discard Discards any datagram that is received
11 Users Active users
13 Daytime Returns the date and the time
17 Quote Returns a quote of the day
19 Chargen Returns a string of characters
20 FTP, Data File Transfer Protocol (data connection)
21 FTP, Control File Transfer Protocol (control connection)
23 TELNET Terminal Network
25 SMTP Simple Mail Transfer Protocol
53 DNS Domain Name Server
67 BOOTP Bootstrap Protocol
79 Finger Finger
80 HTTP Hypertext Transfer Protocol
111 RPC Remote Procedure Call
Stream Delivery
Sending and Receiving Buffers
TCP Segments
Example 1
Example 1
Imagine a TCP connection is transferring a file of 6000
bytes. The first byte is numbered 10010. What are the
sequence numbers for each segment if data are sent in five
segments with the first four segments carrying 1000 bytes
and the last segment carrying 2000 bytes?
Solution
Solution
The following shows the sequence number for each segment:
Segment 1 ==> sequence number: 10,010 (range: 10,010 to 11,009)
Segment 2 ==> sequence number: 11,010 (range: 11,010 to 12,009)
Segment 3 ==> sequence number: 12,010 (range: 12,010 to 13,009)
Segment 4 ==> sequence number: 13,010 (range: 13,010 to 14,009)
Segment 5 ==> sequence number: 14,010 (range: 14,010 to 16,009)
The bytes of data being transferred in
each connection are numbered by
TCP. The numbering starts with a
randomly generated number.
Note
Note:
:
The value of the sequence number
field in a segment defines the number
of the first data byte contained in that
segment.
Note
Note:
:
The value of the acknowledgment field
in a segment defines the number of the
next byte a party expects to receive.
The acknowledgment number is
cumulative.
Note
Note:
:
TCP segment format
Control Field
Description of flags in the control field
Description of flags in the control field
Flag Description
URG The value of the urgent pointer field is valid.
ACK The value of the acknowledgment field is valid.
PSH Push the data.
RST The connection must be reset.
SYN Synchronize sequence numbers during connection.
FIN Terminate the connection.
Three-step Connection Establishment
Four-step Connection Termination
States for TCP
States for TCP
State Description
CLOSED There is no connection.
LISTEN The server is waiting for calls from the client.
SYN-SENT
A connection request is sent; waiting for
acknowledgment.
SYN-RCVD A connection request is received.
ESTABLISHE
D
Connection is established.
FIN-WAIT-1
The application has requested the closing of the
connection.
FIN-WAIT-2
The other side has accepted the closing of the
connection.
TIME-WAIT Waiting for retransmitted segments to die.
CLOSE-WAIT The server is waiting for the application to close.
A sliding window is used to make
transmission more efficient as well as
to control the flow of data so that the
destination does not become
overwhelmed with data. TCP’s sliding
windows are byte-oriented.
Note
Note:
:
Sender Buffer
Receiver window
Sender buffer and sender window
Sliding the sender window
Expanding the sender window
Shrinking the sender window
In TCP, the sender window size is
totally controlled by the receiver
window value (the number of empty
locations in the receiver buffer).
However, the actual window size can
be smaller if there is congestion in the
network.
Note
Note:
:
Some points about TCP’s sliding windows:
Note
Note:
:
The source does not have to send a full
The source does not have to send a full
window’s worth of data.
window’s worth of data.
The size of the window can be increased or
The size of the window can be increased or
decreased by the destination.
decreased by the destination.
The destination can send an acknowledgment
at any time.
Lost segment
Lost acknowledgment

More Related Content

PPT
Unit_3_TCP_UDP.ppt
PPT
Jaimin chp-6 - transport layer- 2011 batch
PPT
Chapter 01 - Overview
PPTX
Unit V computer network notes for study.
PPTX
Week4 lec1-bscs1
PPTX
Networking essentials lect3
PDF
Chapter3 transport layer
Unit_3_TCP_UDP.ppt
Jaimin chp-6 - transport layer- 2011 batch
Chapter 01 - Overview
Unit V computer network notes for study.
Week4 lec1-bscs1
Networking essentials lect3
Chapter3 transport layer

Similar to W14-15L28-29 Process to Process Communication.ppt (20)

PDF
Osi model
PPT
PPTX
Unit 5.Transport Layer.pptx
PPTX
Transport Layer in Computer Networks (TCP / UDP / SCTP)
PPT
PPTX
08 - COMS 525 Internet Protocols and TCPIP - TCP 1.pptx
PPT
Transport Layer
PPT
Transport Layer [Autosaved]
PPT
Transmission control protocol ...............................
PPT
Transmission control protocol _
PPT
Transmission Control Protocol (TCP) connection oriented
PPTX
Tcp3 wayhandshakeprocess
PPT
Chapter3 transport
PPT
Chapter_3_V6.0._______Chapter_3_V6.0.ppt
PPTX
5-LEC- 5.pptxTransport Layer. Transport Layer Protocols
PPTX
Advanced Computer Networks Containing TCP
PPTX
tcp-ippresentation-150614172243-lva1-app6892.pptx
PPT
TCP Part I How does it work - module13-tcp1.ppt
PPTX
Lec6
PPT
TCP/IP Basics
Osi model
Unit 5.Transport Layer.pptx
Transport Layer in Computer Networks (TCP / UDP / SCTP)
08 - COMS 525 Internet Protocols and TCPIP - TCP 1.pptx
Transport Layer
Transport Layer [Autosaved]
Transmission control protocol ...............................
Transmission control protocol _
Transmission Control Protocol (TCP) connection oriented
Tcp3 wayhandshakeprocess
Chapter3 transport
Chapter_3_V6.0._______Chapter_3_V6.0.ppt
5-LEC- 5.pptxTransport Layer. Transport Layer Protocols
Advanced Computer Networks Containing TCP
tcp-ippresentation-150614172243-lva1-app6892.pptx
TCP Part I How does it work - module13-tcp1.ppt
Lec6
TCP/IP Basics
Ad

Recently uploaded (20)

PPT
COA______________₹₹_₹₹33₹₹₹33₹₹₹3UNIT1V8.ppt
PDF
script scriptscriptscriptscriptscriptscript
PPTX
Java_Basics_Grade6 powerpoint prese.pptx
PPTX
美国乔治华盛顿大学硕士毕业证{GWU毕业完成信GWU成绩单}如何办理学历认证
PDF
Research_on_Rail_Pressure_Control_of_High-Pressure.pdf
PPTX
Fabrication 1.pptx from electronics circuits and devices
PDF
Controllers, Flowmeters, and Signal Converters.pdf
DOCX
EKG reading for serious individuals. Where are you?
PDF
Gain improved scalability over networks and sub-networks using DVI extender
PPTX
UAV WHAT MINERAL ARE REQUIRED FOR MAKING OF UAV
PDF
crc presentation44444444444444444444.pdf
PPT
Soldering technics Aerospace electronic assembly
PPTX
Unit-5 .pptx sem 3 electrical circuits and machines
PPTX
SAI-CAO-24CSEN2021-PPT-UNIT-------1.pptx
PPTX
伦敦国王学院学历认证范本KCL成绩单激光标伦敦国王学院学费单成绩单
PPTX
ppt to the world finance to the world in growing
PDF
Instit16health2.pdfghujjjgjkkggikjhgghhhjj
PPTX
最新版新加坡英华美学院毕业证(Informatics毕业证书)原版定制硕士文凭
PPT
Access List. Configuration of Layer three Router Access List
PPTX
🛠️ Introduction to Industrial Arts.pptx
COA______________₹₹_₹₹33₹₹₹33₹₹₹3UNIT1V8.ppt
script scriptscriptscriptscriptscriptscript
Java_Basics_Grade6 powerpoint prese.pptx
美国乔治华盛顿大学硕士毕业证{GWU毕业完成信GWU成绩单}如何办理学历认证
Research_on_Rail_Pressure_Control_of_High-Pressure.pdf
Fabrication 1.pptx from electronics circuits and devices
Controllers, Flowmeters, and Signal Converters.pdf
EKG reading for serious individuals. Where are you?
Gain improved scalability over networks and sub-networks using DVI extender
UAV WHAT MINERAL ARE REQUIRED FOR MAKING OF UAV
crc presentation44444444444444444444.pdf
Soldering technics Aerospace electronic assembly
Unit-5 .pptx sem 3 electrical circuits and machines
SAI-CAO-24CSEN2021-PPT-UNIT-------1.pptx
伦敦国王学院学历认证范本KCL成绩单激光标伦敦国王学院学费单成绩单
ppt to the world finance to the world in growing
Instit16health2.pdfghujjjgjkkggikjhgghhhjj
最新版新加坡英华美学院毕业证(Informatics毕业证书)原版定制硕士文凭
Access List. Configuration of Layer three Router Access List
🛠️ Introduction to Industrial Arts.pptx
Ad

W14-15L28-29 Process to Process Communication.ppt

  • 1. Lecture Objectives Learn about the responsibilities of Transport Layer Process to Process Delivery Protocols of Transport Layer Working of UDP working of TCP Discussion about the Headers of UDP and TCP
  • 3. The transport layer is responsible for process-to-process delivery. Note Note: :
  • 4. Types of Data Deliveries
  • 6. IP addresses versus port numbers
  • 13. UDP is a connectionless, unreliable protocol that has no flow and error control. It uses port numbers to multiplex data from the application layer. Note Note: :
  • 14. Well-known ports used by UDP Well-known ports used by UDP 9 Discard Discards any datagram that is received 11 Users Active users 13 Daytime Returns the date and the time 17 Quote Returns a quote of the day 19 Chargen Returns a string of characters 53 Nameserver Domain Name Service 67 Bootps Server port to download bootstrap information 68 Bootpc Client port to download bootstrap information 69 TFTP Trivial File Transfer Protocol 111 RPC Remote Procedure Call 123 NTP Network Time Protocol 161 SNMP Simple Network Management Protocol 162 SNMP Simple Network Management Protocol (trap)
  • 16. The calculation of checksum and its inclusion in the user datagram are optional. Note Note: :
  • 17. UDP is a convenient transport-layer protocol for applications that provide flow and error control. It is also used by multimedia applications. Note Note: :
  • 18. TCP Services TCP Services Port Numbers Services Sequence Numbers Segments Connection Flow and Error Control
  • 19. Table 22.2 Table 22.2 Well-known ports used by TCP Well-known ports used by TCP Port Protocol Description 7 Echo Echoes a received datagram back to the sender 9 Discard Discards any datagram that is received 11 Users Active users 13 Daytime Returns the date and the time 17 Quote Returns a quote of the day 19 Chargen Returns a string of characters 20 FTP, Data File Transfer Protocol (data connection) 21 FTP, Control File Transfer Protocol (control connection) 23 TELNET Terminal Network 25 SMTP Simple Mail Transfer Protocol 53 DNS Domain Name Server 67 BOOTP Bootstrap Protocol 79 Finger Finger 80 HTTP Hypertext Transfer Protocol 111 RPC Remote Procedure Call
  • 23. Example 1 Example 1 Imagine a TCP connection is transferring a file of 6000 bytes. The first byte is numbered 10010. What are the sequence numbers for each segment if data are sent in five segments with the first four segments carrying 1000 bytes and the last segment carrying 2000 bytes? Solution Solution The following shows the sequence number for each segment: Segment 1 ==> sequence number: 10,010 (range: 10,010 to 11,009) Segment 2 ==> sequence number: 11,010 (range: 11,010 to 12,009) Segment 3 ==> sequence number: 12,010 (range: 12,010 to 13,009) Segment 4 ==> sequence number: 13,010 (range: 13,010 to 14,009) Segment 5 ==> sequence number: 14,010 (range: 14,010 to 16,009)
  • 24. The bytes of data being transferred in each connection are numbered by TCP. The numbering starts with a randomly generated number. Note Note: :
  • 25. The value of the sequence number field in a segment defines the number of the first data byte contained in that segment. Note Note: :
  • 26. The value of the acknowledgment field in a segment defines the number of the next byte a party expects to receive. The acknowledgment number is cumulative. Note Note: :
  • 29. Description of flags in the control field Description of flags in the control field Flag Description URG The value of the urgent pointer field is valid. ACK The value of the acknowledgment field is valid. PSH Push the data. RST The connection must be reset. SYN Synchronize sequence numbers during connection. FIN Terminate the connection.
  • 32. States for TCP States for TCP State Description CLOSED There is no connection. LISTEN The server is waiting for calls from the client. SYN-SENT A connection request is sent; waiting for acknowledgment. SYN-RCVD A connection request is received. ESTABLISHE D Connection is established. FIN-WAIT-1 The application has requested the closing of the connection. FIN-WAIT-2 The other side has accepted the closing of the connection. TIME-WAIT Waiting for retransmitted segments to die. CLOSE-WAIT The server is waiting for the application to close.
  • 33. A sliding window is used to make transmission more efficient as well as to control the flow of data so that the destination does not become overwhelmed with data. TCP’s sliding windows are byte-oriented. Note Note: :
  • 36. Sender buffer and sender window
  • 40. In TCP, the sender window size is totally controlled by the receiver window value (the number of empty locations in the receiver buffer). However, the actual window size can be smaller if there is congestion in the network. Note Note: :
  • 41. Some points about TCP’s sliding windows: Note Note: : The source does not have to send a full The source does not have to send a full window’s worth of data. window’s worth of data. The size of the window can be increased or The size of the window can be increased or decreased by the destination. decreased by the destination. The destination can send an acknowledgment at any time.