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 代寫(xiě)Computer Networks作業(yè)黎烈、Python編程設(shè)計(jì)作業(yè)調(diào)試、Python語(yǔ)言作業(yè)代做 代做R語(yǔ)言編程|代做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)店門(mén)垫毙,熙熙樓的掌柜王于貴愁眉苦臉地迎上來(lái)霹疫,“玉大人,你說(shuō)我怎么就攤上這事综芥±鲂” “怎么了?”我有些...
- 文/不壞的土叔 我叫張陵膀藐,是天一觀的道長(zhǎng)屠阻。 經(jīng)常有香客問(wèn)我,道長(zhǎng)消请,這世上最難降的妖魔是什么? 我笑而不...
- 正文 為了忘掉前任类腮,我火速辦了婚禮臊泰,結(jié)果婚禮上,老公的妹妹穿的比我還像新娘蚜枢。我一直安慰自己缸逃,他們只是感情好针饥,可當(dāng)我...
- 文/花漫 我一把揭開(kāi)白布。 她就那樣靜靜地躺著需频,像睡著了一般丁眼。 火紅的嫁衣襯著肌膚如雪。 梳的紋絲不亂的頭發(fā)上昭殉,一...
- 那天苞七,我揣著相機(jī)與錄音,去河邊找鬼挪丢。 笑死蹂风,一個(gè)胖子當(dāng)著我的面吹牛,可吹牛的內(nèi)容都是我干的乾蓬。 我是一名探鬼主播惠啄,決...
- 文/蒼蘭香墨 我猛地睜開(kāi)眼,長(zhǎng)吁一口氣:“原來(lái)是場(chǎng)噩夢(mèng)啊……” “哼任内!你這毒婦竟也來(lái)了撵渡?” 一聲冷哼從身側(cè)響起,我...
- 序言:老撾萬(wàn)榮一對(duì)情侶失蹤死嗦,失蹤者是張志新(化名)和其女友劉穎趋距,沒(méi)想到半個(gè)月后,有當(dāng)?shù)厝嗽跇?shù)林里發(fā)現(xiàn)了一具尸體越走,經(jīng)...
- 正文 獨(dú)居荒郊野嶺守林人離奇死亡棚品,尸身上長(zhǎng)有42處帶血的膿包…… 初始之章·張勛 以下內(nèi)容為張勛視角 年9月15日...
- 正文 我和宋清朗相戀三年,在試婚紗的時(shí)候發(fā)現(xiàn)自己被綠了廊敌。 大學(xué)時(shí)的朋友給我發(fā)了我未婚夫和他白月光在一起吃飯的照片铜跑。...
- 正文 年R本政府宣布囤锉,位于F島的核電站,受9級(jí)特大地震影響护锤,放射性物質(zhì)發(fā)生泄漏官地。R本人自食惡果不足惜,卻給世界環(huán)境...
- 文/蒙蒙 一烙懦、第九天 我趴在偏房一處隱蔽的房頂上張望驱入。 院中可真熱鬧,春花似錦、人聲如沸亏较。這莊子的主人今日做“春日...
- 文/蒼蘭香墨 我抬頭看了看天上的太陽(yáng)雪情。三九已至遵岩,卻和暖如春,著一層夾襖步出監(jiān)牢的瞬間巡通,已是汗流浹背尘执。 一陣腳步聲響...
- 正文 我出身青樓,卻偏偏與公主長(zhǎng)得像跪解,于是被迫代替她去往敵國(guó)和親炉旷。 傳聞我的和親對(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...
- Computer NetworksHomework 1Graded out of 36 pointsIn this...