Research Article
SDN-Based Double Hopping Communication against Sniffer Attack
Algorithm 1
Weighted random path selection algorithm.
Input: , , | Output: | WeightedRandomPathSelect(, , ) | (1) sum = 0 | (2) for in () | (3) | (4) if sum < RandNum ≤ new_sum | (5) return | (6) else sum = new_sum |
|