TCP IP Illustrated

Homenet2runtcpiptcp ip illustratedtcpbulkhtm 20 of 24

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: fill the send window. bsdi % sock -i -s -P10 5555 We then start the client on the host sun telling it to use a send buffer of 8192 bytes (-S option) and perform six 1024-byte writes to the network (-n option). We also specify -U5 telling it to write 1 byte of data and enter urgent mode before writing the fifth buffer to the network. We specify the verbose flag to see the order of the writes: sun % sock -v -i -n6 -S8192 -U5 bsdi 5555 connected on 140.252.13.33.1305 to 140.252.13.35.5555 SO_SNDBUF = 8192 TCP_MAXSEG = 1024 wrote 1024 bytes wrote 1024 bytes wrote 1024 bytes wrote 1024 bytes wrote 1 byte of urgent data wrote 1024 bytes wrote 1024 bytes file:///D|/Documents%20and%20Settings/bigini/Docu...homenet2run/tcpip/tcp-ip-illustrated/tcp_bulk.htm (20 of 24) [12/09/2001 14.47.22] Chapter 20. TCP Bulk Data Flow We set the send buffer size to 8192 bytes, to let the sending application immediately write all of its data. Figure 20.14 shows the tcpdump output for this exchange. (We have removed the connection establishment.) Lines 1-5 show the sender filling the receiver's window with four 1024-byte segments. The sender is then stopped because the receiver's window is full. (The ACK on line 4 acknowledges data, but does not move the right edge of the window.) 1 0.0 0.073743 (0.0737) 0.096969 3 (0.0232) 0.157514 4 (0.0605) 0.164267 5 (0.0068) 0.167961 6 (0.0037) 0.171969 7 (0.0040) 0.176196 8 (0.0042) 0.180373 9 (0.0042) 0.180768 10 (0.0004) 0.367533 11 (0.1868) 0.368478 12 (0.0009) 9.829712 13 (9.4612) 9.831578 14 (0.0019) 9.833303 15 (0.0017) 9.835089 16 (0.0018) 2 sun.1305 > bsdi.5555: P 1:1025(1024) ack 1 win 4096 sun.1305 > bsdi.5555: P 1025:2049(1024) ack 1 win 4096 sun.1305 > bsdi.5555: P 2049:3073(1024) ack 1 win 4096 bsdi.5555 > sun.1305: . ack 3073 win 1024 sun.1305 > bsdi.5555: ack 1 win 4096 sun.1305 > bsdi.5555: 4098 sun.1305 > bsdi.5555: 4098 sun.1305 > bsdi.5555: 4098 sun.1305 > bsdi.5555: 4098 sun.1305 > bsdi.5555: 4098 P 3073:4097(102...
View Full Document

Ask a homework question - tutors are online