CN111200544B - Network port flow testing method and device - Google Patents

Network port flow testing method and device Download PDF

Info

Publication number
CN111200544B
CN111200544B CN202010207863.1A CN202010207863A CN111200544B CN 111200544 B CN111200544 B CN 111200544B CN 202010207863 A CN202010207863 A CN 202010207863A CN 111200544 B CN111200544 B CN 111200544B
Authority
CN
China
Prior art keywords
port
network
tested
ports
tester
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
CN202010207863.1A
Other languages
Chinese (zh)
Other versions
CN111200544A (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.)
Beijing Teletest Technology Co ltd
Original Assignee
Beijing Teletest 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 Beijing Teletest Technology Co ltd filed Critical Beijing Teletest Technology Co ltd
Priority to CN202010207863.1A priority Critical patent/CN111200544B/en
Publication of CN111200544A publication Critical patent/CN111200544A/en
Application granted granted Critical
Publication of CN111200544B publication Critical patent/CN111200544B/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/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0823Errors, e.g. transmission errors
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0677Localisation of faults
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements

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

The embodiment of the application discloses a method for testing network port flow, wherein a plurality of ports of tested network equipment are connected with a plurality of ports of a network tester in a one-to-one correspondence mode, the plurality of ports of the tested network equipment are sequentially communicated in the tested network equipment according to a preset sequence, and a first port and a last port in the preset sequence are communicated to form a full-port direct-connection loopback topology. When testing, the network tester sends a test message to a second port of the tested network equipment through the first port; the first port is any one port on the network tester and is correspondingly connected with the second port; the network tester receives a test message sent by a fourth port of the tested network equipment through a third port; the fourth port is communicated with the second port inside the tested network equipment; the third port is correspondingly connected with the fourth port; and the network tester analyzes the tested message at the third port to obtain an analysis result. Therefore, the fault port can be diagnosed quickly, and the fault diagnosis performance is improved.

Description

Network port flow testing method and device
Technical Field
The present application relates to the field of network device testing, and in particular, to a method and an apparatus for testing network port traffic.
Background
Network devices and components are physical entities, such as computers, switches, routers, etc., connected into a network, and port traffic of a network device has a significant impact on the performance of the network device.
The port flow of the network equipment can be tested by a network tester, the network tester is a common instrument in network communication, presents a plurality of Ethernet ports for users, and is butted with the tested network equipment through the ports, so that the tested network equipment is tested.
At present, a snake-shaped self-loop topological flow testing method is usually used, but the method cannot quickly diagnose a specific fault port and is not beneficial to rear-end maintenance, namely, the reliability is poor, the fault diagnosis performance is poor, and the maintenance workload is large; in addition, this method is difficult to detect clock-related failures such as clock drift.
Disclosure of Invention
In order to solve the above technical problems, the present application provides a method and an apparatus for testing network port traffic, which, under the condition that there are many ports of a network device to be tested, reduces the diagnosis range, facilitates rapid diagnosis of a failed port, improves the performance of fault diagnosis, and can cover fault tests such as clock drift of all ports.
The embodiment of the application discloses the following technical scheme:
in a first aspect, an embodiment of the present application provides a method for testing network port traffic, where a plurality of ports of a network device to be tested are connected to a plurality of ports of a network tester in a one-to-one correspondence manner, the plurality of ports of the network device to be tested are sequentially communicated in a preset sequence inside the network device to be tested, and a first port and a last port in the preset sequence are communicated to form a full-port direct-connection loopback topology, where the method includes:
the network tester sends a test message to a second port of the tested network equipment through a first port; the first port is any one port on the network tester, and the first port is correspondingly connected with the second port;
the network tester receives the test message sent by a fourth port of the tested network equipment through a third port; the fourth port is communicated with the second port in the interior of the tested network equipment; the third port is correspondingly connected with the fourth port;
and the network tester analyzes the tested message at the third port to obtain an analysis result.
Optionally, the analysis result includes a packet loss detection result and/or a clock detection result.
Optionally, if the analysis result includes a clock detection result, the test packet includes clock information; the network tester analyzes the tested message at the third port to obtain an analysis result, and the analysis result comprises:
the network tester extracts clock information from the tested message at the third port;
and comparing the clock information with standard clock information to obtain a clock detection result.
Optionally, if the analysis result shows that the port of the network device under test has a fault, the network tester analyzes the message under test at the third port, and after obtaining the analysis result, the method further includes:
and positioning a fault port according to the analysis result.
In a second aspect, an embodiment of the present application provides a method for testing network port traffic, where a plurality of ports of a network device to be tested are connected to a plurality of ports of a network tester in a one-to-one correspondence manner, the plurality of ports of the network device to be tested are sequentially communicated in a preset sequence inside the network device to be tested, and a first port and a last port in the preset sequence are communicated to form a full-port direct-connection loopback topology, where the method includes:
the tested network equipment receives a test message sent by the network tester through the first port through the second port; the first port is any one port on the network tester, and the first port is correspondingly connected with the second port;
the tested network equipment forwards the tested message to a fourth port of the tested network equipment through the second port; the fourth port is communicated with the second port in the interior of the tested network equipment;
the tested network equipment sends the test message to a third port of the network tester through the fourth port, so that the network tester analyzes the tested message at the third port to obtain an analysis result; the third port is correspondingly connected with the fourth port.
In a third aspect, an embodiment of the present application provides a device for testing network port traffic, where multiple ports of a network device to be tested are connected to multiple ports of a network tester in a one-to-one correspondence manner, the multiple ports of the network device to be tested are sequentially communicated in the network device to be tested according to a preset sequence, and a first port and a last port in the preset sequence are communicated to form a full-port direct-connection loopback topology, where the device includes:
a sending unit, configured to send a test packet to a second port of the network device under test through a first port; the first port is any one port on the network tester, and the first port is correspondingly connected with the second port;
a receiving unit, configured to receive, through a third port, the test packet sent from a fourth port of the network device under test; the fourth port is communicated with the second port in the interior of the tested network equipment; the third port is correspondingly connected with the fourth port;
and the analysis unit is used for analyzing the detected message at the third port to obtain an analysis result.
Optionally, the analysis result includes a packet loss detection result and/or a clock detection result.
Optionally, if the analysis result includes a clock detection result, the test packet includes clock information; the analysis unit is configured to:
extracting clock information from the measured message at the third port;
and comparing the clock information with standard clock information to obtain a clock detection result.
Optionally, if the analysis result shows that the port of the network device under test has a fault, the apparatus further includes:
and the positioning unit is used for positioning the fault port according to the analysis result.
In a fourth aspect, an embodiment of the present application provides a device for testing network port traffic, where a plurality of ports of a network device under test are connected to a plurality of ports of a network tester in a one-to-one correspondence manner, the plurality of ports of the network device under test are sequentially communicated according to a preset sequence inside the network device under test, and a first port and a last port in the preset sequence are communicated to form a full-port direct-connection loopback topology, where the device includes:
the receiving unit is used for receiving the test message sent by the network tester through the first port through the second port; the first port is any one port on the network tester, and the first port is correspondingly connected with the second port;
a forwarding unit, configured to forward the message under test to a fourth port of the network device under test through the second port; the fourth port is communicated with the second port in the interior of the tested network equipment;
the sending unit is used for sending the test message to a third port of the network tester through the fourth port so that the network tester can analyze the tested message at the third port to obtain an analysis result; the third port is correspondingly connected with the fourth port.
According to the technical scheme, the plurality of ports of the tested network equipment are connected with the plurality of ports of the network tester in a one-to-one correspondence mode, the plurality of ports of the tested network equipment are sequentially communicated inside the tested network equipment according to the preset sequence, and the first port and the last port in the preset sequence are communicated to form the full-port direct connection loopback topology. When testing, the network tester sends a test message to a second port of the tested network equipment through a first port; the first port is any one port on the network tester, and the first port is correspondingly connected with the second port; the network tester receives the test message sent by a fourth port of the tested network equipment through a third port; the fourth port is communicated with the second port in the interior of the tested network equipment; the third port is correspondingly connected with the fourth port; and the network tester analyzes the tested message at the third port to obtain an analysis result. If the existence of the fault port is determined according to the tested message, the test message only passes through the two ports of the tested network equipment, so that the diagnosis range is reduced under the condition that the number of the ports of the tested network equipment is large, the fault port can be conveniently and quickly diagnosed, the fault diagnosis performance is improved, and the fault tests such as clock drift of all the ports can be covered.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without inventive exercise.
Fig. 1 is a system architecture diagram of a method for testing network port traffic in the related art;
fig. 2 is a system architecture diagram of a method for testing network port traffic according to an embodiment of the present disclosure;
fig. 3 is a flowchart of a method for testing network port traffic according to an embodiment of the present disclosure;
fig. 4 is a structural diagram of a device for testing network port traffic according to an embodiment of the present disclosure;
fig. 5 is a structural diagram of a device for testing network port traffic according to an embodiment of the present disclosure.
Detailed Description
In order to make the technical solutions of the present application better understood, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
At present, a serpentine self-loop topology traffic testing method is generally used, where a serpentine self-loop topology is shown in fig. 1, fig. 1 takes a 6-port tested network device as an example, a port 1 of a network tester 101 is connected to a port 1 of a tested network device 102, the port 1 of the tested network device 102 is internally communicated with a port 2 of the tested network device 102, the port 2 of the tested network device 102 is externally connected to a port 3 of the tested network device 102 through a network cable, the port 3 of the tested network device 102 is internally communicated with a port 4 of the tested network device 102, the port 4 of the tested network device 102 is externally connected to a port 5 of the tested network device 102 through a network cable, the port 5 of the tested network device 102 is internally communicated with a port 6 of the tested network device 102, and the port 1 of the tested network device 102 is connected to the port 6 of the network tester 101. When the port 1 of the network tester 101 sends a message during the traffic test, the message is forwarded from the port 1 of the network device 102 to the port 6 of the network device 102 via the port 2, the port 3, the port 4, the port 5, and the port 6, and is analyzed at the port 6. If packet loss is found according to the analysis result at the port 6, because the packet passes through all the ports of the network device to be tested, a fault port needs to be diagnosed from all the ports, the diagnosis range is too large, if the number of the ports of the network device to be tested is large, the diagnosis range is very large, the fault port is difficult to be quickly and accurately located, the port fault diagnosis capability is poor, and the maintenance workload is large.
In addition, because the network tester 101 and the network device 102 to be tested are not directly connected to all ports, the clock failure problem cannot be accurately intercepted, that is, it is difficult to find clock related problems such as clock drift.
In order to solve the above technical problems, embodiments of the present application provide a method for testing network port traffic, where a full-port direct-connection loopback topology is adopted, so as to reduce a diagnosis range, facilitate quick diagnosis of a failed port, improve a fault diagnosis performance, and cover fault tests such as clock drift of all ports.
Next, a method for testing network port traffic provided by the embodiment of the present application will be described with reference to the accompanying drawings.
The method for testing network port traffic provided in the embodiment of the present application may be applied to the system architecture shown in fig. 2, where fig. 2 takes the tested network device 102 as a 6-port device as an example, and certainly is not limited to the 6-port network device.
The ports of the network device under test 102 are connected to the ports of the network tester 101 in a one-to-one correspondence, for example, the port 1 of the network device under test 102 is connected to the port 1 of the network tester 101, the port 2 of the network device under test 102 is connected to the port 2 of the network tester 101, the port 3 of the network device under test 102 is connected to the port 3 of the network tester 101, the port 4 of the network device under test 102 is connected to the port 4 of the network tester 101, the port 5 of the network device under test 102 is connected to the port 5 of the network tester 101, and the port 6 of the network device under test 102 is connected to the port 6 of the network tester 101. The ports of the network device under test 102 and the ports of the network tester 101 may be directly connected through network cables or optical fibers, respectively.
The multiple ports of the network device under test 102 are sequentially communicated in the network device under test 101 according to a preset sequence, and a first port is communicated with a last port in the preset sequence, so as to form a full-port direct-connection loopback topology.
The preset sequence may be that the ports are connected in sequence according to the arrangement sequence of the ports, for example, the port 1 shown in fig. 2 is communicated with the port 2, the port 2 is communicated with the port 3, the port 3 is communicated with the port 4, the port 4 is communicated with the port 5, the port 5 is communicated with the port 6, and the port 6 is communicated with the port 1; the connection may be in an out-of-order connection, for example, port 1 communicates with port 3, port 3 communicates with port 2, port 2 communicates with port 4, port 4 communicates with port 5, port 5 communicates with port 6, and port 6 communicates with port 1.
It should be noted that fig. 2 is only an exemplary configuration, and does not limit the present application.
When performing a network port traffic test based on the system architecture diagram shown in fig. 2, referring to fig. 3, the method includes:
s301, the network tester sends a test message to the second port of the tested network equipment through the first port.
The first port is any one port on the network tester, and the first port is correspondingly connected with the second port.
Taking the above-mentioned network device under test as a 6-port device, for example, the network device under test shown in fig. 2. The first port may be port 1, port 2, port 3, port 4, port 5 or port 6 of the network tester. In this embodiment, the first port is the port 1 of the network tester, and the second port is a port connected to the port 1 of the network tester, for example, the port 1 of the network device under test.
S302, the tested network device forwards the tested message to a fourth port of the tested network device through the second port.
Wherein the fourth port communicates with the second port inside the network device under test. Taking fig. 2 as an example, the fourth port is port 2 of the network device under test.
And S303, the tested network equipment sends the test message to the third port of the network tester through the fourth port.
Wherein the third port and the fourth port are correspondingly connected. Taking fig. 2 as an example, the third port is port 2 of the network tester.
And S304, the network tester analyzes the tested message at the third port to obtain an analysis result.
It should be noted that, in this embodiment of the application, using the steps of S301 to S304, the network tester sends a test packet to the port 1 of the network device under test through the port 1, the network device under test forwards the test packet to the port 2 of the network device under test, and then flows to the port 2 of the network tester through the network cable or the optical fiber, and the tester performs packet analysis, statistics, calculation, and the like at the port 2, and provides a corresponding analysis result. Similarly, the network tester sends out a test message through the port 2, the test message passes through the port 2 of the tested network equipment, the port 3 of the tested network equipment and then the port 3 of the network tester, and a test result is obtained after analysis; thus, the other ports make corresponding analysis results according to the policy (finally cover the topology shown in the figure, or test according to the topology scheme customized by the customer, with the topology shown in fig. 2, the flow direction coverage condition of each port of the tested network device is that the port 1 to the port 2, the port 2 to the port 3, the port 3 to the port 4, the port 4 to the port 5, the port 5 to the port 6, and the port 6 to the port 1).
If the analysis result shows that the port of the network device under test has a fault, the network tester analyzes the message under test at the third port in S304, and after obtaining the analysis result, the fault port can be located according to the analysis result.
According to the technical scheme, the plurality of ports of the tested network equipment are connected with the plurality of ports of the network tester in a one-to-one correspondence mode, the plurality of ports of the tested network equipment are sequentially communicated inside the tested network equipment according to the preset sequence, and the first port and the last port in the preset sequence are communicated to form the full-port direct connection loopback topology. When testing, the network tester sends a test message to a second port of the tested network equipment through a first port; the first port is any one port on the network tester, and the first port is correspondingly connected with the second port; the network tester receives the test message sent by a fourth port of the tested network equipment through a third port; the fourth port is communicated with the second port in the interior of the tested network equipment; the third port is correspondingly connected with the fourth port; and the network tester analyzes the tested message at the third port to obtain an analysis result. If the existence of the fault port is determined according to the tested message, the test message only passes through the two ports of the tested network equipment, so that the diagnosis range is reduced under the condition that the number of the ports of the tested network equipment is large, the fault port can be conveniently and quickly diagnosed, the fault diagnosis performance is improved, and the fault tests such as clock drift of all the ports can be covered.
It can be understood that the analysis result in this embodiment may be a packet loss detection result and/or a clock detection result, and whether a test packet is lost in the transmission process may be determined according to the packet loss detection result, so as to determine whether a port through which the test packet passes is faulty, so as to locate a faulty port. In addition, because the ports of the network tester and the tested network equipment are all directly connected, the clock detection result obtained at the ports of the network tester can be used for determining whether clock related problems such as clock drift occur or not, and therefore the problem of clock faults is accurately intercepted.
Optionally, if the analysis result includes a clock detection result, and the test packet includes clock information, at this time, a possible implementation manner of S304 is that the network tester extracts the clock information from the detected packet at the third port; and comparing the clock information with standard clock information to obtain a clock detection result.
Of course, the clock detection result may also be determined according to the packet loss detection result, for example, after determining the packet loss according to the packet loss detection result, there may be many reasons for the packet loss, where clock drift may be a reason for generating the packet loss, so the clock detection result may be further determined according to the packet loss detection result.
Based on the method for testing network port traffic provided in the foregoing embodiments, embodiments of the present application provide a device for testing network port traffic, and the device may be deployed on a network tester. The ports of the network equipment to be tested are connected with the ports of the network tester in a one-to-one correspondence mode, the ports of the network equipment to be tested are sequentially communicated in the network equipment to be tested according to a preset sequence, and a first port and a last port in the preset sequence are communicated to form a full-port direct-connection loopback topology. Referring to fig. 4, the apparatus includes:
a sending unit 401, configured to send a test packet to a second port of the network device under test through a first port; the first port is any one port on the network tester, and the first port is correspondingly connected with the second port;
a receiving unit 402, configured to receive, through a third port, the test packet sent from a fourth port of the network device under test; the fourth port is communicated with the second port in the interior of the tested network equipment; the third port is correspondingly connected with the fourth port;
an analyzing unit 403, configured to analyze the detected message at the third port to obtain an analysis result.
Optionally, the analysis result includes a packet loss detection result and/or a clock detection result.
Optionally, if the analysis result includes a clock detection result, the test packet includes clock information; the analysis unit is configured to:
extracting clock information from the measured message at the third port;
and comparing the clock information with standard clock information to obtain a clock detection result.
Optionally, if the analysis result shows that the port of the network device under test has a fault, the apparatus further includes:
and the positioning unit is used for positioning the fault port according to the analysis result.
The embodiment of the application also provides a testing device for the network port flow, and the device can be deployed on the tested network equipment. The ports of the network equipment to be tested are connected with the ports of the network tester in a one-to-one correspondence mode, the ports of the network equipment to be tested are sequentially communicated in the network equipment to be tested according to a preset sequence, and a first port and a last port in the preset sequence are communicated to form a full-port direct-connection loopback topology. Referring to fig. 5, the apparatus includes:
a receiving unit 501, configured to receive, through a second port, a test packet sent by the network tester through a first port; the first port is any one port on the network tester, and the first port is correspondingly connected with the second port;
a forwarding unit 502, configured to forward the message under test to a fourth port of the network device under test through the second port; the fourth port is communicated with the second port in the interior of the tested network equipment;
a sending unit 503, configured to send the test packet to a third port of the network tester through the fourth port, so that the network tester analyzes the tested packet at the third port to obtain an analysis result; the third port is correspondingly connected with the fourth port.
According to the technical scheme, the plurality of ports of the tested network equipment are connected with the plurality of ports of the network tester in a one-to-one correspondence mode, the plurality of ports of the tested network equipment are sequentially communicated inside the tested network equipment according to the preset sequence, and the first port and the last port in the preset sequence are communicated to form the full-port direct connection loopback topology. When testing, the network tester sends a test message to a second port of the tested network equipment through a first port; the first port is any one port on the network tester, and the first port is correspondingly connected with the second port; the network tester receives the test message sent by a fourth port of the tested network equipment through a third port; the fourth port is communicated with the second port in the interior of the tested network equipment; the third port is correspondingly connected with the fourth port; and the network tester analyzes the tested message at the third port to obtain an analysis result. If the existence of the fault port is determined according to the tested message, the test message only passes through the two ports of the tested network equipment, so that the diagnosis range is reduced under the condition that the number of the ports of the tested network equipment is large, the fault port can be conveniently and quickly diagnosed, the fault diagnosis performance is improved, and the fault tests such as clock drift of all the ports can be covered.
Those of ordinary skill in the art will understand that: all or part of the steps for realizing the method embodiments can be completed by hardware related to program instructions, the program can be stored in a computer readable storage medium, and the program executes the steps comprising the method embodiments when executed; and the aforementioned storage medium may be at least one of the following media: various media that can store program codes, such as read-only memory (ROM), RAM, magnetic disk, or optical disk.
It should be noted that, in the present specification, all the embodiments are described in a progressive manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the apparatus and system embodiments, since they are substantially similar to the method embodiments, they are described in a relatively simple manner, and reference may be made to some of the descriptions of the method embodiments for related points. The above-described embodiments of the apparatus and system are merely illustrative, and the units described as separate parts may or may not be physically separate, and the parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
The above description is only one specific embodiment of the present application, but the scope of the present application is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the present application should be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (8)

1. A method for testing network port flow is characterized in that a plurality of ports of a tested network device are connected with a plurality of ports of a network tester in a one-to-one correspondence mode, the plurality of ports of the tested network device are sequentially communicated in the tested network device according to a preset sequence, a first port in the preset sequence is communicated with a last port to form a full-port loopback direct connection topology, the preset sequence is an arrangement sequence or a non-arrangement sequence of the plurality of ports of the tested network device, and the plurality of ports are specifically at least three ports, and the method comprises the following steps:
the network tester sends a test message to a second port of the tested network equipment through a first port; the first port is any one port on the network tester, and the first port is correspondingly connected with the second port;
the network tester receives the test message sent by a fourth port of the tested network equipment through a third port; the fourth port is communicated with the second port in the interior of the tested network equipment; the third port is correspondingly connected with the fourth port;
the network tester analyzes the tested message at the third port to obtain an analysis result; the analysis result comprises a packet loss detection result and/or a clock detection result.
2. The method of claim 1, wherein if the analysis result comprises a clock detection result, the test packet comprises clock information; the network tester analyzes the tested message at the third port to obtain an analysis result, and the analysis result comprises:
the network tester extracts clock information from the tested message at the third port;
and comparing the clock information with standard clock information to obtain a clock detection result.
3. The method of claim 1, wherein if the analysis result indicates that the port of the network device under test has a fault, the network tester analyzes the message under test at the third port, and after obtaining the analysis result, the method further comprises:
and positioning a fault port according to the analysis result.
4. A method for testing network port flow is characterized in that a plurality of ports of a tested network device are connected with a plurality of ports of a network tester in a one-to-one correspondence mode, the plurality of ports of the tested network device are sequentially communicated in the tested network device according to a preset sequence, a first port in the preset sequence is communicated with a last port to form a full-port loopback direct connection topology, the preset sequence is an arrangement sequence or a non-arrangement sequence of the plurality of ports of the tested network device, and the plurality of ports are specifically at least three ports, and the method comprises the following steps:
the tested network equipment receives a test message sent by the network tester through the first port through the second port; the first port is any one port on the network tester, and the first port is correspondingly connected with the second port;
the tested network equipment forwards the tested message to a fourth port of the tested network equipment through the second port; the fourth port is communicated with the second port in the interior of the tested network equipment;
the tested network equipment sends the test message to a third port of the network tester through the fourth port, so that the network tester analyzes the tested message at the third port to obtain an analysis result; the third port is correspondingly connected with the fourth port; the analysis result comprises a packet loss detection result and/or a clock detection result.
5. The utility model provides a testing arrangement of network port flow, its characterized in that, a plurality of ports of network equipment under test and a plurality of ports one-to-one of network tester are connected, a plurality of ports of network equipment under test are in network equipment under test inside communicates according to the order of predetermineeing in proper order, just first port communicates with last port in the order of predetermineeing, forms full port loopback directly links the topology, it is in to predetermine the order be the permutation order or the non-permutation order of a plurality of ports of network equipment under test, a plurality of ports specifically are at least three port, the device includes:
a sending unit, configured to send a test packet to a second port of the network device under test through a first port; the first port is any one port on the network tester, and the first port is correspondingly connected with the second port;
a receiving unit, configured to receive, through a third port, the test packet sent from a fourth port of the network device under test; the fourth port is communicated with the second port in the interior of the tested network equipment; the third port is correspondingly connected with the fourth port;
the analysis unit is used for analyzing the detected message at the third port to obtain an analysis result; the analysis result comprises a packet loss detection result and/or a clock detection result.
6. The apparatus of claim 5, wherein if the analysis result comprises a clock detection result, the test packet comprises clock information; the analysis unit is configured to:
extracting clock information from the measured message at the third port;
and comparing the clock information with standard clock information to obtain a clock detection result.
7. The apparatus of claim 5, wherein if the analysis result indicates that the port of the network device under test has a fault, the apparatus further comprises:
and the positioning unit is used for positioning the fault port according to the analysis result.
8. The utility model provides a testing arrangement of network port flow, its characterized in that, a plurality of ports of network equipment under test and a plurality of ports one-to-one of network tester are connected, a plurality of ports of network equipment under test are in network equipment under test inside communicates according to the order of predetermineeing in proper order, just first port communicates with last port in the order of predetermineeing, forms full port loopback directly links the topology, it is in to predetermine the order be the permutation order or the non-permutation order of a plurality of ports of network equipment under test, a plurality of ports specifically are at least three port, the device includes:
the receiving unit is used for receiving the test message sent by the network tester through the first port through the second port; the first port is any one port on the network tester, and the first port is correspondingly connected with the second port;
a forwarding unit, configured to forward the message under test to a fourth port of the network device under test through the second port; the fourth port is communicated with the second port in the interior of the tested network equipment;
the sending unit is used for sending the test message to a third port of the network tester through the fourth port so that the network tester can analyze the tested message at the third port to obtain an analysis result; the third port is correspondingly connected with the fourth port; the analysis result comprises a packet loss detection result and/or a clock detection result.
CN202010207863.1A 2020-03-23 2020-03-23 Network port flow testing method and device Active CN111200544B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010207863.1A CN111200544B (en) 2020-03-23 2020-03-23 Network port flow testing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010207863.1A CN111200544B (en) 2020-03-23 2020-03-23 Network port flow testing method and device

Publications (2)

Publication Number Publication Date
CN111200544A CN111200544A (en) 2020-05-26
CN111200544B true CN111200544B (en) 2022-04-26

Family

ID=70747021

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010207863.1A Active CN111200544B (en) 2020-03-23 2020-03-23 Network port flow testing method and device

Country Status (1)

Country Link
CN (1) CN111200544B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112637018B (en) * 2020-12-29 2022-08-09 北京信而泰科技股份有限公司 Network equipment testing method and device
CN113572661B (en) * 2021-07-28 2022-12-27 迈普通信技术股份有限公司 System and method for testing multi-activation detection performance
CN115277510B (en) * 2022-07-28 2023-12-01 科来网络技术股份有限公司 Method for automatically identifying equipment, equipment interface and equipment path in network session

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1909487A (en) * 2006-08-24 2007-02-07 华为数字技术有限公司 Method and system for set testing of router
CN101035028A (en) * 2007-01-18 2007-09-12 华为技术有限公司 Access error detection method and network device
CN104980315A (en) * 2015-06-11 2015-10-14 北京信而泰科技股份有限公司 Network equipment test method and device
DE102017121073A1 (en) * 2016-09-12 2018-03-15 Hyundai Motor Company DIAGNOSTIC METHODS AND APPARATUSES IN VEHICLE NETWORK
CN110278126A (en) * 2019-06-28 2019-09-24 苏州浪潮智能科技有限公司 A kind of switch port self checking method, system, terminal and storage medium

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8345558B2 (en) * 2010-02-02 2013-01-01 Juniper Networks, Inc. Packet-based memory test of a network device
CN103036747A (en) * 2013-01-07 2013-04-10 深圳市新格林耐特通信技术有限公司 Test method for performance of high-density port network equipment
CN106533846A (en) * 2016-12-30 2017-03-22 盛科网络(苏州)有限公司 Network configuration method and test method for testing forwarding performance of switch
CN108270482B (en) * 2017-12-21 2020-05-22 瑞斯康达科技发展股份有限公司 Port test method and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1909487A (en) * 2006-08-24 2007-02-07 华为数字技术有限公司 Method and system for set testing of router
CN101035028A (en) * 2007-01-18 2007-09-12 华为技术有限公司 Access error detection method and network device
CN104980315A (en) * 2015-06-11 2015-10-14 北京信而泰科技股份有限公司 Network equipment test method and device
DE102017121073A1 (en) * 2016-09-12 2018-03-15 Hyundai Motor Company DIAGNOSTIC METHODS AND APPARATUSES IN VEHICLE NETWORK
CN110278126A (en) * 2019-06-28 2019-09-24 苏州浪潮智能科技有限公司 A kind of switch port self checking method, system, terminal and storage medium

Also Published As

Publication number Publication date
CN111200544A (en) 2020-05-26

Similar Documents

Publication Publication Date Title
CN111200544B (en) Network port flow testing method and device
US7385931B2 (en) Detection of network misconfigurations
CN104144013B (en) PON method for diagnosing faults, device and system
CN111010298B (en) PON (passive optical network) network fault monitoring method and device
CN106776346B (en) Test method and device of CCMTS (China center testing System) equipment
CN111106990B (en) Self-diagnosis method for loop of underwater multi-channel signal acquisition and transmission array system
US8072890B2 (en) System and method for testing a dynamic communication across a network
CN110708715A (en) Service fault finding method and device for 5G base station
CN113162816B (en) Testing method and testing system for OSPFv3 protocol of switch
CN105827469A (en) MODBUS TCP implementation defect tester and detection method thereof
CN107566170B (en) Rule base-based automatic detection method for distribution network automatic telecontrol channel
Concatto et al. Improving yield of torus NoCs through fault-diagnosis-and-repair of interconnect faults
CN107271854B (en) Dual-redundancy equipotential cable network mixed wire testing device and testing method
CN117041094A (en) Quality detection method for mass production network equipment products
CN113872827B (en) Method and device for analyzing snakelike test failure of switch and storage medium
CN113949657B (en) Internet of things detection device, system and test method
CN112118156B (en) Filtering method and device for Ethernet protocol test
CN114172796B (en) Fault positioning method and related device for communication network
CN112738837B (en) WiFi AP equipment test system and method
Angrisani et al. Testing communication and computer networks: an overview
CN109302322B (en) Test system and method for improving test accuracy of nuclear security level network
CN112636944B (en) OLT equipment offline intelligent diagnosis method and system
CN105044552A (en) Fault diagnosis method, system and device for distribution network automation system
CN114487532A (en) Signal fault positioning method and positioning system of AI (Artificial Intelligence) operation device
CN116244130A (en) Board card detection method, device, test equipment and storage medium

Legal Events

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