Data Communications and Networking Forouzan Fourth Edition Chapter 12 Multiple Access 多路访问 12.1 CopyrightThe McGraw-Hill Companies,Inc.Permission required for reproduction or display
12.1 Chapter 12 Multiple Access 多路访问 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display
Figure 12.1 Data link layer divided into two functionality-oriented sub 数据链路层分为两个功能子层: 数据链路控制子层和多路访问控制子层 Data link layer Data link control Multiple-access resolution 12.2
12.2 Figure 12.1 Data link layer divided into two functionality-oriented sublayers 数据链路层分为两个功能子层: 数据链路控制子层和多路访问控制子层
Figure 12.2 Taxonomy of multiple-access protocols discussed in this ch 多路访问控制协议的分类: 随机访问协议 受控访问控制协议 通道化协议 Multiple-access protocols Random access Controlled-access Channelization protocols protocols protocols ALOHA Reservation FDMA CSMA Polling TDMA CSMA/CD Token passing CDMA CSMA/CA 12.3
12.3 Figure 12.2 Taxonomy of multiple-access protocols discussed in this chapter 多路访问控制协议的分类: 随机访问协议 受控访问控制 协议 通道化协议
12-1 RANDOMACCESS 随机访问协议 In random access or contention methods,no station is superior to another station and none is assigned the control over another.No station permits,or does not permit,another station to send.At each instance,a station that has data to send uses a procedure defined by the protocol to make a decision on whether or not to send. 在随机访问或竞争访问方式中,没有一个站点是优于其它站点的, 也不能控制其它站点。没有站点有权力允许或不允许其它站点发 送或不发送数据。有数据要发送的站通过自身的协议决定发送还 是不发送数据。 Topics discussed in this section: ALOHA ALOHA协议 Carrier Sense Multiple Access 载波侦听多路访问协议CSMA Carrier Sense Multiple Access with Collision Detection带有冲突检测能力CSMA Carrier Sense Multiple Access with Collision Avoidance带冲突避免CSMA 12.4
12.4 12-1 RANDOM ACCESS 随机访问协议 In random access or contention methods, no station is superior to another station and none is assigned the control over another. No station permits, or does not permit, another station to send. At each instance, a station that has data to send uses a procedure defined by the protocol to make a decision on whether or not to send. 在随机访问或竞争访问方式中,没有一个站点是优于其它站点的, 也不能控制其它站点。没有站点有权力允许或不允许其它站点发 送或不发送数据。有数据要发送的站通过自身的协议决定发送还 是不发送数据。 ALOHA ALOHA协议 Carrier Sense Multiple Access 载波侦听多路访问协议 CSMA Carrier Sense Multiple Access with Collision Detection 带有冲突检测能力CSMA Carrier Sense Multiple Access with Collision Avoidance 带冲突避免CSMA Topics discussed in this section:
Figure12.3 Frames in a pure ALOHA network纯ALOHA的帧 Station 1 Frame 1.1 Frame 1.2 Time Station 2 Frame 2.1 Frame 2.2 Time Station 3 Frame 3.1 Frame 3.2 Time Station 4 Frame 4.1 Frame 4.2 Time Collision Collision duration duration 12.5
12.5 Figure 12.3 Frames in a pure ALOHA network 纯ALOHA的帧
Figure12.4 Procedure for pure ALOHA protocol纯ALOHA协议的流 Station has K:Number of attempts Start a frame to send Tp:Maximum propagation time Tr:Average transmission time for a frame Tg:Back-off time K=0 Wait Tg time (TB=R×Tpor RXT) Send the frame Choose a random number R between Wait time-out time 0and 2K-1 (2×Tp) No Kmax is K=K+1 No ACK a normally 15 received? Yes Yes Abort Success 12.6
12.6 Figure 12.4 Procedure for pure ALOHA protocol 纯ALOHA协议的流程图
Example 12.1 The stations on a wireless ALOHA network are a maximum of 600 km apart.If we assume that signals propagate at 3 X 108 m/s,we find Tp=(600 X 105)/(3 X 108)=2 ms.Now we can find the value of Te for different values of K. 一个纯ALOHA协议的站点之间最大距离为600公里,信号的传 播速度为30万公里/秒,那么Tp=(600×105)/(3×108)=2ms 。对于不同的K值,得到不同的T值。 For K 1,the range is 0,1.The station needs to generate a random number with a value of 0 or 1.This means that TB is either 0 ms (0 X 2)or 2 ms (1 X 2), based on the outcome of the random variable. 若K=1,则取值范围{0,1}。即站内的随机数位0或1。这意味着 TB是0ms(0X2)或是2ms(1X2)。 12.7
12.7 The stations on a wireless ALOHA network are a maximum of 600 km apart. If we assume that signals propagate at 3 × 108 m/s, we find Tp = (600 × 105 ) / (3 × 108 ) = 2 ms. Now we can find the value of TB for different values of K . 一个纯ALOHA协议的站点之间最大距离为600公里,信号的传 播速度为30万公里/秒,那么Tp = (600 × 105 ) / (3 × 108 ) = 2 ms 。对于不同的K值,得到不同的TB值。 a. For K = 1, the range is {0, 1}. The station needs to| generate a random number with a value of 0 or 1. This means that TB is either 0 ms (0 × 2) or 2 ms (1 × 2), based on the outcome of the random variable. 若K=1,则取值范围{0, 1}。即站内的随机数位0或1。这意味着 TB 是 0 ms (0 × 2)或是2 ms (1 × 2)。 Example 12.1
Example 12.1 (continued) UNIN b.For K -2,the range is 1,2,3.This means that TB can be 0,2,4,or 6 ms,based on the outcome of the random variable. 若K=2,则取值范围{0,1,2,3}。这意味着TB是0ms,2ms,4ms, 6ms。 c.For K -3,the range is 1,2,3,4,5,6,7.This means that Ts can be 0,2,4,··.,l4s,based on the outcome of the random variable. 若K=3,则取值范围{0,1,2,3,4,5,6,7}。这意味着TB是0ms,2ms, 4ms,6ms,.,14ms。 d.We need to mention that if K 10,it is normally set to 10. 但是,若K值大于10时,随机数取值范围通常设定为10。 12.8
12.8 b. For K = 2, the range is {0, 1, 2, 3}. This means that TB can be 0, 2, 4, or 6 ms, based on the outcome of the random variable. 若K=2,则取值范围{0,1,2,3}。这意味着TB 是 0ms, 2ms, 4ms, 6ms。 c. For K = 3, the range is {0, 1, 2, 3, 4, 5, 6, 7}. This means that TB can be 0, 2, 4, . . . , 14 ms, based on the outcome of the random variable. 若K=3,则取值范围{0,1,2,3,4,5,6,7}。这意味着TB 是 0ms, 2ms, 4ms, 6ms,., 14ms。 d. We need to mention that if K > 10, it is normally set to 10. 但是,若K值大于10时,随机数取值范围通常设定为10。 Example 12.1 (continued)
Figure 12.5 Vulnerable time for pure ALOHA protocol 纯ALOHA可能的冲突时间是帧长度的两倍 B's end A's end collides with collides with A's beginning C's beginning 感 B 器 A 器 盈 器 t-Tfr t+Tir Time Vulnerable time =2 x Tfr 12.9
12.9 Figure 12.5 Vulnerable time for pure ALOHA protocol 纯ALOHA可能的冲突时间是帧长度的两倍
Example 12.2 UNI A pure ALOHA network transmits 200-bit frames on a shared channel of 200 kbps.What is the requirement to make this frame collision-free? 一个纯ALOHA帧长200比特,带宽200kbps,这个帧在传输过程中无冲 突的条件是什么? Solution Average frame transmission time Tfr is 200 bits/200 kbps or I ms. The vulnerable time is 2 X I ms 2 ms.This means no station should send later than I ms before this station starts transmission and no station should start sending during the one 1-ms period that this station is sending. 帧的传输时间为Tr=200bits/200kbps=1ms.则可能的冲突时间 为2ms。意味着前1ms和后1ms都没有其它站发送数据帧。 12.10
12.10 A pure ALOHA network transmits 200-bit frames on a shared channel of 200 kbps. What is the requirement to make this frame collision-free? 一个纯ALOHA帧长200比特,带宽200kbps, 这个帧在传输过程中无冲 突的条件是什么? Example 12.2 Solution Average frame transmission time Tfr is 200 bits/200 kbps or 1 ms. The vulnerable time is 2 × 1 ms = 2 ms. This means no station should send later than 1 ms before this station starts transmission and no station should start sending during the one 1-ms period that this station is sending. 帧的传输时间为Tfr = 200 bits/200 kbps = 1 ms. 则可能的冲突时间 为2ms。意味着前1ms和后1ms都没有其它站发送数据帧