SlideShare une entreprise Scribd logo
1  sur  27
Transport Protocols




                      1
The Transport Abstraction

•   Transport provides three key services
    – Application Multiplexing
          Several processes can send and receive data between ports using a
    single host-to-host IP link.

    – Connection-Orientation
         data are sent and received as a seamless stream of bytes, rather
    than fixed-size packets

    – Error Controlled
          packets which are lost or received out-of order are transparent to
    the receiving application

•   TCP provides all these abstractions
•   UDP provides only the first one
                                                                               2
The Transmission Control Protocol
                  (TCP)

• End-to-End communication for user processes
• Processes can communicate in a simple stream of
  binary data
• Each byte of data will arrive in the order it was
  sent
• If some part of the data cannot be received this will be
  made explicit by an error being passed to the user code
  (e.g. an Exception)

                                                        3
Fundamentals of TCP

• Basically a Sliding Window protocol
  – Data sent in segments in IP packets
  – Very large (32-bit) sequence number
      • represents byte offset of segment




                                            4
TCP Process Communication




                            5
TCP Process Communication

• Two processes communicating via TCP sockets.
• Each side of a TCP connection has a socket which can be
  identified by the pair
      < IP_address, port_number >
• Two processes communicating over TCP form a logical
  connection that is uniquely identifiable by the two
  sockets involved, that is by the combination
  < local_IP_address, local_port, remote_IP_address,
  remote_port>

                                                      6
TCP Facilities

Stream Data Transfer
• From the application's viewpoint, TCP transfers a
  contiguous stream of bytes.
• TCP does this by grouping the bytes in TCP
  segments, which are passed to IP for
  transmission to the destination.
• TCP itself decides how to segment the data and it
  may forward the data at its own convenience.
                                                 7
TCP Facilities

Reliability
  TCP assigns a sequence number to each byte
  transmitted, and expects a positive acknowledgment
  (ACK) from the receiving TCP.
• If the ACK is not received within a timeout interval, the
  data is retransmitted.
• The receiving TCP uses the sequence numbers to
  rearrange the segments when they arrive out of order,
  and to eliminate duplicate segments.
                                                        8
TCP Facilities

Flow Control
• The receiving TCP, when sending an ACK back to the
  sender, also indicates to the sender the number of
  bytes it can receive beyond the last received TCP
  segment, without causing overrun and overflow in its
  internal buffers.
• This is sent in the ACK in the form of the highest
  sequence number it can receive without problems.

                                                         9
TCP Facilities

Multiplexing
• To allow for many processes within a single host to use
  TCP communication facilities simultaneously, the TCP
  provides a set of addresses or ports within each host.
• Concatenated with the network and host addresses
  from the internet communication layer, this forms a
  socket.
• A pair of sockets uniquely identifies each connection.


                                                       10
TCP Facilities

Logical Connections
• The reliability and flow control mechanisms described
  above require that TCP initializes and maintains certain
  status information for each data stream.
• The combination of this status, including sockets,
  sequence numbers and window sizes, is called a logical
  connection.
• Each connection is uniquely identified by the pair of
  sockets used by the sending and receiving processes.

                                                        11
TCP Facilities

Full Duplex

• TCP provides for concurrent data streams in
  both directions.




                                                12
TCP HEADER

• TCP data is encapsulated in an IP datagram.
• Its normal size is 20 bytes unless options are
  present.




                                                   13
TCP HEADER




             14
TCP HEADER

• The SrcPort and DstPort fields identify the source and
  destination ports,respectively. These two fields plus the
  source and destination IP addresses, combine to
  uniquely identify each TCP connection.

• The sequence number identifies the byte in the stream
  of data from the sending TCP to the receiving TCP that
  the first byte of data in this segment represents.


                                                        15
TCP HEADER

• The Acknowledgement number field contains the
  next sequence number that the sender of the
  acknowledgement expects to receive.
• This is therefore the sequence number plus 1 of the
  last successfully received byte of data.
• This field is valid only if the ACK flag is on.
• Once a connection is established the Ack flag is
  always on.
                                                   16
TCP HEADER

• The Acknowledgement, SequenceNum, and AdvertisedWindow fields are
  all involved in TCP's sliding window algorithm.
• The Acknowledgement and AdvertisedWindow fields carry information
  about the flow of data going in the other direction.
• In TCP's sliding window algorithm the reciever advertises a window size to
  the sender.
• This is done using the AdvertisedWindow field.
• The sender is then limited to having no more than a value of
  AdvertisedWindow bytes of un acknowledged data at any given time.
• The receiver sets a suitable value for the AdvertisedWindow based on the
  amount of memory allocated to the connection for the purpose of buffering
  data


                                                                      17
TCP HEADER

• The header length gives the length of the header
  in 32-bit words. This is required because the
  length of the options field is variable.
• The 6-bit Flags field is used to relay control
  information between TCP peers. The possible
  flags include SYN, FIN, RESET, PUSH, URG, and
  ACK.

                                                18
TCP HEADER

• The Checksum covers the TCP segment: the TCP header
  and the TCP data. This is a mandatory field that must be
  calculated by the sender, and then verified by the
  receiver.

• The Option field is the maximum segment size option,
  called the MSS. Each end of the connection normally
  specifies this option on the first segment exchanged. It
  specifies the maximum sized segment the sender wants
  to receive.

• The data portion of the TCP segment is optional.     19
The User Datagram Protocol (UDP)

• UDP is a commonly used transport protocol
  employed by many types of applications
• A connectionless transport – doesn’t guarantee
  either packet delivery or packets arrive in
  sequential order
• Bytes are grouped together in discrete packets
  not an ordered sequence of bytes using I/O
  stream
                                               20
The User Datagram Protocol
                   (UDP)
• The packet may travel along different path as
  selected by the various network routers that
  distribute traffic flow (network congestion,
  priority of routes and the cost of transmission)
• Possibility of packet missing or discarded exist
• No notification is available to update the status of
  delivery


                                                   21
UDP Advantages

• UDP communication can be more efficient than
  guaranteed-delivery data streams. If the amount is
  small and the data is sent frequently, it may make sense
  to avoid the overhead of guaranteed delivery
• Overhead to establish connection can be reduced as
  compared to TCP
• Real time applications that demand up-to-the-second or
  better performance maybe the candidates for UDP,
  since fewer delay due to the error checking and flow
  control of TCP
                                                       22
The User Datagram Protocol
          (UDP)




                             23
The User Datagram Protocol (UDP)

• UDP Length: length of datagram in bytes,
  including header and data, max is 65,535 bytes
• Checksum: optional -- 16-bit checksum over
  header and data, or zero




                                               24
TCP vs. UDP

• How do we send and reconstruct multiple large objects
  with each protocol?




                                                    25
TCP vs. UDP

How do we send and reconstruct multiple large objects with UDP?
  – Fragment objects in to byte blocks
       agree a size and add delimiters between objects which
  share the same block, number each block and say            which
  object it belongs to
  – Send blocks one at a time
  – When a block is received check which object it is for, place it in
  a buffer for that object
  – When the end block of an object is found, if that object
  is complete, return it to the application, if not, request
  retransmission of missing blocks
                                                                  26
TCP vs. UDP

What is UDP useful for?
– Fire-and-Forget data
   • informational (time server updates, keep alives)
   • wide-area search (service discovery, P2P search)
– Real time data
   • Any application where we don’t care about data from
   the past, only current data
       – voice over IP
       – streaming video/audio
       – multiplayer games
                                                     27

Contenu connexe

Tendances

Computer network switching
Computer network switchingComputer network switching
Computer network switchingShivani Godha
 
Computer Networks Unit 1 Introduction and Physical Layer
Computer Networks Unit 1 Introduction and Physical Layer Computer Networks Unit 1 Introduction and Physical Layer
Computer Networks Unit 1 Introduction and Physical Layer Dr. SELVAGANESAN S
 
What Is User Datagram Protocol?
What Is User Datagram Protocol?What Is User Datagram Protocol?
What Is User Datagram Protocol?Simplilearn
 
Unit 1 introduction to computer networks
Unit 1  introduction to computer networksUnit 1  introduction to computer networks
Unit 1 introduction to computer networkspavan kumar Thatikonda
 
Transport layer services
Transport layer servicesTransport layer services
Transport layer servicesMelvin Cabatuan
 
Multiple access control protocol
Multiple access control protocol Multiple access control protocol
Multiple access control protocol meenamunesh
 
Structure of switches
Structure of switchesStructure of switches
Structure of switchesAnam Sana
 
TCP protocol flow control
TCP protocol flow control TCP protocol flow control
TCP protocol flow control anuragjagetiya
 
Introduction to switching & circuit switching
Introduction to switching & circuit switchingIntroduction to switching & circuit switching
Introduction to switching & circuit switchingDr Rajiv Srivastava
 
Flow & Error Control
Flow & Error ControlFlow & Error Control
Flow & Error Controltameemyousaf
 
Transmission Control Protocol (TCP)
Transmission Control Protocol (TCP)Transmission Control Protocol (TCP)
Transmission Control Protocol (TCP)k33a
 

Tendances (20)

Computer network switching
Computer network switchingComputer network switching
Computer network switching
 
Computer Networks Unit 1 Introduction and Physical Layer
Computer Networks Unit 1 Introduction and Physical Layer Computer Networks Unit 1 Introduction and Physical Layer
Computer Networks Unit 1 Introduction and Physical Layer
 
Error control
Error controlError control
Error control
 
Network Layer
Network LayerNetwork Layer
Network Layer
 
Introduction to Application layer
Introduction to Application layerIntroduction to Application layer
Introduction to Application layer
 
What Is User Datagram Protocol?
What Is User Datagram Protocol?What Is User Datagram Protocol?
What Is User Datagram Protocol?
 
Unit 1 introduction to computer networks
Unit 1  introduction to computer networksUnit 1  introduction to computer networks
Unit 1 introduction to computer networks
 
Transport layer services
Transport layer servicesTransport layer services
Transport layer services
 
Tcp
TcpTcp
Tcp
 
Multiple access control protocol
Multiple access control protocol Multiple access control protocol
Multiple access control protocol
 
Structure of switches
Structure of switchesStructure of switches
Structure of switches
 
TCP protocol flow control
TCP protocol flow control TCP protocol flow control
TCP protocol flow control
 
Introduction to switching & circuit switching
Introduction to switching & circuit switchingIntroduction to switching & circuit switching
Introduction to switching & circuit switching
 
Flow & Error Control
Flow & Error ControlFlow & Error Control
Flow & Error Control
 
Circuit Switching
Circuit SwitchingCircuit Switching
Circuit Switching
 
Application Layer
Application Layer Application Layer
Application Layer
 
TCP/IP
TCP/IPTCP/IP
TCP/IP
 
Transport layer
Transport layer Transport layer
Transport layer
 
Computer networks - Channelization
Computer networks - ChannelizationComputer networks - Channelization
Computer networks - Channelization
 
Transmission Control Protocol (TCP)
Transmission Control Protocol (TCP)Transmission Control Protocol (TCP)
Transmission Control Protocol (TCP)
 

En vedette

Transport layer (computer networks)
Transport layer (computer networks)Transport layer (computer networks)
Transport layer (computer networks)Fatbardh Hysa
 
Network Fundamentals: Ch4 - Transport Layer
Network Fundamentals: Ch4 - Transport LayerNetwork Fundamentals: Ch4 - Transport Layer
Network Fundamentals: Ch4 - Transport LayerAbdelkhalik Mosa
 
the transport layer
the transport layerthe transport layer
the transport layertumetr1
 
The Transport Layer
The Transport LayerThe Transport Layer
The Transport Layeradil raja
 
Introduction of tcp, ip & udp
Introduction of tcp, ip & udpIntroduction of tcp, ip & udp
Introduction of tcp, ip & udprahul kundu
 
Distance vector routing algorithm
Distance vector routing algorithmDistance vector routing algorithm
Distance vector routing algorithmGaurav Rawat
 
Routers.ppt
Routers.pptRouters.ppt
Routers.pptkirbadh
 
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
 
transport layer
transport layer transport layer
transport layer usman19
 

En vedette (20)

Transport layer (computer networks)
Transport layer (computer networks)Transport layer (computer networks)
Transport layer (computer networks)
 
Transport Layer
Transport LayerTransport Layer
Transport Layer
 
Network Fundamentals: Ch4 - Transport Layer
Network Fundamentals: Ch4 - Transport LayerNetwork Fundamentals: Ch4 - Transport Layer
Network Fundamentals: Ch4 - Transport Layer
 
transport layer
transport layertransport layer
transport layer
 
Transport layer
Transport layerTransport layer
Transport layer
 
Transport Protocols
Transport ProtocolsTransport Protocols
Transport Protocols
 
the transport layer
the transport layerthe transport layer
the transport layer
 
Tcp and udp
Tcp and udpTcp and udp
Tcp and udp
 
Transport layer
Transport layerTransport layer
Transport layer
 
The Transport Layer
The Transport LayerThe Transport Layer
The Transport Layer
 
Introduction of tcp, ip & udp
Introduction of tcp, ip & udpIntroduction of tcp, ip & udp
Introduction of tcp, ip & udp
 
TCP Vs UDP
TCP Vs UDP TCP Vs UDP
TCP Vs UDP
 
Distance vector routing algorithm
Distance vector routing algorithmDistance vector routing algorithm
Distance vector routing algorithm
 
Ppt of routing protocols
Ppt of routing protocolsPpt of routing protocols
Ppt of routing protocols
 
Congestion control
Congestion controlCongestion control
Congestion control
 
Routers.ppt
Routers.pptRouters.ppt
Routers.ppt
 
Chapter3 transport
Chapter3 transportChapter3 transport
Chapter3 transport
 
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
 
transport layer
transport layer transport layer
transport layer
 
Transport layer
Transport layerTransport layer
Transport layer
 

Similaire à Transport protocols

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 & AnomaliesRhydham Joshi
 
Transmission Control Protocol_ Computer Networks
Transmission Control Protocol_ Computer NetworksTransmission Control Protocol_ Computer Networks
Transmission Control Protocol_ Computer NetworksManimaran A
 
Networking essentials lect3
Networking essentials lect3Networking essentials lect3
Networking essentials lect3Roman Brovko
 
TCP_NISCHAYBAHL.pptx
TCP_NISCHAYBAHL.pptxTCP_NISCHAYBAHL.pptx
TCP_NISCHAYBAHL.pptxNischayBahl1
 
tcp-ippresentation-150614172243-lva1-app6892.pptx
tcp-ippresentation-150614172243-lva1-app6892.pptxtcp-ippresentation-150614172243-lva1-app6892.pptx
tcp-ippresentation-150614172243-lva1-app6892.pptxAlphaKoiSylvester
 
TCP - IP Presentation
TCP - IP PresentationTCP - IP Presentation
TCP - IP PresentationHarish Chand
 
Computer networks transport layer
Computer networks  transport layerComputer networks  transport layer
Computer networks transport layerjamunaashok
 
Unit 4-Transport Layer Protocols-3.pptx
Unit 4-Transport Layer Protocols-3.pptxUnit 4-Transport Layer Protocols-3.pptx
Unit 4-Transport Layer Protocols-3.pptxDESTROYER39
 
Unit 4-Transport Layer Protocols.pptx
Unit 4-Transport Layer Protocols.pptxUnit 4-Transport Layer Protocols.pptx
Unit 4-Transport Layer Protocols.pptxsarosh32
 
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 internatKritika Purohit
 
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).pptxVINAYTANWAR18
 
Unit-4 (1).pptx
Unit-4 (1).pptxUnit-4 (1).pptx
Unit-4 (1).pptxpoonamsngr
 

Similaire à Transport protocols (20)

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
 
Transmission Control Protocol_ Computer Networks
Transmission Control Protocol_ Computer NetworksTransmission Control Protocol_ Computer Networks
Transmission Control Protocol_ Computer Networks
 
Networking essentials lect3
Networking essentials lect3Networking essentials lect3
Networking essentials lect3
 
TCP_NISCHAYBAHL.pptx
TCP_NISCHAYBAHL.pptxTCP_NISCHAYBAHL.pptx
TCP_NISCHAYBAHL.pptx
 
tcp-ippresentation-150614172243-lva1-app6892.pptx
tcp-ippresentation-150614172243-lva1-app6892.pptxtcp-ippresentation-150614172243-lva1-app6892.pptx
tcp-ippresentation-150614172243-lva1-app6892.pptx
 
Transport layer.pptx
Transport layer.pptxTransport layer.pptx
Transport layer.pptx
 
TCP - IP Presentation
TCP - IP PresentationTCP - IP Presentation
TCP - IP Presentation
 
Tcp ip presentation
Tcp ip presentationTcp ip presentation
Tcp ip presentation
 
TCP /IP
TCP /IPTCP /IP
TCP /IP
 
TCP/IP(networking)
TCP/IP(networking)TCP/IP(networking)
TCP/IP(networking)
 
TCP/IP & UDP
TCP/IP & UDPTCP/IP & UDP
TCP/IP & UDP
 
Tcpip 1
Tcpip 1Tcpip 1
Tcpip 1
 
Computer networks transport layer
Computer networks  transport layerComputer networks  transport layer
Computer networks transport layer
 
Unit 4-Transport Layer Protocols-3.pptx
Unit 4-Transport Layer Protocols-3.pptxUnit 4-Transport Layer Protocols-3.pptx
Unit 4-Transport Layer Protocols-3.pptx
 
Unit 4-Transport Layer Protocols.pptx
Unit 4-Transport Layer Protocols.pptxUnit 4-Transport Layer Protocols.pptx
Unit 4-Transport Layer Protocols.pptx
 
Unit 5.Transport Layer.pptx
Unit 5.Transport Layer.pptxUnit 5.Transport Layer.pptx
Unit 5.Transport Layer.pptx
 
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
 
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-4 (1).pptx
Unit-4 (1).pptxUnit-4 (1).pptx
Unit-4 (1).pptx
 
lecturer3.pptx
lecturer3.pptxlecturer3.pptx
lecturer3.pptx
 

Plus de Online

Philosophy of early childhood education 3
Philosophy of early childhood education 3Philosophy of early childhood education 3
Philosophy of early childhood education 3Online
 
Philosophy of early childhood education 2
Philosophy of early childhood education 2Philosophy of early childhood education 2
Philosophy of early childhood education 2Online
 
Philosophy of early childhood education 1
Philosophy of early childhood education 1Philosophy of early childhood education 1
Philosophy of early childhood education 1Online
 
Philosophy of early childhood education 4
Philosophy of early childhood education 4Philosophy of early childhood education 4
Philosophy of early childhood education 4Online
 
Operation and expression in c++
Operation and expression in c++Operation and expression in c++
Operation and expression in c++Online
 
Functions
FunctionsFunctions
FunctionsOnline
 
Formatted input and output
Formatted input and outputFormatted input and output
Formatted input and outputOnline
 
Control structures selection
Control structures   selectionControl structures   selection
Control structures selectionOnline
 
Control structures repetition
Control structures   repetitionControl structures   repetition
Control structures repetitionOnline
 
Introduction to problem solving in c++
Introduction to problem solving in c++Introduction to problem solving in c++
Introduction to problem solving in c++Online
 
Optical transmission technique
Optical transmission techniqueOptical transmission technique
Optical transmission techniqueOnline
 
Multi protocol label switching (mpls)
Multi protocol label switching (mpls)Multi protocol label switching (mpls)
Multi protocol label switching (mpls)Online
 
Lan technologies
Lan technologiesLan technologies
Lan technologiesOnline
 
Introduction to internet technology
Introduction to internet technologyIntroduction to internet technology
Introduction to internet technologyOnline
 
Internet standard routing protocols
Internet standard routing protocolsInternet standard routing protocols
Internet standard routing protocolsOnline
 
Internet protocol
Internet protocolInternet protocol
Internet protocolOnline
 
Application protocols
Application protocolsApplication protocols
Application protocolsOnline
 
Addressing
AddressingAddressing
AddressingOnline
 
Leadership
LeadershipLeadership
LeadershipOnline
 
Introduction to management
Introduction to managementIntroduction to management
Introduction to managementOnline
 

Plus de Online (20)

Philosophy of early childhood education 3
Philosophy of early childhood education 3Philosophy of early childhood education 3
Philosophy of early childhood education 3
 
Philosophy of early childhood education 2
Philosophy of early childhood education 2Philosophy of early childhood education 2
Philosophy of early childhood education 2
 
Philosophy of early childhood education 1
Philosophy of early childhood education 1Philosophy of early childhood education 1
Philosophy of early childhood education 1
 
Philosophy of early childhood education 4
Philosophy of early childhood education 4Philosophy of early childhood education 4
Philosophy of early childhood education 4
 
Operation and expression in c++
Operation and expression in c++Operation and expression in c++
Operation and expression in c++
 
Functions
FunctionsFunctions
Functions
 
Formatted input and output
Formatted input and outputFormatted input and output
Formatted input and output
 
Control structures selection
Control structures   selectionControl structures   selection
Control structures selection
 
Control structures repetition
Control structures   repetitionControl structures   repetition
Control structures repetition
 
Introduction to problem solving in c++
Introduction to problem solving in c++Introduction to problem solving in c++
Introduction to problem solving in c++
 
Optical transmission technique
Optical transmission techniqueOptical transmission technique
Optical transmission technique
 
Multi protocol label switching (mpls)
Multi protocol label switching (mpls)Multi protocol label switching (mpls)
Multi protocol label switching (mpls)
 
Lan technologies
Lan technologiesLan technologies
Lan technologies
 
Introduction to internet technology
Introduction to internet technologyIntroduction to internet technology
Introduction to internet technology
 
Internet standard routing protocols
Internet standard routing protocolsInternet standard routing protocols
Internet standard routing protocols
 
Internet protocol
Internet protocolInternet protocol
Internet protocol
 
Application protocols
Application protocolsApplication protocols
Application protocols
 
Addressing
AddressingAddressing
Addressing
 
Leadership
LeadershipLeadership
Leadership
 
Introduction to management
Introduction to managementIntroduction to management
Introduction to management
 

Dernier

This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.christianmathematics
 
Plant propagation: Sexual and Asexual propapagation.pptx
Plant propagation: Sexual and Asexual propapagation.pptxPlant propagation: Sexual and Asexual propapagation.pptx
Plant propagation: Sexual and Asexual propapagation.pptxUmeshTimilsina1
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jisc
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfNirmal Dwivedi
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...pradhanghanshyam7136
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxJisc
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024Elizabeth Walsh
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...Nguyen Thanh Tu Collection
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxDenish Jangid
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - Englishneillewis46
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxDr. Sarita Anand
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxAreebaZafar22
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibitjbellavia9
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxEsquimalt MFRC
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structuredhanjurrannsibayan2
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Jisc
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...Nguyen Thanh Tu Collection
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxmarlenawright1
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...Poonam Aher Patil
 

Dernier (20)

This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
Plant propagation: Sexual and Asexual propapagation.pptx
Plant propagation: Sexual and Asexual propapagation.pptxPlant propagation: Sexual and Asexual propapagation.pptx
Plant propagation: Sexual and Asexual propapagation.pptx
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptx
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 

Transport protocols

  • 2. The Transport Abstraction • Transport provides three key services – Application Multiplexing Several processes can send and receive data between ports using a single host-to-host IP link. – Connection-Orientation data are sent and received as a seamless stream of bytes, rather than fixed-size packets – Error Controlled packets which are lost or received out-of order are transparent to the receiving application • TCP provides all these abstractions • UDP provides only the first one 2
  • 3. The Transmission Control Protocol (TCP) • End-to-End communication for user processes • Processes can communicate in a simple stream of binary data • Each byte of data will arrive in the order it was sent • If some part of the data cannot be received this will be made explicit by an error being passed to the user code (e.g. an Exception) 3
  • 4. Fundamentals of TCP • Basically a Sliding Window protocol – Data sent in segments in IP packets – Very large (32-bit) sequence number • represents byte offset of segment 4
  • 6. TCP Process Communication • Two processes communicating via TCP sockets. • Each side of a TCP connection has a socket which can be identified by the pair < IP_address, port_number > • Two processes communicating over TCP form a logical connection that is uniquely identifiable by the two sockets involved, that is by the combination < local_IP_address, local_port, remote_IP_address, remote_port> 6
  • 7. TCP Facilities Stream Data Transfer • From the application's viewpoint, TCP transfers a contiguous stream of bytes. • TCP does this by grouping the bytes in TCP segments, which are passed to IP for transmission to the destination. • TCP itself decides how to segment the data and it may forward the data at its own convenience. 7
  • 8. TCP Facilities Reliability TCP assigns a sequence number to each byte transmitted, and expects a positive acknowledgment (ACK) from the receiving TCP. • If the ACK is not received within a timeout interval, the data is retransmitted. • The receiving TCP uses the sequence numbers to rearrange the segments when they arrive out of order, and to eliminate duplicate segments. 8
  • 9. TCP Facilities Flow Control • The receiving TCP, when sending an ACK back to the sender, also indicates to the sender the number of bytes it can receive beyond the last received TCP segment, without causing overrun and overflow in its internal buffers. • This is sent in the ACK in the form of the highest sequence number it can receive without problems. 9
  • 10. TCP Facilities Multiplexing • To allow for many processes within a single host to use TCP communication facilities simultaneously, the TCP provides a set of addresses or ports within each host. • Concatenated with the network and host addresses from the internet communication layer, this forms a socket. • A pair of sockets uniquely identifies each connection. 10
  • 11. TCP Facilities Logical Connections • The reliability and flow control mechanisms described above require that TCP initializes and maintains certain status information for each data stream. • The combination of this status, including sockets, sequence numbers and window sizes, is called a logical connection. • Each connection is uniquely identified by the pair of sockets used by the sending and receiving processes. 11
  • 12. TCP Facilities Full Duplex • TCP provides for concurrent data streams in both directions. 12
  • 13. TCP HEADER • TCP data is encapsulated in an IP datagram. • Its normal size is 20 bytes unless options are present. 13
  • 15. TCP HEADER • The SrcPort and DstPort fields identify the source and destination ports,respectively. These two fields plus the source and destination IP addresses, combine to uniquely identify each TCP connection. • The sequence number identifies the byte in the stream of data from the sending TCP to the receiving TCP that the first byte of data in this segment represents. 15
  • 16. TCP HEADER • The Acknowledgement number field contains the next sequence number that the sender of the acknowledgement expects to receive. • This is therefore the sequence number plus 1 of the last successfully received byte of data. • This field is valid only if the ACK flag is on. • Once a connection is established the Ack flag is always on. 16
  • 17. TCP HEADER • The Acknowledgement, SequenceNum, and AdvertisedWindow fields are all involved in TCP's sliding window algorithm. • The Acknowledgement and AdvertisedWindow fields carry information about the flow of data going in the other direction. • In TCP's sliding window algorithm the reciever advertises a window size to the sender. • This is done using the AdvertisedWindow field. • The sender is then limited to having no more than a value of AdvertisedWindow bytes of un acknowledged data at any given time. • The receiver sets a suitable value for the AdvertisedWindow based on the amount of memory allocated to the connection for the purpose of buffering data 17
  • 18. TCP HEADER • The header length gives the length of the header in 32-bit words. This is required because the length of the options field is variable. • The 6-bit Flags field is used to relay control information between TCP peers. The possible flags include SYN, FIN, RESET, PUSH, URG, and ACK. 18
  • 19. TCP HEADER • The Checksum covers the TCP segment: the TCP header and the TCP data. This is a mandatory field that must be calculated by the sender, and then verified by the receiver. • The Option field is the maximum segment size option, called the MSS. Each end of the connection normally specifies this option on the first segment exchanged. It specifies the maximum sized segment the sender wants to receive. • The data portion of the TCP segment is optional. 19
  • 20. The User Datagram Protocol (UDP) • UDP is a commonly used transport protocol employed by many types of applications • A connectionless transport – doesn’t guarantee either packet delivery or packets arrive in sequential order • Bytes are grouped together in discrete packets not an ordered sequence of bytes using I/O stream 20
  • 21. The User Datagram Protocol (UDP) • The packet may travel along different path as selected by the various network routers that distribute traffic flow (network congestion, priority of routes and the cost of transmission) • Possibility of packet missing or discarded exist • No notification is available to update the status of delivery 21
  • 22. UDP Advantages • UDP communication can be more efficient than guaranteed-delivery data streams. If the amount is small and the data is sent frequently, it may make sense to avoid the overhead of guaranteed delivery • Overhead to establish connection can be reduced as compared to TCP • Real time applications that demand up-to-the-second or better performance maybe the candidates for UDP, since fewer delay due to the error checking and flow control of TCP 22
  • 23. The User Datagram Protocol (UDP) 23
  • 24. The User Datagram Protocol (UDP) • UDP Length: length of datagram in bytes, including header and data, max is 65,535 bytes • Checksum: optional -- 16-bit checksum over header and data, or zero 24
  • 25. TCP vs. UDP • How do we send and reconstruct multiple large objects with each protocol? 25
  • 26. TCP vs. UDP How do we send and reconstruct multiple large objects with UDP? – Fragment objects in to byte blocks agree a size and add delimiters between objects which share the same block, number each block and say which object it belongs to – Send blocks one at a time – When a block is received check which object it is for, place it in a buffer for that object – When the end block of an object is found, if that object is complete, return it to the application, if not, request retransmission of missing blocks 26
  • 27. TCP vs. UDP What is UDP useful for? – Fire-and-Forget data • informational (time server updates, keep alives) • wide-area search (service discovery, P2P search) – Real time data • Any application where we don’t care about data from the past, only current data – voice over IP – streaming video/audio – multiplayer games 27