Upgrade to Pro — share decks privately, control downloads, hide ads and more …

About Transport Layer -layer 4-

About Transport Layer -layer 4-

kkeeth

June 21, 2021
Tweet

More Decks by kkeeth

Other Decks in Technology

Transcript

  1. About Transport Layer - layer 4 - Jun 21, 2021

    YUMEMI Study Group kkeeth @kuwahara_jsri @clown0082
  2. const my_info = { Name: ‘܂ݪ੟ਔ’, Position: ‘Tech Lead of

    FET’, Skills: ‘PHP, Node.js, TS, Ruby’, PokemonGO: ‘TL 40’, } About me
  3. 🙇 Sorry1 … 🙇 1. This slide is made in

    English. 2. I’m really bad at infrastructure and networking. Plz feedback for me called “Masakari” about my talk !!
  4. 📣 Precondition 📣 Physical Layer -> Layer 1 Data-Link Layer

    -> Layer 2 Network Layer -> Layer 3 Transport Layer -> Layer 4
  5. Layer 1: Transmission of information to the destination where the

    cable is connected Layer 2: How data is exchanged within a segment → a state in which signals can be exchanged Layer 3: How data is exchanged between segments(networks) → IP address, Routing Previously
  6. Layer 4 Differences Layer 1-3 Not interested in these ɾData

    corruption ɾDestination does not exist ɾError occurs
  7. The role of layer 4 Flow Control Error Recovery (acknowledgement)

    Identifying Applications (with Port Number) Sequence Number
  8. Flow Control A B send lots of data I can't

    keep up with the processing, over fl ow💦
  9. Identifying Applications A B data NIC 2000 3000 4000 Communication

    between applications This is called “end-to-end”
  10. The role of layer 4 Flow Control Error Recovery (acknowledgement)

    Identifying Applications (with Port Number) Segment (with Sequence Number) Reliable transmission 🤝 To achieve this, we need …
  11. TCP

  12. Connection The road of data that is exchanged between applications

    is called a connection. The communication path created by TCP is called a virtual communication path.
  13. Connection To communicate reliably and ef fi ciently To exchange

    con fi rmations in advance To make sure that others will con fi rm
  14. Connection To communicate reliably and ef fi ciently To exchange

    con fi rmations in advance To make sure that others will con fi rm This is called “Establishing a connection”
  15. TCP Header 4PVSDFQPSUOVNCFS  %FTUJOBUJPOQPSUOVNCFS  4FRVFODFOVNCFS  "DLOPXMFEHFNFOUOVNCFS 

    %BUBP ff TFU  3FTFSWF  $POUSPMCJUT  XJOEPX  $IFDLTVN  &NFSHFODZQPJOUFS  0QUJPOT ※ numbers are bits
  16. TCP Header 4PVSDFQPSUOVNCFS  %FTUJOBUJPOQPSUOVNCFS  4FRVFODFOVNCFS  "DLOPXMFEHFNFOUOVNCFS 

    %BUBP ff TFU  3FTFSWF  $POUSPMCJUT  XJOEPX  $IFDLTVN  &NFSHFODZQPJOUFS  0QUJPOT ※ numbers are bits We can remember it as 20 octets 👍
  17. TCP Header 4PVSDFQPSUOVNCFS  %FTUJOBUJPOQPSUOVNCFS  4FRVFODFOVNCFS  "DLOPXMFEHFNFOUOVNCFS 

    %BUBP ff TFU  3FTFSWF  $POUSPMCJUT  XJOEPX  $IFDLTVN  &NFSHFODZQPJOUFS  0QUJPOT ※ numbers are bits
  18. Control bits U R G A C K P S

    H R S T S Y N F I N
  19. MSS

  20. MSS, MTU MSS(Max Segment Size) MTU(Max Transmission Unit) Ethernet Header

    (14) IP Header (20) TCP Header (20) Payload (TCP Segment) (0ʙ1460) F C S (4) ※ numbers are octets MSS MTU
  21. Sequence Number MSS(Max Segment Size) MTU(Max Transmission Unit) Ethernet Header

    (14) IP Header (20) TCP Header (20) Payload (TCP Segment) (0~1460) F C S (4) ※ numbers are octets MSS MTU If the data is long, split it up and send it.
  22. Sequence Number MSS(Max Segment Size) MTU(Max Transmission Unit) Ethernet Header

    (14) IP Header (20) TCP Header (20) Payload (TCP Segment) (0ʙ1460) F C S (4) ※ numbers are octets MSS MTU The order of the data is important, so assign a number to it. This number is called Sequence Number.
  23. Well Known Port A B data NIC 2000 3000 4000

    Numbers 1 to 1023 are called well known ports. * These numbers cannot be used.
  24. Well Known Port number 1PSU /VNCFS "QQMJDBUJPO  '51EBUB 

    '51DPOUSPM  5&-/&5  4.51  %/4  %)$1TFSWFS  %)$1DMJFOU 1PSU /VNCFS "QQMJDBUJPO  5'51  )551  101  4/.1SFRVFTU  4/.1USBQ  )5514  3*1
  25. UDP

  26. broadcast(TCP) A N N N segment for each destination, acknowledgement

    TCP can't send without knowing the destination, so it can't broadcast 😫
  27. broadcast(UDP) A N N N Since there is no con

    fi rmation, it is assumed that high-speed