Computer NetworksHomework 1Graded out of 36 pointsIn this homework, we will analyze the relationship between traffic load, delay, throughput, andpacket loss. We will utilize mininet, a network emulation tool to create a network topology andiperf to generate traffic on that network topology.1. Network topologymininet will emulate the following network topology:The hosts h1 through h6 are connected to the packet switches s1 and s2 as shown. Allcommunications links have a transmission rate of 1 Gbps, except for the s1-s2 link., which has arate to 0.5 Gbps.2. Traffic ScenariosYou will use a tool called “iperf” to generate traffic flows. Each iperf flow has a client (sender ofthe traffic) and a server (recipient of the traffic). Note that “client” and “server” in the iperfterminology are distinct from the client and server in a client-server application architecture, aslearned in class. You will generate two concurrent flows:Flow F1: Client is h1, server is h2Flow F3: Client is h3, server is h4The traffic intensity (called “bandwidth” in iperf) of each flow is a settable parameter in iperf,expressed in Mbps. The traffic intensity is defined as the rate at which the client is sending data,which is not necessarily the same as the rate at which the server is receiving data. You will runperformance tests for various traffic intensity values and s1’s buffer size values. 3. What to measureThe flows F1 and F3 share the same buffer at s1, and that buffer may be congested if thecombined incoming traffic intensity of F1 and F3 exceeds the rate of link s1-s2. We want tomeasure the queuing delay at that buffer, and the percentage of packets lost as a result of thatbuffer being full.To perform the measurements, we will use “Ping” between h5 and h6. Ping is a networkingutility used to test the reachability of a host on an Internet Protocol (IP) network. The Pingprotocol allows a client machine to send a packet of data to a remote server machine, and havethe remote server return the data back to the client unchanged (an action referred to as echoing).Among other uses, the Ping protocol allows a client to determine round-trip times (RTT) to theserver. The Ping client also measures packet losses. A packet is considered lost if no echo isreceived within a certain time. Ping’s contribution to the traffic load is negligible. h5 and h6 willbe the Ping client and Ping server respectively. Note that “client” and “server” in the Pingterminology are distinct from the client and server in a client-server application architecture, aslearned in class.Another metric is the throughput of F1 and F3. iperf will generate reports on the throughput(referred to as “bandwidth” in the report) seen at the h2 and h4 servers (how many bits reachedthe server per second).4. StepsIntall and set up mininet, puTTY (refer to “mininet-info” posted under “General info and tools”for details).If you are not familiar with mininet, you may want to try some examples in the mininetwalkthrough: http://mininet.org/walkthrough/, but this is not requiredStart the VM Virtual Box VM and login to mininet. It is recommended to ssh into mininet.User name is mininet, password is mininetCopy the provided Python script “topo1.py” into your mininet VM. To do that, first copy the filesinto your local machine, then transfer from your local machine to the mininet VM, by followingthe instructions in “mininet-info”.Once logged in to your mininet VM, follow the step by step instructions in “mininet-info” to installthe “progress” module into the mininet VM, then run the script by typing “sudo –E pythontopo1.py”. The “progress” module will allow the script to display a progress bar when it isrunning. It is not critical to have the “progress” module, you can skip installing it if you havetrouble. Without the progress bar, you just need to patiently wait for the script to complete.The script will generate the network topology and automatically run the performance tests forconfiguration x, for x = 0 to 5.Each performance test does 代寫Computer Networks作業(yè)、Python編程設(shè)計(jì)作業(yè)調(diào)試及汉、Python語言作業(yè)代做 代做R語言編程|代做the following (the size of s1’s buffer is a parameter set to 500, 500,500, 5000, 5000 packets for x = 0, 1, 2, 3, 4, 5 respectively)? Setup h2 as an iperf server. h2 is now ready to receive iperf traffic from a client? Setup h4 as an iperf server. h4 is now ready to receive iperf traffic from a client? Start the iperf traffic for flow F1. The traffic is sent by client h1 towards server h2,for a duration of 60 seconds. The traffic intensity is a parameter, set to 0 Mbps,100 Mbps, 200 Mbps, 300 Mbps, 200 Mbps and 300 Mbps for x =0, 1, 2, 3, 4, 5respectively. The output is redirected to the file i1_x.out? Start the iperf traffic for flow F3. The traffic is sent by client h3 towards server h4,for a duration of 60 seconds. The traffic intensity is a parameter, set to 0 Mbps,100 Mbps, 200 Mbps, 300 Mbps, 200 Mbps and 300 Mbps for x =0, 1, 2, 3, 4, 5respectively. The output is redirected to the file i3_x.out? Launch ping from h5 to h6, for a count of 650 pings, spaced apart by 0.1 secondsWhen the script execution is completed, you will get the $ prompt.Now open the output files i1_x.out, i3_x.out, p_x.out, for x = 0 to 5, by typing cat (Alternatively, you can transfer the output files to your local machine, following the stepsdescribed in “mininet-info”, and read the files on your local machine).In the “i1_x.out” file you will find a Server Report which contains a “Bandwidth” value. That is thethroughput observed at h2. Similarly in the “i3_x.out” file, there is the throughput observed at h4.In the p_x.out file, you will find the ping statistics: rtt min, rtt avg, rtt max, % of packets lost. rtt isnot the queuing delay, but it is a related measure which is good enough for the purpose ofanalyzing the delay trends.5. What to turn inYou should turn in a Word document or similar that contains table 1 below. Fill in the yellowcells with your results, and answer the following questions for the various cases (6 points each):Q1. From what you learned in the lectures, do you expect a relationship between the ping lossand the traffic intensity for a given buffer capacity (for example, decrease or increase withtraffic intensity)? Answer yes or no, and justify your answer. Now analyze the reported data forthe various configurations. Does the data match the relationship you expected? Same questionfor the relationship between the ping avg RTT and the traffic intensity.Q2. From what you learned in the lectures, do you expect a relationship between the ping lossand the buffer capacity (for example, decrease or increase with buffer capacity)? Answer yes orno, and justify your answer. Now analyze the reported data for the various configurations. Doesthe data match the relationship you expected? Same question for the relationship between theping avg RTT and the buffer capacity.Q3. Is the observed throughput at the server h2 the same as the F1 traffic intensity? If theanswer is no, explain why.Q4. Is the observed throughput at the server h4 the same as the F3 traffic intensity? If theanswer is no, explain why.Q5. Is there a relationship between the RTT/loss % and the throughputs observed at theservers? If so, what is that relationship? Can you explain?Q6. Regarding the individual ping RTT values, do you see any significant differences betweenthe first pings and the last pings within the same ping session? If your answer is yes, can youexplain why?You should also turn in the *.out files generated by the script.Note: The expected ping RTT values should not exceed a few hundreds of msec in the worstcase. If you obtain numbers which seem out of whack, please rerun the mininet simulation.Mininet sometimes gives incorrect results. If you still see numbers which seem out of whackafter a few reruns, please contact the TA for help.6. ResourcesIf you are interested to learn more about ping and iperf, here are some links:a. pinghttps://en.wikipedia.org/wiki/Ping_(networking_utility)b. iperfhttps://www.es.net/assets/Uploads/201007-JTIperf.pdfhttps://en.wikipedia.org/wiki/Iperf轉(zhuǎn)自:http://www.3zuoye.com/contents/3/4803.html
講解:Computer Networks秆剪、Python瘫寝、PythonR|SPSS
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
- 文/潘曉璐 我一進(jìn)店門,熙熙樓的掌柜王于貴愁眉苦臉地迎上來谴蔑,“玉大人豌骏,你說我怎么就攤上這事∫В” “怎么了窃躲?”我有些...
- 文/不壞的土叔 我叫張陵,是天一觀的道長钦睡。 經(jīng)常有香客問我蒂窒,道長,這世上最難降的妖魔是什么? 我笑而不...
- 正文 為了忘掉前任洒琢,我火速辦了婚禮秧秉,結(jié)果婚禮上,老公的妹妹穿的比我還像新娘衰抑。我一直安慰自己象迎,他們只是感情好,可當(dāng)我...
- 文/花漫 我一把揭開白布呛踊。 她就那樣靜靜地躺著砾淌,像睡著了一般。 火紅的嫁衣襯著肌膚如雪恋技。 梳的紋絲不亂的頭發(fā)上拇舀,一...
- 文/蒼蘭香墨 我猛地睜開眼站楚,長吁一口氣:“原來是場(chǎng)噩夢(mèng)啊……” “哼脱惰!你這毒婦竟也來了?” 一聲冷哼從身側(cè)響起窿春,我...
- 序言:老撾萬榮一對(duì)情侶失蹤拉一,失蹤者是張志新(化名)和其女友劉穎,沒想到半個(gè)月后旧乞,有當(dāng)?shù)厝嗽跇淞掷锇l(fā)現(xiàn)了一具尸體蔚润,經(jīng)...
- 正文 獨(dú)居荒郊野嶺守林人離奇死亡,尸身上長有42處帶血的膿包…… 初始之章·張勛 以下內(nèi)容為張勛視角 年9月15日...
- 正文 我和宋清朗相戀三年尺栖,在試婚紗的時(shí)候發(fā)現(xiàn)自己被綠了嫡纠。 大學(xué)時(shí)的朋友給我發(fā)了我未婚夫和他白月光在一起吃飯的照片。...
- 正文 年R本政府宣布,位于F島的核電站掐松,受9級(jí)特大地震影響蠢棱,放射性物質(zhì)發(fā)生泄漏锌杀。R本人自食惡果不足惜,卻給世界環(huán)境...
- 文/蒙蒙 一泻仙、第九天 我趴在偏房一處隱蔽的房頂上張望糕再。 院中可真熱鬧,春花似錦玉转、人聲如沸突想。這莊子的主人今日做“春日...
- 文/蒼蘭香墨 我抬頭看了看天上的太陽猾担。三九已至,卻和暖如春刺下,著一層夾襖步出監(jiān)牢的瞬間绑嘹,已是汗流浹背。 一陣腳步聲響...
- 正文 我出身青樓畅卓,卻偏偏與公主長得像擅腰,于是被迫代替她去往敵國和親。 傳聞我的和親對(duì)象是個(gè)殘疾皇子翁潘,可洞房花燭夜當(dāng)晚...
推薦閱讀更多精彩內(nèi)容
- Computer NetworksHomework 1Graded out of 36 pointsIn this...
- Computer NetworksHomework 1Graded out of 36 pointsIn this...
- Computer NetworksHomework 1Graded out of 36 pointsIn this...
- 你的記憶中一定有某些時(shí)刻難以忘卻,歷久彌新括尸!一定有一些味道無論你身處何方總會(huì)一遍遍想起巷蚪,不能忘卻!這種...
- 一日濒翻,玉皇大帝坐在凌霄殿大殿上對(duì)文曲星君道:“文曲星屁柏,二十一世紀(jì)是個(gè)和平的世紀(jì)啦膜,是個(gè)知識(shí)文化爆炸的時(shí)代,也正是人類...