tcp ip 协议族15章new

tcp ip 协议族15章new

ID:34651927

大小:231.03 KB

页数:6页

时间:2019-03-08

tcp ip 协议族15章new_第1页
tcp ip 协议族15章new_第2页
tcp ip 协议族15章new_第3页
tcp ip 协议族15章new_第4页
tcp ip 协议族15章new_第5页
资源描述:

《tcp ip 协议族15章new》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库

1、CHAPTER15TransmissionControlProtocol(TCP)Exercises1.SeeTable15.E1.Table15.E1SolutiontoExercise1FieldsUDPTCPPurposeSourcePortNumber√√TodefinethesourceportnumberDestinationPortNumber√√TodefinethedestinationportnumberChecksum√√ForerrorcontrolTotalLength√Itis

2、notactuallyneededeveninUDPSequenceNumber√ForflowcontrolAcknowledgmentNumber√ForflowcontrolHeaderLength√TodefinevariableheaderlengthinTCPControlBits√TodefinedifferenttypeofsegmentsUrgentPointer√TodefinetheendofurgentdataOptionsAndPadding√TomakeTCPtousediff

3、erentoptionsNotethattheonlyfieldthatexistsinUDP,butismissinginTCP,isthetotallengthfield.ThedesignerofTCPdidnotfeelthatthisfieldisneededbecausethesizeoftheTCPsegmentcanbedeterminedfromthesizeoftheIPdatagramthatcarriesit.3.Theportisnotlistedinthetransmissio

4、ncontrolblock,whichmeansnoprocessisrunningassociatedtothisport.5.a.ThemaximumsizeoftheTCPheaderis60bytes(20bytesofheaderandamaximum40bytesofoptions).b.TheminimumsizeoftheTCPheaderis20bytes.1SECTION27.SeeFigure15.E7.Figure15.E7SolutiontoExercise75200120or2

5、114532785751501100020000040bytesofdata9.a.Thesourceportnumberis0532inhexand1330indecimal.b.Thedestinationportnumberis0017inhexand23indecimal.c.Thesequencenumberis00000001inhexand1indecimal.d.Theacknowledgmentnumberis00000000inhexand0indecimal.e.TheHLEN=5.

6、Theheaderis5×4=20byteslong.f.Thecontrolfieldis002inhex.ThisindicatesaSYNsegmentusedforconnec-tionestablishment.g.Thewindowsizefieldis07FFinhexand2047indecimal.Thewindowsizeis2047bytes.11.Everysecondthecounterisincrementedby64,000×2=128,000.Thesequencenumb

7、erfieldis32bitslongandcanholdonly232−1.Soittakes(232−1)/(128,000)or33,554secondstowraparound.13.Thewindowsizeisthesmaller(3000,5000)=3000.Since2000bytesisalreadysent,only3000−2000=1000morebytescanbesent.15.Thedatasectionisonly16bytes.TheTCPheaderis20bytes

8、.IPheaderis20bytes.Theheaderandtraileris19bytes(withoutpreamble).Wecancalculatetheefficiencyateachlayer:a.AtTCPlevel:(16)/(16+20)=0.444→44.4%b.AtIPlevel:(16)/(16+20+20)=28.57→28.57%c.Atdatalinklevel:(16)/(16+20+20+1

当前文档最多预览五页,下载文档查看全文

此文档下载收益归作者所有

当前文档最多预览五页,下载文档查看全文
温馨提示:
1. 部分包含数学公式或PPT动画的文件,查看预览时可能会显示错乱或异常,文件下载后无此问题,请放心下载。
2. 本文档由用户上传,版权归属用户,天天文库负责整理代发布。如果您对本文档版权有争议请及时联系客服。
3. 下载前请仔细阅读文档内容,确认文档内容符合您的需求后进行下载,若出现内容与标题不符可向本站投诉处理。
4. 下载文档时可能由于网络波动等原因无法下载或下载错误,付费完成后未能成功下载的用户请联系客服处理。