SlideShare una empresa de Scribd logo
1 de 20
Presented By:-
Anusua Basu
Midnapore College (Autonomous)
BCA 3rd Sem , Roll No:-1743
• Transport layer protocols
• Services and features
•UDP Header Format
• Services and features
• TCP Header Format
• Comparison of TCP and SCTP packet
• Services and Features
• A transport-layer protocol usually has several responsibilities.
• One is to create a process-to-process communication; these protocol use port numbers to
accomplish this.
• Port numbers provide end-to-end addresses at the transport layer and allow multiplexing and
demultiplexing at this layer ,just as IP addresses do at the network layer.
• Table 1 gives some common port number for all three protocols we discuss in this chapter.
Table 1: Some well-known ports used with UDP and TCP
• The User Datagram Protocol (UDP) is a connectionless , unreliable transport protocol.
• If UDP is so powerless, why would a process want to use it? With the disadvantages
come some advantages.
• UDP is a very simple protocol using a minimum of overhead.
User Datagram:
• UDP packets, called user datagrams, have a fixed-size header of 8 bytes made of four fields,
each of 2 bytes(16bits)
• Figure 2 shows the formate of a user Datagram.
Figure 2: User datagram packet format
• The first two fields define the source and destination port number.
• The third defines the total length of the user datagram, header plus data.
• The 16 bits can define a total length of 0 to 65,535 bytes.
• However, the total length needs to be less because a UDP user datagram is stored in an IP datagram
with the total length of 65,535 bytes.
• The last field can carry the optional checksum(explained later).
Example 1
The following is the contents of a UDP header in hexadecimal format.
a. What is the source port number?
b. What is the destination port number?
c. What is the total length of the user datagram?
d. What is the length of the data?
e. Is the packet directed from a client to a server or vice
versa?
f. What is the client process?
Solution: CB84 000D 001C 001C
Solution
a. The source port number is the first four hexadecimal digits (CB84)16 or 52100.
b. The destination port number is the second four hexadecimal digits (000D)16 or 13.
c. The third four hexadecimal digits (001C)16 define the length of the whole UDP packet as 28 bytes.
d. The length of the data is the length of the whole packet minus the length of the header, or 28 − 8 = 20 bytes.
e. Since the destination port number is 13 (well-known port), the packet is from the client to the server.
f. The client process is the Daytime (see Table 1).
• Transmission control protocol (TCP) is a connection-oriented reliable protocol.
• TCP explicitly defines connection establishment, data transfer, and connection teardown
phases to provide a connection.
• TCP uses a combination of GBN(Go-Back-N) and SR( Selective Repeat) protocols to provide
reliability. (whereas UDP uses simple protocol)
TCP Services:
• Before discussing TCP in detail, let us explain the services offered by TCP to the processes at the
Application layer.
Figure 5: sending and receiving buffers
Figure 5: TCP segments
Suppose a TCP connection is transferring a file of 5,000
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 1,000 bytes?
Example 7
Solution
The following shows the sequence number for each segment:
Figure 7: TCP segment format
Stream Control Transmission Protocol (SCTP) is a new transport-layer protocol
designed to combine some features of UDP and TCP in an effort to
create a protocol for multimedia communication.
•
SCTP Services:
• Before discussing the operation of SCTP, let us explain the services offered by SCTP to the
application-layer processes.
Figure 8: Multiple-stream concept
Figure 9 : Multihoming concept
SCTP Features
The following shows the general features of SCTP.
Transmission Sequence
Number (TSN)
Stream Identifier (SI)
Stream Sequence Number
(SSN)
Packets
Acknowledgement Number
Figure 10 : Comparison between a TCP segment and an SCTP
packet
Figure 11 : Packets, data chunks, and
streams
Packet Format
• An SCTP packet has a mandatory general header and a set of blocks called chunks.
• There are two types of chunks: control chunks and data chunks.
• A control chunk controls and maintains the association; a data chunk carries user data.
• In a packet, the control chunks come before the data chunks.
• Figure 24.42 shows the general format of an SCTP packet.
Figure 12: SCTP packet format
Figure 13: General header
Figure 14 : Common layout of a chunk
Table 15 : Chunks
Transport layer

Más contenido relacionado

La actualidad más candente

Internet protocols Report Slides
Internet protocols Report SlidesInternet protocols Report Slides
Internet protocols Report Slides
Bassam Kanber
 

La actualidad más candente (20)

Link state routing protocol
Link state routing protocolLink state routing protocol
Link state routing protocol
 
Internet protocols Report Slides
Internet protocols Report SlidesInternet protocols Report Slides
Internet protocols Report Slides
 
TCP/IP Introduction
TCP/IP IntroductionTCP/IP Introduction
TCP/IP Introduction
 
Network Layer
Network LayerNetwork Layer
Network Layer
 
Mod4
Mod4Mod4
Mod4
 
A day in the life of a Web Request
A day in the life of a Web RequestA day in the life of a Web Request
A day in the life of a Web Request
 
Ch 18 intro to network layer - section 4
Ch 18   intro to network layer - section 4Ch 18   intro to network layer - section 4
Ch 18 intro to network layer - section 4
 
Lecture 3 network layer
Lecture 3 network layerLecture 3 network layer
Lecture 3 network layer
 
TCP/IP and UDP protocols
TCP/IP and UDP protocolsTCP/IP and UDP protocols
TCP/IP and UDP protocols
 
TCP/IP
TCP/IPTCP/IP
TCP/IP
 
Final Presentation on the Network layer
Final Presentation on the Network layerFinal Presentation on the Network layer
Final Presentation on the Network layer
 
Network layer logical addressing
Network layer logical addressingNetwork layer logical addressing
Network layer logical addressing
 
Chapter 3 : User Datagram Protocol (UDP)
Chapter 3 : User Datagram Protocol (UDP)Chapter 3 : User Datagram Protocol (UDP)
Chapter 3 : User Datagram Protocol (UDP)
 
TCP/IP Introduction
TCP/IP Introduction TCP/IP Introduction
TCP/IP Introduction
 
TCP/IP Protocol Architeture
TCP/IP Protocol ArchitetureTCP/IP Protocol Architeture
TCP/IP Protocol Architeture
 
TCP/IP Basics
TCP/IP BasicsTCP/IP Basics
TCP/IP Basics
 
TCP/ IP
TCP/ IP TCP/ IP
TCP/ IP
 
Mod5
Mod5Mod5
Mod5
 
Internet Protocol
Internet ProtocolInternet Protocol
Internet Protocol
 
Internet Protocols
Internet ProtocolsInternet Protocols
Internet Protocols
 

Similar a Transport layer

Similar a Transport layer (20)

User Datagram Protocol
User Datagram ProtocolUser Datagram Protocol
User Datagram Protocol
 
LECTURE-Transport-Layer_lec.ppt
LECTURE-Transport-Layer_lec.pptLECTURE-Transport-Layer_lec.ppt
LECTURE-Transport-Layer_lec.ppt
 
Networking essentials lect3
Networking essentials lect3Networking essentials lect3
Networking essentials lect3
 
TCP Vs UDP
TCP Vs UDP TCP Vs UDP
TCP Vs UDP
 
IPHEADER_IPV4_IPV6_4.pdf
IPHEADER_IPV4_IPV6_4.pdfIPHEADER_IPV4_IPV6_4.pdf
IPHEADER_IPV4_IPV6_4.pdf
 
Lecture-05.pdf
Lecture-05.pdfLecture-05.pdf
Lecture-05.pdf
 
Transport layer services
Transport layer servicesTransport layer services
Transport layer services
 
Unit 5.Transport Layer.pptx
Unit 5.Transport Layer.pptxUnit 5.Transport Layer.pptx
Unit 5.Transport Layer.pptx
 
Introduction to TCP/IP
Introduction to TCP/IPIntroduction to TCP/IP
Introduction to TCP/IP
 
1.1.2 - Concept of Network and TCP_IP Model (2).pptx
1.1.2 - Concept of Network and TCP_IP Model (2).pptx1.1.2 - Concept of Network and TCP_IP Model (2).pptx
1.1.2 - Concept of Network and TCP_IP Model (2).pptx
 
unit 3 ns.ppt
unit 3 ns.pptunit 3 ns.ppt
unit 3 ns.ppt
 
UDP and TCP Protocol & Encrytion and its algorithm
UDP and TCP Protocol & Encrytion and its algorithmUDP and TCP Protocol & Encrytion and its algorithm
UDP and TCP Protocol & Encrytion and its algorithm
 
Computer networks transport layer
Computer networks  transport layerComputer networks  transport layer
Computer networks transport layer
 
Beyond TCP: The evolution of Internet transport protocols
Beyond TCP: The evolution of Internet transport protocolsBeyond TCP: The evolution of Internet transport protocols
Beyond TCP: The evolution of Internet transport protocols
 
Transportlayer.ppt
Transportlayer.pptTransportlayer.ppt
Transportlayer.ppt
 
TCP_NISCHAYBAHL.pptx
TCP_NISCHAYBAHL.pptxTCP_NISCHAYBAHL.pptx
TCP_NISCHAYBAHL.pptx
 
tcp.pptx
tcp.pptxtcp.pptx
tcp.pptx
 
Lecture set 7
Lecture set 7Lecture set 7
Lecture set 7
 
Transport layer udp and tcp network
Transport layer udp and tcp networkTransport layer udp and tcp network
Transport layer udp and tcp network
 
Packet Guide SONET/SDH
Packet Guide SONET/SDHPacket Guide SONET/SDH
Packet Guide SONET/SDH
 

Más de AnusuaBasu (6)

Rarp
RarpRarp
Rarp
 
Arp
ArpArp
Arp
 
1703_anusua_basuclassful addressing_IP_Addressing
1703_anusua_basuclassful addressing_IP_Addressing1703_anusua_basuclassful addressing_IP_Addressing
1703_anusua_basuclassful addressing_IP_Addressing
 
Smart home technology
Smart  home technologySmart  home technology
Smart home technology
 
Robotics2
 Robotics2 Robotics2
Robotics2
 
routing algorithm
routing algorithmrouting algorithm
routing algorithm
 

Último

Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Christo Ananth
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Dr.Costas Sachpazis
 
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
Tonystark477637
 
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
 

Último (20)

Generative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTGenerative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPT
 
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
 
(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
 
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
 
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELLPVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdf
 
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
 
Intze Overhead Water Tank Design by Working Stress - IS Method.pdf
Intze Overhead Water Tank  Design by Working Stress - IS Method.pdfIntze Overhead Water Tank  Design by Working Stress - IS Method.pdf
Intze Overhead Water Tank Design by Working Stress - IS Method.pdf
 
(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
 
Vivazz, Mieres Social Housing Design Spain
Vivazz, Mieres Social Housing Design SpainVivazz, Mieres Social Housing Design Spain
Vivazz, Mieres Social Housing Design Spain
 
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
 
University management System project report..pdf
University management System project report..pdfUniversity management System project report..pdf
University management System project report..pdf
 
NFPA 5000 2024 standard .
NFPA 5000 2024 standard                                  .NFPA 5000 2024 standard                                  .
NFPA 5000 2024 standard .
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
 
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
 
Call for Papers - International Journal of Intelligent Systems and Applicatio...
Call for Papers - International Journal of Intelligent Systems and Applicatio...Call for Papers - International Journal of Intelligent Systems and Applicatio...
Call for Papers - International Journal of Intelligent Systems and Applicatio...
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.ppt
 
UNIT-IFLUID PROPERTIES & FLOW CHARACTERISTICS
UNIT-IFLUID PROPERTIES & FLOW CHARACTERISTICSUNIT-IFLUID PROPERTIES & FLOW CHARACTERISTICS
UNIT-IFLUID PROPERTIES & FLOW CHARACTERISTICS
 
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

  • 1. Presented By:- Anusua Basu Midnapore College (Autonomous) BCA 3rd Sem , Roll No:-1743
  • 2. • Transport layer protocols • Services and features •UDP Header Format • Services and features • TCP Header Format • Comparison of TCP and SCTP packet • Services and Features
  • 3.
  • 4. • A transport-layer protocol usually has several responsibilities. • One is to create a process-to-process communication; these protocol use port numbers to accomplish this. • Port numbers provide end-to-end addresses at the transport layer and allow multiplexing and demultiplexing at this layer ,just as IP addresses do at the network layer. • Table 1 gives some common port number for all three protocols we discuss in this chapter. Table 1: Some well-known ports used with UDP and TCP
  • 5. • The User Datagram Protocol (UDP) is a connectionless , unreliable transport protocol. • If UDP is so powerless, why would a process want to use it? With the disadvantages come some advantages. • UDP is a very simple protocol using a minimum of overhead. User Datagram: • UDP packets, called user datagrams, have a fixed-size header of 8 bytes made of four fields, each of 2 bytes(16bits) • Figure 2 shows the formate of a user Datagram.
  • 6. Figure 2: User datagram packet format • The first two fields define the source and destination port number. • The third defines the total length of the user datagram, header plus data. • The 16 bits can define a total length of 0 to 65,535 bytes. • However, the total length needs to be less because a UDP user datagram is stored in an IP datagram with the total length of 65,535 bytes. • The last field can carry the optional checksum(explained later).
  • 7. Example 1 The following is the contents of a UDP header in hexadecimal format. a. What is the source port number? b. What is the destination port number? c. What is the total length of the user datagram? d. What is the length of the data? e. Is the packet directed from a client to a server or vice versa? f. What is the client process? Solution: CB84 000D 001C 001C Solution a. The source port number is the first four hexadecimal digits (CB84)16 or 52100. b. The destination port number is the second four hexadecimal digits (000D)16 or 13. c. The third four hexadecimal digits (001C)16 define the length of the whole UDP packet as 28 bytes. d. The length of the data is the length of the whole packet minus the length of the header, or 28 − 8 = 20 bytes. e. Since the destination port number is 13 (well-known port), the packet is from the client to the server. f. The client process is the Daytime (see Table 1).
  • 8. • Transmission control protocol (TCP) is a connection-oriented reliable protocol. • TCP explicitly defines connection establishment, data transfer, and connection teardown phases to provide a connection. • TCP uses a combination of GBN(Go-Back-N) and SR( Selective Repeat) protocols to provide reliability. (whereas UDP uses simple protocol) TCP Services: • Before discussing TCP in detail, let us explain the services offered by TCP to the processes at the Application layer.
  • 9. Figure 5: sending and receiving buffers
  • 10. Figure 5: TCP segments
  • 11. Suppose a TCP connection is transferring a file of 5,000 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 1,000 bytes? Example 7 Solution The following shows the sequence number for each segment:
  • 12. Figure 7: TCP segment format
  • 13. Stream Control Transmission Protocol (SCTP) is a new transport-layer protocol designed to combine some features of UDP and TCP in an effort to create a protocol for multimedia communication. • SCTP Services: • Before discussing the operation of SCTP, let us explain the services offered by SCTP to the application-layer processes. Figure 8: Multiple-stream concept
  • 14. Figure 9 : Multihoming concept
  • 15. SCTP Features The following shows the general features of SCTP. Transmission Sequence Number (TSN) Stream Identifier (SI) Stream Sequence Number (SSN) Packets Acknowledgement Number
  • 16. Figure 10 : Comparison between a TCP segment and an SCTP packet
  • 17. Figure 11 : Packets, data chunks, and streams
  • 18. Packet Format • An SCTP packet has a mandatory general header and a set of blocks called chunks. • There are two types of chunks: control chunks and data chunks. • A control chunk controls and maintains the association; a data chunk carries user data. • In a packet, the control chunks come before the data chunks. • Figure 24.42 shows the general format of an SCTP packet. Figure 12: SCTP packet format Figure 13: General header
  • 19. Figure 14 : Common layout of a chunk Table 15 : Chunks