SlideShare uma empresa Scribd logo
1 de 37
TRANSPORT LAYER
INTRODUCTION
The transport layer is the fourth layer of the OSI model
It responds to service requests from the session layer and issues service requests to the network
Layer
Main duty of transport layer is to provide process to process communication.
TRANSPORT LAYER PROTOCOLS
Three protocols are associated with the Transport layer.
They are
(1) UDP –User Datagram Protocol
(2) TCP – Transmission Control Protocol
(3) SCTP - Stream Control Transmission Protocol
USER DATAGRAM PROTOCOL (UDP)
User Datagram Protocol (UDP) is a connectionless, unreliable transport protocol.
UDP adds process-to-process communication to best-effort service provided by IP.
UDP does not provide flow control , reliable or ordered delivery. UDP can be used to send small
message where reliability is not expected.
PORT NUMBERS
A transport-layer protocol usually has several responsibilities. One is to create a process-to-
process communication.
Processes are programs that run on hosts. It could be either server or client.
A process on the local host, called a client, needs services from a process usually on the remote
host, called a server.
Processes are assigned a unique 16-bit port number on that host.
Port numbers provide end-to-end addresses at the transport layer
They also provide multiplexing and de-multiplexing at this layer.
The port numbers are integers between 0 and 65,535 .
Length
This field denotes the total length of the UDP Packet (Header plus data) The total length of any
UDP datagram can be from 0 to 65,535 bytes.
Checksum
UDP computes its checksum over the UDP header, the contents of the message body, and
something called the pseudo header. The pseudo header consists of three fields from the IP
header—protocol number, source IP address.
Data
Data field defines the actual payload to be transmitted. Its size is variable.
UDP SERVICES
Process-to-Process Communication: UDP provides process-to-process communication using
socket addresses, a combination of IP addresses and port numbers.
Connectionless Services
Flow Control
Error Control
Multiplexing and Demultiplexing
APPLICATIONS OF UDP
UDP is used for management processes such as SNMP.
UDP is used for route updating protocols such as RIP.
UDP is a suitable transport protocol for multicasting. Multicasting capability is embedded in the
UDP software
UDP is suitable for a process with internal flow and error control mechanisms such as Trivial File
Transfer Protocol (TFTP).
UDP is suitable for a process that requires simple request-response communication with little
concern for flow and error control.
UDP is normally used for interactive real-time applications that cannot tolerate uneven delay
between sections of a received message.
TRANSMISSION CONTROL PROTOCOL
(TCP)
TCP is a reliable, connection-oriented, byte-stream protocol.
TCP guarantees the reliable, in-order delivery of a stream of bytes. It is a full-duplex
Protocol
TCP includes a flow-control mechanism for each of these byte streams that allow the receiver to
limit how much data the sender can transmit at a given time.
TCP SERVICES
Process-to-Process Communication
Stream Delivery Service:
TCP allows the sending process to deliver data as a stream of bytes and allows the receiving process
to obtain data as a stream of bytes.
The sending process produces (writes to) the stream and the receiving process consumes (reads from)
it.
Full-Duplex Communication: TCP offers full-duplex service, where data can flow in both directions at
the same time.
Multiplexing and Demultiplexing
Connection-Oriented Service: A connection needs to be established for each pair of processes.
Reliable Service
TCP SEGMENT
A packet in TCP is called a segment.
Data unit exchanged between TCP peers are called segments.
A TCP segment encapsulates the data received from the application layer.
TCP is a byte-oriented protocol, which means that the sender writes bytes into a TCP connection
and the receiver reads bytes out of the TCP connection.
TCP connection supports byte streams flowing in both directions.
The packets exchanged between TCP peers are called segments, since each one carries a
segment of the byte stream.
TCP PACKET FORMAT
Each TCP segment contains the header plus the data
The segment consists of a header of 20 to 60 bytes, followed by data from the application
program.
The header is 20 bytes if there are no options and up to 60 bytes if it contains options.
Source port : It is a 16-bit field that specifies the application port number of the host sending the data.
Destination port : It is a 16-bit field that specifies the port number of the application requested on the
destination host.
Sequence number : contains sequence number, i.e. first byte of data segment
Acknowledgment― byte number of segment, the receiver expects next.
Length of TCP header as 4-byte words.
Flags― contains six control bits known as flags.
o URG — segment contains urgent data.
o ACK — value of acknowledgment field is valid.
o PUSH — sender has invoked the push operation.
o RESET — receiver wants to abort the connection.
o SYN — synchronize sequence numbers during connection establishment.
o FIN — terminates the TCP connection.
Advertised Window―defines receiver’s window size and acts as flow control.
Checksum―It is computed over TCP header, Data, and pseudo header containing IP fields
(Length, SourceAddr & DestinationAddr).
UrgPtr ― used when the segment contains urgent data. It defines a value that must be
added to the sequence number.
TCP CONNECTION MANAGEMENT
TCP is connection-oriented.
•A connection-oriented transport protocol establishes a logical path between the source and
destination.
•All of the segments belonging to a message are then sent over this logical path.
•In TCP, connection-oriented transmission requires three phases: Connection Establishment, Data
Transfer and Connection Termination.
Connection Establishment
TCP uses a three-way handshake to establish a reliable connection.
The connection is full duplex, and both sides synchronize (SYN) and acknowledge (ACK) each
other.
The exchange of these four flags is performed in three steps—SYN, SYN-ACK, and ACK—as
shown in diagram
The client chooses an initial sequence number, set in the first SYN packet. The server also
chooses its own initial sequence number, set in the SYN/ACK packet.
The use of sequence and acknowledgment numbers allows both sides to detect missing or out-
of-order segments.
TCP Handshake involves the following steps in establishing the connection-
Step-01: SYN-
For establishing a connection,
•Client sends a request segment to the server.
•Request segment consists only of TCP Header with an empty payload.
•Then, it waits for a reply segment from the server.
Request segment contains the following information in TCP header-
•Initial sequence number
•SYN bit set to 1
•Maximum segment size
•Receiving window size
Step-02: SYN + ACK-
After receiving the request segment,
•Server responds to the client by sending the reply segment.
•It informs the client of the parameters at the server side.
Reply segment contains the following information in TCP header-
•Initial sequence number
•SYN bit set to 1
•Maximum segment size
•Receiving window size
•Acknowledgment number
•ACK bit set to 1
Step-03: ACK-
After receiving the reply segment,
•Client acknowledges the response of server.
•It acknowledges the server by sending a pure acknowledgement.
STREAM CONTROL TRANSMISSION PROTOCOL (SCTP)
•Stream Control Transmission Protocol (SCTP) is a reliable, message-oriented transport layer
protocol.
•SCTP has mixed features of TCP and UDP.
• SCTP maintains the message boundaries and detects the lost data, duplicate data as well as out-
of-order data.
•SCTP is especially designed for internet applications as well as multimedia communication.
SCTP SERVICES
Process-to-Process Communication : SCTP provides process-to-process communication.
Multiple Streams:
1. SCTP allows multistream service in each connection, which is called association in SCTP
terminology.
2. If one of the streams is blocked, the other streams can still deliver their data.
Full-Duplex Communication
SCTP offers full-duplex service, where data can flow in both directions at the same time. Each
SCTP then has a sending and receiving buffer and packets are sent in both directions.
Reliable Service
SCTP is a reliable transport protocol. It uses an acknowledgment mechanism to check the safe
and sound arrival of data.
SCTP PACKET FORMAT
General Header: There are four fields in the general header.
Source port
This field identifies the sending port.
Destination port
This field identifies the receiving port that hosts use to route the packet to the appropriate
endpoint/application.
Verification tag
A 32-bit random value created during initialization to distinguish stale packets from a previous
connection.
Checksum
The next field is a checksum. The size of the checksum is 32 bits. SCTP uses CRC-32 Checksum.
Chunks
Control information or user data are carried in chunks.
Types of Chunks
An SCTP association may send many packets, a packet may contain several chunks, and chunks
may belong to different streams.
SCTP defines two types of chunks - Control chunks and Data chunks.
1. A control chunk controls and maintains the association.
2. A data chunk carries user data.

Mais conteúdo relacionado

Semelhante a Unit 5.Transport Layer.pptx

Transmission Control Protocol_ Computer Networks
Transmission Control Protocol_ Computer NetworksTransmission Control Protocol_ Computer Networks
Transmission Control Protocol_ Computer Networks
Manimaran A
 

Semelhante a Unit 5.Transport Layer.pptx (20)

TCP/IP & UDP
TCP/IP & UDPTCP/IP & UDP
TCP/IP & UDP
 
TCP_NISCHAYBAHL.pptx
TCP_NISCHAYBAHL.pptxTCP_NISCHAYBAHL.pptx
TCP_NISCHAYBAHL.pptx
 
CN UNIT IV ..pptx
CN UNIT IV ..pptxCN UNIT IV ..pptx
CN UNIT IV ..pptx
 
TCP Vs UDP
TCP Vs UDP TCP Vs UDP
TCP Vs UDP
 
TCP/IP Basics
TCP/IP BasicsTCP/IP Basics
TCP/IP Basics
 
Chapter Five - Transport Layer.pptx
Chapter Five - Transport Layer.pptxChapter Five - Transport Layer.pptx
Chapter Five - Transport Layer.pptx
 
Transport_Layer_Protocols.pptx
Transport_Layer_Protocols.pptxTransport_Layer_Protocols.pptx
Transport_Layer_Protocols.pptx
 
Transport Layer
Transport LayerTransport Layer
Transport Layer
 
Transport Layer [Autosaved]
Transport Layer [Autosaved]Transport Layer [Autosaved]
Transport Layer [Autosaved]
 
the transport layer
the transport layerthe transport layer
the transport layer
 
Transport layer
Transport layerTransport layer
Transport layer
 
Unit 4 tansport layer in the internat
Unit 4 tansport layer in the internatUnit 4 tansport layer in the internat
Unit 4 tansport layer in the internat
 
REMnux tutorial 4.1 - Datagrams, Fragmentation & Anomalies
REMnux tutorial 4.1 - Datagrams, Fragmentation & AnomaliesREMnux tutorial 4.1 - Datagrams, Fragmentation & Anomalies
REMnux tutorial 4.1 - Datagrams, Fragmentation & Anomalies
 
Transport Layer Services : Multiplexing And Demultiplexing
Transport Layer Services : Multiplexing And DemultiplexingTransport Layer Services : Multiplexing And Demultiplexing
Transport Layer Services : Multiplexing And Demultiplexing
 
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
 
tcp.pptx
tcp.pptxtcp.pptx
tcp.pptx
 
Transport layer protocol
Transport layer protocolTransport layer protocol
Transport layer protocol
 
Transport protocols
Transport protocolsTransport protocols
Transport protocols
 
Transmission Control Protocol_ Computer Networks
Transmission Control Protocol_ Computer NetworksTransmission Control Protocol_ Computer Networks
Transmission Control Protocol_ Computer Networks
 
Packet Guide SONET/SDH
Packet Guide SONET/SDHPacket Guide SONET/SDH
Packet Guide SONET/SDH
 

Último

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
 
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort ServiceCall Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
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
ankushspencer015
 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
dollysharma2066
 
Call Girls in Netaji Nagar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Netaji Nagar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort ServiceCall Girls in Netaji Nagar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Netaji Nagar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
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
 

Último (20)

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
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
 
(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
 
Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01
 
Online banking management system project.pdf
Online banking management system project.pdfOnline banking management system project.pdf
Online banking management system project.pdf
 
Unit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfUnit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdf
 
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
 
Double Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueDouble Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torque
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performance
 
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort ServiceCall Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
 
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
 
(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
 
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
 
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
 
Call Girls in Netaji Nagar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Netaji Nagar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort ServiceCall Girls in Netaji Nagar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Netaji Nagar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
 
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
 
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
 
Bhosari ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...
Bhosari ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For ...Bhosari ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For ...
Bhosari ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...
 

Unit 5.Transport Layer.pptx

  • 1. TRANSPORT LAYER INTRODUCTION The transport layer is the fourth layer of the OSI model It responds to service requests from the session layer and issues service requests to the network Layer Main duty of transport layer is to provide process to process communication.
  • 2.
  • 3. TRANSPORT LAYER PROTOCOLS Three protocols are associated with the Transport layer. They are (1) UDP –User Datagram Protocol (2) TCP – Transmission Control Protocol (3) SCTP - Stream Control Transmission Protocol
  • 4. USER DATAGRAM PROTOCOL (UDP) User Datagram Protocol (UDP) is a connectionless, unreliable transport protocol. UDP adds process-to-process communication to best-effort service provided by IP. UDP does not provide flow control , reliable or ordered delivery. UDP can be used to send small message where reliability is not expected.
  • 5. PORT NUMBERS A transport-layer protocol usually has several responsibilities. One is to create a process-to- process communication. Processes are programs that run on hosts. It could be either server or client. A process on the local host, called a client, needs services from a process usually on the remote host, called a server. Processes are assigned a unique 16-bit port number on that host. Port numbers provide end-to-end addresses at the transport layer They also provide multiplexing and de-multiplexing at this layer. The port numbers are integers between 0 and 65,535 .
  • 6.
  • 7. Length This field denotes the total length of the UDP Packet (Header plus data) The total length of any UDP datagram can be from 0 to 65,535 bytes. Checksum UDP computes its checksum over the UDP header, the contents of the message body, and something called the pseudo header. The pseudo header consists of three fields from the IP header—protocol number, source IP address. Data Data field defines the actual payload to be transmitted. Its size is variable.
  • 8. UDP SERVICES Process-to-Process Communication: UDP provides process-to-process communication using socket addresses, a combination of IP addresses and port numbers. Connectionless Services Flow Control Error Control Multiplexing and Demultiplexing
  • 9. APPLICATIONS OF UDP UDP is used for management processes such as SNMP. UDP is used for route updating protocols such as RIP. UDP is a suitable transport protocol for multicasting. Multicasting capability is embedded in the UDP software UDP is suitable for a process with internal flow and error control mechanisms such as Trivial File Transfer Protocol (TFTP). UDP is suitable for a process that requires simple request-response communication with little concern for flow and error control. UDP is normally used for interactive real-time applications that cannot tolerate uneven delay between sections of a received message.
  • 10. TRANSMISSION CONTROL PROTOCOL (TCP) TCP is a reliable, connection-oriented, byte-stream protocol. TCP guarantees the reliable, in-order delivery of a stream of bytes. It is a full-duplex Protocol TCP includes a flow-control mechanism for each of these byte streams that allow the receiver to limit how much data the sender can transmit at a given time.
  • 11. TCP SERVICES Process-to-Process Communication Stream Delivery Service: TCP allows the sending process to deliver data as a stream of bytes and allows the receiving process to obtain data as a stream of bytes. The sending process produces (writes to) the stream and the receiving process consumes (reads from) it. Full-Duplex Communication: TCP offers full-duplex service, where data can flow in both directions at the same time. Multiplexing and Demultiplexing Connection-Oriented Service: A connection needs to be established for each pair of processes. Reliable Service
  • 12.
  • 13. TCP SEGMENT A packet in TCP is called a segment. Data unit exchanged between TCP peers are called segments. A TCP segment encapsulates the data received from the application layer. TCP is a byte-oriented protocol, which means that the sender writes bytes into a TCP connection and the receiver reads bytes out of the TCP connection. TCP connection supports byte streams flowing in both directions. The packets exchanged between TCP peers are called segments, since each one carries a segment of the byte stream.
  • 14.
  • 15. TCP PACKET FORMAT Each TCP segment contains the header plus the data The segment consists of a header of 20 to 60 bytes, followed by data from the application program. The header is 20 bytes if there are no options and up to 60 bytes if it contains options.
  • 16.
  • 17. Source port : It is a 16-bit field that specifies the application port number of the host sending the data. Destination port : It is a 16-bit field that specifies the port number of the application requested on the destination host. Sequence number : contains sequence number, i.e. first byte of data segment Acknowledgment― byte number of segment, the receiver expects next. Length of TCP header as 4-byte words. Flags― contains six control bits known as flags. o URG — segment contains urgent data. o ACK — value of acknowledgment field is valid. o PUSH — sender has invoked the push operation. o RESET — receiver wants to abort the connection. o SYN — synchronize sequence numbers during connection establishment. o FIN — terminates the TCP connection.
  • 18. Advertised Window―defines receiver’s window size and acts as flow control. Checksum―It is computed over TCP header, Data, and pseudo header containing IP fields (Length, SourceAddr & DestinationAddr). UrgPtr ― used when the segment contains urgent data. It defines a value that must be added to the sequence number.
  • 19. TCP CONNECTION MANAGEMENT TCP is connection-oriented. •A connection-oriented transport protocol establishes a logical path between the source and destination. •All of the segments belonging to a message are then sent over this logical path. •In TCP, connection-oriented transmission requires three phases: Connection Establishment, Data Transfer and Connection Termination.
  • 20. Connection Establishment TCP uses a three-way handshake to establish a reliable connection. The connection is full duplex, and both sides synchronize (SYN) and acknowledge (ACK) each other. The exchange of these four flags is performed in three steps—SYN, SYN-ACK, and ACK—as shown in diagram
  • 21.
  • 22. The client chooses an initial sequence number, set in the first SYN packet. The server also chooses its own initial sequence number, set in the SYN/ACK packet. The use of sequence and acknowledgment numbers allows both sides to detect missing or out- of-order segments.
  • 23. TCP Handshake involves the following steps in establishing the connection- Step-01: SYN- For establishing a connection, •Client sends a request segment to the server. •Request segment consists only of TCP Header with an empty payload. •Then, it waits for a reply segment from the server.
  • 24.
  • 25. Request segment contains the following information in TCP header- •Initial sequence number •SYN bit set to 1 •Maximum segment size •Receiving window size
  • 26. Step-02: SYN + ACK- After receiving the request segment, •Server responds to the client by sending the reply segment. •It informs the client of the parameters at the server side.
  • 27.
  • 28. Reply segment contains the following information in TCP header- •Initial sequence number •SYN bit set to 1 •Maximum segment size •Receiving window size •Acknowledgment number •ACK bit set to 1
  • 29. Step-03: ACK- After receiving the reply segment, •Client acknowledges the response of server. •It acknowledges the server by sending a pure acknowledgement.
  • 30.
  • 31. STREAM CONTROL TRANSMISSION PROTOCOL (SCTP) •Stream Control Transmission Protocol (SCTP) is a reliable, message-oriented transport layer protocol. •SCTP has mixed features of TCP and UDP. • SCTP maintains the message boundaries and detects the lost data, duplicate data as well as out- of-order data. •SCTP is especially designed for internet applications as well as multimedia communication.
  • 32. SCTP SERVICES Process-to-Process Communication : SCTP provides process-to-process communication. Multiple Streams: 1. SCTP allows multistream service in each connection, which is called association in SCTP terminology. 2. If one of the streams is blocked, the other streams can still deliver their data.
  • 33.
  • 34. Full-Duplex Communication SCTP offers full-duplex service, where data can flow in both directions at the same time. Each SCTP then has a sending and receiving buffer and packets are sent in both directions. Reliable Service SCTP is a reliable transport protocol. It uses an acknowledgment mechanism to check the safe and sound arrival of data.
  • 36. General Header: There are four fields in the general header. Source port This field identifies the sending port. Destination port This field identifies the receiving port that hosts use to route the packet to the appropriate endpoint/application. Verification tag A 32-bit random value created during initialization to distinguish stale packets from a previous connection. Checksum The next field is a checksum. The size of the checksum is 32 bits. SCTP uses CRC-32 Checksum.
  • 37. Chunks Control information or user data are carried in chunks. Types of Chunks An SCTP association may send many packets, a packet may contain several chunks, and chunks may belong to different streams. SCTP defines two types of chunks - Control chunks and Data chunks. 1. A control chunk controls and maintains the association. 2. A data chunk carries user data.