System of the existence of the vlc module by

This preview shows page 44 - 48 out of 122 pages.

system of the existence of the VLC module by declaring all the source and public headerfiles. Therefore, the VLC module can be built using ns3 Waf build system such that it iscombined and linked to the ns3 libraries.3.6Simulator ExperimentTo show the efficacy of our NS models we demonstrate the use of the system via anexample scenario. We built a small network consisting of four nodes. The model withnext-hop addresses is shown in Figure 3.3. We used static routing to enforce packets flowin one direction across the network. Packets flow out from node1 (Wi-Fi AP) through a26
point-to-point connection to node2 (Relay A), from node2 to node3 (Relay B) using VLClink, then from node3 to node4 (Mobile Terminal) through a point-to-point connection.The same process is repeated in the uplink but using Wi-Fi for the connection betweenRelay B and Relay A. We run the simulator using ns3 and collect the data across the VLClink. We then plotted the collected data using gnuplot.WiFi APRelay ARelay BMobileTerminal10.1.1.110.1.1.210.1.4.210.1.4.110.1.3.210.1.2.2LegendP2P ChannelWiFi ChannelVLC ChannelFigure 3.3Simulated example.3.6.1Simulation SettingsWe consider the scenario illustrated in Figure 3.3 to run our simulator. The connectionbetween node1 (Wi-Fi AP) and node2 (Relay A) is a point-to-point connection with 2msdelay and data rate of 200MbpsThe uplink between node3 and node2 is represented usingthe existing ns3 WiFi model.The last connection between node3 and node4 (MobileTerminal) is point to point with data rate of 200Mbpsand 2msdelay. The downlinkbetween node2 (Relay A) and node3 (Relay B) is the designed VLC connection usingthe parameters provided in Table 3.1, Table 3.2 and Table 3.3 for transmitter, channel andreceiver side, respectively.To study the VLC link at network layer, we created two moving nodes corre-sponding to a transmitter and receiver using the VLC mobility model inside node2 (RelayA) and node3 (Relay B) respectively. The VLC channel in Figure 3.3 was implemented27
Table 3.1Transmitter Simulation ParameterParameterValueTransmitted Power,Pt48.573(dbm)Lambertian Order Semiangle,Φ1/270Transmitter coordinate(0.0,0.0,50.0)Transmitter Azimuth(0.0)Transmitter Elevation(180.0)using VLC channel helper. We increased the distance between the source and destinationfrom0to50meters. The quantity of transmitted data is1MB, where each packet carries1040bytes using a TCP connection.0102030405001e+062e+063e+064e+065e+066e+067e+068e+069e+061e+07Distance (m)GoodPutα= 0.6α= 0.85Figure 3.4VPPM system goodput.3.6.2Simulation ResultsThe goodput results for VPPM, 4-PAM and OOK modulation schemes are illustrated inFigures 3.4, 3.5 and 3.6, respectively. In Figure 3.4 the goodput is shown versus increasing28
Table 3.2Channel Simulation ParametersParameterValueBackground currentIB51006Alower wavelength,λmin380nmupper wavelength,λmax380nmDistance, d50 mAbsolute temperature,Tk295 Kdistance between the transmitter and receiver. The results show that the goodput is veryhigh, reaching9106

Upload your study docs or become a

Course Hero member to access this document

Upload your study docs or become a

Course Hero member to access this document

End of preview. Want to read all 122 pages?

Upload your study docs or become a

Course Hero member to access this document

Term
Fall
Professor
NoProfessor

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture