Skip to main content
. 2022 Oct 21;22(20):8078. doi: 10.3390/s22208078
Algorithm 2 The proposed push-based critical data forwarding algorithm at a consumer.
  •  

    Received Data Packet: (ID, Content, Alert Type, Location, Timer, Signature)

  • 2:

    if Alert Type == bi (critical data packet) then

          read b

  • 4:

          if Vehicle (vi)== CH (Cluster Head)then

                Broadcast bi

  • 6:

                if Vehicle (vi)== GWi then

                      Forward b to GWi+1

  • 8:

                else

                      drop b

  • 10:

               end if

  •       end if

  • 12:

    end if