Research Article

Stable Route Selection for Adaptive Packet Transmission in 5G-Based Mobile Communications

Algorithm 2

Algorithm for multipath jamming detection.
Step 1: sequentially transmitting data packets
Step 2: for each node, essential details are gathered in the routing table.
Step 3: if {packet ==jam}
Step 4: packets are blocked
Step 5: search for the optimal path for communication
Step 6: reduce packet loss rate
Step 7: else
Step 8: if {packet ==forward}
Step 9: that optimal path is chosen to perform communication
Step 10: minimize energy consumption
Step 11: end if
Step 12: end for