



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




(a) Does A finish transmitting the frame before it detects that there was a collision? Explain. No, it does not. A’s transmission reaches B at 25 μs, and the beginning of the frame from B arrives back at A at 50 μs. A does not finish transmitting its own frame until 51.2s μs, hence it will detect a collision before the frame is done. (b) What time does A finish sending the jamming signal? What time does B finish sending the jamming signal? A hears a collision at 50 μsand then jams for 3.2 μs, for a total of 53.2 μs. B hears the collision at 25 μsbut has just started sending the preamble, so it sends a total of 96 bits and finishes at 34.6 μs. (c) What time does A hear an idle channel again? What time does B first hear an idle channel again? A hears an idle channel 25 μsafter B finishes transmitting, at 59.6 μs. Likewise, B hears an idle channel 25 μsafter A finishes transmitting, at 78.2 μs. (d) Suppose each host next decides to retransmit immediately after hearing the channel idle. After the resulting (second) collision: When does A next hear the channel idle? When does B next hear the channel idle? A transmits at 59.6 μs, and B hears this transmission at 84.6 μs. B itself started transmitting at 78.2 μsand so it has just finished transmitting the preamble, so it jams for another 3.2 μs. A hears an idle channel at 84.6 + 3.2 + 25 = 112.8 μs. On the other hand, A hears B’s transmission at 78.2 + 25 = 103.2 μsand jams until 106.4 μs. B hears the channel as idle at 106.4 + 25 = 131.4 μs. (e) Suppose after the second collision, A decides to wait 512 bit durations to retransmit (if it hears silence after that long) and B decides to retransmit immediately after hearing a silent channel. Is the transmission of host B successful? A is waiting 512 bit durations, so it will not start transmitting until 112.8 + 51.2 = 164 μs. B transmits at 131.4 μs, and the signal reaches A at 156.4 μs, while A is still waiting. Therefore, B’s transmission is successful.
(a) Find the probability qi of a collision in the ith round, given that there are collisions in the previous i − 1 rounds (i.e. q 1 = 1, q 2 = 1/2), for all i ≥ 1.
qi 1 / 2 i−^1
(b) Find the probability pi that exactly i rounds are needed for the first success, and compute p 1 , p 2 ,... , p 4.
pi =
i∏− 1
j=
qj
(^) · (1 − qi)
Figure 1: Ethernet Diagram for Problem 1
Figure 2: Bridged Network Configuration
(a) What ports would be not selected by the spanning tree algorithm? (The ID of each bridge is its number, i.e. B1 has ID 1.) List ports as pairs (bridge, network), i.e. (B1,A). 0: B1 1: B5, B3 2: B6, B2 3: B4, B7 (B6,D), (B6,F), (B6,H), (B7,I) (b) To simplify thinking about the spanning tree problem, suppose that communication among bridges happens in rounds. In each round, a bridge will forward the configuration message it received from the root in the previous round to all its other links, or, if it had not received this message, become root and send a new configuration message. Suppose that bridge B1 fails at round 0 (i.e. it sent out its last message in round -1). How long will it take for the network of bridges to form a new tree? This table lists the configuration messages sent in each round. Messages are of the form (own id, distance from root, root id).
round B1 B2 B3 B4 B5 B6 B -1 (B1, 0, B1) (B2, 2, B1) (B3, 1, B1) (B4, 3, B1) (B5, 1, B1) (B6, 2, B1) (B7, 3, B1) 0 (B2, 2, B1) (B3, 1, B1) (B4, 3, B1) (B5, 1, B1) (B6, 2, B1) (B7, 3, B1) 1 (B2, 2, B1) (B3, 0, B3) (B4, 3, B1) (B5, 0, B5) (B6, 2, B1) (B7, 3, B1) 2 (B2, 0, B2) (B3, 0, B3) (B4, 3, B1) (B5, 0, B5) (B6, 1, B3) (B7, 3, B1) 3 (B2, 0, B2) (B3, 1, B2) (B4, 4, B1) (B5, 2, B3) (B6, 1, B2) (B7, 1, B2) 4 (B2, 0, B2) (B3, 1, B2) (B4, 2, B2) (B5, 2, B2) (B6, 1, B2) (B7, 1, B2)
Note that in round (c) List the ports that are not selected by the new spanning tree.