计算机网络-自顶向下方法(7th) 第一章 Problems 中英对照

P1.

Design and describe an application-level protocol to be used between an automatic teller machine and a bank’s centralized computer. Your protocol should allow a user’s card and password to be verified, the account balance (which is maintained at the centralized computer) to be queried, and an account withdrawal to be made (that is, money disbursed to the user). Your protocol entities should be able to handle the all-too-common case in which there is not enough money in the account to cover the withdrawal. Specify your protocol by listing the messages exchanged and the action taken by the automatic teller machine or the bank’s centralized computer on transmission and receipt of messages. Sketch the operation of your protocol for the case of a simple withdrawal with no errors, using a diagram similar to that in Figure 1.2 . Explicitly state the assumptions made by your protocol about the underlying end-to-end transport service.
设计并描述一种在银行中心服务器和自动柜员机间通信的应用层协议,你的协议应当允许验证用户卡和口令,査询账目结算(这些都在中央计算机中进行维护),支取账目(即向用户支付钱)。 你的协议实体应当能够处理取钱时账目中钱不够的常见问题。通过列出自动柜员机和银行中央计算机在报文传输和接收过程中交换的报文和采取的动作来定义你的协议。使用类似于图1.2所示的图,拟定在简单无差错取钱情况下该协议的操作。明确地阐述在该协议中关于底层端到端运输服务所做的假设。

答案:
从柜员机到服务器发送的消息:

服务器向柜员机发送的消息:
在这里插入图片描述
握手与校对
在这里插入图片描述

假如钱不够了
在这里插入图片描述

P2.

Equation 1.1 gives a formula for the end-to-end delay of sending one packet of length L over N links of transmission rate R. Generalize this formula for sending P such packets back-to-back over the N links. 式1.1( d 端到端 = N L R d_{端到端}=N\frac{L}{R} d端到端=NRL) 给出了经传输速率为R的N段链路发送长度L的一个分组的端到端时延。对于经过N段链路一个接一个地发送P个这样的分组,一般化地表示出这个公式。

答案:
( N + P − 1 ) L R (N+P-1)\frac{L}{R} (N+P1)RL

P3.

Consider an application that transmits data at a steady rate (for example, the sender generates an N-bit unit of data every k time units, where k is small and fixed). Also, when such an application starts, it will continue running for a relatively long period of time. Answer the following questions, briefly justifying your answer:
a. Would a packet-switched network or a circuit-switched network be more appropriate for this application? Why?
b. Suppose that a packet-switched network is used and the only traffic in this network comes from such applications as described above. Furthermore, assume that the sum of the application data rates is less than the capacities of each and every link. Is some form of congestion control needed? Why?
考虑某一应用以稳定速率传输数据(比如每k个时间段发送N比特数据块,k是一个小的常数),且该应用一旦开始服务,就会持续长时间运行,回答下列问题,并且简要地论证你的答案。
a, 应当选择分组交换网络还是电路交换网络?为什么?
b,假设使用分组交换网络,并且该网络上的流量仅来自于上面描述的应用。并且假设应用的数据总和低于每段链路的传输能力。这种情况需不需要设置拥塞控制机制呢?

答案:

a, 电路交换网络。 应用需要持续地传输速率,也就是线路不会存在闲置时间。传输速率是一定的,这样很方便预留一定速率的网络,既不会速率不足也不会浪费。 而假如使用分组交换网络,会增加分组管理开销(比如时延)。
b,不需要。当链路的传输能力始终能满足传输的数据量时,不会存在拥堵和排队的情况,也就不需要有拥塞控制机制。

P4.

在这里插入图片描述

Consider the circuit-switched network in Figure 1.13 . Recall that there are 4 circuits on each link. Label the four switches A, B, C, and D, going in the clockwise direction.
a. What is the maximum number of simultaneous connections that can be in progress at any one time in this network?
b. Suppose that all connections are between switches A and C. What is the maximum number of simultaneous connections that can be in progress?
c. Suppose we want to make four connections between switches A and C, and another four connections between switches B and D. Can we route these calls through the four links to accommodate all eight ­connections?
考虑图1.13中的情况,每段链路有4段电路,将四个交换机按顺时针顺序标记为A、B、C、D。
a,在该网络中最多可以有多少连接同时存在?
b, 假设所有的连接都在A和C之间,在该网络中最多可以同时存在多少连接?
c, 假定我们要在交换机A和C之间建立4条连接,在交换机B和D之间建立另外4条连接。我们能够让这些呼叫通过这4条链路建立路由以容纳所有8条连接吗?

答案:
a,16条(每两个路由器之间可以建立4条)
b,8条 (4条A-B-C,4条A-D-C)
c, 可以。A-C之间的四条:A-B-C两条、A-D-C两条。 B-D之间的两条: B-C-D两条,B-A-D两条。

P5.

Review the car-caravan analogy in Section 1.4 . Assume a propagation speed of 100 km/hour.
a. Suppose the caravan travels 150 km, beginning in front of one tollbooth, passing through a second tollbooth, and finishing just after a third tollbooth. What is the end-to-end delay?
b. Repeat (a), now assuming that there are eight cars in the caravan instead of ten.

回顾在1.4节中的车队的类比。假定传播速度为100km/h
a,假定车队旅行150km:在一个收费站前面开始,通过第二个收费站,并且正好在第三个收费站后 面结束。其端到端时延是多少?
b,重复(a),现在假定车队中有8辆汽车而不是10辆。

答案:
a, 传播时延为90min,传输时延为31012s = 6min, 端到端时延是96min
b, 传输时延不变,端到端时延为3812s = 4min48s, 端到端时延是94min48s

P6.

This elementary problem begins to explore propagation delay and transmission delay, two central concepts in data networking. Consider two hosts, A and B, connected by a single link of rate R bps. Suppose that the two hosts are separated by m meters, and suppose the propagation speed along the link is s meters/sec. Host A is to send a packet of size L bits to Host B.

a. Express the propagation delay d p r o p d_{prop} dprop, in terms of m and s.
b. Determine the transmission time of the packet, d t r a n s d_{trans} dtrans , in terms of L and R.
c. Ignoring processing and queuing delays, obtain an expression for the end-to-end delay.
d. Suppose Host A begins to transmit the packet at time t = 0 t = 0 t=0. At time t = d t r a n s t = d_{trans} t=dtrans , where is the last bit of the packet?
e. Suppose d p r o p d_{prop} dprop is greater than d t r a n s d_{trans} dtrans. At time t = d t r a n s t = d_{trans} t=dtrans, where is the first bit of the packet?
f. Suppose d p r o p d_{prop} dprop is less than d t r a n s d_{trans} dtrans . At time t = d t r a n s t = d_{trans} t=dtrans, where is the first bit of the packet?
g. Suppose s = 2.5 × 1 0 8 2.5\times10^8 2.5×108 , L = 120bits and R = 56kbps find the distance m so that d p r o p d_{prop} dprop equals d t r a n s d_{trans} dtrans

让我们简单地探究一下数据网络中的两个核心问题:传输时延和传播时延。假设有两个主机A和B, 通过一条速率为R bps的链路连接。假设两个主机距离m米,传播速率是s 米/秒, A要向B发送一个大小为L比特的包。
a, 用m和s表示传播时延 d p r o p d_{prop} dprop
b, 根据L和R,确定传输时延 d t r a n s d_{trans} dtrans
c, 忽略处理和排队时延,求出端到端时延的表达式
d, 假设A在t = 0时开始发送该分组,在 d t r a n s d_{trans} dtrans时,分组的最后一个比特正处在什么位置?
e, 假设传播时延大于传输时延,在 d t r a n s d_{trans} dtrans时,分组的第一个比特正处在什么位置?
f, 假设传播时延小于传输时延,在 d t r a n s d_{trans} dtrans时,分组的第一个比特正处在什么位置?
g, 假设s = 2.5 × 1 0 8 2.5\times10^8 2.5×108 , L = 120 and R = 56kbps, 求出使得传输时延与传播时延相等的距离m

答案:
a, d p r o p = m / s d_{prop} = m/s dprop=m/s
b, d t r a n s = L / R d_{trans} = L/R dtrans=L/R
c, d = m / s + L / R d = m/s+L/R d=m/s+L/R
d, 临近主机A的链路上
e, AB之间的链路上
f, 主机B的缓冲区中
g, 535714 m

P7.

In this problem, we consider sending real-time voice from Host A to Host B over a packet-switched network (VoIP). Host A converts analog voice to a digital 64 kbps bit stream on the fly. Host A then groups the bits into 56-byte packets. There is one link between Hosts A and B; its transmission rate is 2 Mbps and its propagation delay is 10 msec. As soon as Host A gathers a packet, it sends it to Host B. As soon as Host B receives an entire packet, it converts the packet’s bits to an analog signal. How much time elapses from the time a bit is created (from the original analog signal at Host A) until the bit is decoded (as part of the analog signal at Host B)?
本题中,我们假设从主机A到主机B通过分组交换网发送实时的声音数据(IP电话)。主机A动态地将模拟声音信号转换为64kbps的数字信号,并将其打包为56字节的分组。在A和B之间有一条传输速率是2 Mbps、传播时延是10毫秒的通路,当A打包完成一个分组后,它立即将其发送到主机B,B接收到整个分组后,它将分组的比特流转换为模拟信号。一个比特从创建到解码为模拟信号花费的时间是多少?

答案:
A收集整个分组所用时间: d 1 = 56 × 8 64 × 1 0 3 = 0.07 s = 7 m s d_1=\frac{56\times8}{64\times10^3} =0.07s = 7ms d1=64×10356×8=0.07s=7ms
A发送整个分组所用的时间: d 2 = 56 × 8 2 × 1 0 6 = 0.000224 s = 0.224 m s d_2=\frac{56\times8}{2\times10^6}=0.000224s=0.224ms d2=2×10656×8=0.000224s=0.224ms
传播时延 d 3 = 10 m s d_3=10ms d3=10ms
总时延d= d 1 + d 2 + d 3 = 17.224 m s d_1+d_2+d_3=17.224ms d1+d2+d3=17.224ms

P8.

Suppose users share a 3 Mbps link. Also suppose each user requires 150 kbps when transmitting, but each user transmits only 10 percent of the time. (See the discussion of packet switching versus circuit switching in Section 1.3 .)
a. When circuit switching is used, how many users can be supported?
b. For the remainder of this problem, suppose packet switching is used. Find the probability that a given user is transmitting.
c. Suppose there are 120 users. Find the probability that at any given time, exactly n users are transmitting simultaneously. (Hint: Use the binomial distribution.)
d. Find the probability that there are 21 or more users transmitting ­simultaneously

假设用户共享一条3Mbps的链路,且每个用户的传输所需的速率是150kbps,但是每个用户仅占用10%的时间(可参照1.3节关于分组交换和电路交换的比较)。
a, 使用电路交换时,最多可以支持多少用户?
b, 假如使用分组交换,给出某位用户正在传输的概率
c, 假设有120位用户,求出在某个时间恰好有n个用户正在传输的概率。(提示:使用二项分布)
d,计算出同时传输的用户数量大于等于21的概率

答案:
a,20
b,0.1
c, C ( n , 120 ) ∗ 0. 1 n ∗ 0. 9 120 − n C(n,120)*0.1^n*0.9^{120-n} C(n,120)0.1n0.9120n
d, 0.079

P9.

Consider the discussion in Section 1.3 of packet switching versus circuit switching in which an example is provided with a 1 Mbps link. Users are generating data at a rate of 100 kbps when busy, but are busy generating data only with probability p = 0.1. Suppose that the 1 Mbps link is replaced by a 1 Gbps link.
a. What is N, the maximum number of users that can be supported simultaneously under circuit switching?
b. Now consider packet switching and a user population of M users. Give a formula (in terms of p, M, N) for the probability that more than N users are sending data.
考虑在1.3节中分组交换和电路交换的对比,原题中提供的是一个1Mbps的链路,用户使用时的速率是100kbps,用户的使用概率p=0.1。假设原本的1Mbps链路更改为1Gbps。

a, 若使用电路交换,最大能支撑多少用户?
b, 考虑分组交换,用户数量为M,求出使用的用户数量大于N的概率(用符号p,M,n表示)。

答案:
a, 10000
b, 在这里插入图片描述

P10.

Consider a packet of length L that begins at end system A and travels over three links to a destination end system. These three links are connected by two packet switches. Let d i d_i di , s i s_i si , and R i R_i Ri denote the length, propagation speed, and the transmission rate of link i, for i=1,2,3 . The packet switch delays each packet by d p r o c d_{proc} dproc . Assuming no queuing delays, in terms of d i d_i di , s i s_i si , R i R_i Ri,(i = 1,2,3), and L, what is the total end-to-end delay for the packet? Suppose now the packet is 1,500 bytes, the propagation speed on all three links is 2.5 × 1 0 8 m / s 2.5\times10^8m/s 2.5×108m/s , the transmission rates of all three links are 2 Mbps, the packet switch processing delay is 3 msec, the length of the first link is 5,000 km, the length of the second link is 4,000 km, and the length of the last link is 1,000 km. For these values, what is the end-to-end delay?
假设一个分组长度为L,它从端系统A出发经过3段链路到达目的端系统,三段链路由两个分组交换机连接。 设链路i的长度、传播速率、传输速率分别为 d i d_i di , s i s_i si , R i R_i Ri(i取值为1,2,3),分组交换时延是 d p r o c d_{proc} dproc,忽略排队时延,端到端时延是多少?
如果分组长度是1500字节,所有链路的传播速率是 2.5 × 1 0 8 m / s 2.5\times10^8m/s 2.5×108m/s,传播速率是2Mbps,处理时延是3ms, 三段链路的长度分别为5000km, 4000km, 1000km, 这时的端到端时延是?

答案:
1)
传播时延: d p r o p = ∑ i = 1 3 d i s i d_{prop}=\sum_{i=1}^{3}\frac{d_i}{s_i} dprop=i=13sidi
传输时延: d t r a n s = ∑ i = 1 3 L R i d_{trans}=\sum_{i=1}^{3}\frac{L}{R_i} dtrans=i=13RiL
处理时延: 2 d p r o c 2d_{proc} 2dproc/注意处理时延和交换机数量有关!!!/
端到端时延: d e n d − t o − e n d = ∑ i = 1 3 ( d i s i + L R i ) + 2 d p r o c d_{end-to-end}=\sum_{i=1}^{3}(\frac{d_i}{s_i}+\frac{L}{R_i})+2d_{proc} dendtoend=i=13(sidi+RiL)+2dproc

带入1)中的式子:
d e n d − t o − e n d = 64 m s d_{end-to-end}=64ms dendtoend=64ms

P11.

In the above problem, suppose R 1 = R 2 = R 3 = R R_1=R_2=R_3=R R1=R2=R3=R and d p r o c = 0 d_{proc}=0 dproc=0. Further suppose the packet switch does not store-and-forward packets but instead immediately transmits each bit it receives before waiting for the entire packet to arrive. What is the end-to-end delay?
接着讨论上一题(P10),这次我们假设 R 1 = R 2 = R 3 R_1=R_2=R_3 R1=R2=R3 d p r o c = 0 d_{proc}=0 dproc=0,并且分组交换不使用存储转发传输,而是收到每一个比特后立即将其发出。端到端时延是多少?

答案:
传播时延: d p r o p = d 1 / s 1 + d 2 / s 2 + d 3 / s 3 d_{prop} = d_1/s_1 + d_2/s_2+ d_3/s_3 dprop=d1/s1+d2/s2+d3/s3
传输时延: d t r a n s = L / R d_{trans} = L/R dtrans=L/R
端到端时延: d e n d − t o − e n d = d 1 / s 1 + d 2 / s 2 + d 3 / s 3 + L / R d_{end-to-end} = d_1/s_1 + d_2/s_2+ d_3/s_3+L/R dendtoend=d1/s1+d2/s2+d3/s3+L/R

按P10的数据, d e n d − t o − e n d = 46 m s d_{end-to-end} = 46ms dendtoend=46ms

主要是要理解传输时延的变化。当分组交换不使用存储转发传输后,分组交换机也就不会再增加传输时延了。

P12.

A packet switch receives a packet and determines the outbound link to which the packet should be forwarded. When the packet arrives, one other packet is halfway done being transmitted on this outbound link and four other packets are waiting to be transmitted. Packets are transmitted in order of arrival. Suppose all packets are 1,500 bytes and the link rate is 2 Mbps. What is the queuing delay for the packet? More generally, what is the queuing delay when all packets have length L, the transmission rate is R, x bits of the currently-being-transmitted packet have been transmitted, and n packets are already in the queue?

一个分组交换机收到了一个分组,且已确定好下一步将它发送到某条目的链路。这时在目的链路中,另一个分组已经传输了一半并且另外4个分组正在排队等待。分组按抵达顺序依次处理。
假设所有的分组都是1500字节且链路传输速率是2Mbps, 该分组的排队时延是多少?
将题目一般化,假设所有分组长度为L,传输速率是R,当前正在传输的分组已经传输了x比特,n个分组正在排队,此时的排队时延是多少?

答案:
1) 4.5 × 1500 × 8 / 2000000 = 0.027 s = 27 m s 4.5\times1500\times8/2000000=0.027s=27ms 4.5×1500×8/2000000=0.027s=27ms
2) ( n L + ( L − x ) ) / R (nL + (L - x))/R (nL+(Lx))/R

P13.

a. Suppose N packets arrive simultaneously to a link at which no packets are currently being transmitted or queued. Each packet is of length L and the link has transmission rate R. What is the average queuing delay for the N packets?
b. Now suppose that N such packets arrive to the link every LN/R seconds. What is the average queuing delay of a packet?
a, 假设有N个分组同时抵达,此时分组交换机没有分组正在处理。每个分组的长度是L且链路的传输速率是R,N个分组的平均排队时延是?
b, 假设每隔LN/R都会有N个上述的分组依次抵达分组交换机,平均排队时延是?

答案:
a, ( N − 1 ) L 2 R \frac{(N-1)L}{2R} 2R(N1)L
b, ( N − 1 ) L 2 R \frac{(N-1)L}{2R} 2R(N1)L(这个时间间隔恰好能使分组处理完毕)

P14.

Consider the queuing delay in a router buffer. Let I denote traffic intensity; that is, I=La/R. Suppose that the queuing delay takes the form IL/R(1-I)for I<1.
a. Provide a formula for the total delay, that is, the queuing delay plus the transmission delay.
b. Plot the total delay as a function of L/R
考虑在路由器缓冲区的排队时延问题。 定义I来表示流量强度(I = La/R),假设当I<1时排队时延表示为 I L / R ( 1 − I ) IL/R(1-I) IL/R(1I)
a, 给出总时延的表达式(也就是排队时延+传输时延)
b, 将总时延表示为L/R的函数并绘出函数图像

答案:
a,
在这里插入图片描述
b,
设L/R = x
d = x 1 − a x d=\frac{x}{1-ax} d=1axx
图略。

P15.

Let a denote the rate of packets arriving at a link in packets/sec, and let μ denote the link’s transmission rate in packets/sec. Based on the formula for the total delay (i.e., the queuing delay plus the transmission delay) derived in the previous problem, derive a formula for the total delay in terms of a and μ.
用a表示分组到达链路的速率(单位是:分组/秒), μ \mu μ表示链路的传输速率(单位是:分组/秒)。根据上一题中推导出的时延公式,试用a和 μ \mu μ表示出总时延。

答案:
1 μ − a \frac{1}{\mu-a} μa1(关键代换: μ = R / L \mu=R/L μ=R/L)

P16.

Consider a router buffer preceding an outbound link. In this problem, you will use Little’s formula, a famous formula from queuing theory. Let N denote the average number of packets in the buffer plus the packet being transmitted. Let a denote the rate of packets arriving at the link. Let d denote the average total delay (i.e., the queuing delay plus the transmission delay) experienced by a packet. Little’s formula is N = a ⋅ d N=a·d N=ad. Suppose that on average, the buffer contains 10 packets, and the average packet queuing delay is 10 msec. The link’s transmission rate is 100 packets/sec. Using Little’s formula, what is the average packet arrival rate, assuming there is no packet loss?

考虑在出链路之前有一个路由器的缓冲区。在该题中,你会用到利特尔公式,一个排队理论的著名公式。假定N表示处于缓冲区和正在发送的分组数目之和的平均值,d表示一个分组所经历的总时延的平均值(也就是排队时延加传输时延),a表示分组到达链路的速率。利特尔公式是 N = a ⋅ d N=a·d N=ad.假设平均有10个分组处于缓冲区,且每个分组的平均排队时延是10ms,链路的传输速率是100分组/秒,假设不存在丢包,使用利特尔公式,求出平均的分组到达速率。

答案:
550分组/秒

就是求利特尔公式中的a
d = 10ms(排队时延) + 10ms(传输时延) = 0.02s
N = 11
a = N/d = 550分组/秒

P17.

a. Generalize Equation 1.2 in Section 1.4.3 for heterogeneous processing rates, transmission rates, and propagation delays.
b. Repeat (a), but now also suppose that there is an average queuing delay of d at each node.

a, 对于不同的处理速率、传输速率和传播时延,给岀1.4.3节中式(1-2)的一般表达式
答案:
在这里插入图片描述
答案:
b, 重复(a),不过此时假定在每个节点有平均排队时延。
在这里插入图片描述

P18.

Perform a Traceroute between source and destination on the same continent at three different hours of the day.
a. Find the average and standard deviation of the round-trip delays at each of the three hours.
b. Find the number of routers in the path at each of the three hours. Did the paths change during any of the hours?
c. Try to identify the number of ISP networks that the Traceroute packets pass through from source to destination. Routers with similar names and/or similar IP addresses should be considered as part of the same ISP. In your experiments, do the largest delays occur at the peering interfaces between adjacent ISPs?
d. Repeat the above for a source and destination on different continents. Compare the intra-continent and inter-continent results
在一天的3个不同的小时内,在同一个大陆上的源和目的地之间执行Traceroute.
a.在这3个小时的每个小时中,求出往返时延的均值和方差。
b,在这3个小时的每个小时中,求出路径上的路由器数量。在这些时段中,该路径发生变化了吗?
c, 试图根据源到目的地Traceroute分组通过的情况,辨明ISP网络的数量。具有类似名字和/或类似
的IP地址的路由器应当被认为是同一个ISP的一部分。在你的实验中,在相邻的ISP间的对等接
口处岀现最大的时延了吗?
d,对位于不同大陆上的源和目的地重复上述内容,比较大陆内部和大陆之间的这些结果。

**答案:**略

P19.

a. Visit the site www.traceroute.org and perform traceroutes from two different cities in France to the same destination host in the United States. How many links are the same in the two traceroutes? Is the transatlantic link the same?
b. Repeat (a) but this time choose one city in France and another city in Germany.
c. Pick a city in the United States, and perform traceroutes to two hosts, each in a different city in China. How many links are common in the two traceroutes? Do the two traceroutes diverge before reaching China?
a, 访问www.traceroute.org并且从法国的两个城市到美国的同一个目的主机执行traceroutes。在两次的traceroute中,哪些链路是相同的?
b, 重复(a), 但是这次的起点设为一个法国的城市和一个德国的城市。
c, 选择一个美国的城市为起点,向中国的两个城市的两个主机执行traceroute,两次的traceroute哪些链路是相同的?他们在到达中国之前分开了吗?

**答案:**略

P20.

在这里插入图片描述
Consider the throughput example corresponding to Figure 1.20(b) . Now suppose that there are M client-server pairs rather than 10. Denote R s R_s Rs , R c R_c Rc , and R for the rates of the server links, client links, and network link. Assume all other links have abundant capacity and that there is no other traffic in the network besides the traffic generated by the M client-server pairs. Derive a general expression for throughput in terms of R s , R c , a n d M R_s, R_c,and M Rs,Rc,andM
考虑图1.20(b)中吞吐量的例子。假设现在有M个C-S对而不是10个,定义 R s R_s Rs , R c R_c Rc , 和 R分别表示服务器、客户端、网络链路的速率。假设其他的链路容量都是富余的并且没有其他的流量。根据 R s , R c , 和 M R_s, R_c,和 M Rs,Rc,M推导出吞吐量公式。

答案:
m i n { R c , R s , R / M } min\{R_c,R_s,R/M\} min{Rc,Rs,R/M}

P21.

在这里插入图片描述

Consider Figure 1.19(b) . Now suppose that there are M paths between the server and the client. No two paths share any link. Path k(k = 1,…,M) consists of N links with transmission rates R 1 k , R 2 k , . . . , R N k R_{1k},R_{2k},...,R_{Nk} R1k,R2k,...,RNk. If the server can only use one path to send data to the client, what is the maximum throughput that the server can achieve? If the server can use all M paths to send data, what is the maximum throughput that the server can achieve?
考虑图1.9(b).假设在服务器和客户端之间有M条通路。所有通路之间不共享任何链路。通路k包括N条链路,传输速率分别是 R 1 k , R 2 k , . . . , R N k R_{1k},R_{2k},...,R_{Nk} R1k,R2k,...,RNk。如果服务器仅能通过一条路线发送数据,最大吞吐量是多少? 如果服务器可以通过所有M条链路发送数据,服务器能达到的最大吞吐量是多少?

答案:
1) m a x { m i n { R 11 , R 21 , . . . , R N 1 } , m i n { R 12 , R 22 , . . . , R N 2 } , . . . , m i n { R 1 M , R 2 M , . . . , R N M } } max\{min\{R_{11},R_{21},...,R_{N1}\},min\{R_{12},R_{22},...,R_{N2}\},...,min\{R_{1M},R_{2M},...,R_{NM}\}\} max{min{R11,R21,...,RN1},min{R12,R22,...,RN2},...,min{R1M,R2M,...,RNM}}
2) ∑ i = 1 M m i n { R 1 i , R 2 i , . . . , R N i } \sum^M_{i=1}min\{R_{1i},R_{2i},...,R_{Ni}\} i=1Mmin{R1i,R2i,...,RNi}

P22.

Consider Figure 1.19(b) . Suppose that each link between the server and the client has a packet loss probability p, and the packet loss probabilities for these links are independent. What is the probability that a packet (sent by the server) is successfully received by the receiver? If a packet is lost in the path from the server to the client, then the server will re-transmit the packet. On average, how many times will the server re-transmit the packet in order for the client to successfully receive the packet?
考虑图1.19(b), 假设每个服务器和客户端之间的链路都有一个丢包率p,且每一段链路的丢包率是独立的,一个分组被成功发送到接收端的概率是多少?如果一个分组在从服务器到客户端传输时丢失,服务器需要重新发送分组,平均下来一个包需要再次发送多少次才能被成功传输?

答案:
一次发送成功的概率 p s = ( 1 − p ) N p_s = (1-p)^N ps=(1p)N
发送次数的期望: 1 p s \frac{1}{p_s} ps1
再次发送次数的期望: 1 p s − 1 \frac{1}{p_s}-1 ps11

P23.

Consider Figure 1.19(a) . Assume that we know the bottleneck link along the path from the server to the client is the first link with rate R s R_s Rs bits/sec. Suppose we send a pair of packets back to back from the server to the client, and there is no other traffic on this path. Assume each packet of size L bits, and both links have the same propagation delay d p r o p d_{prop} dprop.
a. What is the packet inter-arrival time at the destination? That is, how much time elapses from when the last bit of the first packet arrives until the last bit of the second packet arrives?
b. Now assume that the second link is the bottleneck link (i.e., R c < R s R_c<R_s Rc<Rs). Is it possible that the second packet queues at the input queue of the second link? Explain. Now suppose that the server sends the second packet T seconds after sending the first packet. How
large must T be to ensure no queuing before the second link? Explain.

在这里插入图片描述
考虑图1.19(a). 假设我们已经知道了从服务器到客户端的瓶颈是第一个链路且它的速率是 R s b i t s / s e c R_s bits/sec Rsbits/sec,假设我们从服务器到客户端不间断地发送两个分组,且路径上不存在其他流量。假设每个分组的长度是L比特,且每一段链路的传播时延是 d p r o p d_{prop} dprop
a, 到达目的地的包间到达时间是多少?也就是说,从第一个数据包的最后一位到达到第二个数据包的最后一位到达经过了多少时间?
b, 现在假定第二段链路是瓶颈链路(即 R c < R s R_c < R_s Rc<Rs) 第二个分组在第二段链路输入队列中排队是可能的吗?请解释原因。现在假定服务器在发送第一个分组T秒之后再发送第二个分组。为确保在第二段链路之前没有排队,T必须要有多长?试解释原因。

答案:
a, L / R s L/R_s L/Rs 第二个分组在一开始要等待第一个分组发送,因此多了一个排队时延
b, 第二个分组在第二段链路会排队。第一个分组 d 1 = L / R s + d p r o p d_1=L/R_s+d_{prop} d1=L/Rs+dprop时到达第二个路由 ,在 d 2 = L / R s + L / R c + d p r o p d_2=L/R_s+L/R_c+d{prop} d2=L/Rs+L/Rc+dprop时离开。第二个分组在 d 3 = 2 L / R s + d p r o p d_3=2L/R_s+d{prop} d3=2L/Rs+dprop时到达第二个分组转发器,由于R_c<R_s, 所以 d 1 < d 3 < d 2 d_1<d_3<d_2 d1<d3<d2, 即第二个分组到达第二个转发器时,第一个分组尚未发送完毕,必然会有时延。
T = d 2 − d 3 = L / R c − L / R s d_2-d_3=L/R_c-L/R_s d2d3=L/RcL/Rs

P24.

Suppose you would like to urgently deliver 40 terabytes data from Boston to Los Angeles. You have available a 100 Mbps dedicated link for data transfer. Would you prefer to transmit the data via this link or instead use FedEx over-night delivery? Explain.
假设你急需从波士顿到洛杉矶发送40T数据,你有一条100Mbps的专用线路,会选择用这条专用线路还是使用FedEx(某快递公司)的隔夜抵达的快递呢?解释一下。

答案:
假设使用网络:
t = 8 × 40 × 1 0 12 100 × 1 0 6 = 3.2 × 1 0 6 s = 888.9 h t = \frac{8\times40\times10^{12}}{100\times 10^6} =3.2\times 10^6s =888.9h t=100×1068×40×1012=3.2×106s=888.9h

显然慢于快递。所以应该使用快递

P25.

Suppose two hosts, A and B, are separated by 20,000 kilometers and are connected by a direct link of R=2Mbps. Suppose the propagation speed over the link is 2.5 × 1 0 8 2.5\times 10^8 2.5×108meters/sec.
a. Calculate the bandwidth-delay product, R ⋅ d p r o p R\cdot d{prop} Rdprop.
b. Consider sending a file of 800,000 bits from Host A to Host B. Suppose the file is sent continuously as one large message. What is the maximum number of bits that will be in the link at any given time?
c. Provide an interpretation of the bandwidth-delay product.
d. What is the width (in meters) of a bit in the link? Is it longer than a ­football field?
e. Derive a general expression for the width of a bit in terms of the propagation speed s, the transmission rate R, and the length of the link m
假设有两个主机,分别是A和B,间隔20000千米并且由一条2Mbps的链路连接。假设传播速率是 2.5 × 1 0 8 m / s 2.5\times 10^8m/s 2.5×108m/s.
a, 求出带宽和时延之积,即 R ⋅ d p r o p R\cdot d{prop} Rdprop.
b,考虑从A向B发送800000比特,假设文件是一个连续的庞大的报文,在链路上最多同时有多少比特?
c, 给出你对带宽和时延之积的理解
d, 在链路上,一个比特的宽度是多少,他比一个足球场的长度更长吗?
e,根据传播速率s, 传播速率R,链路长度m,给出一个比特长度的表达式。

答案:

a, R ⋅ d p r o p = 2 ⋅ 1 0 6 ⋅ 2 ⋅ 1 0 7 2.5 ⋅ 1 0 8 = 1.6 ⋅ 1 0 5 R\cdot d{prop}=2\cdot 10^6\cdot\frac{2\cdot 10^7}{2.5\cdot 10^8}=1.6\cdot 10^5 Rdprop=21062.51082107=1.6105(单位是bits)
b, m i n { R ⋅ d p r o p , L } = 1.6 ⋅ 1 0 5 min\{R\cdot d{prop},L\}=1.6\cdot 10^5 min{Rdprop,L}=1.6105.
c, 在一个传播时延内,第一个比特从链路起点到达链路终点,整个链路刚好被这段时间内传入链路的比特填满。所以传播时延乘以带宽,刚好是链路上同时存在的比特数。
d, 设宽度为w, w = m R ⋅ d p r o p = 125 m w=\frac{m}{R\cdot d{prop}}=125m w=Rdpropm=125m大于一个足球场的长度
e,设宽度为w, w = s / R w=s/R w=s/R

P26.

Referring to problem P25, suppose we can modify R. For what value of R is the width of a bit as long as the length of the link?
参考P25,假设我们可以修改R,R值改为多少时一个比特的宽度等于链路长度?

答案:
s/R=m, R = s/m = 12.5bps

P27.

Consider problem P25 but now with a link of 1Gbps.
a. Calculate the bandwidth-delay product, R ⋅ d p r o p R\cdot d{prop} Rdprop.
b. Consider sending a file of 800,000 bits from Host A to Host B. Suppose the file is sent continuously as one big message. What is the maximum number of bits that will be in the link at any given time?
c. What is the width (in meters) of a bit in the link?
再次考虑P25,但现在链路是1Gbps
a, 计算时延与带宽之积 R ⋅ d p r o p R\cdot d{prop} Rdprop.
b, 考虑从A向B发送800000比特,假设文件是一个连续的庞大的报文,在链路上最多同时有多少比特?
c, 在该链路中,一个比特的长度是多少?

答案:
a, R ⋅ d p r o p = 1 ⋅ 1 0 9 ⋅ 2 ⋅ 1 0 7 2.5 ⋅ 1 0 8 = 8 ⋅ 1 0 8 R\cdot d{prop}=1\cdot10^9\cdot\frac{2\cdot 10^7}{2.5\cdot 10^8}=8\cdot10^8 Rdprop=11092.51082107=8108.
b, m i n { R ⋅ d p r o p , L } = 8 ⋅ 1 0 5 min\{R\cdot d{prop},L\}=8\cdot 10^5 min{Rdprop,L}=8105.
c, w = s / R w=s/R w=s/R=0.25m

P28.

Refer again to problem P25.
a. How long does it take to send the file, assuming it is sent continuously?
b. Suppose now the file is broken up into 20 packets with each packet containing 40,000 bits. Suppose that each packet is acknowledged by the receiver and the transmission time of an acknowledgment packet is negligible. Finally, assume that the sender cannot send a packet until the preceding one is acknowledged. How long does it take to send the file?
c. Compare the results from (a) and (b)
再次考虑P25
a,传输该文件所需的时间是多少?假设发送是不间断的。
b, 假定现在该文件被划分为20个分组,每个分组包含40000比特。假定每个分组被接收方确认, 确认分组的传输时间可忽略不计。前一个分组被确认后,发送方才能发送分组。发送该文件需要多长时间?
c,比较(a)(b)的结果

答案:

a,

d t r a n s + d p r o p = 800000 / 2 ⋅ 1 0 6 + 20000000 / 2.5 ⋅ 1 0 8 = 480 m s d_{trans}+d_{prop}=800000/2\cdot10^6+20000000/2.5\cdot10^8=480ms dtrans+dprop=800000/2106+20000000/2.5108=480ms

b,

d t r a n s + 20 ⋅ d p r o p = 800000 / 2 ⋅ 1 0 6 + 20000000 / 2.5 ⋅ 1 0 8 = 2000 m s d_{trans}+20\cdot d_{prop}=800000/2\cdot10^6+20000000/2.5\cdot10^8=2000ms dtrans+20dprop=800000/2106+20000000/2.5108=2000ms

注:这里尊重官方提供的答案,但我认为确认分组后,需要将确认消息发送给A,这也需要传播时延,顾应当是 d t r a n s + 40 ⋅ d p r o p d_{trans}+40\cdot d_{prop} dtrans+40dprop

P29.

Suppose there is a 10 Mbps microwave link between a geostationary satellite and its base station on Earth. Every minute the satellite takes a digital photo and sends it to the base station. Assume a propagation speed of 2.4 ⋅ 1 0 8 2.4\cdot 10^8 2.4108meters/sec.
a. What is the propagation delay of the link?
b. What is the bandwidth-delay product, R ⋅ d p r o p R\cdot d_{prop} Rdprop?
c. Let x denote the size of the photo. What is the minimum value of x for the microwave link to be continuously transmitting?

假设在一个地球同步卫星和它的地面基站之间有一个10Mbps的微波链路,每分钟,该卫星拍摄一张数码照片并将它送到基站中,假设传播速率是 2.4 ⋅ 1 0 8 2.4\cdot 10^8 2.4108meters/sec.
a, 传播时延是?
b, 带宽与时延之积 R ⋅ d p r o p R\cdot d_{prop} Rdprop是?
c, 设x表示图片大小,假如要使微波持续传输数据,x的最小值是?

答案:

a, d p r o p 36000 k m 2.4 ⋅ 1 0 8 m / s = 150 m s d_{prop}\frac{36000km}{2.4\cdot10^8m/s}=150ms dprop2.4108m/s36000km=150ms (注:地球同步轨道卫星的高度是36000km)
b, R ⋅ d p r o p = 10 M b p s ∗ 150 m s = 1.5 ⋅ 1 0 6 b i t s R\cdot d_{prop}=10Mbps*150ms=1.5\cdot10^6bits Rdprop=10Mbps150ms=1.5106bits
c, x = 10 ⋅ 1 0 6 ⋅ 60 = 6 ⋅ 1 0 8 b i t s x=10\cdot10^6\cdot60=6\cdot10^8bits x=1010660=6108bits

P30.

Consider the airline travel analogy in our discussion of layering in Section 1.5 , and the addition of headers to protocol data units as they flow down the protocol stack. Is there an equivalent notion of header information that is added to passengers and baggage as they move down the airline protocol stack?
考虑1.5节中我们在讨论分层时用飞机旅行类比,随着协议数据单元向协议栈底层流动,数据头在增加。随着旅客和行李移动到航线协议栈底部,有与和数据头等价的概念吗?

**答案:**略。

P31.

In modern packet-switched networks, including the Internet, the source host segments long, application-layer messages (for example, an image or a music file) into smaller packets and sends the packets into the network. The receiver then reassembles the packets back into the original message. We refer to this process as message segmentation. Figure 1.27 illustrates the end-to-end transport of a message with and without message segmentation. Consider a message that is 8 ⋅ 1 0 6 8\cdot10^6 8106 bits long that is to be sent from source to destination in Figure 1.27 . Suppose each link in the figure is 2 Mbps. Ignore propagation, queuing, and processing delays.

a. Consider sending the message from source to destination without message segmentation. How long does it take to move the message from the source host to the first packet switch? Keeping in mind that each switch uses store-and-forward packet switching, what is the total time to move the message from source host to destination host?

b. Now suppose that the message is segmented into 800 packets, with each packet being 10,000 bits long. How long does it take to move the first packet from source host to the first switch? When the first packet is being sent from the first switch to the second switch, the second packet is being sent from the source host to the first switch. At what time will the second packet be fully received at the first switch?

c. How long does it take to move the file from source host to destination host when message segmentation is used? Compare this result with your answer in part (a) and comment.

在这里插入图片描述
Figure 1.27 End-to-end message transport: (a) without message ­segmentation; (b) with message segmentation

d. In addition to reducing delay, what are reasons to use message ­segmentation?

e. Discuss the drawbacks of message segmentation

在现代分组交换网络,包括因特网中,源主机将应用层的长报文(比如一个图片)分割为更小的分组并把分组发送到网络上。接收端会把分组组装使消息复原。我们将这一过程称为报文分段。Figure1.27所描绘的是在使用/不使用报文分段时端到端的报文传输。
考虑一个报文长度是 8 ⋅ 1 0 6 b i t s 8\cdot10^6 bits 8106bits,并在Figure1.27中即将被发送,假设图中每个链路是2Mbps。 忽略传播、排队、处理时延。

a, 考虑不使用报文分段,从起点到终点发送报文,从源主机到第一个分组交换机需要花费多少时间?从源主机到目的主机需要花费多少时间?注意,每个分组交换机使用存储转发的方式。
b, 假设报文被分成800个分组,每个分组长度是10000比特,把第一个分组从源主机移动到第一个分组交换机需要多少时间?当第一个分组发送到第二个分组交换机时,第二个分组正发送到第一个分组交换机。在什么时候第一个分组交换机完整地收到第二个分组呢?
c, 若使用报文分段,把文件从源主机发送到目的主机需要多少时间? 将你的答案与(a)的答案比较,并评价一下。
d, 除了降低时延,报文分段还有什么意义?
e, 讨论报文分段的缺陷。

答案:

a,
从源主机到第一个分组交换机: d 1 = 8 ⋅ 1 0 6 2 ⋅ 1 0 6 = 4 s d_1=\frac{8\cdot 10^6}{2\cdot 10^6}=4s d1=21068106=4s
从源主机到目的主机: d 2 = 3 8 ⋅ 1 0 6 2 ⋅ 1 0 6 = 12 s d_2=3\frac{8\cdot 10^6}{2\cdot 10^6}=12s d2=321068106=12s

b,
第一个分组发送到第一个分组交换机: 10000 b i t s 2 ⋅ 1 0 6 b p s = 5 m s \frac{10000bits}{2\cdot10^6bps}=5ms 2106bps10000bits=5ms
第一个分组交换机完整收到第二个分组: 2 10000 b i t s 2 ⋅ 1 0 6 b p s = 10 m s 2\frac{10000bits}{2\cdot10^6bps}=10ms 22106bps10000bits=10ms

c,
前面已求得,一个分组交换机发送一个分组的时间 d p r o p 1 = 5 m s d_{prop1}=5ms dprop1=5ms
d = ( 800 + 2 ) d p r o p 1 = 4010 m s d=(800+2)d_{prop1}=4010ms d=(800+2)dprop1=4010ms, 花费的时间约为不使用报文分段的1/3。可以理解为:使用报文分段后,源主机和分组交换机可以像流水线一样并行工作,增加了处理能力。

d,
1)降低了对分组交换机缓冲区的要求。(假如发送整个文件,需要很大的缓冲区)
2)假如发送出错,需要重新发送,使用报文分段的话只需要重新发送一个分组,而不是发送整个文件。

e,

  1. 增加了分段与复原带来的处理时延。
  2. 分组的发送必须是有序的
  3. 分组增多会增加数据头的总量

P32.

Experiment with the Message Segmentation applet at the book’s Web site. Do the delays in the applet correspond to the delays in the previous problem? How do link propagation delays affect the overall end-to-end delay for packet switching (with message segmentation) and for message switching?
用本书的Web网站上的报文分段小Java小程序进行实验。该Java程序中的时延与前一个习题中的时延相当吗?链路传播时延是怎样影响分组交换(有报文分段)和报文交换的端到端总时延的。

**答案:**略

P33.

Consider sending a large file of F bits from Host A to Host B. There are three links (and two switches) between A and B, and the links are uncongested (that is, no queuing delays). Host A segments the file into segments of S bits each and adds 80 bits of header to each segment, forming packets of L=80+ S bits. Each link has a transmission rate of R bps. Find the value of S that minimizes the delay of moving the file from Host A to Host B. Disregard propagation delay.
考虑从主机A向主机B发送一个大小为F的大文件。A和B之间有三段链路(两个分组交换机),链路不会拥挤(没有排队时延),主机A将文件分成S比特的分段,并且在每个分段上增加80比特的报文头,整个分组的大小是L=80+S 比特。每个链路的传输速率是Rbps, 请找出使得文件从A发送到B的时延最小的S的值。不考虑传播时延。

答案:

分组数: n = F / S n=F/S n=F/S
单个分组通过单个分组交换机的时延: d 1 = ( 80 + S ) / R d_1=(80+S)/R d1=(80+S)/R
总时延: d = ( n + 2 ) ⋅ d 1 = S + 80 R ⋅ ( F S + 2 ) d=(n+2)\cdot d_1=\frac{S+80}{R}\cdot (\frac{F}{S}+2) d=(n+2)d1=RS+80(SF+2)
求导可得 S = 40 F S=\sqrt{40F} S=40F 时d取得最小值。

  • 8
    点赞
  • 90
    收藏
    觉得还不错? 一键收藏
  • 2
    评论
经典计算机网络教材 Computer Networks, Fourth Edition By Andrew S. Tanenbaum Table of Contents Chapter 1. Introduction Section 1.1. Uses of Computer Networks Section 1.2. Network Hardware Section 1.3. Network Software Section 1.4. Reference Models Section 1.5. Example Networks Section 1.6. Network Standardization Section 1.7. Metric Units Section 1.8. Outline of the Rest of the Book Section 1.9. Summary Chapter 2. The Physical Layer Section 2.1. The Theoretical Basis for Data Communication Section 2.2. Guided Transmission Media Section 2.3. Wireless Transmission Section 2.4. Communication Satellites Section 2.5. The Public Switched Telephone Network Section 2.6. The Mobile Telephone System Section 2.7. Cable Television Section 2.8. Summary Chapter 3. The Data Link Layer Section 3.1. Data Link Layer Design Issues Section 3.2. Error Detection and Correction Section 3.3. Elementary Data Link Protocols Section 3.4. Sliding Window Protocols Section 3.5. Protocol Verification Section 3.6. Example Data Link Protocols Section 3.7. Summary Chapter 4. The Medium Access Control Sublayer Section 4.1. The Channel Allocation Problem Section 4.2. Multiple Access Protocols Section 4.3. Ethernet Section 4.4. Wireless LANs Section 4.5. Broadband Wireless Section 4.6. Bluetooth Section 4.7. Data Link Layer Switching Section 4.8. Summary Chapter 5. The Network Layer Section 5.1. Network Layer Design Issues Section 5.2. Routing Algorithms Section 5.3. Congestion Control Algorithms Section 5.4. Quality of Service Section 5.5. Internetworking Section 5.6. The Network Layer in the Internet Section 5.7. Summary Chapter 6. The Transport Layer Section 6.1. The Transport Service Section 6.2. Elements of Transport Protocols Section 6.3. A Simple Transport Protocol Section 6.4. The Internet Transport Protocols: UDP Section 6.5. The Internet Transport Protocols: TCP Section 6.6. Performance Issues Section 6.7. Summary Chapter 7. The Application Layer Section 7.1. DNS—The Domain Name System Section 7.2. Electronic Mail Section 7.3. The World Wide Web Section 7.4. Multimedia Section 7.5. Summary Chapter 8. Network Security Section 8.1. Cryptography Section 8.2. Symmetric-Key Algorithms Section 8.3. Public-Key Algorithms Section 8.4. Digital Signatures Section 8.5. Management of Public Keys Section 8.6. Communication Security Section 8.7. Authentication Protocols Section 8.8. E-Mail Security Section 8.9. Web Security Section 8.10. Social Issues Section 8.11. Summary Chapter 9. Reading List and Bibliography Section 9.1. Suggestions for Further Reading Section 9.1.1. Introduction and General Works Section 9.2. Alphabetical Bibliography
出版者的话 作译者简介 译者序 前言 第1章 计算机网络和因特网 1.1/什么是因特网/1 1.1.1/具体构成描述/1 1.1.2/服务描述/4 1.1.3/什么是协议/5 1.2/网络边缘/6 1.2.1/客户机和服务器程序/7 1.2.2/接入网/8 1.2.3/物理媒体/13 1.3/网络核心/15 1.3.1/电路交换和分组交换/15 1.3.2/分组是怎样通过分组交换网形成其通路的/20 1.3.3/ISP和因特网主干/21 1.4/分组交换网中的时延、丢包和吞吐量/22 1.4.1/分组交换网中的时延概述/23 1.4.2/排队时延和丢包/25 1.4.3/端到端时延/26 1.4.4/计算机网络中的吞吐量/28 1.5/协议层次和它们的服务模型/30 1.5.1/分层的体系结构/30 1.5.2/报文、报文段、数据报和帧/33 1.6/攻击威胁下的网络/35 1.7/计算机网络和因特网的历史/38 1.7.1/分组交换的发展:1961~1972/38 1.7.2/专用网络和网络互联:1972~1980/39 1.7.3/网络的激增:1980~1990/40 1.7.4/因特网爆炸:20世纪90年代/41 1.7.5/最新发展/42 1.8/小结/42 本书路线图/43 课后习题和问题/44 复习题/44 习题/45 讨论题/49 Ethereal实验/49 人物专访/50 第2章 应用层 2.1/应用层协议原理/52 2.1.1/网络应用程序体系结构/53 2.1.2/进程通信/55 2.1.3/可供应用程序使用的运输服务/56 2.1.4/因特网提供的运输服务/57 2.1.5/应用层协议/60 2.1.6/本书涉及的网络应用/61 2.2/Web应用和HTTP协议/61 2.2.1/HTTP概况/62 2.2.2/非持久连接和持久连接/63 2.2.3/HTTP报文格式/65 2.2.4/用户与服务器的交互:cookie/68 2.2.5/Web缓存/70 2.2.6/条件GET方法/72 2.3/文件传输协议:FTP/73 2.4/因特网中的电子邮件/74 2.4.1/SMTP/76 2.4.2/与HTTP的对比/78 2.4.3/邮件报文格式和MIME/79 2.4.4/邮件访问协议/81 2.5/DNS:因特网的目录服务/84 2.5.1/DNS提供的服务/85 2.5.2/DNS工作机理概述/86 2.5.3/DNS记录和报文/90 2.6/P2P应用/94 2.6.1/P2P文件分发/94 2.6.2/在P2P区域中搜索信息/98 2.6.3/案例学习:Skype的P2P因特网电话/102 2.7/TCP套接字编程/103 2.7.1/TCP套接字编程/104 2.7.2/一个Java客户机/服务器应用程序例子/105 2.8/UDP套接字编程/109 2.9/小结/114 课后习题和问题/115 复习题/115 习题/116 讨论题/120 套接字编程作业/121 Ethereal实验/122 人物专访/122 第3章 运输层 3.1/概述和运输层服务/124 3.1.1/运输层和网络层的关系/125 3.1.2/因特网运输层概述/126 3.2/多路复用与多路分解/127 3.3/无连接运输:UDP/133 3.3.1/UDP报文段结构/135 3.3.2/UDP检验和/135 3.4/可靠数据传输的原理/136 3.4.1/构造可靠数据传输协议/137 3.4.2/流水线可靠数据传输协议/144 3.4.3/回退N步/147 3.4.4/选择重传/149 3.5/面向连接的运输:TCP/154 3.5.1/TCP连接/154 3.5.2/TCP报文段结构/156 3.5.3/往返时延的估计与超时/160 3.5.4/可靠数据传输/162 3.5.5/流量控制/166 3.5.6/TCP连接管理/168 3.6/拥塞控制原理/173 3.6.1/拥塞原因与开销/173 3.6.2/拥塞控制方法/177 3.6.3/网络辅助的拥塞控制例子:ATMABR拥塞控制/178 3.7/TCP拥塞控制/180 3.8/小结/187 课后习题和问题/189 复习题/189 习题/190 讨论题/195 编程作业/196 Ethereal实验:探究TCP/196 Ethereal实验:探究UDP/196 人物专访/196 第4章 网络层 4.1/概述/199 4.1.1/转发和选路/200 4.1.2/网络服务模型/202 4.2/虚电路和数据报网络/203 4.2.1/虚电路网络/204 4.2.2/数据报网络/206 4.2.3/虚电路和数据报网络的由来/208 4.3/路由器工作原理/208 4.3.1/输入端口/210 4.3.2/交换结构/211 4.3.3/输出端口/212 4.3.4/何时出现排队/213 4.4/网际协议:因特网中的转发和编址/215 4.4.1/数据报格式/216 4.4.2/IPv4编址/220 4.4.3/ICMP:互联网控制报文协议/230 4.4.4/IPv6/232 4.4.5/IP安全性概述/236 4.5/选路算法/237 4.5.1/链路状态选路算法/239 4.5.2/距离向量选路算法/242 4.5.3/层次选路/248 4.6/因特网中的选路/250 4.6.1/因特网中自治系统内部选路:RIP/251 4.6.2/因特网中AS内部选路:OSPF/253 4.6.3/自治系统间的选路:BGP/255 4.7/广播和多播选路/260 4.7.1/广播选路算法/260 4.7.2/多播/264 4.8/小结/269 课后习题和问题/270 复习题/270 习题/271 讨论题/277 编程作业/278 Ethereal实验/278 人物专访/279 第5章 链路层和局域网 5.1/链路层:概述和服务/281 5.1.1/链路层提供的服务/281 5.1.2/链路层在何处实现/283 5.2/差错检测和纠错技术/284 5.2.1/奇偶校验/285 5.2.2/检验和方法/287 5.2.3/循环冗余检测/287 5.3/多路访问协议/288 5.3.1/信道划分协议/290 5.3.2/随机接入协议/292 5.3.3/轮流协议/297 5.3.4/局域网/297 5.4/链路层编址/298 5.4.1/MAC地址/298 5.4.2/地址解析协议/300 5.5/以太网/303 5.5.1/以太网帧结构/304 5.5.2/CSMA/CD:以太网的多路访问协议/307 5.5.3/以太网技术/309 5.6/链路层交换机/310 5.6.1/交换机转发和过滤/311 5.6.2/自学习/312 5.6.3/链路层交换机的性质/313 5.6.4/交换机和路由器的比较/314 5.7/PPP:点对点协议/315 5.8/链路虚拟化:网络作为链路层/318 5.8.1/异步传输方式/318 5.8.2/多协议标签交换/322 5.9/小结/324 课后习题和问题/325 复习题/325 习题/325 讨论题/329 Ethereal实验/329 人物专访/329 第6章 无线网络和移动网络 6.1/概述/332 6.2/无线链路和网络特征/334 6.3/WiFi:802.11无线LAN/339 6.3.1/802.11体系结构/339 6.3.2/802.11MAC协议/342 6.3.3/IEEE802.11帧/345 6.3.4/在相同的IP子网中的移动性/348 6.3.5/802.11中的高级特色/348 6.3.6/802.11以外的标准:蓝牙和WiMAX/349 6.4/蜂窝因特网接入/352 6.4.1/蜂窝网体系结构概述/353 6.4.2/蜂窝网标准和技术:简要回顾/354 6.5/移动管理:原理/356 6.5.1/寻址/358 6.5.2/选路到移动节点/359 6.6/移动IP/363 6.7/蜂窝网中的移动性管理/366 6.7.1/对移动用户呼叫的选路/367 6.7.2/GSM中的切换/368 6.8/无线和移动性:对高层协议的影响/370 6.9/小结/372 课后习题和问题/372 复习题/372 习题/373 讨论题/375 Ethereal实验/375 人物专访/376 第7章 多媒体网络 7.1/多媒体网络应用/378 7.1.1/多媒体应用的例子/378 7.1.2/当今因特网上的多媒体障碍/380 7.1.3/因特网应该如何演化才能更好地支持多媒体/381 7.1.4/音频和视频压缩/382 7.2/流式存储音频和视频/384 7.2.1/通过Web服务器访问音频和视频/385 7.2.2/从流式服务器向助手应用程序发送多媒体/386 7.2.3/实时流协议/388 7.3/充分利用尽力而为服务/390 7.3.1/尽力而为服务的限制/390 7.3.2/在接收方消除音频的时延抖动/392 7.3.3/从丢包中恢复/394 7.3.4/在今天的因特网中分发多媒体:内容分发网络/397 7.3.5/规划尽力而为网络以提供服务质量/399 7.4/实时交互应用的协议/400 7.4.1/RTP/400 7.4.2/RTP控制协议/403 7.4.3/SIP/405 7.4.4//H.323/409 7.5/提供多个等级的服务/410 7.5.1/启发研究的场景/411 7.5.2/调度和监管机制/414 7.5.3/区分服务/419 7.6/提供服务质量保证/423 7.6.1/一个有启发的例子/423 7.6.2/资源预约、呼叫准入、呼叫建立/424 7.6.3/在因特网中确保QoS:Intserv和RSVP/425 7.7/小结/427 课后习题和问题/428 复习题/428 习题/429 讨论题/433 编程作业/433 人物专访/434 第8章 计算机网络中的安全 8.1/什么是网络安全/436 8.2/密码学的原则/438 8.2.1/对称密钥密码学/440 8.2.2/公开密钥加密/443 8.3/报文完整性/447 8.3.1/密码散列函数/447 8.3.2/报文鉴别码/449 8.3.3/数字签名/450 8.4/鉴别/455 8.4.1/鉴别协议ap1.0/455 8.4.2/鉴别协议ap2.0/456 8.4.3/鉴别协议ap3.0/456 8.4.4/鉴别协议ap3.1/457 8.4.5/鉴别协议ap4.0/457 8.4.6/鉴别协议ap5.0/458 8.5/电子邮件安全/460 8.5.1/安全的电子邮件/461 8.5.2/PGP/464 8.6/使TCP连接安全:SSL/465 8.6.1/宏观描述/466 8.6.2/更完整的描述/468 8.7/网络层安全性:IPsec/469 8.7.1/鉴别首部协议/469 8.7.2/ESP协议/470 8.7.3/SA和密钥管理/471 8.8/使无线LAN安全/471 8.8.1/有线等效保密/472 8.8.2/IEEE802.11i/473 8.9/运行安全性:防火墙和入侵检测系统/475 8.9.1/防火墙/475 8.9.2/入侵检测系统/479 8.10/小结/482 课后习题和问题/482 复习题/482 习题/483 讨论题/485 Ethereal实验/485 人物专访/485 第9章 网络管理 9.1/什么是网络管理/487 9.2/网络管理的基础设施/490 9.3/因特网标准管理框架/493 9.3.1/管理信息结构:SMI/494 9.3.2/管理信息库:MIB/496 9.3.3/SNMP协议运行和传输映射/498 9.3.4/安全性和管理/500 9.4/ASN.1/502 9.5/小结/506 课后习题和问题/506 复习题/506 习题/507 讨论题/507 人物专访/507 参考文献/509

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值