99爱在线视频这里只有精品_窝窝午夜看片成人精品_日韩精品久久久毛片一区二区_亚洲一区二区久久

合肥生活安徽新聞合肥交通合肥房產生活服務合肥教育合肥招聘合肥旅游文化藝術合肥美食合肥地圖合肥社保合肥醫院企業服務合肥法律

代寫ECE438、代做C/C++編程語言

時間:2024-02-16  來源:合肥網hfw.cc  作者:hfw.cc 我要糾錯



ECE438: Communication Networks Fall 2023
Machine Problem 2
Abstract
This machine problem tests your understanding of reliable packet transfer. You will
use UDP to implement your own version of TCP. Your implementation must be able to
tolerate packet drops, allow other concurrent connections a fair chance, and must not
be overly nice to other connections (should not give up the entire bandwidth to other
connections).
1 Introduction
In this MP, you will implement a transport protocol with properties equivalent to TCP. You
have been provided with a file called sender main.c, which declares the function
void reliablyTransfer(char* hostname, unsigned short int hostUDPport, char*
filename, unsigned long long int bytesToTransfer).
This function should transfer the first bytesToTransfer bytes of filename to the receiver at
hostname: hostUDPport correctly and efficiently, even if the network drops or reorders
some of your packets. You also have receiver main.c, which declares
void reliablyReceive(unsigned short int myUDPport, char* destinationFile). This
function is reliablyTransfer’s counterpart, and should write what it receives to a file called
destinationFile.
2 What is expected in this MP?
Your job is to implement reliablyTransfer()and reliablyReceive() functions, with the
following requirements:
• The data written to disk by the receiver must be exactly what the sender was given.
• Two instances of your protocol competing with each other must converge to roughly fairly
sharing the link (same throughputs ±10%), within 100 RTTs. The two instances might
not be started at the exact same time.
• Your protocol must be somewhat TCP friendly: an instance of TCP competing with you
must get on average at least half as much throughput as your flow.
1
ECE438: Communication Networks Fall 2023
• An instance of your protocol competing with TCP must get on average at least half as
much throughput as the TCP flow. (Your protocol must not be overly nice.)
• All of the above should hold in the presence of any amount of dropped packets. All flows,
including the TCP flows, will see the same rate of drops. The network will not introduce
bit errors.
• Your protocol must, in steady state (averaged over 10 seconds), utilize at least 70% of
bandwidth when there is no competing traffic, and packets are not artificially dropped or
reordered.
• You cannot use TCP in any way. Use SOCK DGRAM (UDP), not SOCK STREAM.
The test environment has a 20Mbps connection, and a 20ms RTT.
3 VM Setup
You’ll need 2 VMs to test your client and server together. Unfortunately, VirtualBox’s default setup does not allow its VMs to talk to the host or each other. There is a simple fix,
but then that prevents them from talking to the internet. So, be sure you have done all of
your apt-get installs before doing the following! (To be sure, just run: sudo apt-get install
gcc make gdb valgrind iperf tcpdump ) Make sure the VMs are fully shut down. Go to
each of their Settings menus, and go to the Network section. Switch the Adapter Type from
NAT to “host-only”, and click ok. When you start them, you should be able to ssh to them
from the host, and it should be able to ping the other VM. You can use ifconfig to find out
the VMs’ IP addresses. If they both get the same address, sudo ifconfig eth0 newipaddr
will change it. (If you make the 2nd VM by cloning the first + choosing reinitialize MAC
address, that should give different addresses.)
New in MP2: You can use the same basic test environment described above. However, the
network performance will be ridiculously good (same goes for testing on localhost), so you’ll
need to limit it. The autograder uses tc . If your network interface inside the VM is eth0,
then run (from inside the VM) the following command:
sudo tc qdisc del dev eth0 root 2>/dev/null
to delete existing tc rules. Then use,
sudo tc qdisc add dev eth0 root handle 1:0 netem delay 20ms loss 5%
followed by
sudo tc qdisc add dev eth0 parent 1:1 handle 10: tbf rate 20Mbit burst 10mb
latency 1ms
2
ECE438: Communication Networks Fall 2023
will give you a 20Mbit, 20ms RTT link where every packet sent has a 5% chance to get
dropped. Simply omit the loss n% part to get a channel without artificial drops.
(You can run these commands just on the sender; running them on the receiver as well won’t
make much of a difference, although you’ll get a 20ms RTT if you don’t adjust the delay to
account for the fact that it gets applied twice.)
4 Autograder and submission
We use the autograder to grade your MPs, the submission process is simple.
First, open the autograder web page:
http://10.105.100.204.
This is a ZJUI-private IP. If your device is not accessing it through the campus network,
please use VPN to get a private IP
You will see two sections. MP Submission allows you to submit your assignment. You can
do this by entering your Student ID (start with **0), selecting which MP you are submitting,
selecting the file extension of your files and uploading your MP files. Note: only C/Cpp
files are accepted. When uploading files, add your files one by one, do not choose
multiple files to add at one time. Submission History section allows you to check
your submission history and grade. You can do this by entering your student ID.
Caution: The queue can only handle 200 submissions at one time, so remember to check
your submission status in Submission History after you submit your assignment. During
the hours leading up to the submission, the queue could be long. So it is advisable to get
your work done early.
5 Grade Breakdown
10%: You submitted your assignment correctly and it compiles correctly on the autograder
20%: Your receiver and sender can transfer small files correctly
20%: Your sender and receiver can transfer big files correctly
10%: Your sender and receiver can utilize empty link
20%: Your sender and receiver can transfer files correctly with package dropping
10%: Your sender and receiver are TCP friendly with no loss
10%: Your sender and receiver are TCP friendly with 1% loss
(We will use diff to compare the output file with the downloaded copy, and you should do
the same. If diff produces any output, you aren’t transferring the file correctly.)
3
ECE438: Communication Networks Fall 2023
6 Test Details
Your MP2 code will run entirely within Docker Containers and will be tested via Docker’s
private network.
The testing for MP2 is divided into 7 stages:
1. Compiling: We will compile the code for your sender and receiver. If the compilation is successful, you will receive the basic score for successful compilation; if it fails, you
will receive a score of 0, and subsequent tests will not be conducted.
2. Small file transfer test in a no-loss environment: We will conduct a small file
transfer test of your sender and receiver in a Docker network without any artificially induced
packet loss. First, we’ll launch your receiver code in one container and then your sender code
in another container. The time limit for this task is 5 seconds. If your code can complete the
transfer of the small file within 5 seconds and the output file successfully matches the source
file when compared using diff, you will receive the score for this phase. If this phase fails, no
further tests will be conducted.
3. Large file transfer test in a no-loss environment: We will test your code using
a large file of 18.4MB. The testing method is the same as for the small file, but you have a
time limit of 10 seconds. If the transfer is completed within 10 seconds and passes the diff
comparison, you earn this phase’s score. If this phase fails, subsequent tests will proceed
unaffected.
4. Channel bandwidth utilization test: We will transfer a file in a no-loss environment and place a stricter time constraint on its transfer than the previous tests to ensure
your code utilizes the channel bandwidth to its maximum potential. If the file transfer completes within the stipulated time and passes the diff comparison, you earn this phase’s score.
If this phase fails, subsequent tests will proceed unaffected.
5. File transfer test with 5% packet loss and 20ms delay: We will set the Docker
network to have a 5% packet loss and a 20ms delay and test whether your code can accurately
receive the file. We’ll use a file of several KBs for the test. If the file is transferred correctly
within 10 seconds and passes the diff comparison, you earn this phase’s score. If this phase
fails, subsequent tests will proceed unaffected.
6. TCP-friendly test: This test will be conducted within a 300Mbps channel. Using
iperf3, we will create a TCP stream and measure its baseline rate when it’s the only stream.
Then, we’ll run your code and iperf3 concurrently and test the rate the TCP stream can
achieve when sharing the channel. If the TCP stream manages to get more than 40% of its
baseline rate, the test is passed. If this phase fails, no further tests will be conducted.
7. TCP-friendly test with 1% loss: We will test within a 300Mbps channel with a
4
ECE438: Communication Networks Fall 2023
1% packet loss. Similar to the previous test, we will first record the baseline rate of only the
TCP stream. We’ll then test the rate the TCP stream can achieve when your code and the
TCP stream share the channel. If the TCP stream gets more than 40% of its baseline rate,
the test is passed.
Please note that due to the influence of the autograder’s network environment, there might
be a drop in speed during times of high submission volume. In such cases, you can resubmit
after a while. Each test takes about a minute and a half. We will retain the highest score
from all your submissions as your final score. The files you submit must be named either
“receiver main.cpp”, “sender main.cpp” or “receiver main.c”, “sender main.c”.
如有需要,請加QQ:99515681  郵箱:99515681@q.com   WX:codehelp 

掃一掃在手機打開當前頁
  • 上一篇:代發EI論文 EI論文轉證 EI源刊助發
  • 下一篇:代做Spatial Networks for Locations
  • 無相關信息
    合肥生活資訊

    合肥圖文信息
    急尋熱仿真分析?代做熱仿真服務+熱設計優化
    急尋熱仿真分析?代做熱仿真服務+熱設計優化
    出評 開團工具
    出評 開團工具
    挖掘機濾芯提升發動機性能
    挖掘機濾芯提升發動機性能
    海信羅馬假日洗衣機亮相AWE  復古美學與現代科技完美結合
    海信羅馬假日洗衣機亮相AWE 復古美學與現代
    合肥機場巴士4號線
    合肥機場巴士4號線
    合肥機場巴士3號線
    合肥機場巴士3號線
    合肥機場巴士2號線
    合肥機場巴士2號線
    合肥機場巴士1號線
    合肥機場巴士1號線
  • 短信驗證碼 豆包 幣安下載 AI生圖 目錄網

    關于我們 | 打賞支持 | 廣告服務 | 聯系我們 | 網站地圖 | 免責聲明 | 幫助中心 | 友情鏈接 |

    Copyright © 2025 hfw.cc Inc. All Rights Reserved. 合肥網 版權所有
    ICP備06013414號-3 公安備 42010502001045

    99爱在线视频这里只有精品_窝窝午夜看片成人精品_日韩精品久久久毛片一区二区_亚洲一区二区久久

          9000px;">

                成人激情免费电影网址| 精品亚洲欧美一区| 久久久电影一区二区三区| 日韩欧美一区二区免费| 亚洲男同性视频| 国产真实乱偷精品视频免| 在线电影院国产精品| 国产精品久久久久永久免费观看| 免费亚洲电影在线| 91精品国产高清一区二区三区蜜臀| 亚洲免费色视频| 色婷婷久久久亚洲一区二区三区 | 91久久线看在观草草青青| 欧美优质美女网站| 午夜精品久久久久久久蜜桃app | 国产三级一区二区| 国产精品成人在线观看| 成人av在线播放网址| 综合久久久久久| 成人免费一区二区三区视频| 91麻豆精品国产91久久久资源速度 | 色婷婷激情综合| 亚洲激情五月婷婷| 欧美嫩在线观看| 成人免费看黄yyy456| 日韩高清一区在线| 亚洲欧美日韩成人高清在线一区| 在线精品国精品国产尤物884a| 日本成人在线视频网站| 亚洲欧美视频在线观看| 欧美激情一区二区三区不卡| 正在播放一区二区| 暴力调教一区二区三区| 美腿丝袜亚洲三区| 日韩在线播放一区二区| 日韩精品最新网址| 丁香激情综合五月| 国产伦精一区二区三区| 日韩主播视频在线| 五月天一区二区| 亚洲成a天堂v人片| 无码av免费一区二区三区试看| 一区视频在线播放| 中文字幕中文字幕一区二区| 国产欧美精品在线观看| 欧美mv和日韩mv的网站| 欧美成人艳星乳罩| 久久亚洲精华国产精华液 | 欧美日韩午夜在线| 欧美日韩国产三级| 欧美性受极品xxxx喷水| 欧美羞羞免费网站| 欧美日韩激情一区二区| 欧美片网站yy| 国产校园另类小说区| 国产日产欧产精品推荐色 | 一区二区成人在线| 日韩一区二区精品在线观看| 亚洲男人的天堂一区二区 | 成人涩涩免费视频| 97久久人人超碰| 欧美日韩久久久| 久久久久久久久久久久久夜| 亚洲另类在线一区| 久久99精品久久久久| 91丨九色丨黑人外教| 欧美视频一区二区三区在线观看 | 国产成人精品亚洲777人妖| 成人综合在线视频| 欧美一级片在线看| 亚洲免费看黄网站| 粉嫩欧美一区二区三区高清影视| 欧美在线综合视频| 亚洲欧美国产毛片在线| 成人激情校园春色| 国产日韩欧美精品一区| 喷水一区二区三区| 日韩视频一区二区在线观看| 夜色激情一区二区| 成人av在线播放网址| 欧美调教femdomvk| 国产自产高清不卡| 欧美图片一区二区三区| 洋洋av久久久久久久一区| 91视频www| 亚洲图片自拍偷拍| 欧美一区二区精美| 黄色日韩三级电影| 国产精品全国免费观看高清 | 成人国产精品免费| 亚洲欧美激情视频在线观看一区二区三区 | 日韩一区二区三区免费看| 麻豆视频一区二区| 久久久www免费人成精品| 国产不卡在线播放| 国产精品乱码妇女bbbb| 91网址在线看| 美女免费视频一区二区| 欧美激情中文字幕| 欧美三级资源在线| 国产乱人伦精品一区二区在线观看| 中文字幕乱码一区二区免费| 91视视频在线直接观看在线看网页在线看| 亚洲午夜一区二区三区| 成人国产亚洲欧美成人综合网| 国产91精品久久久久久久网曝门| 久久久精品黄色| 懂色av中文字幕一区二区三区| 亚洲三级小视频| 精品伦理精品一区| 不卡的av在线播放| 日韩电影一区二区三区四区| 精品成人在线观看| 欧亚洲嫩模精品一区三区| 性欧美大战久久久久久久久| 精品久久人人做人人爱| 日本乱人伦aⅴ精品| 国产成a人无v码亚洲福利| 亚洲精品你懂的| 亚洲精品一区二区在线观看| 欧美三区在线观看| 极品美女销魂一区二区三区免费| 欧美日韩视频在线第一区| 另类综合日韩欧美亚洲| 日韩精品一区二区三区蜜臀| 91免费国产在线| 日韩精品免费视频人成| 欧美成人猛片aaaaaaa| 欧美精品三级在线观看| 欧美人伦禁忌dvd放荡欲情| 在线观看成人免费视频| 69久久夜色精品国产69蝌蚪网| 欧美视频中文字幕| 56国语精品自产拍在线观看| 99视频在线观看一区三区| 成a人片国产精品| a4yy欧美一区二区三区| 五月综合激情婷婷六月色窝| 亚洲成人av中文| 亚洲精品国产一区二区精华液| 国产精品美日韩| 亚洲第一福利一区| 蜜桃视频在线观看一区二区| 极品少妇xxxx精品少妇| 91片黄在线观看| 日韩精品中文字幕一区| 欧美极品另类videosde| 亚洲中国最大av网站| 久久精品国产网站| 在线观看三级视频欧美| www.亚洲色图| 日韩欧美一区二区久久婷婷| 日本一区二区三区国色天香| 亚洲一区二区三区四区五区黄| 麻豆精品一区二区综合av| 99在线精品免费| 国产视频一区二区在线| 久久精品国产亚洲5555| 自拍偷拍国产精品| 91一区在线观看| 99久久er热在这里只有精品15| 日韩欧美的一区| 有码一区二区三区| 在线亚洲一区观看| 亚洲色图在线播放| 91污在线观看| 一区二区三区在线视频播放 | 午夜精品久久久| 欧美午夜宅男影院| 亚洲一区视频在线| 欧美日韩日日摸| 艳妇臀荡乳欲伦亚洲一区| 在线视频欧美精品| 热久久一区二区| 欧美精品123区| 美国毛片一区二区| 久久久久99精品国产片| 国产69精品久久久久777| 久久久一区二区| 成人小视频在线| 亚洲综合av网| 精品剧情v国产在线观看在线| 韩国精品一区二区| 中文字幕日本乱码精品影院| 91免费视频大全| 久久国产精品99精品国产| 中文在线一区二区| 成人免费视频视频| 亚洲精品ww久久久久久p站| 欧美在线免费播放| 成人一级片在线观看| 日韩av一二三| 日韩一区在线免费观看| 日韩午夜精品电影| 色噜噜偷拍精品综合在线| 亚洲成人动漫精品| 洋洋成人永久网站入口| 青青草精品视频| 日本中文字幕一区二区有限公司| 日本不卡的三区四区五区|