This paper designs a shunt controller based on dynamic hashing algorithm. After the remote deployment of the router is completed by using Telnet component, the traffic data of each router is acquired in time through SNMP component, and the current variables are managed. The command files are fed back to each router through TFTP server, thus realizing the traffic balance of the router interface. 。 The dynamic updating and balancing module, pretreatment module and balancing shunt control module are used to control the shunt, and the dynamic hashing algorithm is used to balance the system flow and obtain the optimal solution of balancing load. With the development of modern electronic technology such as cloud computing, software shunting has become a more effective method. The shunt controller is used to control the routers in electronic communication system to complete self-shunting first, and then to shunt and process IP message data in the case of self-shunting, so as to ensure that the system load can always be balanced. At present, the main methods used to deal with the shunt system are the rotation method, the minimum connection method, the balancing component of the minimum missing method, the combination of the fusion weighting method and the rotation method to construct the shunt control system, but these methods have different degrees of limitations, and the shunt efficiency is also low. A shunt controller of electronic communication system is constructed by using dynamic hashing algorithm, and the optimal solution of load balancing can be calculated. The software control of the shunt controller is based on the Dynamic Hash algorithm, and the shunt controller is detected and managed. When the load shunt behavior occurs, the Dynamic Hash algorithm can be used to shunt the IP messages to drive each router to shunt under its own shunt state, thus realizing load balancing. This shunt system uses Eelnet components to complete remote login and configure routers. Simple Network Management Protocol (SNMP) components are used to collect all flow groups and interfaces in routers. Local variables are regulated according to the collected results, and then the routers are regulated according to variables. With the interface stream group, thermostatic element the TFTP server will feed back the command file to the router, and the router will ensure that all the interfaces can balance the data output flow under the command file allocation, so that all the router interfaces can be authentic on the output flow of IP message data. It is now balanced to ensure that the entire electronic communication system can balance the load [2]. Traffic profile. According to the traffic data, the shunt strategy is formulated, and the shunt setting information is stored in the corresponding document. Finally, the file configuration can be completed by sending the document to each router. Some users will have specific requirements. The shunt controller needs to process these specific requirements first. It can pre-process the IP message data of the corresponding router, send useful information in time, delete all useless information, and then distribute all IP message data equally through dynamic hashing algorithm. When users debug IP messages independently, they can feed back the IP messages with the same source port or target port to the processor first, then implement effective operation, while other processors can not read these messages evenly. Only by completing the pre-processing and operation of some user-specific requirements or custom router traffic schemes, can the load balancing operation and configuration be applied to all other interface flow groups. The shunt system operates on the router to equalize and control the shunt of the electronic communication system. (1) New router. When a user first passes through a router, he first builds a new router and constantly debugs and sets the parameters of the router’s address, network type, login password, etc. until the shunt system and other parameters of the router can be merged, he starts to build the original parameters, and counts the IP address and mask corresponding to the router interface. After each parameter, the user can decide which type of interface to use. The shunt system will calculate and design the balanced shunt according to the dynamic hashing algorithm, and adjust the flow required for router initialization according to the results of the calculation. (2) Start the initialization router. If the user has only one router configuration document, according to this document, the relevant conditions can be set to associate with the router to ensure that the router configuration document can effectively obtain the corresponding IP address, mask and other parameters of the router interface, then analyze the interface type, and extract the corresponding IP locations of subsequent routers. Address, generate address list, complete the initialization work, and then use dynamic hashing algorithm to balance the router traffic.
(3) Obtain equipment status. The shunt controller can collect real-time data of the router according to the time interval when the user establishes the router. The results of the flow control of the router interface can be presented in a typical dynamic form. When the interface error occurs, relevant operations can be taken to correct it. (4) Dynamic equilibrium.
After the shunt controller collects all the traffic information of the router interface in real time, it is necessary to use dynamic hash algorithm to calculate and regulate the traffic, so as to ensure that the traffic of the router interface can meet the requirements of each user. When a shunt strategy does not meet the requirements of users, it can continue to operate through dynamic hash algorithm until the control results are fully balanced. 。 (5) Bus structure of shunt system. The shunt system bus is mainly composed of a bus, communication controller, transceiver and high-speed photoelectric coupling. Dynamic hashing algorithm can use two-stage hashing algorithm to balance the load distribution of the system. The first calculation can divide all IP into different stream groups according to the hash function, each stream group has its corresponding identification Uione; the second calculation can set the input value of the second dynamic hash function to Uione, and calculate the result of the function. The result corresponds to the output interface of the router. Then, the possible flow of the output interface is analyzed, and the Dynamic Hash function is adjusted to ensure that the flow in the high flow interface flow group is adjusted to the low flow interface, so as to realize the dynamic balance of the flow load of the output interface.
This equilibrium process includes the following steps: (1) hashing grouping. The input parameters of hash packet are set to CRC-32 contained in router IP message, which can ensure that the traffic of each stream group after the packet has a high consistency, thus improving the balance of the effect of load diversion.
(2) Control and update the flow, complete the adjustment of the interface flow group. Each flow group will correspond to a variable that has been set up to store the current flow of the flow group. After each flow control work is completed, the value of this variable should be adjusted.
According to the flow of each flow group, the corresponding relationship between the convection group and the interface can be ensured to maximize the flow of each interface. Extensive equalization. (3) Designing dynamic control strategy. Based on the first adaptive algorithm, the traffic difference between the router interfaces is analyzed, which is used as the basis for the traffic control of each flow group in the router. The theory of the first adaptive algorithm is to collect the flow which can be regulated in turn, and control the flow of the flow group at the same time, so as to ensure that the flow size of the interface corresponding to the collected flow group and the flow size of the interface corresponding to the converted flow group can be consistent, and finally adjust the dynamic flow that all the flow groups of the converted interface can bear [6]. The operation mode of all components of the shunt controller is described by tree code. Constructing code specifications from firewall nodes and policy routing, effectively dividing IP addresses of source and destination ports, source and destination commodity areas, and anti-masking parameters of IP addresses, can complete the case construction of policy routing specifications.
The key code is to control the policy routing component in the router. Routing items and nodes corresponding to routing cases can be used to set up routing items, source and destination IP message activities, IP addresses corresponding to the next hop router, and then set airline to complete the second screening. Based on the interface node, the IP address of the interface and the corresponding screening specifications are configured, and then the IP message obtained by the interface is extracted, and the corresponding policy routing of the screening specifications is set up. In order to achieve load balancing, shunt controller of electronic communication system needs to optimize shunt algorithm continuously. This paper designs a shunt controller based on Hash dynamic algorithm, designs the hardware system, software system and key code of the shunt system, and uses Telnet component to complete the remote deployment of router, and then obtains it in time through SNMP component. The traffic data of each router is taken and the current variables are managed. The command files are fed back to each router through the TFTP server to achieve the traffic balance of the router interface. The dynamic updating and balancing module, preprocessing module and balancing shunt control module are used to control the shunt, and the dynamic hashing algorithm is used to balance the system flow, so as to optimize the load balancing.