5/5/20151 Mobile Ad hoc Networks COE 549 Transmission Scheduling II Tarek Sheltami KFUPM CCSE COE...

26
03/25/22 1 Mobile Ad hoc Networks COE 549 Transmission Scheduling II Tarek Sheltami KFUPM CCSE COE www.ccse.kfupm.edu.sa/~tarek

Transcript of 5/5/20151 Mobile Ad hoc Networks COE 549 Transmission Scheduling II Tarek Sheltami KFUPM CCSE COE...

Page 1: 5/5/20151 Mobile Ad hoc Networks COE 549 Transmission Scheduling II Tarek Sheltami KFUPM CCSE COE tarek.

04/18/23 1

Mobile Ad hoc Networks COE 549

Transmission Scheduling IITarek Sheltami

KFUPMCCSECOE

www.ccse.kfupm.edu.sa/~tarek

Page 2: 5/5/20151 Mobile Ad hoc Networks COE 549 Transmission Scheduling II Tarek Sheltami KFUPM CCSE COE tarek.

Outline

04/18/23 2

Five Phase Reservation Protocol Scheduling Coloring Scheme

Performance Evaluation

Five-Phase Reservation Protocol (FPRP), C. Zhu and M. S. Corson, Wireless Networks 7, 371–384, 2001 2001, Kluwer Academic Publishers.

Page 3: 5/5/20151 Mobile Ad hoc Networks COE 549 Transmission Scheduling II Tarek Sheltami KFUPM CCSE COE tarek.

topologies (taken from FPRP)

Page 4: 5/5/20151 Mobile Ad hoc Networks COE 549 Transmission Scheduling II Tarek Sheltami KFUPM CCSE COE tarek.

4

Frame Format of FPRP

Page 5: 5/5/20151 Mobile Ad hoc Networks COE 549 Transmission Scheduling II Tarek Sheltami KFUPM CCSE COE tarek.

5

Format Frame Overview

In each Reservation Frame (RF), reservations are made for the next K Information Frames (IF).

Each of the N Reservation Slots (RS) of the reservation frame corresponds to one of the N Information Slots (IS) in each of the K Information Frames.

Each of the N Reservation Slots consists of M Reservation Cycles, during which a transmission schedule is being built.

Each of the M cycles consists of 5 phases. K, N, and M are global design parameters.

Page 6: 5/5/20151 Mobile Ad hoc Networks COE 549 Transmission Scheduling II Tarek Sheltami KFUPM CCSE COE tarek.

6

Phases of a Reservation Cycle

1) Reservation Request (RR) Phase.2) Collision Report (CR) Phase.

Nodes report collisions that occurred in previous phase.

3) Reservation Confirmation (RC) Phase. Nodes confirm their requests.

4) Reservation Acknowledgment (RA) Phase. Nodes acknowledge reservation confirmations.

5) Packing and Elimination (PE) Phase. Deadlocks are removed and tighter transmission

schedules are encouraged.

Page 7: 5/5/20151 Mobile Ad hoc Networks COE 549 Transmission Scheduling II Tarek Sheltami KFUPM CCSE COE tarek.

7

Protocol Description

1. Reservation Request (RR) Phase: Nodes that want to make a reservation transmit a

reservation request, with probability p. We discuss later how to select p. The rest of the nodes will either receive nothing,

receive a single RR packet, or sense a collision.

2. Collision Report (CR) Phase: Any node that sensed a collision in previous phase

transmits a CR packet. Not a problem if CR packets collide. Nodes that transmitted a RR packet but now receive a

CR packet (or more) will remain quiet for the rest of the cycle.

We totally solved the hidden terminal problem.

Page 8: 5/5/20151 Mobile Ad hoc Networks COE 549 Transmission Scheduling II Tarek Sheltami KFUPM CCSE COE tarek.

8

Protocol Description.. Some deadlocks are resolved: (Definition of deadlock: two

nodes transmit to each other.)

3. Reservation Confirmation (RC) Phase: Potential transmitters that were not denied access in phase

2, now transmit an RC packet. RC packets never collide. Now their receivers will now that they must expect a

packet.

4. Reservation Acknowledgment (RA) Phase: Scheduled receivers transmit RA packets.

Page 9: 5/5/20151 Mobile Ad hoc Networks COE 549 Transmission Scheduling II Tarek Sheltami KFUPM CCSE COE tarek.

9

Protocol Description.. These will probably collide (for example at scheduled

transmitter, but that is acceptable.) Their neighbors will never compete again for the same

slot. A few more deadlocks are resolved:

5. Packing and Elimination Phase: Packing packets are transmitted to notify nodes that there

are three hops away from other transmitters:

Page 10: 5/5/20151 Mobile Ad hoc Networks COE 549 Transmission Scheduling II Tarek Sheltami KFUPM CCSE COE tarek.

Elimination packets are transmitted with probability p = 0.5, in an effort to resolve rest of deadlocks:

Protocol Description..

Page 11: 5/5/20151 Mobile Ad hoc Networks COE 549 Transmission Scheduling II Tarek Sheltami KFUPM CCSE COE tarek.

11

Example: Tandem Network, Phases 1-5

I: idleB: blockedR: receiveT: transmitr: receive a packett: transmit a packet

Page 12: 5/5/20151 Mobile Ad hoc Networks COE 549 Transmission Scheduling II Tarek Sheltami KFUPM CCSE COE tarek.

12

General Network, Phase 1

Page 13: 5/5/20151 Mobile Ad hoc Networks COE 549 Transmission Scheduling II Tarek Sheltami KFUPM CCSE COE tarek.

13

General Network, Phase 2

Page 14: 5/5/20151 Mobile Ad hoc Networks COE 549 Transmission Scheduling II Tarek Sheltami KFUPM CCSE COE tarek.

14

General Network, Phase 3

Page 15: 5/5/20151 Mobile Ad hoc Networks COE 549 Transmission Scheduling II Tarek Sheltami KFUPM CCSE COE tarek.

15

General Network, Phase 4

Page 16: 5/5/20151 Mobile Ad hoc Networks COE 549 Transmission Scheduling II Tarek Sheltami KFUPM CCSE COE tarek.

16

General Network, Phase 5

Page 17: 5/5/20151 Mobile Ad hoc Networks COE 549 Transmission Scheduling II Tarek Sheltami KFUPM CCSE COE tarek.

17

General Network, Phase 5

Page 18: 5/5/20151 Mobile Ad hoc Networks COE 549 Transmission Scheduling II Tarek Sheltami KFUPM CCSE COE tarek.

18

After few reservation cycles

Page 19: 5/5/20151 Mobile Ad hoc Networks COE 549 Transmission Scheduling II Tarek Sheltami KFUPM CCSE COE tarek.

Number of reservation cycles M needed

Because of the randomness of the protocol, it may take many cycles until no other node can be added to the set of transmitting nodes.

In addition, nodes can not know when this occurs. In practice, node will execute a fixed, predetermined number of

cycles, and will then move to the next reservation slot. At any given time, nodes try to guess how many nodes they are

competing against, and try to optimize their value of p: If there were many collisions in previous cycles, competition was heavy, so

nodes pick small values of p. If there were many idle slots, nodes pick larger values for p.

Page 20: 5/5/20151 Mobile Ad hoc Networks COE 549 Transmission Scheduling II Tarek Sheltami KFUPM CCSE COE tarek.

20

Number of Cycles Vs Slot

Randomly created graphs with 100 nodes and 7 neighbors per node an the average. Once a node acquires a color, it stops contending. ANC: Average Number of Cycles needed so that maximum number of nodes are colored. FNC: Fixed Number of Cycles needed so that maximum number of nodes are colored with

probability 99%.

Page 21: 5/5/20151 Mobile Ad hoc Networks COE 549 Transmission Scheduling II Tarek Sheltami KFUPM CCSE COE tarek.

After few reservations

Page 22: 5/5/20151 Mobile Ad hoc Networks COE 549 Transmission Scheduling II Tarek Sheltami KFUPM CCSE COE tarek.

22

Nodes can not know when all other nodes were assigned a color.

The number of reservation slots has to be agreed beforehand.

If N is too large, the last of them, and their associated information slots, are wasted.

If N is too small, some nodes will never manage to acquire a color.

In practice, we tolerate that with some small probability each node will not acquire a color.

Number of reservation slots N needed

Page 23: 5/5/20151 Mobile Ad hoc Networks COE 549 Transmission Scheduling II Tarek Sheltami KFUPM CCSE COE tarek.

23

Number of nodes per slot

ANT: Average number of transmitting nodes in each slot. Clearly, the slots toward the end are severely underutilized. How can we fix this?

Page 24: 5/5/20151 Mobile Ad hoc Networks COE 549 Transmission Scheduling II Tarek Sheltami KFUPM CCSE COE tarek.

24

Synchronization

Contention packets only need to be a bit long. But guard times between packets are needed, to

account for imperfect timing and signal propagation times.

To minimize guard times, nodes need to have very accurate clocks with very little drift between them.

One solution: use GPS. Without GPS, clock synchronization is a very hard

distributed control problem..

Page 25: 5/5/20151 Mobile Ad hoc Networks COE 549 Transmission Scheduling II Tarek Sheltami KFUPM CCSE COE tarek.

25

Connection to graph coloring

FPRP algorithm discovers in a distributed manner a coloring of the nodes of the graph, such that no two nodes with the same color are within two hops of each other.

What is the minimum number of colors needed? This is an NP-complete problem. We want our algorithm to color the graph with few colors. Why?

Let the degree of the graph be the maximum number of edges that a node can have.

The degree of our tandem graph is 2. The degree of our general graph is 5 (node 6 has 5 neighbors).

We need at least (degree+1) colors to paint the graph. (Why?)

This is a tight lower bound, which we call the Degree Lower Bound.

Page 26: 5/5/20151 Mobile Ad hoc Networks COE 549 Transmission Scheduling II Tarek Sheltami KFUPM CCSE COE tarek.

26

Comparison between different coloring algorithms

M and N are set very large. Size: number of nodes. DLB: Degree Lower Bound. RAND: Randomized and centralized algorithm. FPRP: Five-Phase Reservation Protocol. R: Parameter affecting average number of neighbors. In left table, R = 1.5. In right table, Size is set to 100.