- 1、本文档共14页,可阅读全部内容。
- 2、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 5、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 6、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 7、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 8、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
川大林锋计网次作业
Review Questions:
3. Consider a TCP connection between Host A and Host B. Suppose that the TCP segments traveling from Host A to Host B have source port number x and destination port number y. What are the source and destination port numbers for the segments traveling from Host B to Host A?
The source port number is y, the destination port number is x.
5. Why is it that voice and video traffic is often sent over TCP rather than UDP in today’s Internet. (Hint: The answer we are looking for has nothing to do with TCP’s congestion-control mechanism.)
因为UDP虽然传输速度快,不需要建立对等连接,但是容易丢包,而且数据包顺序容易混乱;TCP传输更稳定,文件没有丢失或者损失。
6. Is it possible for an application to enjoy reliable data transfer even when the application runs over UDP? If so, how?
是的,只需要在UDP的协议上添加验证的数据,比如给每个包传输时加个头,并且设置返回值,还有很多其他方法在此不一一列举了。
7. Suppose a process in Host C has a UDP socket with port number 6789. Suppose both Host A and Host B each sends a UDP segment to Host C with destination port number 6789. Will both of these segments be directed to the same socket at Host C? If so, how will the process at Host C know that these two segments originated from two different hosts?
正解,两个部分将针对同一接口。在套接字接口,对于每个收到的片段,操作系统将提供过程与IP地址确定各段的起源。
8. Suppose that a Web server runs in Host C on port 80. Suppose this Web server uses persistent connections, and is currently receiving requests from two different Hosts, A and B. Are all of the requests being sent through the same socket at Host C? If they are being passed through different sockets, do both of the sockets have port 80? Discuss and explain.
对于每个坚持的连接,web服务器会创建一个连接套接字,每个连接套接字由4个数组定义。当主机C收到一个请求的时候,它会检查数据报和段中的4个区域,以此决定用哪个区域来接收TCP段。因此,A和B传输的套接字是不一样的。每一个套接字的标识符都使用80端口作为目的的,但是不同的资源有不同的IP地址。和UDP不同,当传输层传输一个TCP段至应用层的时候,它并不需要明确指定IP地址,因为套接字标识符会帮它指定。
14. True or false?
(F) a. Host A is sending Host B a large file over a TCP connection. Assume Host B has no data to send Host A. Host B will not send acknowledgments to Host A because Host B cannot piggyback the acknowledgments
您可能关注的文档
最近下载
- 保健按摩师评分记录表.doc
- Celestron星特朗Deluxe 80EQ 天文望远镜用户手册(#81048).pdf
- 2024年低空经济产业发展研究报告.pdf VIP
- 老年人的安全用药与护理.pptx VIP
- 合作原则下浅析《良医》中的医患对话.docx
- 惠普HP Car Camcorder f650 seriesHP Car Camcorder f650x说明书用户手册.pdf
- 新建哈尔滨至佳木斯铁路职业病危害预评价.PDF
- 部编人教版小学四年级道德与法治下册全册教案.pdf VIP
- 2024赤峰市国赫运维新能源有限公司 公开招聘的笔试备考题库及答案解析.docx
- 临床用药的常见不良反应.pptx VIP
文档评论(0)