计算机网络实验3TCP实验(共15页).doc
《计算机网络实验3TCP实验(共15页).doc》由会员分享,可在线阅读,更多相关《计算机网络实验3TCP实验(共15页).doc(15页珍藏版)》请在淘文阁 - 分享文档赚钱的网站上搜索。
1、精选优质文档-倾情为你奉上计算机网络实验报告三TCP实验1. What is the IP address and TCP port number used by the client computer (source)that is transferring the file to gaia.cs.umass.edu? To answer this question, itsprobably easiest to select an HTTP message and explore the details of the TCPpacket used to carry this HTTP me
2、ssage, using the “details of the selected packetheader window” (refer to Figure 2 in the “Getting Started with Wireshark” Lab ifyoure uncertain about the Wireshark windows).答:client computer (source):IP address:192.168.1.102 TCP port number:11612. What is the IP address of gaia.cs.umass.edu? On what
3、 port number is it sendingand receiving TCP segments for this connection?答:the IP address of gaia.cs.umass.edu:IP address:128.119.245.12 port number:803. If you have been able to create your own trace, answer the following question:What is the IP address and TCP port number used by your client compu
4、ter(source) to transfer the file to gaia.cs.umass.edu?答:My client computer:IP address:10.2.136.304. What is the sequence number of the TCP SYN segment that is used to initiate theTCP connection between the client computer and gaia.cs.umass.edu? What is it in the segment that identifies the segment a
5、s a SYN segment?答:sequence number:0 ;syn 被设置为1说明是syn段。5. What is the sequence number of the SYNACK segment sent by gaia.cs.umass.eduto the client computer in reply to the SYN? What is the value of the ACKnowledgement field in the SYNACK segment? How did gaia.cs.umass.edu determine that value? What i
6、s it in the segment that identifies the segment as a SYNACK segment?答:The sequence number of the SYNACK segment sent by gaia.cs.umass.edu is:0; SYNACK segment 中 ACKnowledgement 的值为1;ACKnowledgement number的值为SYN消息中sequence number加上1所得;SYN 和Acknowledgement f都置为1说明这是一个SYNACK segment.6. What is the sequ
7、ence number of the TCP segment containing the HTTP POSTcommand? Note that in order to find the POST command, youll need to dig intothe packet content field at the bottom of the Wireshark window, looking for asegment with a “POST” within its DATA field.答:第四号报文段是包含 HTTP POST 命令的TCP segment.且报文段的序列号为1.
8、 7. Consider the TCP segment containing the HTTP POST as the first segment in theTCP connection. What are the sequence numbers of the first six segments in theTCP connection (including the segment containing the HTTP POST)?At what time was each segment sent? When was the ACK for each segment receive
9、d?Given the difference between when each TCP segment was sent, and when itsacknowledgement was received, what is the RTT value for each of the sixsegments? What is the EstimatedRTT value (see page 249 in text) after thereceipt of each ACK? Assume that the value of the EstimatedRTT is equal tothe mea
10、sured RTT for the first segment, and then is computed using theEstimatedRTT equation on page 249 for all subsequent segments.Note: Wireshark has a nice feature that allows you to plot the RTT foreach of the TCP segments sent. Select a TCP segment in the “listing ofcaptured packets” window that is be
11、ing sent from the client to thegaia.cs.umass.edu server. Then select: Statistics-TCP Stream Graph-Round Trip Time Graph.Segment 1Segment 2Segment 3Segment 4Segment 5Segment 6答:前6个报文段为No.4,5,7,8,10,11. 对应的ACK分别为 No.6,9,12,14,15,16. 前6个报文段截图如下:报文段的序列号为每个报文段的首字节加1,所以序列号为:Segment 1 sequence number:1Segm
12、ent 2 sequence number:566Segment 3 sequence number:2026Segment 4 sequence number:3486Segment 5 sequence number:4946Segment 6 sequence number:6406报文段的发送时间和相应ACK 的到达时间如下表::Send timeACK received timeRTT secondsSegment 10.0.0.02746Segment 20.0.0.Segment 30.0.0.Segment 40.0.0.11443Segment 50.0.0.13989Seg
13、ment 60.0.0.18964EstimatedRTT=0.875* EstimatedRTT+0.125*SampleRTT接受到报文段1之后的EstimatedRTT为:EstimatedRTT=RTT for segment 1=0.02746 second接受到报文段2之后的EstimatedRTT为:EstimatedRTT=0.875*0.02764+0.125*0.=0.0285 sencond接受到报文段3之后的EstimatedRTT为:EstimatedRTT=0.875*0.0285+0.125*0.=0.0337 second接受到报文段4之后的EstimatedR
14、TT为:EstimatedRTT=0.875*0.0337+0.125*0.11443=0.0438 second接受到报文段5之后的EstimatedRTT为:EstimatedRTT=0.875*0.0438+0.125*0.13989= 0.0558 second接受到报文段6之后的EstimatedRTT为:EstimatedRTT=0.875*0.0558+0.125*0.18964= 0.0725 second8. What is the length of each of the first six TCP segments?答:前6个段的长度分别为:565、1460、1460、
15、1460、1460、1460字节。9. What is the minimum amount of available buffer space advertised at the receivedfor the entire trace? Does the lack of receiver buffer space ever throttle thesender? 答:接收方通知给发送方的最低窗口大小为5840字节,即在服务器端传回的第一个ACK中的窗口大小。接收方的窗口大小没有抑制发送方的传输速率,因为窗口大小从5840逐步增加到62780,窗口大小始终大于发送方发送的分组的容量。10.
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 计算机网络 实验 TCP 15
限制150内