CN114363228B - MLAG-Lite test system and method - Google Patents
MLAG-Lite test system and method Download PDFInfo
- Publication number
- CN114363228B CN114363228B CN202111672487.4A CN202111672487A CN114363228B CN 114363228 B CN114363228 B CN 114363228B CN 202111672487 A CN202111672487 A CN 202111672487A CN 114363228 B CN114363228 B CN 114363228B
- Authority
- CN
- China
- Prior art keywords
- port
- test
- switch
- gateway
- equipment
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/50—Testing arrangements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0803—Configuration setting
- H04L41/0823—Configuration setting characterised by the purposes of a change of settings, e.g. optimising configuration for enhancing reliability
- H04L41/0826—Configuration setting characterised by the purposes of a change of settings, e.g. optimising configuration for enhancing reliability for reduction of network costs
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/04—Processing captured monitoring data, e.g. for logfile generation
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/10—Active monitoring, e.g. heartbeat, ping or trace-route
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Health & Medical Sciences (AREA)
- Cardiology (AREA)
- General Health & Medical Sciences (AREA)
- Data Mining & Analysis (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The application provides a MLAG-Lite test system and a method, wherein the system comprises: a switch, a first gateway device and a second gateway device; the switch is provided with a first port and a second port, the first port is connected with the first gateway equipment, and the second port is connected with the second gateway equipment; the first port and the second port are configured as a Link Aggregation Control Protocol (LACP) aggregation group, and the switch communicates with the first gateway device and the second gateway device based on the LACP aggregation group; the priority of the first port and the priority of the second port are sequentially adjusted according to a preset rule; after adjusting the priority each time, the switch sends the ARP table maintained by the switch to the corresponding gateway equipment through the port with the highest current priority, so that the first gateway equipment and the second gateway equipment both store the ARP table, and the cost of testing the MLAG-Lite is reduced.
Description
Technical Field
The application relates to the field of network communication, in particular to an MLAG-Lite test system and method.
Background
The lightweight cross-device link aggregation group (Multi-chassis Link Aggregation Group Lite, MLAG-Lite) is a simpler and pure de-stacking solution derived on the basis of the cross-device link aggregation group (Multi-chassis Link Aggregation Group, MLAG) technical framework. Compared with the existing MLAG, the method has the advantages of higher expandability and simpler configuration, and is favored by users in the data center scene. The existing MLAG needs a special link to carry out message interaction, elects the role of equipment, synchronizes the information of the list items among the equipment through the special link, and the realization modes of all manufacturers are inconsistent, so that the equipment among different manufacturers cannot be compatible. Compared with the existing MLAG, the MLAG-Lite has simpler implementation mode, does not adopt a special link, does not maintain an MLAG protocol, saves port resources and reduces the pressure of a device processing system. The MLAG-Lite can enable a plurality of network devices in the system to present the same device to LACP (Link Aggregation Control Protocol ) ports of other devices outside the MLAG-Lite system only by configuring the same MAC (Media Access Control ) address and extension port number for the network devices in the system, thereby realizing cross-device link aggregation without the problem of vendor compatibility. However, since the MLAG-Lite does not have a special protocol or a special link to synchronize the entries, the consistency of the entries cannot be achieved among the network devices in the network MLAG-Lite system.
As shown in fig. 1, switch1 and Switch2 are gateway devices, the access node is a server, and the gateway devices Switch1 and Switch2 are two gateways of the server, so that the server is fully loaded on the two gateway devices when sending a message. Therefore, in the actual use process, the server needs to send ARP tables to the two gateway devices respectively, so that the ARP tables of the servers maintained by the two gateway devices are identical.
However, in the research and development testing stage of the MLAG-Lite, since the server resources are expensive and the MLAG-Lite needs to be connected to two gateway devices using a multi-port server, the cost of performing the MLAG-Lite test using the server as an access node is expensive in the research and development testing stage.
Disclosure of Invention
The embodiment of the application aims to provide an MLAG-Lite test system and an MLAG-Lite test method, which are used for reducing the cost of testing the MLAG-Lite.
In a first aspect, the present application provides an MLAG-Lite test system, said system comprising: a switch, a first gateway device and a second gateway device; the switch is configured with a first port and a second port, the first port is connected with the first gateway equipment, and the second port is connected with the second gateway equipment; the first port and the second port are configured as a Link Aggregation Control Protocol (LACP) aggregation group, and the switch communicates with the first gateway device and the second gateway device based on the LACP aggregation group; the priorities of the first port and the second port are sequentially adjusted according to a preset rule; after adjusting the priority each time, the switch sends the ARP table maintained by the switch to the corresponding gateway device through the port with the highest current priority in the first port and the second port, so that the first gateway device and the second gateway device both store the ARP table.
In the embodiment of the application, a switch is used as an access node of an MLAG-Lite system, a first port and a second port are configured on the switch and are respectively connected with a first gateway device and a second gateway device, the first port and the second port are configured into an LACP aggregation group, so that the switch communicates with the first gateway device and the second gateway device based on an LACP protocol, the priority of the first port and the priority of the second port are sequentially adjusted according to a preset rule, after the priority is adjusted each time, the switch sends an ARP table to the corresponding gateway device through the port with the highest current priority in the first port and the second port, thereby enabling the switch to realize ARP double sending, and the ARP tables of the two gateway devices keep consistent. By the method, the use of the switch simulation server in the MLAG-Lite system is realized, the MLAG-Lite test is performed by adopting the system, the MLAG-Lite test can be realized without purchasing or renting a server with high price, and the cost for performing the MLAG-Lite test is reduced.
In an alternative embodiment, the preset rule is that for two consecutive first preset durations, the priority of the first port is adjusted to be the highest priority in the previous first preset duration, and the priority of the second port is adjusted to be the highest priority in the next first preset duration.
In the embodiment of the application, through the setting mode, the priority of the first port and the priority of the second port are alternately set to be the highest priority, so that the ARP tables can be sent out from the first port and the second port alternately, and therefore, the first gateway equipment and the second gateway equipment can receive the ARP tables sent by the switch periodically, and when the ARP tables of the switch change, the first gateway equipment and the second gateway equipment can be ensured to update the changed ARP tables in time.
In an optional implementation manner, the switch sends the ARP table to the corresponding gateway device through the port with the highest current priority every interval of the first preset duration.
In the embodiment of the application, the period of the local ARP notification function of the switch is configured to be the same as the adjustment period of the priorities of the first port and the second port, so that the period of the switch for sending the ARP message is consistent with the period of the highest priority of the alternately adjusted ports, and therefore, the switch can send an ARP table once in each priority adjustment period, and further, the first gateway equipment and the second gateway equipment can both store the latest ARP table.
In an alternative embodiment, the ARP table aging time of the first gateway device and the ARP table aging time of the second gateway device are a second preset duration, where the second preset duration is longer than the first preset duration.
In the embodiment of the application, the ageing time of the ARP tables of the first gateway equipment and the second gateway equipment is set to be a second preset time length, and the second preset time length is longer than the first preset time length, so that the first gateway equipment and the second gateway equipment can both receive the ARP tables sent by the switch 101 before the ageing time is reached, and the difference of the ARP tables stored by the two gateway equipment caused by the too short ageing time of the ARP tables arranged on the gateway equipment is avoided.
In an alternative embodiment, the system further comprises an auxiliary test device and a tester; the auxiliary measurement equipment is respectively connected with the first gateway equipment and the second gateway equipment, and establishes a Border Gateway Protocol (BGP) neighbor with the first gateway equipment and the second gateway equipment, and a routing table advertised by the first gateway equipment and the second gateway equipment based on the ARP table is maintained in the auxiliary measurement equipment; the tester comprises a first test port and a second test port, wherein the first test port is connected with the auxiliary test equipment, and the second test port is connected with the switch; the tester sends a downlink test message to the switch through the first test port, and the auxiliary test equipment forwards the downlink test message to a second test port of the tester through the switch according to the routing table; the tester sends an uplink test message to the first test port through the second test port, and the auxiliary test equipment forwards the uplink test message to the first test port of the tester according to the routing table.
In the embodiment of the application, auxiliary testing equipment is set as the uplink equipment of the first gateway equipment and the second gateway equipment, and a routing table corresponding to the ARP table is maintained in the auxiliary testing equipment. The tester is respectively connected with the auxiliary testing equipment and the switch, generates a downlink testing message and an uplink testing message, and performs MLAG-Lite testing.
In a second aspect, the present application provides an MLAG-Lite test method, applied to an MLAG-Lite test system, the system comprising: a switch, a first gateway device and a second gateway device; the switch is configured with a first port and a second port, the first port is connected with first gateway equipment, and the second port is connected with second gateway equipment; the first port and the second port are configured as a Link Aggregation Control Protocol (LACP) aggregation group, and the switch communicates with the first gateway device and the second gateway device based on the LACP aggregation group; the method comprises the following steps: the test preparation step: the switch generates an ARP table for testing; the switch sequentially adjusts the priorities of the first port and the second port according to a preset rule; and after the priority is adjusted each time, the switch sends the ARP table through the port with the highest current priority in the first port and the second port, so that the first gateway equipment and the second gateway equipment both store the ARP table.
In an optional embodiment, the switch adjusts the priorities of the first port and the second port according to a preset rule, including: and aiming at two continuous first preset time periods, the priority of the first port is adjusted to be the highest priority in the former first preset time period, and the priority of the second port is adjusted to be the highest priority in the latter first preset time period.
In an alternative embodiment, the switch sends the ARP table through the port with the highest current priority, including: and sending the ARP table through the port with the highest current priority at each interval for the first preset time length.
In an alternative embodiment, the method comprises: and configuring the ARP table aging time of the first gateway device and the ARP table aging time of the second gateway device to be a second preset time length, wherein the second preset time length is longer than the first preset time length.
In an optional implementation manner, the system further includes an auxiliary measurement device, where the auxiliary measurement device is connected to the first gateway device and the second gateway device, and after the ARP table is sent through the port with the highest current priority, the test preparation step further includes: and the auxiliary testing equipment establishes Border Gateway Protocol (BGP) neighbors with the first gateway equipment and the second gateway equipment, and receives a routing table advertised by the first gateway equipment and/or the second gateway equipment based on the ARP table.
In an alternative embodiment, the system further comprises a tester, the tester comprising a first test port and a second test port, the first test port being connected to the auxiliary test device, the second test port being connected to the switch, the method further comprising, after the test preparation step: the testing steps are as follows: the tester sends a downlink test message to the switch through the first test port, and the auxiliary test equipment forwards the downlink test message to a second test port of the tester through the switch according to the routing table; the tester sends an uplink test message to the first test port through the second test port, and the auxiliary test equipment forwards the uplink test message to the first test port of the tester according to the routing table; determining a test result according to the number of the downlink test messages sent by the tester, the number of the downlink test messages received by the switch, the uplink test messages sent by the tester and the uplink messages received by the tester.
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 of the present application will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and should not be considered as limiting the scope, and other related drawings can be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a block diagram showing the structure of a prior art MLAG-Lite;
FIG. 2 is a block diagram showing the construction of an MLAG-Lite test system according to the present application;
fig. 3 is a flowchart of a testing method according to an embodiment of the present application.
Icon: a 100-MLAG-Lite test system; 101-a switch; 102-a first gateway device; 103-a second gateway device; 104-auxiliary measuring equipment; 105-tester; 1051-a first test port; 1052-second test port.
Detailed Description
The technical solutions in the embodiments of the present application will be described below with reference to the accompanying drawings in the embodiments of the present application.
Referring to fig. 2, fig. 2 is a block diagram showing a MLAG-Lite test system according to the present application. The MLAG-Lite test system 100 includes a switch 101, a first gateway device 102, and a second gateway device 103. The Switch 101 serves as an access node in the MLAG-Lite, and the first gateway device 102 and the second gateway device 103 correspond to Switch1 and Switch2 in the MLAG-Lite, respectively.
Switch 101 may be a network switch, with many ports typically present on existing network switches for connection to other network devices. The design idea of the application is that a switch is adopted to replace a special server as an access node of the MLAG-Lite system, and the switch simulates the working process of the server in the MLAG-Lite system, so that the MLAG-Lite test can be realized without purchasing or renting a server with high price in the research and development test stage of the MLAG-Lite system.
In the embodiment of the present application, the switch 101 is configured with a first port and a second port, where the first port is connected to the first gateway device 102, and the second port is connected to the second gateway device 103. Because the server serving as the access node in the MLAG-Lite system communicates with the Switch1 and the Switch2 in the MLAG-Lite by adopting a link aggregation control protocol (Link Aggregation Control Protocol, LACP), the purposes of expanding bandwidth and expanding redundancy are realized. Therefore, when the switch 101 is adopted to replace a server as an access node, the first port and the second port are configured into the LACP aggregation group, and the switch 101 communicates with the first gateway device 102 and the second gateway device 103 based on the LACP aggregation group, so that the switch 101 communicates with the two gateway devices by adopting the LACP.
In addition, in the MLAG-Lite system, a message sent from or to the server is sent or received by one of the two gateway devices (specifically, which gateway device sends the message is determined by the load balancing policy), so that the ARP table of the device needs to be sent to the two gateway devices as the server, so that the ARP tables of the servers maintained by the two gateway devices are identical, and further, it is ensured that the message sent from the server is smoothly forwarded from the gateway device, and the message sent to the server can be smoothly sent to the server by the gateway device.
In the embodiment of the application, when the switch 101 is adopted to replace a server as an access node of the MLAG-Lite system, ARP double-sending configuration in the LACP aggregation mode is also required to be realized. In order for the switch 101 to implement ARP dual transmission (transmitting ARP tables to the first gateway device and the second gateway device, respectively), priorities of the first port and the second port are sequentially adjusted according to a preset rule. After each adjustment of the priority, the switch 101 sends the ARP table maintained by itself to the corresponding gateway device through the port with the highest current priority among the first port and the second port.
It should be noted that, the ARP table maintained by the switch 101 may be a static ARP table configured in advance or an ARP table obtained by dynamic learning.
The local ARP notification function may be enabled on switch 101, and switch 101 sends the ARP table maintained by switch 101 to the gateway device in the form of an LACP message.
As an optional implementation manner, the preset rule may be: for two continuous first preset time periods, the priority of the first port is adjusted to be the highest priority in the previous first preset time period, and the priority of the second port is adjusted to be the highest priority in the next first preset time period.
In the embodiment of the application, a first preset time length is set, and the priority of two ports is adjusted every time the first preset time length passes. Assuming that the priority of the first port at the current moment is the highest priority, setting the priority of the second port to be the highest priority after a first preset duration; and after a first preset time period, setting the priority of the first port as the highest priority, and circulating in this way.
Because the message sent by the local ARP notification function is a protocol message, in the LACP protocol, the protocol message is fixedly sent out from the port with the highest priority. Therefore, through the setting mode, the priority of the first port and the priority of the second port are alternately set to be the highest priority, and the fact that the ARP tables can be sent out from the first port and the second port alternately is achieved, so that the first gateway equipment and the second gateway equipment can periodically receive the ARP tables sent by the switch, and when the ARP tables of the switch change, the first gateway equipment and the second gateway equipment can be guaranteed to update the changed ARP tables in time.
Further, as an optional implementation manner, the switch sends the ARP table to the corresponding gateway device through the port with the highest current priority every first preset duration.
In the embodiment of the present application, when the native ARP notification function of the switch 101 is enabled, the notification period is configured to be a first preset duration, that is, the adjustment period of the priority levels of the first port and the second port is the same, so that the switch 101 periodically sends the APR table to the gateway device corresponding to the port with the highest priority level.
As an optional implementation manner, ARP table aging time of the first gateway device and the second gateway device is a second preset duration, where the second preset duration is longer than the first preset duration.
In the embodiment of the application, in the actual use process, the gateway equipment can be provided with the APR table aging time for avoiding maintaining the ARP relationship which is not used any more. In the application, the switch 101 alternately sends the ARP tables to the first gateway device 102 and the second gateway device 103, so as to ensure that the ARP tables in the first gateway device 102 and the second gateway device 103 can keep consistent, the ageing time of the ARP tables in the first gateway device and the second gateway device is a second preset time length, and the second preset time length is longer than the first preset time length, thereby ensuring that the first gateway device and the second gateway device can both receive the ARP tables sent by the switch 101 before the ageing time is reached, and avoiding the difference of the ARP tables stored in the two gateway devices caused by the too short ageing time of the ARP tables set on the gateway devices.
In addition, when the MLAG-Lite test is performed, the transmitted message is transmitted through a three-layer protocol. Since switch 101 needs to learn or configure a large number of ARP entries, ARP entries need to be generated based on the three-layer interface. Therefore, when the switch 101 is used as an access node of the MLAG-Lite system instead of a server, the embodiment of the present application needs to configure a three-layer interface on the LACP aggregation group of the switch 101 and configure an IP address for the three-layer interface. Specifically, the configuration of the three-layer interface and the IP address for the switch 101 may be implemented by a switch three-layer interface technology (e.g., interface VLAN, routing interface, routing subinterface, etc.).
As an alternative embodiment, the MLAG-Lite test system 100 also includes a secondary test device 104 and a tester 105. The secondary device 104 is connected to the first gateway device 102 and the second gateway device 103, respectively, and establishes a border gateway protocol (Border Gateway Protocol, BGP) neighbor with the first gateway device 102 and the second gateway device 103. After receiving the ARP table sent by the switch 101, the first gateway device 102 and the second gateway device 103 generate a routing table according to the ARP table, and send the routing table to the auxiliary test device 104 in a BGP route notification manner.
It should be noted that, the routing table may be generated according to the ARP table by using a technical means commonly used in the art, which is not described herein.
Tester 105 includes a first test port 1051 and a second test port 1052, the first test port 1051 being connected to auxiliary device 104 and the second test port 1052 being connected to switch 101. The tester 105 sends a downlink test message to the switch 101 through the first test port 1051, and the auxiliary test device 104 forwards the downlink test message to the second test port 1052 of the tester 105 through the switch 101 according to the routing table. The source IP address of the downlink test packet is an IP address corresponding to the first test port 1051, and the destination address is an IP address of a terminal (analog terminal) connected to the switch 101 in the ARP table. The test result is determined according to the number of downlink test messages sent by the tester 105 and the number of downlink test messages received by the switch 101. If the number of downlink test messages received by the second test port 1052 of the tester 105 is the same as or smaller than the number of downlink test messages sent by the first test port 1051 of the tester 105, the downlink function and service forwarding of the MLAG-Lite system are considered to be correct; otherwise, the downlink service system of the MLAG-Lite system is considered to have a problem.
In addition to testing the forward function of the downlink of the MLAG-Lite, the forward function of the uplink of the MLAG-Lite may also be tested. Specifically, the tester 105 further sends an uplink test message to the first test port 1051 through the second test port 1052, the auxiliary test device 104 forwards the uplink test message to the first test port 1051 of the tester 105 according to the routing table, the source IP address of the uplink test message is the IP address of one terminal (analog terminal) connected to the switch 101 in the ARP table, and the destination address is the IP address corresponding to the first test port 1051. Similar to the forwarding function for determining the downlink of the MLAG-Lite system, the test result is determined according to the number of uplink test messages transmitted by the tester 105 and the number of uplink test messages received by the switch 101. If the number of uplink test messages received by the first test port 1051 is the same as or the difference between the number of uplink test messages sent by the second test port 1052 of the auxiliary test device 105 is smaller, the function and service forwarding of the uplink of the MLAG-Lite are considered to be correct; otherwise, the service system of the uplink of the MLAG-Lite is considered to have a problem.
The MLAG-Lite test system provided by the embodiment of the application uses the switch to replace a server as an access node of the MLAG-Lite system, a first port and a second port are configured on the switch and are respectively connected with a first gateway device and a second gateway device, the first port and the second port are configured into an LACP aggregation group, so that the switch and the first gateway device and the second gateway device communicate based on an LACP protocol, the priority of the first port and the second port is sequentially adjusted according to a preset rule, and after each adjustment of the priority, the switch sends an ARP table to the corresponding gateway device through the port with the highest current priority in the first port and the second port, thereby enabling the switch to realize ARP double transmission. By the method, the use of the switch simulation server in the MLAG-Lite system is realized, the MLAG-Lite test is performed by adopting the system, the MLAG-Lite test can be realized without purchasing or renting a server with high price, and the cost for performing the MLAG-Lite test is reduced.
Based on the same inventive concept, the embodiment of the application also provides a test method applied to the MLAG-Lite test system. Referring to fig. 3, fig. 3 is a flowchart of an MLAG-Lite testing method according to an embodiment of the present application, where the method may include a test preparation step:
step 301: the switch generates an ARP table for the test.
Step 302: the switch sequentially adjusts the priorities of the first port and the second port according to a preset rule.
Step 303: after each adjustment of the priority, the switch sends the ARP table through the port with the highest current priority.
The method provided by the embodiment of the application can be applied to the MLAG-Lite test system in the previous implementation mode.
In the embodiment of the application, an ARP table for testing is received first. If the MLAG-Lite test is required, a static ARP table is generated according to the test requirement. The corresponding relation between the IP address and the MAC address in the static ARP table is the same as the corresponding relation between the IP address and the MAC address in the flow simulated when the MLAG-Lite test is carried out. In order for the subsequent MLAG-Lite test to perform properly, it is necessary to receive an ARP table for the test.
In order to realize the ARP dual-forwarding function of the switch, priority levels of the first port and the second port need to be sequentially adjusted according to a preset rule. After adjusting the priority each time, sending an ARP table through the port with the highest current priority, so that the first gateway device and the second gateway device both store the ARP table.
As an alternative embodiment, the step 302 may include the following:
for two continuous first preset time periods, the priority of the first port is adjusted to be the highest priority in the previous first preset time period, and the priority of the second port is adjusted to be the highest priority in the next first preset time period.
Further, as an optional embodiment, the step 303 may include the following:
and sending an ARP table through the port with the highest current priority at each interval for a first preset time length.
Further, as an optional implementation manner, the test method provided by the embodiment of the application further includes:
and configuring the ARP table aging time of the first gateway device and the second gateway device to be a second preset time length, wherein the second preset time length is longer than the first preset time length.
In addition, as an optional implementation manner, the test method provided by the embodiment of the application further includes:
a three-layer interface is configured on the LACP aggregate group of the switch 101, and an IP address is configured for the three-layer interface.
It can be understood that the test method applied to the MLAG-Lite test system provided in the embodiment of the present application corresponds to the content of the foregoing description of the MLAG-Lite test system, and for brevity of description, the same or similar parts may be referred to each other, and will not be described herein again.
It should be noted that after the configuration of the MLAG-Lite test system is completed, the embodiment of the present application implements using a switch to replace a server as an access node of the MLAG-Lite, configuring a first port and a second port on the switch, respectively connecting with the first gateway device and the second gateway device, configuring the first port and the second port as an LACP aggregation group, so that the switch communicates with the first gateway device and the second gateway device based on an LACP protocol, sequentially adjusting priorities of the first port and the second port according to a preset rule, and after each adjustment of priorities, sending an ARP table to the corresponding gateway device by the switch through a port with the highest current priority, thereby implementing ARP dual-sending by the switch.
Further, after the switch realizes the ARP double-sending, the configured MLAG-Lite test system is adopted to test the MLAG-Lite service function based on the configured IP address and the ARP table.
As an alternative embodiment, the secondary device is also required to be configured prior to performing the MLAG-Lite test. Specifically, after step 303, the test preparation step further includes the following:
the auxiliary testing equipment establishes BGP neighbors with the first gateway equipment and the second gateway equipment, and the auxiliary testing equipment receives the routing table advertised by the first gateway equipment and/or the second gateway equipment based on the ARP table.
After the auxiliary testing equipment maintains the routing table generated based on the ARP table, MLAG-Lite test can be performed.
As an alternative embodiment, after the test preparation step, the test method provided by the present application further includes: the testing steps are as follows:
the tester sends a downlink test message to the switch through the first test port, and the auxiliary test equipment forwards the downlink test message to a second test port of the tester through the switch according to the routing table;
the tester sends an uplink test message to the first test port through the second test port, and the auxiliary test equipment forwards the uplink test message to the first test port of the tester according to the routing table;
determining a test result according to the number of downlink test messages sent by the tester, the number of downlink test messages received by the switch, the uplink test messages sent by the tester and the uplink test messages received by the tester.
It will be appreciated that the above test preparation steps and test steps correspond to those described in the foregoing description of the MLAG-Lite system, and for brevity of description, the same or similar parts may be referred to each other, and will not be described in detail herein.
It should be noted that the above MLAG-Lite service function test is only a specific example of an MLAG-Lite test provided in the embodiment of the present application, and other common technical means in the art may be used to perform the MLAG-Lite test, which is not specifically limited in the present application.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other manners. The above-described apparatus embodiments are merely illustrative, for example, the division of the units is merely a logical function division, and there may be other manners of division in actual implementation, and for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some communication interface, device or unit indirect coupling or communication connection, which may be in electrical, mechanical or other form.
Further, the units described as separate units may or may not be physically separate, and units displayed as units may or may not be physical units, may be located in one place, or may be distributed over a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
Furthermore, functional modules in various embodiments of the present application may be integrated together to form a single portion, or each module may exist alone, or two or more modules may be integrated to form a single portion.
It should be noted that 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 this 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, comprising several instructions for causing a computer device (which may be a personal computer, a server, a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM) random access Memory (Random Access Memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
In this document, relational terms such as first and second, and the like may be 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.
The above description is only an example of the present application and is not intended to limit the scope of the present application, and various modifications and variations will be apparent to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the protection scope of the present application.
Claims (11)
1. An MLAG-Lite test system, said system comprising: a switch, a first gateway device and a second gateway device;
the switch is configured with a first port and a second port, the first port is connected with the first gateway equipment, and the second port is connected with the second gateway equipment;
the first port and the second port are configured as a Link Aggregation Control Protocol (LACP) aggregation group, and the switch communicates with the first gateway device and the second gateway device based on the LACP aggregation group;
the priorities of the first port and the second port are sequentially adjusted according to a preset rule;
after adjusting the priority each time, the switch sends the ARP table maintained by the switch to the corresponding gateway device through the port with the highest current priority in the first port and the second port, so that the first gateway device and the second gateway device both store the ARP table.
2. The system of claim 1, wherein the preset rule is to adjust the priority of the first port to the highest priority for two consecutive first preset durations during a previous one of the first preset durations and to adjust the priority of the second port to the highest priority during a next one of the first preset durations.
3. The system of claim 2, wherein the switch sends the ARP table to the corresponding gateway device through the port with the highest current priority every interval of the first preset duration.
4. The system of claim 3, wherein ARP table aging times of the first gateway device and the second gateway device are a second preset duration, wherein the second preset duration is greater than the first preset duration.
5. The system of claim 1, further comprising an auxiliary test device and a tester;
the auxiliary measurement equipment is respectively connected with the first gateway equipment and the second gateway equipment, and establishes a Border Gateway Protocol (BGP) neighbor with the first gateway equipment and the second gateway equipment, and a routing table advertised by the first gateway equipment and the second gateway equipment based on the ARP table is maintained in the auxiliary measurement equipment;
the tester comprises a first test port and a second test port, wherein the first test port is connected with the auxiliary test equipment, and the second test port is connected with the switch;
the tester sends a downlink test message to the switch through the first test port, and the auxiliary test equipment forwards the downlink test message to a second test port of the tester through the switch according to the routing table;
the tester sends an uplink test message to the first test port through the second test port, and the auxiliary test equipment forwards the uplink test message to the first test port of the tester according to the routing table.
6. An MLAG-Lite test method, which is applied to an MLAG-Lite test system, the system comprising: a switch, a first gateway device and a second gateway device; the switch is configured with a first port and a second port, the first port is connected with first gateway equipment, and the second port is connected with second gateway equipment; the first port and the second port are configured as a Link Aggregation Control Protocol (LACP) aggregation group, and the switch communicates with the first gateway device and the second gateway device based on the LACP aggregation group; the method comprises the following steps:
the test preparation step:
the switch generates an ARP table for testing;
the switch sequentially adjusts the priorities of the first port and the second port according to a preset rule;
and after the priority is adjusted each time, the switch sends the ARP table through the port with the highest current priority in the first port and the second port, so that the first gateway equipment and the second gateway equipment both store the ARP table.
7. The method of claim 6, wherein the switch adjusting the priorities of the first port and the second port according to a preset rule comprises:
and aiming at two continuous first preset time periods, the priority of the first port is adjusted to be the highest priority in the former first preset time period, and the priority of the second port is adjusted to be the highest priority in the latter first preset time period.
8. The method of claim 7, wherein the switch sending the ARP table through the port with the highest current priority comprises:
and sending the ARP table through the port with the highest current priority at each interval for the first preset time length.
9. The method according to claim 8, characterized in that the method comprises:
and configuring the ARP table aging time of the first gateway device and the ARP table aging time of the second gateway device to be a second preset time length, wherein the second preset time length is longer than the first preset time length.
10. The method of claim 6, wherein the system further comprises a secondary device connected to the first gateway device and the second gateway device, respectively, and wherein after the transmitting the ARP table through the port with the highest current priority, the testing preparation step further comprises:
and the auxiliary testing equipment establishes Border Gateway Protocol (BGP) neighbors with the first gateway equipment and the second gateway equipment, and receives a routing table advertised by the first gateway equipment and/or the second gateway equipment based on the ARP table.
11. The method of claim 10, wherein the system further comprises a tester comprising a first test port and a second test port, the first test port being connected to the secondary device and the second test port being connected to the switch, the method further comprising, after the step of preparing for testing:
the testing steps are as follows:
the tester sends a downlink test message to the switch through the first test port, and the auxiliary test equipment forwards the downlink test message to a second test port of the tester through the switch according to the routing table;
the tester sends an uplink test message to the first test port through the second test port, and the auxiliary test equipment forwards the uplink test message to the first test port of the tester according to the routing table;
determining a test result according to the number of the downlink test messages sent by the tester, the number of the downlink test messages received by the switch, the uplink test messages sent by the tester and the uplink test messages received by the tester.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202111672487.4A CN114363228B (en) | 2021-12-31 | 2021-12-31 | MLAG-Lite test system and method |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202111672487.4A CN114363228B (en) | 2021-12-31 | 2021-12-31 | MLAG-Lite test system and method |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN114363228A CN114363228A (en) | 2022-04-15 |
| CN114363228B true CN114363228B (en) | 2023-10-27 |
Family
ID=81105840
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202111672487.4A Active CN114363228B (en) | 2021-12-31 | 2021-12-31 | MLAG-Lite test system and method |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN114363228B (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN116074265B (en) * | 2023-04-06 | 2023-07-14 | 苏州浪潮智能科技有限公司 | A switch port state configuration method, device, equipment and storage medium |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106656554A (en) * | 2016-10-14 | 2017-05-10 | 盛科网络(苏州)有限公司 | Method and device for implementing LACP in MLAG environment |
| CN111786882A (en) * | 2020-06-30 | 2020-10-16 | 中国联合网络通信集团有限公司 | A route processing method and device |
| CN112954064A (en) * | 2021-02-24 | 2021-06-11 | 紫光云技术有限公司 | Method for realizing high-availability networking under cloud network |
| CN113259235A (en) * | 2021-06-22 | 2021-08-13 | 浪潮思科网络科技有限公司 | IPv 6-based dual-active route redundancy method and system |
Family Cites Families (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US8913489B2 (en) * | 2010-08-04 | 2014-12-16 | Alcatel Lucent | System and method for virtual fabric link failure recovery |
| CN104219075B (en) * | 2013-05-31 | 2017-10-24 | 新华三技术有限公司 | A kind of LACP loop detecting methods and device based on open stream protocol |
-
2021
- 2021-12-31 CN CN202111672487.4A patent/CN114363228B/en active Active
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106656554A (en) * | 2016-10-14 | 2017-05-10 | 盛科网络(苏州)有限公司 | Method and device for implementing LACP in MLAG environment |
| CN111786882A (en) * | 2020-06-30 | 2020-10-16 | 中国联合网络通信集团有限公司 | A route processing method and device |
| CN112954064A (en) * | 2021-02-24 | 2021-06-11 | 紫光云技术有限公司 | Method for realizing high-availability networking under cloud network |
| CN113259235A (en) * | 2021-06-22 | 2021-08-13 | 浪潮思科网络科技有限公司 | IPv 6-based dual-active route redundancy method and system |
Non-Patent Citations (2)
| Title |
|---|
| "4G Americas NFV and SDN Networks White Paper - November 2015".3GPP PCG\PCG_36.2016,全文. * |
| "基于EVPN的MLAG技术的设计与实现";周辰城;《中国优秀硕士学位论文全文数据库》;全文 * |
Also Published As
| Publication number | Publication date |
|---|---|
| CN114363228A (en) | 2022-04-15 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| EP3949270B1 (en) | Local user plane function control | |
| CN112769587B (en) | Forwarding method, equipment and storage medium for access traffic of dual homing device | |
| EP2502389B1 (en) | Method for the provision of gateway anycast virtual mac reachability in extended subnets | |
| US11792866B2 (en) | Establishing a private network using multi-uplink capable network devices | |
| US11736962B2 (en) | Methods, apparatus and computer-readable mediums relating to configuration of redundant paths | |
| US12021657B1 (en) | Fast convergence for MAC mobility | |
| US20220321456A1 (en) | Automatic discovery of route reflection peering end-points | |
| US20200366602A1 (en) | Coordinating pseudowire connection characteristics and multi-homed provider edge device capabilities | |
| CN114338495B (en) | Business processing method and related equipment | |
| CN101442429B (en) | Method and system for implementing disaster-tolerating of business system | |
| US11757747B2 (en) | Preventing traffic outages during address resolution protocol (ARP) storms | |
| CN114363228B (en) | MLAG-Lite test system and method | |
| EP4262176A1 (en) | Standby access gateway function signaling for a dynamic host configuration protocol | |
| US11088939B1 (en) | Reducing open shortest path first protocol link flap | |
| US10917378B1 (en) | Facilitating communication between network devices of a virtual router redundancy protocol (VRRP) group | |
| CN105959198B (en) | Message transmitting method and the network equipment | |
| US10771317B1 (en) | Reducing traffic loss during link failure in an ethernet virtual private network multihoming topology | |
| CN108337162B (en) | System and method for supporting dual-homing protection | |
| JP3383199B2 (en) | Relay device and load sharing transmission method in relay device | |
| CN114980242B (en) | Mesh networking multi-service system and implementation method | |
| CN114553761B (en) | Exception handling method, device, network equipment and storage medium | |
| US11252074B2 (en) | Detection of multihoming misconfiguration | |
| KR102565845B1 (en) | Network Switching Apparatus Capable of Adaptive Network Routing | |
| JP2006054766A (en) | Control data sharing method in redundant network system | |
| EP3879765B1 (en) | Group load balancing for virtual router redundancy |
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 |