SlideShare a Scribd company logo
1 of 74
23.1
Process-to-Process Delivery:
UDP, TCP, and SCTP
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
23.2
PROCESS-TO-PROCESS DELIVERYPROCESS-TO-PROCESS DELIVERY
The transport layer is responsible for process-to-The transport layer is responsible for process-to-
process delivery—the delivery of a packet, part of aprocess delivery—the delivery of a packet, part of a
message, from one process to another. Two processesmessage, from one process to another. Two processes
communicate in a client/server relationship, as we willcommunicate in a client/server relationship, as we will
see later.see later.
Client/Server Paradigm
Multiplexing and Demultiplexing
Connectionless Versus Connection-Oriented Service
Reliable Versus Unreliable
Three Protocols
Topics discussed in this section:Topics discussed in this section:
23.3
The transport layer is responsible for
process-to-process delivery.
Note
23.4
Types of data deliveries
23.5
Port numbers
23.6
IP addresses versus port numbers
23.7
Socket address
23.8
Multiplexing and demultiplexing
23.9
Reliable Vs Unreliable
Error control
23.10
Position of UDP, TCP, and SCTP in TCP/IP suite
23.11
USER DATAGRAM PROTOCOL (UDP)USER DATAGRAM PROTOCOL (UDP)
The User Datagram Protocol (UDP) is called aThe User Datagram Protocol (UDP) is called a
connectionless, unreliable transport protocol. It doesconnectionless, unreliable transport protocol. It does
not add anything to the services of IP except to providenot add anything to the services of IP except to provide
process-to-process communication instead of host-to-process-to-process communication instead of host-to-
host communication.host communication.
Well-Known Ports for UDP
User Datagram
Checksum
UDP Operation
Use of UDP
Topics discussed in this section:Topics discussed in this section:
23.12
User datagram format
23.13
UDP length
= IP length – IP header’s length
Note
Checksum calculation of a simple UDP user datagram
Transmission Control Protocol (TCP)Transmission Control Protocol (TCP)
TCP is a connection-oriented protocol; it creates aTCP is a connection-oriented protocol; it creates a
virtual connection between two TCPs to send data. Invirtual connection between two TCPs to send data. In
addition, TCP uses flow and error control mechanismsaddition, TCP uses flow and error control mechanisms
at the transport level.at the transport level.
TCP Services
1. Process to Process Communication
2. Stream Delivery Service
3. Sending and Receiving Buffers
4. Full Duplex Communication
5. Connection -Oriented Service
6. Reliable Service
Stream delivery
Sending and receiving buffers
TCP segments
TCP Features
1. Numbering System
2. Flow Control
3. Error Control
4. Congestion Control
TCP Features
1. Numbering System
Byte Number
(TCP generates a random number b/w 0 to 2 32 -1)
Sequence Number
The bytes of data being transferred in
each connection are numbered by TCP.
The numbering starts with a randomly
generated number.
Note
Example
Suppose a TCP connection is transferring a file of 5000 bytes. The first byte is numbered 10,001.
What are the sequence numbers for each segment if data are sent in five segments, each carrying
1000 bytes?
The following shows the sequence number for each segment:
Example 23.3
23.24
The value in the sequence number field
of a segment defines the
number of the first data byte
contained in that segment.
Note
23.25
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
TCP segment format
23.27
Figure 23.17 Control field
23.28
Table 23.3 Description of flags in the control field
23.29
Connection establishment using three-way handshaking
23.30
A SYN segment cannot carry data, but it
consumes one sequence number.
Note
23.31
A SYN + ACK segment cannot
carry data, but does consume one
sequence number.
Note
23.32
An ACK segment, if carrying no data,
consumes no sequence number.
Note
23.33
Figure 23.19 Data transfer
23.34
Figure 23.20 Connection termination using three-way handshaking
23.35
The FIN segment consumes one
sequence number if it does
not carry data.
Note
23.36
The FIN + ACK segment consumes
one sequence number if it
does not carry data.
Note
23.37
SCTPSCTP
Stream Control Transmission Protocol (SCTP) is aStream Control Transmission Protocol (SCTP) is a
new reliable, message-oriented transport layernew reliable, message-oriented transport layer
protocol. SCTP, however, is mostly designed forprotocol. SCTP, however, is mostly designed for
Internet applications that have recently beenInternet applications that have recently been
introduced. These new applications need a moreintroduced. These new applications need a more
sophisticated service than TCP can provide.sophisticated service than TCP can provide.
SCTP Services and Features
Packet Format
An SCTP Association
Flow Control and Error Control
Topics discussed in this section:Topics discussed in this section:
23.38
SCTP is a message-oriented, reliable
protocol that combines the best features
of UDP and TCP.
Note
23.39
Process-to-Process Communication
Multiple Streams
Multihoming
Full-Duplex Communication
Connection-Oriented Service
Reliable Service
SCTP Services
23.40
Table 23.4 Some SCTP applications
23.41
Figure 23.27 Multiple-stream concept
23.42
An association in SCTP can involve
multiple streams.
Note
23.43
Figure 23.28 Multihoming concept
23.44
SCTP association allows multiple IP
addresses for each end.
Note
23.45
Transmission Sequence Number
Stream Identifier
Stream Sequence Number
Packets
Acknowledgment Number
Flow Control
Error Control
Congestion Control
SCTP Features
23.46
Transmission Sequence Number
SCTP Features
The unit of data in TCP is a byte. Data transfer in TCP is controlled by numbering bytes
by using a sequence number.
The unit of data in SCTP is a DATA chunk.
SCTP uses a transmission sequence number (TSN) to number the data chunks.
TSNs are 32 bits long and randomly initialized between 0 and 232
- 1.
23.47
In SCTP, a data chunk is numbered
using a TSN.
Note
TSN: Transmission Sequence Number
23.48
Stream Identifier
SCTP Features
In TCP, there is only one stream in each connection.
In SCTP, there may be several streams in each association.
Each stream in SCTP needs to be identified by using a stream identifier (SI).
23.49
To distinguish between different
streams, SCTP uses an SI.
Note
23.50
Stream Sequence Number
SCTP Features
When a data chunk arrives at the destination SCTP, it is delivered to the appropriate stream and
in the proper order.
SCTP defines each data chunk in each stream with a stream sequence number (SSN).
23.51
To distinguish between different data
chunks belonging to the same stream,
SCTP uses SSNs.
Note
SSN : Stream sequence number
23.52
Packets
SCTP Features
TCP has segments; SCTP has packets.
23.53
Figure 23.29 Comparison between a TCP segment and an SCTP packet
23.54
In SCTP, control information and data
information are carried in separate
chunks.
Note
23.55
let us suppose that process A needs to send 11 messages to process B in
three streams.
The first four messages are in the first stream, the second three
messages are in the second stream, and the last four messages are
in the third stream.
we assume that each message fits into one data chunk. Therefore, we
have 11 data chunks in three streams.
We also assume that the network allows only three data chunks per
packet, which
means that we need.
Example
23.56
Figure 23.30 Packet, data chunks, and streams
23.57
Data chunks are identified by three
items: TSN, SI, and SSN.
TSN is a cumulative number identifying
the association; SI defines the stream;
SSN defines the chunk in a stream.
Note
23.58
In SCTP, acknowledgment numbers are
used to acknowledge only data chunks;
control chunks are acknowledged by
other control chunks if necessary.
Note
23.59
Figure 23.31 SCTP packet format
23.60
In an SCTP packet, control chunks come
before data chunks.
Note
23.61
Figure 23.32 General header
23.62
Table 23.5 Chunks
23.63
A connection in SCTP is called an
association.
Note
23.64
No other chunk is allowed in a packet
carrying an INIT or INIT ACK chunk.
A COOKIE ECHO or a COOKIE ACK
chunk can carry data chunks.
Note
23.65
Figure 23.33 Four-way handshaking
23.66
In SCTP, only DATA chunks
consume TSNs;
DATA chunks are the only chunks
that are acknowledged.
Note
23.67
Figure 23.34 Simple data transfer
23.68
The acknowledgment in SCTP defines
the cumulative TSN, the TSN of the last
data chunk received in order.
Note
23.69
Figure 23.35 Association termination
23.70
Figure 23.36 Flow control, receiver site
23.71
Figure 23.37 Flow control, sender site
23.72
Figure 23.38 Flow control scenario
23.73
Figure 23.39 Error control, receiver site
23.74
Figure 23.40 Error control, sender site

More Related Content

What's hot

Routing Information Protocol
Routing Information ProtocolRouting Information Protocol
Routing Information Protocol
Kashif Latif
 

What's hot (20)

QOS (Quality of Services) - Computer Networks
 QOS (Quality of Services) - Computer Networks QOS (Quality of Services) - Computer Networks
QOS (Quality of Services) - Computer Networks
 
Media Access Control
Media Access ControlMedia Access Control
Media Access Control
 
UML
UMLUML
UML
 
Transport layer
Transport layerTransport layer
Transport layer
 
Tcp and udp
Tcp and udpTcp and udp
Tcp and udp
 
Computer network switching
Computer network switchingComputer network switching
Computer network switching
 
Multicast routing
Multicast routingMulticast routing
Multicast routing
 
Cisco Networking (Routing and Switching)
Cisco Networking (Routing and Switching)Cisco Networking (Routing and Switching)
Cisco Networking (Routing and Switching)
 
Distance Vector Routing
Distance Vector RoutingDistance Vector Routing
Distance Vector Routing
 
Use Case Diagram
Use Case DiagramUse Case Diagram
Use Case Diagram
 
Routing Information Protocol
Routing Information ProtocolRouting Information Protocol
Routing Information Protocol
 
Overview of UML Diagrams
Overview of UML DiagramsOverview of UML Diagrams
Overview of UML Diagrams
 
Software Cost Estimation Techniques
Software Cost Estimation TechniquesSoftware Cost Estimation Techniques
Software Cost Estimation Techniques
 
Cloud computing protocol
Cloud computing protocolCloud computing protocol
Cloud computing protocol
 
Software requirements specification
Software requirements specificationSoftware requirements specification
Software requirements specification
 
Network Layer
Network LayerNetwork Layer
Network Layer
 
Grasp patterns and its types
Grasp patterns and its typesGrasp patterns and its types
Grasp patterns and its types
 
1. introduction to uml
1. introduction to uml1. introduction to uml
1. introduction to uml
 
Ip addressing
Ip addressingIp addressing
Ip addressing
 
Introduction to Distributed System
Introduction to Distributed SystemIntroduction to Distributed System
Introduction to Distributed System
 

Similar to udp , tcp ,sctp

transport-layer-forouzan.pdf
transport-layer-forouzan.pdftransport-layer-forouzan.pdf
transport-layer-forouzan.pdf
AsifSalim12
 
transport layer protocols
transport layer protocolstransport layer protocols
transport layer protocols
BE Smârt
 

Similar to udp , tcp ,sctp (20)

Ch23
Ch23Ch23
Ch23
 
Chapter 23
Chapter 23Chapter 23
Chapter 23
 
UNIT IV-Transport Layer.pptx
UNIT IV-Transport Layer.pptxUNIT IV-Transport Layer.pptx
UNIT IV-Transport Layer.pptx
 
20CS2007 Computer Communication Networks
20CS2007 Computer Communication Networks 20CS2007 Computer Communication Networks
20CS2007 Computer Communication Networks
 
Ch23
Ch23Ch23
Ch23
 
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
 
transport-layer-forouzan.pdf
transport-layer-forouzan.pdftransport-layer-forouzan.pdf
transport-layer-forouzan.pdf
 
04 MK-PPT End-to-End Protocols.ppt
04 MK-PPT End-to-End Protocols.ppt04 MK-PPT End-to-End Protocols.ppt
04 MK-PPT End-to-End Protocols.ppt
 
Sctp
SctpSctp
Sctp
 
Transport layer TCP and UDP.ppt
Transport layer TCP and UDP.pptTransport layer TCP and UDP.ppt
Transport layer TCP and UDP.ppt
 
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
 
Lec6
Lec6Lec6
Lec6
 
transport layer protocols
transport layer protocolstransport layer protocols
transport layer protocols
 
CNS_Module-2-ppt.pptx
CNS_Module-2-ppt.pptxCNS_Module-2-ppt.pptx
CNS_Module-2-ppt.pptx
 
Unit 5.Transport Layer.pptx
Unit 5.Transport Layer.pptxUnit 5.Transport Layer.pptx
Unit 5.Transport Layer.pptx
 
Ch 22
Ch 22Ch 22
Ch 22
 
TCP- Transmission Control Protocol
TCP-  Transmission Control Protocol TCP-  Transmission Control Protocol
TCP- Transmission Control Protocol
 
IMPACT OF CONTENTION WINDOW ON CONGESTION CONTROL ALGORITHMS FOR WIRELESS ADH...
IMPACT OF CONTENTION WINDOW ON CONGESTION CONTROL ALGORITHMS FOR WIRELESS ADH...IMPACT OF CONTENTION WINDOW ON CONGESTION CONTROL ALGORITHMS FOR WIRELESS ADH...
IMPACT OF CONTENTION WINDOW ON CONGESTION CONTROL ALGORITHMS FOR WIRELESS ADH...
 
Studying_the_TCP_Flow_and_Congestion_Con.pdf
Studying_the_TCP_Flow_and_Congestion_Con.pdfStudying_the_TCP_Flow_and_Congestion_Con.pdf
Studying_the_TCP_Flow_and_Congestion_Con.pdf
 
Computer Communication Networks- TRANSPORT LAYER PROTOCOLS
Computer Communication Networks- TRANSPORT LAYER PROTOCOLSComputer Communication Networks- TRANSPORT LAYER PROTOCOLS
Computer Communication Networks- TRANSPORT LAYER PROTOCOLS
 

More from AKSHIT KOHLI

More from AKSHIT KOHLI (19)

Surveilance ppt
Surveilance ppt Surveilance ppt
Surveilance ppt
 
ELECTRICAL AND ELECTRONICS MEASURING INSTRUMETNTS,CRO,CRT,PROBES,OSCILLOSCOPES
ELECTRICAL AND ELECTRONICS MEASURING INSTRUMETNTS,CRO,CRT,PROBES,OSCILLOSCOPESELECTRICAL AND ELECTRONICS MEASURING INSTRUMETNTS,CRO,CRT,PROBES,OSCILLOSCOPES
ELECTRICAL AND ELECTRONICS MEASURING INSTRUMETNTS,CRO,CRT,PROBES,OSCILLOSCOPES
 
VIRTUAL CIRCUIT NETWORKS, atm , frame relay
VIRTUAL CIRCUIT NETWORKS, atm , frame relayVIRTUAL CIRCUIT NETWORKS, atm , frame relay
VIRTUAL CIRCUIT NETWORKS, atm , frame relay
 
LAYER PROTOCOL ,SONET,SDH
LAYER PROTOCOL ,SONET,SDHLAYER PROTOCOL ,SONET,SDH
LAYER PROTOCOL ,SONET,SDH
 
ETHERNET
ETHERNETETHERNET
ETHERNET
 
data queue data base ,MAN
data queue data base ,MANdata queue data base ,MAN
data queue data base ,MAN
 
multiple access
 multiple access multiple access
multiple access
 
lan connecting device
lan connecting devicelan connecting device
lan connecting device
 
local area network
 local area network local area network
local area network
 
ipv4
ipv4ipv4
ipv4
 
transfer protocols,ftp,smtp,pop,imap
transfer protocols,ftp,smtp,pop,imaptransfer protocols,ftp,smtp,pop,imap
transfer protocols,ftp,smtp,pop,imap
 
internet protocols
internet protocolsinternet protocols
internet protocols
 
tcp ip protocols
tcp ip protocolstcp ip protocols
tcp ip protocols
 
icmp , igmp
icmp , igmpicmp , igmp
icmp , igmp
 
network layer
network layernetwork layer
network layer
 
osi model
osi modelosi model
osi model
 
transmission mode
transmission modetransmission mode
transmission mode
 
computer networks
computer networks computer networks
computer networks
 
topologycomputer networking basics
topologycomputer networking basicstopologycomputer networking basics
topologycomputer networking basics
 

Recently uploaded

notes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.pptnotes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.ppt
MsecMca
 
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak HamilCara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Kandungan 087776558899
 
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoorTop Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
dharasingh5698
 
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
dharasingh5698
 
Standard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power PlayStandard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power Play
Epec Engineered Technologies
 
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night StandCall Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
amitlee9823
 
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
dharasingh5698
 

Recently uploaded (20)

notes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.pptnotes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.ppt
 
2016EF22_0 solar project report rooftop projects
2016EF22_0 solar project report rooftop projects2016EF22_0 solar project report rooftop projects
2016EF22_0 solar project report rooftop projects
 
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
 
Hostel management system project report..pdf
Hostel management system project report..pdfHostel management system project report..pdf
Hostel management system project report..pdf
 
Block diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.pptBlock diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.ppt
 
Unit 2- Effective stress & Permeability.pdf
Unit 2- Effective stress & Permeability.pdfUnit 2- Effective stress & Permeability.pdf
Unit 2- Effective stress & Permeability.pdf
 
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
 
Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . ppt
 
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...
 
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak HamilCara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
 
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoorTop Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
 
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
 
University management System project report..pdf
University management System project report..pdfUniversity management System project report..pdf
University management System project report..pdf
 
Standard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power PlayStandard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power Play
 
COST-EFFETIVE and Energy Efficient BUILDINGS ptx
COST-EFFETIVE  and Energy Efficient BUILDINGS ptxCOST-EFFETIVE  and Energy Efficient BUILDINGS ptx
COST-EFFETIVE and Energy Efficient BUILDINGS ptx
 
KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghly
 
Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - V
 
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night StandCall Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
 
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
 
A Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna MunicipalityA Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna Municipality
 

udp , tcp ,sctp