講解:Computer Networks宵荒、Python、PythonR|SPSS

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è)計作業(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

?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
  • 序言:七十年代末,一起剝皮案震驚了整個濱河市玖详,隨后出現(xiàn)的幾起案子把介,更是在濱河造成了極大的恐慌,老刑警劉巖蟋座,帶你破解...
    沈念sama閱讀 212,294評論 6 493
  • 序言:濱河連續(xù)發(fā)生了三起死亡事件拗踢,死亡現(xiàn)場離奇詭異,居然都是意外死亡向臀,警方通過查閱死者的電腦和手機(jī)巢墅,發(fā)現(xiàn)死者居然都...
    沈念sama閱讀 90,493評論 3 385
  • 文/潘曉璐 我一進(jìn)店門,熙熙樓的掌柜王于貴愁眉苦臉地迎上來券膀,“玉大人君纫,你說我怎么就攤上這事∏郾颍” “怎么了蓄髓?”我有些...
    開封第一講書人閱讀 157,790評論 0 348
  • 文/不壞的土叔 我叫張陵,是天一觀的道長舒帮。 經(jīng)常有香客問我会喝,道長眨唬,這世上最難降的妖魔是什么? 我笑而不...
    開封第一講書人閱讀 56,595評論 1 284
  • 正文 為了忘掉前任好乐,我火速辦了婚禮,結(jié)果婚禮上瓦宜,老公的妹妹穿的比我還像新娘蔚万。我一直安慰自己,他們只是感情好临庇,可當(dāng)我...
    茶點(diǎn)故事閱讀 65,718評論 6 386
  • 文/花漫 我一把揭開白布反璃。 她就那樣靜靜地躺著,像睡著了一般假夺。 火紅的嫁衣襯著肌膚如雪淮蜈。 梳的紋絲不亂的頭發(fā)上,一...
    開封第一講書人閱讀 49,906評論 1 290
  • 那天已卷,我揣著相機(jī)與錄音梧田,去河邊找鬼。 笑死侧蘸,一個胖子當(dāng)著我的面吹牛裁眯,可吹牛的內(nèi)容都是我干的。 我是一名探鬼主播讳癌,決...
    沈念sama閱讀 39,053評論 3 410
  • 文/蒼蘭香墨 我猛地睜開眼穿稳,長吁一口氣:“原來是場噩夢啊……” “哼!你這毒婦竟也來了晌坤?” 一聲冷哼從身側(cè)響起逢艘,我...
    開封第一講書人閱讀 37,797評論 0 268
  • 序言:老撾萬榮一對情侶失蹤,失蹤者是張志新(化名)和其女友劉穎骤菠,沒想到半個月后它改,有當(dāng)?shù)厝嗽跇淞掷锇l(fā)現(xiàn)了一具尸體,經(jīng)...
    沈念sama閱讀 44,250評論 1 303
  • 正文 獨(dú)居荒郊野嶺守林人離奇死亡商乎,尸身上長有42處帶血的膿包…… 初始之章·張勛 以下內(nèi)容為張勛視角 年9月15日...
    茶點(diǎn)故事閱讀 36,570評論 2 327
  • 正文 我和宋清朗相戀三年搔课,在試婚紗的時候發(fā)現(xiàn)自己被綠了。 大學(xué)時的朋友給我發(fā)了我未婚夫和他白月光在一起吃飯的照片截亦。...
    茶點(diǎn)故事閱讀 38,711評論 1 341
  • 序言:一個原本活蹦亂跳的男人離奇死亡爬泥,死狀恐怖,靈堂內(nèi)的尸體忽然破棺而出崩瓤,到底是詐尸還是另有隱情袍啡,我是刑警寧澤,帶...
    沈念sama閱讀 34,388評論 4 332
  • 正文 年R本政府宣布却桶,位于F島的核電站境输,受9級特大地震影響蔗牡,放射性物質(zhì)發(fā)生泄漏。R本人自食惡果不足惜嗅剖,卻給世界環(huán)境...
    茶點(diǎn)故事閱讀 40,018評論 3 316
  • 文/蒙蒙 一辩越、第九天 我趴在偏房一處隱蔽的房頂上張望。 院中可真熱鬧信粮,春花似錦黔攒、人聲如沸。這莊子的主人今日做“春日...
    開封第一講書人閱讀 30,796評論 0 21
  • 文/蒼蘭香墨 我抬頭看了看天上的太陽。三九已至旅掂,卻和暖如春赏胚,著一層夾襖步出監(jiān)牢的瞬間,已是汗流浹背商虐。 一陣腳步聲響...
    開封第一講書人閱讀 32,023評論 1 266
  • 我被黑心中介騙來泰國打工觉阅, 沒想到剛下飛機(jī)就差點(diǎn)兒被人妖公主榨干…… 1. 我叫王不留,地道東北人秘车。 一個月前我還...
    沈念sama閱讀 46,461評論 2 360
  • 正文 我出身青樓留拾,卻偏偏與公主長得像,于是被迫代替她去往敵國和親鲫尊。 傳聞我的和親對象是個殘疾皇子痴柔,可洞房花燭夜當(dāng)晚...
    茶點(diǎn)故事閱讀 43,595評論 2 350

推薦閱讀更多精彩內(nèi)容

  • IntroductionIn unit 4 you are going to learn how to finis...
    丁昆朋閱讀 517評論 0 0
  • 5/15/2017 7:06:35 PM 縱觀各大組件,配置文件占據(jù)極其重要的地位疫向】任担可配置化也是當(dāng)下開發(fā)的一流行趨...
    愛做夢的胖子閱讀 4,422評論 0 8
  • 挺拔的松 緊緊地 掐住你的腰 當(dāng)她剛剛 從你的腰間 發(fā)出芽兒的時候起 有開始 你就鎮(zhèn)壓她 給予的襲擊 但 終究留給...
    荒草_馮權(quán)加閱讀 184評論 0 2
  • “老大,接下來我們該去哪搔驼?”土豆塊問道谈火。 “羅馬斗獸場!” 地點(diǎn):古羅馬斗獸場 時間:下午4:35 “ ...
    加油啦赫赫閱讀 72評論 0 0