[go: up one dir, main page]

CN112311618A - 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
CN112311618A
CN112311618A CN201910713033.3A CN201910713033A CN112311618A CN 112311618 A CN112311618 A CN 112311618A CN 201910713033 A CN201910713033 A CN 201910713033A CN 112311618 A CN112311618 A CN 112311618A
Authority
CN
China
Prior art keywords
port
test
redundant
message
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.)
Granted
Application number
CN201910713033.3A
Other languages
Chinese (zh)
Other versions
CN112311618B (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.
Thus, the above-described test method can be applied to the test of the PRP switching device.
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 the connection between the 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 respectively, calculates the time delay, the throughput and other parameters of the traffic forwarded by the port T2 and the port T3 and displays the parameters through an interface, and the test of the time delay, the throughput and other parameters of the HSR switching equipment for processing the service data traffic is completed.
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 that the corresponding test is completed, 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 transmit 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 may simulate, through the test device, that corresponding data simultaneously transmit test data to the corresponding port of the HSR switch device through the port T1, the port T2, and/or the port T3 thereof, 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 the port a and the 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 carrying out counting and analysis so as 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 (10)

1.一种网络交换设备的测试方法,该网络交换设备包括业务端口、两冗余端口,其特征在于,该测试方法包括步骤:1. a test method of network switching equipment, this network switching equipment comprises service port, two redundant ports, it is characterized in that, this testing method comprises the steps: A、向所述网络交换设备的业务端口和两冗余端口的至少之一发送测试报文;其中,向冗余端口发送的测试报文设置有冗余协议标签;A. Send a test message to at least one of the service port and the two redundant ports of the network switching device; wherein, the test message sent to the redundant port is provided with a redundant protocol label; B、通过所述网络交换设备的其他所述端口的至少之一接收所述网络交换设备处理后的报文;其中,通过冗余端口接收的报文具有冗余协议标签;B. Receive the message processed by the network switching device through at least one of the other ports of the network switching device; wherein, the message received through the redundant port has a redundant protocol label; C、基于所述测试报文和所接收的报文实现对所述网络交换设备的测试。C. Implement the test of the network switching device based on the test message and the received message. 2.根据权利要求1所述的测试方法,其特征在于,2. testing method according to claim 1, is characterized in that, 步骤A所述发送是向所述业务端口发送;The sending described in step A is sending to the service port; 步骤B所述接收是通过所述两冗余端口接收;The receiving in step B is through the two redundant ports; 步骤C所述测试包括至少以下之一:报文从业务端口到两冗余端口的冗余处理的测试、报文从所述业务端口到冗余端口的网络转发性能测试。The test in step C includes at least one of the following: a test of redundant processing of a packet from a service port to two redundant ports, and a test of network forwarding performance of a packet from the service port to the redundant port. 3.根据权利要求1所述的测试方法,其特征在于,3. testing method according to claim 1, is characterized in that, 步骤A所述发送是向所述两冗余端口的其中之一发送;The sending described in step A is sending to one of the two redundant ports; 步骤B所述接收是通过另一冗余端口和/或所述业务端口接收;The receiving in step B is through another redundant port and/or the service port; 步骤C所述测试包括至少以下之一:报文从一冗余端口通过另一冗余端口转发的测试、报文从冗余端口接到业务端口的上传处理的测试、报文从冗余端口到另一冗余端口或/和业务端口的网络转发性能测试。The test described in step C includes at least one of the following: a test in which a message is forwarded from one redundant port through another redundant port, a test in which a message is transmitted from a redundant port to a service port for upload processing, and a test in which a message is sent from a redundant port to a service port. Network forwarding performance test to another redundant port or/and service port. 4.根据权利要求1所述的测试方法,其特征在于,4. testing method according to claim 1, is characterized in that, 步骤A所述发送是向所述两冗余端口发送,且所发送的测试报文为相同的报文;The sending described in step A is sending to the two redundant ports, and the sent test message is the same message; 步骤B所述接收是通过所述业务端口接收;The receiving described in step B is receiving through the service port; 步骤C所述测试包括至少以下之一:从两冗余端口接收的相同报文的丢弃的测试、报文从冗余端口接到业务端口的上传处理的测试、报文从冗余端口到业务端口的网络转发性能测试。The test described in step C includes at least one of the following: a test of discarding the same packets received from two redundant ports, a test of upload processing of the packets from the redundant port to the service port, and a test of the packet from the redundant port to the service port. Network forwarding performance test for ports. 5.根据权利要求2至4任一所述的测试方法,其特征在于,所述网络转发性能测试包括至少以下之一:5. The test method according to any one of claims 2 to 4, wherein the network forwarding performance test comprises at least one of the following: RFC2544文档规定的吞吐率测试、延时测试、帧丢失测试、RFC2889文档规定的以太网转发性能测试。Throughput rate test, delay test, frame loss test specified in RFC2544 document, and Ethernet forwarding performance test specified in RFC2889 document. 6.根据权利要求1至4任一所述的测试方法,其特征在于,所述网络交换设备为HSR交换设备,所述业务端口为InterLink端口,所述冗余端口为冗余的HSR端口;6. The test method according to any one of claims 1 to 4, 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; 所述冗余协议标签为HSR标签。The redundant protocol label is an HSR label. 7.根据权利要求1至4任一所述的测试方法,其特征在于,所述网络交换设备为PRP交换设备,所述业务端口为InterLink端口,所述冗余端口为冗余的PRP端口;7. The test method according to any one of claims 1 to 4, 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; 所述冗余协议标签为PRP标签。The redundant protocol label is a PRP label. 8.一种实现权利要求1至7任一所述的测试方法的测试设备,其特征在于,包括:8. A test equipment for realizing the test method described in any one of claims 1 to 7, characterized in that, comprising: 分别用于与待测网络交换设备的业务端口、两冗余端口通讯的第一端口和第二、三端口;The first port, the second port and the third port respectively used to communicate with the service port and the two redundant ports of the network switching device to be tested; 测试参数配置模块,用于配置要测试项目的各个相关参数;The test parameter configuration module is used to configure each relevant parameter of the project to be tested; 基准报文构建模块,用于根据测试参数配置模块配置的各个相关参数构建出对应的报文,并传输至冗余协议标签添加模块或发送至第一端口以传输至待测网络交换设备的业务端口;The benchmark message construction module is used to construct a corresponding message according to each relevant parameter configured by the test parameter configuration module, and transmit it to the redundant protocol label adding module or send it to the first port for transmission to the service of the network switching device to be tested port; 冗余协议标签添加模块,用于将基准报文构建模块传输过来的报文添加冗余协议标签,并发送至第二和/或第三端口以传输至待测网络交换设备对应的冗余端口;The redundant protocol label adding module is used to add redundant protocol labels to the message transmitted by the reference message building module, and send it to the second and/or third port for transmission to the redundant port corresponding to the network switching device to be tested ; 冗余协议报文解析模块,用于对从第二和/或第三端口接收的待测网络交换设备的报文进行解析冗余协议标签的处理;A redundant protocol message parsing module, configured to perform processing of parsing redundant protocol labels on messages received from the second and/or third ports of the network switching device to be tested; 报文统计和分析模块,用于对从第一端口接收的待测网络交换设备报文、或/和来自冗余协议报文解析模块解析出的报文进行统计分析。The packet statistics and analysis module is configured to perform statistical analysis on the packets of the network switching device to be tested received from the first port, or/and the packets parsed from the redundant protocol packet analysis module. 9.一种实现权利要求1至7任一所述的测试方法的测试设备,其特征在于,包括:9. A test equipment for realizing the test method described in any one of claims 1 to 7, characterized in that, comprising: 可与待测网络交换设备的业务端口、两冗余端口其中之一通讯的通讯端口;A communication port that can communicate with the service port and one of the two redundant ports of the network switching device to be tested; 测试参数配置模块,用于配置要测试项目的各个相关参数;The test parameter configuration module is used to configure each relevant parameter of the project to be tested; 基准报文构建模块,用于根据测试参数配置模块配置的各个相关参数构建出对应的报文,并传输至冗余协议标签添加模块或发送至所述通讯端口以传输至待测网络交换设备的业务端口;The benchmark message building module is used to build a corresponding message according to each relevant parameter configured by the test parameter configuration module, and transmit it to the redundant protocol label adding module or send it to the communication port for transmission to the network switching device to be tested. business port; 冗余协议标签添加模块,用于将基准报文构建模块传输过来的报文添加冗余协议标签,并发送至通讯端口以传输至待测网络交换设备对应的冗余端口;The redundant protocol label adding module is used to add redundant protocol labels to the message transmitted by the reference message building module, and send it to the communication port for transmission to the redundant port corresponding to the network switching device to be tested; 冗余协议报文解析模块,用于对从通讯端口接收的待测网络交换设备冗余端口的报文进行解析冗余协议标签的处理;The redundant protocol message parsing module is used to parse the redundant protocol label for the message received from the communication port of the redundant port of the network switching device to be tested; 报文统计和分析模块,用于对从通讯端口接收的待测网络交换设备报文、或/和来自冗余协议报文解析模块解析出的报文进行统计分析。The packet statistics and analysis module is used to perform statistical analysis on the packets of the network switching device under test received from the communication port, or/and the packets parsed from the redundant protocol packet analysis module. 10.根据权利要求8或9所述的测试设备,其特征在于,还包括:10. The test equipment according to claim 8 or 9, characterized in that, further comprising: 测试结果分析显示模块,用于将报文统计和分析模块所生成的结果进行显示。The test result analysis and display module is used to display the results generated by the packet 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 true CN112311618A (en) 2021-02-02
CN112311618B 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 (10)

* 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
US20100110904A1 (en) * 2007-07-09 2010-05-06 Abb Technology Ag Identifying improper cabling of devices
CN101753397A (en) * 2010-01-29 2010-06-23 上海埃德电子股份有限公司 System, method and device for rapidly self-healing Ethernet ring
US20150138950A1 (en) * 2012-02-27 2015-05-21 Kyland Technology Co., Ltd Redundant Network Implementation Method
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
CN106656311A (en) * 2016-12-15 2017-05-10 国网山东省电力公司长岛县供电公司 Data link backup apparatus and method
CN107508696A (en) * 2017-07-11 2017-12-22 中国南方电网有限责任公司 A kind of device and method of raising HSR looped network O&M reliabilities
CN109639518A (en) * 2018-11-08 2019-04-16 国网湖南省电力有限公司 Third generation intelligent substation entirety looped network test macro and its application method

Patent Citations (10)

* 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
US20100110904A1 (en) * 2007-07-09 2010-05-06 Abb Technology Ag Identifying improper cabling of devices
CN101753397A (en) * 2010-01-29 2010-06-23 上海埃德电子股份有限公司 System, method and device for rapidly self-healing Ethernet ring
US20150138950A1 (en) * 2012-02-27 2015-05-21 Kyland Technology Co., Ltd Redundant Network Implementation Method
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
CN106656311A (en) * 2016-12-15 2017-05-10 国网山东省电力公司长岛县供电公司 Data link backup apparatus and method
CN107508696A (en) * 2017-07-11 2017-12-22 中国南方电网有限责任公司 A kind of device and method of raising HSR looped network O&M reliabilities
CN109639518A (en) * 2018-11-08 2019-04-16 国网湖南省电力有限公司 Third generation intelligent substation entirety looped network test macro and its application method

Also Published As

Publication number Publication date
CN112311618B (en) 2022-05-17

Similar Documents

Publication Publication Date Title
TWI664838B (en) Method and device for monitoring traffic in a network
CN113079091B (en) Active stream following detection method, network equipment and communication system
US7864691B2 (en) Apparatus and method for performing a loopback test in a communication system
CN1659833B (en) Methods and apparatus for characterizing a route in a fibre channel fabric
US8229705B1 (en) Performance monitoring in computer networks
US8520540B1 (en) Remote traffic monitoring through a network
US8654790B2 (en) Method of remote active testing of a device or network
CN102204164B (en) Method and device for reporting network packet loss information
CN108683558B (en) Railway safety communication protocol consistency testing method
CN101854648B (en) Testing method, device and testing system for single board of communication apparatus
CN113328902B (en) Network performance detection method and device and network equipment
US12413498B2 (en) Method for detecting multicast service flow and related apparatus
CN101958810B (en) Method and system used for realizing fault positioning of intermediate node autonomously
CN102413018B (en) FPGA (field programmable gate array) based software-hardware coordinated network test system and method
CN100382517C (en) Network service quality testing method and system
CN113472697A (en) Network information transmission system
JP6491091B2 (en) Method for monitoring wireless link of Wi-Fi node of subscriber premises equipment and subscriber premises equipment using the method
CN103078767A (en) Method and device for testing throughput of WAN (Wide Area Network) at single port and at full wire speed
US20070115838A1 (en) Method and system for loop-back and continue in packet-based network
CN102088417B (en) Method and apparatus for achieving IP (Internet Protocol) message loopback
CN115022208A (en) A TTE network traffic monitoring device and method
CN112311618A (en) Test method and test equipment of network switching equipment
CN119629093A (en) A 400G Ethernet traffic test system based on FPGA
CN115484193A (en) Method, system, storage medium and device for monitoring and analyzing network packet loss flow
CN100496021C (en) Method and device for online acquisition of transmission performance between nodes based on Ethernet

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