Skip to main content
. 2019 Mar 25;19(6):1449. doi: 10.3390/s19061449
Algorithm 1 Local Queue Bandwidth Adjustment Algorithm
Input:wq, tq, cq, Tq, q=5,6,7
Output:Bq, Dq
  • 1:

    InitializeBq=wq, Dq=0, cq=q+1, Port=100

  • 2:

    AvgQq=wq×tq

  • 3:

    Sum=q=57(AvgQq×cq)12

  • 4:

    iftqTqthen

  • 5:

        Bq=Port×(AvgQq×cq)12/Sum

  • 6:

        Dq=Sum×(AvgQq/cq)12/Port

  • 7:

    else

  • 8:

        notify the administrator to adjust Tq

  • 9:

    end if