# Highway Scenario Generation in VANET

(42 customer reviews)

\$0.00

This code implements the highway mobility scenario in VANET 5G. MATLAB is used for the simulation of this. Till now no such code in MATLAB is available for scholars community.

Categories: , ,

## Description

`o`

VANET is the main contributor to heterogenous mobility in 5G. VANET has OBU and RSU as the main communicating units. In our scenario of a highway, all nodes move at different velocity but keep it the same during simulation. Three lanes in each direction are implemented. Though the vehicle moves in each lane and lane changing behavior is kept for future work. In this code, we implemented the cluster head selection using fuzzy logic. The RSU divides the whole network into zones and each zone needs a cluster head. This cluster head is chosen by fuzzy logic. We have done similar work earlier too and published on our website https://free-thesis.com. In this work of cluster head selection in WSN we optimized fuzzy logic membership functions. This good work can be checked at our website here https://free-thesis.com/product/wsn-clustering-using-fuzzy-logic-for-increase-in-residual-energy/.

The whole simulation is divided into four main steps:

```figure
axis([0 highwayL(1)+1 0 highwayL(2)+10]);
hold on
for ii=0:highwayL(2)/laneNo:highwayL(2)
rectangle('Position',[0,ii,highwayL(1),highwayL(2)/laneNo],'FaceColor','k','EdgeColor','g')
hold on
end
rectangle('Position',[0,highwayL(2)/2,highwayL(1),highwayL(2)/laneNo],'FaceColor','w','EdgeColor','w')
```

#### RSU Placement

RSU’s are placed at constant geographical distance. During simulation RSU and nodes position co-ordinates, their neighbors, distance with neighbors etc. are stored as structure.

#### Nodes Placement & Movement

Nodes are randomly deployed in both traffic directions in each lane. No node crosses the lane and moves in its own lane. The mobility depends upon the vehicle speedÂ  and position is updated as

```% for vehicles moving L to R
nodes.LtoR.loc= [nodes.LtoR.loc(:,1)+incLtoR,nodes.LtoR.loc(:,2)]; % update node's positions
h=plot(nodes.LtoR.loc(:,1),nodes.LtoR.loc(:,2),'>b');
incLtoR=nodes.speed;
% for vehicles moving R to L
nodes.RtoL.loc= [nodes.RtoL.loc(:,1)-incRtoL,nodes.RtoL.loc(:,2)]; % update node's positions
h1=plot(nodes.RtoL.loc(:,1),nodes.RtoL.loc(:,2),'<y');
incRtoL=nodes.speed;
```

Each RSU saves the ID of the vehicle which is in its range and makes a cluster of such vehicles. A cluster head for energy efficient data transmission is selected using fuzzy logic. Three vehicle properties network connectivity, average distance, and average velocity are input this fuzzy logic.

```    read .fis file
LW.LtoRnorm=LW.LtoRnorm.*ones(1,size(nodes.RtoL.loc,1));
LW.RtoLnorm=LW.RtoLnorm.*ones(1,size(nodes.RtoL.loc,1));
for kk=1:size(nodes.RtoL.loc,1)
nodes.RtoL.IW(kk)=evalfis(input,fuzzystr);
end

```

The work can be enhanced further for distributed mobility management.

free-thesis.com is an innovative and first of its kind platform created by Vidhilekha Soft Solutions Pvt Ltd, a Startup recognized by the Department For Promotion Of Industry And Internal Trade, Ministry of Commerce and Industry, Government of India recognised innovative research startup.

## 42 reviews for Highway Scenario Generation in VANET

1. Shivangi Srivastava (verified owner)

so glad to say that i got this finally after getting frustrated so much while about these topics and all went in vain . But thanks to this free-thesis that now i have got this.

2. pourhaji (verified owner)

3. seham (verified owner)

good

4. lishuyang1997 (verified owner)

1111

5. yanpeng.cui (verified owner)

1

6. miroslav.feher (verified owner)

ahoj

Thanks

8. e.narayanan (verified owner)

thank you

9. sameer.kumthekar (verified owner)

best one

10. sameer.kumthekar (verified owner)

Thank you !

11. enzey

nice try

12. bhagwati.sharan (verified owner)

good

13. sameer.kumthekar (verified owner)

best one

good

15. yousef.qudeisat (verified owner)

thank you

16. yousef.qudeisat (verified owner)

thanks alot

17. usman.abdurrahman (verified owner)

18. virender.kumar (verified owner)

19. virender.kumar (verified owner)

20. virender.kumar (verified owner)

21. virender.kumar (verified owner)

22. ayesha.siddiqa (verified owner)

Thank You

23. chou_aib (verified owner)

Great

24. Priya (verified owner)

Thnk you

25. shiza_khan41

Thnk you

26. shiza_khan41

Thnk you

27. shreyank.singh (verified owner)

great!!

28. shreyank.singh-9369 (verified owner)

Nice

29. ratna (verified owner)

good

30. Rkaur (verified owner)

kk

31. rakesh.chandra (verified owner)

32. dariush.abidi (verified owner)

good

33. dariush.abidi (verified owner)

good

34. Samra (verified owner)

good

35. sagar.verma (verified owner)

good

36. deepu.rajan (verified owner)

nice

37. achraf.bag (verified owner)

th

38. tmoze41 (verified owner)

perfect

39. akbaralipaper (verified owner)

excellent

40. hafiza zunera.abdul sattar (verified owner)

good

41. ren.charlie (verified owner)

1