没有合适的资源?快使用搜索试试~ 我知道了~
首页CS144 Lab 4:TCP全栈实验指南(PDF版)
CS144 Lab 4:TCP全栈实验指南(PDF版)
需积分: 19 3 下载量 130 浏览量
更新于2024-07-06
收藏 319KB PDF 举报
本篇文档是CS144《计算机网络入门》课程的第四个实验室指导书,针对秋季2021年的学习,主要聚焦于TCP协议的全面理解与实现。实验名称为"Thesummit",目的是让学生深入了解TCP(Transmission Control Protocol)的工作原理并在实践中掌握其核心功能。截止日期为2021年11月12日星期五下午5点,逾期提交的最后期限为11月14日晚上11:59,但请注意这是收到反馈的最后一天,逾期作业将按照2/3的成绩计入平时成绩。 在进行实验时,有一个明确的合作政策:所有编程任务必须由学生独立完成,不允许抄袭他人的代码,包括但不限于Stack Overflow、GitHub等网站。如果参考了网络上的示例,需在提交的源代码中注明引用的URL。尽管鼓励学生之间的讨论,但禁止直接查看他人的代码或使用历年来的解决方案。在交流过程中,如果与他人讨论了问题,请务必在提交的源代码中注明对方的名字,以尊重学术诚信。 此外,文档还强调了在在线平台Ed上提问是被鼓励的,但请避免直接抄袭或寻求完整的解决方案。这个实验不仅锻炼了学生的编程技能,还培养了他们理解和调试TCP协议的能力,以及独立解决问题和遵循学术规范的习惯。通过本实验,学生将深化对TCP三次握手、拥塞控制和流量控制等关键概念的理解,为后续的网络编程打下坚实基础。
资源详情
资源推荐
CS144: Introduction to Computer Networking Fall 2021
2 Getting started
Your implementation of a
TCPConnection
will use the same Sponge library that you used
in Labs 0–3, with additional classes and tests. We’re giving you support code that reads
and writes TCP segments into the payloads of user and Internet datagrams. We’re also
giving you a class (
CS144TCPSocket
) that wraps your
TCPConnection
and makes it behave
like a normal stream socket, just like the
TCPSocket
you used to implement
webget
back
in Lab 0. By the end of this lab, you will slightly modify your
webget
to use your TCP
implementation—a CS144TCPSocket instead of a TCPSocket. To get started:
1.
Make sure you have committed all your solutions to Lab 3. Please don’t modify any
files outside the top level of the
libsponge
directory, or
webget.cc
. You may have
trouble merging the Lab 4 starter code otherwise.
2.
While inside the repository for the lab assignments, run
git fetch
to retrieve the
most recent version of the lab assignments.
3.
Download the starter code for Lab 3 by running
git merge origin/lab4-startercode
.
4.
Within your
build
directory, compile the source code:
make
(you can run, e.g.,
make -j4 to use four processors when compiling).
5.
Outside the
build
directory, open and start editing the
writeups/lab4.md
file. This
is the template for your lab writeup and will be included in your submission.
3 Lab 4: The TCP connection
This week, you’ll finish building a working TCP implementation. You’ve already done most
of the work to get there: you’ve implemented the sender and the receiver. Your job this
week is to “wire them up” together into one object (a
TCPConnection
) and handle some
housekeeping tasks that are global to the connection.
Recall: TCP reliably conveys a pair of flow-controlled byte streams, one in each direction.
Two parties participate in the TCP connection, and each party acts as both “sender” (of its
own outbound byte-stream) and “receiver” (of an inbound byte-stream) at the same time:
TCPConnection
TCPConnection
TCPSender
TCPReceiver TCPSender
TCPReceiver
Ⓐ Ⓑ
“Hello there!”
“General Kenobi!”
剩余14页未读,继续阅读
bulangman277
- 粉丝: 12
- 资源: 8
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 新型矿用本安直流稳压电源设计:双重保护电路
- 煤矿掘进工作面安全因素研究:结构方程模型
- 利用同位素位移探测原子内部新型力
- 钻锚机钻臂动力学仿真分析与优化
- 钻孔成像技术在巷道松动圈检测与支护设计中的应用
- 极化与非极化ep碰撞中J/ψ的Sivers与cos2φ效应:理论分析与COMPASS验证
- 新疆矿区1200m深孔钻探关键技术与实践
- 建筑行业事故预防:综合动态事故致因理论的应用
- 北斗卫星监测系统在电网塔形实时监控中的应用
- 煤层气羽状水平井数值模拟:交替隐式算法的应用
- 开放字符串T对偶与双空间坐标变换
- 煤矿瓦斯抽采半径测定新方法——瓦斯储量法
- 大倾角大采高工作面设备稳定与安全控制关键技术
- 超标违规背景下的热波动影响分析
- 中国煤矿选煤设计进展与挑战:历史、现状与未来发展
- 反演技术与RBF神经网络在移动机器人控制中的应用
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功