# A Novel Energy-Efficient Reservation System for Edge Computing in 6G Vehicular Ad Hoc Network
## 3 Methodology
### Experimental Values of Energy Consumption  
Practically, this energy is calculated from the change in the values of current and voltage; thus, we calculate the power. Then, from the power, the energy consumption is calculated. When the message size is 0.16 KB, the energy consumption will be estimated to align with the ensuing figures  
Before sending message  
\[Current=441\;\text{mA}\] \[Voltage=3.682\;\text{V}\] \[P=V\times I\] \[P=3.682\;\text{V}\times 441\;\text{mA}\]  
\[P_{1}=1.623762\;\text{W} \tag{1}\]  
\[Current=426\;\text{mA}\] \[Voltage=3.685\;\text{V}\] \[P=V\times I\] \[P=3.685\;\text{V}\times 426\;\text{mA}\]  
\[P_{2}=1.56981\;\text{W} \tag{2}\]  
Thus, the change in power can be found by subtracting Equation (2) from Equation (1):  
\[Voltage=3.682\;\text{V}\]0  
Consequently, the power consumption during this message is =0.05392 W.  
\[Voltage=3.682\;\text{V}\]1  
\[Voltage=3.682\;\text{V}\]2  
\[Voltage=3.682\;\text{V}\]3  
Hence, for a 0.16 KB message size, the energy consumption is 2.1568 J. Here, the packet size is in KB, the current is in mA, and the voltage value of the node is in volts. To calculate the power consumption and energy consumption for message transfer, we use the formula and multiply the voltage and current to obtain the power in Watts. As in physics, the power is the amount of energy transferred per unit of time. Here, to find the energy, the power is multiplied by the time and we obtain the result in J, which is the energy consumption during the message transfer, i.e., 2.1568 J. In the actual scenario, the message size is about 300 KB, and we have to determine the energy consumption for a 300 KB message. For this, there are 2 methodologies: we can calculate it using the unitary method or by practically sending a message of 300 KB and checking the change in energy consumption at the receiver end. We implement both methodologies and obtain the following results. When implementing the unitary method, the value is about 4.044 kJ for a 300 KB message; meanwhile, when calculating the real-time value by sending the message from one node to another, the change in energy at the receiving end is calculated using the Average energy consumption for 300 KB message = 30.14563 J. As there is a large difference between the values, we apply the unitary method at the nodes, so the real-time value is more applicable. This research will proceed with \"30.14563 J for 300 KB\". From the above table, one can see small variations in the energy values when changing the speed and distance of the nodes. In this case, upon increasing the speed or distance, in both situations, the value of energy consumption or power applied is increased. At this point, we assume the average value of time as 40 s for all cases; however, for the change in distance and speed, it may vary too. As the RSU is mobile and thus consumes energy while sending and receiving messages, in this case, on average, if an mRSU is sending a message 15 times per day, then the average energy required by a single mRSU is about 324 J. If this energy is reserved specifically for message transmission and the rest can be used for other functions, message transmission will not be disturbed, during when there is very little energy available. Average energy required for one day = 324 J. For the simulation scenario, this research will consider random vehicles having an mRSU in motion and will calculate the energy consumption while sending a packet from the mRSU to the vehicle. As both the vehicular nodes and the RSU are in motion, considering the urban city environment, we have an area of 2000 m\({}^{2}\). At first, we consider the AODV protocol for the simulation, using the two-ray ground propagation model with the initial energy of 50 J and a total simulation time of 150 s. Similarly, while the simulation varies the speed of the mRSU, we changes the protocol and vary the topology and movement to analyze the effects on the parameters, including the energy consumption of the RSU, packet delivery ratio, hop count, average delay, and average throughput.