1 / 12

TCP and FTP

TCP and FTP. Internet Engineering. TCP (Transport Control Protocol). Protocol of transport layer Reliability ( guarantee packet arrives to destination ) Retransmission control Use for File ・ Mail ・ Web Transfer. FTP. HTTP. POP SMTP IMAP. FTP (File Transfer Protocol).

rkoehler
Download Presentation

TCP and FTP

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. TCPand FTP Internet Engineering

  2. TCP (Transport Control Protocol) • Protocol of transport layer • Reliability(guarantee packet arrives to destination) • Retransmission control • Use for File ・Mail・Web Transfer FTP HTTP POP SMTP IMAP FTP (File Transfer Protocol) POP (Post Office Protocol) SMTP (Simple Mail Transfer Protocol) IMAP (Internet Message Access Protocol) HTTP (Hyper Text Transfer Protocol)

  3. Hierarchy Architecture sender receiver data data addition analysis TCP header TCP header data data addition analysis IP header IP header data data addition analysis Ethernet Frame header Ethernet Frame header data data Send out revceiv Communication medium (LAN cable・Optical cable ・wireless)

  4. Sender port number Receiver port number (16bit) (16bit) Sequence number (32bit) Acknowledgement (ACK) number (32bit) Reserved Header length Window size ACK PSH PST FIN SYN URG (4bit) (6bit) (16bit) Check sum Urgent Pointer (16bit) (16bit) ( Options ) Data TCP Packet, TCP Header Ethernet Header IP Header TCP Header Data

  5. TCP Header • Sequence number • Indicate the position of sent data • Increased by the number of bytes whenever data sent (※ In ns-2, it is increased 1 when a data is sent ) • Acknowledge (ACK) number • Sequence number of data should be received next • This means that the receiver received all packets whose sequence numbers are less than the ACK • If the sequence number of next data equals the replied ACK number, normal communication is done (※ In ns-2, the ACK number is the maximum sequence number of data received cumulatively. It means that, if the sequence number of sent data equals ACK number, the communication has no fault)

  6. Reliability Insurance by ACK Sequence number 1 2 3 Sender Data Packet ACK Receiver Next is 2 Next is 3 Next is 4 ACK Number It is inefficient to acknowledge individually each segment received.  Send a number of segments at once ?

  7. Implement Window Control Window Sequence number 1 2 3 4 5 6 7 8 9 10 11 12 Sender Data packet ACK Receiver 2 Next is 3 4 5 6 7 8 9 10 ACK number No waiting ACK for sent segment but send a number of segment ※ Window size:size of segments can be sent without waiting for ACK

  8. Improvement speed by Window Control • Adjust transmission rate by changing window size Window Size = 1 segment Window Size = 4 segments Sequence number Sequence number 1 2 3 1 2 3 4 5 6 7 8 9 10 11 12 Sender Sender Data Packet Data Packet ACK ACK Receiver Receiver 2 2 Next is 3 4 5 6 7 8 9 10 Next is 3 4 ACK number ACK number

  9. Maximum Window Size Buffer Size of Receiver (rwnd: Receiver’s Window) = Maximum Window Size • Window Size = 4 segments Window Sequence Number 1 2 3 4 5 6 7 8 9 10 11 12 Sender Data Packet ACK Receiver 2 3 4 5 6 7 8 9 10 Next is ACK number

  10. Retransmission Control (Time Out) period RTO (Retransmission Time Out) 1 2 1 Sender Packet loss Receiver Next is 2 If the ACK for a packet isn’t responded within RTO, that packet is considered loss Retransmission

  11. Retransmission Control (duplicate ACK) If receive third duplicate ACKsRetransmission 1 2 3 4 5 6 7 8 2 9 10 11 送信側 受信側 2 2 2 2 2 2 2 9 10 11 12 Next is Three duplicate ACKs If receive three same ACKs then corresponding packet is considered loss retransmission

  12. Experiment 3 0 4 (Bottleneck link) Bandwidth: Bw 2 3 40Mbps 40Mbps FTP/TCP 5 1 FTP Download TCP Agent TCPSink Agent Network Router Network

More Related