Search

CN-121984917-A - Main and standby network switching method and system for server and intelligent terminal

CN121984917ACN 121984917 ACN121984917 ACN 121984917ACN-121984917-A

Abstract

The invention relates to the technical field of network switching, in particular to a method, a system and an intelligent terminal for switching between a main network and a standby network of a server. The method comprises the steps of obtaining reliability of an infrastructure according to topological positions and flow capacity degrees of network nodes in a network topological graph, obtaining a predicted flow sequence of the network nodes according to standard flow distribution of different functional class buildings in an analysis period in an actual physical area of the network nodes, obtaining dynamic behavior reliability of the network nodes at the next adjacent moment of the current moment according to similarity degree of actual flow and the predicted flow sequence in the analysis period of the network nodes at the current moment and a predicted flow value of the next adjacent moment, obtaining an optimal path from a local server to a target node according to the reliability of the infrastructure and the reliability of the dynamic behavior, and performing network switching. The invention integrates the reliability of the static architecture and the dynamic behavior of the analysis node in path switching, and improves the path switching selection effect.

Inventors

  • ZHANG XIAN
  • LI LI
  • ZHU JING
  • SHEN CHENG
  • DU HUAN
  • XIA LIN

Assignees

  • 润泽科技发展有限公司

Dates

Publication Date
20260505
Application Date
20260409

Claims (10)

  1. 1. A method for switching between a primary network and a standby network of a server, the method comprising: acquiring a network path from a local server to a target node in a network topology graph and a flow value of each network node in the network topology graph at each moment in a current moment and a historical analysis period, wherein the target node is a primary network provider node communicated with the local server; obtaining the reliability of the basic framework of the network node according to the topological position and the flow capacity degree of the network node in the network topological graph; According to the similarity degree of the actual flow and the predicted flow sequence in the analysis period of the network node at the current moment and the predicted flow value of the network node at the next moment, the dynamic behavior reliability of the network node at the next moment adjacent to the current moment is obtained; and acquiring an optimal path from a local server to a target node according to the reliability of the basic framework and the reliability of the dynamic behavior, and performing network switching.
  2. 2. The method for switching between the active and standby networks of claim 1, wherein the obtaining the reliability of the infrastructure of the network node comprises: optional one node from all network nodes on the network path is recorded as an example node; Selecting the minimum value of the basic design flow of all network nodes on each network path, and marking the minimum value as the passable flow of the corresponding path; Selecting the minimum value in the passable flows of all network paths corresponding to the local server, and respectively averaging the absolute differences of the minimum value and the passable flows of all network paths containing the example node to obtain the flow importance of the example node; The number ratio of the network paths containing the example nodes in the network paths corresponding to the local server is recorded as the topology importance of the example nodes; And obtaining the reliability of the infrastructure of the example node according to the traffic importance and the topology importance.
  3. 3. The method for switching between the active and standby networks according to claim 1, wherein the method for obtaining the predicted traffic sequence comprises: Acquiring a function description text of each building, and determining the function category of all the buildings in the actual physical area of the network node; the number ratio of each functional class building in the actual physical area of the network node is recorded as the area ratio of the corresponding functional class building; And carrying out weighted summation on the standard flow sequences of all the function class buildings in the actual physical area of the network node according to the area ratio to obtain a predicted flow sequence of the network node in one analysis period.
  4. 4. The method for switching between the active and the standby networks according to claim 1, wherein the step of obtaining the dynamic behavior reliability of the network node at the next time adjacent to the current time comprises: The analysis period at the current moment is recorded as the current period; Calculating the average value of flow values of the network node at the same moment in all analysis periods in a historical analysis period before the current period, and arranging the average value at all moments in one analysis period according to time sequence to obtain an actual flow sequence of the network node in the current period; Acquiring a correlation coefficient between the actual flow sequence and the predicted flow sequence of the network node in the current period, and recording the correlation coefficient as the flow similarity of the network node in the current period; taking the average value of flow values of corresponding moments in all analysis periods of a historical analysis period before the current period of the network node at the next moment adjacent to the current moment as a predicted flow value of the network node at the next moment adjacent to the current moment; And acquiring the dynamic behavior reliability of the network node at the next adjacent moment of the current moment according to the predicted flow value and the flow similarity.
  5. 5. The method for switching between a primary network and a backup network of a server according to claim 1, wherein said obtaining an optimal path from a local server to a target node comprises: taking the arithmetic average value of the reliability of the basic framework and the reliability of the dynamic behavior as the comprehensive reliability of the network node at the next moment adjacent to the current moment; taking the comprehensive reliability as a weight value of a network node in a network topology graph, and acquiring a shortest path from a local server to each target node in the network topology graph by utilizing a shortest path algorithm; And selecting the shortest path corresponding to the minimum value from the shortest distances from the local server to the shortest paths of all the target nodes respectively, and taking the shortest path as the optimal path of the local server at the next adjacent moment of the current moment.
  6. 6. The method for switching between the primary and the backup networks of claim 1, wherein said method for switching between the primary and the backup networks comprises: Acquiring a plurality of service quality parameters of a network path in use by a local server; if all the service quality parameters are smaller than or equal to the preset tolerance threshold, the network path used by the local server at the next adjacent moment of the current moment is kept unchanged; and if any service quality parameter is larger than a preset tolerance threshold, the local server is switched to the optimal path at the next adjacent moment of the current moment.
  7. 7. A method for switching between active and standby networks of a server according to claim 3, wherein said determining the functional class of all buildings in the actual physical area of the network node comprises: vectorizing the function description text of each building to obtain a function feature vector; And calculating cosine similarity between the functional feature vector of each building and standard template vectors of a plurality of predefined functional categories, and selecting a functional category corresponding to the maximum cosine similarity as the functional category to which each building belongs.
  8. 8. The method of claim 4, wherein the predicted flow value is inversely related to a dynamic behavior reliability, and wherein the flow similarity is positively related to the dynamic behavior reliability.
  9. 9. A primary-backup network switching system for a server, the system comprising: The system comprises a data acquisition module, a data analysis module and a data analysis module, wherein the data acquisition module is used for acquiring a network path from a local server to a target node in a network topology graph and a flow value of each network node in the network topology graph at each moment in a current moment and a historical analysis period; The infrastructure analysis module is used for acquiring the reliability of the infrastructure of the network node according to the topological position and the traffic capacity degree of the network node in the network topological graph; The dynamic behavior analysis module is used for acquiring a predicted flow sequence of the network node in an analysis period according to standard flow distribution of different functional class buildings in an actual physical region of the network node in the analysis period; according to the similarity between the actual flow and the predicted flow sequence in the analysis period of the network node at the current moment and the predicted flow value of the network node at the next adjacent moment, acquiring the dynamic behavior reliability of the network node at the next adjacent moment of the current moment; And the network switching module is used for acquiring an optimal path from the local server to the target node according to the reliability of the basic framework and the reliability of the dynamic behavior and performing network switching.
  10. 10. An intelligent terminal, characterized in that the intelligent terminal comprises a memory and a processor, wherein the memory stores an intelligent terminal control program, and the intelligent terminal control program realizes the steps of the method for switching the primary network and the standby network of the server according to any one of claims 1 to 8 when being executed by the processor.

Description

Main and standby network switching method and system for server and intelligent terminal Technical Field The invention relates to the technical field of network switching, in particular to a method, a system and an intelligent terminal for switching between a main network and a standby network of a server. Background In high availability server clusters, connectivity is typically ensured by deploying redundant physical or logical network paths. When the main network path has faults such as link interruption, congestion or too high time delay, the system can switch the flow to the standby network path, thereby avoiding the service interruption of the server caused by the network problem. The existing network switching control mostly adopts a passive response mechanism, usually adopts a virtual router redundancy protocol, and the core is that a plurality of physical routers share a virtual IP address as a default gateway, and when the failure of a main node is monitored, a standby node with the highest priority works as a substitute for the main node, so that path switching is realized. The data exchange between the server cluster and the external network is performed by a network node formed by a router, a switch, a firewall and the like, and the load of the shared nodes continuously changes along with the behavior of the served terminal. The existing switching strategy ignores the dynamic traffic demands of the node dynamic load and the target server, is extremely easy to cause traffic to rush into the congested or about to congestion node after switching, causes secondary performance degradation, and is characterized by path delay surge and packet loss rate rise after switching, namely, the path switching effect is poor, and high-quality service continuity cannot be ensured. Disclosure of Invention In order to solve the technical problem of poor path switching caused by neglecting network traffic dynamics, the invention aims to provide a main and standby network switching method and system for a server and an intelligent terminal, and the adopted technical scheme is as follows: in a first aspect, an embodiment of the present invention provides a method for switching a primary network and a standby network of a server, where the method includes: acquiring a network path from a local server to a target node in a network topology graph and a flow value of each network node in the network topology graph at each moment in a current moment and a historical analysis period, wherein the target node is a primary network provider node communicated with the local server; obtaining the reliability of the basic framework of the network node according to the topological position and the flow capacity degree of the network node in the network topological graph; According to the similarity degree of the actual flow and the predicted flow sequence in the analysis period of the network node at the current moment and the predicted flow value of the network node at the next moment, the dynamic behavior reliability of the network node at the next moment adjacent to the current moment is obtained; and acquiring an optimal path from a local server to a target node according to the reliability of the basic framework and the reliability of the dynamic behavior, and performing network switching. Further, the obtaining the reliability of the infrastructure of the network node includes: optional one node from all network nodes on the network path is recorded as an example node; Selecting the minimum value of the basic design flow of all network nodes on each network path, and marking the minimum value as the passable flow of the corresponding path; Selecting the minimum value in the passable flows of all network paths corresponding to the local server, and respectively averaging the absolute differences of the minimum value and the passable flows of all network paths containing the example node to obtain the flow importance of the example node; The number ratio of the network paths containing the example nodes in the network paths corresponding to the local server is recorded as the topology importance of the example nodes; And obtaining the reliability of the infrastructure of the example node according to the traffic importance and the topology importance. Further, the method for acquiring the predicted traffic sequence comprises the following steps: Acquiring a function description text of each building, and determining the function category of all the buildings in the actual physical area of the network node; the number ratio of each functional class building in the actual physical area of the network node is recorded as the area ratio of the corresponding functional class building; And carrying out weighted summation on the standard flow sequences of all the function class buildings in the actual physical area of the network node according to the area ratio to obtain a predicted flow sequence of the network node in one analysis