计算机网络实验3Wireshark Lab TCPWord文档下载推荐.docx

上传人:b****7 文档编号:21871109 上传时间:2023-02-01 格式:DOCX 页数:9 大小:171.82KB
下载 相关 举报
计算机网络实验3Wireshark Lab TCPWord文档下载推荐.docx_第1页
第1页 / 共9页
计算机网络实验3Wireshark Lab TCPWord文档下载推荐.docx_第2页
第2页 / 共9页
计算机网络实验3Wireshark Lab TCPWord文档下载推荐.docx_第3页
第3页 / 共9页
计算机网络实验3Wireshark Lab TCPWord文档下载推荐.docx_第4页
第4页 / 共9页
计算机网络实验3Wireshark Lab TCPWord文档下载推荐.docx_第5页
第5页 / 共9页
点击查看更多>>
下载资源
资源描述

计算机网络实验3Wireshark Lab TCPWord文档下载推荐.docx

《计算机网络实验3Wireshark Lab TCPWord文档下载推荐.docx》由会员分享,可在线阅读,更多相关《计算机网络实验3Wireshark Lab TCPWord文档下载推荐.docx(9页珍藏版)》请在冰豆网上搜索。

计算机网络实验3Wireshark Lab TCPWord文档下载推荐.docx

•First,filterthepacketsdisplayedintheWiresharkwindowbyentering“tcp”(lowercase,noquotes,anddon’tforgettopressreturnafterentering!

)intothedisplayfilterspecificationwindowtowardsthetopoftheWiresharkwindow.

QUESTIONS

1.WhatistheIPaddressandTCPportnumberusedbytheclientcomputer(source)thatistransferringthefiletogaia.cs.umass.edu?

Toanswerthisquestion,it’sprobablyeasiesttoselectanHTTPmessageandexplorethedetailsoftheTCPpacketusedtocarrythisHTTPmessage,usingthe“detailsoftheselectedpacketheaderwindow”.

TheIPaddressis192.168.1.102.TheTCPportnumberis1161.

2.WhatistheIPaddressofgaia.cs.umass.edu?

OnwhatportnumberisitsendingandreceivingTCPsegmentsforthisconnection?

TheIPaddressis128.119.245.12.TheTCPportnumberis80.

3.WhatistheIPaddressandTCPportnumberusedbyyourclientcomputer(source)totransferthefiletogaia.cs.umass.edu?

TheIPaddressis172.18.40.131.TheTCPportnumberis51458.

4.WhatisthesequencenumberoftheTCPSYNsegmentthatisusedtoinitiatetheTCPconnectionbetweentheclientcomputerandgaia.cs.umass.edu?

WhatisitinthesegmentthatidentifiesthesegmentasaSYNsegment?

ThesequencenumberoftheTCPSYNsegmentis0.TheSYNflagissetto1identifiesthesegmentasaSYNsegment.

5.WhatisthesequencenumberoftheSYNACKsegmentsentbygaia.cs.umass.edutotheclientcomputerinreplytotheSYN?

WhatisthevalueoftheACKnowledgementfieldintheSYNACKsegment?

Howdidgaia.cs.umass.edudeterminethatvalue?

WhatisitinthesegmentthatidentifiesthesegmentasaSYNACKsegment?

ThesequencenumberoftheSYNACKsegmentsentbygaia.cs.umass.eduis0.ThevalueoftheAcknowledgementfieldintheSYNACKsegmentis1.Thevalueisadding1totheinitialsequencenumberofSYNsegment.TheSYNflagandAcknowledgementflaginthesegmentaresetto1identifiesthesegmentasaSYNACKsegment.

6.WhatisthesequencenumberoftheTCPsegmentcontainingtheHTTPPOSTcommand?

NotethatinordertofindthePOSTcommand,you’llneedtodigintothepacketcontentfieldatthebottomoftheWiresharkwindow,lookingforasegmentwitha“POST”withinitsDATAfield.

ThesequencenumberoftheTCPsegmentcontainingtheHTTPPOSTcommandis1.

7.ConsidertheTCPsegmentcontainingtheHTTPPOSTasthefirstsegmentintheTCPconnection.WhatarethesequencenumbersofthefirstsixsegmentsintheTCPconnection(includingthesegmentcontainingtheHTTPPOST)?

Atwhattimewaseachsegmentsent?

WhenwastheACKforeachsegmentreceived?

GiventhedifferencebetweenwheneachTCPsegmentwassent,andwhenitsacknowledgementwasreceived,whatistheRTTvalueforeachofthesixsegments?

WhatistheEstimatedRTTvalue(seepage249intext)afterthereceiptofeachACK?

AssumethatthevalueoftheEstimatedRTTisequaltothemeasuredRTTforthefirstsegment,andtheniscomputedusingtheEstimatedRTTequationonpage249forallsubsequentsegments.

Note:

WiresharkhasanicefeaturethatallowsyoutoplottheRTTforeachoftheTCPsegmentssent.SelectaTCPsegmentinthe“listingofcapturedpackets”windowthatisbeingsentfromtheclienttothegaia.cs.umass.eduserver.Thenselect:

Statistics->

TCPStreamGraph->

RoundTripTimeGraph.

Wecangettable1:

Table1

Number

Time(s)

SeqNo

ACKNo

4

0.026477

1

 

5

0.041737

566

6

0.053937

7

0.054026

2026

8

0.05469

3486

9

0.077294

10

0.077405

4946

11

0.078157

6406

12

0.124085

13

0.124185

7866

14

0.169118

15

0.217299

16

0.267802

Then,wecangettable2formtable1.

Table2

NO

SendTime(s)

AckTime(s)

RTT(s)

0.02746

2

0.035557

3

0.070059

0.114428

0.139894

0.189645

EstimatedRTTafterthereceiptoftheACKofsegment1:

EstimatedRTT=0.02746s

EstimatedRTTafterthereceiptoftheACKofsegment2:

EstimatedRTT=0.875*0.02746+0.125*0.035557=0.0285s

EstimatedRTTafterthereceiptoftheACKofsegment3:

EstimatedRTT=0.875*0.0285+0.125*0.070059=0.0337s

EstimatedRTTafterthereceiptoftheACKofsegment4:

EstimatedRTT=0.875*0.0337+0.125*0.114428=0.0438s

EstimatedRTTafterthereceiptoftheACKofsegment5:

EstimatedRTT=0.875*0.0438+0.125*0.139894=0.0558s

EstimatedRTTafterthereceiptoftheACKofsegment6:

EstimatedRTT=0.875*0.0558+0.125*0.189645=0.0725s

8.WhatisthelengthofeachofthefirstsixTCPsegments?

AccordingtoTable1,wecangetthatthefirstTCPsegment’slengthis565bytes.Theother5is1460bytes.

9.Whatistheminimumamountofavailablebufferspaceadvertisedatthereceivedfortheentiretrace?

Doesthelackofreceiverbufferspaceeverthrottlethesender?

Theminimumamountofavailablebufferspaceadvertisedatthereceivedfortheentiretraceis5840bytes.Wecanseethatthesenderisneverthrottlebecauseofthelackofreceiverbufferspace.

10.Arethereanyretransmittedsegmentsinthetracefile?

Whatdidyoucheckfor(inthetrace)inordertoanswerthisquestion?

Therearen’tanyretransmittedsegmentsinthetracefile.WecanchecktheTime-Sequence-Graph(Stevens).Inthegraph,therearen’ttwodotsinthesamey-line.

11.HowmuchdatadoesthereceivertypicallyacknowledgeinanACK?

CanyouidentifycaseswherethereceiverisACKingeveryotherreceivedsegment(seeTable3.2onpage257inthetext).

Thereceivertypicallyacknowledge1460bytesinanACK.

80thisACKingeveryotherreceivedsegment.Itacks76thand77thtwosegment.

12.Whatisthethroughput(bytestransferredperunittime)fortheTCPconnection?

Explainhowyoucalculatedthisvalue.

Thelastsegment’ssequencenumberis164091.Sothetotaldatais164091-1=164090bytes.Thewholetimeis5.455830–0.026477=5.429353s.Sothethroughputis164090/5.429353=30.222KB/sec.

•SelectaTCPsegmentintheWireshark’s“listingofcaptured-packets”window.Thenselectthemenu:

TCPStreamGraph->

Time-Sequence-Graph(Stevens).Youshouldseeaplotthatlookssimilartothefollowingplot,whichwascreatedfromthecapturedpacketsinthepackettracetcp-etherealtrace-1inhttp:

//gaia.cs.umass.edu/wireshark-labs/wireshark-traces.zip

13.UsetheTime-Sequence-Graph(Stevens)plottingtooltoviewthesequencenumberversustimeplotofsegmentsbeingsentfromtheclienttothegaia.cs.umass.eduserver.CanyouidentifywhereTCP’sslowstartphasebeginsandends,andwherecongestionavoidancetakesover?

CommentonwaysinwhichthemeasureddatadiffersfromtheidealizedbehaviorofTCPthatwe’vestudiedinthetext.

TCPslowstartbeginsatthestartoftheconnection.SowhentheHTTPPOSTsegmentissentout,theslowstartbegins.ButifwewanttoidentifywhereTCP’sslowstartphaseendsandwherecongestionavoidancetakesover,wehavetoknowthevalueofcongestionwindowsizeofthissender.Sadly,wecan’tgetthevaluedirectly.Allwecandoistoestimateitbytheamountofdatawithoutacknowledgement.BecauseweknowthatLastByteSend–LastbyteAcked<

=min{CongWin,RcvWin}andtheRcvWinislargeenough.ButevenwegetthelowerboundoftheTCPwindowsize,itisstillhardtoidentifywhereTCP’sslowstartphaseendsandwherecongestionavoidancetakesover.Afterall,theamountofdatawithoutacknowledgementdoesn’tequaltothevalueofcongestionwindowsize.

TheidealizedbehaviorofTCPthatwe’vestudiedinthetext:

TCPsenderwilltrytosendmoredata.WhenitgetanACK,itwillsendmoredata.Butoncecongestionhappened,theCongwinwilldropdowntoahalf.Butinpractice,TCPbehavioralsodependsontheapplication.Forexample,insomewebapplications,thewebobject’ssizeisverysmall.Sobeforetheendofslowstart,thetransmissionisover.Thenwewillgetalongdelayandasmallthroughput.

14.Answereachoftwoquestionsaboveforthetracethatyouhavegatheredwhenyoutransferredafilefromyourcomputertogaia.cs.umass.edu.

=min{CongWin,RcvWin}andtheRcvWinislargeenough.ButevenwegetthelowerboundoftheTCPwindowsize,itisstillhardtoidentifywher

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 高等教育 > 艺术

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1