亚洲十八**毛片_亚洲综合影院_五月天精品一区二区三区_久久久噜噜噜久久中文字幕色伊伊 _欧美岛国在线观看_久久国产精品毛片_欧美va在线观看_成人黄网大全在线观看_日韩精品一区二区三区中文_亚洲一二三四区不卡

代寫ECE438 Communication Networks

時間:2024-02-16  來源:  作者: 我要糾錯



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 320), 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 

標簽:

掃一掃在手機打開當前頁
  • 上一篇:上海小學體育可強健體魄,提升學生堅強毅力
  • 下一篇:代寫ACP Assignment 1 Specificaons
  • 無相關信息
    昆明生活資訊

    昆明圖文信息
    蝴蝶泉(4A)-大理旅游
    蝴蝶泉(4A)-大理旅游
    油炸竹蟲
    油炸竹蟲
    酸筍煮魚(雞)
    酸筍煮魚(雞)
    竹筒飯
    竹筒飯
    香茅草烤魚
    香茅草烤魚
    檸檬烤魚
    檸檬烤魚
    昆明西山國家級風景名勝區
    昆明西山國家級風景名勝區
    昆明旅游索道攻略
    昆明旅游索道攻略
  • 短信驗證碼平臺 理財 WPS下載

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

    Copyright © 2025 kmw.cc Inc. All Rights Reserved. 昆明網 版權所有
    ICP備06013414號-3 公安備 42010502001045

    91精选在线观看| 欧美在线免费视屏| 亚洲jizzjizz妇女| 欧美hdxxxxx| 久久久久久美女精品| 91蜜桃在线观看| 精品伦理精品一区| 成人av影院在线观看| 外国成人激情视频| 中国av一区二区三区| 嫩草嫩草嫩草嫩草| 视频成人永久免费视频| 久久99精品久久久久婷婷| 欧美午夜女人视频在线| 午夜伦全在线观看| 日韩1区2区| 国产精品毛片高清在线完整版| 91大神影片| www.26天天久久天堂| 日韩精品一二三四| 欧美在线你懂的| 小早川怜子影音先锋在线观看| 欧美影视一区| 亚洲一区二区偷拍精品| 岛国在线大片| 国产精品99久久精品| 亚洲色图制服诱惑| 国产人成在线观看| 99精品视频在线| 综合久久久久久久| 国产大片在线免费观看| 日韩午夜电影网| 亚洲伊人色欲综合网| 91女主播在线观看| 亚洲乱码在线| 色又黄又爽网站www久久| gogo高清午夜人体在线| 午夜综合激情| 欧美日韩亚洲综合在线 | 日本电影欧美片| 日韩电影一区二区三区| 欧美二区乱c少妇| 性高爱久久久久久久久| 国产精品一区二区久激情瑜伽 | 国产亚洲高清视频| 日本福利一区二区| 浪潮色综合久久天堂| 久久成人免费网| 精品人伦一区二区色婷婷| 日韩激情欧美| 欧美国产综合一区二区| 2017亚洲天堂1024| 亚洲女人av| 精品少妇一区二区三区| 国产亚洲成av人片在线观黄桃| 国产精品久久久久久久久免费丝袜| 国产尤物视频在线| 亚洲综合不卡| 成人在色线视频在线观看免费大全| 国产乱人伦精品一区| 亚洲精品免费看| 国产亚洲成av人片在线观看| 国产成人综合在线播放| 深夜福利在线看| 日韩网站在线| 国产一级电影网| 欧美国产三级| 97超超碰碰| 999久久久亚洲| 正在播放亚洲一区| 久久99精品久久久久久园产越南| 亚洲成人免费在线| 99综合久久| 亚洲影院在线观看| av日韩久久| 香蕉乱码成人久久天堂爱免费| 国产麻豆一区| 国产精品传媒入口麻豆| 午夜伦理福利在线| 日本一区二区三区久久久久久久久不| www久久日com| www.视频一区| 欧美人体视频xxxxx| av亚洲精华国产精华| av文字幕在线观看| www.欧美色图| 欧美伦理免费在线| 国产三级三级三级精品8ⅰ区| 91美女主播在线视频| 久久久国产精品麻豆| 毛片电影在线| 国产精品黄色在线观看| 唐人社导航福利精品| 中文字幕中文在线不卡住| 全亚洲第一av番号网站| 亚洲欧美日韩久久| 日本亚洲视频| 在线精品视频小说1| 欧美一级精品| 成人网址大全| 亚洲欧美视频| 国产一级片在线| 丁香六月综合激情| 老司机深夜福利在线观看| 国产农村妇女精品| 四虎国产精品免费久久5151| 午夜精品免费在线观看| 亚洲警察之高压线| 精品国产乱码久久久久久牛牛| 欧美午夜一区| 免费在线超碰| 2020国产精品自拍| 免费成人毛片| 在线观看91视频| 国产精品久久久久蜜臀| 曰韩少妇与小伙激情| 美女任你摸久久 | 日韩视频二区| 亚洲天天影视| 中文字幕在线播放不卡一区| 日韩精品视频中文字幕| 欧美色中文字幕| 激情视频一区二区三区| 黄色网址在线播放| 日本一区二区三区久久久久久久久不| 国产精区一区二区| 日韩精品一区二区三区在线| 日韩和欧美一区二区| 1234区中文字幕在线观看| 亚洲一区二区欧美日韩| 久久一区二区三区喷水| 内衣办公室在线| 99热99精品| 精品福利网址导航| www.日本视频| av成人免费在线观看| **爰片久久毛片| 97碰碰碰免费公开在线视频| 国产98色在线|日韩| 婷婷久久免费视频| 精品成人a区在线观看| 国产在线精品一区二区三区不卡| 欧美黑人一区| 欧美一区二区精美| 国产精品中文字幕欧美| **国产精品| gay视频丨vk| 99re热这里只有精品免费视频| 欧美专区一区| 色视频www在线播放| 中文一区一区三区高中清不卡| 一区二区美女| 国产精品天堂| 欧美日韩视频免费播放| 一本色道久久综合一区| 日韩伦理精品| 日韩视频免费观看高清完整版在线观看| 免费高清在线视频一区·| 国精产品一区一区三区四川| 欧美日韩aaa| 国产成人在线视频免费播放| 成午夜精品一区二区三区软件| 最近中文字幕在线中文视频| 国产精品久久久久aaaa樱花| 亚洲自拍偷拍网| www中文字幕在线观看| 在线成人午夜影院| 成人听书哪个软件好| 窝窝社区一区二区| 在线观看av黄网站永久| 色激情天天射综合网| 捆绑紧缚一区二区三区视频| 精品一区二区三区中文字幕 | 亚洲桃色综合影院| 香蕉视频免费在线播放| 欧美无人高清视频在线观看| 国产精品香蕉一区二区三区| 亚洲+变态+欧美+另类+精品| 欧美私人网站| 7777精品伊人久久久大香线蕉| 91在线精品一区二区| 99精品视频在线| 91精品影视| 四虎影视2018在线播放alocalhost| 黄网站色欧美视频| 国产一区二区女| 久久影院一区| 日韩中文影院| 伪装者免费全集在线观看| 在线中文字幕一区二区| 91蝌蚪porny| 国产一区二区三区的电影 | 另类图片亚洲色图| 怡红院av一区二区三区| 国产精品一卡| 免费看成人哺乳视频网站| 亚洲天堂资源| 国产中文在线| 能看av的网址| 亚洲va在线va天堂|