CN106656667A - Switch forwarding performance test methods and system, and control apparatus - Google Patents

Switch forwarding performance test methods and system, and control apparatus Download PDF

Info

Publication number
CN106656667A
CN106656667A CN201611152762.9A CN201611152762A CN106656667A CN 106656667 A CN106656667 A CN 106656667A CN 201611152762 A CN201611152762 A CN 201611152762A CN 106656667 A CN106656667 A CN 106656667A
Authority
CN
China
Prior art keywords
port
test
data
auxiliary
vlan
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201611152762.9A
Other languages
Chinese (zh)
Other versions
CN106656667B (en
Inventor
胡明明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Maipu Communication Technology Co Ltd
Original Assignee
Maipu Communication 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 Maipu Communication Technology Co Ltd filed Critical Maipu Communication Technology Co Ltd
Priority to CN201611152762.9A priority Critical patent/CN106656667B/en
Publication of CN106656667A publication Critical patent/CN106656667A/en
Application granted granted Critical
Publication of CN106656667B publication Critical patent/CN106656667B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements

Abstract

The present invention provides a switch forwarding performance test method and system, and a control apparatus, relating to the field of network communications. The method comprises the steps that the control apparatus controls a test instrument to send test data to a tested device; the tested device sends the test data to an auxiliary test device by using all test ports; the auxiliary test device returns the received test data to the tested device, and sends the received test data to the test instrument; the tested device receives the test data returned from the auxiliary test device, and sends the test data again to the auxiliary test device till each auxiliary test port of the auxiliary test device receives the test data from the tested device; the test instrument receives the test data sent from the auxiliary test device; and the control apparatus calculates the forwarding performance of the tested device according to the test data sent from the test instrument and the test data received by the test instrument. One test instrument is used to receive and send data, so as to test the forwarding performance of the switch, so that the method helps save resources.

Description

The method of testing of switch forwarding performance, system and control device
Technical field
The present invention relates to network communication field, in particular to a kind of method of testing, the system of switch forwarding performance And control device.
Background technology
Developing rapidly and going from strength to strength with Internet technology, it is desirable to possess more high bandwidth, more powerful turn The network equipment of the ability of sending out.So, the forwarding performance of the network equipment becomes an important indicator of people's weighing device performance, And L 2 broadcast forwarding performance is used as one kind of device forwards ability, it is desirable to have one kind is more efficient and easily means are surveyed Examination.
The L 2 broadcast forwarding performance test of equipment is related to the broadcast replication ability of each port on equipment.Existing skill In art, when test L 2 broadcast forwarding performance, needing for each port on equipment to connect a tester port is carried out The transmitting-receiving of flow, and due to tester resource price costliness, so carry out this test job to need to expend substantial amounts of resource, it is right Difficulty is caused in the enforcement of test.
The content of the invention
In view of this, a kind of method of testing of switch forwarding performance, system and control dress are embodiments provided Put, to solve the above problems.
To achieve these goals, the technical solution used in the present invention is as follows:
A kind of method of testing of switch forwarding performance, is applied to the control dress of the test system of switch forwarding performance Put, the system also includes equipment under test, auxiliary measurement equipment and tester, the equipment under test includes multiple test ports, institute Auxiliary measurement equipment is stated including multiple auxiliary survey ports, the plurality of test port of the equipment under test with described in the auxiliary measurement equipment Multiple auxiliary survey ports connect one to one, and the method includes:The control device configures the test lead of the equipment under test The described auxiliary survey port of mouth and the auxiliary measurement equipment so that the survey that multiple test ports of the equipment under test are issued every time Examination data only have the data of a test port and are received by corresponding auxiliary survey port in the auxiliary measurement equipment, and every time The test port received corresponding to the auxiliary survey port of the test data is different.
A kind of method of testing of switch forwarding performance, is applied to the test system of switch forwarding performance, the system Including equipment under test, auxiliary measurement equipment, tester and control device, the equipment under test includes data-in port and multiple Test port, the auxiliary measurement equipment includes data-out port and multiple auxiliary survey ports, multiple tests of the equipment under test Port connects one to one with the multiple auxiliary survey port of the auxiliary measurement equipment, and the control device is pre-configured with the equipment under test The test port and the auxiliary measurement equipment described auxiliary survey port so that the test that the equipment under test is issued every time Data only can be received by an auxiliary survey port, and receive the auxiliary survey port difference of the test data every time, and methods described includes: The control device controls the tester and sends test data to the data-in port of the equipment under test;The quilt The data-in port of measurement equipment receives the test data, and the test data is sent out by all of test port Give the auxiliary measurement equipment;One auxiliary survey port of the auxiliary measurement equipment receives the test data, the test that will be received Data return to the equipment under test by the auxiliary survey port of another test data for not receiving forwarding, and will The test data for receiving is sent to the tester by the data-out port, and the auxiliary measurement equipment passes through every time one Individual different auxiliary survey port receives the test data;The equipment under test receives the test number that the auxiliary measurement equipment is returned According to, and the test data is sent out again by other test ports in addition to the last port for receiving the test data The auxiliary measurement equipment is delivered to, until each auxiliary survey port of the auxiliary measurement equipment received the survey from the equipment under test Examination data;The tester receives the test data that the auxiliary measurement equipment sends;The control device is sent out according to the tester The test data that the test data sent and the tester are received calculates the transfer capability of the equipment under test.
A kind of test system of switch forwarding performance, the system include equipment under test, auxiliary measurement equipment, tester and Control device, the equipment under test includes data-in port and multiple test ports, and the auxiliary measurement equipment includes that data are defeated Exit port and multiple auxiliary survey ports, the multiple auxiliary survey port of multiple test ports of the equipment under test and the auxiliary measurement equipment Connect one to one, the control device is used to configure the test port and the auxiliary measurement equipment of the equipment under test The auxiliary survey port so that the test data that the equipment under test is issued every time only can be received by an auxiliary survey port, and often The secondary auxiliary survey port for receiving the test data is different, wherein, the control device is additionally operable to control the tester to described The data-in port of equipment under test sends test data;The equipment under test is used to be connect by the data-in port The test data is received, and the test data is sent to into the auxiliary measurement equipment by all of test port;The auxiliary survey Equipment is used to receive the test data by an auxiliary survey port, and the test data for receiving is not connect by another The auxiliary survey port for receiving the test data of forwarding returns to the equipment under test, and the test data for receiving is led to Cross the data-out port to send to the tester, the auxiliary measurement equipment is received every time by a different auxiliary survey port The test data;The equipment under test is additionally operable to receive the test data that the auxiliary measurement equipment is returned, and by the survey Examination data are sent to the auxiliary survey again by other test ports in addition to the last port for receiving the test data Equipment, until each auxiliary survey port of the auxiliary measurement equipment received the test data from the equipment under test;It is described Tester is used to receive the test data that the auxiliary measurement equipment sends;The control device is used for what is sent according to the tester The test data that test data and the tester are received calculates the transfer capability of the equipment under test.
A kind of control device, is applied to the test system of switch forwarding performance, and the system includes equipment under test, auxiliary survey Equipment, tester and control device, the equipment under test includes data-in port and multiple test ports, the auxiliary survey Equipment includes data-out port and multiple auxiliary survey ports, the plurality of test port of the equipment under test and the auxiliary survey The plurality of auxiliary survey port of equipment connects one to one, and the control device is used to configure the test of the equipment under test Port and the described auxiliary survey port of the auxiliary measurement equipment so that what multiple test ports of the equipment under test were issued every time Test data only has the data of a test port and is received by corresponding auxiliary survey port in the auxiliary measurement equipment, and often Test port corresponding to the secondary auxiliary survey port for receiving the test data is different.
The method of testing of switch forwarding performance provided in an embodiment of the present invention, system and control device, by controlling dress The configuration to equipment under test and auxiliary measurement equipment is put, the test data for making tester send to equipment under test every time sets tested Standby repeatedly to forward between auxiliary measurement equipment, test data is sent to auxiliary survey and is set by equipment under test by different test ports every time Standby, auxiliary measurement equipment receives the test data and sends to tester by a different auxiliary survey port every time.Control device The test data that can be sent according to tester and the test data of reception calculate the transfer capability of equipment under test.The switch The method of testing of forwarding performance, system and control device, it is only necessary to be just capable of achieving to exchanging by a tester transceiving data The test of the forwarding performance of machine, economizes on resources.
To enable the above objects, features and advantages of the present invention to become apparent, preferred embodiment cited below particularly, and coordinate Appended accompanying drawing, is described in detail below.
Description of the drawings
To make purpose, technical scheme and the advantage of the embodiment of the present invention clearer, below in conjunction with the embodiment of the present invention In accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is The a part of embodiment of the present invention, rather than the embodiment of whole.Based on the embodiment in the present invention, those of ordinary skill in the art The every other embodiment obtained under the premise of creative work is not made, belongs to the scope of protection of the invention.
Fig. 1 shows the structural representation of the test system of switch forwarding performance provided in an embodiment of the present invention;
Fig. 2 shows a kind of numbering of equipment under test provided in an embodiment of the present invention and auxiliary measurement equipment;
Fig. 3 shows a kind of configuration mode of equipment under test provided in an embodiment of the present invention and auxiliary measurement equipment;
Fig. 4 shows a kind of flow chart of the method for testing of the switch forwarding performance that present pre-ferred embodiments are provided;
Fig. 5 shows the specific test number of one kind of the method for testing of switch forwarding performance provided in an embodiment of the present invention According to repeating process figure;
Fig. 6 shows another kind of flow chart of the method for testing of switch forwarding performance provided in an embodiment of the present invention.
Icon:110- equipment under tests;The auxiliary measurement equipments of 120-;130- testers;140- control devices;111- data input pins Mouthful;112- test ports;121- data-out ports;The auxiliary survey ports of 122-;131- first ports;132- second ports;133- 3rd port.
Specific embodiment
Below in conjunction with accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Ground description, it is clear that described embodiment is only a part of embodiment of the invention, rather than the embodiment of whole.Generally exist Herein the component of the embodiment of the present invention described and illustrated in accompanying drawing can be arranged and designed with a variety of configurations.Cause This, below the detailed description of the embodiments of the invention to providing in the accompanying drawings is not intended to limit claimed invention Scope, but it is merely representative of the selected embodiment of the present invention.Based on embodiments of the invention, those skilled in the art are not doing The every other embodiment obtained on the premise of going out creative work, belongs to the scope of protection of the invention.
It should be noted that:Similar label and letter represents similar terms in following accompanying drawing, therefore, once a certain Xiang Yi It is defined in individual accompanying drawing, then it need not be further defined and is explained in subsequent accompanying drawing.Meanwhile, the present invention's In description, term " first ", " second " etc. are only used for distinguishing description, and it is not intended that indicating or implying relative importance.
First embodiment
A kind of method of testing of switch forwarding performance is present embodiments provided, the test of switch forwarding performance is applied to System.Fig. 1 is referred to, the system includes equipment under test 110, auxiliary measurement equipment 120, tester 130 and control device 140.Its In, equipment under test and auxiliary measurement equipment can be switches.
As shown in figure 1, the equipment under test 110 includes data-in port 111 and multiple test ports 112, it is described Auxiliary measurement equipment 120 includes data-out port 121 and multiple auxiliary survey ports 122, multiple test leads of the equipment under test 110 Mouth 111 connects one to one with the multiple auxiliary survey port 122 of the auxiliary measurement equipment 120.Tester 130 includes three ports, point Not Wei first port 131, the port 133 of second port 132 and the 3rd, refer to Fig. 1, first port 131 is connected to tested setting Standby 110 data-in port 111, second port 132 is connected to the data-out port 121 of auxiliary measurement equipment 120, the 3rd port 133 are connected to control device 140.In Fig. 1, control device 140 and equipment under test 110, auxiliary measurement equipment 120 and tester 130 Between dotted line represent control device 140 equipment under test, auxiliary measurement equipment 120 and tester 130 can be controlled and Configuration.
Before test, the control device 140 is pre-configured with the test port and the institute of the equipment under test 110 State the described auxiliary survey port of auxiliary measurement equipment 120 so that the test data that the equipment under test 110 is issued every time only can be by one Auxiliary survey port receives, and receives the auxiliary survey port difference of the test data every time, due to multiple test leads of equipment under test 110 Mouth connects one to one with the multiple auxiliary survey port of auxiliary measurement equipment 120, so auxiliary measurement equipment 120 receives every time a test lead The test data that mouth sends.
Specifically, control device 140 is pre-configured with the test port of equipment under test 110 and includes, by the equipment under test 110 The plurality of test port in each test port configurations be multiple VLAN (the Virtual Local Area for specifying of correspondence Network, VLAN), described each test port can receive and dispatch the data of the plurality of VLAN for specifying.And configure institute State each test port only can carry out data processing to meet the auxiliary survey port to the data from one of target VLAN Data receiver rule, corresponding target VLAN of described each test port is different so that send out from the plurality of test port every time The test data for delivering to the plurality of auxiliary survey port only has the data of a test port by the auxiliary measurement equipment 120 Corresponding auxiliary survey port is receiving.
Meanwhile, the data-in port 111 of the equipment under test 110 is configured to correspondence one by control device 140 Target VLAN, it is possible to understand that, corresponding target VLAN of data-in port 111 is that one of them in multiple test ports is right Target VLAN answered.
Specifically, control device 140 can be to being pre-configured with for multiple test ports of equipment under test 110, will be described Each test port of equipment under test 110 is each configured to correspond to a target in the plurality of VLAN for specifying in the first pattern VLAN, corresponds in a second mode other VLAN for specifying in the plurality of VLAN for specifying.When the institute of the equipment under test 110 When stating test port with first mode correspondence target VLAN, the test port will come from corresponding target VLAN Data processing be meet it is described it is auxiliary survey port data receive rule data so that described each test port only can to from The data of corresponding target VLAN carry out data processing and receive rule to meet the auxiliary survey port data.
Meanwhile, control device 140 is configured to the data-in port 111 of the equipment under test 110 with the first mould Formula correspondence target VLAN.
In the present embodiment, first mode can be Hybrid untag patterns, and second mode can be Hybrid tag Pattern.Below using Hybrid untag patterns as first mode, as a example by Hybrid tag patterns are as second mode, to tested Being pre-configured with for equipment 110 is described in detail.
Control device 140 can be by being pre-configured with the test port and data-in port 111 of equipment under test 110 VLAN attributes are configuring the corresponding relation of each port of equipment under test 110 and VLAN.In the present embodiment, equipment under test 110 is made All of the port VLAN is added with Hybrid patterns, it is possible to understand that, it is port and phase that the port of equipment under test 110 adds VLAN The VLAN correspondences answered, for example, certain test port adds VLAN 2, and the as test port is corresponding for 2 VLAN with No. ID.
In the present embodiment, for make pattern of each port of equipment under test 110 to need add one or more specify VLAN, port number of the control device 140 according to the needs configuration of VLAN initial values VLAN_init and equipment under test 110 Port_num carries out calculating configuration to the VLAN attributes of multiple ports of equipment under test 110.The test lead of configuration equipment under test 110 The number of mouthful corresponding multiple VLAN for specifying is Port_num, specific VLAN ID can be from VLAN_init to VLAN_init+Port_num-1.In the present embodiment, the port of the needs configuration of the equipment under test 110 refers to equipment under test 110 Test port and equipment under test 110 data-in port 111.The VLAN initial values and the number of tested port Port_num is input into by user according to practical situation.
Multiple test ports are divided into into N groups and M groups, and the port of N groups and M groups is numbered respectively.Concrete numbering Mode can be, for the test port of N groups, number consecutively is N, N+1, N+2, by that analogy.For the test port of M groups, Number consecutively is M, M+1, M+2, by that analogy, as shown in Figure 2.
First, the untag values of each test port of N groups are configured, the untag values are a VLAN ID, represent phase The test port answered adds No. ID VLAN for specifying as untag values with Hybrid Untag patterns, and this No. ID is untag values The VLAN for specifying is corresponding target VLAN of corresponding test port.For each test port, its untag value only It is individual, and the untag values between each test port are different.
In the present embodiment, the corresponding untag values of each test port can be determined by the numbering of test port, is had Body, the untag values of configuration testing port are VLAN_init+ (Portid-N), and wherein Portid is the numbering of test port. For example, the port sum of equipment under test 110 is 2 for 6, VLAN initial values VLAN_init, for the test port that numbering is N+2, Its untag value is 2+N+2-N=4, that is, represent, the numbering of N groups is that the test port of N+2 is added with Hybrid Untag patterns VLAN 4, as shown in Figure 3.
Control device 140 is reconfigured at the tag values of each test port of the N groups of equipment under test 110, represent test port with Hybrid Tag patterns add No. ID VLAN for specifying for tag values.When port adds one with Hybrid Untag patterns After VLAN, it is impossible to add identical VLAN with Hybrid Tag patterns again.In the present embodiment, each test lead of N groups is configured The tag values of mouth have Port_num-1, in the respectively all of VLAN for specifying ID, weed out No. ID for after untag values Each value, represents each test port of N groups, and with untag patterns target VLAN is added, and adds what other were specified with tag patterns VLAN.Still with the port of equipment under test 110 sum be 6, VLAN initial values VLAN_init for as a example by 2, then it is multiple to specify No. ID of VLAN is respectively from 2 to 7, for the test port that numbering is N+2, because its untag value is 4, then and the test port With tag patterns add VLAN as No. ID for 2 to 3 and 5 to 75 VLAN for specifying.
Control device 140 is pre-configured with the untag values and tag values of the test port of the M groups of equipment under test 110.For M The configuration of the test port of group is similar with the test port configurations of N groups, the untag values of each test port of M groups and the survey of N groups The untag values of examination port are different, and the untag values between each test port of M groups are different.In the present embodiment, for M groups Each test port, still through its numbering determine untag values, can be VLAN_init+ (Portid-M)+(Port_ Num/2), the Portid represents the numbering of test port.Still the port sum with equipment under test 110 is as 6, VLAN initial values VLAN_init be 2 as a example by, for numbering be M+1 test port, its untag value be 2+ (M+1-M)+6/2=6, represent number Test port for M+1 adds VLAN 6 with Hybrid untag patterns, as shown in Figure 3.
Each test port of M groups, tag values are in all of VLAN for specifying ID, to weed out No. ID for untag values Each value afterwards.For example, when the port sum of equipment under test 110 is 2 for 6, VLAN initial values VLAN_init, numbering is M+1's The untag values of test port are 6, then its tag value is 2 to 5 and 7, represent the test port with the addition of Hybrid tag patterns VLAN be No. ID for 2 to 5 and 75 VLANs specified.As shown in Figure 3.
Also, control device 140 is pre-configured with the data-in port 111 of equipment under test 110 and adds one with untag patterns The individual VLAN for specifying, i.e. configuration data input port 111 a untag values, the untag of the data-in port 111 of configuration Untag value of the value equal to some test port in multiple test ports of equipment under test 110.In the present embodiment, configure The untag values of data-in port 111 are VLAN_init, equal to the untag values of the test port that numbering is N.
In addition, the described auxiliary survey port that control device 140 is pre-configured with the auxiliary measurement equipment 120 includes:The control dress The data receiver rule of each auxiliary survey port of 140 configurations is put, each auxiliary survey port only receives expiring for corresponding tested port transmission The test data of sufficient data receiver rule so that the test number that multiple test ports of the equipment under test 110 are issued every time When the test data of only one test port transmission meets data receiver rule according in, a corresponding auxiliary survey is only had Port receives.
The control device 140 configures two auxiliary survey ports of VLAN correspondences that each is specified in multiple assigned vlans.At this In embodiment, multiple VLAN for specifying of the configuration do not include corresponding target VLAN of the data-in port 111, i.e., by In the corresponding multiple VLAN for specifying of each test port of measurement equipment 110, except corresponding target VLAN of data-in port 111 Other each VLAN in addition, correspond to respectively two auxiliary survey ports, and the corresponding two auxiliary survey ports of the VLAN for specifying each can Data are forwarded with the VLAN specified by this.Specify different from other VLAN pair of the corresponding auxiliary survey ports of VLAN that each is specified The auxiliary survey port answered, in the present embodiment, should be different from referring to not exclusively equivalent, i.e., the VLAN that each is specified it is corresponding two it is auxiliary Survey corresponding with the VLAN that other the are specified two auxiliary survey ports in port and can have and intersect, but not exclusively as.
Control device 140 is also pre-configured with corresponding forwarding target VLAN in each auxiliary survey port of the auxiliary measurement equipment 120. The plurality of VLAN for specifying includes that described each auxiliary survey port is corresponding and forwards target VLAN, and each auxiliary survey port is corresponding Forwarding target VLAN is different from corresponding target VLAN of the data-in port 111, so that described each auxiliary survey port will The test data for meeting data receiver rule for receiving is set as forwarding the forwarding of target VLAN by the way that the auxiliary survey port is corresponding Data.
Specifically, control device 140 is by configuring the PVID attribute configurations of each auxiliary survey port of the auxiliary measurement equipment 120 Each auxiliary survey port of the auxiliary measurement equipment 120 is corresponding to forward target VLAN, the PVID values of each auxiliary survey port to be equal to The ID values of corresponding forwarding target VLAN in described each auxiliary survey port.
Likewise, control device 140 can be by configuring auxiliary survey port and the data-out port of auxiliary measurement equipment 120 121 VLAN (VLAN) attribute is configuring the corresponding relation of each port of auxiliary measurement equipment 120 and VLAN.
When configuring auxiliary measurement equipment 120, the port number Port_ of VLAN initial values VLAN_init and equipment under test 110 As when configuring equipment under test 110, multiple VLAN for specifying are No. ID from VLAN_init to VLAN_init+Port_ to num The Port_num VLAN of num-1.For each auxiliary survey port of auxiliary measurement equipment 120, its numbering is tested with corresponding connection As the numbering of the test port of equipment 110.That is, still the multiple auxiliary survey port of auxiliary measurement equipment 120 is divided into into N groups and M groups, N The numbering of auxiliary survey port of group is respectively N, N+1, N+2, and by that analogy, the auxiliary survey port number consecutively of M groups is M, M+1, M+2, By that analogy.The auxiliary survey port of correspondence connection is consistent with the numbering of tested port.
The PVID values of each auxiliary survey port are configured first.The PVID values of each auxiliary survey port are different, and each auxiliary survey port PVID values different from equipment under test 110 data-in port 111 untag values.In the present embodiment, can be according to every The numbering of individual auxiliary survey port determines its PVID value, for the auxiliary survey port of N groups, its PVID value be VLAN_init+ (Portid-N)+ 1, wherein Portid refers to port numbering.For example, when VLAN_init is 6 for 2, Port_num, then N group # is the auxiliary survey end of N+2 The PVID values of mouth are 2+ (N+2-N)+1=5, that is, represent, N group # is 5 for the PVID values of the auxiliary survey port of N+2, such as Fig. 3 institutes Show.
For the auxiliary survey port of M groups, its PVID value is VLAN_init+ (Portid-M)+(Port_num/2)+1.For example, when It is 6 that VLAN_init is 2, Port_num, then M group # is 2+ (M+1-M)+6/2+1=for the PVID values of the auxiliary survey port of M+1 7, as shown in Figure 3.
Control device 140 is also pre-configured with the tag values of the auxiliary survey port of auxiliary measurement equipment 120.Each auxiliary survey port has two Individual different tag values, two tag values of each auxiliary survey port are equal to two in No. ID of all of VLAN for specifying, and represent Auxiliary survey port adds No. ID two VLAN for specifying as corresponding two tag values with Hybrid Tag patterns.Also, each is auxiliary The one of tag values for surveying port are equal to the PVID values of the auxiliary survey port.In the present embodiment, the tag of the auxiliary survey port of configuration In value, the value equal with the untag values of the data-in port 111 of equipment under test 110 is not included, then, except No. ID equal to number According to other VLAN for specifying beyond the untag values of input port 111, two auxiliary survey ports of VLAN correspondences that each is specified.
In the present embodiment, two tag values of each auxiliary survey port of the N groups of auxiliary measurement equipment 120 are configured, one is equal to phase The PVID values of the auxiliary survey port answered, another is equal to VLAN_init+ (Portid-N)+(Port_num/2).Configure auxiliary measurement equipment Two tag values of each auxiliary survey port of 120 M groups, a PVID value for being equal to corresponding auxiliary survey port, another is equal to VLAN_init+(Portid-M)+1。
For example, when VLAN_init is 6 for 2, Port_num, then the tag values of the auxiliary survey port that numbering is N+2 are calculated, wherein One is equal to PVID values 5, and another is 2+N+2-N+6/2=7, that is, represent, the numbering of N groups is the port of N+2 with Hybrid Tag patterns add VLAN 5,7.For the tag values of the auxiliary survey port that numbering is M+1, one of them is equal to the auxiliary survey port PVID values 7, another is equal to 2+ (M+1-M)+1=4, that is, the numbering for representing M groups is that the port of M+1 is added with Hybrid Tag patterns Enter VLAN 7,4, as shown in Figure 3.
For the data-out port 121 of auxiliary measurement equipment 120, control device 140 is pre-configured with the auxiliary measurement equipment 120 The plurality of VLAN for specifying of the correspondence of data-out port 121.In the present embodiment, be pre-configured with data-out port 121 with What Hybrid Tag patterns addition No. ID Port_num from VLAN_init to VLAN_init+Port_num-1 was specified VLAN。
In addition, control device 140 is configured to the data receiver rule of the auxiliary survey port of auxiliary measurement equipment 120, the data It is an acl rule to receive regular, and the data receiver rule of all auxiliary survey port of the configuration of control device 140 is reception untag Data, abandon tag data so that only one in the test data that multiple test ports of the equipment under test are issued every time When the test data that test port sends is untag data, only have and transmission untag in the multiple auxiliary survey port of auxiliary measurement equipment The auxiliary survey port of the test port correspondence connection of data receives the untag data.
In the present embodiment, all of the port of auxiliary measurement equipment 120 with Hybrid Tag patterns add VLAN, do not have with Hybrid Untag patterns add any VLAN.
After the completion of control device 140 configures equipment under test 110 and auxiliary measurement equipment 120, can start to control tester 130 send test data to equipment under test 110 is tested.Fig. 4 is referred to, following steps are by matching somebody with somebody for providing in the present embodiment Put the concrete test process of equipment under test 110 is described in detail under mode.
Step S110:Control device 140 controls the data-in port of the tester 130 to the equipment under test 110 111 send test data.
In the present embodiment, the test data that tester 130 is sent to the input port of equipment under test 110 is made to be band VLAN The data of tag, the VLAN ID values in its VLAN tag are equal to the untag values of the data-in port 111 of equipment under test 110. In the present embodiment, the VLAN ID values in the VLAN tag of the test data that tester 130 sends are VLAN_init.Also, control Tester processed 130 to the transmission rate that equipment under test 110 sends test data is Speed_send, and the Speed_send is one Variable value, its initial value is equal to 1/ (Port_num-1) times of the port bandwidth Bandwidth of equipment under test 110, and unit is The initial value of bps, the Speed_send be equal to tester 130 to equipment under test 110 send test data transmission rate most Big value Speed_send_max.For example, when VLAN_init is 8 for 2, Port_num, the port bandwidth of equipment under test 110 is During 1000Mbps, then the VLAN tag of the test data that tester 130 sends to equipment under test 110 be 2, transmission rate it is initial Value size is 1000Mbps*1/ (8-1).
In addition, in the present embodiment, the byte length Packet_length of the test data that tester 130 sends by with Family sets according to practical situation, and 65 bytes, 128 bytes, 512 bytes, 1024 bytes, 1280 bytes, 1518 bytes etc. are can The byte length of choosing, naturally it is also possible to be other.
Step S120:The data-in port 111 of the equipment under test 110 receives the test data, and by institute State test data and the auxiliary measurement equipment 120 is sent to by all of test port.
Because all test ports of equipment under test 110 add the virtual local area specified that No. ID is VLAN_init Net, so data-in port 111 is received after the test data that VLAN tag are VLAN_init, by the test data flooding To all of test port.Again due to equipment under test 110 all test ports and auxiliary measurement equipment 120 a pair of auxiliary survey port 1 Should connect, each auxiliary survey port can be by transmission test data.
But, in the test port of equipment under test 110, the untag for only numbering the test port for being N is VLAN_ Init, represent test port that the numbering is N with Hybrid untag patterns add No. ID as VLAN_init specify it is virtual LAN, other test ports are No. ID virtual local areas specified as VLAN_init added with Hybrid tag patterns Net, then the numbering of the only N groups of equipment under test 110 be N test port send test data be untag data, other survey What examination port sent is tag data.Then, due to the data receiver rule of auxiliary measurement equipment 120, only equipment under test 110 Numbering is that the test data that the test port of N sends is received by the auxiliary survey port that the numbering of auxiliary measurement equipment 120 is N, auxiliary measurement equipment The test data that 120 other auxiliary survey ports receive can be dropped.
Step S130:One auxiliary survey port of the auxiliary measurement equipment 120 receives the test data, the survey that will be received Examination data return to the equipment under test 110 by the auxiliary survey port of another test data for not receiving forwarding, And the test data for receiving is sent to the tester 130 by the data-out port 121, the auxiliary survey sets Standby 120 receive the test data by a different auxiliary survey port every time.
The auxiliary survey port of auxiliary measurement equipment 120 is received after untag data, and the untag data are stamped into the auxiliary survey port PVID is simultaneously forwarded, it is possible to understand that, now, stamp auxiliary survey port PVID test data be tag data, its tag value It is equal to the PVID values of corresponding auxiliary survey port.Because the PVID values of the auxiliary survey port that numbering is N are VLAN_init+1, and it is auxiliary In the VLAN configurations of the port configuration of measurement equipment 120, the numbering of only M groups is auxiliary survey port and the data-out port 121 of M Just configuration add VLAN_init+1, then numbering be N auxiliary survey port by test data be forwarded to numbering be M auxiliary survey end Mouth and data-out port 121.
The test data for being forwarded to data-out port 121 is sent to the tester being connected with data-out port 121 130.It is forwarded to auxiliary survey port that numbering is M and connects test data is sent to the numbering is M auxiliary survey port is corresponding The test port of equipment under test 110.
Step S140:The equipment under test 110 receives the test data that the auxiliary measurement equipment 120 is returned, and by institute State test data to send to described again by other test ports in addition to the last port for receiving the test data Auxiliary measurement equipment 120, until each auxiliary survey port of the auxiliary measurement equipment 120 was received from described in the equipment under test 110 Test data.
Then, the numbering of equipment under test 110 is that to receive the tag values that auxiliary survey port sends be VLAN_ for the test port of M The test data of init+1.Because all test ports of equipment under test 110 add No. ID specifying for VLAN_init+1 VLAN, then numbering is that test data is flooded to other all test ports by the test port of M.And set due to tested In standby 110, the untag values for only numbering the test port for being N+1 are VLAN_init+1, and then, only numbering is the survey of N+1 The test data that examination port sends is untag data, is received by the auxiliary survey port that numbering in auxiliary measurement equipment 120 is N+1.
Numbering is that the auxiliary survey port of N+1 is received after untag data, is stamped the PVID of itself, because numbering is N+1 The PVID values of auxiliary survey port be VLAN_init+2, and in auxiliary survey port, except the auxiliary survey port that numbering is N+1, only Numbering is M+1 and the tag values of data-out port 121 are VLAN_init+2, then numbering is that the auxiliary survey port of N+1 will stamp Tag data forwardings after PVID to data-out port 121 and numbering be M+1 auxiliary survey port.
Data-out port 121 sends the test data for receiving to tester 130.Numbering is the auxiliary survey port of M+1 The test data for receiving is sent into the test port of the equipment under test 110 to correspondence connection.The test port of equipment under test 110 M+1 sends the test data again by other test ports in addition to the last port for receiving the test data To the auxiliary measurement equipment 120, the port that the test data is received for the last time is the test port that numbering is M+1.
Configured according to the port of equipment under test 110 and auxiliary measurement equipment 120, test data is according to above-mentioned data forwarding road Footpath forwards successively.The like, all test ports on equipment under test 110 all can be received once from auxiliary measurement equipment 120 The Tag test datas come and broadcast flooding is carried out in other all test ports in addition to itself of this equipment, and quilt Measurement equipment 110 is sent to every time in the test data of auxiliary measurement equipment 120, only one of which test port send for Untag data, its What his port sent is Tag data.This ensures that there the test number for being sent to auxiliary measurement equipment 120 from equipment under test 110 every time According in, the test data of only one of which port can actually enter auxiliary measurement equipment 120 and be flooded forwarding again, other test numbers According to being abandoned by acl rule.
And auxiliary measurement equipment 120 can all send out a to data-out port when forward to test data every time 121, being sent to tester 130 by data-out port 121 carries out the reception of test data.Due to the untag of each test port Value is different, then the test port for sending untag data every time is different, makes each test port be transmitted across being forwarded to tester 130 test data.
With VLAN initial values as shown in Figure 3 as 2, port sum is that 6 equipment under test 110 and auxiliary survey set to the present embodiment Standby 120 as specific embodiment being described in detail to the repeating process of test data.Fig. 5 shows that test data exists Trend between equipment under test 110 and auxiliary measurement equipment 120, wherein, the dotted line between equipment under test 110 and auxiliary measurement equipment 120 The data that expression does not meet the data receiver rule of auxiliary survey port and is dropped, between equipment under test 110 and auxiliary measurement equipment 120 Non- arrow line represents the annexation one by one between test port and auxiliary survey port.
Fig. 3 is referred to, the numbering of 5 test ports is respectively N, M, N+1, M+1, N+2 in equipment under test 110, each The untag values configuration of test port and tag values are configured as shown in the figure.In addition, 5 auxiliary survey ports in auxiliary measurement equipment 120 Numbering is also respectively N, M, N+1, M+1, N+2, and the PVID values of each auxiliary survey port and tag values are configured as shown in the figure.
It is 2 that control device 140 controls tester 130 to the VLAN ID values in the transmission VLAN tag of data-in port 111 Test data, data-in port 111 received after the test data, to other all test ports broadcast floodings, is owned Test port by the test data for receiving be sent to correspondence connection auxiliary survey port.In all test ports, only test The untag of port N is 2, therefore only test port N will connect as untag data is activations after test data peeling label to correspondence The auxiliary survey port for connecing, then only auxiliary survey port N receive the test data, other auxiliary survey ports abandon test data, such as Shown in Fig. 5.
The test data for receiving is stamped and the He of data-out port 121 is forwarded to after the PVID that numerical value is 3 by auxiliary survey port N Tag values include 3 auxiliary survey port M.Test data is sent to test port M by auxiliary survey port M, and test port M is by the test number According to being flooded to other test ports.The test data for receiving is sent to other test ports the auxiliary survey port of correspondence connection, Because the untag values for there was only test port N+1 are 3, therefore the test data that only test port N+1 sends is by auxiliary survey port N+1 Receive, as shown in Figure 5.
The test data for receiving to be stamped and be forwarded to data-out port 121 after the PVID that numerical value is 4 by auxiliary survey port N+1 With the auxiliary survey port M+1 that tag values include 4.The test data for receiving is sent to test port M+1 by auxiliary survey port M+1, test The test data is flooded to other test ports by port M+1.It is right that other test ports are sent to the test data for receiving The auxiliary survey port that should connect, because the untag values for there was only test port N+2 are 4, therefore the test that only test port N+2 sends Data are received by auxiliary survey port N+2, as shown in Figure 5.
The test data for receiving to be stamped and be forwarded to data-out port 121 after the PVID that numerical value is 5 by auxiliary survey port N+2 With the auxiliary survey port N that tag values include 5.The test data for receiving is sent to test port N, test port N by auxiliary survey port N Test data is flooded to into other test ports.The test data for receiving is sent to the auxiliary of correspondence connection by other test ports Port is surveyed, because the untag values for there was only test port M are 5, therefore the test data that only test port M sends is by auxiliary survey port M Receive, as shown in Figure 5.
The test data for receiving is stamped and the He of data-out port 121 is forwarded to after the PVID that numerical value is 6 by auxiliary survey port M Tag values include 6 auxiliary survey port N+1.The test data for receiving is sent to test port N+1, test lead by auxiliary survey port N+1 Test data is flooded to other test ports by mouth N+1.The test data for receiving is sent to correspondence and is connected by other test ports The auxiliary survey port for connecing, because the untag values for there was only test port M+1 are 6, therefore the test data that only test port M+1 sends Received by auxiliary survey port M+1, as shown in Figure 5.
The test data for receiving to be stamped and be forwarded to data-out port 121 after the PVID that numerical value is 7 by auxiliary survey port M+1 With the auxiliary survey port N+2 that tag values include 7.The test data for receiving is sent to test port N+2 by auxiliary survey port N+2, test Test data is flooded to other test ports by port N+2.The test data for receiving is sent to correspondence by other test ports The auxiliary survey port of connection, due to there is no the test port that untag values are 7, the test data is no longer received by auxiliary survey port, in It is no longer to forward.
Then, as shown in figure 5, the equipment under test 110 shown in Fig. 3 each test port floods test data to auxiliary measurement equipment When 120, the flow that only 1 test port sends can be received and forwarded again by auxiliary measurement equipment 120, other unnecessary surveys Examination data can be dropped.Also, each test data that tester 130 sends, can be by each of equipment under test 110 Test port sends once, is finally sent back to tester 130 by auxiliary measurement equipment 120.
Step S150:The tester 130 receives the test data that the auxiliary measurement equipment 120 sends.
Tester 130 receives each test data that the data-out port 121 of auxiliary measurement equipment 120 sends.
Step S160:Test data and the tester that the control device 140 sends according to the tester 130 130 test datas for receiving calculate the transfer capability of the equipment under test 110.
In the present embodiment, control device 140 can according to tester 130 send test data number, receive The number of test data, tester 130 send the byte length pair of the test data of the transmission rate and transmission of test data The transfer capability of equipment under test 110 is calculated.
Specifically, as shown in fig. 6, this step can include:
Step S161:After the presumptive test time, control device 140 judges the number of the test data that tester 130 is received The number of test port whether is equal to the business of the number of the test data for sending, if it is not, execution step S162, if so, performs Step S165.
When from tester 130 to equipment under test 110, transmission test data starts to presumptive test time Time_test, control Device processed 140 obtains number P acket_send of the test data that tester 130 sends to auxiliary measurement equipment 120 and from auxiliary survey Number P acket_receive of the test data that equipment 120 is received.With number P acket_ of the test data for receiving Receive judges the business that the obtains whether number phase with test port divided by number P acket_send of the test data for sending Deng.
The testing time can according to actual needs be set by user, also, can pass through intervalometer timing.Work as control device 140 control testers 130 start to equipment under test 110 send test data when, start intervalometer, when intervalometer timing it is long When degree reaches the default testing time, start to perform this step.
In the present embodiment, when the presumptive test time is reached, can first control tester 130 and stop to equipment under test 110 send test data, then judge the number of the test data that tester 130 is received and the business of the number of the test data for sending Whether the number of test port is equal to.
Step S162:Judge the number of the test data that tester 130 is received and the business of the number of the test data for sending Whether less than the number of test port, if it is not, execution step S163, if so, execution step S164.
When the number of the test data of the reception of tester 130 is not equal to test lead with the business of the number of the test data for sending The number of mouth, shows that equipment under test 110 occurs in that packet loss or many bags during broadcast flooding is carried out, then need further Determine that equipment under test 110 occurs in that packet loss or many bags.Can pass through judge tester receive test data number and Whether the business of the number of the test data of transmission is less than the number of test port come to determine equipment under test 110 be packet loss or many Bag.
Step S163:Control device 140 points out the test of the switch forwarding performance to there is mistake and terminate test.
When the number of test data that tester 130 is received is more than test port with the business of the number of the test data for sending Number, now there is loop or configuration error in network causes many bags, needs user to carry out the inspection of environment and configuration by hand, Control device 140 can control this forwarding performance test to be terminated, and carries out miscue, so that user carries out in time wrong inspection Look into.Specific miscue mode can eject the frame that reports an error.
Step S164:The transmission rate of test data is sent according to current tester 130, is obtained to be less than using two way classification and is worked as The test data transmission rate of front transmission rate, as tester 130 the new transmission rate of test test data is sent, and is performed Step S110.
When the number of test data that tester 130 is received is less than test port with the business of the number of the test data for sending Number, shows that the transmission rate of now test data is excessive and packet loss occurs, then needs to reduce the transmission test data of tester 130 Transmission rate carry out the forwarding of test data again.
Specific reduction mode can be reset less tester 130 using two way classification and send test data Transmission rate, then new transmission rate can be Speed_send_change=Speed_send-Speed_send/2, should Speed_send is the current test data transmission rate of tester 130.Then by transmission rate value Speed_ after renewal Send_change is assigned to Speed_send again, and as tester 130 transmission rate of test data, control test are sent Instrument 130 sends test data to equipment under test 110 again.
Certainly, the calculation of the new transmission rate of tester 130 is not intended as limiting in the present embodiment, does not arrange Except the calculation of the transmission rate of other reduction testers 130 is applied to the embodiment of the present invention.
Step S165:Judge that whether tester 130 sends the currently transmitted speed of test data more than or equal to transmission speed The maximum of rate, if so, execution step S166;If it is not, execution step S167.
When the number of test data that tester 130 is received is equal to test port with the business of the number of the test data for sending Number, it was demonstrated that the test data that now equipment under test 110 is received all is forwarded.At this time, it may be necessary to determine whether to survey Examination instrument 130 sends the maximum whether currently transmitted speed of test data is more than or equal to transmission rate, to determine now Tester 130 sends whether the performance number of the equipment under test 110 that the transmission rate of test data is tested out is equipment under test 110 Ultimate value.
Step S166:Calculate the forwarding performance of equipment under test 110.
When tester 130 sends the maximum of the currently transmitted speed more than transmission rate of test data, transmission now The performance number that rate test goes out has been the ultimate value of equipment, can calculate the forwarding performance of equipment under test 110.
Concrete calculating can pass through formula:Result=[Speed_send/ (Packet_length+20)/8] * (Port_ num-1)*Port_num.Wherein, Result units are pps, represent the forwarding performance of equipment under test 110.Speed_send is survey Examination instrument 130 sends the newest transmission rate of test data, and Packet_length is the test data that tester 130 sends Byte length, Port_num is total for the port of equipment under test 110, and Port_num-1 is the test port of equipment under test 110 Number.
Step S167:The transmission rate of test data is sent according to current tester 130, is obtained to be more than using two way classification and is worked as The transmission rate of front transmission rate, as tester 130 the new transmission rate of test data, execution step S110 are sent.
When the currently transmitted speed that tester 130 sends test data is less than the maximum of transmission rate, illustrate current The performance number of the equipment under test 110 that transmission rate is tested out is not the ultimate value of equipment under test 110, and transmission rate can also increase Greatly.Then, control tester 130 and test data is sent to equipment under test 110 with bigger transmission rate again.It is appreciated that , the maximum of the transmission rate is aforesaid Speed_send_max, equal to the initial value of transmission rate.
In the present embodiment, it is possible to use two way classification obtains the test data transmission rate more than currently transmitted speed, tool Body, new transmission rate is Speed_send_change=Speed_send+Speed_send/2, and the Speed_send is Current transmission rate, current transmission rate is replaced as new transmission rate, control test using Speed_send_change Instrument 130 to equipment under test 110 sends test data.
Certainly, in the present embodiment, equipment under test 110 and the VLAN corresponding to auxiliary measurement equipment 120 is concrete Numbering is not intended as limiting, as long as meeting above-mentioned forwarding relation, makes the test data that tester 130 sends in equipment under test 110 Each test port send once, and tested instrument 130 is received for calculating the transfer capability of equipment under test 110.
Second embodiment
A kind of method of testing of switch forwarding performance is present embodiments provided, the method is applied to switch forwarding performance Test system control device 140.Fig. 1 is referred to, the system also includes equipment under test 110, auxiliary measurement equipment 120 and surveys Examination instrument 130.Wherein, the equipment under test 110 includes multiple test ports 112, and the auxiliary measurement equipment 120 includes multiple auxiliary survey ends Mouthfuls 122, the plurality of auxiliary survey port of the plurality of test port 112 of the equipment under test 110 and the auxiliary measurement equipment 120 122 connect one to one.
The method of testing of the switch forwarding performance that the present embodiment is provided is used for equipment under test 110 and auxiliary measurement equipment 120 are configured, and the method includes:The control device 140 configure the test port 112 of the equipment under test 110 with And the described auxiliary survey port 122 of the auxiliary measurement equipment 120 so that multiple test ports 112 of the equipment under test 110 are sent out every time Test data out only has the data of a test port 112 by corresponding auxiliary survey end in the auxiliary measurement equipment 120 Mouthfuls 122 receiving, and the test port 112 received every time corresponding to the auxiliary survey port 122 of the test data is different.
Wherein, the control device 140 configures the test port 112 of the equipment under test 110 and includes:By the quilt Each test port 112 in the plurality of test port 112 of measurement equipment 110 is configured to the multiple virtual local areas specified of correspondence Net, described each test port 112 can receive and dispatch the data of the plurality of VLAN specified, described each test port 112 only can carry out data processing to the data from one of destination virtual LAN is counted with meeting the auxiliary survey port 122 According to rule is received, the corresponding destination virtual LAN of described each test port 112 is different so that every time from the plurality of test Port 112 sends to the test data of the plurality of auxiliary survey port 122 and only has the data of a test port 112 by institute State in auxiliary measurement equipment 120 corresponding auxiliary survey port 122 to receive.
Specifically, control device 140 can be by the way that each test port 112 of the equipment under test 110 be each configured to A destination virtual LAN in the plurality of VLAN specified is corresponded in the first pattern, and institute is corresponded in a second mode Other VLANs specified in multiple VLANs specified are stated, wherein, when the survey of the equipment under test 110 When examination port 112 is with first mode correspondence destination virtual LAN, the test port 112 will be from corresponding mesh The data processing of mark VLAN is the data for meeting the auxiliary data receiver of survey port 122 rule, so that described each survey Examination port 112 only can carry out data processing to meet the auxiliary survey port to the data for carrying out self-corresponding destination virtual LAN 122 data receivers rule.
In the present embodiment, first mode can be Hybrid untag patterns, and the second mode can be Hybrid Tag patterns.
In addition, the control device 140 configures the described auxiliary survey port 122 of the auxiliary measurement equipment 120, including:The control Device processed 140 configures the data receiver rule of each auxiliary survey port, and each auxiliary survey port only receives corresponding tested port and sends Meet data receiver rule test data so that the survey that multiple test ports of the equipment under test 110 are issued every time When the test data that only one test port sends in examination data meets data receiver rule, only have one it is corresponding Auxiliary survey port receives.
The control device 140 configures each VLAN specified correspondence institute in multiple VLANs specified State two auxiliary survey ports 122 in auxiliary measurement equipment 120, the corresponding auxiliary survey port 122 of the VLAN that each is specified and other The corresponding auxiliary survey port 122 of VLAN specified is different, configures each auxiliary survey port 122 pairs of the auxiliary measurement equipment 120 The forwarding destination virtual LAN answered, the plurality of VLAN specified includes described each auxiliary correspondence of survey port 122 Forwarding destination virtual LAN so that described each auxiliary survey port 122 by receive meet data receiver rule survey Examination data setting is by the corresponding data for forwarding destination virtual LAN to forward in the auxiliary survey port 122.
In the present embodiment, control device 140 can be by configuring each auxiliary survey port 122 of the auxiliary measurement equipment 120 PVID attribute configurations described in auxiliary measurement equipment 120 the corresponding forwarding destination virtual LAN in each auxiliary survey port 122, it is described every The PVID values of individual auxiliary survey port 122 are equal to the ID values of the corresponding forwarding destination virtual LAN in described each auxiliary survey port 122.
Control device 140 may refer to the concrete configuration of equipment under test 110 and auxiliary measurement equipment 120 in the present embodiment One embodiment, will not be described here.
3rd embodiment
A kind of test system of switch forwarding performance is present embodiments provided, Fig. 1 is referred to, the system includes tested Equipment 110, auxiliary measurement equipment 120, tester 130 and control device 140.Wherein, the equipment under test 110 includes data input Port 111 and multiple test ports 112, the auxiliary measurement equipment 120 includes data-out port 121 and multiple auxiliary survey ports 122, multiple test ports 112 of the equipment under test 110 are corresponded with the multiple auxiliary survey port 122 of the auxiliary measurement equipment and connected Connect.Tester 130 includes three ports, and respectively first port 131, the port 133 of second port 132 and the 3rd refer to Fig. 1, first port 131 is connected to the data-in port 111 of equipment under test 110, and second port 132 is connected to auxiliary measurement equipment 120 data-out port 121, the 3rd port 133 is connected to control device 140.
In the present embodiment, equipment under test 110 and auxiliary measurement equipment 120 can be switch, and the survey of equipment under test 110 The port speed of the auxiliary survey port 122 of examination port 112 and auxiliary measurement equipment 120 is identical.In addition, control device 140 can be individual People's computer (personal computer, PC), panel computer or other intelligent control devices etc..
In the present embodiment, the control device 140 is used to configure the test port 112 of the equipment under test 110 And the described auxiliary survey port 122 of the auxiliary measurement equipment 120 so that the test data that the equipment under test 110 is issued every time Only can be received by an auxiliary survey port 122, and it is different to receive the auxiliary survey port 122 of the test data every time.In addition, the control Device processed 140 is additionally operable to control the data-in port 111 transmission survey of the tester 130 to the equipment under test 110 Examination data.
In addition, the equipment under test 110 is used to receive the test data by the data-in port 111, and will The test data is sent to the auxiliary measurement equipment 120 by all of test port 112.
The auxiliary measurement equipment 120 is used to receive the test data by an auxiliary survey port 122, the survey that will be received Examination data return to the equipment under test by the auxiliary survey port 122 of another test data for not receiving forwarding 110, and the test data for receiving is sent to the tester 130 by the data-out port 121, it is described auxiliary Measurement equipment 120 receives the test data by a different auxiliary survey port 122 every time.
The equipment under test 110 is additionally operable to receive the test data that the auxiliary measurement equipment 120 is returned, and by the survey Examination data are sent to described auxiliary again by other test ports 112 in addition to the last port for receiving the test data Measurement equipment 120, until each auxiliary survey port 122 of the auxiliary measurement equipment 120 was received from described in the equipment under test 110 Test data.
The tester 130 is used to receive the test data that the auxiliary measurement equipment 120 sends.
The test data and the tester 130 that the control device 140 is used to be sent according to the tester 130 connects The test data of receipts calculates the transfer capability of the equipment under test 110.
Fourth embodiment
A kind of control device 140 is present embodiments provided, the control device 140 is applied to the test of switch forwarding performance System.Fig. 1 is referred to, the system includes equipment under test 110, auxiliary measurement equipment 120, tester 130 and control device 140. The equipment under test 110 includes data-in port 111 and multiple test ports 112, and the auxiliary measurement equipment 120 includes data Output port 121 and multiple auxiliary survey ports 122, the plurality of test port 112 of the equipment under test 110 and the auxiliary survey The plurality of auxiliary survey port 122 of equipment 120 connects one to one.
The control device 140 that the present embodiment is provided is used to configure the test port 112 of the equipment under test 110 And the described auxiliary survey port 122 of the auxiliary measurement equipment 120 so that multiple test ports 112 of the equipment under test 110 are each The test data for issuing only has the data of a test port 112 by corresponding auxiliary survey in the auxiliary measurement equipment 120 Port 122 is receiving, and the test port 112 received every time corresponding to the auxiliary survey port 122 of the test data is different.
Further, in the present embodiment, described device includes the dispensing unit of equipment under test 110, and auxiliary measurement equipment 120 Dispensing unit.Wherein, the dispensing unit of equipment under test 110 is used in the plurality of test port 112 of the equipment under test 110 Each test port 112 be configured to the multiple VLAN for specifying of correspondence, described each test port 112 can receive and dispatch the plurality of finger The data of fixed VLAN.Also, described each test port 112 only can enter line number to the data from one of target VLAN Meet the auxiliary data receiver of survey port 122 rule according to processing, described each corresponding target VLAN of test port 112 is not Together so that send from the plurality of test port 112 to the test data of the plurality of auxiliary survey port 122 only have every time The data of one test port 112 are received by corresponding auxiliary survey port 122 in the auxiliary measurement equipment 120.
In addition, the dispensing unit of auxiliary measurement equipment 120 is used to configure the data receiver rule of each auxiliary survey port, each auxiliary survey end Mouth only receives the test data for meeting data receiver rule that corresponding tested port sends so that the equipment under test it is multiple In the test data that test port is issued every time, the test data of only one test port transmission meets data receiver rule When, only have a corresponding auxiliary survey port and receive.
Auxiliary measurement equipment dispensing unit is additionally operable to configure VLAN two auxiliary surveys of correspondence that each is specified in multiple VLAN for specifying Port 122.Wherein, multiple VLAN for specifying of the configuration do not include corresponding target VLAN of the data-in port 111, And the corresponding auxiliary survey port 122 of VLAN that each is specified auxiliary survey port 122 corresponding from the VLAN that other are specified is different.
The dispensing unit of auxiliary measurement equipment 120 is additionally operable to configure each corresponding turn of auxiliary survey port 122 of the auxiliary measurement equipment 120 Target VLAN is sent out, the plurality of VLAN for specifying includes that described each auxiliary survey port 122 is corresponding and forwards target VLAN.Its In, each auxiliary survey port 122 is corresponding to forward target VLAN to be different from corresponding target VLAN of the data-in port 111, So that described each auxiliary survey port 122 is set as the test data for meeting data receiver rule for receiving by the auxiliary survey The data of the corresponding forwarding target VLAN forwarding in port 122.
In addition, the dispensing unit of the equipment under test 110 is additionally operable to the data-in port of the equipment under test 110 111 are configured to one target VLAN of correspondence;The dispensing unit of auxiliary measurement equipment 120 is additionally operable to configure the auxiliary measurement equipment 120 The plurality of VLAN for specifying of the correspondence of data-out port 121.
Configuration and other work(of the control device 140 that the present embodiment is provided to equipment under test 110 and auxiliary measurement equipment 120 First embodiment can be referred to, be will not be described here.
It should be noted that each embodiment in this specification stress be all it is different from other embodiment it Place, between each embodiment identical similar part mutually referring to.For hardware classes embodiment, due to itself and method Embodiment basic simlarity, so description is fairly simple, related part is illustrated referring to the part of embodiment of the method.
The preferred embodiments of the present invention are the foregoing is only, the present invention is not limited to, for the skill of this area For art personnel, the present invention can have various modifications and variations.It is all within the spirit and principles in the present invention, made any repair Change, equivalent, improvement etc., should be included within the scope of the present invention.It should be noted that:Similar label and letter exists Similar terms is represented in figure below, therefore, once being defined in a certain Xiang Yi accompanying drawing, then it is not required in subsequent accompanying drawing It is further defined and is explained.
The above, the only specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, any Those familiar with the art the invention discloses technical scope in, change or replacement can be readily occurred in, all should contain Cover within protection scope of the present invention.Therefore, protection scope of the present invention described should be defined by scope of the claims.

Claims (11)

1. a kind of method of testing of switch forwarding performance, it is characterised in that be applied to the test system of switch forwarding performance Control device, the system also include equipment under test, auxiliary measurement equipment and tester, the equipment under test include multiple tests Port, the auxiliary measurement equipment includes multiple auxiliary survey ports, and the plurality of test port of the equipment under test sets with the auxiliary survey Standby the plurality of auxiliary survey port connects one to one, and the method includes:
The control device configures the test port of the equipment under test and the described auxiliary survey port of the auxiliary measurement equipment, So that the test data that multiple test ports of the equipment under test are issued every time only has the data quilt of a test port Corresponding auxiliary survey port to be receiving in the auxiliary measurement equipment, and receives every time corresponding to the auxiliary survey port of the test data Test port it is different.
2. method according to claim 1, it is characterised in that the control device configures the survey of the equipment under test Examination port, including:
It is the multiple VLAN for specifying of correspondence by each test port configurations in the plurality of test port of the equipment under test (VLAN), described each test port can receive and dispatch the data of the plurality of VLAN for specifying, described each test port Only the data from one of target VLAN can be carried out with data processing and receive rule, institute to meet the auxiliary survey port data State corresponding target VLAN of each test port different so that send to the plurality of auxiliary survey from the plurality of test port every time The test data of port only has the data of a test port by corresponding auxiliary survey port in the auxiliary measurement equipment To receive.
3. method according to claim 2, it is characterised in that by the plurality of test port of the equipment under test Each test port configurations is that the multiple VLAN (VLAN) for specifying of correspondence include:
Each test port of the equipment under test is each configured to correspond in the first pattern in the plurality of VLAN for specifying One target VLAN, corresponds in a second mode other VLAN for specifying in the plurality of VLAN for specifying;
It is described auxiliary to meet that described each test port only can carry out data processing to the data from one of target VLAN Survey port data and receive rule, including:
When the test port of the equipment under test is with first mode correspondence target VLAN, the test port is in the future Data processing from corresponding target VLAN is to meet the auxiliary port data of surveying to receive regular data, so that described every Individual test port only can carry out data processing and be connect with meeting the auxiliary survey port data to the data of next self-corresponding target VLAN Receive rule.
4. method according to claim 3, it is characterised in that the first mode is Hybrid untag patterns, described Second mode is Hybrid tag patterns.
5. method according to claim 1, it is characterised in that the control device configures the described auxiliary of the auxiliary measurement equipment Port is surveyed, including:
The control device configures the data receiver rule of each auxiliary survey port, and each auxiliary survey port only receives corresponding tested end What mouth sent meets the test data of data receiver rule so that what multiple test ports of the equipment under test were issued every time When the test data of only one test port transmission meets data receiver rule in test data, only have one and correspond to therewith Auxiliary survey port receive;
The control device configures two in each the described auxiliary measurement equipment of the VLAN for specifying correspondences in multiple VLAN for specifying Auxiliary survey port, the corresponding auxiliary survey ports of the VLAN that each is specified auxiliary survey port corresponding from the VLAN that other are specified is different, configuration Corresponding forwarding target VLAN in each auxiliary survey port of the auxiliary measurement equipment, the plurality of VLAN for specifying include it is described each Auxiliary survey port corresponding forwarding target VLAN, so that described each auxiliary survey port meets data receiver rule by what is received Test data is set as by the corresponding data for forwarding target VLAN to forward in the auxiliary survey port.
6. method according to claim 5, it is characterised in that by each the auxiliary survey port for configuring the auxiliary measurement equipment Each auxiliary survey port of auxiliary measurement equipment described in PVID attribute configurations is corresponding to forward target VLAN, each auxiliary survey port PVID values are equal to the ID values of corresponding forwarding target VLAN in described each auxiliary survey port.
7. a kind of method of testing of switch forwarding performance, it is characterised in that be applied to the test system of switch forwarding performance, The system includes equipment under test, auxiliary measurement equipment, tester and control device, and the equipment under test includes data-in port And multiple test ports, the auxiliary measurement equipment includes data-out port and multiple auxiliary survey ports, the equipment under test Multiple test ports connect one to one with the multiple auxiliary survey port of the auxiliary measurement equipment, and the control device is pre-configured with described The described auxiliary survey port of the test port of equipment under test and the auxiliary measurement equipment so that the equipment under test sends every time The test data come only can be received by an auxiliary survey port, and receive the auxiliary survey port difference of the test data every time, described Method includes:
The control device controls the tester and sends test data to the data-in port of the equipment under test;
The data-in port of the equipment under test receives the test data, and by the test data by all of Test port is sent to the auxiliary measurement equipment;
One auxiliary survey port of the auxiliary measurement equipment receives the test data, and the test data for receiving is passed through into another The auxiliary survey port for not receiving the test data of forwarding returns to the equipment under test, and the test that will be received Data are sent to the tester by the data-out port, and the auxiliary measurement equipment passes through every time a different auxiliary survey end Mouth receives the test data;
The equipment under test receives the test data that the auxiliary measurement equipment is returned, and by the test data again by removing Other test ports that the last time is received outside the port of the test data are sent to the auxiliary measurement equipment, until the auxiliary survey Each auxiliary survey port of equipment received the test data from the equipment under test;
The tester receives the test data that the auxiliary measurement equipment sends;
The test data that the test data and the tester that the control device sends according to the tester is received is calculated The transfer capability of the equipment under test.
8. method according to claim 7, it is characterised in that the control device is pre-configured with the institute of the equipment under test Test port is stated, including:
It is the multiple VLAN for specifying of correspondence by each test port configurations in the plurality of test port of the equipment under test (VLAN), described each test port can receive and dispatch the data of the plurality of VLAN for specifying, described each test port Only the data from one of target VLAN can be carried out with data processing and receive rule, institute to meet the auxiliary survey port data State corresponding target VLAN of each test port different so that send to the plurality of auxiliary survey from the plurality of test port every time The test data of port only has the data of a test port by corresponding auxiliary survey port in the auxiliary measurement equipment To receive;
The data-in port of the equipment under test is configured to into one target VLAN of correspondence;
The control device is pre-configured with the described auxiliary survey port of the auxiliary measurement equipment to be included:
The control device configures the data receiver rule of each auxiliary survey port, and each auxiliary survey port only receives corresponding tested end What mouth sent meets the test data of data receiver rule so that what multiple test ports of the equipment under test were issued every time When the test data of only one test port transmission meets data receiver rule in test data, only have one and correspond to therewith Auxiliary survey port receive;
The control device configures two auxiliary survey ports of VLAN correspondences that each is specified in multiple VLAN for specifying, the configuration Multiple VLAN for specifying do not include corresponding target VLAN of the data-in port, the corresponding auxiliary survey ends of the VLAN that each is specified Mouthful corresponding auxiliary survey ports of VLAN specified different from other, configure the corresponding forwarding in each auxiliary survey port of the auxiliary measurement equipment Target VLAN, the plurality of VLAN for specifying includes that described each auxiliary survey port is corresponding and forwards target VLAN, each auxiliary survey Corresponding forwarding target VLAN in port is different from corresponding target VLAN of the data-in port, so that described each auxiliary survey Port is set as the test data for meeting data receiver rule for receiving by the corresponding forwarding target in the auxiliary survey port The data of VLAN forwardings;
The control device is pre-configured with the plurality of VLAN for specifying of data-out port correspondence of the auxiliary measurement equipment.
9. a kind of test system of switch forwarding performance, it is characterised in that the system include equipment under test, auxiliary measurement equipment, Tester and control device, the equipment under test includes data-in port and multiple test ports, the auxiliary measurement equipment Including data-out port and multiple auxiliary survey ports, multiple test ports of the equipment under test are more with the auxiliary measurement equipment Individual auxiliary survey port connects one to one, and the control device is used to configuring the test port of the equipment under test and described The described auxiliary survey port of auxiliary measurement equipment so that the test data that the equipment under test is issued every time only can be by an auxiliary survey port Receive, and receive the auxiliary survey port difference of the test data every time, wherein,
The control device is additionally operable to control data-in port transmission test of the tester to the equipment under test Data;
The equipment under test is used to receive the test data by the data-in port, and the test data is passed through All of test port is sent to the auxiliary measurement equipment;
The auxiliary measurement equipment is used to receive the test data by an auxiliary survey port, and the test data for receiving is passed through Another auxiliary survey port for not receiving the test data of forwarding returns to the equipment under test, and the institute that will be received State test data to send to the tester by the data-out port, the auxiliary measurement equipment is every time different by one Auxiliary survey port receives the test data;
The equipment under test is additionally operable to receive the test data that the auxiliary measurement equipment is returned, and by the test data again Sent to the auxiliary measurement equipment by other test ports in addition to the last port for receiving the test data, until institute State each auxiliary survey port of auxiliary measurement equipment and receive the test data from the equipment under test;
The tester is used to receive the test data that the auxiliary measurement equipment sends;
The control device is used for the test data that the test data sent according to the tester and the tester are received Calculate the transfer capability of the equipment under test.
10. a kind of control device, it is characterised in that the test system being applied to described in claim 9, described device includes:
Equipment under test dispensing unit, for each test port configurations in the plurality of test port by the equipment under test To correspond to multiple VLAN (VLAN) for specifying, described each test port can receive and dispatch the number of the plurality of VLAN for specifying According to described each test port only can carry out data processing to meet the auxiliary survey to the data from one of target VLAN Port data receives rule, and corresponding target VLAN of described each test port is different so that every time from the plurality of test lead Mouth sends to the test data of the plurality of auxiliary survey port and only has the data of a test port by the auxiliary measurement equipment In corresponding auxiliary survey port receiving;
Auxiliary measurement equipment dispensing unit, for configuring the data receiver rule of each auxiliary survey port, each auxiliary survey port only receives right What the tested port answered sent meets the test data of data receiver rule so that multiple test ports of the equipment under test are every When the test data of only one test port transmission meets data receiver rule in the secondary test data for issuing, one is only had Individual corresponding auxiliary survey port receives;
The auxiliary measurement equipment dispensing unit is additionally operable to configure VLAN two auxiliary surveys of correspondence that each is specified in multiple VLAN for specifying Port, multiple VLAN for specifying of the configuration do not include corresponding target VLAN of the data-in port, what each was specified The corresponding auxiliary survey ports of VLAN auxiliary survey port corresponding from the VLAN that other are specified is different, and each for configuring the auxiliary measurement equipment is auxiliary Corresponding forwarding target VLAN in port is surveyed, the plurality of VLAN for specifying includes the corresponding forwarding mesh in described each auxiliary survey port Mark VLAN, each auxiliary survey port is corresponding to forward target VLAN to be different from corresponding target VLAN of the data-in port, with So that described each auxiliary survey port is set as the test data for meeting data receiver rule for receiving by the auxiliary survey port The data of corresponding forwarding target VLAN forwarding.
11. devices according to claim 10, it is characterised in that
The equipment under test dispensing unit is additionally operable to for the data-in port of the equipment under test to be configured to correspondence one Target VLAN;
The data-out port correspondence that the auxiliary measurement equipment dispensing unit is additionally operable to configure the auxiliary measurement equipment is the plurality of specified VLAN.
CN201611152762.9A 2016-12-14 2016-12-14 Test method, system and the control device of interchanger forwarding performance Active CN106656667B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611152762.9A CN106656667B (en) 2016-12-14 2016-12-14 Test method, system and the control device of interchanger forwarding performance

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611152762.9A CN106656667B (en) 2016-12-14 2016-12-14 Test method, system and the control device of interchanger forwarding performance

Publications (2)

Publication Number Publication Date
CN106656667A true CN106656667A (en) 2017-05-10
CN106656667B CN106656667B (en) 2019-09-03

Family

ID=58822085

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611152762.9A Active CN106656667B (en) 2016-12-14 2016-12-14 Test method, system and the control device of interchanger forwarding performance

Country Status (1)

Country Link
CN (1) CN106656667B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109150667A (en) * 2018-10-26 2019-01-04 京信通信系统(中国)有限公司 Switch test system
CN109802870A (en) * 2019-01-31 2019-05-24 杭州迪普科技股份有限公司 A kind of method, apparatus, equipment and the storage medium of equipment test
CN110971475A (en) * 2018-09-28 2020-04-07 迈普通信技术股份有限公司 Port forwarding test method, test system construction method and auxiliary test equipment
CN111314945A (en) * 2019-12-14 2020-06-19 深圳市共进电子股份有限公司 Test method, system and terminal equipment

Citations (6)

* 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
US7801141B2 (en) * 2008-07-25 2010-09-21 Micrel, Inc. True ring networks with gateway connections using MAC source address filtering
CN102333005A (en) * 2011-06-02 2012-01-25 迈普通信技术股份有限公司 Tester control method in automatic testing system
CN102355377A (en) * 2011-06-30 2012-02-15 迈普通信技术股份有限公司 Entire test system and method for Ethernet switch
CN102904777A (en) * 2012-10-15 2013-01-30 上海斐讯数据通信技术有限公司 Port-based multi-equipment testing implementing method
CN104702458A (en) * 2013-12-09 2015-06-10 中国联合网络通信集团有限公司 Inspection method, device and system for serpentine series connection of data forwarding equipment

Patent Citations (6)

* 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
US7801141B2 (en) * 2008-07-25 2010-09-21 Micrel, Inc. True ring networks with gateway connections using MAC source address filtering
CN102333005A (en) * 2011-06-02 2012-01-25 迈普通信技术股份有限公司 Tester control method in automatic testing system
CN102355377A (en) * 2011-06-30 2012-02-15 迈普通信技术股份有限公司 Entire test system and method for Ethernet switch
CN102904777A (en) * 2012-10-15 2013-01-30 上海斐讯数据通信技术有限公司 Port-based multi-equipment testing implementing method
CN104702458A (en) * 2013-12-09 2015-06-10 中国联合网络通信集团有限公司 Inspection method, device and system for serpentine series connection of data forwarding equipment

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110971475A (en) * 2018-09-28 2020-04-07 迈普通信技术股份有限公司 Port forwarding test method, test system construction method and auxiliary test equipment
CN110971475B (en) * 2018-09-28 2022-05-17 迈普通信技术股份有限公司 Port forwarding test method, test system construction method and auxiliary test equipment
CN109150667A (en) * 2018-10-26 2019-01-04 京信通信系统(中国)有限公司 Switch test system
CN109802870A (en) * 2019-01-31 2019-05-24 杭州迪普科技股份有限公司 A kind of method, apparatus, equipment and the storage medium of equipment test
CN111314945A (en) * 2019-12-14 2020-06-19 深圳市共进电子股份有限公司 Test method, system and terminal equipment
CN111314945B (en) * 2019-12-14 2023-12-05 深圳市共进电子股份有限公司 Test method, system and terminal equipment

Also Published As

Publication number Publication date
CN106656667B (en) 2019-09-03

Similar Documents

Publication Publication Date Title
CN106656667A (en) Switch forwarding performance test methods and system, and control apparatus
CN103746884B (en) A kind of method and system that flow rate test is carried out using interchanger
CN103618646B (en) Network performance, packet loss, time delay measuring method and network edge node equipment
CN105634869B (en) A kind of throughput of network device detection system
DE112005000405T5 (en) System and method for linking a DLPDU received by an interface chip with a data measurement made by an external circuit
CN105955890B (en) A kind of generation method and device of functional test case
CN105656684B (en) Failure simulation method and device
CN108075943A (en) Test packet building method and device
CN105357709A (en) Wireless router throughput testing method and system as well as router
CN106487613A (en) A kind of bandwidth test methods, devices and systems
CN103532736B (en) Visual network management method and user terminal
CN104618183B (en) A kind of RFC2544 throughput testing approach
CN105553885A (en) FC switch priority testing method
CN105718403A (en) Expansion interface and method for data communication through same
CN104506396B (en) The method of testing and system of the full port Full Mesh performances of equipment
CN106656665A (en) Local area network speed testing method and device
CN115309660A (en) Interface testing method and device, storage medium and computer equipment
CN100366003C (en) Device and method for emulated route analysis test
Delzanno et al. Decidability and complexity results for verification of asynchronous broadcast networks
CN105721226B (en) A kind of QoS automatic test device and test method
CN103580959B (en) Distributed statistical reporting implementation method
CN109756400A (en) The flow rate test method and system of 10G POE interchanger
CN111092788B (en) Switch test system
CN110896380B (en) Flow table screening method and device, electronic equipment and readable storage medium
CN104468285B (en) Network equipment multicast performance measuring method and system

Legal Events

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