CN111431766A - Port test method and system of switch - Google Patents

Port test method and system of switch Download PDF

Info

Publication number
CN111431766A
CN111431766A CN202010200926.0A CN202010200926A CN111431766A CN 111431766 A CN111431766 A CN 111431766A CN 202010200926 A CN202010200926 A CN 202010200926A CN 111431766 A CN111431766 A CN 111431766A
Authority
CN
China
Prior art keywords
port
switch
test
network tester
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010200926.0A
Other languages
Chinese (zh)
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.)
Shenzhen Genew Technologies Co Ltd
Original Assignee
Shenzhen Genew Technologies 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 Shenzhen Genew Technologies Co Ltd filed Critical Shenzhen Genew Technologies Co Ltd
Priority to CN202010200926.0A priority Critical patent/CN111431766A/en
Publication of CN111431766A publication Critical patent/CN111431766A/en
Pending legal-status Critical Current

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
    • H04L49/00Packet switching elements
    • H04L49/30Peripheral units, e.g. input or output ports

Landscapes

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

Abstract

The invention discloses a port testing method and a system of a switch, wherein the method comprises the following steps: the network tester sends a data packet to a first preset port of the switch through the first port, or the network tester sends the data packet to a second preset port of the switch through the second port; the network tester receives the data packet sent back by the switch through the second preset port through the second port, or the network tester receives the data packet sent back by the switch through the first preset port through the first port; when the scheduled packet sending test duration is reached, the network tester controls the first port to stop sending packets or controls the second port to stop sending packets; the switch analyzes the test data through the test program and feeds back the test result through the port indicator lamp on the switch panel. The invention can complete the testing tasks of all ports of the switch at one time, and directly feed back the testing result by using the port indicating lamp on the switch panel, and the whole testing process is accurate and has high efficiency.

Description

Port test method and system of switch
Technical Field
The invention relates to the technical field of intelligent pushing, in particular to a port testing method and system of a switch.
Background
A Switch (Switch) is a network device for electrical (optical) signal forwarding that can provide an exclusive electrical signal path for any two network nodes accessing the Switch; the most common switches are ethernet switches, and other common ones are telephone voice switches, fiber optic switches, etc.; because the switch has an internal switching matrix with high bandwidth and a back bus, and all ports are hooked on the back bus, the data packet can be directly and rapidly transmitted to the destination node but not all nodes through the internal switching matrix, so that network resources are not wasted, and very high efficiency is generated.
The switch is a data packet forwarding device widely used in an IP network, can directly influence the operation of the whole network, and the switch needs to test the forwarding performance of all ports during research, development and delivery so as to find and solve the quality problem during product design or production. Currently, the mainstream switch often has 48 or more ports, and the simple port-by-port test is not only inefficient but also very error-prone.
Accordingly, the prior art is yet to be improved and developed.
Disclosure of Invention
The invention mainly aims to provide a port testing method and a port testing system for a switch, and aims to solve the problems that in the prior art, the efficiency is low and errors are very easy to occur when the switch is subjected to port-by-port testing.
In order to achieve the above object, the present invention provides a port testing method for a switch, including the following steps:
the network tester sends a data packet to a first preset port of the switch through the first port;
the network tester receives the data packet sent back by the switch through a second preset port through a second port;
when the scheduled packet sending test duration is reached, the network tester controls the first port to stop sending packets;
the switch analyzes the test data through the test program and feeds back the test result through the port indicator lamp on the switch panel.
Optionally, in the method for testing a port of a switch, all ports on the switch are connected in series in advance through a connection line.
Optionally, in the port testing method of the switch, a rate at which the network tester sends the packet to the first preset port of the switch through the first port is a maximum rate of the port of the switch.
Optionally, the method for testing a port of a switch, where the switch analyzes test data through a test program and feeds back a test result through a port indicator lamp on a switch panel, specifically includes:
running a test program on the switch, and collecting the number of data packets sent and received by all ports on the switch respectively;
sequentially comparing the quantity of the data packets forwarded by the two connected ports according to the forwarding sequence of the data packets in all the ports;
if the quantity of the data packets forwarded by the existing port is less than that of the data packets forwarded by the previous port, the performance of the current port does not reach the standard, and the indicator light of the current port is controlled to flicker through the test program.
In addition, to achieve the above object, the present invention further provides another port testing method for a switch, where the port testing method for a switch includes:
the network tester sends a data packet to a second preset port of the switch through the second port;
the network tester receives a data packet sent back by the switch through a first preset port through the first port;
when the scheduled packet sending test duration is reached, the network tester controls the second port to stop sending packets;
the switch analyzes the test data through the test program and feeds back the test result through the port indicator lamp on the switch panel.
Optionally, in the method for testing a port of a switch, all ports on the switch are connected in series in advance through a connection line.
Optionally, in the port testing method of the switch, a rate at which the network tester sends the packet to the second preset port of the switch through the second port is a maximum rate of the port of the switch.
Optionally, the method for testing a port of a switch, where the switch analyzes test data through a test program and feeds back a test result through a port indicator lamp on a switch panel, specifically includes:
running a test program on the switch, and collecting the number of data packets sent and received by all ports on the switch respectively;
sequentially comparing the quantity of the data packets forwarded by the two connected ports according to the forwarding sequence of the data packets in all the ports;
if the quantity of the data packets forwarded by the existing port is less than that of the data packets forwarded by the previous port, the performance of the current port does not reach the standard, and the indicator light of the current port is controlled to flicker through the test program.
Optionally, in the port testing method of the switch, the maximum rate is 1000 Mbps; the hair pack test duration is 24 hours.
In addition, to achieve the above object, the present invention further provides a port test system of a switch, wherein the port test system of the switch includes: the system comprises a switch and a network tester, wherein the switch is in communication connection with the network tester;
the network tester sends a data packet to a first preset port of the switch through the first port; the network tester receives the data packet sent back by the switch through a second preset port through a second port; when the scheduled packet sending test duration is reached, the network tester controls the first port to stop sending packets; the switch analyzes the test data through the test program and feeds back a test result through a port indicator lamp on a switch panel;
or the network tester sends a data packet to a second preset port of the switch through the second port; the network tester receives a data packet sent back by the switch through a first preset port through the first port; when the scheduled packet sending test duration is reached, the network tester controls the second port to stop sending packets; the switch analyzes the test data through the test program and feeds back the test result through the port indicator lamp on the switch panel.
The invention connects all ports on the switch in series through the connecting wire, then sends packets to the connected switch port through one port of the network tester, receives the data packets forwarded by the switch through the other port of the network tester, thereby completing the test tasks of all ports of the switch at one time, designing and operating a set of special test programs on the switch to automatically analyze the test data, and finally utilizing the port indicator lamp on the switch panel to directly feed back the test result, and the whole test process is accurate and efficient.
Drawings
FIG. 1 is a flow chart of a first preferred embodiment of a port testing method of a switch of the present invention;
FIG. 2 is a flow chart of a second preferred embodiment of the port testing method of the switch of the present invention;
fig. 3 is a functional schematic diagram of a port test system of the switch according to the preferred embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer and clearer, the present invention is further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Example one
As shown in fig. 1, the port testing method of the switch according to the preferred embodiment of the present invention includes the following steps:
step S11, the network tester sends a data packet to a first preset port of the switch through the first port;
step S12, the network tester receives the data packet sent back by the switch through the second preset port through the second port;
step S13, when the scheduled time for sending the package is reached, the network tester controls the first port to stop sending the package;
and step S14, the switch analyzes the test data through the test program and feeds back the test result through the port indicator lamp on the switch panel.
As shown in fig. 3, the double-line is a physical network connection outside the switch, and connects two ports of the switch or connects the switch and a port of the network tester, respectively, and two ports connected by one physical network line are connected to each other. The single dotted line is a port connection configured inside the switch, which means that two ports connected to the single dotted line are communicated with each other inside the switch, and this is a configuration that all commercial switches support, and the essential principle is to divide a plurality of ports (here, two ports) of the switch into a group, and the ports in the group can forward messages to each other, and are not communicated with other ports outside the group, and one port can only be in one group. The configuration of the switch in the present invention is that the default 48 ports (of course, other number of ports, for example, 8 ports) are in the same group.
As shown in fig. 3, a first port of the network tester is port a in fig. 3, a second port of the network tester is port b in fig. 3, a first default port of the switch is port 1 in fig. 3, and a second default port of the switch is port 2 in fig. 3. Two ports (a, b) of the network tester are respectively connected with two ports (1, 2) of the switch, one port sends a data packet, and the other port receives the data packet.
Specifically, the network tester sends a data packet to port 1 of the switch through port a; the network tester receives the data packet sent back by the switch through the port 2 through the port b; when the scheduled packet sending test duration is reached, the network tester control port a stops sending packets; the switch analyzes the test data through the test program and feeds back the test result through the port indicator lamp on the switch panel.
Further, the rate of sending the data packet to the first preset port (port 1) of the switch through the first port (port a) by the network tester is the maximum rate of the port of the switch, and the maximum rate is 1000 Mbps. The presence or absence of a problem in the case of the maximum packet transmission rate indicates that there is no problem with the transmission because some problems are not detected at the normal rate. The switch port rate is 1000M and packets are sent at 1000Mbps rate.
As shown in fig. 3, after a data packet sent from port a of the network tester is forwarded through 48 ports of the switch, a process of receiving the data packet sent from port a by port b is as follows:
the port a of the network tester sends N data packets to the port 1 of the switch, and the port 1 of the switch forwards the N data packets to the port 48;
switch port 48 forwards N packets to port 47- > switch port 47 forwards N packets to port 46- >;
switch port 46 forwards N packets to port 45- - > switch port 45 forwards N packets to port 44- - >;
switch port 44 forwards N packets to port 43- > switch port 43 forwards N packets to port 42- >;
the switch port 42 forwards N data packets to the port 41- - > the switch port 41 forwards N data packets to the port 40- - >;
the switch port 40 forwards N data packets to the port 39- - > the switch port 39 forwards N data packets to the port 38- - >;
switch port 38 forwards N packets to port 37 > switch port 37 forwards N packets to port 36 >;
the switch port 36 forwards N data packets to the port 35- - > the switch port 35 forwards N data packets to the port 34- - >;
switch port 34 forwards N packets to port 33- - > switch port 33 forwards N packets to port 32- -;
switch port 32 forwards N packets to port 31- > switch port 31 forwards N packets to port 30- >;
switch port 30 forwards N packets to port 29 > switch port 29 forwards N packets to port 28 >;
switch port 28 forwards N packets to port 27 > switch port 27 forwards N packets to port 26- -;
switch port 26 forwards N packets to port 25- - > switch port 25 forwards N packets to port 24- -;
switch port 24 forwards N packets to port 23 > switch port 23 forwards N packets to port 22- -;
the switch port 22 forwards N data packets to the port 21- - > the switch port 21 forwards N data packets to the port 20- - >;
the switch port 20 forwards N data packets to the port 19- - > the switch port 19 forwards N data packets to the port 18- - >;
switch port 18 forwards N packets to port 17 > switch port 17 forwards N packets to port 16 >;
the switch port 16 forwards N data packets to the port 15- - > the switch port 15 forwards N data packets to the port 14- - >;
switch port 14 forwards N packets to port 13- - > switch port 13 forwards N packets to port 12- - >;
the switch port 12 forwards N data packets to the port 11- - > the switch port 11 forwards N data packets to the port 10- - >;
the switch port 10 forwards N data packets to the port 9- - > the switch port 9 forwards N data packets to the port 8- - >;
the switch port 8 forwards N data packets to the port 7- - > the switch port 7 forwards N data packets to the port 6- - >;
the switch port 6 forwards N data packets to the port 5- - > the switch port 5 forwards N data packets to the port 4- - >;
the switch port 4 forwards N data packets to the port 3- - > the switch port 3 forwards N data packets to the port 2- - >;
switch port 2 forwards N packets to network tester port b.
When the scheduled packet sending test duration is reached (for example, 24 hours), controlling the port a and the port b of the network tester to stop sending packets; at this time, all ports of the switch do not have data packets to be forwarded any more, a test program is run on the switch, and the quantity of the data packets sent and received by 48 ports respectively is collected; according to the sequence of the data packets forwarded in the 48 ports, the quantity of the data packets forwarded by the two connected ports is compared in sequence, if the quantity of the data packets forwarded by which port is less than the quantity of the data packets forwarded by the previous port, the performance of the port does not reach the standard, the test program controls the indicator lamp of the port to flash (each port has its own indicator lamp for displaying whether a network cable is plugged, and the test program is used for displaying the test result), so as to draw the attention of a tester.
For example, "switch port 3 forwards N packets to port 2," if the actual forwarding count for port 3 is 168750000000 and the actual forwarding count for port 2 is 168749999990, then port 2 has lost packets and port 2 performance does not meet the standard.
That is, the switch runs a test program, and collects the number of data packets sent and received by all ports on the switch; sequentially comparing the quantity of the data packets forwarded by the two connected ports according to the forwarding sequence of the data packets in all the ports; if the quantity of the data packets forwarded by the existing port is less than that of the data packets forwarded by the previous port, the performance of the current port does not reach the standard, and the indicator light of the current port is controlled to flicker through the test program.
Example two
As shown in fig. 2, the port testing method of the switch according to the preferred embodiment of the present invention includes the following steps:
step S21, the network tester sends a data packet to a second preset port of the switch through the second port;
step S22, the network tester receives the data packet sent back by the switch through the first preset port through the first port;
step S23, when the scheduled time for sending the package is reached, the network tester controls the second port to stop sending the package;
and step S24, the switch analyzes the test data through the test program and feeds back the test result through the port indicator lamp on the switch panel.
As shown in fig. 3, the double-line is a physical network connection outside the switch, and connects two ports of the switch or connects the switch and a port of the network tester, respectively, and two ports connected by one physical network line are connected to each other. The single dotted line is a port connection configured inside the switch, which means that two ports connected to the single dotted line are communicated with each other inside the switch, and this is a configuration that all commercial switches support, and the essential principle is to divide a plurality of ports (here, two ports) of the switch into a group, and the ports in the group can forward messages to each other, and are not communicated with other ports outside the group, and one port can only be in one group. The equipment of the switch is configured from factory in the invention, and the default 48 ports are all in the same group.
As shown in fig. 3, a first port of the network tester is port a in fig. 3, a second port of the network tester is port b in fig. 3, a first default port of the switch is port 1 in fig. 3, and a second default port of the switch is port 2 in fig. 3. Two ports (a, b) of the network tester are respectively connected with two ports (1, 2) of the switch, one port sends a data packet, and the other port receives the data packet.
Specifically, the network tester sends a data packet to port 2 of the switch through port b; the network tester receives the data packet sent back by the switch through the port 1 through the port a; when the scheduled packet sending test duration is reached, the network tester control port b stops sending packets; the switch analyzes the test data through the test program and feeds back the test result through the port indicator lamp on the switch panel. That is, since forwarding and communication are required to be bidirectional, the network tester may send a packet to port 1 of the switch through port a; the network tester receives the data packet sent back by the switch through the port 2 through the port b; or the network tester sends a data packet to the port 2 of the switch through the port b; the network tester receives the data packet sent back by the switch through the port 1 through the port a.
Further, the rate of sending the data packet to the second preset port (port 2) of the switch through the second port (port b) by the network tester is the maximum rate of the port of the switch, and the maximum rate is 1000 Mbps. The presence or absence of a problem in the case of the maximum packet transmission rate indicates that there is no problem with the transmission because some problems are not detected at the normal rate. The switch port rate is 1000M and packets are sent at 1000Mbps rate.
As shown in fig. 3, after a data packet sent by port b of the network tester is forwarded through 48 ports of the switch, the process of port a receiving the data packet sent by port b is as follows:
the port b of the network tester sends N data packets to the port 2 of the switch, and the port 2 of the switch forwards the N data packets to the port 3;
the switch port 3 forwards N data packets to the port 4- - > the switch port 4 forwards N data packets to the port 5- - >;
the switch port 5 forwards N data packets to the port 6- - > the switch port 6 forwards N data packets to the port 7- - >;
switch port 7 forwards N packets to port 8- - > switch port 8 forwards N packets to port 9- - >;
switch port 9 forwards N packets to port 10- > switch port 10 forwards N packets to port 11- >;
the switch port 11 forwards N data packets to the port 12, and the switch port 12 forwards N data packets to the port 13;
the switch port 13 forwards N data packets to the port 14- - > the switch port 14 forwards N data packets to the port 15- - >;
the switch port 15 forwards N data packets to the port 16- - > the switch port 16 forwards N data packets to the port 17- - >;
switch port 17 forwards N packets to port 18- > switch port 18 forwards N packets to port 19- >;
the switch port 19 forwards N data packets to the port 20- - > the switch port 20 forwards N data packets to the port 21- - >;
the switch port 21 forwards N data packets to the port 22, and the switch port 22 forwards N data packets to the port 23;
switch port 23 forwards N packets to port 24- > switch port 24 forwards N packets to port 25- >;
switch port 25 forwards N packets to port 26 > switch port 26 forwards N packets to port 27 >;
switch port 27 forwards N packets to port 28 > switch port 28 forwards N packets to port 29 >;
the switch port 29 forwards N data packets to the port 30- - > the switch port 30 forwards N data packets to the port 31- - >;
switch port 31 forwards N packets to port 32 > switch port 32 forwards N packets to port 33- -;
switch port 33 forwards N packets to port 34 > switch port 34 forwards N packets to port 35 >;
the switch port 35 forwards N data packets to the port 36- - > the switch port 36 forwards N data packets to the port 37- - >;
switch port 37 forwards N packets to port 38- > switch port 38 forwards N packets to port 39- >;
the switch port 39 forwards N data packets to the port 40- - > the switch port 40 forwards N data packets to the port 41- - >;
the switch port 41 forwards N data packets to the port 42- - > the switch port 42 forwards N data packets to the port 43- - >;
switch port 43 forwards N packets to port 44- > switch port 44 forwards N packets to port 45- >;
switch port 45 forwards N packets to port 46- - > switch port 46 forwards N packets to port 47- - >;
switch port 47 forwards N packets to port 48- > switch port 48 forwards N packets to port 1- >;
switch port 1 forwards N packets to network tester port a.
When the scheduled packet sending test duration is reached (for example, 24 hours), controlling the port b and the port a of the network tester to stop sending packets; at this time, all ports of the switch do not have data packets to be forwarded any more, a test program is run on the switch, and the quantity of the data packets sent and received by 48 ports respectively is collected; according to the sequence of the data packets forwarded in the 48 ports, the quantity of the data packets forwarded by the two connected ports is compared in sequence, if the quantity of the data packets forwarded by which port is less than the quantity of the data packets forwarded by the previous port, the performance of the port does not reach the standard, the test program controls the indicator lamp of the port to flash (each port has its own indicator lamp for displaying whether a network cable is plugged, and the test program is used for displaying the test result), so as to draw the attention of a tester.
For example, "switch port 2 forwards N packets to port 3," if the actual forwarding count for port 2 is 168750000000 and the actual forwarding count for port 3 is 168749999990, then port 3 has lost packets and port 3 performance does not meet the standard.
That is, the switch runs a test program, and collects the number of data packets sent and received by all ports on the switch; sequentially comparing the quantity of the data packets forwarded by the two connected ports according to the forwarding sequence of the data packets in all the ports; if the quantity of the data packets forwarded by the existing port is less than that of the data packets forwarded by the previous port, the performance of the current port does not reach the standard, and the indicator light of the current port is controlled to flicker through the test program.
The most frequently measured port is 1000M port, which is sent according to 1000Mbps rate, and 168750000000 packets can be sent in 24 hours of general packet sending test, that is, the number of N packets can be 168750000000.
EXAMPLE III
Further, as shown in fig. 3, based on the port testing method of the switch, the present invention also provides a port testing system of the switch, wherein the port testing system of the switch includes: the system comprises a switch and a network tester, wherein the switch is in communication connection with the network tester.
The network tester sends a data packet to a first preset port of the switch through the first port; the network tester receives the data packet sent back by the switch through a second preset port through a second port; when the scheduled packet sending test duration is reached, the network tester controls the first port to stop sending packets; the switch analyzes the test data through the test program and feeds back the test result through the port indicator lamp on the switch panel.
Or the network tester sends a data packet to a second preset port of the switch through the second port; the network tester receives a data packet sent back by the switch through a first preset port through the first port; when the scheduled packet sending test duration is reached, the network tester controls the second port to stop sending packets; the switch analyzes the test data through the test program and feeds back the test result through the port indicator lamp on the switch panel.
In summary, the present invention provides a port testing method and system for a switch, where the method includes: the network tester sends a data packet to a first preset port of the switch through the first port, or the network tester sends the data packet to a second preset port of the switch through the second port; the network tester receives the data packet sent back by the switch through the second preset port through the second port, or the network tester receives the data packet sent back by the switch through the first preset port through the first port; when the scheduled packet sending test duration is reached, the network tester controls the first port to stop sending packets or controls the second port to stop sending packets; the switch analyzes the test data through the test program and feeds back the test result through the port indicator lamp on the switch panel. The invention connects all ports on the switch in series through the connecting wire, then sends packets to the connected switch port through one port of the network tester, receives the data packets forwarded by the switch through the other port of the network tester, thereby completing the test tasks of all ports of the switch at one time, designing and operating a set of special test programs on the switch to automatically analyze the test data, and finally utilizing the port indicator lamp on the switch panel to directly feed back the test result, and the whole test process is accurate and efficient.
Of course, it will be understood by those skilled in the art that all or part of the processes of the methods of the above embodiments may be implemented by a computer program instructing relevant hardware (such as a processor, a controller, etc.), and the program may be stored in a computer readable storage medium, and when executed, the program may include the processes of the above method embodiments. The storage medium may be a memory, a magnetic disk, an optical disk, etc.
It is to be understood that the invention is not limited to the examples described above, but that modifications and variations may be effected thereto by those of ordinary skill in the art in light of the foregoing description, and that all such modifications and variations are intended to be within the scope of the invention as defined by the appended claims.

Claims (10)

1. A port test method of a switch is characterized by comprising the following steps:
the network tester sends a data packet to a first preset port of the switch through the first port;
the network tester receives the data packet sent back by the switch through a second preset port through a second port;
when the scheduled packet sending test duration is reached, the network tester controls the first port to stop sending packets;
the switch analyzes the test data through the test program and feeds back the test result through the port indicator lamp on the switch panel.
2. The port test method of a switch according to claim 1, wherein all ports on the switch are connected in series in advance through a connection line.
3. The port testing method of the switch according to claim 1, wherein the rate of the network tester sending the data packets to the first predetermined port of the switch through the first port is the maximum rate of the port of the switch.
4. The port testing method of the switch according to claim 1, wherein the switch analyzes the test data through the test program and feeds back the test result through the port indicator lamp on the switch panel, and specifically comprises:
running a test program on the switch, and collecting the number of data packets sent and received by all ports on the switch respectively;
sequentially comparing the quantity of the data packets forwarded by the two connected ports according to the forwarding sequence of the data packets in all the ports;
if the quantity of the data packets forwarded by the existing port is less than that of the data packets forwarded by the previous port, the performance of the current port does not reach the standard, and the indicator light of the current port is controlled to flicker through the test program.
5. A port test method of a switch is characterized by comprising the following steps:
the network tester sends a data packet to a second preset port of the switch through the second port;
the network tester receives a data packet sent back by the switch through a first preset port through the first port;
when the scheduled packet sending test duration is reached, the network tester controls the second port to stop sending packets;
the switch analyzes the test data through the test program and feeds back the test result through the port indicator lamp on the switch panel.
6. The port test method of the switch according to claim 5, wherein all ports on the switch are connected in series in advance through a connection line.
7. The port testing method of the switch according to claim 5, wherein the rate of the network tester sending the data packets to the second predetermined port of the switch through the second port is the maximum rate of the port of the switch.
8. The port testing method of the switch according to claim 5, wherein the switch analyzes the test data through the test program and feeds back the test result through the port indicator lamp on the switch panel, and specifically comprises:
running a test program on the switch, and collecting the number of data packets sent and received by all ports on the switch respectively;
sequentially comparing the quantity of the data packets forwarded by the two connected ports according to the forwarding sequence of the data packets in all the ports;
if the quantity of the data packets forwarded by the existing port is less than that of the data packets forwarded by the previous port, the performance of the current port does not reach the standard, and the indicator light of the current port is controlled to flicker through the test program.
9. The port test method of a switch according to claim 7, wherein the maximum rate is 1000 Mbps; the hair pack test duration is 24 hours.
10. A port test system of a switch, the port test system of the switch comprising: the system comprises a switch and a network tester, wherein the switch is in communication connection with the network tester;
the network tester sends a data packet to a first preset port of the switch through the first port; the network tester receives the data packet sent back by the switch through a second preset port through a second port; when the scheduled packet sending test duration is reached, the network tester controls the first port to stop sending packets; the switch analyzes the test data through the test program and feeds back a test result through a port indicator lamp on a switch panel;
or the network tester sends a data packet to a second preset port of the switch through the second port; the network tester receives a data packet sent back by the switch through a first preset port through the first port; when the scheduled packet sending test duration is reached, the network tester controls the second port to stop sending packets; the switch analyzes the test data through the test program and feeds back the test result through the port indicator lamp on the switch panel.
CN202010200926.0A 2020-03-20 2020-03-20 Port test method and system of switch Pending CN111431766A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010200926.0A CN111431766A (en) 2020-03-20 2020-03-20 Port test method and system of switch

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010200926.0A CN111431766A (en) 2020-03-20 2020-03-20 Port test method and system of switch

Publications (1)

Publication Number Publication Date
CN111431766A true CN111431766A (en) 2020-07-17

Family

ID=71553539

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010200926.0A Pending CN111431766A (en) 2020-03-20 2020-03-20 Port test method and system of switch

Country Status (1)

Country Link
CN (1) CN111431766A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112333044A (en) * 2020-10-29 2021-02-05 北京锐安科技有限公司 Shunting equipment performance test method, device and system, electronic equipment and medium
CN113676380A (en) * 2021-09-30 2021-11-19 西安易朴通讯技术有限公司 Switch port testing method, electronic equipment and system

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1917452A (en) * 2005-08-19 2007-02-21 上海亿人通信终端有限公司 Method for testing forwarding performance of Ethernet exchange, and method for configuring network
CN101296131A (en) * 2008-06-11 2008-10-29 北京星网锐捷网络技术有限公司 Method, device and system for testing switchboard connectivity
US20110154108A1 (en) * 2009-12-16 2011-06-23 Airbus Operations (Sas) System and process for simulation or test exploiting data from monitoring ports
CN103095522A (en) * 2012-12-19 2013-05-08 黑龙江省电力有限公司信息通信分公司 Device for displaying receiving and sending data traffic of Ethernet port based on light-emitted diode (LED)
CN108183840A (en) * 2017-12-28 2018-06-19 天津芯海创科技有限公司 Verification method, device and the realization device of switch performance
CN108683567A (en) * 2018-05-30 2018-10-19 郑州云海信息技术有限公司 A kind of switch port fault testing method and system based on MCS and server
CN110493073A (en) * 2019-07-12 2019-11-22 苏州浪潮智能科技有限公司 A kind of test method and system of network switch port function

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1917452A (en) * 2005-08-19 2007-02-21 上海亿人通信终端有限公司 Method for testing forwarding performance of Ethernet exchange, and method for configuring network
CN101296131A (en) * 2008-06-11 2008-10-29 北京星网锐捷网络技术有限公司 Method, device and system for testing switchboard connectivity
US20110154108A1 (en) * 2009-12-16 2011-06-23 Airbus Operations (Sas) System and process for simulation or test exploiting data from monitoring ports
CN103095522A (en) * 2012-12-19 2013-05-08 黑龙江省电力有限公司信息通信分公司 Device for displaying receiving and sending data traffic of Ethernet port based on light-emitted diode (LED)
CN108183840A (en) * 2017-12-28 2018-06-19 天津芯海创科技有限公司 Verification method, device and the realization device of switch performance
CN108683567A (en) * 2018-05-30 2018-10-19 郑州云海信息技术有限公司 A kind of switch port fault testing method and system based on MCS and server
CN110493073A (en) * 2019-07-12 2019-11-22 苏州浪潮智能科技有限公司 A kind of test method and system of network switch port function

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112333044A (en) * 2020-10-29 2021-02-05 北京锐安科技有限公司 Shunting equipment performance test method, device and system, electronic equipment and medium
CN112333044B (en) * 2020-10-29 2022-07-15 北京锐安科技有限公司 Shunting equipment performance test method, device and system, electronic equipment and medium
CN113676380A (en) * 2021-09-30 2021-11-19 西安易朴通讯技术有限公司 Switch port testing method, electronic equipment and system
CN113676380B (en) * 2021-09-30 2023-02-28 西安易朴通讯技术有限公司 Switch port testing method, electronic equipment and system

Similar Documents

Publication Publication Date Title
US9438503B2 (en) Network services testing with pluggable transceivers
US20110182191A1 (en) Testing Network Equipment
US11184267B2 (en) Intelligent in-band telemetry auto-configuration for IP networks
CN103457658B (en) Optical line terminal olt
CN101741721A (en) Method and system for networking
CN111919402B (en) Optical communication device, optical line terminal and optical communication processing method
CN111431766A (en) Port test method and system of switch
WO2016105446A1 (en) Technologies for medium grained adaptive routing in high-performance network fabrics
GB2461966A (en) Frame loss measurement system which communicates frame count information using OAM frames and corrects counters according to frame transmission order
TWI535251B (en) Method and system for low-latency networking
CN103236956A (en) Method and switch for testing throughput of communication equipment
CN108063736A (en) A kind of industrial ethernet switch that long-distance cable is supported to communicate and control method
CN110290020B (en) High-precision flow percentage generation method and device for Ethernet tester
CN111092782A (en) Tested communication equipment, communication equipment port data forwarding test system and method
CN103401716A (en) Network performance measurement method, network management equipment and network element equipment
CN110324265B (en) Traffic distribution method, routing method, equipment and network system
CN109688071A (en) A kind of flexible Ethernet message forwarding method and device
US7610408B2 (en) Automatic link commissioning
CN107769997B (en) AFDX exchange product exchange technology delay index testing device
CN107835109B (en) Method and system for testing packet transport network defined by software
US9148224B2 (en) Ethernet passive optical network over coaxial (EPoC) system rate mechanism
CN114301852A (en) Message transmission control, generation and transmission method, configuration method, equipment and medium
CN220511133U (en) Ethernet testing device and Ethernet testing system
US8780736B2 (en) Communication apparatus and heat generation suppressing method
CN114025258B (en) Optical fiber Ethernet switch testing method based on VLAN division

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20200717

RJ01 Rejection of invention patent application after publication