Chapter Three
Algorithm 1: Rebroadcasting Vehicle Selection Algorithm
46: If backoff counter = 0 Then 47: Respond with a CTB packet
3.2.7 Encoded Message Redundancy Control
When vehicle π has successfully received a CTB short frame, then π automatically becomes the current broadcast vehicle to broadcast the encoded packets after waiting one Short Inter-Frame Space (SIFS) time interval. Using the rebroadcast station selection metric Ξ·, the selected rebroadcasting vehicle acknowledges reception of the encoded packets once a successful transmission is done. Each vehicle maintains a list that contains the records of the recently received encoded packets in the last π ms. The entries in the list include the source vehicle address (S_Addr) and sequence number (Seq_Num) of the encoded packets. When vehicle π receives an encoded message, it checks the list and drops the encoded message if that exact Seq_Num and S_Addr of π have already been recorded before in the list. Consequently, the proposed CARER protocol controls and prevents packets redundancy by automatically deleting duplicates of already received encoded messages. Otherwise, the entries of the list are update with the successfully received encoded message. After the receiver, say vehicle π has successfully replied vehicle π with an ACK packet upon successful reception of the encoded packet, π automatically becomes the next broadcast station (i.e. the selected rebroadcasting node that will rebroadcast (or relay) the encoded messages to guarantee wider transmission coverage) and repeats the RTB/CTB handshake in the MAC layer. The transmission of the ACK frame is initiated at a time interval equal to one SIFS after the end of the reception of the transmitted encoded message(s).
61
3.3 Media Access Delay
The delay ππ caused by the process of choosing a vehicle to rebroadcast the
encoded messages is the function of the time interval between the transmission of an RTB frame by the source node and successful selection of a vehicle that will rebroadcast the encoded messages. Hence, this delay ππ is computed as the addition of the two delays experienced due to an RTB/CTB handshake, and mathematically expressed as
ππ= π΄πΌπΉπ[4] + ππ ππ΅+ ππΆππ΅ (3.20)
If π€ is denoted as the average time interval it took the back-off counter of the broadcast vehicle to reach 0, then
ππ ππ΅ = β 4ππ(1 β 4π)[π(π€ + π‘ππ‘π_π) + (π€ + π‘ππ‘π)] β
π=0
(3.21)
where 4ππ(1 β 4π) represents the probability that the sender successfully transmitted an
RTB short packet at back-off period π with average corresponding delay of π(π€ + π‘ππ‘π_π) + (π€ + π‘ππ‘π). Since the proposed protocol enables nodes to start a timer in terms of mini-slots to enable them to contend for channel access, if the ππ‘β time slot is selected then π€ can be represented with π€|π (π β [0, πΆπ[4]]) which then allows the source node to uniformly select a time slot from [0, πΆπ[4]] so that
π€ = β ( 1 1 + πΆπ[4]) . (π€|π) πΆπ[4] π=0 (3.22) and,
62 π€|π = {β πΜ π‘ π π=1 , π β [0, πΆπ[4]] (3.23) 0, π = 0
where ππ‘ represents the average time delay in the ππ‘β time slot of πΆπ[4] and πΜ π‘ denotes
the mean of the average time delay. This time delay may have been caused by the frozen time owing to a successful message transmission, collisions or simply an idle time slot.
The total access delay π of the encoded message is a function of the time interval between the arrival of the message at the head of the queue and its acknowledgement. This time interval consists of: 1) an arbitration inter-frame space (AIFS); 2) the delay ππ ππ΅ due to backoff procedure, the frozen time as a result of other ongoing broadcasts, the rebroadcasting (i.e., the retransmission) duration owing to an RTB collisions and the successful RTB broadcast time; 3) delay ππΆππ΅ due to retransmission as a result of a CTB
collision and its successful transmission; and 4) the delay ππππ due to the encoded message collision, successful transmission and acknowledgement. Accordingly, the overall encoded message access delay π becomes
π = π΄πΌπΉπ[4] + ππ ππ΅+ ππΆππ΅+ ππππ (3.24)
Let πππ represent the incidence that a stationβs encoded message transmission ended in collision in the ππ‘β time slot while πππ represents the incidence of a successful transmission in the ππ‘β time slot and π
ππ represents the event that there is no transmission in the ππ‘β time
slot. Therefore, the probability that there is no attempt of transmitting the encoded message in the ππ‘β time slot can be shown as
π(πππ)= β(1 β ππ)(ππ)(π₯π),π (3.25) 4
π=0
while the probability of successful transmission of the encoded message in the ππ‘β time slot can be shown as
63 π(πππ ) = β (1 β ππ)ππ 4 πβ[0,4] . β π₯π,π 4 π=0 . ππ. ( ππ 1) . (1 β ππ) (ππβ1) (3.26) where π₯π, π = { 1, if π΄πΌπΉπ[π] β€ π΄πΌπΉπ[4] + π 0, otherwise
and π₯π, π cross-checks whether the nearby stations of AC[i] will be contending with the
source node for the channel access in the ππ‘β time slot of CW[4], and ππ represents the total number of neighbouring stations belonging to AC[i] which are contending for channel access. Consequently, the probability of collision at the attempt of transmission of the encoded message in the ππ‘β time slot can be shown as
π(πππ) = 1 β π(πππ )β π(πππ) = 1 β [( β (1 β ππ)ππ 4 πβ[0,4] . β π₯π,π 4 π=0 . ππ. ( ππ 1) . (1 β ππ) (ππβ1) ) β (β(1 β π π)(ππ)(π₯π),π 4 π=0 )] (3.27)
Thus, the overall average frozen period experienced by the transmitting vehicle per one successful encoded message transmission and one successful broadcast duration of AC[i] is denoted as πΉΜ . From Eq. (3.26), the successful broadcast probability of AC[i] can be obtained as β4πβ[0,4](1 β ππ)ππ. β π₯π,π
4 π=0
. ππ. (π1π). (1 β ππ)(ππβ1), hence, the average
frozen time due to one successful transmission of encoded message by the source broadcasting vehicle can be expressed as
64 πΉΜ = β (1 β ππ)ππ 4 πβ[0,4] . β π₯π,π 4 π=0 . ππ. (ππ 1) . (1 β ππ) (ππβ1). π π΄πΆ[π] (3.28)
Let the total frozen time experienced by the source broadcasting vehicle as a result of one packet collision be denoted as βΜ , which is approximately equal to ππ ππ΅+ π΄πΌπΉπ[4].
Accordingly, the mean of the average delay in the ππ‘β timeslot can be linearly expressed as
πΜ π‘ = (βΜ β π(πππ)) + (πΉΜ β π(πππ )) + (π β π(πππ)) (3.29)
The total period of time between the successful reception of an RTB packet by the selected rebroadcasting vehicle and the successful reception of a CTB packet by the encoded message source vehicle, ππΆππ΅, varies depending on the duration it takes the source vehicle
to receive a CTB packet successfully from the selected rebroadcasting vehicle. With the proposed CARER protocol, the selected rebroadcasting vehicle initiates its back-off counter in order to reply with a CTB packet for the RTB packet received from the encoded message source node. A three state space π, π, and π is used to illustrate the back-off processes which accurately represent the activities of the successfully selected rebroadcasting vehicleβs back-off timer with back-off stage denoted by π|π β [0, ππππ₯], the initial value of the back-off counter denoted by π|π β [1, πππ], and the total number of elapsed mini-slots since the beginning of the back-off timer denoted by π|π β [0, πππ]. The wireless radio channel is hypothetically assumed to be in one of three possible states, such as success, collision, or idle state, which takes into consideration the cases of one transmission at a time, multiple simultaneous transmissions, and no transmission attempt, respectively, over the wireless radio channel. Let us define ππ π’π and ππππ as the duration of a successful transmission, and collision duration of encoded packet, respectively. Hence, ππ π’π and ππππ can be expressed, respectively as
65 ππ π’π = [πΏ π ] + (π΄πΌπΉπ + πππ»π) (3.30) and ππππ = [ πΏ π ] + (πΈπΌπΉπ + πππ»π) (3.31)
where πΏ, π , and πππ»π represent the encoded packet length, the data rate, and the time
duration of the physical layer convergence protocol (PLCP) preamble and header, respectively. Following the illustrated state transition through back-off slots in different contention zones, ππΆππ΅ becomes
ππΆππ΅ = β (β ππ‘(π) πβ1 π=0 ) [ππππ+ (ππ π’πβ ππ)] ππππ₯ π=0 (3.32)
where ππππ and ππ π’π represent the probability of collision and successful transmission of CTB packet, respectively, and ππ denotes the total period of time taken for the selected rebroadcasting vehicle to successfully reply the source node with a CTB packet, all at back-off stage π. Finally, the average period of time taken to successfully transmit the encoded packet can be given by
ππππ = β ππ(1 β π)[π(π€ + π
π ππ΅_π+ πππΌπΉπ+ ππ΄πΆπΎ+) + (ππ ππ΅+ ππΆππ΅)]
β
π=0
(3.33)
where ππ(1 β π) represents the probability of encoded packet successful transmission after π total number of attempts, and [π(π€ + ππ ππ΅_π+ πππΌπΉπ+ ππ΄πΆπΎ+) + (ππ ππ΅+ ππΆππ΅)]
66
3.4 Location-Aware Algorithm (LAA)
In VANETs, nodes are aware of their location (or coordinates) with the help of the embedded global positioning system (GPS). Vehicles also discover the location of their neighbouring vehicles from the status messages broadcasted periodically by each node which contains vehicle direction, velocity, position and MAC information. Given that the coordinates of the destination vehicle are known, the direction and distance from the source to the destination nodes is calculated by using vector formulae where the magnitude
Fig. 3.5: Graphical representation of Vector π΄π΅Μ Μ Μ Μ
of vector π΄π΅Μ Μ Μ Μ is the distance between station A, and B as depicted in Fig. 3.5. Mathematically, the transmitting vehicle calculates the distance to its destination nodes using
π΄π΅
Μ Μ Μ Μ = β(π₯2β π₯1)2+ (π¦2β π¦1)2 (3.34)
where (π₯1, π¦1) and (π₯2, π¦2) stands for initial and final coordinates of the vehicles, respectively. In the same manner, the direction of the vector π΄π΅Μ Μ Μ Μ is given by π which is the formation of horizontal angle between point A and B.
π = π‘ππβ1{π¦2βπ¦1 π₯2βπ₯1} (3.35) y x Node B (π₯2, π¦2) Node A (π₯1, π¦1)
67
3.5 Performance Evaluation Measurement
The following performance evaluation measurements are used in conjunction with the performance metrics used in [170] to evaluate the results of the analysis and the simulation experiments:
βͺ Data delivery rate π·π·πππ‘π, which is the rate of data packets that are successfully
delivered to the selected rebroadcasting vehicle for the purposes of relaying to cover wider transmission range. It reflects the degree of reliability of the proposed scheme. The encoded data delivery rate is given as
π·π·πππ‘π β
πππ π΅ πππΊπΈπ
(3. [159])
where πππ π΅ and πππΊπΈπ represent the total number of encoded messages successfully received from the source vehicle by the selected rebroadcasting vehicle and the overall number of encoded messages generated by the sender, respectively.
βͺ Average delivery delay βπ, which is the average period it takes a data message to
successfully arrive at the destination. βπ also encompasses the delay due to route discovery process, and the queue in data message broadcast. Thus, the average encoded packet delivery delay is given by
βπβ ( β [ππππ π΅π β ππππΊπΈππ]
πππ π΅
π=1
) πβ ππΊπΈπ (3.37)
where ππ
ππ π΅πand ππππΊπΈππ denote the duration taken before the π
π‘β encoded packet is
successfully received by the selected rebroadcasting vehicle, and the exact time it was generated at the source vehicle, respectively.
βͺ System Throughput π―, which is the aggregate of data rate delivered to all vehicles in the network that are beyond the radio transmission range of the original source node, as a result of the rebroadcast transmission of the selected relay vehicle. This throughput can also be referred to as aggregate throughput of the network. According to [170], the
68
steady-state system throughput π― of random access, and data packet broadcast network can be expressed as π― = πβππβ ππ π€(π) (ππ)π π! β π=1 (3.38)
where π denotes the data packets arrival rate, π represents the average duration per time slot, ππ denotes the average number of data packet attempted transmissions per time slot (i.e. the average offered load), and ππ€(π) is the probability of the selected
rebroadcasting vehicle receiving an encoded packet without errors when π simultaneous transmissions are on the wireless channel. It is expressed as ππ€(π) = [1 β π΅πΈπ (π)]πΏ with πΏ representing the length of the encoded packet in bits.
3.6 Simulation Setup
In this section, a comparison of CARER and reference protocol (SR scheme) is demonstrated using simulation experiments, focusing on a highway scenario with 200 vehicles.