Research Article
Optimized Bandwidth Allocation for MEC Server in Blockchain-Enabled IoT Networks
Algorithm 1
Bandwidth allocation algorithm for private network.
| Input: srcip, dstip, sport, dport | | Output: bandwidth | | Caculate an available bandwidth for the flow identified by srcip, dstip, sport, and dport | | load data from flow information table into | | create a | | for each in do | | .timer | | ifthen | | .add | | end if | | end for | | use to store the residual data for flow | | use to accumulate the bandwidth of the | | | | for each in do | | calculate the residual data for each flow | | | | | | | | end for | | | | update for each flow to | | bandwidth .lookup(srcip, dstip,sport, dport) | | return bandwidth |
|