CN117221167A - Test method for reducing packet loss rate during switching of network port binding active-standby links - Google Patents
Test method for reducing packet loss rate during switching of network port binding active-standby links Download PDFInfo
- Publication number
- CN117221167A CN117221167A CN202311192119.9A CN202311192119A CN117221167A CN 117221167 A CN117221167 A CN 117221167A CN 202311192119 A CN202311192119 A CN 202311192119A CN 117221167 A CN117221167 A CN 117221167A
- Authority
- CN
- China
- Prior art keywords
- network
- standby
- main
- link
- main link
- 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.)
- Pending
Links
- 238000010998 test method Methods 0.000 title claims description 11
- 238000000034 method Methods 0.000 claims abstract description 38
- 238000012544 monitoring process Methods 0.000 claims abstract description 28
- 238000012360 testing method Methods 0.000 claims abstract description 12
- 238000004590 computer program Methods 0.000 claims description 12
- 238000004891 communication Methods 0.000 claims description 11
- 238000001514 detection method Methods 0.000 claims description 6
- 230000008569 process Effects 0.000 description 4
- 238000012545 processing Methods 0.000 description 3
- 230000003044 adaptive effect Effects 0.000 description 2
- 238000013461 design Methods 0.000 description 2
- 230000002093 peripheral effect Effects 0.000 description 2
- 230000002776 aggregation Effects 0.000 description 1
- 238000004220 aggregation Methods 0.000 description 1
- 238000003491 array Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 239000000470 constituent Substances 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000000802 evaporation-induced self-assembly Methods 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000003252 repetitive effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Abstract
The invention relates to the fields of server testing and computer testing, in particular to a testing method, a system, computer equipment and a storage medium for reducing packet loss rate during switching of network port binding active-standby links. The method configures a main network device and a standby network device; assigning a shared virtual IP address to the primary network device; the method comprises the steps of monitoring the available state of a network main link, judging whether the main link is unavailable, and if so, sending a main link switching operation signal; based on the main link switching operation signal, updating the IP address of the standby network equipment into a virtual IP address, and updating the network configuration of the standby network equipment to realize the network connection of the standby link; the method comprises the steps of monitoring the available state of a network main link, judging whether the main link is available, and if so, sending a main link reverse switching operation signal; based on the main link reverse switching operation signal, the IP address of the main network device is updated to a virtual IP address, and the network configuration of the main network device is updated.
Description
Technical Field
The present invention relates to the field of server testing and computer testing, and in particular, to a method, system, computer device and storage medium for reducing packet loss rate during switching of a network port binding active/standby link.
Background
Portal binding (or network interface binding, network interface aggregation) is a technique that binds multiple physical portals into one logical portal. Portal binding may increase bandwidth and throughput, improve redundancy and reliability, simplify network configuration and management, etc., which is favored. The portal binding mainly has seven modes, namely an Active Backup (Active Backup) mode, an adaptive load balancing (Adaptive Load Balancing) mode, a Balance exchange (Balance XOR) mode, a Balance TLA (Balance TLB) mode, a Balance ALB (Balance ALB) mode, a Balance SLB (Balance SLB) mode and a Balance alb+r (Balance alb+r) mode. In the active backup mode, when the main network port is down and is switched to the standby network port, the link switching time is long, so that packet loss and data loss are easy to occur, great hidden danger is brought to the integrity and reliability of the data, and the service quality is reduced. In order to solve the technical problem, a test method, a system, computer equipment and a storage medium for reducing the packet loss rate during switching of the network port binding active-standby links are provided.
Disclosure of Invention
In order to solve the technical problems in the prior art, the invention provides a test method, a system, computer equipment and a storage medium for reducing the packet loss rate during switching of a network port binding active-standby link.
In order to achieve the above object, the embodiment of the present invention provides the following technical solutions:
in a first aspect, in an embodiment provided by the present invention, a method for reducing packet loss rate during switching of a network port binding active/standby link is provided, where the method is applied to a computer system, and the computer system includes a primary network device, a standby network device, and an execution device; the execution device is connected with the standby network device through the main network device; the method comprises the following steps:
configuring a main network device and a standby network device;
assigning a shared virtual IP address to the primary network device;
the method comprises the steps of monitoring the available state of a network main link, judging whether the main link is unavailable, and if so, sending a main link switching operation signal;
based on the main link switching operation signal, updating the IP address of the standby network equipment into a virtual IP address, and updating the network configuration of the standby network equipment to realize the network connection of the standby link;
the method comprises the steps of monitoring the available state of a network main link, judging whether the main link is available, and if so, sending a main link reverse switching operation signal;
based on the main link reverse switching operation signal, the IP address of the main network equipment is updated to be a virtual IP address, and the network configuration of the main network equipment is updated to realize the main link network connection.
As a further aspect of the present invention, the primary network device includes a primary switch and a primary router; the standby network device includes a standby switch and a standby route.
As a further aspect of the present invention, in the monitoring of the status of the availability of the main link of the network, determining whether there is a phenomenon that the main link is unavailable, and if so, sending a main link switching operation signal, including:
the availability of the network main link is monitored by heartbeat detection or link state detection.
As a further aspect of the present invention, the updating the IP address of the standby network device to the virtual IP address and updating the network configuration of the standby network device based on the main link switching operation signal to implement the standby link network connection includes:
and sending a main link switching operation signal to the execution device so as to facilitate the network switching operation of the execution device.
As a further aspect of the present invention, the main link switching operation signal is transmitted to the execution device through network information or a broadcast message.
As a further aspect of the present invention, updating the network configuration of the standby network device includes updating network routing information.
As a further scheme of the invention, the IP address of the main network device is updated to a virtual IP address based on the main link reverse switching operation signal, and the network configuration of the main network device is updated to realize the main link network connection; comprising the following steps:
and sending a main link reverse switching operation signal to the execution equipment so as to facilitate the network switching operation of the execution equipment.
In a second aspect, in another embodiment provided by the present invention, a test system for reducing a packet loss rate during switching of a network port binding active-standby link is provided, where the system includes: the system comprises a configuration module, a main network module, a standby network module, an execution device and a monitoring module;
the configuration module is used for configuring the main network equipment and the standby network equipment and distributing a shared virtual IP address to the main network equipment;
the main network module is used for updating the IP address of the main network equipment into a virtual IP address based on the main link reverse switching operation signal, and updating the network configuration of the main network equipment so as to realize the main link network connection;
the standby network module is used for updating the IP address of the standby network equipment into a virtual IP address based on the main link switching operation signal and updating the network configuration of the standby network equipment;
the execution equipment is used for carrying out network switching based on a main link reverse switching operation signal or a main link switching operation signal so as to realize network communication;
the monitoring module is used for monitoring the available state of the network main link; judging whether a main link is unavailable or not, and if so, sending a main link switching operation signal; judging whether the main link availability phenomenon exists, and if so, sending a main link reverse switching operation signal.
In a third aspect, in still another embodiment of the present invention, a computer device is provided, including a memory and a processor, where the memory stores a computer program, and the processor implements, when loading and executing the computer program, a step of a test method for reducing a packet loss rate when a network port binding active-standby link is switched.
In a fourth aspect, in still another embodiment of the present invention, a storage medium is provided, where a computer program is stored, where the computer program when loaded and executed by a processor implements the steps of the method for reducing a packet loss rate during handover of a host-backup link of a portal binding.
The technical scheme provided by the invention has the following beneficial effects:
the invention provides a test method, a system, a computer device and a storage medium for reducing packet loss rate when a network port binding main and standby link is switched, wherein the method configures main network equipment and standby network equipment; assigning a shared virtual IP address to the primary network device; the method comprises the steps of monitoring the available state of a network main link, judging whether the main link is unavailable, and if so, sending a main link switching operation signal; based on the main link switching operation signal, updating the IP address of the standby network equipment into a virtual IP address, and updating the network configuration of the standby network equipment to realize the network connection of the standby link; the method comprises the steps of monitoring the available state of a network main link, judging whether the main link is available, and if so, sending a main link reverse switching operation signal; based on the main link reverse switching operation signal, the IP address of the main network equipment is updated to be a virtual IP address, and the network configuration of the main network equipment is updated to realize the main link network connection. The invention can effectively reduce the packet loss rate when the network port binding main and standby links are switched, improve the integrity of damaged data and solve the problem of inaccurate data during testing.
These and other aspects of the invention will be more readily apparent from the following description of the embodiments. It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the invention as claimed.
Drawings
In order to more clearly illustrate the embodiments of the invention or the technical solutions in the prior art, the drawings that are necessary for the description of the embodiments or the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the invention and that other embodiments may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flowchart of a test method for reducing packet loss rate during switching of a network port binding active-standby link according to an embodiment of the present invention.
Fig. 2 is a specific flowchart of a test example for reducing a packet loss rate during switching of a network port binding active-standby link according to an embodiment of the present invention.
Fig. 3 is a block diagram of a test system for reducing packet loss rate during switching of a network port binding active-standby link according to an embodiment of the present invention.
In the figure: the system comprises a configuration module-100, a main network module-200, a standby network module-300, an execution device-400 and a monitoring module-500.
Detailed Description
Various embodiments and/or aspects are described below with reference to the accompanying drawings. In the following description, for purposes of explanation, numerous specific details are set forth in order to provide a thorough understanding of one or more aspects. However, it will be understood by those skilled in the art that the aspects may be practiced without the specific details. Specific examples of one or more aspects will be described in detail below with reference to the accompanying drawings. However, these aspects are illustrative, and some of the various methods in which the principles of the various aspects may be utilized, and the description set forth is intended to include all aspects and their equivalents. In particular, the terms "embodiment," "example," "modality," "illustration," and the like as used in this specification may be construed as describing any modality or design that may be better or have advantages than other modalities or designs.
In addition, the various aspects and features may be embodied in systems that include more than one device, terminal, server, apparatus, component, and/or module, etc. It is to be understood and appreciated that the various systems may include additional pluralities of devices, terminals, servers, apparatus, components, and/or modules, and/or may not include all of the pluralities of devices, terminals, servers, apparatus, components, modules, etc. shown in the figures.
The terms "computer program," "component," "module," "system," and the like are used interchangeably herein and refer to a computer-related entity, hardware, firmware, software, a combination of software and hardware, or execution of software. For example, a component may be, but is not limited to being, a process executing on a processor, an object, a thread of execution, a program, and/or a computer. For example, it may be an application executing on a computer device and/or all components of a computing device. More than one component may be installed within a processor and/or thread of execution. A component may be localized in one computer. A component may also be distributed between more than two computers.
Also, these components can execute from various computer readable media having various data structures stored therein. These components may communicate by way of local and/or remote processes such as in accordance with a signal having one or more data packets (e.g., data transmitted by one component interacting with another component in a local system, distributed system, and across a network such as the internet with the other system by way of the signal).
Hereinafter, the same reference numerals are given to the same or similar components irrespective of the drawing symbols, and a repetitive description thereof will be omitted. In the description of the embodiments disclosed in the present specification, if it is determined that the detailed description of the known technology makes the gist of the present invention unclear, detailed description thereof will be omitted. The drawings are only for easier understanding of the embodiments disclosed in the present specification, and the technical ideas disclosed in the present specification are not limited to the drawings.
The terminology used in the description is for the purpose of describing the embodiments only and is not intended to be limiting of the invention. Where not specifically mentioned, singular references in this specification include plural references. The inclusion and/or inclusion of components in the specification do not preclude the presence or addition of one or more other components.
The terms first, second, etc. may be used to describe various elements or components, but the elements or components are not limited to the terms. The term is used to distinguish one element or component from another element or component. Therefore, the first element or component mentioned below may be the 2 nd element or component within the technical idea of the present invention.
Unless defined otherwise, all terms (including technical and scientific terms) used in this specification have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. In addition, terms defined in a dictionary generally used should not be interpreted in an idealized or overdecommenced manner unless specifically defined.
In addition, the term "or" is not intended to be exclusive "or" but rather is inclusive. That is, "X employs A or B" means one of the substitutions of natural connotation unless otherwise specifically or contextually ambiguous. That is, X utilizes A or; when X is B or X is A and B, the "X is A or B" may be any of the above. Also, it should be understood that the term "and/or" as used in this specification refers to all possible combinations of more than one of the items included in the list of related items.
In addition, the terms "information" and "data" are generally used interchangeably in this specification.
The suffixes "module" and "part" for the constituent elements used in the following description are given or used for convenience of writing the description, and do not have mutually distinguishing meanings or roles.
In particular, embodiments of the present invention are further described below with reference to the accompanying drawings.
Referring to fig. 1 and 2, fig. 1 is a flowchart of a test method for reducing a packet loss rate during switching of a network port binding active-standby link according to an embodiment of the present invention, as shown in fig. 1, the test method for reducing the packet loss rate during switching of a network port binding active-standby link includes steps S10 to S60. The method is applied to a computer system, and the computer system comprises a main network device, a standby network device and an execution device; the execution device is connected with the standby network device through the main network device; the executing device may include a server, a terminal, and other devices.
S10, configuring a main network device and a standby network device; ensuring that the master device and the slave device can work normally and can communicate with each other.
In an embodiment of the present invention, the primary network device includes a primary switch, a primary router, and the like; the standby network device includes a standby switch and a standby router.
S20, a shared virtual IP address is allocated to the main network equipment.
It should be noted that, the IP address will be used to identify the whole active/standby device set, and be used as the address where the client communicates with the device; and ensures that the virtual IP address does not conflict with other devices in the existing network when it is configured.
S30, monitoring the available state of the network main link, judging whether the phenomenon of unavailability of the main link exists, and if so, sending out a main link switching operation signal.
In the embodiment of the present invention, in the step S30, status monitoring is performed on the availability of the main link of the network, and it is determined whether there is a phenomenon that the main link is unavailable, and if so, a main link switching operation signal is sent, including:
the availability of the network main link is monitored by heartbeat detection or link state detection.
And S40, updating the IP address of the standby network equipment into a virtual IP address based on the main link switching operation signal, and updating the network configuration of the standby network equipment to realize the network connection of the standby link.
Specifically, the standby network device updates its own network configuration, and changes the IP address of the standby device to a virtual IP address. In this way, the client can continue to communicate with the device using the same address.
In the embodiment of the present invention, the step S40 of updating the IP address of the standby network device to the virtual IP address based on the main link switching operation signal, and updating the network configuration of the standby network device to implement the standby link network connection includes:
and sending a main link switching operation signal to the execution device so as to facilitate the network switching operation of the execution device.
Specifically, the main link switching operation signal is sent to the execution device, and may be sent through network information or a broadcast message.
Updating the network configuration of the standby network device includes updating network routing information.
S50, monitoring the available state of the network main link, judging whether the main link is available, and if so, sending a main link reverse switching operation signal.
And S60, updating the IP address of the main network equipment into a virtual IP address based on the main link reverse switching operation signal, and updating the network configuration of the main network equipment so as to realize the main link network connection.
In the embodiment of the present invention, the step S60 updates the IP address of the primary network device to a virtual IP address based on the primary link reverse switching operation signal, and updates the network configuration of the primary network device to implement primary link network connection; comprising the following steps:
and sending a main link reverse switching operation signal to the execution equipment so as to facilitate the network switching operation of the execution equipment.
Updating the network configuration of the primary network device includes updating network routing information.
The invention configures the main network equipment and the standby network equipment; assigning a shared virtual IP address to the primary network device; the method comprises the steps of monitoring the available state of a network main link, judging whether the main link is unavailable, and if so, sending a main link switching operation signal; based on the main link switching operation signal, updating the IP address of the standby network equipment into a virtual IP address, and updating the network configuration of the standby network equipment to realize the network connection of the standby link; the method comprises the steps of monitoring the available state of a network main link, judging whether the main link is available, and if so, sending a main link reverse switching operation signal; based on the main link reverse switching operation signal, the IP address of the main network equipment is updated to be a virtual IP address, and the network configuration of the main network equipment is updated to realize the main link network connection. The invention can effectively reduce the packet loss rate when the network port binding main and standby links are switched, improve the integrity of damaged data and solve the problem of inaccurate data during testing.
It should be understood that although described in a certain order, the steps are not necessarily performed sequentially in the order described. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, some steps of the present embodiment may include a plurality of steps or stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of the steps or stages is not necessarily sequential, but may be performed alternately or alternately with at least a part of the steps or stages in other steps or other steps.
In one embodiment, referring to fig. 3, a test system for reducing a packet loss rate during handover of a network port binding active/standby link is further provided in an embodiment of the present invention, where the system includes a configuration module 100, a primary network module 200, a standby network module 300, an execution device 400, and a monitoring module 500.
The configuration module 100 is configured to configure a primary network device and a standby network device, and allocate a shared virtual IP address to the primary network device.
The main network module 200 is configured to update an IP address of the main network device to a virtual IP address based on the main link reverse switching operation signal, and update a network configuration of the main network device to implement main link network connection.
The standby network module 300 is configured to update an IP address of the standby network device to a virtual IP address and update a network configuration of the standby network device based on the main link switching operation signal.
The executing device 400 is configured to perform network switching based on the main link reverse switching operation signal or based on the main link switching operation signal, so as to implement network communication.
The monitoring module 500 is configured to monitor a status of an availability of a network main link; judging whether a main link is unavailable or not, and if so, sending a main link switching operation signal; judging whether the main link availability phenomenon exists, and if so, sending a main link reverse switching operation signal.
In one embodiment, a computer device is also provided in an embodiment of the present invention, including a processor, a communication interface, a memory, and a communication bus, where the processor, the communication interface, and the memory communicate with each other via the communication bus.
A memory for storing a computer program;
and the processor is used for executing the test method for reducing the packet loss rate when the network port binding main and standby links are switched when executing the computer program stored in the memory, and the steps in the embodiment of the method are realized when the processor executes the instructions:
s10, configuring a main network device and a standby network device; ensuring that the master device and the slave device can work normally and can communicate with each other.
S20, a shared virtual IP address is allocated to the main network equipment.
S30, monitoring the available state of the network main link, judging whether the phenomenon of unavailability of the main link exists, and if so, sending out a main link switching operation signal.
And S40, updating the IP address of the standby network equipment into a virtual IP address based on the main link switching operation signal, and updating the network configuration of the standby network equipment to realize the network connection of the standby link.
S50, monitoring the available state of the network main link, judging whether the main link is available, and if so, sending a main link reverse switching operation signal.
And S60, updating the IP address of the main network equipment into a virtual IP address based on the main link reverse switching operation signal, and updating the network configuration of the main network equipment so as to realize the main link network connection.
The communication bus mentioned by the above terminal may be a peripheral component interconnect standard (Peripheral ComponentInterconnect, abbreviated as PCI) bus or an extended industry standard architecture (Extended Industry StandardArchitecture, abbreviated as EISA) bus, etc. The communication bus may be classified as an address bus, a data bus, a control bus, or the like. For ease of illustration, the figures are shown with only one bold line, but not with only one bus or one type of bus.
The communication interface is used for communication between the terminal and other devices.
The memory may include random access memory (Random Access Memory, RAM) or non-volatile memory (non-volatile memory), such as at least one disk memory. Optionally, the memory may also be at least one memory device located remotely from the aforementioned processor.
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 (Digital Signal Processing, DSP for short), application specific integrated circuits (Application SpecificIntegrated Circuit, ASIC for short), field-programmable gate arrays (Field-Programmable Gate Array, FPGA for short) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
The computer device includes a user device and a network device. Wherein the user equipment includes, but is not limited to, a computer, a smart phone, a PDA, etc.; the network device includes, but is not limited to, a single network server, a server group of multiple network servers, or a Cloud based Cloud Computing (Cloud Computing) consisting of a large number of computers or network servers, where Cloud Computing is one of distributed Computing, and is a super virtual computer consisting of a group of loosely coupled computer sets. The computer device can be used for realizing the invention by running alone, and can also be accessed into a network and realized by interaction with other computer devices in the network. Wherein the network where the computer device is located includes, but is not limited to, the internet, a wide area network, a metropolitan area network, a local area network, a VPN network, and the like.
It should also be understood that the term "and/or" as used in the present specification and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes such combinations.
In one embodiment of the present invention there is also provided a storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of the method embodiments described above:
s10, configuring a main network device and a standby network device; ensuring that the master device and the slave device can work normally and can communicate with each other.
S20, a shared virtual IP address is allocated to the main network equipment.
S30, monitoring the available state of the network main link, judging whether the phenomenon of unavailability of the main link exists, and if so, sending out a main link switching operation signal.
And S40, updating the IP address of the standby network equipment into a virtual IP address based on the main link switching operation signal, and updating the network configuration of the standby network equipment to realize the network connection of the standby link.
S50, monitoring the available state of the network main link, judging whether the main link is available, and if so, sending a main link reverse switching operation signal.
And S60, updating the IP address of the main network equipment into a virtual IP address based on the main link reverse switching operation signal, and updating the network configuration of the main network equipment so as to realize the main link network connection.
Those skilled in the art will appreciate that implementing all or part of the above described embodiment methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the above described embodiment methods. Any reference to memory, storage, database, or other medium used in embodiments provided herein may include at least one of non-volatile and volatile memory.
It should be noted that:
virtual IP address
Virtual IP is an IP address that does not belong to any particular server and is used to represent the entire server cluster or group of devices. The user accesses the service by accessing the virtual IP address.
Redundant backup mode
In the redundancy backup mode, a plurality of network ports are bound into a logic interface, but only one network port can bear the task of data transmission, and the other network ports are in a backup state. When the active network port fails, the system can automatically switch to the backup network port, thereby realizing the failover and redundancy backup of network connection.
Address drift
Address drift refers to the process of moving an IP address from one host or device to another in a network. It can be used to implement failover, load balancing, and mobility functions. Address drift may operate according to different trigger conditions. The trigger conditions may include host failure, network link failure, load balancing algorithms, etc. When the specified trigger condition is met, the address drift process will start. In terms of load balancing, address drift can distribute traffic to different hosts or devices according to a load balancing algorithm to achieve balanced utilization of resources and improve systematicness.
It should be understood that as used herein, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly supports the exception. It should also be understood that "and/or" as used herein is meant to include any and all possible combinations of one or more of the associated listed items. The foregoing embodiment of the present invention has been disclosed with reference to the number of embodiments for the purpose of description only, and does not represent the advantages or disadvantages of the embodiments.
Those of ordinary skill in the art will appreciate that: the above discussion of any embodiment is merely exemplary and is not intended to imply that the scope of the disclosure of embodiments of the invention, including the claims, is limited to such examples; combinations of features of the above embodiments or in different embodiments are also possible within the idea of an embodiment of the invention, and many other variations of the different aspects of the embodiments of the invention as described above exist, which are not provided in detail for the sake of brevity. Therefore, any omission, modification, equivalent replacement, improvement, etc. of the embodiments should be included in the protection scope of the embodiments of the present invention.
Claims (10)
1. The method is applied to a computer system, and the computer system comprises a main network device, a standby network device and an execution device; the execution device is connected with the standby network device through the main network device; characterized in that the method comprises the following steps:
configuring a main network device and a standby network device;
assigning a shared virtual IP address to the primary network device;
the method comprises the steps of monitoring the available state of a network main link, judging whether the main link is unavailable, and if so, sending a main link switching operation signal;
based on the main link switching operation signal, updating the IP address of the standby network equipment into a virtual IP address, and updating the network configuration of the standby network equipment to realize the network connection of the standby link;
the method comprises the steps of monitoring the available state of a network main link, judging whether the main link is available, and if so, sending a main link reverse switching operation signal;
based on the main link reverse switching operation signal, the IP address of the main network equipment is updated to be a virtual IP address, and the network configuration of the main network equipment is updated to realize the main link network connection.
2. The test method for reducing packet loss rate during switching of network port binding active-standby links according to claim 1, wherein the primary network device comprises a primary switch and a primary router; the standby network device includes a standby switch and a standby route.
3. The method for reducing packet loss rate during switching between network port binding active and standby links according to claim 2, wherein the step of monitoring the available state of the network active link to determine whether there is an unavailable phenomenon of the active link, and if so, sending an active link switching operation signal comprises:
the availability of the network main link is monitored by heartbeat detection or link state detection.
4. The method for reducing packet loss rate during switching of network port binding active-standby links according to claim 1, wherein updating the IP address of the standby network device to the virtual IP address and updating the network configuration of the standby network device based on the active-standby link switching operation signal to realize the network connection of the standby link comprises:
and sending a main link switching operation signal to the execution device so as to facilitate the network switching operation of the execution device.
5. The method for reducing packet loss rate during switching between active and standby links bound to a network port according to claim 1, wherein the main link switching operation signal is transmitted to the execution device through network information or broadcast messages.
6. The method for reducing packet loss rate during handover of a portal binding primary and secondary link of claim 1, wherein updating the network configuration of the secondary network device comprises updating network routing information.
7. The method for reducing packet loss rate during switching of network port binding active-standby links according to claim 1, wherein the method is characterized in that based on the active-link reverse switching operation signal, the IP address of the active network device is updated to a virtual IP address, and the network configuration of the active network device is updated to realize the active network connection; comprising the following steps:
and sending a main link reverse switching operation signal to the execution equipment so as to facilitate the network switching operation of the execution equipment.
8. A test system for reducing packet loss rate when switching network port binding main and standby links is characterized by comprising: the system comprises a configuration module, a main network module, a standby network module, an execution device and a monitoring module;
the configuration module is used for configuring the main network equipment and the standby network equipment and distributing a shared virtual IP address to the main network equipment;
the main network module is used for updating the IP address of the main network equipment into a virtual IP address based on the main link reverse switching operation signal, and updating the network configuration of the main network equipment so as to realize the main link network connection;
the standby network module is used for updating the IP address of the standby network equipment into a virtual IP address based on the main link switching operation signal and updating the network configuration of the standby network equipment;
the execution equipment is used for carrying out network switching based on a main link reverse switching operation signal or a main link switching operation signal so as to realize network communication;
the monitoring module is used for monitoring the available state of the network main link; judging whether a main link is unavailable or not, and if so, sending a main link switching operation signal; judging whether the main link availability phenomenon exists, and if so, sending a main link reverse switching operation signal.
9. A computer device comprising a memory and a processor, the memory storing a computer program, the processor implementing the steps of the method for reducing packet loss rate at handover of a portal binding active-standby link according to any one of claims 1-7 when loading and executing the computer program.
10. A storage medium storing a computer program which, when loaded and executed by a processor, implements the steps of the method for reducing packet loss rate at handover of a portal binding active-standby link according to any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311192119.9A CN117221167A (en) | 2023-09-15 | 2023-09-15 | Test method for reducing packet loss rate during switching of network port binding active-standby links |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311192119.9A CN117221167A (en) | 2023-09-15 | 2023-09-15 | Test method for reducing packet loss rate during switching of network port binding active-standby links |
Publications (1)
Publication Number | Publication Date |
---|---|
CN117221167A true CN117221167A (en) | 2023-12-12 |
Family
ID=89042110
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202311192119.9A Pending CN117221167A (en) | 2023-09-15 | 2023-09-15 | Test method for reducing packet loss rate during switching of network port binding active-standby links |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN117221167A (en) |
-
2023
- 2023-09-15 CN CN202311192119.9A patent/CN117221167A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10104167B2 (en) | Networking functions in a micro-services architecture | |
US10983880B2 (en) | Role designation in a high availability node | |
US8954785B2 (en) | Redundancy and load balancing in remote direct memory access communications | |
US8055933B2 (en) | Dynamic updating of failover policies for increased application availability | |
US7937617B1 (en) | Automatic clusterwide fail-back | |
CN111917846A (en) | Kafka cluster switching method, device and system, electronic equipment and readable storage medium | |
US10771318B1 (en) | High availability on a distributed networking platform | |
GB2407887A (en) | Automatically modifying fail-over configuration of back-up devices | |
US10735250B2 (en) | Dynamic distributor selection for network load balancing | |
US11349706B2 (en) | Two-channel-based high-availability | |
US9838475B2 (en) | Connectivity analysis and a mass storage system capable of connectivity analysis | |
CN109495916B (en) | Communication method and device | |
WO2023076371A1 (en) | Automatic encryption for cloud-native workloads | |
CN111580753B (en) | Storage volume cascade system, batch job processing system and electronic equipment | |
CN109347743B (en) | Special line communication method, computer readable storage medium and terminal equipment | |
CN113254205A (en) | Load balancing system, method and device, electronic equipment and storage medium | |
CN109218117B (en) | Link detection method and device and network equipment | |
CN115378798B (en) | Multi-cluster gateway cooperation method and system based on dynamic perception | |
CN117221167A (en) | Test method for reducing packet loss rate during switching of network port binding active-standby links | |
US9935836B2 (en) | Exclusive IP zone support systems and method | |
CN113242299A (en) | Disaster recovery system, method, computer device and medium for multiple data centers | |
US20150154083A1 (en) | Information processing device and recovery management method | |
US11190394B2 (en) | Soft-failure protection for multicast communications | |
CN111586141B (en) | Job processing method, device and system and electronic equipment | |
CN113992683B (en) | Method, system, equipment and medium for realizing effective isolation of double networks in same cluster |
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 |