CN112311618B - Test method and test equipment of network switching equipment - Google Patents

Test method and test equipment of network switching equipment Download PDF

Info

Publication number
CN112311618B
CN112311618B CN201910713033.3A CN201910713033A CN112311618B CN 112311618 B CN112311618 B CN 112311618B CN 201910713033 A CN201910713033 A CN 201910713033A CN 112311618 B CN112311618 B CN 112311618B
Authority
CN
China
Prior art keywords
port
message
test
redundant
hsr
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910713033.3A
Other languages
Chinese (zh)
Other versions
CN112311618A (en
Inventor
任秋明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Kyland Technology Co Ltd
Original Assignee
Kyland Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Kyland Technology Co Ltd filed Critical Kyland Technology Co Ltd
Priority to CN201910713033.3A priority Critical patent/CN112311618B/en
Publication of CN112311618A publication Critical patent/CN112311618A/en
Application granted granted Critical
Publication of CN112311618B publication Critical patent/CN112311618B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/06Generation of reports
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0823Errors, e.g. transmission errors
    • H04L43/0829Packet loss
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0852Delays

Landscapes

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

Abstract

A test method for network switching equipment, the network switching equipment includes service port, two redundant ports, the test method includes the following steps: sending a test message to at least one of a service port and two redundant ports of the network switching equipment; the test message sent to the redundant port is provided with a redundant protocol label; receiving the message processed by the network switching equipment through at least one of the other ports of the network switching equipment; wherein, the message received by the redundant port has a redundant protocol label; and realizing the test of the network switching equipment based on the test message and the received message. The invention also correspondingly provides test equipment for realizing the test method. The invention can realize the test of the performance of the network switching equipment with the redundant port, such as switching, forwarding and the like.

Description

Test method and test equipment of network switching equipment
Technical Field
The present invention relates to the field of network testing technologies, and in particular, to a testing method and a testing device for a network switching device.
Background
The High-availability Seamless Redundancy (HSR) network has a ring structure, and compared with the conventional ring network, the network has the characteristics of zero recovery time under a one-way abnormal condition, Seamless handover and more attention in the field of digital communication. Such a network is disclosed, for example, in chinese patent application No. CN 201710562224.5.
As shown in fig. 6, based on the HSR networking in the technical standard document IEC 62439, each Node of the HSR network is a danh (double Attached Node with HSR protocol). Referring to the schematic diagram of the HSR switching device shown in fig. 2, DANH provides Redundancy for the system through two independent physical ports, where the two redundant ports may be referred to as an HSR port a and a port B running in parallel, the port a and the port B are coupled to an upper layer through an internal Link Redundancy Entity (LRE), the LRE implements data forwarding and duplicate data discarding functions of a packet at the port a and the port B, and sends a packet received from the upper layer (including a packet at an upper layer of the HSR switching device or a packet received from a single connection node (SAN) connected through a service port l (inter Link)) through the two ports, and filters and submits a redundant packet received from the HSR port to the upper layer. The redundant box (RedBox) in fig. 6 is a network switching device for accessing a non-HSR node to an HSR ring network, and includes an HSR port a, a port B, and a service port l (interlink), and the internal principle refers to the HSR switching device schematic diagram shown in fig. 2 or the schematic diagram shown in the technical standard document IEC 62439, which is not described herein again. The redundant boxes can be connected to a switch or the like through a service port L to access non-HSR nodes to the HSR ring network. In the invention, the DANH node with the service port and the RedBox are both called HSR switching equipment.
The message forwarding principle of the HSR networking is as follows: after HSR exchange equipment receives a message sent by an upper layer, an LRE copies the message into two parts and marks an HSR label, and then the two parts are sent out from an HSR port A and a port B along different directions at the same time in a loop; after receiving the message from the port, the HSR switching device on the loop checks whether the message is a broadcast frame through the LRE, if so, the message is received and forwarded, otherwise, the destination link address is checked whether the destination link address is the MAC address of the node, if so, the HSR mark is removed through the LRE, the message is sent to an upper layer, the repeated message received from the loop is discarded, and if not, the message is forwarded to the next node from another port. Therefore, any single point on the HSR ring network is disconnected, the transmission in one direction is only influenced, and the other direction is not influenced, so that the network recovery time is not needed (namely, the recovery time is zero under the condition of unidirectional abnormity, and the characteristic of seamless switching is realized).
At present, technical documents of network switching equipment based on the HSR protocol are limited to the technical standard document IEC 62439, and there are no standards and technical documents related to testing of network switching equipment based on the HSR protocol, so how to test network switching equipment based on the HSR protocol is a technical problem to be solved.
Fig. 7 shows the internal principles and networking of a Parallel Redundancy Protocol (PRP) based network switching device, where the DANP representations are nodes in a PRP network. Similarly, there is no standard and technical document for testing network switching equipment based on PRP protocol, so how to test network switching equipment based on HSR protocol is a technical problem to be solved.
Disclosure of Invention
In view of the above, the main objective of the present invention is to provide a testing method and a testing device for a network switching device, so as to implement testing of the network switching device with redundant ports.
The invention provides a test method of network switching equipment, the network switching equipment comprises a service port and two redundant ports, wherein the test method comprises the following steps:
A. sending a test message to at least one of a service port and two redundant ports of the network switching equipment; the test message sent to the redundant port is provided with a redundant protocol label;
B. receiving the message processed by the network switching equipment through at least one of the other ports of the network switching equipment; wherein, the message received by the redundant port has a redundant protocol label;
C. and realizing the test of the network switching equipment based on the test message and the received message.
Therefore, the method of the invention can realize the test of the network switching equipment with the service port and the two redundant ports, the test can be carried out aiming at a single network switching equipment, the test is simple and convenient, the realization cost is low, and the research and development cost and the manufacturing cost of the detection equipment or the detection method are reduced.
Optionally, in the testing method,
step A, the sending is to the service port;
step B, the receiving is received through the two redundant ports;
step C the test comprises at least one of: the test of the redundant processing of the message from the service port to the two redundant ports and the test of the network forwarding performance of the message from the service port to the redundant ports.
Therefore, the message can be sent to the corresponding port according to the requirement, so that the test of the redundant processing of the message from the service port to the two redundant ports of the network switching equipment and the test of the network forwarding performance between the tested ports are realized.
Optionally, in the testing method,
step A, the transmission is to one of the two redundant ports;
step B, the receiving is received through another redundant port and/or the service port;
step C the test comprises at least one of: the test that the message is transmitted from one redundant port through another redundant port, the test that the message is connected to the uploading processing of the service port from the redundant port, the network transmission performance test that the message is transmitted from the redundant port to another redundant port or/and the service port.
Therefore, the message can be sent to the corresponding port according to the requirement, so that the message forwarding test of the two redundant ports of the network switching equipment is realized, and the message is uploaded to the service port test and the network forwarding performance test between the tested ports.
Optionally, in the testing method,
step A, the sending is to send to the two redundant ports, and the sent test messages are the same messages;
step B, the receiving is received through the service port;
step C the test comprises at least one of: the test of the discarding of the same message received from the two redundant ports, the test of the uploading process of the message from the redundant port to the service port, and the test of the network forwarding performance of the message from the redundant port to the service port.
Therefore, the message can be sent to the corresponding port according to the requirement, so that the test of discarding the repeated message received by the two redundant ports of the network switching equipment is realized, and the message is uploaded to the test of the service port and the test of the network forwarding performance between the tested ports.
Optionally, in the testing method, the network forwarding performance test includes at least one of the following:
throughput rate test, delay test, frame loss test, etc. specified in RFC2544 document,
The RFC2889 document specifies ethernet forwarding performance testing.
Thus, the test conforms to the provisions of RFC2544 and RFC 2889.
Optionally, in the test method, the network switching device is an HSR switching device, the service port is an InterLink port, and the redundant port is a redundant HSR port;
the redundant protocol label is an HSR label.
Thus, the test method described above can be applied to the test of the HSR switching device.
Optionally, in the test method, the network switching device is a PRP switching device, the service port is an InterLink port, and the redundant port is a redundant PRP port;
the redundant protocol label is a PRP label.
From the above, the above-described test method can be applied to the test of the PRP switching apparatus.
The invention also provides a test device for realizing any one of the test methods, which comprises:
the first port, the second port and the third port are respectively used for communicating with a service port and two redundant ports of the network switching equipment to be tested;
the test parameter configuration module is used for configuring each relevant parameter of the item to be tested;
the reference message construction module is used for constructing a corresponding message according to each relevant parameter configured by the test parameter configuration module, and transmitting the corresponding message to the redundancy protocol label adding module or sending the corresponding message to the first port to be transmitted to the service port of the network switching equipment to be tested;
the redundancy protocol label adding module is used for adding redundancy protocol labels to the messages transmitted by the reference message constructing module and sending the messages to the second and/or third ports to be transmitted to the redundancy ports corresponding to the network switching equipment to be tested;
the redundant protocol message analysis module is used for analyzing redundant protocol labels of the messages of the network switching equipment to be tested received from the second port and/or the third port;
and the message counting and analyzing module is used for carrying out statistical analysis on the message of the network switching equipment to be tested received from the first port or/and the message analyzed by the redundant protocol message analyzing module.
Therefore, the test equipment can realize the test methods, and the test can be completed by using the test equipment, so that the test is simple and convenient, and the research and development cost and the manufacturing cost of the detection equipment are reduced.
The invention also provides another test device for realizing any one of the test methods, which comprises:
a communication port capable of communicating with one of the service port and the two redundant ports of the network switching equipment to be tested;
the test parameter configuration module is used for configuring each relevant parameter of the item to be tested;
the reference message construction module is used for constructing a corresponding message according to each relevant parameter configured by the test parameter configuration module, and transmitting the corresponding message to the redundancy protocol label adding module or sending the corresponding message to the communication port to be transmitted to a service port of the network switching equipment to be tested;
the redundancy protocol label adding module is used for adding a redundancy protocol label to the message transmitted by the reference message constructing module and sending the message to the communication port to be transmitted to the redundancy port corresponding to the network switching equipment to be tested;
the redundant protocol message analysis module is used for analyzing a redundant protocol label of a message of a redundant port of the network switching equipment to be tested, which is received from the communication port;
and the message counting and analyzing module is used for carrying out counting analysis on the message of the network switching equipment to be tested received from the communication port or/and the message analyzed by the redundancy protocol message analyzing module.
Therefore, the testing equipment can realize the testing methods, has strong universality, can be connected with one of a service port and two redundant ports of the network switching equipment to be tested, can finish various tests by using the three testing equipment, is simple and convenient to test, and reduces the research and development cost and the manufacturing cost of the detecting equipment.
Optionally, the two kinds of test devices further include:
and the test result analysis and display module is used for displaying the result generated by the message statistics and analysis module.
Therefore, the test result can be displayed.
Drawings
Fig. 1 is a schematic diagram of an HSR switch device interface;
fig. 2 is a schematic diagram of an HSR switching device and a schematic diagram of the connection with a test device;
fig. 3 is a test flow diagram of the HSR switch device;
FIG. 4 is a schematic diagram of a test apparatus;
FIG. 5 is a schematic diagram of another embodiment of a test apparatus;
fig. 6 is a schematic diagram of HSR networking;
fig. 7 is a schematic diagram of a PRP switching apparatus and a networking diagram.
Detailed Description
In the following embodiments, a description is given by taking an implementation of a test method and a test device for an HSR switching device as an example, and an example of a test method and a test device for a PRP switching device will be briefly described later. The invention is also applicable to network switching equipment with redundant ports, the internal principle of which is similar to that of HSR and PRP.
In order to achieve the above purpose, the present invention provides a method and a testing device for testing HSR network switching and forwarding of a single HSR switch device, i.e., a Unit Under Test (UUT), through which network switching and forwarding of a single HSR switch device can be tested.
As shown in fig. 1 and fig. 2, the HSR switch device to be tested includes: two redundant ports A and B as HSR ports for connecting to HSR ring network; and a port l (interlink) serving as a service port for communicating with an external upper node through an upper protocol (such as UDP and TCP), where the service port is an inlet and an outlet of service traffic. In this embodiment, the communication ports may be implemented by network ports, and in addition, it is not excluded that the HSR switch device communicates with the external upper node in other communication manners, so the service port (i.e., the port L) may also be other communication ports, such as IDE, USB port, or even a wireless communication port, and at this time, the corresponding testing device of the present invention may use the corresponding port.
Fig. 2 also shows a schematic diagram of connection between an HSR switch device and the testing device of the present invention, wherein the testing device of the present invention employs a network testing device having three corresponding ports, which are denoted as port T1, port T2, and port T3. The port T2 and the port T3 are in communication connection with an HSR port A and a port B of HSR switching equipment to be tested so as to be capable of communicating with the two HSR ports; the port T1 is communicatively connected to the service port L of the HSR switching device so as to be communicatively connected to the service port of the HSR via an upper layer protocol. Through the connection of the three ports, the test equipment can send and receive data traffic to the HSR switching equipment to be tested, receive and analyze a message with an HSR label, perform data traffic analysis, and obtain a network performance index of the equipment to be tested, and the test of the network performance can be performed according to technical standard documents RFC2544 and RFC2889, wherein test items specified in the RFC2544 document include a Throughput (Throughput) test, a Latency (Latency) test, a Frame Loss (Frame Loss Rate) test, and the like; the test items specified in the RFC2889 document include the requirements of an ethernet forwarding performance test, and the like.
The testing method for HSR switching devices according to the present invention is described in detail below with reference to the flowchart shown in fig. 3, and includes the following tests:
the first test is a test that HSR switching equipment sends a service message to a ring network:
step 100: the test equipment constructs a test message according to the configured test parameters, wherein the test message comprises a broadcast message, a multicast message, a known unicast message (the known unicast refers to that the equipment MAC table has a destination MAC entry of the unicast message), and an unknown unicast message (the unknown unicast refers to that the equipment MAC table does not have the destination MAC entry of the unicast message).
Step 102: the test equipment sends the constructed test message to the service port L of the HSR switching equipment to be tested through the port T1.
Under normal conditions, after receiving a test message through a service port L of the HSR switching equipment to be tested, the HSR switching equipment discards an unknown unicast message, copies the received message into two parts by an LRE of the broadcast and multicast message and the known unicast message, respectively marks HSR labels on the two parts to form an HSR message, and simultaneously forwards the HSR message from an HSR port A and a port B.
Step 104: the test equipment receives the broadcast, multicast and known unicast HSR messages forwarded by the HSR switching equipment through the ports A and B through the ports T2 and T3, analyzes the HSR label of the messages, acquires label information and realizes the test that the HSR switching equipment sends the service messages to the ring network.
In the first test embodiment, the test process involves the service port and the two redundant ports, and is an example of sending a test packet to the service port and receiving a processed packet through the two redundant ports.
And testing the HSR switching equipment for processing the service data flow:
step 110: the testing equipment constructs the data flow for testing according to the configured testing parameters, wherein the testing parameters comprise a destination IP address, a destination MAC address, sending time, sending rate, a sending mode, frame length and the like.
Step 112: the test equipment sends the constructed data traffic to the service port L of the HSR switch equipment to be tested through its port T1. Data traffic here refers to sending a large number of messages to form a flow.
Under normal conditions, the HSR switch device to be tested processes the data traffic in the processing manner in step 102, which is not described in detail.
Step 114: the test equipment receives the data traffic forwarded by the HSR switching equipment through the port a and the port B through the port T2 and the port T3, calculates the delay, throughput and other parameters of the traffic forwarded by the port T2 and the port T3, and displays the parameters through an interface, thereby completing the test of the delay, throughput and other parameters of the service data traffic processed by the HSR switching equipment.
Wherein, the first test and the second test can be performed simultaneously. It should be noted that, in the second test, parameters such as delay and throughput of forwarding traffic from the service port (port L) to one redundant port (port a or B) may also be tested separately.
It can be seen that, in the second embodiment of the test, the test process involves at least one redundant port and a service port, and is an example of sending a test packet to the service port and receiving a processed packet through at least one of the two redundant ports.
And testing the HSR switching equipment for receiving and forwarding the HSR message:
step 130: and the test equipment constructs a test message carrying the HSR label according to the configured test parameters, namely the HSR message. The HSR message comprises a broadcast message, a multicast message, a known unicast message and an unknown unicast message.
Step 132: the test equipment sends the constructed HSR message to the HSR port A of the HSR switching equipment to be tested through the port T2.
Under normal conditions, the HSR switching device receives the HSR message through its port a, and will be regarded as the HSR message received from the ring network, when the destination address of the message is determined to be unknown (corresponding to an unknown unicast message), the HSR switching device will discard the message, when the destination address is known, if it is determined that the destination address is not the MAC address of the HSR switching device, the HSR switching device will directly forward through the port B, when the destination address of the message is determined to be the MAC address of the HSR switching device, it will be further determined whether the HSR network device has received the message (it is determined whether the same traffic information is recorded in the lookup table of another port a, the traffic information is composed of the destination address, the source address and the serial number of the message), if so, the repeated message is discarded (in this test three, because there is no ring network, the constructed test message is not repeated, and therefore the discarding process does not occur), if not, the pass information of the message is written into a look-up table of the port A, and then the message is transmitted to an upper layer protocol after being analyzed.
Step 134: the testing equipment receives the broadcast, multicast and known unicast data traffic processed by the HSR switching equipment to be tested through the ports T1 and T3, and calculates the time delay, throughput and other parameters of the forwarding traffic according to the statistics, thereby completing the test that the HSR switching equipment receives the HSR message through the port A, analyzes the HSR message and uploads a service port, and the test that the HSR message received by the port A is forwarded by the port B.
Similarly, the constructed test packet is sent through the port T3, and the corresponding packet is received through the port T1 and the port T2, so as to complete the corresponding test, which is not described again.
In the third embodiment of the test, an example is tested in which a redundant port sends a test message and another redundant port and a service port receive different processed messages. It is understood that, according to the test requirement, the test that the HSR switch device receives the HSR message through a redundant port (port a or B) and analyzes the HSR message and then uploads the HSR message to the service port may be performed, or the test that the HSR message received by a redundant port is forwarded by another redundant port may be performed.
It can be seen that the test procedure involves at least one redundant port and one service port, and sends a test message to one of the redundant ports, and receives an instance of the processed message through the other redundant port and/or the service port.
And fourthly, testing that the HSR switching equipment discards the same HSR message:
step 140: and the test equipment constructs a test message carrying the HSR label according to the configured test parameters, namely the HSR message. The HSR message comprises a broadcast message, a multicast message, a known unicast message and an unknown unicast message.
Step 142: the test equipment respectively sends the constructed same HSR messages to the HSR port A and the HSR port B of the HSR switching equipment to be tested through the port T2 and the port T3.
Under normal conditions, the HSR switch device receives the HSR packet through its port a and port B, and may be regarded as an HSR packet received from the ring network, and when it is determined that the destination address of the packet is the MAC address of the HSR switch device, it may further determine whether the HSR network device has received the packet (see step 132), if not, write the pass information of the packet into the lookup table of the current port, and then transmit the packet to the upper layer protocol after parsing, and if so, discard the repeated packet (the test of the fourth test is processing of the repeated packet).
Step 144: the test equipment receives the corresponding message which arrives first through the port T1, and then the same message is not received any more, thereby completing the test that the HSR switching equipment receives the same message of which the destination address is the HSR switching equipment through the port A and the port B.
In the fourth embodiment of the test, the test process involves an example in which the service port and the two redundant ports send test messages to the two redundant ports, and the service port receives processed messages.
In addition, each of the above tests assumes that there is little data transmission on the network, that network resources are idle, and that there is no large amount of data transmission. When it is assumed that the data transmission amount on the network is large, the port a and/or the port B of the HSR switch device respectively receives and forwards different HSR messages on the ring network (assuming that different DANHs on the ring network respectively send HSR messages to the ring network and are respectively received and forwarded by the port a and/or the port B of the HSR switch device), and the service port of the HSR switch device also simultaneously receives the service messages, it can simulate that corresponding data passes through the port T1, the port T2, and/or the port T3 of the corresponding port of the HSR switch device, simultaneously send test data to the corresponding port of the HSR switch device, and monitor data processed by the HSR switch device output by the corresponding port of the HSR switch device, thereby testing various parameters of the HSR switch device under the condition of large data amount processing. Alternatively, it is also understood that the tests may be performed simultaneously with any combination of one to four of the above tests.
Fig. 4 shows a schematic diagram of a testing device for implementing the testing method, the testing device comprising:
the port T1, the port T2, and the port T3 are respectively in communication with a port a and a port B of the service port L, HSR of the HSR switch device to be tested, and transmit a test message to a corresponding port of the HSR switch device or receive a corresponding message of the HSR switch device.
And the test parameter configuration module is used for configuring each relevant parameter of the item to be tested, including a destination IP address, a destination MAC address, sending time, sending rate, sending mode, frame length and the like of the message. The content of the specific configuration can be configured according to the test requirements of technical standard documents RFC2544 and RFC 2889.
And the reference message construction module is used for constructing a corresponding message according to each parameter configured by the test parameter configuration module. According to the configuration of the test, a message (for example, a message conforming to the TCP or UDP protocol) to be sent to the port L of the HSR to be tested through the port T1 may be constructed and sent through the port T1; or a message to be sent to a port A/port B of the HSR to be tested through a port T2/T3 can be constructed, and the constructed message can be transmitted to the HSR label adding module. The constructed message can be a broadcast message, a multicast message and a unicast message.
And the HSR label adding module is used for adding an HSR label to the message transmitted by the reference message constructing module so as to simulate the message from the HSR looped network and sending the message to the port A/port B of the HSR to be detected through the port T2/T3. For simplicity of description, a message carrying an HSR tag is referred to herein as an HSR message.
The HSR message analysis module is used for receiving the HSR message sent by the port A/port B of the HSR switching equipment to be tested through the port T2/T3 and analyzing the message.
And the message counting and analyzing module is used for receiving the message from the port T1 or the message analyzed by the HSR protocol message analyzing module, and carrying out counting and analysis to complete the network performance test of the HSR switching equipment to be tested. The statistical analysis can be performed according to technical standard documents RFC2544 and RFC2889, for example, the statistical analysis can be performed on message forwarding performances such as throughput, delay, frame loss and the like.
And the test result analysis and display module is used for displaying the data generated by the message statistics and analysis module in a graphical mode and the like.
Therefore, the test method and the test equipment for the HSR switching equipment can overcome the limitation of the existing simple test environment, and carry out relatively comprehensive and accurate forwarding rule and network forwarding performance test on the single HSR switching equipment. In addition, it should be noted that the test equipment with three ports is adopted in the above embodiment. It is understood that three test devices with one port may be used, and the three test devices are respectively connected to three ports corresponding to the HSR switch device, and the test method is the same as the above and is not described again.
When three test devices with one port are used, see the schematic diagram of a second embodiment of the test device shown in fig. 5, comprising for each test device:
the communication port T may be connected to one of the service port L, HSR port a and the port B port of the HSR switch device to be tested for communication, and send a test message to a corresponding port of the HSR switch device or receive a corresponding message of the HSR switch device.
And the test parameter configuration module is used for configuring each relevant parameter of the item to be tested, including a destination IP address, a destination MAC address, sending time, sending rate, sending mode, frame length and the like of the message. The content of the specific configuration can be configured according to the test requirements of technical standard documents RFC2544 and RFC 2889.
And the reference message construction module is used for constructing a corresponding message according to each parameter configured by the test parameter configuration module. According to the configuration of the test, a message (for example, a message conforming to TCP and UDP protocols) to be sent to a port L of the HSR to be tested through a communication port T can be constructed and sent through the communication port T; or a message to be sent to the port A/port B of the HSR to be tested through the communication port T can be constructed, and the constructed message can be transmitted to the HSR label adding module. The constructed message can be a broadcast message, a multicast message and a unicast message.
And the HSR label adding module is used for adding an HSR label to the message transmitted by the reference message constructing module so as to simulate the message from the HSR looped network and send the message to the port A/port B of the HSR to be detected through the communication port T.
And the HSR message analysis module is used for receiving the HSR message sent by the port A/port B of the HSR switching equipment to be tested through the communication port T and analyzing the message.
And the message counting and analyzing module is used for receiving the service message from the communication port T or the message analyzed by the HSR protocol message analyzing module, and counting and analyzing the service message to complete the network performance test of the HSR switching equipment to be tested. The statistical analysis can be performed according to technical standard documents RFC2544 and RFC2889, for example, the statistical analysis can be performed on message forwarding performances such as throughput, delay, frame loss and the like.
And the test result analysis and display module is used for displaying the data generated by the message statistics and analysis module in a graphical mode and the like.
The test equipment has strong universality and can be connected with one of the port A and the port B of the service port L, HSR of the HSR switching equipment to be tested, so that the test can be carried out by using three test equipment shown in FIG. 5 and respectively connecting to three ports of the HSR switching equipment as shown in FIG. 1.
In addition, as shown in the schematic diagram of the switching device of the PRP protocol in fig. 7, the switching device also has a redundant port a, a port B, and a link redundancy, so that the above test on the HSR switching device is also applicable to the test on the PRP switching device, and accordingly, an adaptive adjustment is required, for example, the addition and the analysis of the HSR tag are changed into the addition and the analysis of the PRP tag, which is not repeated since the test methods are basically the same.
The invention is also applicable to the test of other network switching equipment with similar principle structure.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.

Claims (7)

1. A test method for network switching equipment, the network switching equipment includes a service port and two redundant ports, characterized in that, the test method includes the steps:
A. sending a test message to at least one of a service port and two redundant ports of the network switching equipment; the test message sent to the redundant port is provided with a redundant protocol label;
B. receiving the message processed by the network switching equipment through at least one of the other ports of the network switching equipment; wherein, the message received by the redundant port has a redundant protocol label;
C. testing the network switching equipment based on the test message and the received message;
wherein, the sending in step a is to the service port; step B, the receiving is received through the two redundant ports; step C the test comprises at least one of: testing the redundant processing of the message from the service port to the two redundant ports and testing the network forwarding performance of the message from the service port to the redundant ports; or
Step A, the transmission is to one of the two redundant ports; step B, the receiving is received through the service port; step C the testing comprises at least one of: the test of the uploading processing of the message from the redundant port to the service port, the network forwarding performance test of the message from the redundant port to the service port; or
Step A, the sending is to send to the two redundant ports, and the sent test messages are the same messages; step B, the receiving is received through the service port; step C the test comprises at least one of: the test of the discarding of the same message received from the two redundant ports, the test of the uploading process of the message from the redundant port to the service port, and the test of the network forwarding performance of the message from the redundant port to the service port.
2. The testing method of claim 1, wherein the network forwarding performance test comprises at least one of:
the test method comprises the steps of a throughput rate test, a delay test, a frame loss test and an Ethernet forwarding performance test specified by the RFC2544 document.
3. The test method according to claim 1 or 2, wherein the network switching device is an HSR switching device, the service port is an InterLink port, and the redundant port is a redundant HSR port;
the redundant protocol label is an HSR label.
4. The testing method according to claim 1 or 2, wherein the network switching device is a PRP switching device, the service port is an InterLink port, and the redundant port is a redundant PRP port;
the redundant protocol label is a PRP label.
5. A test apparatus for implementing the test method of any one of claims 1 to 4, comprising:
the first port, the second port and the third port are respectively used for communicating with a service port and two redundant ports of the network switching equipment to be tested;
the test parameter configuration module is used for configuring each relevant parameter of the item to be tested;
the reference message construction module is used for constructing a corresponding message according to each relevant parameter configured by the test parameter configuration module, and transmitting the corresponding message to the redundancy protocol label adding module or sending the corresponding message to the first port to be transmitted to the service port of the network switching equipment to be tested;
the redundancy protocol label adding module is used for adding redundancy protocol labels to the messages transmitted by the reference message constructing module and sending the messages to the second and/or third ports to be transmitted to the redundancy ports corresponding to the network switching equipment to be tested;
the redundant protocol message analysis module is used for analyzing redundant protocol labels of the messages of the network switching equipment to be tested received from the second port and/or the third port;
and the message counting and analyzing module is used for carrying out statistical analysis on the message of the network switching equipment to be tested received from the first port or/and the message analyzed by the redundant protocol message analyzing module.
6. A test apparatus for implementing the test method of any one of claims 1 to 4, comprising:
a communication port capable of communicating with one of the service port and the two redundant ports of the network switching equipment to be tested;
the test parameter configuration module is used for configuring each relevant parameter of the item to be tested;
the reference message construction module is used for constructing a corresponding message according to each relevant parameter configured by the test parameter configuration module, and transmitting the corresponding message to the redundancy protocol label adding module or sending the corresponding message to the communication port to be transmitted to a service port of the network switching equipment to be tested;
the redundancy protocol label adding module is used for adding a redundancy protocol label to the message transmitted by the reference message constructing module and sending the message to the communication port to be transmitted to the redundancy port corresponding to the network switching equipment to be tested;
the redundant protocol message analysis module is used for analyzing a redundant protocol label of a message of a redundant port of the network switching equipment to be tested, which is received from the communication port;
and the message counting and analyzing module is used for carrying out counting analysis on the message of the network switching equipment to be tested received from the communication port or/and the message analyzed by the redundancy protocol message analyzing module.
7. The test apparatus of claim 5 or 6, further comprising:
and the test result analysis and display module is used for displaying the result generated by the message statistics and analysis module.
CN201910713033.3A 2019-08-02 2019-08-02 Test method and test equipment of network switching equipment Active CN112311618B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910713033.3A CN112311618B (en) 2019-08-02 2019-08-02 Test method and test equipment of network switching equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910713033.3A CN112311618B (en) 2019-08-02 2019-08-02 Test method and test equipment of network switching equipment

Publications (2)

Publication Number Publication Date
CN112311618A CN112311618A (en) 2021-02-02
CN112311618B true CN112311618B (en) 2022-05-17

Family

ID=74486017

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910713033.3A Active CN112311618B (en) 2019-08-02 2019-08-02 Test method and test equipment of network switching equipment

Country Status (1)

Country Link
CN (1) CN112311618B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101079781A (en) * 2007-02-01 2007-11-28 北京东土科技股份有限公司 An implementation method for industrial Ethernet fast-speed redundancy
CN105991376A (en) * 2016-06-30 2016-10-05 北京东土科技股份有限公司 Method of monitoring integrity of redundant network and redundant device
CN106209694A (en) * 2016-07-25 2016-12-07 国电南瑞科技股份有限公司 A kind of industrial ethernet switch of integrated PRP/HSR redundancy protocol
CN106301654A (en) * 2016-08-18 2017-01-04 中国航空工业集团公司洛阳电光设备研究所 A kind of time signal method of sampling of Time Triggered Ethernet
CN107508696A (en) * 2017-07-11 2017-12-22 中国南方电网有限责任公司 A kind of device and method of raising HSR looped network O&M reliabilities

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2015501A1 (en) * 2007-07-09 2009-01-14 ABB Technology AG Identifying improper cabling of devices
CN101753397B (en) * 2010-01-29 2012-11-14 上海埃德电子股份有限公司 System, method and device for rapidly self-healing Ethernet ring
CN103297257B (en) * 2012-02-27 2016-10-19 北京东土科技股份有限公司 A kind of implementation method of redundant network
CN106656311A (en) * 2016-12-15 2017-05-10 国网山东省电力公司长岛县供电公司 Data link backup apparatus and method
CN109639518B (en) * 2018-11-08 2020-05-15 国网湖南省电力有限公司 Third-generation intelligent substation integral ring network test system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101079781A (en) * 2007-02-01 2007-11-28 北京东土科技股份有限公司 An implementation method for industrial Ethernet fast-speed redundancy
CN105991376A (en) * 2016-06-30 2016-10-05 北京东土科技股份有限公司 Method of monitoring integrity of redundant network and redundant device
CN106209694A (en) * 2016-07-25 2016-12-07 国电南瑞科技股份有限公司 A kind of industrial ethernet switch of integrated PRP/HSR redundancy protocol
CN106301654A (en) * 2016-08-18 2017-01-04 中国航空工业集团公司洛阳电光设备研究所 A kind of time signal method of sampling of Time Triggered Ethernet
CN107508696A (en) * 2017-07-11 2017-12-22 中国南方电网有限责任公司 A kind of device and method of raising HSR looped network O&M reliabilities

Also Published As

Publication number Publication date
CN112311618A (en) 2021-02-02

Similar Documents

Publication Publication Date Title
TWI664838B (en) Method and device for monitoring traffic in a network
US8229705B1 (en) Performance monitoring in computer networks
US7864691B2 (en) Apparatus and method for performing a loopback test in a communication system
US8520540B1 (en) Remote traffic monitoring through a network
US8773984B2 (en) Method and system for measuring network convergence time
EP2398188A1 (en) Method of Remote Active Testing of a Device or Network
CN102413018B (en) FPGA (field programmable gate array) based software-hardware coordinated network test system and method
US8571032B2 (en) Testing packet fragmentation
US9203728B2 (en) Metadata capture for testing TCP connections
US20230261962A1 (en) Method for Detecting Multicast Service Flow and Related Apparatus
CN108023787B (en) Ethernet service testing device and method based on FPGA
CN117176486A (en) network information transmission system
CN112637015B (en) Packet loss detection method and device for realizing RDMA (remote direct memory Access) network based on PSN (packet switched network)
CN101321095A (en) Communication system implementing link measurement and its link measuring method
US8654654B2 (en) Traffic distribution control
CN105391592A (en) Packet transport network service detecting and measuring method, device and system
CN104135548A (en) Static NAT realization method and device based on FPGA
US7881207B2 (en) Method and system for loop-back and continue in packet-based network
US7626937B2 (en) System and method for network connection detection
CN112311618B (en) Test method and test equipment of network switching equipment
WO2008097105A1 (en) Methods, systems and apparatus for monitoring and/or generating communications in a communications network
US9094290B2 (en) Measuring and displaying bandwidth contention
CN100496021C (en) Method and apparatus for obtaining transmission characteristics between nodes based on Ether network
US7869368B2 (en) Performance measuring in a packet transmission network
WO2007040482A1 (en) Apparatus and method for performing a loopback test in a communication system

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