CN106533846A - Network configuration method and test method for testing forwarding performance of switch - Google Patents

Network configuration method and test method for testing forwarding performance of switch Download PDF

Info

Publication number
CN106533846A
CN106533846A CN201611269912.4A CN201611269912A CN106533846A CN 106533846 A CN106533846 A CN 106533846A CN 201611269912 A CN201611269912 A CN 201611269912A CN 106533846 A CN106533846 A CN 106533846A
Authority
CN
China
Prior art keywords
port
switch
data message
test
network
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
CN201611269912.4A
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.)
Centec Networks Suzhou Co Ltd
Original Assignee
Centec Networks Suzhou 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 Centec Networks Suzhou Co Ltd filed Critical Centec Networks Suzhou Co Ltd
Priority to CN201611269912.4A priority Critical patent/CN106533846A/en
Publication of CN106533846A publication Critical patent/CN106533846A/en
Pending legal-status Critical Current

Links

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/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters

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 invention discloses a network configuration method and a test method for testing the forwarding performance of a switch, applied to the technical field of network communication. The network configuration method comprises: a test port of a network tester is connected with a port of the switch, the network tester is used for sending and receiving a test data message and judging the forwarding performance of the switch, and the network tester tests multiple ports of the switches by using only one test port. According to the network configuration method disclosed by the invention, the forwarding performance of the switch is tested just by using one test port in the network tester, thereby getting rid of the resource requirements of interfaces and connection media, reducing the cost and further reducing the complexity of testing the forwarding performance of the switch.

Description

The network collocating method of test switch forwarding performance and method of testing
Technical field
The present invention relates to a kind of network communication field, more particularly, to a kind of network configuration of test switch forwarding performance Method and method of testing.
Background technology
In switch performance test, generally the forwarding performance of switch is tested by Snake verification environments, such as Shown in Fig. 1, realize representing physical connection, dotted line represents data flow, the Snake verification environments refer to the of network tester One test port is connected by netting twine with a port of switch, second test port and switch last Port is connected by netting twine, and remaining port of switch is matched two-by-two, is attached by netting twine;Further, configure The forwarding rule of Snake verification environments makes data message flow into switch from first test port of network tester, snakelike Flow through last port that best friend changes planes from first port of switch, be finally forwarded to from last port from Network tester;Meanwhile, in order to reach the requirement of switch oepration at full load, need two test ports in network tester There will be data message to enter in switch, i.e. second test port of network tester equally sends message, from switch Last port finally flow in a port of switch, Snake verification environments make switch be in fully loaded Test environment.
So that one has the optical switch equipment of 48 ports as an example, test environment as above to be realized, 48 are at least needed Individual optical module, and 25 interconnect the optical fiber that uses, it is obvious that it is larger to build above-mentioned test environment workload, and It is higher to medium requirements.
The content of the invention
It is an object of the invention to overcome the defect of prior art, there is provided a kind of network of test switch forwarding performance is matched somebody with somebody Put method and method of testing, only using network tester in a test port complete the test to switch forwarding performance.
For achieving the above object, the present invention proposes following technical scheme:A kind of network of test switch forwarding performance is matched somebody with somebody Method is put, is comprised the steps:
Step 1, network tester are only connected by netting twine with a port of switch using a test port;
Step 2, configures the Serdes chip modules of switch, makes the port of switch realize message loopback;
Step 3, configuration switch ports themselves forwarding rule, makes data message flow to friendship successively from a port of switch Last port changed planes, and a port is flowed to by the data message of last port.
Preferably, each port in the switch once data message inflow and a data message stream Go out.
Preferably, a port of the switch need not realize message loopback.
Preferably, for the switch with n port, wherein, n is integer.
Preferably, in the switch, the flow of data message is unidirectional.
A kind of method of testing of test switch forwarding performance, the network configured using method described above, test side Method comprises the steps:
Step 1, network tester send datagram into a port of switch, and a port is by datagram Text is forwarded directly in second port of switch;
Step 2, second port of switch loop back to data message after the port, by data message forwarding to exchange In 3rd port of machine;
Step 3, the like, last port of switch loops back to data message after the port, the data Message is forwarded in a port of switch, and is flowed out in network tester by first port of switch.
Preferably, for the switch with n port, wherein, n is integer.
Preferably, each port in the switch once data message inflow and a data message stream Go out.
Preferably, a port of the switch need not realize message loopback.
Preferably, in the switch, the flow of data message is unidirectional.
The invention has the beneficial effects as follows:
The present invention realizes switch ports themselves message loopback by Serdes chip modules, reaches the shape of switch full load State, to carry out forwarding performance test, and only using network tester in a test port complete to switch forwarding property The test of energy, breaks away from the resource requirement of interface and connection medium, reduces cost, and reduces the complexity tested.
Description of the drawings
Fig. 1 is prior art method of testing schematic diagram;
Fig. 2 is exchange data Message processing process schematic;
Fig. 3 is the method for testing schematic diagram of the present invention.
Specific embodiment
Below in conjunction with the accompanying drawing of the present invention, clear, complete description is carried out to the technical scheme of the embodiment of the present invention.
With reference to shown in Fig. 2, the network collocating method of disclosed test switch forwarding performance and test side Method, in the present embodiment, by taking the test of the switch with 6 network ports as an example, is described in detail.
As shown in Fig. 2 the switch includes exchange chip module, Serdes chip modules, and Mac modules, each mould The intercommunication of block, wherein, Mac modules are for receiving and sending the module of message, Serdes in Ethernet (Serializer-deserializer, serializer and deserializer).
Specifically, it is as follows to entering the Message processing process in direction:Mac modules will receive the datagram from the network port Text is sent into Serdes chip modules after processing, and the data message is decoded in Serdes chip modules, and is sent To exchanging in chip module, the exchange chip is forwarded to data message.
It is as follows to the Message processing process of outgoing direction:Exchange chip module sends the data message for receiving to Serdes cores Encoded in piece module, further sent into Mac modules, data message is forwarded from corresponding port by Mac modules.
In the present invention, by configuring Serdes chip modules, the data message ring in transmission to Serdes chip modules is made It is back in Serdes chip modules, the Serdes chip modules send data message to exchanging in chip module, exchange core Piece module is by data message forwarding to the corresponding network port.
Test switch forwarding performance, first to switch and network tester Configuration network test environment, network test The test port of instrument is connected with the network port of switch, and the network tester is by sending and receiving the datagram of test Text, determines whether the forwarding performance of switch, and in the present invention, the network tester only uses a test port, can The test of forwarding performance is carried out to several ports of switch, network collocating method comprises the steps:
Step 1, network tester are only connected by netting twine with a port of switch using a test port;
Step 2, configures the Serdes chip modules of switch, makes the port of switch realize message loopback;
Step 3, configuration switch ports themselves forwarding rule, makes data message flow to friendship successively from a port of switch Last port changed planes, and a port is flowed to by the data message of last port.
Specifically, as shown in figure 3, realizing representing physical connection in figure, dotted line represents the flow direction of data message, network test The test port of instrument and a port of switch, i.e. port 1, other ports the like, it is connected by netting twine, while The Serdes chip modules of configuration switch, enable the port of switch to realize message loopback, that is, flow through the datagram of port 2 Text can loop back to port 2, the port 3 of the switch, port 4, port 5, Yi Jiduan under the effect of Serdes chip modules Mouth 6 equally can loop back to data message in itself port, in the present embodiment, pass through physics with network tester on switch Need not realize that a port (port 1) of message loopback, i.e. switch need not realize message ring in the port of line connection Return.
Further, configure the port forwarding rule of switch, make data message from a port of switch successively Last port is flowed to, and the data message of last port flows to a port of switch, in the present embodiment, adopted The forwarding of data message is carried out with the mode of direct port connection, wherein, the port 1 for configuring switch is direct-connected with port 2, configuration order For port1 port-cross-connect port2, the data message of port 1 is made to be forwarded directly to port 2;Configuration switch Port 2 it is direct-connected with port 3, configuration order be port2 port-cross-connect port3, make the data message of port 2 It is forwarded directly to port 3;The like, the port 5 for configuring switch is direct-connected with port 6, and configuration order is port5 port- Cross-connect port6, make the data message of port 5 be forwarded directly to port 6, meanwhile, configure the port 6 of switch with Port 1 is direct-connected, and configuration order is port6 port-cross-connect port1, makes the message of port 6 be forwarded directly to end In mouth 1.
Network tester and switch are carried out after Configuration network test environment, the handling process of specific data message is such as Under:
Network tester sends the port 1 of a data message to switch by netting twine, and port 1 receives and processes described Data message, data message is forwarded directly in port 2 by direct-connected mode, and the data message for receiving is sent out by port 2 Loop back processing being is carried out in delivering to Serdes chip modules, and the data message is looped back into port 2, and port 2 receives and processes Data message by way of direct port connection is forwarded directly to data message in port 3 simultaneously;Port 3 is by the data for receiving Message sends carries out loop back processing being into Serdes chip modules, and the data message is looped back into port 3, and port 3 receives And processing data message by way of direct port connection is forwarded directly to data message in port 4 simultaneously;Port 4 will receive Data message send and carry out loop back processing being into Serdes chip modules, the data message ring is back in port 4, port 4 receive simultaneously processing data message by way of direct port connection is forwarded directly to data message in port 5 simultaneously;Port 5 will The data message for receiving sends carries out loop back processing being into Serdes chip modules, and the data message is looped back to port 5 In, port 5 receives and processing data message by way of direct port connection is forwarded directly to data message in port 6 simultaneously; The data message for receiving is sent and carries out loop back processing being into Serdes chip modules by port 6, and the data message is looped back Into port 6, port 6 receives and processing data message is while by data message forwarding to port 1 by way of direct port connection In;The data message for receiving is sent into network tester by port 1 by netting twine, and the network tester is according to receiving Data message determine whether the forwarding performance of switch.
By said method Configuration network tester and switch, network tester can only use a test port, Several ports of switch are carried out with the test of forwarding performance, and the inflow of each switch ports themselves once data message With the outflow of a data message, in the present embodiment, the inflow of the data message refers to recipient of the data message from port To inflow, after the outflow of data message refers to that the message that previous port receives is forwarded to the port, flow out to from the port Next port, so that switch is in the state of full load, the such as port 2 of switch, the data message for flowing into port 2 is Port 2 receives the data message that direction receives, and the data message for flowing out port 2 is that the message that port 1 receives is forwarded to end After mouth 2, the data message of port 3 is flowed out to from port 2;In addition, the flow direction of data message is unidirectional, datagram in switch The flow direction of text is to flow to last port of switch from the first port of switch successively.
In the present embodiment, tested switch adopts 6 ports, certainly, for the switch with n port, together Sample can be adopted, therefore, said method can be used for the switch with n port, its Middle n is integer.
A kind of method of testing of test switch forwarding performance, the network configured using said method are comprised the steps:
Step 1, network tester send datagram into a port of switch, and a port is by datagram Text is forwarded directly in second port of switch;
Step 2, second port of switch loop back to data message after the port, by data message forwarding to exchange In 3rd port of machine;
Step 3, the like, last port of switch loops back to data message after the port, the data Message is forwarded in a port of switch, and is flowed out in network tester by first port of switch.
Specifically, network tester sends the port 1 of a data message to switch by netting twine, and port 1 receives simultaneously The data message is processed, data message is forwarded directly in port 2 by direct-connected mode, port 2 is by the number for receiving Sending according to message carries out loop back processing being into Serdes chip modules, and the data message is looped back in port 2, and port 2 receives And processing data message is simultaneously by data message forwarding to port 3;Port 3 sends the data message for receiving to Serdes Carry out loop back processing being in chip module, the data message is looped back in port 3, port 3 receive and processing data message simultaneously By in data message forwarding to port 4;The data message for receiving is sent and carries out loopback into Serdes chip modules by port 4 Process, the data message is looped back in port 4, port 4 receives and data message forwarding is extremely held by processing data message simultaneously In mouth 5;The data message for receiving is sent and carries out loop back processing being into Serdes chip modules by port 5, the data message Loop back in port 5, port 5 receives and processing data message is simultaneously by data message forwarding to port 6;Port 6 will receive To data message send and carry out loop back processing being into Serdes chip modules, the data message is looped back in port 6, port 6 receive and processing data message is simultaneously by data message forwarding to port 1;Net is crossed by the data message for receiving same in port 1 Line is sent into network tester, and the network tester determines whether the forwarding of switch according to the data message for receiving Performance.
The port 2 of the switch, port 3, port 4, port 5, and port 6 are by configuring the Serdes in switch Chip module realizes the loopback of message, and wherein, port 1 does not carry out the loopback of data message.
Switch, each switch ports themselves once inflow of data message and a secondary data are tested by said method The outflow of message, in the present embodiment, the inflow of the data message refers to that data message is flowed into from the reception direction of port, data After the outflow of message refers to that the message that previous port receives is forwarded to the port, next port is flowed out to from the port, So that state of the switch in full load, the such as port 3 of switch, the data message for flowing into port 3 is 3 recipient of port To the data message for receiving, the data message for flowing out port 3 is after the message that port 2 receives is forwarded to port 3, from port 3 data messages for flowing out to port 4;In addition, in switch the flow direction of data message be it is unidirectional, the flow direction of data message be from The first port of switch flows to last port of switch successively.
In the present embodiment, tested switch adopts 6 ports, certainly, for the switch with n port, together Sample can adopt the test of the forwarding performance for swapping machine with the aforedescribed process, therefore, said method can be used for holding with n The switch of mouth, wherein n are integer.
The present invention realizes switch ports themselves message loopback by Serdes chip modules, reaches the shape of switch full load State, to carry out forwarding performance test, and only using network tester in a test port complete to switch forwarding property The test of energy, breaks away from the resource requirement of interface and connection medium, reduces cost, and reduces the complexity tested.
The technology contents and technical characteristic of the present invention have revealed that as above, but those of ordinary skill in the art still may base Make a variety of replacements and modification without departing substantially from spirit of the present invention in teachings of the present invention and announcement, therefore, the scope of the present invention The content that should be not limited to disclosed in embodiment, and various replacements and modification without departing substantially from the present invention should be included, and be this patent Shen Please claim covered.

Claims (10)

1. it is a kind of test switch forwarding performance network collocating method, it is characterised in that comprise the steps:
Step 1, network tester are only connected by netting twine with a port of switch using a test port;
Step 2, configures the Serdes chip modules of switch, makes the port of switch realize message loopback;
Step 3, configuration switch ports themselves forwarding rule, makes data message flow to switch successively from a port of switch Last port, and a port is flowed to by the data message of last port.
2. method according to claim 1, it is characterised in that the once datagram of each port in the switch The inflow and the outflow of a data message of text.
3. method according to claim 1, it is characterised in that a port of the switch need not realize message Loopback.
4. method according to claim 1, it is characterised in that for the switch with n port, wherein, n is whole Number.
5. method according to claim 1, it is characterised in that the flow of data message is unidirectional in the switch.
6. a kind of method of testing of test switch forwarding performance, adopts such as the net of the method configuration described in Claims 1 to 5 Network, it is characterised in that method of testing comprises the steps:
Step 1, network tester send datagram into a port of switch, and a port is straight by data message Switch through and be sent in second port of switch;
Step 2, second port of switch loop back to data message after the port, by data message forwarding to switch In 3rd port;
Step 3, the like, last port of switch loops back to data message after the port, the data message It is forwarded in a port of switch, and is flowed out in network tester by first port of switch.
7. method according to claim 6, it is characterised in that for the switch with n port, wherein, n is whole Number.
8. method according to claim 6, it is characterised in that the once datagram of each port in the switch The inflow and the outflow of a data message of text.
9. method according to claim 6, it is characterised in that a port of the switch need not realize message Loopback.
10. method according to claim 6, it is characterised in that the flow of data message is unidirectional in the switch.
CN201611269912.4A 2016-12-30 2016-12-30 Network configuration method and test method for testing forwarding performance of switch Pending CN106533846A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611269912.4A CN106533846A (en) 2016-12-30 2016-12-30 Network configuration method and test method for testing forwarding performance of switch

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611269912.4A CN106533846A (en) 2016-12-30 2016-12-30 Network configuration method and test method for testing forwarding performance of switch

Publications (1)

Publication Number Publication Date
CN106533846A true CN106533846A (en) 2017-03-22

Family

ID=58335948

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611269912.4A Pending CN106533846A (en) 2016-12-30 2016-12-30 Network configuration method and test method for testing forwarding performance of switch

Country Status (1)

Country Link
CN (1) CN106533846A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110191380A (en) * 2019-05-22 2019-08-30 苏州浪潮智能科技有限公司 A kind of serpentine flow test macro and method based on Linux
CN111200544A (en) * 2020-03-23 2020-05-26 北京信而泰科技股份有限公司 Network port flow testing method and device
CN112636999A (en) * 2020-11-26 2021-04-09 新华三技术有限公司成都分公司 Port detection method and network monitoring system
CN115426328A (en) * 2022-07-29 2022-12-02 云尖信息技术有限公司 Shunting switch and testing device, system and method of switch

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101594222A (en) * 2009-06-29 2009-12-02 中兴通讯股份有限公司 A kind of interface test method and device
CN101651569A (en) * 2009-09-11 2010-02-17 中兴通讯股份有限公司 Method and device for testing performance of Ethernet port
CN102684948A (en) * 2012-05-29 2012-09-19 合肥华云通信技术有限公司 Serpentine-flow-based network port testing method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101594222A (en) * 2009-06-29 2009-12-02 中兴通讯股份有限公司 A kind of interface test method and device
CN101651569A (en) * 2009-09-11 2010-02-17 中兴通讯股份有限公司 Method and device for testing performance of Ethernet port
CN102684948A (en) * 2012-05-29 2012-09-19 合肥华云通信技术有限公司 Serpentine-flow-based network port testing method

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110191380A (en) * 2019-05-22 2019-08-30 苏州浪潮智能科技有限公司 A kind of serpentine flow test macro and method based on Linux
CN111200544A (en) * 2020-03-23 2020-05-26 北京信而泰科技股份有限公司 Network port flow testing method and device
CN112636999A (en) * 2020-11-26 2021-04-09 新华三技术有限公司成都分公司 Port detection method and network monitoring system
CN115426328A (en) * 2022-07-29 2022-12-02 云尖信息技术有限公司 Shunting switch and testing device, system and method of switch
CN115426328B (en) * 2022-07-29 2023-08-22 云尖信息技术有限公司 Shunt switch, and test device, system and method of switch

Similar Documents

Publication Publication Date Title
CN106533846A (en) Network configuration method and test method for testing forwarding performance of switch
CN103746884B (en) A kind of method and system that flow rate test is carried out using interchanger
CN101651569B (en) Method and device for testing performance of Ethernet port
EP2854355B1 (en) Central alignment circuitry for high-speed serial receiver circuits
KR101664658B1 (en) Multiple ethernet ports and port types using a shared data path
CN102307118B (en) Back plate test method, apparatus thereof and system thereof
CN103475542A (en) Network equipment handling capacity performance testing system and method
CN103701710A (en) Data transmission method, core forwarding equipment and endpoint forwarding equipment
CN105553885B (en) A kind of FC interchanger priority test method
CN101247289A (en) Test method and device for forwarding performance of Ethernet switchboard high speed port
CN103152220A (en) Method for carrying out Full Mesh performance test by utilizing Ethernet switch
CN102984035A (en) Loopback test method and system of packet loss probability of network data
CN105141480A (en) Power over ethernet (PoE) switch test device, system and method
CN103530245A (en) SRIO interconnection exchanging device based on field programmable gate array (FPGA)
CN107547430A (en) A kind of file transmitting method and device
CN107453956B (en) Communication network system, shunt device and method for quickly accessing network
CN207588888U (en) A kind of test device and mainboard
CN110034978A (en) A kind of method and apparatus of network apparatus test performance
CN105323122B (en) A kind of throughput of network device test device and test method based on interchanger
CN103701660B (en) A kind of ethernet device attachment means and its test system and method for application
CN109327405A (en) Message order-preserving method and the network equipment
CN106302256B (en) A kind of ethernet switching device and data processing method
CN106506273B (en) Bandwidth measurement method, device and system
CN100571169C (en) A kind of parallel testing method for digital data network service
CN209267595U (en) A kind of instrument connection system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20170322

WD01 Invention patent application deemed withdrawn after publication