CN102104502A - Ethernet equipment performance test platform based on Linux system - Google Patents

Ethernet equipment performance test platform based on Linux system Download PDF

Info

Publication number
CN102104502A
CN102104502A CN2009101891089A CN200910189108A CN102104502A CN 102104502 A CN102104502 A CN 102104502A CN 2009101891089 A CN2009101891089 A CN 2009101891089A CN 200910189108 A CN200910189108 A CN 200910189108A CN 102104502 A CN102104502 A CN 102104502A
Authority
CN
China
Prior art keywords
packet
test
module
ethernet
ethernet frame
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN2009101891089A
Other languages
Chinese (zh)
Inventor
柴先平
崔凯
江武
程剑锋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
EVOC Intelligent Technology Co Ltd
Original Assignee
EVOC Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by EVOC Intelligent Technology Co Ltd filed Critical EVOC Intelligent Technology Co Ltd
Priority to CN2009101891089A priority Critical patent/CN102104502A/en
Publication of CN102104502A publication Critical patent/CN102104502A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention is suitable for the field of computer networks and provides an Ethernet equipment performance test platform based on a Linux system. The platform comprises a microprocessor, a kilomega network card MAC (Media Access Control) chip, a Linux system kilomega Ethernet card chip driver, a data packet transmitting unit, a data packet receiving unit and a user interaction interface, wherein the microprocessor adopts an X86 multicore CPU (Central Processing Unit) chip. The invention establishes the Ethernet equipment performance test platform based on Linux on the traditional general X86 network hardware platform according to a network performance test standard, which can accurately test performance indexes of network throughput, time delay, packet loss ratio, back to back, and the like and meet the requirement of performance test of the traditional network equipment without special hardware platform and has low test cost.

Description

A kind of ethernet network device performance test platform based on linux system
Technical field
The invention belongs to computer network field, relate in particular to a kind of ethernet network device performance test platform based on linux system.
Background technology
At present, follow the continuous expansion of IP bearer network applied business, the scale of network becomes, and equipment increasing, networking becomes increasingly complex, and the performance test of the network equipment gets the nod more and more widely as the basic means that guarantees network high-performance, high reliability.
The performance test of the network equipment mainly concentrates on the performance test of device network aspect, (the Request For Comments that requests for comments that the standard of test adopts industry more extensively to approve usually, RFC) standard, comprise RFC1242, RFC2544, RFC2885, RFC2889 etc., wherein RFC2544 has defined the most basic reference performance test index of network interconnection device, comprises throughput, time delay, packet loss, waits back-to-back.
Fig. 1 shows network device performance test scheme of the prior art, utilize field programmable gate array (Field-Programmable Gate Array, FPGA) realize, ethernet frame comprising dissimilar gigabit flows, the collection of network packet and analysis, microprocessor reads the result of FPGA collection analysis, and the result is returned to the user.In this scheme, in order to handle data packet flow at a high speed, need to adopt special-purpose hardware chip, the design specialized hardware platform causes the cost height of network device performance test.
Summary of the invention
The purpose of the embodiment of the invention is to provide a kind of ethernet network device performance test platform based on linux system, be intended to solve the conventional network equipment performance test and adopt special-purpose hardware chip, the design specialized hardware platform is realized, is caused the testing cost problem of higher.
The embodiment of the invention is achieved in that a kind of ethernet network device performance test platform based on linux system, and described platform comprises:
Adopt the microprocessor of X86 multi-core CPU chip;
PCI-Express MAC chip is connected with the network interface card of the tested network equipment, to the network interface card transmission and the acceptance test ethernet frame of the tested network equipment;
Linux system gigabit ethernet card chip drives;
The packet transmitting element is used for according to customer requirements, produces the required network traffics packet of test, sends to the tested network equipment through described PCI-Express MAC chip;
The packet receiving element is used to receive the test packet that the tested network equipment returns, and test packet is analyzed, and outputs test result; And
The user interactions interface, be used to be provided with test parameter, control described test packet transmitting element and produce the test bandwidth, and control the mode of described packet receiving element analyzing test data bag, the test result that described packet receiving element is returned is shown to the user.
The embodiment of the invention is having now on the general X86 network hardware platform according to the applied in network performance test standard, foundation is based on the ethernet network device performance test platform of Linux, exactly test network throughput, time delay, packet loss, wait performance index back-to-back, satisfy the needs of conventional network equipment performance test, do not need simultaneously special-purpose hardware platform, testing cost is low.
Description of drawings
Fig. 1 is the network device performance test conceptual scheme that prior art provides;
Fig. 2 is the structure chart based on the ethernet network device performance test platform of linux system that the embodiment of the invention provides;
Fig. 3 is the realization flow figure of the test data packet transmission method that provides of the embodiment of the invention;
Fig. 4 is the structure chart of the test packet transmitting element that provides of the embodiment of the invention;
Fig. 5 is the realization flow figure of the test packet method of reseptance that provides of the embodiment of the invention;
Fig. 6 is the structure chart of the packet receiving element that provides of the embodiment of the invention.
Embodiment
In order to make purpose of the present invention, technical scheme and advantage clearer,, the present invention is further elaborated below in conjunction with drawings and Examples.Should be appreciated that specific embodiment described herein only in order to explanation the present invention, and be not used in qualification the present invention.
The embodiment of the invention is on existing general X86 network hardware platform, according to the applied in network performance test standard, ethernet network device performance test platform based on linux system is provided, accurate test network throughput, time delay, packet loss waits performance index back-to-back, satisfy the needs of conventional network equipment performance test, the while does not have because needing special-purpose hardware platform and causes the high problem of testing cost.
The structure based on the ethernet network device performance test platform of linux system that Fig. 2 shows that the embodiment of the invention provides for convenience of explanation, only shows the part relevant with the embodiment of the invention.
This test platform divides hardware and software two parts, wherein:
What microprocessor 1 adopted is X86 multi-core CPU chip.
In embodiments of the present invention, can and receive minimum ethernet frame (64 byte) with the transmission of 1G flow, need specify a dedicated cpu respectively for network interface and examine handle packet in order to make PCI-Express.
PCI-Express MAC chip 2 is connected with the network interface card of the tested network equipment, to the network interface card transmission and the acceptance test ethernet frame of the tested network equipment, supports the network interface card test of electricity mouth and two kinds of interfaces of light mouth.
The user is provided with test parameter by user interactions interface 3, for example test bandwidth, test packet size, quantity etc., control test packet transmitting element 4 produces the mode of test bandwidth and packet receiving element 5 analyzing test data bags, and the applied in network performance test result that packet receiving element 5 is returned is shown to the user.
Packet transmitting element 4 produces the required network traffics packet of test according to customer requirements, sends to the tested network equipment through PCI-Express MAC chip 2.
Packet receiving element 5 receives the test packet that the tested network equipment returns from PCI-Express MAC chip 2, and test packet is analyzed performance, and test result is returned to user interactions interface 3.
Network interface card drives 6 the gigabit ethernet card chip drives is provided.In embodiments of the present invention, system runs on the linux system, therefore uses the gigabit ethernet card chip drives in the linux system.
Fig. 3 shows the realization flow of the test data packet transmission method that the embodiment of the invention provides, and details are as follows:
In step S301,, calculate the quantity of the ethernet frame that per second need send according to the test bandwidth that the user is provided with;
In embodiments of the present invention, the quantity Calculation formula of the per second ethernet frame that need send is as follows:
The amount of giving out a contract for a project in the 1s=1000000*BANDWIDTH/ ((PKT_SIZE+4+20) * 8);
Wherein, BANDWIDTH is the test bandwidth that the user is provided with, and unit is M, and for example 1000M is exactly that flow with 1G sends; PKT_SIZE for do not comprise CRC (CyclicalRedundancy Check, ethernet frame size CRC), scope are 60-1514,4byte is a CRC length, 20 is the interstitial volume of ethernet frame network interface card interframe when transmission over networks.
In step S302, calculate the per second amount of giving out a contract for a project after, the amount of giving out a contract for a project is divided equally, with guarantee to give out a contract for a project evenly, for example the amount of giving out a contract for a project is carried out 1000 five equilibriums, calculate the unit interval, the amount of giving out a contract for a project in for example every 1ms;
In step S303, the protocol type according to the user is provided with generates the ethernet frame that sends, and stamps the mark of test packet frame, so that packet is analyzed after receiving;
In step S304, can send equably in order to make packet, the tranmitting data register of Ethernet card is set, accurately control the time interval that each packet sends;
In step S305, the transmission of dedicated cpu nuclear handle packet is set;
In embodiments of the present invention, in order to ensure can reaching maximum network bandwidth (sending and receive minimum ethernet frame) with the 1G flow, and the stability in order to guarantee network bandwidth, the transmission that a dedicated cpu examines handle packet is set.
In step S306, to the ethernet frame of tested network equipment transmission fixed-bandwidth, as test packet;
In step S307, judge whether to reach the data volume of transmission or interrupted by the user, be then to finish, otherwise execution in step S306.
Fig. 4 shows the structure of the test packet transmitting element that the embodiment of the invention provides, and for convenience of explanation, only shows the part relevant with the embodiment of the invention.
The amount of giving out a contract for a project computing module 41 is according to the test bandwidth that the user is provided with, and calculates the quantity of the ethernet frame that per second need send.
In embodiments of the present invention, the computing formula of the gigabit Ethernet amount of giving out a contract for a project is as follows:
The amount of giving out a contract for a project in the 1s=1000000*BANDWIDTH/ ((PKT_SIZE+4+20) * 8);
Wherein, BANDWIDTH is the test bandwidth that the user is provided with, and unit is M, and for example 1000M is exactly that flow with 1G sends; PKT_SIZE for do not comprise CRC (CyclicalRedundancy Check, ethernet frame size CRC), scope are 60-1514,4byte is a CRC length, 20 is the interstitial volume of ethernet frame network interface card interframe when transmission over networks.
After calculating the per second amount of giving out a contract for a project, the Time Calculation of giving out a contract for a project module 42 is divided equally the amount of giving out a contract for a project, with guarantee to give out a contract for a project evenly, for example the amount of giving out a contract for a project is carried out 1000 five equilibriums, calculate in the unit interval amount of giving out a contract for a project in for example every 1ms.
The protocol type that test packet generation module 43 is provided with according to the user generates the ethernet frame that sends, and stamps the mark of test packet frame, so that test packet is analyzed after receiving.
For packet can be sent equably, tranmitting data register is provided with the tranmitting data register that module 44 is provided with Ethernet card, accurately controls the time interval that each packet sends.
CPU is provided with module 45 transmission that dedicated cpu nuclear is handled test packet is set.
In embodiments of the present invention, in order to ensure can reaching maximum network bandwidth (sending and receive minimum ethernet frame) with the 1G flow, and the stability in order to guarantee network bandwidth, a dedicated cpu is set examines the transmission of handling test packet.
Test packet sending module 46 sends the ethernet frame of fixed-bandwidth to the tested network equipment.
Test packet transmission judge module 47 judges whether to reach the data volume of transmission or is interrupted by the user, otherwise triggers the ethernet frame that test packet sending module 46 continues to send to the tested network equipment fixed-bandwidth.
Fig. 5 shows the realization flow of the test packet method of reseptance that the embodiment of the invention provides, and details are as follows:
In step S501, dedicated cpu stone grafting Acceptance Tests packet is set;
In embodiments of the present invention, for the performance that can guarantee bandwidth and stable, a dedicated cpu nuclear is set handles the test ethernet frame that receives.
If receive packet, then network interface card produces the arrival of outage notification data bag, and network interface card is had no progeny in driving and receiving, and begins to receive packet.
In step S502, receive the packet that the tested network equipment returns;
In step S503, judge whether received packet is test packet, be execution in step S504 then, otherwise execution in step S505;
In step S504, test packet is carried out statistical analysis, data volume that statistics is returned and time delay, frame mistake etc. are analyzed and are finished the release packet;
In step S505, packet is sent to the upper-layer protocol stack handle.
Fig. 6 shows the structure of the test packet transmitting element that the embodiment of the invention provides, and for convenience of explanation, only shows the part relevant with the embodiment of the invention.
CPU is provided with the dedicated cpu nuclear that module 61 is provided with the acceptance test packet.
In embodiments of the present invention, for the performance that can guarantee bandwidth and stable, a dedicated cpu nuclear is set handles the test ethernet frame that receives.
Packet receiver module 62 receives the packet that the tested network equipment returns.
Test packet judge module 63 judges whether received packet is test packet, when the judgment data bag is test packet, trigger 64 pairs of test packets of test data packet analysis module and carry out statistical analysis, data volume that statistics is returned and time delay, frame mistake etc., test data packet analysis module 64 is analyzed and is finished the release packet.
When the judgment data bag was not test packet, test packet judge module 63 sent the upper-layer protocol stack with packet and handles.
The embodiment of the invention is having now on the general X86 network hardware platform according to the applied in network performance test standard, set up ethernet network device performance test platform based on Linux, exactly test network throughput, time delay, packet loss, wait performance index back-to-back, satisfy the needs of conventional network equipment performance test, do not need simultaneously special-purpose hardware platform, testing cost is low.
The above only is preferred embodiment of the present invention, not in order to restriction the present invention, all any modifications of being done within the spirit and principles in the present invention, is equal to and replaces and improvement etc., all should be included within protection scope of the present invention.

Claims (4)

1. ethernet network device performance test platform based on linux system is characterized in that described platform comprises:
Adopt the microprocessor of X86 multi-core CPU chip;
PCI-Express MAC chip is connected with the network interface card of the tested network equipment, to the network interface card transmission and the acceptance test ethernet frame of the tested network equipment;
Linux system gigabit ethernet card chip drives;
The packet transmitting element is used for according to customer requirements, produces the required network traffics packet of test, sends to the tested network equipment through described PCI-Express MAC chip;
The packet receiving element is used to receive the test packet that the tested network equipment returns, and test packet is analyzed, and outputs test result; And
The user interactions interface, be used to be provided with test parameter, control described test packet transmitting element and produce the test bandwidth, and control the mode of described packet receiving element analyzing test data bag, the test result that described packet receiving element is returned is shown to the user.
2. platform as claimed in claim 1 is characterized in that, described packet transmitting element comprises:
The amount of giving out a contract for a project computing module is used for the test bandwidth according to user's setting, the quantity of the ethernet frame that the calculating per second need send;
The Time Calculation of giving out a contract for a project module, the quantity that is used for ethernet frame that described per second is sent is divided equally the amount of giving out a contract for a project in the unit of account time;
The test packet generation module is used for the protocol type according to user's setting, generates ethernet frame, stamps the mark of test packet frame;
Tranmitting data register is provided with module, is used to be provided with the tranmitting data register of Ethernet card, controls the time interval that each packet sends;
CPU is provided with module, is used for the dedicated cpu nuclear that the set handling packet sends;
The test packet sending module is used for the ethernet frame to tested network equipment transmission fixed-bandwidth; And
Test packet sends judge module, be used to judge whether described ethernet frame reaches the data volume of transmission or interrupted by the user, when described ethernet frame does not reach the data volume of transmission or do not interrupted by the user, trigger the ethernet frame that described test packet sending module continues to send to the tested network equipment fixed-bandwidth.
3. platform as claimed in claim 2 is characterized in that, the quantity of the Ether frame that described per second need send is calculated as follows:
The amount of giving out a contract for a project in the 1s=1000000*BANDWIDTH/ ((PKT_SIZE+4+20) * 8);
Wherein, the test bandwidth that BANDWIDTH is provided with for the user, unit is M;
PKT_SIZE is not for comprising the ethernet frame size of CRC, and scope is 60-1514;
4byte is a CRC length;
20 is the interstitial volume of ethernet frame network interface card interframe when transmission over networks.
4. platform as claimed in claim 1 is characterized in that, described packet receiving element comprises:
CPU is provided with module, is used to be provided with the dedicated cpu nuclear of acceptance test packet;
The packet receiver module is used to receive the packet that the tested network equipment returns;
The test packet judge module is used to judge whether the packet that the described tested network equipment returns is test packet, when judgement is not test packet, packet is sent to the upper-layer protocol stack handle; And
The test data packet analysis module is used for when described test packet judge module judges that described packet is test packet test packet being carried out statistical analysis, discharges described test packet after analysis is finished.
CN2009101891089A 2009-12-18 2009-12-18 Ethernet equipment performance test platform based on Linux system Pending CN102104502A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2009101891089A CN102104502A (en) 2009-12-18 2009-12-18 Ethernet equipment performance test platform based on Linux system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2009101891089A CN102104502A (en) 2009-12-18 2009-12-18 Ethernet equipment performance test platform based on Linux system

Publications (1)

Publication Number Publication Date
CN102104502A true CN102104502A (en) 2011-06-22

Family

ID=44157046

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2009101891089A Pending CN102104502A (en) 2009-12-18 2009-12-18 Ethernet equipment performance test platform based on Linux system

Country Status (1)

Country Link
CN (1) CN102104502A (en)

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102904772A (en) * 2012-09-26 2013-01-30 中兴通讯股份有限公司 Method and device for realizing throughput test of network equipment
CN104618184A (en) * 2015-01-22 2015-05-13 北京奥普维尔科技有限公司 Ethernet type private wire network side parameter analysis system and method
CN104660461A (en) * 2015-01-15 2015-05-27 北京奥普维尔科技有限公司 Ethernet test instrument based on 100G communication and test method thereof
CN105071982A (en) * 2015-07-16 2015-11-18 浪潮电子信息产业股份有限公司 Method for rapid measurement of performance of network card under Linux
CN106209499A (en) * 2016-06-28 2016-12-07 醴陵恒茂电子科技有限公司 A kind of Ethernet of stablizing is given out a contract for a project the method and apparatus of tester flow
CN106487606A (en) * 2015-08-28 2017-03-08 阿里巴巴集团控股有限公司 A kind of dispatching method for network tester and system
CN104102579B (en) * 2014-06-30 2017-07-28 重庆邮电大学 A kind of network measuring system and method based on multinuclear or many-core embeded processor
CN107204900A (en) * 2017-07-28 2017-09-26 郑州云海信息技术有限公司 OpenPower architecture network tuning automatic setting methods
CN107508726A (en) * 2017-08-30 2017-12-22 成都网优力软件有限公司 A kind of apply is having the bandwidth test method and system that other software is disturbed or test equipment hardware performance is poor
CN109391492A (en) * 2017-08-09 2019-02-26 普天信息技术有限公司 Communication network management performance test analog network building method
CN110290020A (en) * 2019-06-17 2019-09-27 北京挚友科技有限公司 A kind of ethernet test instrument high-precision flow percentage production method and device
CN110351156A (en) * 2018-04-03 2019-10-18 大唐移动通信设备有限公司 A kind of test method and device

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013182137A1 (en) * 2012-09-26 2013-12-12 中兴通讯股份有限公司 Throughput test method and apparatus
CN102904772A (en) * 2012-09-26 2013-01-30 中兴通讯股份有限公司 Method and device for realizing throughput test of network equipment
US9838293B2 (en) 2012-09-26 2017-12-05 Xi'an Zhongxing New Software Co., Ltd. Throughput test method and apparatus
CN104102579B (en) * 2014-06-30 2017-07-28 重庆邮电大学 A kind of network measuring system and method based on multinuclear or many-core embeded processor
CN104660461A (en) * 2015-01-15 2015-05-27 北京奥普维尔科技有限公司 Ethernet test instrument based on 100G communication and test method thereof
CN104618184B (en) * 2015-01-22 2017-12-12 北京奥普维尔科技有限公司 Ether class private line network side parametric analysis system and method
CN104618184A (en) * 2015-01-22 2015-05-13 北京奥普维尔科技有限公司 Ethernet type private wire network side parameter analysis system and method
CN105071982A (en) * 2015-07-16 2015-11-18 浪潮电子信息产业股份有限公司 Method for rapid measurement of performance of network card under Linux
CN106487606A (en) * 2015-08-28 2017-03-08 阿里巴巴集团控股有限公司 A kind of dispatching method for network tester and system
CN106209499A (en) * 2016-06-28 2016-12-07 醴陵恒茂电子科技有限公司 A kind of Ethernet of stablizing is given out a contract for a project the method and apparatus of tester flow
CN107204900A (en) * 2017-07-28 2017-09-26 郑州云海信息技术有限公司 OpenPower architecture network tuning automatic setting methods
CN109391492A (en) * 2017-08-09 2019-02-26 普天信息技术有限公司 Communication network management performance test analog network building method
CN109391492B (en) * 2017-08-09 2021-11-26 普天信息技术有限公司 Simulation network building method for communication network management performance test
CN107508726A (en) * 2017-08-30 2017-12-22 成都网优力软件有限公司 A kind of apply is having the bandwidth test method and system that other software is disturbed or test equipment hardware performance is poor
CN110351156A (en) * 2018-04-03 2019-10-18 大唐移动通信设备有限公司 A kind of test method and device
CN110290020A (en) * 2019-06-17 2019-09-27 北京挚友科技有限公司 A kind of ethernet test instrument high-precision flow percentage production method and device

Similar Documents

Publication Publication Date Title
CN102104502A (en) Ethernet equipment performance test platform based on Linux system
Antichi et al. OSNT: Open source network tester
CN100352185C (en) Method and system for monitoring broadband quality of services
CN102223263B (en) Packet loss monitoring method based on FPGA and device
CN106341266B (en) Hardware ICP/IP protocol stack device with actively and passively transmission mode
CN102946616B (en) Internet of things middleware performance testing system and testing method
EP2903213B1 (en) Throughput test method and apparatus
CN104144088A (en) Network delay measuring method with delay measuring accuracy improved
CN105634840B (en) Method and device for measuring packet loss
CN103560928A (en) Method and system for testing forwarding performance of network equipment
US20140064105A1 (en) Diagnostics in a distributed fabric system
CN104750588A (en) Serial port communication based pressure testing method
TW201431321A (en) System and method for measuring flow of network data
CN105827476A (en) High-speed PING implementation method and PING testing method
CN101964727A (en) Method and device for measuring available bandwidth by using mixed messages
CN103716187B (en) Network topology structure determination method and system
CN104901851A (en) Method and system detecting network quality
US10693729B2 (en) Acceleration of node configuration for TWAMP with a large number of test sessions
CN107147544A (en) A kind of method and device of test network delay
CN110290020A (en) A kind of ethernet test instrument high-precision flow percentage production method and device
CN110248379A (en) The performance test methods and device of base station in WLAN
CN104598430B (en) The network interface Networking Design and control system of a kind of CPU interconnections extension system
CN100499516C (en) Packet-switcher flow monitoring and inquiry method and line card picker
CN102857390B (en) Determine the direct topological method of network connection
CN109120479A (en) A kind of network throughput testing approach based on network message format

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20110622