hanoi university of technology

Upload: nguyen-duong

Post on 30-May-2018

222 views

Category:

Documents


0 download

TRANSCRIPT

  • 8/14/2019 Hanoi University of Technology

    1/13

    1

    Hanoi University of Technology Faculty of Electronics and Telecommunications

    8/2009 TCP/IP

    Hanoi University of Technology Faculty of Electronics and Telecommunications

    8/2009 TCP/IP

  • 8/14/2019 Hanoi University of Technology

    2/13

    2

    Hanoi University of Technology Faculty of Electronics and Telecommunications

    8/2009 TCP/IP

    Hanoi University of Technology Faculty of Electronics and Telecommunications

    8/2009 TCP/IP

  • 8/14/2019 Hanoi University of Technology

    3/13

    3

    Hanoi University of Technology Faculty of Electronics and Telecommunications

    8/2009 TCP/IP

    Reset function

    - Chuyn v trng thi Listen nuang trng thi SYN-RECEIVED- Chuyn v trng thi CLOSE vi cctrng hp khc

    Hanoi University of Technology Faculty of Electronics and Telecommunications

    8/2009 TCP/IP

    Transmission Control Block

  • 8/14/2019 Hanoi University of Technology

    4/13

    4

    Hanoi University of Technology Faculty of Electronics and Telecommunications

    8/2009 TCP/IP

    - Khi to gi tr SYN (ISN Initial Sequence Number): tng 1 n vsau 4 microsecond

    - MSS (Maximum Segment Size): gi khi khi to kt ni; mc nh= 536

    Hanoi University of Technology Faculty of Electronics and Telecommunications

    8/2009 TCP/IP

    MSL=120s

  • 8/14/2019 Hanoi University of Technology

    5/13

    5

    Hanoi University of Technology Faculty of Electronics and Telecommunications

    8/2009 TCP/IP

    Hanoi University of Technology Faculty of Electronics and Telecommunications

    8/2009 TCP/IP

    Qun l thng tin ti Sender/Receiver

    -Ca s gi: 4 nhm

    - Ca s nhn: 3 nhm

    - Con tr gi (sender pointer)

  • 8/14/2019 Hanoi University of Technology

    6/13

    6

    Hanoi University of Technology Faculty of Electronics and Telecommunications

    8/2009 TCP/IP

    -Con tr nhn (receiver pointer)

    - SND.UNA= SQ

    - RCV.NXT=ACK

    - SND.WND=REV.WND=Window

    Hanoi University of Technology Faculty of Electronics and Telecommunications

    8/2009 TCP/IP

    -Client:

    -SQ=0;

    - Receive Windows size = 200

    - Server:

    -SQ=240

    -Receive Windows size = 360

    - MSS: 536

  • 8/14/2019 Hanoi University of Technology

    7/13

    7

    Hanoi University of Technology Faculty of Electronics and Telecommunications

    8/2009 TCP/IP

    -Client gi yu cu ti server (140 byte)

    -Pha client cha c data gi thm. Server nhn c yu cu v gi 80byte ti client

    - Client nhn c 80 byte chnh xc v ACK cho server. Server c nhu cugi 280 byte ti client. Tuy nhin n ch c php gi 120 byte

    Hanoi University of Technology Faculty of Electronics and Telecommunications

    8/2009 TCP/IP

    -Client nhn d liu t server v ACK. Serverc lp trnh khng gi dliu nh hn 100 byte.

    - Server nhn c ACK.

    - Server gi 160 byte cn li.

  • 8/14/2019 Hanoi University of Technology

    8/13

    8

    Hanoi University of Technology Faculty of Electronics and Telecommunications

    8/2009 TCP/IP

    -Client nhn d liu t server v ACK

    - Server nhn ACK v kt thc truyn

    Hanoi University of Technology Faculty of Electronics and Telecommunications

    8/2009 TCP/IP

  • 8/14/2019 Hanoi University of Technology

    9/13

    9

    Hanoi University of Technology Faculty of Electronics and Telecommunications

    8/2009 TCP/IP

    - Retransmission Queue

    - Resend segment

    - Retransmit only time out segment

    - Retransmit all outstanding segment

    -SACK

    -Timer? Adaptive retransmission

    -New RTT=( *old RTT+ ((1- ) Newest RTT Measurement)

    -Karn Algorithm

    Hanoi University of Technology Faculty of Electronics and Telecommunications

    8/2009 TCP/IP

  • 8/14/2019 Hanoi University of Technology

    10/13

    10

    Hanoi University of Technology Faculty of Electronics and Telecommunications

    8/2009 TCP/IP

    Hanoi University of Technology Faculty of Electronics and Telecommunications

    8/2009 TCP/IP

    - Window size v Flow Control

    - Gim ca s gim tc truyn

    - Gim ca s dng truyn d liu mi

    - ng ca s gi

  • 8/14/2019 Hanoi University of Technology

    11/13

    11

    Hanoi University of Technology Faculty of Electronics and Telecommunications

    8/2009 TCP/IP

    Hanoi University of Technology Faculty of Electronics and Telecommunications

    8/2009 TCP/IP

    - TCP window management

    -Shrinking TCP Window

    - Gi bn tin thm d (probe segment) khi ca s ng

  • 8/14/2019 Hanoi University of Technology

    12/13

    12

    Hanoi University of Technology Faculty of Electronics and Telecommunications

    8/2009 TCP/IP

    Hanoi University of Technology Faculty of Electronics and Telecommunications

    8/2009 TCP/IP

    - TCP Silly window syndrome - SWS

    -Khc phc:

    -Receiver SWS avoidance

    -Sender SWS avoidance (Nagles Algorithm)

    -Khng c bn tin cha c ACK hoc ng dng yu cu-> truynngay

    - Cn bn tin cha c ACK -> chtruyn khi nhn c ACKhoc b m pht =MSS

  • 8/14/2019 Hanoi University of Technology

    13/13

    13

    Hanoi University of Technology Faculty of Electronics and Telecommunications

    8/2009 TCP/IP

    Hanoi University of Technology Faculty of Electronics and Telecommunications

    8/2009 TCP/IP

    - TCP Congestion

    - Slow Start

    - Congestion Avoidance

    - Fast Retransmit

    - Fast Recovery