CN112491700B - Network path adjustment method, system, device, electronic equipment and storage medium - Google Patents

Network path adjustment method, system, device, electronic equipment and storage medium Download PDF

Info

Publication number
CN112491700B
CN112491700B CN202011472335.5A CN202011472335A CN112491700B CN 112491700 B CN112491700 B CN 112491700B CN 202011472335 A CN202011472335 A CN 202011472335A CN 112491700 B CN112491700 B CN 112491700B
Authority
CN
China
Prior art keywords
switch
switched
link
convergence layer
communication
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011472335.5A
Other languages
Chinese (zh)
Other versions
CN112491700A (en
Inventor
王君昭
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Chengdu Knownsec Information Technology Co ltd
Original Assignee
Chengdu Yanchuang Qixin Information Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Chengdu Yanchuang Qixin Information Technology Co ltd filed Critical Chengdu Yanchuang Qixin Information Technology Co ltd
Priority to CN202011472335.5A priority Critical patent/CN112491700B/en
Publication of CN112491700A publication Critical patent/CN112491700A/en
Application granted granted Critical
Publication of CN112491700B publication Critical patent/CN112491700B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/28Routing or path finding of packets in data switching networks using route fault recovery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/22Alternate routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/25Routing or path finding in a switch fabric

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

In the network path adjustment method, system, device, electronic equipment and storage medium provided by the application, the server sends data which need to be sent through the second switch in the access layer switch through a communication link with the first switch according to the first switch and the second switch in the convergence layer switch. Because the second switch is a convergence layer switch with at least one abnormal state parameter, the switching of the communication path can be completed before the second switch fails, and the switching time required by equipment failure is reduced.

Description

Network path adjustment method, system, device, electronic equipment and storage medium
Technical Field
The present invention relates to the field of communications, and in particular, to a network path adjustment method, system, device, electronic apparatus, and storage medium.
Background
In the current enterprise-level network architecture, load balancing technologies such as HSRP (Hot Standby Router Protocol, hot standby routing protocol) or VRRP (Virtual Router Redundancy Protocol, virtual routing redundancy protocol) are used, and the above protocols only switch communication paths when a device fails down or is completely unreachable to an upper network.
The inventor researches and discovers that because equipment is required to break down or is completely unreachable with an upper network to switch the communication path, a certain time is required to sense the abnormal condition, and then the switching of the communication path has certain hysteresis and can influence the normal use of a user.
Disclosure of Invention
To overcome at least one of the disadvantages in the prior art, in a first aspect, an embodiment of the present application provides a network path adjustment method, which is applied to a server, where the server is communicatively connected to an access layer switch and a plurality of convergence layer switches, and the access layer switch and the plurality of convergence layer switches respectively establish corresponding communication links, and the method includes:
determining a first switch and a second switch from the plurality of convergence layer switches, wherein no abnormality occurs in state parameters of a preset type of the first switch, and at least one state parameter of the second switch is abnormal;
determining whether a link to be switched exists in the communication links, wherein the link to be switched is a communication link which is in a working state and is in communication connection with the second switch;
if yes, a switching instruction is sent to the access layer switch, wherein the switching instruction comprises the identification of the link to be switched and the identification of a target switch, and the target switch belongs to the first switch.
In one possible implementation manner, the determining the first switch and the second switch from the plurality of convergence layer switches includes:
acquiring state parameters of preset types of the convergence layer switches, wherein the state parameters of the types are configured with corresponding thresholds;
comparing state parameters of the convergence layer switch with corresponding thresholds for each convergence layer switch;
and determining the first switch and the second switch according to the comparison result of the plurality of convergence layer switches.
In a possible implementation manner, the handover instruction further carries a number of devices to be handed over, where the number of devices to be handed over is used to indicate a number of devices that need to perform a communication link handover in a device that sends data from the link to be handed over, and before the handover instruction occurs to the access layer switch, the method further includes:
obtaining the number of abnormal state parameters, wherein the abnormal state parameters are abnormal state parameters in a second switch which is in communication connection with the link to be switched;
and obtaining the number of the equipment to be switched according to the preset corresponding relation between the number of the abnormal state parameters and the number of the equipment.
In one possible implementation manner, each convergence layer switch is configured with a path switching protocol based on network bandwidth, and the preset type of state parameter does not include a network bandwidth parameter.
In a second aspect, an embodiment of the present application provides a network path adjustment method, which is applied to an access layer switch, where the access layer switch is in communication connection with a server, and corresponding communication links are respectively established with a plurality of aggregation layer switches, and the method includes:
receiving a switching instruction sent by the server, wherein the switching instruction comprises an identifier of a link to be switched and an identifier of a target switch, the link to be switched is a communication link which is in a working state and is in communication connection with a second switch, the target switch belongs to a first switch, the first switch is a convergence layer switch with no abnormality in any state parameter of a set type, and the second switch is a convergence layer switch with abnormality in at least one state parameter;
and switching the data sent from the link to be switched to a communication link in communication connection with the target switch according to the switching instruction.
In a third aspect, an embodiment of the present application provides a network path adjustment system, where the network path adjustment system includes a server, an access layer switch, and a plurality of convergence layer switches, where the server is communicatively connected to the access layer switch and the plurality of convergence layer switches, and the access layer switch and the plurality of convergence layer switches establish corresponding communication links;
the server determines a first switch and a second switch from the plurality of convergence layer switches, wherein no abnormality occurs in state parameters of a preset type of the first switch, and at least one state parameter of the second switch is abnormal;
determining whether a link to be switched exists in the communication links, wherein the link to be switched is a communication link which is in a working state and is in communication connection with the second switch;
if yes, a switching instruction is sent to the access layer switch, wherein the switching instruction comprises the identification of the link to be switched and the identification of a target switch, and the target switch belongs to the first switch;
the access layer switch receives the switching instruction;
and switching the data sent from the link to be switched to a communication link in communication connection with the target switch according to the switching instruction.
In a fourth aspect, an embodiment of the present application provides a network path adjustment device, which is applied to a server, where the server is communicatively connected with an access layer switch and a plurality of convergence layer switches, and the access layer switch and the plurality of convergence layer switches respectively establish corresponding communication links, and the network path adjustment device includes:
the system comprises an anomaly determination module, a first switch and a second switch, wherein the anomaly determination module is used for determining that the first switch and the second switch are not abnormal in state parameters of a preset type of the first switch, and at least one state parameter of the second switch is abnormal;
the interface determining module is used for determining whether a link to be switched exists in the communication links, wherein the link to be switched is a communication link which is in a working state and is in communication connection with the second switch;
and the instruction sending module is used for sending a switching instruction to the access layer switch if the access layer switch is in the first state, wherein the switching instruction comprises the identification of the link to be switched and the identification of a target switch, and the target switch belongs to the first switch.
In a fifth aspect, an embodiment of the present application provides a network path adjustment device, which is applied to an access layer switch, where the access layer switch is communicatively connected to a server, and corresponding communication links are respectively established with a plurality of aggregation layer switches, and the network path adjustment device includes:
the system comprises an instruction receiving module, a switching module and a switching module, wherein the instruction receiving module is used for receiving a switching instruction sent by the server, the switching instruction comprises an identifier of a link to be switched and an identifier of a target switch, the link to be switched is a communication link which is in a working state and is in communication connection with a second switch, the target switch belongs to a first switch, the first switch is a convergence layer switch with no abnormal state parameters, and the second switch is a convergence layer switch with at least one abnormal state parameter;
and the path switching module is used for switching the data sent from the link to be switched to a communication link in communication connection with the target switch according to the switching instruction.
In a sixth aspect, an embodiment of the present application provides an electronic device, where the electronic device includes a processor and a memory, where the memory stores a computer program, and when computer executable instructions in the computer program are executed by the processor, the method for adjusting a network path performed by a server or the method for adjusting a network path performed by an access layer switch is implemented.
In a seventh aspect, embodiments of the present application provide a storage medium storing a computer program, where computer executable instructions in the computer program implement a network path adjustment method performed by a server or a network path adjustment method performed by an access layer switch when executed by a processor.
Compared with the prior art, the application has the following beneficial effects:
in the network path adjustment method, system, device, electronic equipment and storage medium provided in the embodiments of the present application, a server sends data, which needs to be sent through a second switch, in an access layer switch through a communication link with a first switch according to the first switch and the second switch in a convergence layer switch. Because the second switch is a convergence layer switch with at least one abnormal state parameter, the switching of the communication path can be completed before the second switch fails, and the switching time required by equipment failure is reduced.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the embodiments will be briefly described below, it being understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered limiting the scope, and that other related drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic diagram of a network topology according to an embodiment of the present application;
FIG. 2 is a schematic flow chart of a network path adjustment method according to an embodiment of the present disclosure;
FIG. 3 is a second flowchart of a network path adjustment method according to an embodiment of the present disclosure;
fig. 4 is a schematic diagram of a network path adjustment device according to an embodiment of the present application;
FIG. 5 is a second schematic diagram of a network path adjustment device according to an embodiment of the present disclosure;
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Icon: 1101-an anomaly determination module; 1102-an interface determination module; 1103-instruction sending module; 2101-an instruction receiving module; 2102-path switching module; 120-memory; 130-a processor; 140-communication means.
Detailed Description
For the purposes of making the objects, technical solutions and advantages of the embodiments of the present application more clear, the technical solutions of the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments. The components of the embodiments of the present application, which are generally described and illustrated in the figures herein, may be arranged and designed in a wide variety of different configurations.
Thus, the following detailed description of the embodiments of the present application, as provided in the accompanying drawings, is not intended to limit the scope of the application, as claimed, but is merely representative of selected embodiments of the application. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present disclosure.
It should be noted that: like reference numerals and letters denote like items in the following figures, and thus once an item is defined in one figure, no further definition or explanation thereof is necessary in the following figures.
In the related art, an enterprise-level network architecture may use load balancing techniques such as HSRP or VRRP, and the above protocol may perform switching of a communication path only when a device fails or is completely unreachable to an upper network.
However, from the discovery that the device fails or the upper network is completely unreachable, not only a certain time is required until the switching of the communication path is completed, but also the network during that time is not available, which in turn affects the normal use of the user. For example, a phenomenon of packet loss occurs.
In view of this, in order to at least partially ameliorate the above-mentioned drawbacks, embodiments of the present application provide a network path adjustment method applied to a server. The server is in communication connection with the access layer switch and the convergence layer switches, and the access layer switch establishes corresponding communication links with the convergence layer switches.
The server monitors the state parameters of the preset types of the convergence layer switch, and when at least one second switch with abnormal state parameters is detected, a switching instruction is sent, so that the access layer switch switches the link to be switched, which is in a working state with the second switch, to other communication links, and the purpose of switching the communication paths in advance before faults occur is achieved.
As embodiments of the present application relate to enterprise-level network architecture, for ease of understanding, an exemplary description of enterprise-level network architecture is provided below. Referring to fig. 1, a schematic diagram of an enterprise-level network architecture according to an embodiment of the present application is provided. As shown in fig. 1, includes a PC, an access layer switch, a convergence layer switch, a gateway. Wherein the PC accesses a backbone network, which may be a telecommunications backbone network or a mobile backbone network, for example, through a gateway. Thus, when a PC needs to access the backbone network, it needs to go through an access layer switch, a convergence layer switch, and a gateway.
The access layer switch in the network architecture is used for directly facing the PC connection of the user and providing the capability of accessing the application system in the local network section, namely, dividing the PC into different virtual local area networks through VLAN (Virtual Local Area Network ) so as to solve the mutual access requirement between adjacent users.
The convergence layer switch is a convergence point of multiple access layer switches capable of handling all traffic from the access layer devices and providing an uplink to the backbone network, thus requiring higher performance and switching speed and fewer interfaces than the access layer switches. The interface between the access layer switch and the convergence layer switch is in a trunk mode, so that the same interface allows different VLANs to pass through.
Referring to fig. 2, a flowchart of a network path adjustment method performed by the server is shown, and each step of the method will be described in detail below. The server is in communication connection with the access layer switch and the convergence layer switches, and the access layer switch and the convergence layer switches are respectively established with corresponding communication links. As shown in fig. 2, the network path adjustment method includes:
in step S101A, a first switch and a second switch are determined from a plurality of convergence layer switches.
Wherein, the state parameters of the preset types of the first switch are not abnormal, and at least one state parameter of the second switch is abnormal. The preset type of status parameters may be, but not limited to, memory usage, motherboard temperature, CPU usage, network usage.
The inventor researches and discovers that when the memory utilization rate, the main board temperature, the CPU utilization rate and the network utilization rate are too high, part of equipment resources are excessively utilized, and part of equipment resources are underutilized, so that equipment faults or transmission faults and the like of a machine with overlarge load pressure occur.
As a possible implementation manner provided in the embodiments of the present application, the server obtains preset types of state parameters of each convergence layer switch, where each type of state parameter is configured with a corresponding threshold.
The server compares state parameters of the convergence layer switch with corresponding thresholds for each convergence layer switch; and determining the first switch and the second switch according to the comparison result of the plurality of convergence layer switches.
Namely, for each convergence layer switch, if one state parameter of the convergence layer switch exceeds a threshold value corresponding to the state parameter, classifying the state parameter into a second switch; otherwise, it is classified to the first switch.
Illustratively, the server may obtain the state parameters of each convergence layer switch through a snmp tool based on the computer language Python.
Step S102A, determining whether there is a link to be switched in the communication link.
The link to be switched is a communication link which is in a working state and is in communication connection with the second switch.
For example, referring again to fig. 1, assume that access layer switch SW3 establishes a communication link with convergence layer switch SW1 and convergence layer switch SW 2. Wherein the communication link between the access layer switch SW3 and the convergence layer switch SW1 allows data of the virtual local area networks VLAN1, VLAN2 to pass through. The virtual local area network VLAN1 includes a PC1, and the virtual local area network VLAN2 includes a PC3.
When the PC1 and the PC3 access the backbone network, communication data is transmitted via the communication link between the access layer switch SW3 and the convergence layer switch SW1, that is, the communication link between the access layer switch SW3 and the convergence layer switch SW1 is in an operating state.
It should be appreciated that the access layer switch SW3 may also be communicatively connected to other convergence layer switches via other communication links, but merely as a redundant backup path, i.e. not in operation.
Referring again to fig. 1, the communication link between the access layer switch SW3 and the convergence layer switch SW2 allows data of the VLAN3 to pass through.
If the CPU utilization of the convergence layer switch SW1 is 93%, and exceeds a threshold of 90%, classifying the convergence layer switch SW1 into a second switch, and taking the communication link between the corresponding access layer switch SW3 and the convergence layer switch SW1 as the link to be switched.
In order to avoid failure of the convergence layer switch SW1 due to excessive load of the CPU, it is necessary to switch data, which is required to be transmitted via the communication link between the access layer switch SW3 and the convergence layer switch SW1, to other communication links before the convergence layer switch SW1 fails.
Namely, after the communication data in the virtual local area network VLAN1 and/or VLAN2 is transmitted through other communication links, the CPU load of the convergence layer switch SW1 can be relieved, and the probability of failure of the convergence layer switch SW1 is reduced.
Step S103A, if yes, a switching instruction is sent to the access layer switch.
The switching instruction comprises an identification of a link to be switched and an identification of a target switch, and the target switch belongs to the first switch.
Also taking the above-mentioned convergence layer switch SW2 as an example, since all the state parameters of the preset categories of the convergence layer switch SW2 are smaller than the corresponding threshold values, the convergence layer switch SW2 is classified as the first switch. Therefore, the data transmitted by the communication link between the access layer switch SW3 and the convergence layer switch SW1 can be switched to the communication link between the access layer switch SW3 and the convergence layer switch SW2, that is, the convergence layer switch SW2 is the target switch.
Therefore, the server may send a handover instruction to the access stratum switch SW3, where the handover instruction may carry the identifier of the link to be handed over and the identifier of the target switch.
After receiving the switching instruction, the access layer switch SW3 sends data to be sent through a communication link between the access layer switch SW3 and the convergence layer switch SW1 through the communication link between the access layer switch SW3 and the convergence layer switch SW2 according to the carried identification of the link to be switched and the identification of the target switch.
Therefore, the server transmits data, which needs to be transmitted through the second switch, in the access layer switch via the communication link with the first switch according to the first switch and the second switch in the convergence layer switch. Because the second switch is a convergence layer switch with at least one abnormal state parameter, the switching of the communication path can be completed before the second switch fails, and the switching time required by equipment failure is reduced.
In the embodiment of the present application, in order to implement path switching with smaller granularity, the server is configured with a preset correspondence between the number of abnormal state parameters and the number of devices. The abnormal state parameter is a state parameter which is abnormal in a second switch which is in communication connection with the link to be switched.
Therefore, the server acquires the number of the abnormal state parameters, and acquires the number of the equipment to be switched according to the preset corresponding relation between the number of the abnormal state parameters and the number of the equipment; and carrying the number of the devices to be switched in the switching instruction and sending the switching instruction to the access layer switch together.
Referring to fig. 1 again, the access layer switch SW3 has 3 PCs, namely PC1, PC2 and PC3, connected to the user terminal. Wherein PC1 is located in VLAN1 and transmits data via a communication link between access layer switch SW3 and convergence layer switch SW1, and PC3 is located in VLAN2 and similarly transmits data via a communication link between access layer switch SW3 and convergence layer switch SW 1.
If the preset correspondence between the number of abnormal state parameters and the number of devices is 1:1, that is, if the convergence layer switch SW1 has 1 state parameter abnormal, transmitting the transmitted data of 1 PC (PC 1 or PC 2) through a communication link between the access layer switch SW3 and the convergence layer switch SW 2; if there are 2 types of state parameters in the convergence layer switch that are abnormal, the data transmitted from 2 PCs (PC 1 and PC 2) are transmitted via the communication link between the access layer switch SW3 and the convergence layer switch SW 2.
Of course, the above corresponding relationship can be adaptively adjusted by a person skilled in the art according to actual needs, and the embodiment of the present application is not specifically limited.
In other words, in the embodiment of the present application, the number of devices that need to adjust paths is determined according to the number of abnormal state parameters of the convergence layer switch, considering that the number of abnormal state parameters of the convergence layer switch is positively correlated with the probability of occurrence of a fault.
Of course, the device may be a PC, a smart phone, a personal computer (Personal Computer, PC), a tablet computer, a personal digital assistant (Personal Digital Assistant, PDA), a mobile internet device (Mobile Internet Device, MID), or the like.
In addition, it is worth noting that each convergence layer switch is configured with a path switching protocol based on network bandwidth. The inventor researches and discovers that the current path switching protocol has unreasonable phenomenon, for example, after the port aggregation protocol performs load balancing configuration, the load balancing configuration is performed only for the interface bandwidth, and the factors such as the memory, the main board temperature, the CPU and the like are not considered, so that the bandwidth utilization rate of part of the switches is not high, but the memory utilization rate is too high. But according to the path switching strategy of the port aggregation protocol, traffic is continuously distributed to the switch with potential faults, so that the probability of the fault of the switch is increased.
In view of this, the embodiment of the present application is based on the path switching protocol of the existing network bandwidth, and the acquired state parameter does not include the network bandwidth parameter. In other words, in the embodiment of the present application, the path switching policy related to the network bandwidth continues to use the existing mature network protocol, and the server switches the communication path only through the state parameters other than the network bandwidth parameters, so as to reduce the probability of the switch failure.
Corresponding to the server, the embodiment of the application also provides a network path adjustment method which is applied to the access layer switch, wherein the access layer switch is in communication connection with the server, and corresponding communication links are respectively established with the aggregation layer switches. Referring to fig. 3, the network path adjustment method includes:
in step S101B, a switching instruction sent by the server is received.
The switching instruction comprises an identifier of a link to be switched and an identifier of a target switch, the link to be switched is a communication link which is in a working state and is in communication connection with a second switch, the target switch belongs to a first switch, the first switch is a convergence layer switch with no abnormality in state parameters of a set type, and the second switch is a convergence layer switch with abnormality in at least one state parameter.
Step S102B, according to the switching instruction, switching the data sent from the link to be switched to the communication link in communication connection with the target switch.
Based on the server and the access layer switch, the embodiment of the application also provides a network path adjusting system, wherein the network path adjusting system comprises the server, the access layer switch and a plurality of convergence layer switches, the server is in communication connection with the access layer switch and the plurality of convergence layer switches, and the access layer switch and the plurality of convergence layer switches are established with corresponding communication links;
the server determines a first switch and a second switch from a plurality of convergence layer switches, wherein the state parameters of the preset types of the first switch are not abnormal, and at least one state parameter of the second switch is abnormal;
determining whether a link to be switched exists in the communication links, wherein the link to be switched is a communication link which is in a working state and is in communication connection with the second switch;
if yes, a switching instruction is sent to an access layer switch, wherein the switching instruction comprises an identification of a link to be switched and an identification of a target switch, and the target switch belongs to a first switch;
the switch of the access layer receives a switching instruction;
and switching the data sent from the link to be switched to a communication link in communication connection with the target switch according to the switching instruction.
Based on the same inventive concept, the embodiment of the application also provides a network path adjusting device which is applied to the server. The server is in communication connection with the access layer switch and the convergence layer switches, and the access layer switch and the convergence layer switches are respectively established with corresponding communication links.
The network path adjustment means comprises at least one functional module which may be stored in the memory 120 in the form of software. Referring to fig. 4, functionally divided, the network path adjusting device may include:
an anomaly determination module 1101, configured to determine a first switch and a second switch from a plurality of convergence layer switches, where no anomaly occurs in a state parameter of a preset type of the first switch, and at least one state parameter of the second switch is abnormal;
an interface determining module 1102, configured to determine whether a link to be switched exists in the communication links, where the link to be switched is a communication link that is in a working state and is in communication connection with the second switch;
the instruction sending module 1103 is configured to send a switching instruction to the access layer switch if the instruction is yes, where the switching instruction includes an identifier of a link to be switched and an identifier of a target switch, and the target switch belongs to the first switch.
The embodiment of the application also provides a network path adjusting device which is applied to the access layer switch, wherein the access layer switch is in communication connection with the server, and corresponding communication links are respectively established with the plurality of aggregation layer switches.
The network path adjustment device comprises at least one functional module which can be stored in the form of software in a memory. Referring to fig. 5, functionally divided, the network path adjusting device may include:
the instruction receiving module 2101 is configured to receive a switching instruction sent by the server.
The switching instruction comprises an identifier of a link to be switched and an identifier of a target switch, the link to be switched is a communication link which is in a working state and is in communication connection with a second switch, the target switch belongs to a first switch, the first switch is a convergence layer switch with no abnormality in state parameters of a set type, and the second switch is a convergence layer switch with abnormality in at least one state parameter.
And the path switching module 2102 is configured to switch, according to a switching instruction, data sent from a link to be switched to a communication link communicatively connected to the target switch.
The embodiment of the application also provides an electronic device, which can be the server or the access layer switch, and is determined according to a specific method executed by the electronic device.
Referring to fig. 6, the electronic device includes a memory 120, a processor 130, and a communication device 140. The memory 120, the processor 130, and the communication device 140 are electrically connected directly or indirectly to each other to realize data transmission or interaction. For example, the components may be electrically connected to each other via one or more communication buses or signal lines.
The Memory 120 may be, but is not limited to, a random access Memory (Random Access Memory, RAM), a Read Only Memory (ROM), a programmable Read Only Memory (Programmable Read-Only Memory, PROM), an erasable Read Only Memory (Erasable Programmable Read-Only Memory, EPROM), an electrically erasable Read Only Memory (Electric Erasable Programmable Read-Only Memory, EEPROM), etc. The memory 120 is used for storing a program, and the processor 130 executes the program after receiving an execution instruction. The communication device 140 is used for transmitting and receiving data through a network.
The processor 130 may be an integrated circuit chip with signal processing capabilities. The processor may be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU for short), a network processor (Network Processor, NP for short), etc.; but also Digital Signal Processors (DSPs), application Specific Integrated Circuits (ASICs), field Programmable Gate Arrays (FPGAs) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components. The disclosed methods, steps, and logic blocks in the embodiments of the present application may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
In summary, in the network path adjustment method, system, device, electronic device and storage medium provided in the embodiments of the present application, the server sends, according to the first switch and the second switch in the convergence layer switch, data to be sent by the second switch in the access layer switch through a communication link with the first switch. Because the second switch is a convergence layer switch with at least one abnormal state parameter, the switching of the communication path can be completed before the second switch fails, and the switching time required by equipment failure is reduced.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other manners as well. The apparatus embodiments described above are merely illustrative, for example, flow diagrams and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, the functional modules in the embodiments of the present application may be integrated together to form a single part, or each module may exist alone, or two or more modules may be integrated to form a single part.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer-readable storage medium. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
It is noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The foregoing is merely various embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily think about changes or substitutions within the technical scope of the present application, and the changes and substitutions are intended to be covered in the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (7)

1. The network path adjustment method is characterized by being applied to a server, wherein the server is in communication connection with an access layer switch and a plurality of convergence layer switches, the access layer switch and the plurality of convergence layer switches are respectively established with corresponding communication links, the server supports a path switching protocol for maintaining load balance, and the path switching protocol performs path switching according to network bandwidth parameters, and the method comprises the following steps:
under the condition of maintaining the path switching protocol to be effective, determining a first switch and a second switch from the plurality of convergence layer switches, wherein no abnormality occurs in a state parameter of a preset type of the first switch, at least one state parameter of the second switch occurs, and the state parameter of the preset type does not comprise the network bandwidth parameter;
determining whether a link to be switched exists in the communication links, wherein the link to be switched is a communication link which is in a working state and is in communication connection with the second switch;
if yes, acquiring the number of the abnormal state parameters, and acquiring the number of the equipment to be switched according to the preset corresponding relation between the number of the abnormal state parameters and the number of the equipment; the abnormal state parameter is a state parameter with abnormality in a second switch in communication connection with the link to be switched, and the number of the devices to be switched is used for indicating the number of devices which need to switch the communication link in the devices for transmitting data from the link to be switched;
and sending a switching instruction to the access layer switch, wherein the switching instruction comprises the number of the equipment to be switched, the identification of the link to be switched and the identification of a target switch, and the target switch belongs to the first switch.
2. The network path adjustment method according to claim 1, wherein the determining a first switch and a second switch from the plurality of convergence layer switches includes:
acquiring state parameters of preset types of the convergence layer switches, wherein the state parameters of the types are configured with corresponding thresholds;
comparing state parameters of the convergence layer switch with corresponding thresholds for each convergence layer switch;
and determining the first switch and the second switch according to the comparison result of the plurality of convergence layer switches.
3. The network path adjustment method according to claim 1, wherein each convergence layer switch is configured with a path switching protocol based on network bandwidth, and the preset type of state parameter does not include a network bandwidth parameter.
4. The network path adjusting system is characterized by comprising a server, an access layer switch and a plurality of convergence layer switches, wherein the server is in communication connection with the access layer switch and the plurality of convergence layer switches, and the access layer switch and the plurality of convergence layer switches are established with corresponding communication links; the server supports a path switching protocol for maintaining load balance, and the path switching protocol performs path switching according to network bandwidth parameters;
under the condition of maintaining the path switching protocol, the server determines a first switch and a second switch from the plurality of convergence layer switches, wherein no abnormality occurs in a state parameter of a preset type of the first switch, at least one state parameter of the second switch occurs, and the state parameter of the preset type does not comprise the network bandwidth parameter;
determining whether a link to be switched exists in the communication links, wherein the link to be switched is a communication link which is in a working state and is in communication connection with the second switch;
if yes, acquiring the number of the abnormal state parameters, and acquiring the number of the equipment to be switched according to the preset corresponding relation between the number of the abnormal state parameters and the number of the equipment; the abnormal state parameter is a state parameter with abnormality in a second switch in communication connection with the link to be switched, and the number of the devices to be switched is used for indicating the number of devices which need to switch the communication link in the devices for transmitting data from the link to be switched;
transmitting a switching instruction to the access layer switch, wherein the switching instruction comprises the number of equipment to be switched, the identification of the link to be switched and the identification of a target switch, and the target switch belongs to the first switch;
the access layer switch receives the switching instruction;
and switching the data sent from the link to be switched to a communication link in communication connection with the target switch according to the switching instruction.
5. The utility model provides a network path adjusting device which characterized in that is applied to the server, the server is connected with access layer switch and a plurality of convergence layer switch communication, access layer switch and a plurality of convergence layer switch have corresponding communication link of establishing respectively, the server supports the route switching protocol that is used for maintaining load balance, the route switching protocol carries out the route switching according to network bandwidth parameter, the network path adjusting device includes:
an anomaly determination module, configured to determine, under a condition that the path switching protocol is maintained to be effective, a first switch and a second switch from the plurality of convergence layer switches, where no anomaly occurs in a state parameter of a preset type of the first switch, no anomaly occurs in at least one state parameter of the second switch, and the state parameter of the preset type does not include the network bandwidth parameter;
the interface determining module is used for determining whether a link to be switched exists in the communication links, wherein the link to be switched is a communication link which is in a working state and is in communication connection with the second switch;
the instruction sending module is used for obtaining the number of the abnormal state parameters if yes, and obtaining the number of the equipment to be switched according to the preset corresponding relation between the number of the abnormal state parameters and the number of the equipment; the abnormal state parameter is a state parameter with abnormality in a second switch in communication connection with the link to be switched, and the number of the devices to be switched is used for indicating the number of devices which need to switch the communication link in the devices for transmitting data from the link to be switched;
the access layer switch sends a switching instruction, wherein the switching instruction comprises the number of devices to be switched, the identification of the links to be switched and the identification of a target switch, and the target switch belongs to the first switch.
6. An electronic device comprising a processor and a memory storing a computer program, the computer executable instructions of the computer program, when executed by the processor, implementing the network path adjustment method of any of claims 1-3.
7. A storage medium storing a computer program, wherein computer executable instructions in the computer program when executed by a processor implement the network path adjustment method of any one of claims 1-3.
CN202011472335.5A 2020-12-14 2020-12-14 Network path adjustment method, system, device, electronic equipment and storage medium Active CN112491700B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011472335.5A CN112491700B (en) 2020-12-14 2020-12-14 Network path adjustment method, system, device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011472335.5A CN112491700B (en) 2020-12-14 2020-12-14 Network path adjustment method, system, device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112491700A CN112491700A (en) 2021-03-12
CN112491700B true CN112491700B (en) 2023-05-02

Family

ID=74916978

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011472335.5A Active CN112491700B (en) 2020-12-14 2020-12-14 Network path adjustment method, system, device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112491700B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11870682B2 (en) * 2021-06-22 2024-01-09 Mellanox Technologies, Ltd. Deadlock-free local rerouting for handling multiple local link failures in hierarchical network topologies
CN114338357B (en) * 2021-12-13 2024-05-14 阿里巴巴(中国)有限公司 Method and device for transmitting data message in network
CN114422470A (en) * 2021-12-27 2022-04-29 中国电信股份有限公司 Address processing method and device, electronic equipment and storage medium
CN114629860B (en) * 2022-03-17 2024-01-30 北京恒安嘉新安全技术有限公司 Data transmission method, device, service line card and storage medium
CN114745403B (en) * 2022-03-31 2024-02-06 西门子(中国)有限公司 Industrial network communication system and industrial network communication method
CN115051947B (en) * 2022-06-30 2024-02-23 中兴通讯股份有限公司 Communication state switching method, port configuration method, communication system and medium
CN116405375B (en) * 2023-06-09 2023-08-25 深圳和润达科技有限公司 Data transmission and power supply method and system based on multipath network

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111262665A (en) * 2018-11-30 2020-06-09 北京金山云网络技术有限公司 Data communication method, device, controller and system

Family Cites Families (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101159669A (en) * 2007-10-09 2008-04-09 华为技术有限公司 Service flow switching method and apparatus
CN101841464A (en) * 2010-03-08 2010-09-22 北京网康科技有限公司 Network load balancing device and implementation method thereof
CN102377672A (en) * 2011-11-03 2012-03-14 华为技术有限公司 Routing method and communication equipment in data center network
US9419908B2 (en) * 2013-11-27 2016-08-16 Cisco Technology, Inc. Network congestion management using flow rebalancing
CN104735673A (en) * 2013-12-19 2015-06-24 中兴通讯股份有限公司 Bound link configuration processing method and configuration method and device
CN106998302B (en) * 2016-01-26 2020-04-14 华为技术有限公司 Service flow distribution method and device
US20180287858A1 (en) * 2017-03-31 2018-10-04 Intel Corporation Technologies for efficiently managing link faults between switches
CN107547249A (en) * 2017-06-15 2018-01-05 新华三技术有限公司 Link switch-over method, device, SDN switch, controller and storage medium
CN109861925B (en) * 2017-11-30 2021-12-21 华为技术有限公司 Data transmission method, related device and network
CN108667727B (en) * 2018-04-27 2021-03-16 广东电网有限责任公司 Network link fault processing method and device and controller
US11050652B2 (en) * 2018-11-01 2021-06-29 Microsoft Technology Licensing, Llc Link fault isolation using latencies
CN110752993B (en) * 2019-10-24 2022-02-25 新华三信息安全技术有限公司 Message forwarding method and device
CN111030926B (en) * 2019-12-20 2021-07-27 苏州浪潮智能科技有限公司 Method and device for improving high availability of network
CN111106967A (en) * 2019-12-30 2020-05-05 联想(北京)有限公司 Intelligent routing method, device and storage medium
CN111294278B (en) * 2020-01-03 2022-02-25 腾讯科技(深圳)有限公司 Routing method, routing device, electronic equipment and computer readable storage medium

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111262665A (en) * 2018-11-30 2020-06-09 北京金山云网络技术有限公司 Data communication method, device, controller and system

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
Fang-Yie Leu等."A path switching scheme for SCTP based on round trip delays".《ELSEVIER》.2011,第62卷(第9期),全文. *
唐亚娜等."网络大数据异常传输路径切换方法研究".《万方数据库》.2020,全文. *

Also Published As

Publication number Publication date
CN112491700A (en) 2021-03-12

Similar Documents

Publication Publication Date Title
CN112491700B (en) Network path adjustment method, system, device, electronic equipment and storage medium
US20200014614A1 (en) SDN Controller, Data Center System, and Routing Connection Method
US7944913B2 (en) Node, communication method, and program for node
US8438307B2 (en) Method and device of load-sharing in IRF stack
EP1982447A2 (en) System and method for detecting and recovering from virtual switch link failures
US11398976B2 (en) Method, device, and system for implementing MUX machine
US20130182559A1 (en) Transmission network and transmission network management system
US20160014032A1 (en) Method and Device for Flow Path Negotiation in Link Aggregation Group
CN109088822B (en) Data flow forwarding method, device, system, computer equipment and storage medium
US20040215821A1 (en) Enhanced virtual router redundancy protocol
GB2534962A (en) Method of operating a network node, network node, system and computer-readable medium
CN111682989A (en) Method, device and system for detecting port link state
US11258666B2 (en) Method, device, and system for implementing MUX machine
US20150381498A1 (en) Network system and its load distribution method
WO2017000096A1 (en) Link recovery method and network device
KR20180122513A (en) Method and framework for traffic engineering in network hypervisor of sdn-based network virtualization platform
CN112995002B (en) Switch ring network design method, switch and storage medium
EP3537671B1 (en) Protection switching method and system, and nodes
US11800262B2 (en) Service path switching method and related device
US9071538B2 (en) Method for dynamically adjusting switching loop and network equipment
CN114039907A (en) Method for improving link stability based on network card binding
CN109039728B (en) BFD-based flow congestion detection method and system
WO2020181699A1 (en) Method for managing management control converged telecommunications network, and system
CN112040513A (en) Data transmission method, data transmission device and data transmission system
CN114268589B (en) Traffic forwarding method, device and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20230921

Address after: 9/F, Block C, No. 28 Tianfu Avenue North Section, China (Sichuan) Free Trade Pilot Zone, High tech Zone, Chengdu, Sichuan, 610095

Patentee after: CHENGDU KNOWNSEC INFORMATION TECHNOLOGY Co.,Ltd.

Address before: 12 / F, building 2, 219 Tianfu 3rd Street, China (Sichuan) pilot Free Trade Zone, hi tech Zone, Chengdu, Sichuan 610000

Patentee before: Chengdu yanchuang Qixin Information Technology Co.,Ltd.

TR01 Transfer of patent right