Research Article

Computer Network Dynamic Balance Flow Distribution Based on Closed-Loop Particle Swarm Feedback Model

Table 3

Optimization solution process of particle swarm combination.

Steps number:Algorithm solution process stepsFor (int i = 0; i < sizeof(srcnum)/4; i++)

1The receiving end mechanism of the protocolInt main()
2The returned load index code represents it{Int i,j,low,high,mid,temp
3Copy from the header of the dataInt srcsum [10] = {10,91,8,71,61,5,41,3,21,1}
4From packet to the ACK packetfor(i = 2; i < sizeof(srcsum)/4; i++)
5The iMLCP sender is built for srcsum[i] makes the degree of network congestion
6The same as the MLCP protocol{temp = srcsum[i]
7Similar to the MLCP protocol, it is low = 0; high = i-1; }
8while(low ≤ high)
9When packet loss occurs on the linkPublic void bubbleSort(int arr[])
10For item in queue {mid = (low + high)/2; }
11Its mechanism is the same as the TCP protocolIf (srcsum[mid]>temp)high = mid-1
12The 3 bits of the exponent are sortedelse srcnum[j+1] = temp
13The corresponding strategy on the TCP senderlow = mid+1
14The value of the minimum capacity fieldFor (int i = 0; i < sizeof(srcnum)/4; i++)
15It sends feedback based on the ACK packetprintf (“srcnum[%d] = %d”,i,srcnum[i])