SlideShare ist ein Scribd-Unternehmen logo
1 von 31
Features of TCP (Part-1)




                           1
Recap


 In the previous class, you have learnt about

• Different layers of TCP/IP




                                                2
Objectives

  On completion of this period, you would be able to know
  about


• Understand the features of TCP


• Structure of the TCP Header


• Importance of primitives used and transport entities


                                                         3
What is the role of a Transport Layer ?


• It is designed to allow peer entities on the source and

  destination hosts to carry on a conversation




• It acts as an interface between the lower layers and the

  upper layers


                                                        4
Transport Layer             contd…

• Transport layer is the heart of the TCP/IP Network
  architecture


• Its task is to provide reliable data transport from the source
  machine to the destination machine


• It is done independent of the networks currently used


• It provides certain services to the upper layers


                                                             5
Transport Layer                                       contd…
      HOST 1                                                             HOST 2
           Application
                                                                            Application
      (or session) layer
                     Transport                                           (or session) layer
                                    Application/transport
                          address
                                          interface


                                                      TPDU
           Transport                                                       Transport
             entity                                          Transport        entity

                                                              protocol
                                    Transport/ Application
Network
                                          interface
address
                                                                          Network layer
          Network layer
                                             Fig .1

                                                                                              6
Transport Layer                contd…

• The hardware and software within the transport layer is
  called transport entity
• Transport entity can be located in the operating system
  kernel
• Transport entity can be located in a separate user
  process, in a library package or on the network interface
  card
• The previous figure explains the relationship of the
  network, transport and application layers
• The transport protocol carries TPDU between transport
  entity of host1 to host2


                                                          7
Transport Layer                contd…
• The layers below the transport layer are concerned with
  packaging, addressing, routing and delivery of data

• The physical layer handles the bits

• The data link layer deals with local networks

• Network layer handles routing between networks

• The transport layer depends on the lower layers to
  handle the process of moving data between systems

• The transport layer acts as a interface between the
  applications at the higher layers and the functions of the
  lower layers                                             8
Transport Layer                   contd…

• The modern computers are multi tasking and may have
  several applications trying to send and receive data

• The transport layer should provide a means by which
  these applications can send or receive data

• The transport layer is responsible for end-to-end or host-
  to-host transport

• In the TCP/IP model it is called host-to-host transport
  layer


                                                           9
Types of Transport Services
There are two types of transport services

       • The connection oriented transport service

       • Connectionless oriented transport service

They both have three phases

      • Establishment of connection
      • Data transfer using the connection
      • Releasing the connection

                                                     10
Transport Protocol

• The transport service is implemented by a transport
  protocol used between two transport entities

• Transport protocols have to deal with error control,
  sequencing and flow control

• At the data link layer two routers communicate directly
  via physical channel




                                                       11
The TCP Segment Header




                         12
The TCP Segment Header
• In the previous figure we have seen the TCP Header
  Layout. Let us see its details


• Every Segment begins with a fixed format, 20-byte
  header


• The fixed header may be followed by header options


• After the options, if any, up to 65,535 – 20 = 65,515 the
  20 bytes subtracted belong to the IP header
                                                         13
The TCP Segment Header

• 65.515 – 20 = 65,495 now the 20 bytes subtracted
  belong to the TCP header


• A maximum of 65,495 data bytes can be the Payload i.e.
  data to be transferred


• If there is no data also TCP header can be send but
  commonly used for acknowledgements and control
  messages


                                                      14
The TCP Segment Header
                         contd….

• Let us study the TCP header field by field

• The Source port and Destination port fields identify the
  local end points of the connection

• The well-known ports are defined at www.iana.org each
  host can allocate the port address as he wishes

• A port plus its host’s IP address forms a 48-bit unique
  end point

• The source and destination end points together identify
  the connection
                                                        15
The TCP Segment Header Continued



• The Sequence number and Acknowledgement number
  fields perform their usual functions



• Note that the latter specifies the next byte expected, not
  the last byte correctly received




                                                           16
The TCP Segment Header Continued

• Both are 32 bits long because every byte of data is
  numbered in a TCP stream


• The TCP header length tells how many 32-bit words are
  contained in the TCP header


• This information is needed because the Options field is
  of variable length, so is the header


                                                        17
The TCP Segment Header Continued
                           UR   ACK   PSH   RST   SYN   FIN
                           G

                                  6-bit field
• This field has been used for the last 25 years which tells
  us that it has been perfectly structured

• It has six 1-bit flags

• URG is set to 1 if the Urgent pointer is in use

• The Urgent pointer is used to indicate a byte offset from
  the current sequence number at which urgent data are to
  be found
                                                              18
The TCP Segment Header Continued

• The ACK bit is set to 1 to indicate that Acknowledgement
  number is valid

• If ACK is 0, the segment does not contain an
  acknowledgement so that the Acknowledgement number
  field is ignored

• The PSH bit indicates PUSHED data. The receiver is
  hereby kindly requested to deliver the data to the
  application upon arrival



                                                        19
The TCP Segment Header Continued

• It should not buffer it until a full buffer has been received

• The RST bit is used to reset a connection that has
  become confused due to a host crash or some other
  reason

• It is also used to reject an invalid segment or refuse an
  attempt to open a connection

• In general, if you get a segment with RST bit ON, you
  have a problem on your hands


                                                              20
The TCP Segment Header Continued

• The SYN bit is used to establish connections. The
  connection request has SYN=1 and ACK=0 it means
  acknowledgement field is not in use


• If the connection reply does bear an acknowledgement,
  it has SYN=1 and ACK=1


• In essence the SYN bit is used to denote CONNECTION
  REQUEST and CONNECTION ACCEPTED, with the
  ACK bit used to distinguish between those two
  possibilities

                                                     21
The TCP Segment Header Continued

• The FIN bit is used to release a connection


• It specifies that the sender has no more data to transmit


• However, after closing a connection, the closing process
  may continue to receive data indefinitely


• Both SYN and FIN segments have sequence numbers
  and are thus guaranteed to be processed in the correct
  order

                                                         22
The TCP Segment Header Continued
  Window Size
• Flow control in TCP is handled using a variable-sized
  sliding window


• The Window size field tell how many bytes may be sent
  starting at the byte acknowledged


• A window size field of 0 is legal and says that the bytes
  up to and including Acknowledgement number-1 have
  been received


                                                         23
The TCP Segment Header
      Continued
    Checksum
• A Checksum is also provided for extra reliability
• It Checksums the header and data
• The Checksum is added which can be used for error
  detection
• When the header, data bytes are added along with the
  16-bit checksum at the receiving system
• If the result obtained is zero then there is no error
• If the result is not zero the receiving system asks for a
  retransmission of frame


                                                          24
Summary

In this class, you have learnt about


• Functions of Transport layer of TCP/IP


• Structure of the TCP Header and its description


• Importance of primitives used and transport entities



                                                         25
Quiz
1) The protocol used in the transport layer


  a) IP


  b) Telnet


  c) TCP


  d) None


                                              26
Quiz
2. The size of the TCP Header or IP header is


    a) 40 bytes

    b) 20 bytes

    c) 65,535

    d) 65,495




                                                27
Quiz
3) How many 1 bit field is present in the TCP
   header
   a) 5


   b) 6


   c) 7


   d) 8
                                           28
Quiz
4)   If the data bytes = 0 in a TCP header it is a


     a) acknowledgement frame


     b) control frame


     c) data frame


     d) none of the above



                                                     29
Frequently Asked Questions

Short Questions


1.   Draw the structure of the TCP Header?


2.   What are the various primitives used in the transport
     layer ?


3.   Briefly describe the data transfer between two
     transport entities


                                                        30
Frequently Asked Questions

Essay Questions



1.   Explain the various functions of the transport layer in
     TCP?


2.   Draw the structure of TCP Header and describe it in
     detail?




                                                          31

Weitere ähnliche Inhalte

Was ist angesagt?

Transport layer services
Transport layer servicesTransport layer services
Transport layer servicesMelvin Cabatuan
 
Transmission Control Protocol (TCP)
Transmission Control Protocol (TCP)Transmission Control Protocol (TCP)
Transmission Control Protocol (TCP)k33a
 
Transmission control protocol
Transmission control protocolTransmission control protocol
Transmission control protocolSundra Anand
 
Mobile computing-tcp data flow control
Mobile computing-tcp data flow controlMobile computing-tcp data flow control
Mobile computing-tcp data flow controlSushant Kushwaha
 
Tcp Udp
Tcp UdpTcp Udp
Tcp UdpEri Alam
 
Transport layer
Transport layerTransport layer
Transport layerJinank Jain
 
Tcp header/IP Header/Authentication header
Tcp header/IP Header/Authentication headerTcp header/IP Header/Authentication header
Tcp header/IP Header/Authentication headerFaizan Shaikh
 
transport layer protocols
transport layer protocolstransport layer protocols
transport layer protocolsBE Smârt
 
TCP and UDP
TCP and UDP TCP and UDP
TCP and UDP Ramesh Giri
 
User Datagram protocol For Msc CS
User Datagram protocol For Msc CSUser Datagram protocol For Msc CS
User Datagram protocol For Msc CSThanveen
 
Mobile Transpot Layer
Mobile Transpot LayerMobile Transpot Layer
Mobile Transpot LayerMaulik Patel
 
Tcp3 wayhandshakeprocess
Tcp3 wayhandshakeprocessTcp3 wayhandshakeprocess
Tcp3 wayhandshakeprocessAashutoshkumar28
 
Unit III IPV6 UDP
Unit III IPV6 UDPUnit III IPV6 UDP
Unit III IPV6 UDPsangusajjan
 
TCP Over Wireless
TCP Over WirelessTCP Over Wireless
TCP Over WirelessFarooq Khan
 
Mobile transportlayer
Mobile transportlayerMobile transportlayer
Mobile transportlayerRahul Hada
 

Was ist angesagt? (20)

Transport layer services
Transport layer servicesTransport layer services
Transport layer services
 
Chap 12 tcp
Chap 12 tcpChap 12 tcp
Chap 12 tcp
 
Transmission Control Protocol (TCP)
Transmission Control Protocol (TCP)Transmission Control Protocol (TCP)
Transmission Control Protocol (TCP)
 
Transmission control protocol
Transmission control protocolTransmission control protocol
Transmission control protocol
 
Tcp udp
Tcp udpTcp udp
Tcp udp
 
Mobile computing-tcp data flow control
Mobile computing-tcp data flow controlMobile computing-tcp data flow control
Mobile computing-tcp data flow control
 
Tcp Udp
Tcp UdpTcp Udp
Tcp Udp
 
Transport layer
Transport layerTransport layer
Transport layer
 
Tcp header/IP Header/Authentication header
Tcp header/IP Header/Authentication headerTcp header/IP Header/Authentication header
Tcp header/IP Header/Authentication header
 
transport layer protocols
transport layer protocolstransport layer protocols
transport layer protocols
 
TCP and UDP
TCP and UDP TCP and UDP
TCP and UDP
 
Tcp Udp Notes
Tcp Udp NotesTcp Udp Notes
Tcp Udp Notes
 
User Datagram protocol For Msc CS
User Datagram protocol For Msc CSUser Datagram protocol For Msc CS
User Datagram protocol For Msc CS
 
Mobile Transpot Layer
Mobile Transpot LayerMobile Transpot Layer
Mobile Transpot Layer
 
Tcp3 wayhandshakeprocess
Tcp3 wayhandshakeprocessTcp3 wayhandshakeprocess
Tcp3 wayhandshakeprocess
 
Transaction TCP
Transaction TCPTransaction TCP
Transaction TCP
 
Unit III IPV6 UDP
Unit III IPV6 UDPUnit III IPV6 UDP
Unit III IPV6 UDP
 
TCP Over Wireless
TCP Over WirelessTCP Over Wireless
TCP Over Wireless
 
Mobile transportlayer
Mobile transportlayerMobile transportlayer
Mobile transportlayer
 
Rtp
RtpRtp
Rtp
 

Andere mochten auch

Working of lan
Working of lanWorking of lan
Working of lanmyrajendra
 
Network Client Server
Network Client ServerNetwork Client Server
Network Client ServereShikshak
 
Presentation
PresentationPresentation
PresentationIsmail Miah
 
WAN Design Project
WAN Design ProjectWAN Design Project
WAN Design ProjectD Ther Htun
 
Land Use Change in Kathmandu Valley
Land Use Change in Kathmandu ValleyLand Use Change in Kathmandu Valley
Land Use Change in Kathmandu ValleyBaral Pradeep
 
Outer ring road network in valley
Outer ring road network in valleyOuter ring road network in valley
Outer ring road network in valleyNarayan Rijal
 
Constructing a network diagram
Constructing a network diagramConstructing a network diagram
Constructing a network diagramnelramlawy
 
Lan, man and wan ppt final
Lan, man and wan ppt finalLan, man and wan ppt final
Lan, man and wan ppt finalArushi Garg
 

Andere mochten auch (8)

Working of lan
Working of lanWorking of lan
Working of lan
 
Network Client Server
Network Client ServerNetwork Client Server
Network Client Server
 
Presentation
PresentationPresentation
Presentation
 
WAN Design Project
WAN Design ProjectWAN Design Project
WAN Design Project
 
Land Use Change in Kathmandu Valley
Land Use Change in Kathmandu ValleyLand Use Change in Kathmandu Valley
Land Use Change in Kathmandu Valley
 
Outer ring road network in valley
Outer ring road network in valleyOuter ring road network in valley
Outer ring road network in valley
 
Constructing a network diagram
Constructing a network diagramConstructing a network diagram
Constructing a network diagram
 
Lan, man and wan ppt final
Lan, man and wan ppt finalLan, man and wan ppt final
Lan, man and wan ppt final
 

Ă„hnlich wie Tcpip 1

Transport protocols
Transport protocolsTransport protocols
Transport protocolsOnline
 
Transport layer protocol
Transport layer protocolTransport layer protocol
Transport layer protocolN.Jagadish Kumar
 
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
 
presentation on TCP/IP protocols data comunications
presentation on TCP/IP protocols data comunicationspresentation on TCP/IP protocols data comunications
presentation on TCP/IP protocols data comunicationsAnyapuPranav
 
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
 
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
 
TCPIP SLIDES.ppt
TCPIP SLIDES.pptTCPIP SLIDES.ppt
TCPIP SLIDES.pptaymenshykh
 
TCP - IP Presentation
TCP - IP PresentationTCP - IP Presentation
TCP - IP PresentationHarish Chand
 
Mobile computing unit-5
Mobile computing unit-5Mobile computing unit-5
Mobile computing unit-5Ramesh Babu
 
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
 
TRANSPORT LAYER ppt.pptx
TRANSPORT LAYER ppt.pptxTRANSPORT LAYER ppt.pptx
TRANSPORT LAYER ppt.pptxutkarshlodhi4
 
TCP/IP Protocols
TCP/IP ProtocolsTCP/IP Protocols
TCP/IP ProtocolsDanial Mirza
 
Unit-4 (1).pptx
Unit-4 (1).pptxUnit-4 (1).pptx
Unit-4 (1).pptxpoonamsngr
 
Networking essentials lect3
Networking essentials lect3Networking essentials lect3
Networking essentials lect3Roman Brovko
 
02 coms 525 tcpip - introduction to tcpip
02   coms 525 tcpip -  introduction to tcpip02   coms 525 tcpip -  introduction to tcpip
02 coms 525 tcpip - introduction to tcpipPalanivel Kuppusamy
 

Ă„hnlich wie Tcpip 1 (20)

Transport protocols
Transport protocolsTransport protocols
Transport protocols
 
Transport layer protocol
Transport layer protocolTransport layer protocol
Transport layer protocol
 
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
 
presentation on TCP/IP protocols data comunications
presentation on TCP/IP protocols data comunicationspresentation on TCP/IP protocols data comunications
presentation on TCP/IP protocols data comunications
 
Transport layer.pptx
Transport layer.pptxTransport layer.pptx
Transport layer.pptx
 
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
 
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
 
TCPIP SLIDES.ppt
TCPIP SLIDES.pptTCPIP SLIDES.ppt
TCPIP SLIDES.ppt
 
TCP - IP Presentation
TCP - IP PresentationTCP - IP Presentation
TCP - IP Presentation
 
Mobile computing unit-5
Mobile computing unit-5Mobile computing unit-5
Mobile computing unit-5
 
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
 
TRANSPORT LAYER ppt.pptx
TRANSPORT LAYER ppt.pptxTRANSPORT LAYER ppt.pptx
TRANSPORT LAYER ppt.pptx
 
TCP/IP Protocols
TCP/IP ProtocolsTCP/IP Protocols
TCP/IP Protocols
 
Unit-4 (1).pptx
Unit-4 (1).pptxUnit-4 (1).pptx
Unit-4 (1).pptx
 
Networking essentials lect3
Networking essentials lect3Networking essentials lect3
Networking essentials lect3
 
02 coms 525 tcpip - introduction to tcpip
02   coms 525 tcpip -  introduction to tcpip02   coms 525 tcpip -  introduction to tcpip
02 coms 525 tcpip - introduction to tcpip
 
TCP/IP model
TCP/IP modelTCP/IP model
TCP/IP model
 
TCP Vs UDP
TCP Vs UDP TCP Vs UDP
TCP Vs UDP
 

Mehr von myrajendra

Fundamentals
FundamentalsFundamentals
Fundamentalsmyrajendra
 
Data type
Data typeData type
Data typemyrajendra
 
Hibernate example1
Hibernate example1Hibernate example1
Hibernate example1myrajendra
 
Jdbc workflow
Jdbc workflowJdbc workflow
Jdbc workflowmyrajendra
 
2 jdbc drivers
2 jdbc drivers2 jdbc drivers
2 jdbc driversmyrajendra
 
3 jdbc api
3 jdbc api3 jdbc api
3 jdbc apimyrajendra
 
4 jdbc step1
4 jdbc step14 jdbc step1
4 jdbc step1myrajendra
 
Dao example
Dao exampleDao example
Dao examplemyrajendra
 
Sessionex1
Sessionex1Sessionex1
Sessionex1myrajendra
 
Internal
InternalInternal
Internalmyrajendra
 
3. elements
3. elements3. elements
3. elementsmyrajendra
 
2. attributes
2. attributes2. attributes
2. attributesmyrajendra
 
1 introduction to html
1 introduction to html1 introduction to html
1 introduction to htmlmyrajendra
 
Headings
HeadingsHeadings
Headingsmyrajendra
 
Starting jdbc
Starting jdbcStarting jdbc
Starting jdbcmyrajendra
 

Mehr von myrajendra (20)

Fundamentals
FundamentalsFundamentals
Fundamentals
 
Data type
Data typeData type
Data type
 
Hibernate example1
Hibernate example1Hibernate example1
Hibernate example1
 
Jdbc workflow
Jdbc workflowJdbc workflow
Jdbc workflow
 
2 jdbc drivers
2 jdbc drivers2 jdbc drivers
2 jdbc drivers
 
3 jdbc api
3 jdbc api3 jdbc api
3 jdbc api
 
4 jdbc step1
4 jdbc step14 jdbc step1
4 jdbc step1
 
Dao example
Dao exampleDao example
Dao example
 
Sessionex1
Sessionex1Sessionex1
Sessionex1
 
Internal
InternalInternal
Internal
 
3. elements
3. elements3. elements
3. elements
 
2. attributes
2. attributes2. attributes
2. attributes
 
1 introduction to html
1 introduction to html1 introduction to html
1 introduction to html
 
Headings
HeadingsHeadings
Headings
 
Forms
FormsForms
Forms
 
Css
CssCss
Css
 
Views
ViewsViews
Views
 
Views
ViewsViews
Views
 
Views
ViewsViews
Views
 
Starting jdbc
Starting jdbcStarting jdbc
Starting jdbc
 

KĂĽrzlich hochgeladen

Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)lakshayb543
 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Mark Reed
 
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfGrade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfJemuel Francisco
 
How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17Celine George
 
AUDIENCE THEORY -CULTIVATION THEORY - GERBNER.pptx
AUDIENCE THEORY -CULTIVATION THEORY -  GERBNER.pptxAUDIENCE THEORY -CULTIVATION THEORY -  GERBNER.pptx
AUDIENCE THEORY -CULTIVATION THEORY - GERBNER.pptxiammrhaywood
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Celine George
 
Culture Uniformity or Diversity IN SOCIOLOGY.pptx
Culture Uniformity or Diversity IN SOCIOLOGY.pptxCulture Uniformity or Diversity IN SOCIOLOGY.pptx
Culture Uniformity or Diversity IN SOCIOLOGY.pptxPoojaSen20
 
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxMULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxAnupkumar Sharma
 
ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4MiaBumagat1
 
4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptxmary850239
 
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdfVirtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdfErwinPantujan2
 
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYKayeClaireEstoconing
 
ENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomnelietumpap1
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatYousafMalik24
 
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxINTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxHumphrey A Beña
 
Concurrency Control in Database Management system
Concurrency Control in Database Management systemConcurrency Control in Database Management system
Concurrency Control in Database Management systemChristalin Nelson
 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfMr Bounab Samir
 
Science 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptxScience 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptxMaryGraceBautista27
 

KĂĽrzlich hochgeladen (20)

Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)
 
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfGrade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
 
How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17
 
AUDIENCE THEORY -CULTIVATION THEORY - GERBNER.pptx
AUDIENCE THEORY -CULTIVATION THEORY -  GERBNER.pptxAUDIENCE THEORY -CULTIVATION THEORY -  GERBNER.pptx
AUDIENCE THEORY -CULTIVATION THEORY - GERBNER.pptx
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17
 
Culture Uniformity or Diversity IN SOCIOLOGY.pptx
Culture Uniformity or Diversity IN SOCIOLOGY.pptxCulture Uniformity or Diversity IN SOCIOLOGY.pptx
Culture Uniformity or Diversity IN SOCIOLOGY.pptx
 
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxMULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
 
ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4
 
4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx
 
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdfVirtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
 
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
 
ENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choom
 
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptxYOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice great
 
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxINTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
 
Concurrency Control in Database Management system
Concurrency Control in Database Management systemConcurrency Control in Database Management system
Concurrency Control in Database Management system
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
 
Science 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptxScience 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptx
 

Tcpip 1

  • 1. Features of TCP (Part-1) 1
  • 2. Recap In the previous class, you have learnt about • Different layers of TCP/IP 2
  • 3. Objectives On completion of this period, you would be able to know about • Understand the features of TCP • Structure of the TCP Header • Importance of primitives used and transport entities 3
  • 4. What is the role of a Transport Layer ? • It is designed to allow peer entities on the source and destination hosts to carry on a conversation • It acts as an interface between the lower layers and the upper layers 4
  • 5. Transport Layer contd… • Transport layer is the heart of the TCP/IP Network architecture • Its task is to provide reliable data transport from the source machine to the destination machine • It is done independent of the networks currently used • It provides certain services to the upper layers 5
  • 6. Transport Layer contd… HOST 1 HOST 2 Application Application (or session) layer Transport (or session) layer Application/transport address interface TPDU Transport Transport entity Transport entity protocol Transport/ Application Network interface address Network layer Network layer Fig .1 6
  • 7. Transport Layer contd… • The hardware and software within the transport layer is called transport entity • Transport entity can be located in the operating system kernel • Transport entity can be located in a separate user process, in a library package or on the network interface card • The previous figure explains the relationship of the network, transport and application layers • The transport protocol carries TPDU between transport entity of host1 to host2 7
  • 8. Transport Layer contd… • The layers below the transport layer are concerned with packaging, addressing, routing and delivery of data • The physical layer handles the bits • The data link layer deals with local networks • Network layer handles routing between networks • The transport layer depends on the lower layers to handle the process of moving data between systems • The transport layer acts as a interface between the applications at the higher layers and the functions of the lower layers 8
  • 9. Transport Layer contd… • The modern computers are multi tasking and may have several applications trying to send and receive data • The transport layer should provide a means by which these applications can send or receive data • The transport layer is responsible for end-to-end or host- to-host transport • In the TCP/IP model it is called host-to-host transport layer 9
  • 10. Types of Transport Services There are two types of transport services • The connection oriented transport service • Connectionless oriented transport service They both have three phases • Establishment of connection • Data transfer using the connection • Releasing the connection 10
  • 11. Transport Protocol • The transport service is implemented by a transport protocol used between two transport entities • Transport protocols have to deal with error control, sequencing and flow control • At the data link layer two routers communicate directly via physical channel 11
  • 12. The TCP Segment Header 12
  • 13. The TCP Segment Header • In the previous figure we have seen the TCP Header Layout. Let us see its details • Every Segment begins with a fixed format, 20-byte header • The fixed header may be followed by header options • After the options, if any, up to 65,535 – 20 = 65,515 the 20 bytes subtracted belong to the IP header 13
  • 14. The TCP Segment Header • 65.515 – 20 = 65,495 now the 20 bytes subtracted belong to the TCP header • A maximum of 65,495 data bytes can be the Payload i.e. data to be transferred • If there is no data also TCP header can be send but commonly used for acknowledgements and control messages 14
  • 15. The TCP Segment Header contd…. • Let us study the TCP header field by field • The Source port and Destination port fields identify the local end points of the connection • The well-known ports are defined at www.iana.org each host can allocate the port address as he wishes • A port plus its host’s IP address forms a 48-bit unique end point • The source and destination end points together identify the connection 15
  • 16. The TCP Segment Header Continued • The Sequence number and Acknowledgement number fields perform their usual functions • Note that the latter specifies the next byte expected, not the last byte correctly received 16
  • 17. The TCP Segment Header Continued • Both are 32 bits long because every byte of data is numbered in a TCP stream • The TCP header length tells how many 32-bit words are contained in the TCP header • This information is needed because the Options field is of variable length, so is the header 17
  • 18. The TCP Segment Header Continued UR ACK PSH RST SYN FIN G 6-bit field • This field has been used for the last 25 years which tells us that it has been perfectly structured • It has six 1-bit flags • URG is set to 1 if the Urgent pointer is in use • The Urgent pointer is used to indicate a byte offset from the current sequence number at which urgent data are to be found 18
  • 19. The TCP Segment Header Continued • The ACK bit is set to 1 to indicate that Acknowledgement number is valid • If ACK is 0, the segment does not contain an acknowledgement so that the Acknowledgement number field is ignored • The PSH bit indicates PUSHED data. The receiver is hereby kindly requested to deliver the data to the application upon arrival 19
  • 20. The TCP Segment Header Continued • It should not buffer it until a full buffer has been received • The RST bit is used to reset a connection that has become confused due to a host crash or some other reason • It is also used to reject an invalid segment or refuse an attempt to open a connection • In general, if you get a segment with RST bit ON, you have a problem on your hands 20
  • 21. The TCP Segment Header Continued • The SYN bit is used to establish connections. The connection request has SYN=1 and ACK=0 it means acknowledgement field is not in use • If the connection reply does bear an acknowledgement, it has SYN=1 and ACK=1 • In essence the SYN bit is used to denote CONNECTION REQUEST and CONNECTION ACCEPTED, with the ACK bit used to distinguish between those two possibilities 21
  • 22. The TCP Segment Header Continued • The FIN bit is used to release a connection • It specifies that the sender has no more data to transmit • However, after closing a connection, the closing process may continue to receive data indefinitely • Both SYN and FIN segments have sequence numbers and are thus guaranteed to be processed in the correct order 22
  • 23. The TCP Segment Header Continued Window Size • Flow control in TCP is handled using a variable-sized sliding window • The Window size field tell how many bytes may be sent starting at the byte acknowledged • A window size field of 0 is legal and says that the bytes up to and including Acknowledgement number-1 have been received 23
  • 24. The TCP Segment Header Continued Checksum • A Checksum is also provided for extra reliability • It Checksums the header and data • The Checksum is added which can be used for error detection • When the header, data bytes are added along with the 16-bit checksum at the receiving system • If the result obtained is zero then there is no error • If the result is not zero the receiving system asks for a retransmission of frame 24
  • 25. Summary In this class, you have learnt about • Functions of Transport layer of TCP/IP • Structure of the TCP Header and its description • Importance of primitives used and transport entities 25
  • 26. Quiz 1) The protocol used in the transport layer a) IP b) Telnet c) TCP d) None 26
  • 27. Quiz 2. The size of the TCP Header or IP header is a) 40 bytes b) 20 bytes c) 65,535 d) 65,495 27
  • 28. Quiz 3) How many 1 bit field is present in the TCP header a) 5 b) 6 c) 7 d) 8 28
  • 29. Quiz 4) If the data bytes = 0 in a TCP header it is a a) acknowledgement frame b) control frame c) data frame d) none of the above 29
  • 30. Frequently Asked Questions Short Questions 1. Draw the structure of the TCP Header? 2. What are the various primitives used in the transport layer ? 3. Briefly describe the data transfer between two transport entities 30
  • 31. Frequently Asked Questions Essay Questions 1. Explain the various functions of the transport layer in TCP? 2. Draw the structure of TCP Header and describe it in detail? 31