CN110191380A - A kind of serpentine flow test macro and method based on Linux - Google Patents

A kind of serpentine flow test macro and method based on Linux Download PDF

Info

Publication number
CN110191380A
CN110191380A CN201910427625.9A CN201910427625A CN110191380A CN 110191380 A CN110191380 A CN 110191380A CN 201910427625 A CN201910427625 A CN 201910427625A CN 110191380 A CN110191380 A CN 110191380A
Authority
CN
China
Prior art keywords
port
port6
port4
port1
port5
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
CN201910427625.9A
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.)
Suzhou Wave Intelligent Technology Co Ltd
Original Assignee
Suzhou Wave Intelligent 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 Suzhou Wave Intelligent Technology Co Ltd filed Critical Suzhou Wave Intelligent Technology Co Ltd
Priority to CN201910427625.9A priority Critical patent/CN110191380A/en
Publication of CN110191380A publication Critical patent/CN110191380A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4641Virtual LANs, VLANs, e.g. virtual private networks [VPN]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0823Errors, e.g. transmission errors
    • H04L43/0829Packet loss
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0876Network utilisation, e.g. volume of load or congestion level
    • H04L43/0894Packet rate
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q11/00Selecting arrangements for multiplex systems
    • H04Q11/0001Selecting arrangements for multiplex systems using optical switching
    • H04Q11/0062Network aspects
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q11/00Selecting arrangements for multiplex systems
    • H04Q11/0001Selecting arrangements for multiplex systems using optical switching
    • H04Q11/0062Network aspects
    • H04Q11/0071Provisions for the electrical-optical layer interface
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q11/00Selecting arrangements for multiplex systems
    • H04Q11/0001Selecting arrangements for multiplex systems using optical switching
    • H04Q11/0062Network aspects
    • H04Q2011/0079Operation or maintenance aspects
    • H04Q2011/0083Testing; Monitoring

Abstract

The present disclosure provides a kind of serpentine flow test macro and method based on Linux, snakelike linked circuits are established to QSFP interface on the NIC of interchanger, and will beat stream instrument access first QSFP interface, form serpentine flow test macro, pass through the configuration parameter of setting QSFP interface;The transmission direction for setting QSFP interface on the NIC of interchanger, establishes snakelike linked circuits;And four ports on each QSFP interface are named and establish vlan;Serpentine flow testing scheme can be realized by environment configurations and document configuration, improved testing efficiency, saved testing cost.

Description

A kind of serpentine flow test macro and method based on Linux
Technical field
The present invention relates to technical field of network test, more particularly to a kind of snakelike current test based on Linux System and method.
Background technique
The density of the development of the communication technology at any time, the network port of interchanger is higher and higher, when testing exchanger chip, needs Test signal transmission performance.Since NIC card there are 6 Port, each mouth coverage test is needed, usual way is that two mouths are matched It is set to a Vlan, then carries out three groups of tests with making stream instrument.
Current test method, test period greatly prolong, and bring very big challenge to introducing to the market in time for product.Separately Outside, due to need to occupy it is multiple make stream instrument, lead to the growth of testing cost;Artificial participate in is needed simultaneously, it is necessary to have special messenger multiple Beat the connection and monitoring of stream instrument, the probability for the error for keeping entire testing process relatively complicated, and increasing reduces test knot The reliability of opinion.
Summary of the invention
In view of the above problems, the purpose of the present invention is to provide a kind of serpentine flow test macro and method based on Linux, Serpentine flow testing scheme can be realized by environment configurations and document configuration, improved testing efficiency, saved testing cost.
The present invention to achieve the above object, is achieved through the following technical solutions: a kind of snakelike current test system based on Linux System, including interchanger are equipped with QSFP interface port1, QSFP interface port2, QSFP and connect with stream instrument, the NIC of the interchanger is beaten Mouthful port3, QSFP interface port4, QSFP interface port5, QSFP interface port6, the port3 respectively with port1 and port4 Link, port5 are linked with port4 and port6 respectively, and port6 is linked with port2, and port1 is linked with stream instrument is made.
Further, described port1, port3, port4, port5, port6 are 40G optical module, and port2 is for returning Test signal from ring false light module.
Further, 4 ports, Mei Geduan are equipped on described port1, port2, port3, port4, port5, port6 The transmission speed of mouth is 10G.
Further, the port4 and port2, port5 are all made of Mpo optical fiber cable with port6 and links, the port1 and Port3, port4 and port5, port6 and port2 are all made of 1V1 DAC cable and link, and the port1 passes through with stream instrument is made 1V4 DAC cable link.
In addition, the present invention also provides one kind to be based on the basis of the above-mentioned serpentine flow test macro based on Linux The serpentine flow test method of Linux, includes the following steps:
S1: the configuration parameter of the QSFP interface on the NIC of interchanger is set;
S2: the snakelike linked circuits of QSFP interface are established;
S3: four ports on each QSFP interface are named and establish vlan;
S4: stream instrument access QSFP interface port1 will be beaten, beats flow rate test by making stream instrument;
S5: waiting the testing time to arrive, and stream instrument packet drop is beaten in observation, and test is completed.
Further, before the step S3 further include: pass through existing vlan in del vlan all order clearing systems.
Further, the step S1 is specifically included:
#Port 1:4X10G
#Port 2:40G loopback QSFP.
#Port 3,port 4:paired cable,40G DAC
#Port 5,port 6:paired cable,40G DAC。
Further, the step S2 is specifically included:
#Port 1 forwarding to port 3;
#Port 3 cable to port 4;
#Port 4 forwarding to port 5;
#Port 5 cable to port 6;
#Port 6 forwarding to port 2;
#Port 2 loopback to port 6;
#Port 6 cable to port 5;
#Port 5 forwarding to port 4;
#Port 4 cable to port 3;
#Port 3 forwarding to port 1。
The prior art is compared, the beneficial effects of the invention are that: the present invention provides a kind of snakelike current test based on Linux System and method establishes snakelike linked circuits to QSFP interface on the NIC of interchanger, and will beat stream instrument access first QSFP and connect Mouthful, serpentine flow test macro is formed, by the configuration parameter that QSFP interface is arranged;Set QSFP interface on the NIC of interchanger Transmission direction establishes snakelike linked circuits;And four ports on each QSFP interface are named and establish vlan;Pass through Environment configurations and document configuration can realize serpentine flow testing scheme, improve testing efficiency, saved testing cost.
The present invention is only to need to make stream instrument using one in test, reduces testing cost;It is artificial to reduce needs simultaneously Participate in, without special messenger repeatedly carry out beat stream instrument connection and monitoring, the error for simplifying entire testing process, and reducing it is several Rate has improved the reliability of test result.
In addition, system is versatile the present invention is based on linux system, it is widely used;System environments needed for test is steady Fixed, test result is true and reliable.
It can be seen that compared with prior art, the present invention implementing with substantive distinguishing features outstanding and significant progress Beneficial effect be also obvious.
Detailed description of the invention
Attached drawing 1 is system construction drawing of the invention.
Attached drawing 2 is flow chart of the method for the present invention.
Specific embodiment
It explains with reference to the accompanying drawing to a specific embodiment of the invention.
A kind of serpentine flow test macro based on Linux as shown in Figure 1, including interchanger and play stream instrument, the exchange The NIC of machine is equipped with QSFP interface port1, QSFP interface port2, QSFP interface port3, QSFP interface port4, QSFP interface Port5, QSFP interface port6, the port3 are linked with port1 and port4 respectively, port5 respectively with port4 and port6 chain It connects, port6 is linked with port2, and port1 is linked with stream instrument is made.Port1, port3, port4, port5, port6 are 40G light Module, port2 be for returns test signal from ring false light module.The port1, port2, port3, port4, port5, 4 ports are equipped on port6, the transmission speed of each port is 10G.
Wherein, port4 and port2, port5 are all made of Mpo optical fiber cable with port6 and link, the port1 and port3, Port4 and port5, port6 are all made of 1V1 DAC cable with port2 and link, and the port1 passes through 1V4 DAC with stream instrument is made Cable link.
As shown in Fig. 2, the present invention also provides one kind on the basis of the above-mentioned serpentine flow test macro based on Linux Serpentine flow test method based on Linux, includes the following steps:
S1: the configuration parameter of the QSFP interface on the NIC of interchanger is set.
S2: the snakelike linked circuits of QSFP interface are established.
S3: pass through existing vlan in del vlan all order clearing systems.
S4: four ports on each QSFP interface are named and establish vlan.
S5: stream instrument access QSFP interface port1 will be beaten, beats flow rate test by making stream instrument.
S6: waiting the testing time to arrive, and stream instrument packet drop is beaten in observation, and test is completed.
The above method can complete snakelike current test by load and execution configuration file load pa.cfg, in specific script Hold as follows:
#Port 1:4X10G
#Port 2:40G loopback QSFP.
#Port 3,port 4:paired cable,40G DAC
#Port 5,port 6:paired cable,40G DAC
#
#Port 1 forwarding to port 3;
#Port 3 cable to port 4;
#Port 4 forwarding to port 5;
#Port 5 cable to port 6;
#Port 6 forwarding to port 2;
#Port 2 loopback to port 6;
#Port 6 cable to port 5;
#Port 5 forwarding to port 4;
#Port 4 cable to port 3;
#Port 3 forwarding to port 1.
reset switch
del vlan all
set port config 1,2,3,4 eth_mode 10GBase-SR
set port config 5,6,7,8 eth_mode 10GBase-SR
set port config 9,10,11,12 eth_mode 10GBase-SR
set port config 13,14,15,16 eth_mode 10GBase-SR
set port config 17,18,19,20 eth_mode 10GBase-SR
set port config 21,22,23,24 eth_mode 10GBase-SR
create vlan101,102,103,104,105,106,107,108,109,110,111,112,113,114, 115,116,117,118,119,120,121,122,123,124
set port config 1 pvid 101
set port config 2 pvid 102
set port config 3 pvid 103
set port config 4 pvid 104
set port config 5 pvid 105
set port config 6 pvid 106
set port config 7 pvid 107
set port config 8 pvid 108
set port config 9 pvid 109
set port config 10 pvid 110
set port config 11 pvid 111
set port config 12 pvid 112
set port config 13 pvid 113
set port config 14 pvid 114
set port config 15 pvid 115
set port config 16 pvid 116
set port config 17 pvid 117
set port config 18 pvid 118
set port config 19 pvid 119
set port config 20 pvid 120
set port config 21 pvid 121
set port config 22 pvid 122
set port config 23 pvid 123
set port config 24 pvid 124
add vlan port 101 1,9
add vlan port 102 2,10
add vlan port 103 3,11
add vlan port 104 4,12
add vlan port 109 1,9
add vlan port 110 2,10
add vlan port 111 3,11
add vlan port 112 4,12
add vlan port 113 13,17
add vlan port 114 14,18
add vlan port 115 15,19
add vlan port 116 16,20
add vlan port 117 13,17
add vlan port 118 14,18
add vlan port 119 15,19
add vlan port 120 16,20
add vlan port 121 5,21
add vlan port 122 6,22
add vlan port 123 7,23
add vlan port 124 8,24
add vlan port 105 5,21
add vlan port 106 6,22
add vlan port 107 7,23
add vlan port 108 8,24
set vlan spanning-tree 101 1,9 forwarding
set vlan spanning-tree 102 2,10 forwarding
set vlan spanning-tree 103 3,11 forwarding
set vlan spanning-tree 104 4,12 forwarding
set vlan spanning-tree 105 5,21 forwarding
set vlan spanning-tree 106 6,22 forwarding
set vlan spanning-tree 107 7,23 forwarding
set vlan spanning-tree 108 8,24 forwarding
set vlan spanning-tree 109 1,9 forwarding
set vlan spanning-tree 110 2,10 forwarding
set vlan spanning-tree 111 3,11 forwarding
set vlan spanning-tree 112 4,12 forwarding
set vlan spanning-tree 113 13,17 forwarding
set vlan spanning-tree 114 14,18 forwarding
set vlan spanning-tree 115 15,19 forwarding
set vlan spanning-tree 116 16,20 forwarding
set vlan spanning-tree 117 13,17 forwarding
set vlan spanning-tree 118 14,18 forwarding
set vlan spanning-tree 119 15,19 forwarding
set vlan spanning-tree 120 16,20 forwarding
set vlan spanning-tree 121 5,21 forwarding
set vlan spanning-tree 122 6,22 forwarding
set vlan spanning-tree 123 7,23 forwarding
set vlan spanning-tree 124 8,24 forwarding。
With reference to the drawings and specific embodiments, the invention will be further described.It should be understood that these embodiments are merely to illustrate The present invention rather than limit the scope of the invention.In addition, it should also be understood that, after reading the content taught by the present invention, this field Technical staff can make various changes or modifications the present invention, and such equivalent forms equally fall within range defined herein.

Claims (8)

1. a kind of serpentine flow test macro based on Linux, including interchanger and make stream instrument, which is characterized in that the interchanger NIC be equipped with QSFP interface port1, QSFP interface port2, QSFP interface port3, QSFP interface port4, QSFP interface Port5, QSFP interface port6, the port3 are linked with port1 and port4 respectively, port5 respectively with port4 and port6 chain It connects, port6 is linked with port2, and port1 is linked with stream instrument is made.
2. the serpentine flow test macro according to claim 1 based on Linux, which is characterized in that the port1, Port3, port4, port5, port6 are 40G optical module, port2 be for returns test signal from ring false light module.
3. the serpentine flow test macro according to claim 2 based on Linux, which is characterized in that the port1, 4 ports are equipped on port2, port3, port4, port5, port6, the transmission speed of each port is 10G.
4. the serpentine flow test macro according to claim 1 based on Linux, which is characterized in that the port4 with Port2, port5 are all made of Mpo optical fiber cable with port6 and link, the port1 and port3, port4 and port5, port6 with Port2 be all made of 1V1 DAC cable link, the port1 and beat stream instrument pass through 1V4 DAC cable link.
5. a kind of serpentine flow test method based on Linux, which comprises the steps of:
S1: the configuration parameter of the QSFP interface on the NIC of interchanger is set;
S2: the snakelike linked circuits of QSFP interface are established;
S3: four ports on each QSFP interface are named and establish vlan;
S4: stream instrument access QSFP interface port1 will be beaten, beats flow rate test by making stream instrument;
S5: waiting the testing time to arrive, and stream instrument packet drop is beaten in observation, and test is completed.
6. the serpentine flow test method according to claim 5 based on Linux, which is characterized in that before the step S3 Further include: pass through existing vlan in del vlan all order clearing systems.
7. the serpentine flow test method according to claim 5 based on Linux, which is characterized in that the step S1 is specific Include:
#Port1:4X10G
#Port2:40G loopback QSFP.
#Port3,port4:paired cable,40G DAC
#Port5,port6:paired cable,40G DAC。
8. the serpentine flow test method according to claim 5 based on Linux, which is characterized in that the step S2 is specific Include:
#Port1 forwarding to port3;
#Port3 cable to port4;
#Port4 forwarding to port5;
#Port5 cable to port6;
#Port6 forwarding to port2;
#Port2 loopback to port6;
#Port6 cable to port5;
#Port5 forwarding to port4;
#Port4 cable to port3;
#Port3 forwarding to port1。
CN201910427625.9A 2019-05-22 2019-05-22 A kind of serpentine flow test macro and method based on Linux Pending CN110191380A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910427625.9A CN110191380A (en) 2019-05-22 2019-05-22 A kind of serpentine flow test macro and method based on Linux

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910427625.9A CN110191380A (en) 2019-05-22 2019-05-22 A kind of serpentine flow test macro and method based on Linux

Publications (1)

Publication Number Publication Date
CN110191380A true CN110191380A (en) 2019-08-30

Family

ID=67717262

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910427625.9A Pending CN110191380A (en) 2019-05-22 2019-05-22 A kind of serpentine flow test macro and method based on Linux

Country Status (1)

Country Link
CN (1) CN110191380A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111835411A (en) * 2020-06-24 2020-10-27 苏州浪潮智能科技有限公司 Testing method applied to optical module of white box switch

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120097191A1 (en) * 2010-06-15 2012-04-26 Conagra Foods Food Ingredients Company, Inc. Transport scheduling for low microbial bulk products
CN102684948A (en) * 2012-05-29 2012-09-19 合肥华云通信技术有限公司 Serpentine-flow-based network port testing method
CN103036747A (en) * 2013-01-07 2013-04-10 深圳市新格林耐特通信技术有限公司 Test method for performance of high-density port network equipment
CN103078770A (en) * 2013-01-22 2013-05-01 浪潮电子信息产业股份有限公司 Method for testing stability of switch
CN104702458A (en) * 2013-12-09 2015-06-10 中国联合网络通信集团有限公司 Inspection method, device and system for serpentine series connection of data forwarding equipment
CN105429816A (en) * 2015-10-28 2016-03-23 曙光信息产业(北京)有限公司 Network interface card test system
CN106533846A (en) * 2016-12-30 2017-03-22 盛科网络(苏州)有限公司 Network configuration method and test method for testing forwarding performance of switch
CN107547304A (en) * 2017-07-13 2018-01-05 紫光华山信息技术有限公司 Network card testing method, device and machinable medium
CN108512721A (en) * 2018-03-05 2018-09-07 山东超越数控电子股份有限公司 A kind of three layers of stability test method of multi-exchange

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120097191A1 (en) * 2010-06-15 2012-04-26 Conagra Foods Food Ingredients Company, Inc. Transport scheduling for low microbial bulk products
CN102684948A (en) * 2012-05-29 2012-09-19 合肥华云通信技术有限公司 Serpentine-flow-based network port testing method
CN103036747A (en) * 2013-01-07 2013-04-10 深圳市新格林耐特通信技术有限公司 Test method for performance of high-density port network equipment
CN103078770A (en) * 2013-01-22 2013-05-01 浪潮电子信息产业股份有限公司 Method for testing stability of switch
CN104702458A (en) * 2013-12-09 2015-06-10 中国联合网络通信集团有限公司 Inspection method, device and system for serpentine series connection of data forwarding equipment
CN105429816A (en) * 2015-10-28 2016-03-23 曙光信息产业(北京)有限公司 Network interface card test system
CN106533846A (en) * 2016-12-30 2017-03-22 盛科网络(苏州)有限公司 Network configuration method and test method for testing forwarding performance of switch
CN107547304A (en) * 2017-07-13 2018-01-05 紫光华山信息技术有限公司 Network card testing method, device and machinable medium
CN108512721A (en) * 2018-03-05 2018-09-07 山东超越数控电子股份有限公司 A kind of three layers of stability test method of multi-exchange

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111835411A (en) * 2020-06-24 2020-10-27 苏州浪潮智能科技有限公司 Testing method applied to optical module of white box switch
CN111835411B (en) * 2020-06-24 2021-07-20 苏州浪潮智能科技有限公司 Testing method applied to optical module of white box switch

Similar Documents

Publication Publication Date Title
US10868774B2 (en) Line card chassis, multi-chassis cluster router, routing selecting, and packet processing
CN104767657B (en) The registration of light cat and test system and method
CN101656637B (en) Virtual trunk measuring device and method for network protocol
CN107508640B (en) Double-ring redundant self-healing optical fiber network construction method based on optical fiber channel technology
CN106961445A (en) Message parsing method and its device based on FPGA hardware parallel pipeline
CN102684948A (en) Serpentine-flow-based network port testing method
CN111092782B (en) Tested communication equipment, communication equipment port data forwarding test system and method
CN103532785B (en) Full load test method for Ethernet switch
CN101247289A (en) Test method and device for forwarding performance of Ethernet switchboard high speed port
CN102413018A (en) FPGA (field programmable gate array) based software-hardware coordinated network test system and method
CN110191380A (en) A kind of serpentine flow test macro and method based on Linux
CN103107924A (en) Testing method for performance of network device with high-rate port by utilizing low-rate port
CN109633414B (en) Backboard testing device and method based on ATCA (advanced telecom computing architecture)
US20050213971A1 (en) Optical switch and network system including the same
CN107395454B (en) Simplified test verification system suitable for laser microwave hybrid link exchange
CN111770000B (en) Network port rate testing method and system
CN107171846A (en) A kind of time delay can test cross change planes test system and method for testing
CN111314242B (en) Multi-channel supporting packet cache scheduling simulation verification method and system
CN208723623U (en) A kind of photovoltaic power station monitoring system
CN104410544B (en) Ethernet Circle method of testing and device
CN105871653B (en) The fast testing system and method for 4 SFP+ high speed cable of QSFP+to
JP5475852B1 (en) Optical packet transfer method and transfer device in optical packet switch network
CN112187569A (en) Multicast VPN (virtual private network) testing system and method in NG (NG) mode of electric power
CN108667548B (en) A kind of automated testing method and system based on ASON signaling network
CN204795103U (en) But suspension type router

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

Application publication date: 20190830