Wireless Connectivity. Petar Popovski

Чтение книги онлайн.

Читать онлайн книгу Wireless Connectivity - Petar Popovski страница 27

Wireless Connectivity - Petar Popovski

Скачать книгу

2.4(a) depicts a possible method for randomized spectrum sharing between the links Zoya–Yoshi and Xia–Walt, respectively, by assuming that both systems are synchronized at the slot level. Specifically, Figure 2.4(a) illustrates an example of execution of a transmission protocol for a given pattern of arrival of packets to Zoya, denoted by images, and Xia, (images). Upon experiencing a collision, such as images and images in the third slot, both Zoya and Xia apply randomization in order to decide in which slot each of them will retransmit the packet images and images, respectively. In this example, Zoya stays idle for two slots and only after that retransmits images.

      We can detect at least two inefficiencies created by the slotted structure:

       If a packet arrives after the start of the slot, then the node needs to postpone the first transmission of the packet until the start of the next slot, even if the previous slot is idle.

       Consider the collision between and . Although the packets have not arrived at the same time, both Zoya and and Xia need to wait until the start of the next slot. Thus, the slotted structure forces them to be sent at exactly the same time, which leads inevitably to a collision.

      2.3.2 An Idle Slot is Cheap

      While the idea of minislots and CSMA is introduced here in the context of spectrum sharing, the same mechanism can also be used to design a random access protocol. We can reuse Figure 1.1(b) and think of a system in which Zoya, Yoshi, and Xia use random access to transmit to Basil. Recall that, when we were using the same setting to describe random access, the devices received signals only from the base station Basil and it was not relevant to consider the fact that a device can detect the transmission of another device. By contrast, the new requirement in CSMA is that a device should listen to find out whether the medium has been taken by a transmission from another device.

      Figure 2.4(b) presents a rather basic version of CSMA. For example, there can be a variant in which, upon detecting that the medium is not busy, a node waits for a random number of time slots before starting the transmission. The rationale is that, while the medium is busy, there could have been multiple packet arrivals at different transmitters, and if all of them wait only for a single idle slot then a collision occurs. A similar argument is valid for the following feature that is used in practical systems, such as Wi-Fi. Assume that Zoya experienced a collision and decided to wait for 10 minislots. While waiting, Zoya detects that the medium has been busy for 15 minislots. If Zoya counts down the waiting minislots when the medium is busy, then she finishes the countdown while the medium is still busy and transmits after the idle minislot that follows the busy period. Again, the main problem is that many other nodes could have done the same and thus they get synchronized towards a collision. An elegant solution to this is to stop the counter while the medium is busy, thus removing the synchronizing effect that the busy medium may have on the waiting nodes.

      We note that, as the minislot becomes the basic time reference of the protocol, then this removes the need to assume that all packets are of the same length. The example in Figure 2.4(b) can be easily reworked by assuming that each of the packets images or images has a different length, expressed as an integer number of minislots.

      The gains of carrier sensing improve when the minislot is shorter. Ideally, it should be equal to zero. However, there are practical constraints that put a lower bound on the minislot duration. While it is not part of our collision model, in practice there is always a propagation delay

Скачать книгу