




版權說明:本文檔由用戶提供并上傳,收益歸屬內容提供方,若內容存在侵權,請進行舉報或認領
文檔簡介
1、哈爾濱工業大學 深圳 高級計算機網絡 2017 習題集1. A channel has a bit rate of 4 kbps and a propagation delay of 20 msec. For what range of frame sizes does stop-and-wait give an efficiency of at least 50%?answer: 發送一幀的時間等于信道的傳播延遲的2倍,信道的利用率為50%,所以,在幀長滿足發送時間大于延遲時間的2倍是,效率將會高于50%。由于4kbps=4000bps故4000*20*0.001*2=160bit只有在幀長
2、不小于160bit時,停止等待協議的效率才會至少是50%。解此題可供參考的公式有兩個,下面這兩種情況下都可以得到答案:一個是效率=PP+2t其中P是傳輸一幀所需要的時間,t是端到端傳送時延。所以可以由PP+2t=50%,解出幀N=160bit;二是中第42張中講到的公式,公式綜合考慮了多種因素,信道丟失率Pf,幀頭的大小na-no,以及ACK的發送時間na/R。在不考慮數據幀的處理時間tproc和ACK發送時間的情況下,我們可以推出幀的最小大小為160bit。答案詳情參看上次文檔。作業中得到錯誤答案有兩個(1)N=80bit得出此答案的同學沒有弄清楚停等協議,在停等協議公式1分母下面的2t是往
3、返時間,而不是t。(2)160kbit,單位換算錯誤。我可以負責任的告訴你沒有哪個網絡里面幀能夠有十幾萬比特大小的,以太網里最大幀不過1526字節。2. Imagine a sliding window protocol using so many bits for sequence numbers that wraparound never occurs. What relations must hold among the four window edges and the window size, which is constant and the same for both the s
4、ender and the receiver?answer: 假設發送者的窗口為(S1,Sn),接受者的窗口為(R1,Rn),窗口大小為W,則需滿足:0=Sn-S1+1=WRn-R1+1=WS1=R1=Sl但一定有Rl1 時,信道總是過載的,因此在這里信道是過載的。4What is the baud rate of the standard 10 Mbps Ethernet?答:以太網使用曼徹斯特編碼,意味著發送每一位都有兩個信號周期,標準以太網的數據率為10MB/S,一次波特率是數據率的兩倍,為20MBaud。5A 1-km-long, 10-Mbps CSMA/CD LAN (not 80
5、2.3)has a propagation speed of 200 m/?sec. Repeaters are not allowed in this system. Data frames are 256 bits long, including 32 bits of header, checksum, and other overhead. The first bit slot after a successful transmission is reserved for the receiver to capture the channel in order to Send a 32-
6、bit acknowledgement frame. What is the effective data rate, excluding overhead, assuming that there are no collisions?答:依題意知道一公里的銅電纜中單程的傳播時間為1、200000=5 usec,往返的時間為2t=10 usec,我們知道,一次完整的傳輸分為六步,發送者偵聽銅電纜的時間為10 usec,若線路可用發送數據幀傳輸時間為256 bits、10MPS=25.6usec,數據幀最后一位到達時傳播的延遲為5.0usec,接聽者偵聽銅電纜的時間為10 usec,若線路可用接
7、聽者發送確認幀所用的時間為3.2 usec,確認幀最后一位到達時的傳播延遲為5.0 usec,總共58.8 sec,在這期間發送了224 bits的數據,所以數據率為3.8MPS。6Two CSMA/CD stations are each trying to transmit long (multiframe) files. After each frame is sent, they contend for the channel, using the binaryexponential backoff algorithm. What is the probability that the
8、 contention ends on round k, and what is the mean number of rounds per contention period?答:把獲得通道的嘗試從1 開始編號。第i 次嘗試分布在2 i-1 個時隙中。因此,i 次嘗試碰撞的概率是2-(i-1),開頭k-1 次嘗試失敗,緊接著第k 次嘗試成功的概率是:Pk=(1-2-(k-1)2-0*2*-1*2-(k-2)=(1-2-(k-1)2-(k-1)(k-2)/2所以每個競爭周期的平均競爭次數是kpk(k=1,2,3)8An IP packet to be transmitted by Ethern
9、et is 60 bytes long, including all its headers. If LLC is not in use, is padding needed in the Ethernet frame, andif so, how many bytes?答:最小的以太幀是64bytes,包括了以太幀頭部的二者地址、類型/長度域、校驗和。因為頭部域占用18 bytes 報文是60 bytes,總的幀長度是78 bytes, 已經超過了64-byte 的最小限制。因此,不需要填補。1. Describe distance vector (DV) algorithm. Discus
10、s the feature of the DV routing algorithm.Solution: (1) The basic idea of DV algorithmEach node x begins with Dx(y), an estimate of thecost of the least-cost path from itself to node y, for all nodes in N. Let Dx= Dx(y): yin N be node xs distance vector, which is the vector of cost estimates from x
11、to allother nodes, y, in N. With the DV algorithm, each node x maintains the followingrouting information: For each neighbor v, the cost c(x,v) from x to directly attached neighborv Node xs distance vector, that is, Dx= Dx(y): y in N, containing xs estimate ofits cost to all destinations, y, in N Th
12、e distance vectors of each of its neighbors, that is, Dv= Dv(y): y in N for eachneighbor v of xIn the distributed, asynchronous algorithm, from time to time, each node sendsa copy of its distance vector to each of its neighbors. When a node x receives anew distance vector from any of its neighbors v
13、, it saves vs distance vector, andthen uses the Bellman-Ford equation to update its own distance vector as follows:Dx(y) _ minvc(x,v) + Dv(y) for each node y in NIf node xs distance vector has changed as a result of this update step, node x willthen send its updated distance vector to each of its ne
14、ighbors, which can in turnupdate their own distance vectors. Miraculously enough, as long as all the nodescontinue to exchange their distance vectors in an asynchronous fashion, each costestimate Dx(y) converges to dx(y), the actual cost of the least-cost path from node xto node y(2) The feature of
15、the DV routing algorithmThe distancevector(DV) algorithm is iterative, asynchronous, and distributed. It is distributedin that each node receives some information from one or more of its directlyattached neighbors, performs a calculation, and then distributes the results of itscalculation back to it
16、s neighbors. It is iterative in that this process continueson until no more information is exchanged between neighbors. (Interestingly, thealgorithm is also self-terminatingthere is no signal that the computation shouldstop; it just stops.) The algorithm is asynchronous in that it does not require a
17、ll ofthe nodes to operate in lockstep with each other.2. Consider a configuration in which packets are sent from computers on a LAN to systems on other networks. All of these packets must pass through a router that connects the LAN to a widearea network and hence to the outside world.Let us look at
18、the traffic from the LAN through the router. Packets arrive with a mean arrivalrate of 5 per second. The average packet length is 144 bytes, and it is assumed that packet length is exponentially distributed. Line speed from the router to the wide-area network is9600 bps. The following questions are
19、asked:(a) What is the utilization of the link of the router?(b) What is the mean residence time in the router?(c) How many packets are in the router, including those waiting for transmission and the one currently being transmitted (if any), on the average?Solution:(a) Mean arrival rate(throughput):
20、X=5 packets/secAverage service time: S=(144bytes/packet)*(8bits/byte)/9600bps=0.12sec/packetUtilization(time the router is busy): U=X*S=(5 packets/sec)*(0.12 sec/packet)=0.6(b) The mean residence time is T=S/(1-U)=(0.12 sec/packet)/(1-0.6)=0.3 sec/packet(c) Number of packets in the router is En=U/(1
21、-U)=1.5 packets2. Consider the arrival traffic characterized by a token bucket with parameters (average rate) = 1 Mbps, M (maximum output rate) = 2 Mbps, and C (token capacity) = 200Kb. What is the minimum rate r that needs to be allocated by a router in order to guarantee a delay no larger than 50m
22、s?Solution:We build the equation according to the rule: the bits flowed in the router are equal to the bits flowed out the router. Let S be burst length, the maximum accumulative amount of arrival traffic to the router is C+S=MS.We get S=C/(M-). When the router deal the arrival traffic at the minimu
23、m rate r with a delay no larger than 50ms, let D=50ms and the equation is MS=r*(S+D). So,3. Describe the border gateway protocol (BGP) and discuss how a packet would be transmitted among different autonomous system (AS).Solution:Border GatewayProtocol version 4 (BGP4)We just learned how ISPs use RIP
24、 and OSPF to determine optimal paths for sourcedestinationpairs that are internal to the same AS. Lets now examine how paths aredetermined for source-destination pairs that span multiple ASs. BGPprovides each AS a means to1. Obtain subnet reachability information from neighboring ASs.2. Propagate th
25、e reachability information to all routers internal to the AS.3. Determine “good” routes to subnets based on the reachability information andon AS policy.4. Suppose that frames are 1250 bytes long including 25 bytes of head. Also assume that ACK frame are 25 bytes long. Calculate the efficiency of st
26、op-and-wait ARQ in a system that transmits at R=1Mbps and with reaction time of 1ms for channels with a bit error of 10-6, 10-5, 10-4.Solution:From the above figure and condition, we know the total time to transmit 1 frame is t0=2(tprop+tproc)+tf+ta.Here, 2(tprop+tproc) is the reaction time of 1ms,
27、tf is the time to transmit the fames nf=1250 bytes with the head nh=25 bytes and ta is the time to transmit the ACK frame na=25 bytes. And the useful size of the frame is (nf-nh). Moreover, the probability of transmitting a frame without errors is (1-Pe). So the transmission efficiency is as follows
28、.When Pe=10-6,=87.50%, when Pe=10-5,=87.50%, when Pe=10-4,=87.49%.5. Describe the TCP congestion control scheme. Derive the delay modeling for TCP traffic in fixed congestion window when WS/R 10 active less than .0004Q: how did we get value 0.0004?4.Caravan analogyq Cars “propagate” at 100 km/hrq To
29、ll booth takes 12 sec to service a car (transmission time)q carbit; caravan packetq Q: How long until caravan is lined up before 2nd toll booth?q Time to “push” entire caravan through toll booth onto highway = 12*10 = 120 secq Time for last car to propagate from 1st to 2nd toll both: 100km/(100km/hr
30、)= 1 hrq A: 62 minutesq Cars now “propagate” at 1000 km/hrq Toll booth now takes 1 min to service a carq Q: Will cars arrive to 2nd booth before all cars serviced at 1st booth?q Yes! After 7 min, 1st car at 2nd booth and 3 cars still at 1st booth.q 1st bit of packet can arrive at 2nd router before p
31、acket is fully transmitted at 1st router!q See Ethernet applet at AWL Web site5.6.Could the congestion problem be solved with a large buffer space?Too little memory:too much traffic will lead to buffer overflow and packet loss Too much memory:the queues and the delays can get so long that by the tim
32、e the packets come out of the switch, most of them have already timed out and have been retransmitted by higher layers packets (or their retransmissions) have to be dropped after they have consumed precious network re-sources. Too much memory in the intermediate nodes is as harmful as too little mem
33、ory.7.Could the congestion problem be solved with high-speed links? Introducing high-speed links without proper congestion control can lead to reduced performance the same speed(a) The time to transfer a particular file was five minutes.(b) The link between the first two nodes was replace by a fast
34、1 Mbits link, the transfer time increased to 20 Minutes! With the high-speed link, the arrival rate to the first router became much higher than the departure rate, leading to long queues, buffer overflows, and packet losses that caused the transfer time to increase. The protocols have to be designed
35、 specifically to ensure that this increasing range of link speeds does not degrade the performance.8.Could the congestion problem be solved with high-speed processors? Similar to that for links. Introduction of a high-speed processor in an existing network may increase the mismatch of speeds and the
36、 chances of congestion. Introducing high-speed links without proper schemes Congestion occurs even if all links and processors are of the same speed. An example of the balanced configuration - Assume all processors and links have a throughput capacity of 1 Gbits. A simultaneous transfer of data from
37、 nodes A and B to node C can lead to a total input rate of 2 Gbits per second at the router R while the output rate is only 1 Gbits per second, thereby, causing congestion.6. solutions? Congestion in networks is a dynamic problem. It cannot be solved with static solutions alone. We need protocol des
38、igns that protect networks in the event of congestion. The explosion of high-speed networks has led to more unbalanced networks that are causing congestion. In particular, packet loss due to buffer shortage is a symptom not a cause of congestion. Solution: proper protocols and mechanisms design, e.g. Admission Control, Scheduling, et. al7. “end to end” and “point to point”a) end to end communications:i. Data communications on a path between the source node and the destination no
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯系上傳者。文件的所有權益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網頁內容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
- 4. 未經權益所有人同意不得將文件中的內容挪作商業或盈利用途。
- 5. 人人文庫網僅提供信息存儲空間,僅對用戶上傳內容的表現方式做保護處理,對用戶上傳分享的文檔內容本身不做任何修改或編輯,并不能對任何下載內容負責。
- 6. 下載文件中如有侵權或不適當內容,請與我們聯系,我們立即糾正。
- 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 校園招聘大賽題目及答案
- 小學正數負數題目及答案
- 煤礦勞資科安全職責
- 廚具銷售培訓課件
- 2024年云南省人力資源社會保障廳下屬事業單位真題
- 2024年河北唐山國控港口管理有限公司招聘筆試真題
- 貴州省應急管理廳事業單位真題2024
- 2024年咸陽市特崗教師招聘考試真題
- 2024年黔南州大學畢業生招聘事業單位人員考試真題
- 2024年海南公務員考試行測試題(A類)
- 一級圓柱齒輪減速器的設計計算22001文檔
- 第19章一次函數-一次函數專題數形結合一一次函數與45°角模型講義人教版數學八年級下冊
- 2023年四川省宜賓市敘州區數學六年級第二學期期末考試模擬試題含解析
- 幼兒園警察職業介紹課件
- 滅火器維修與報廢規程
- 皮膚病的臨床取材及送檢指南-修訂版
- 機型理論-4c172實用類重量平衡
- 校企合作項目立項申請表(模板)
- 管道工廠化預制推廣應用課件
- 海水的淡化精品課件
- 項目工程移交生產驗收報告
評論
0/150
提交評論