(1) | When V generates an INT (Name of Content) |
(2) | INT is processed in PQ |
(3) | PQ contains IB & DB |
(4) | If CN is not in PIT of IB then |
(5) | If C is not found in CS, then |
(6) | PIT add (Interest Packet) |
(7) | SV ⟵Speed (sender and receiver vehicles) |
(8) | SC ⟵Size (Content Packet) |
(9) | DV ⟵Distance (sender and receiver vehicles) |
(10) | DL⟵ Deadline (Time of Content to be delivered) |
(11) | Else |
(12) | If C found in IB |
(13) | Schedule C of INT from DB |
(14) | INT of C can be Categorized into the following C types; |
(15) | C Category = (Emergency, Urgent, Average, Least) |
(16) | If C types == (Hospital Emergency, Police Help, control loss, & natural disaster, etc.) |
(17) | Assign C type = Emergency & value = α1 |
(18) | Else If C types == (Information about Nearest Bank, Nearby Airport, etc.) |
(19) | Assign C = Urgent & type value = α2 |
(20) | Else If C types == (Information of car parking, next traffic signal, etc.) |
(21) | Assign C = Average & type value = α3 |
(22) | Else If C types == (Infotainment services such as songs, video, games, etc.) |
(23) | Assign C = Least & type value = α4 |
(24) | Scheduling the C (According to the following Assign Priority) |
(25) | If C type value = α1 |
(26) | Calculate the Priority for α1 = min (DL SC DV) |
(27) | Assign Priority Values for α1 == β1 |
(28) | End If |
(29) | If the Priority Value = = β1 |
(30) | Gives the Highest Emergency Priority |
(31) | Forward C (According to the above Assigned Priority) |
(32) | Else If C type value = α2 |
(33) | Calculate the Priority for α2 = min (DL SC DV) |
(34) | Assign Priority Values for α2 = = β2 |
(35) | End If |
(36) | If the Priority Value = = β2 |
(37) | Gives the Urgent Priority |
(38) | Forward C (According to the above-Assigned Priority) |
(39) | Else If C type value = α3 |
(40) | Calculate the Priority for α3 = min (DL SC DV) |
(41) | Assign Priority Values for α3 = = β3 |
(42) | End If |
(43) | If the Priority Value = = β3 |
(44) | Gives the Average Priority |
(45) | Forward C (According to the above-Assigned Priority) |
(46) | Else If C type value = α4 |
(47) | Calculate the Priority for α4 = min (DL SC DV) |
(48) | Assign Priority Values for α4 = = β4 |
(49) | End If |
(50) | If the Priority Value = = β4 |
(51) | Gives the Least Priority |
(52) | Forward C (According to the above-Assigned Priority) |
(53) | End If |
(54) | Else If DP not received |
(55) | Re-Disseminate INT C in the network |
(56) | End If |
(57) | End If |