国产人妻人伦精品_欧美一区二区三区图_亚洲欧洲久久_日韩美女av在线免费观看

合肥生活安徽新聞合肥交通合肥房產(chǎn)生活服務(wù)合肥教育合肥招聘合肥旅游文化藝術(shù)合肥美食合肥地圖合肥社保合肥醫(yī)院企業(yè)服務(wù)合肥法律

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

時間:2024-02-16  來源:合肥網(wǎng)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 

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

    合肥圖文信息
    流體仿真外包多少錢_專業(yè)CFD分析代做_友商科技CAE仿真
    流體仿真外包多少錢_專業(yè)CFD分析代做_友商科
    CAE仿真分析代做公司 CFD流體仿真服務(wù) 管路流場仿真外包
    CAE仿真分析代做公司 CFD流體仿真服務(wù) 管路
    流體CFD仿真分析_代做咨詢服務(wù)_Fluent 仿真技術(shù)服務(wù)
    流體CFD仿真分析_代做咨詢服務(wù)_Fluent 仿真
    結(jié)構(gòu)仿真分析服務(wù)_CAE代做咨詢外包_剛強度疲勞振動
    結(jié)構(gòu)仿真分析服務(wù)_CAE代做咨詢外包_剛強度疲
    流體cfd仿真分析服務(wù) 7類仿真分析代做服務(wù)40個行業(yè)
    流體cfd仿真分析服務(wù) 7類仿真分析代做服務(wù)4
    超全面的拼多多電商運營技巧,多多開團助手,多多出評軟件徽y1698861
    超全面的拼多多電商運營技巧,多多開團助手
    CAE有限元仿真分析團隊,2026仿真代做咨詢服務(wù)平臺
    CAE有限元仿真分析團隊,2026仿真代做咨詢服
    釘釘簽到打卡位置修改神器,2026怎么修改定位在范圍內(nèi)
    釘釘簽到打卡位置修改神器,2026怎么修改定
  • 短信驗證碼 寵物飼養(yǎng) 十大衛(wèi)浴品牌排行 suno 豆包網(wǎng)頁版入口 wps 目錄網(wǎng) 排行網(wǎng)

    關(guān)于我們 | 打賞支持 | 廣告服務(wù) | 聯(lián)系我們 | 網(wǎng)站地圖 | 免責(zé)聲明 | 幫助中心 | 友情鏈接 |

    Copyright © 2025 hfw.cc Inc. All Rights Reserved. 合肥網(wǎng) 版權(quán)所有
    ICP備06013414號-3 公安備 42010502001045

    国产人妻人伦精品_欧美一区二区三区图_亚洲欧洲久久_日韩美女av在线免费观看
    亚洲欧美久久久久一区二区三区| 婷婷久久伊人| 日本亚洲精品在线观看| 久久久神马电影| 日本中文字幕久久看| 久久99九九| 欧美一区观看| 国产精品久久二区| 国产一区免费在线观看| 国产99久久久欧美黑人| 国产精品一二三在线观看| 欧美激情乱人伦一区| 国产欧美日韩精品丝袜高跟鞋 | 国产精品一区视频| 亚洲一区在线直播| 国产高清精品软男同| 青青青国产在线视频| 国产精品久久一| 丰满少妇久久久| 日本一区二区视频| 国产精品高潮呻吟久久av野狼| 成人av男人的天堂| 日韩区国产区| 欧美成在线观看| 91精品视频专区| 欧美一级视频在线播放| 国产成人三级视频| 国产日产欧美视频| 日日碰狠狠丁香久燥| 精品国产欧美一区二区五十路| 国产一区免费在线观看| 久久久久久com| wwwwww欧美| 亚洲aa中文字幕| 久久久人成影片一区二区三区| 国产欧美日韩专区发布| 欧美激情xxxx性bbbb| 久久精品中文字幕一区二区三区| 韩日精品中文字幕| 亚洲欧洲国产精品久久| 久久精品日韩| 国产女人精品视频| 日本久久高清视频| 毛片精品免费在线观看| 久久久久久久久久久免费精品| 国产亚洲欧美一区二区三区| 日韩av免费在线播放| 国产aaa一级片| 久久久久久久电影一区| 分分操这里只有精品| 欧美牲交a欧美牲交aⅴ免费真| 亚洲精品中字| 欧美精品情趣视频| 精品国产视频在线 | 国产精品手机视频| 91精品国产亚洲| 免费久久久久久| 日韩国产小视频| 亚洲字幕在线观看| 久久综合电影一区| 国产精品无码专区在线观看| 久久精品国产美女| 91精品国产综合久久香蕉最新版 | 欧洲日本亚洲国产区| 亚洲熟妇无码一区二区三区| 国产精品偷伦一区二区| 国产高清视频一区三区| 国产精选一区二区| 欧美精品久久96人妻无码| 色综合影院在线观看| 中文字幕精品一区日韩| 久久亚洲国产精品| 精品国产美女在线| 久久久久久亚洲精品不卡4k岛国| 91精品国产亚洲| 国产不卡在线观看| 欧美第一黄网| 午夜精品久久久久久久99黑人| 国产精品男人的天堂| 亚洲综合日韩中文字幕v在线| 久久久免费电影| 97激碰免费视频| 黄瓜视频免费观看在线观看www| 欧美一级免费看| 最新不卡av| 一区二区成人国产精品| 久久99亚洲热视| 欧美激情一区二区三级高清视频 | 国产精品三区在线| 久久久一本精品99久久精品| 国产精品嫩草影院一区二区| 国产女人18毛片| 国产一区视频在线| 国产又黄又猛视频| 精品一区日韩成人| 国内少妇毛片视频| 国产主播在线看| 国产视色精品亚洲一区二区| 国产日韩视频在线观看| 国产一区一区三区| 国产一区在线播放| 国产精品自产拍在线观| av不卡在线免费观看| 97久久精品人搡人人玩| 91精品一区二区三区四区| 91精品国产91久久久久青草| av无码精品一区二区三区| 国产精品夜色7777狼人| av色综合网| 97碰在线视频| 国产成年人在线观看| www.日本久久久久com.| 久久精品国产亚洲精品2020| 国产精品久久久久av| 国产精品第10页| 在线免费一区| 天天成人综合网| 欧美综合激情网| 加勒比海盗1在线观看免费国语版| 狠狠色综合网站久久久久久久| 国产淫片av片久久久久久| 成人国产精品色哟哟| 99久久综合狠狠综合久久止| 国产成人精品福利一区二区三区| 久久精品国产一区二区电影| 精品免费久久久久久久| 国产精品一区二区三区精品| 婷婷视频在线播放| 欧美一级免费看| 日本不卡二区| 欧美专区福利在线| 欧美在线播放cccc| 欧美性受xxxx黑人猛交| 欧美日韩在线不卡一区| 黄色高清视频网站| 国内精品久久久久久久| 国产在线久久久| 精品一区二区日本| 国产主播喷水一区二区| 国产精品一区久久久| 99在线免费观看视频| 久久久久福利视频| 国产精品嫩草影院久久久| 亚洲精品成人自拍| 欧美精品在欧美一区二区| 成人羞羞国产免费| 国内精品视频在线播放| 国产日韩一区二区在线观看| 国产精品香蕉国产| 久久这里精品国产99丫e6| 日本免费在线精品| 日本欧美精品久久久| 欧美韩国日本精品一区二区三区| 成人精品视频在线| www.日韩免费| 亚洲在线免费观看| 激情小说网站亚洲综合网| 91精品国产91久久久久青草| 国产精品美女www| 色999日韩自偷自拍美女| 国产伦精品一区二区三区免| 国产成人精品最新| 午夜精品视频网站| 国产欧美123| 久久天天躁狠狠躁夜夜躁| 亚洲国产一区二区精品视频 | 日韩在线观看你懂的| 一女被多男玩喷潮视频| 欧美综合激情| 久久人妻无码一区二区| 欧美激情网站在线观看| 欧美综合激情| 91九色视频在线| 久久91亚洲精品中文字幕奶水| 欧美在线免费视频| 91av免费看| 一区二区三区我不卡| 红桃一区二区三区| 久久久久久一区| 无码人妻精品一区二区蜜桃百度| 国产一区视频在线| 久久久精品日本| 欧美一区二区高清在线观看| av无码精品一区二区三区| 久久av红桃一区二区小说| 欧美视频在线观看视频| 久久国产主播精品| 午夜精品理论片| 国产精品露脸av在线| 精品国产乱码久久久久久郑州公司 | 久久久久久综合网天天| 国产精品久久国产精品99gif| 手机看片日韩国产| 国产免费观看久久黄| 日韩在线视频观看| 亚洲一区二区三区免费观看| 精品欧美一区免费观看α√| 91好吊色国产欧美日韩在线| 国产精品成熟老女人| 日韩一级免费在线观看|