CN101217422B - A method to test the performance of net mouth - Google Patents

A method to test the performance of net mouth Download PDF

Info

Publication number
CN101217422B
CN101217422B CN2008100010417A CN200810001041A CN101217422B CN 101217422 B CN101217422 B CN 101217422B CN 2008100010417 A CN2008100010417 A CN 2008100010417A CN 200810001041 A CN200810001041 A CN 200810001041A CN 101217422 B CN101217422 B CN 101217422B
Authority
CN
China
Prior art keywords
network interface
contract
project
giving out
bag
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.)
Expired - Fee Related
Application number
CN2008100010417A
Other languages
Chinese (zh)
Other versions
CN101217422A (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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN2008100010417A priority Critical patent/CN101217422B/en
Publication of CN101217422A publication Critical patent/CN101217422A/en
Application granted granted Critical
Publication of CN101217422B publication Critical patent/CN101217422B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

A network interface performance testing method comprises the following steps: a contract-issuing procedure is arranged into an interrupt service routine of a timer of a veneer of a contract-issuing network interface; when the tested network interface exists and the timer starts, the timer controls the contract-issuing network interface and sends a data package to a contract-receiving network interface, and a counter counts the relevant testing data; the contract-issuing network interface or the contract-receiving network interface is the tested network interface; after the contract-issuing network interface stops sending contract package, the timer stops working; the performance index of the tested network interface is calculated according to the relevant testing data. The invention applies the method which can control the times of sending contract package per minute and the amounts needed in sending contract package through the timer, and get a higher speed in sending contract package and a precise flow control in order to meet the needs in testing the performance of the network interface.

Description

A kind of method of testing network port performance
Technical field
The present invention relates to the network communication equipment field, relate in particular to a kind of method of testing network port performance,
Background technology
Along with fast development of information technology, the network equipment has obtained large-scale use.Simultaneously, increasing industrial equipment also passes through the embedded network control chip to realize functions such as transfer of data and automation control.Mobile communication platform more and more trends towards unified IP platform now, and the transfer of data between each veneer is all carried out through network interface.Therefore, the quality of the network port performance of various industrial equipments is bigger to the performance impact of entire equipment, must use appropriate network port performance method of testing, to reflect the service behaviour of network interface exactly.
Four the key property indexs and the method for testing of network interface in RFC 2544, have been defined.These four basic performance index are respectively: throughput (Throughput), frame loss rate (Frame loss rate), time delay (Latency) and back-to-back frame number (Back-to-back frames).Various traditional network port performance method of testings all are based on the interrupt mechanism of network control chip at present, i.e. just begin the transmitting-receiving of deal with data behind interrupt software of network control chip generation.Adopt this method efficient under the situation of transmission parcel lower, can not accurately control the data flows simultaneously.As adopt special-purpose network interface tester, and when carrying out the network interface test, needing to buy special-purpose SmartBits hardware device, SmartCard module and SmartBits programmable software storehouse like SmartBits, configuration is complicated, and cost is higher.
Summary of the invention
The technical problem that the present invention will solve provides a kind of method of testing network port performance, under the prerequisite that satisfies the network port performance test request, tests out the big data on flows transmission performance of network interface.
For addressing the above problem, the invention provides a kind of method of testing network port performance, may further comprise the steps:
A, the program of giving out a contract for a project be set to the to give out a contract for a project interrupt service routine of timer of network interface place veneer;
B, exist and after said timer started, the said network interface of giving out a contract for a project of said timer control sent packet, counters count relevant test data to connecing the bag network interface when tested network interface; Wherein, of connecing in the bag network interface of the said network interface and said of giving out a contract for a project is said tested network interface;
After c, the said network interface of giving out a contract for a project stopped to give out a contract for a project, said timer quit work;
D, calculate the performance index of said tested network interface according to said relevant test data.
Further, said method also can have following characteristic: the said network interface of giving out a contract for a project wraps network interface on same veneer or different veneer with said connecing.
Further; Said method also can have before following characteristic: the step a or between step a and the step b, further comprising the steps of A: be respectively the said network interface of giving out a contract for a project and with the network interface of being informed of a case test pattern be set: the test pattern of the said network interface of giving out a contract for a project is set to loopback test or only sends packet; The said test pattern that connects the bag network interface is set to receive only packet.
Further; Said method also can have following characteristic: in the steps A; Except that test pattern is set, also the following parameter of giving out a contract for a project is set: the physical address of tested network interface numbering, tested network interface, the burst packets number that interrupts once transmission, transmission frame length, transmitted traffic for the said network interface of giving out a contract for a project; Among the step b, said timer sends packet according to the said network interface of giving out a contract for a project of above-mentioned parameter control to the said bag network interface that connects.
Further, said method also can have following characteristic: in the steps A, comprise also in the said parameter of giving out a contract for a project that one sends duration; Among the step c, when initiatively stopping to test through time of said transmission duration or tester, the said network interface of giving out a contract for a project stops to give out a contract for a project.
Further, said method also can have following characteristic: in the steps A, the said network interface of giving out a contract for a project is provided with the said parameter of giving out a contract for a project through one with its veneer terminal of linking to each other of veneer, place; The said bag network interface that connects belongs to the veneer terminal that veneer links to each other through one with it said test pattern is set.
Further, said method also can have following characteristic: before the step b, comprise that also one creates the step of print server; In the steps d, the performance index of said tested network interface are through said print server printout.
Further, said method also can have following characteristic: the said network interface place veneer of giving out a contract for a project is printed the bag number that bag number that the upper-layer protocol on it sends to the said network interface of giving out a contract for a project and the said network interface of giving out a contract for a project send; The said said bag network interface that connects that connects that bag network interface place veneer prints that upper-layer protocol on it receives connects the bag number that the bag network interface receives to the bag number of its transmission and said.
Adopt the method for the invention,, can obtain higher give out a contract for a project speed and flow control accurately to satisfy the needs that network port performance is tested through the quantity of utilizing timer control per second to send the number of times of bag and need to send bag at every turn.
Description of drawings
Fig. 1 is the method flow diagram of test network port performance in the embodiment of the invention;
Fig. 2 is for carrying out the human-computer interaction interface sketch map that parameter is provided with through the veneer terminal in the embodiment of the invention.
Embodiment
To combine accompanying drawing and embodiment that technical scheme of the present invention is explained in more detail below.
Through introducing the network port performance test that is applied to the method the mobile communication base station veneer, further specify this and send described network port performance method of testing below.
Concrete test process is as shown in Figure 1, may further comprise the steps (wherein, give out a contract for a project network interface with connect the bag network interface one of them for tested network interface, and the two is on same veneer or different veneer, and also possibly be same network interface):
1, starts respectively and give out a contract for a project network interface and connect the veneer at bag network interface place and its required separately various parameters are set.For the parameter of the network interface place veneer setting of giving out a contract for a project comprises: the physical address of tested network interface numbering, test pattern (being set to only send packet and loopback test (, pattern for this reason being set)), tested network interface when giving out a contract for a project network interface when connecing the bag network interface and be same network interface, at every turn send the burst packets number, send frame length (unit is a byte/frame), transmitted traffic (unit is Mb/s) and send duration parameters such as (unit are second).The test pattern that connects bag network interface place veneer is set to receive only packet.Also can be connect bag network interface place veneer be provided with the physical address of tested network interface numbering, tested network interface, at every turn send the burst packets number, send frame length, transmitted traffic and send parameters such as duration; But the test pattern that detects this veneer when the software program on this veneer is when receiving only packet; It can neglect above-mentioned set parameter; Promptly only accept packet, do not send packet.The above-mentioned step that parameter is set can through but be not limited to realize through the program on the veneer terminal (being display unit) that links to each other with above-mentioned veneer.Input test order (like NetTest) is as shown in Figure 2 on this veneer terminal, can demonstrate the parameter that needs setting on the veneer terminal, and user manually input gets final product.Wherein sending burst packets, to count default value be 1, and the transmitted traffic default value is 5.In test pattern, 0 expression loopback test, packet is only sent in 1 expression, and 2 expressions receive only packet;
2, the software program that operates on the veneer judges according to above-mentioned parameter whether tested network interface exists.If exist, then carry out next step;
3, the relevant work of initialization test.The transmitting-receiving bag quantity that reset counter, this counter mainly are used for adding up network interface and actual testing time etc.; Create print server and test relevant information with printout;
4, be provided for control timer startup, correlation function such as stop, and the program of giving out a contract for a project is set to the interrupt service routine of timer; (this step also can be carried out before step 1)
5, after timer started, its control network interface of giving out a contract for a project began to send packet according to the above-mentioned setting parameter of giving out a contract for a project to connecing the bag network interface.Wherein, the bag number that timer interruption frequency=per second will send/at every turn send the burst packets number, and bag number=transmitted traffic that per second will send/transmission frame length.Every like this at a distance from an interrupt cycle, the network interface of giving out a contract for a project just is provided with the transmission packet according to appointment.Utilize the counters count relevant test data simultaneously, like: the bag number that the upper-layer protocol of give out a contract for a project network interface and transmitting-receiving bag quantity, the network interface of the giving out a contract for a project place veneer that connects the bag network interface sends to this network interface of giving out a contract for a project, connect bag number that the bag network interface sends the upper-layer protocol of its place veneer to, testing time etc.;
When 6, the time of process transmission duration or tester initiatively stopped to test, the network interface of giving out a contract for a project stopped to send packet, and timer quits work.Add up each test index according to above-mentioned relevant test data, and these data are exported at print window through print server.The network interface of giving out a contract for a project place veneer is printed the bag number of issuing tested network interface in the upper strata and the network interface of giving out a contract for a project and is sent the bag number; Connecing bag network interface place veneer prints and connects the bag number that the bag network interface sends to the upper strata and connect bag network interface receiver packet number with this.Simultaneously can count packet loss and hardware packet loss according to above-mentioned data: wherein packet loss=(upper-layer protocol of the network interface of giving out a contract for a project place veneer is issued the bag number of this network interface of giving out a contract for a project-the connect bag number that the bag network interface sends to the upper-layer protocol of its place veneer)/network interface of giving out a contract for a project upper-layer protocol of belonging to veneer is issued the bag number of this network interface of giving out a contract for a project; Hardware packet loss=(network interface of giving out a contract for a project transmission bag number-connect and wrap the network interface receiver packet number)/network interface of giving out a contract for a project sends the bag number.
This method looks for another way, and with the method for giving out a contract for a project that timer control is given out a contract for a project and optimized, can control each transmission burst packets number, send frame length (byte/frame), transmitted traffic, testing time etc., can obtain high give out a contract for a project speed and flow control accurately.Can count simultaneously transmissions, reception flow accurately, packet loss, hardware packet loss etc. can test out the service behaviour of network interface accurately.In today that network technology is generally adopted, this method will have abundant and huge application potential.
Certainly; The present invention also can have other various embodiments; Under the situation that does not deviate from spirit of the present invention and essence thereof; Those of ordinary skill in the art work as can make various corresponding changes and distortion according to the present invention, but these corresponding changes and distortion all should belong to the protection range of the appended claim of the present invention.

Claims (8)

1. a method of testing network port performance is characterized in that, may further comprise the steps:
A, the program of giving out a contract for a project be set to the to give out a contract for a project interrupt service routine of timer of network interface place veneer;
B, exist and after said timer started, the said network interface of giving out a contract for a project of said timer control sent packet, counters count relevant test data to connecing the bag network interface when tested network interface; Wherein, of connecing in the bag network interface of the said network interface and said of giving out a contract for a project is said tested network interface; Wherein, said relevant test data comprises the packet receiving quantity of tested network interface;
After c, the said network interface of giving out a contract for a project stopped to give out a contract for a project, said timer quit work;
D, calculate the performance index of said tested network interface according to said relevant test data.
2. the method for claim 1 is characterized in that,
The said network interface of giving out a contract for a project wraps network interface on same veneer or different veneer with said connecing.
3. the method for claim 1 is characterized in that,
Before the step a or between step a and the step b, further comprising the steps of A: be respectively the said network interface of giving out a contract for a project and wrap network interface test pattern is set with connecing: the test pattern of the said network interface of giving out a contract for a project is set to loopback test or only sends packet; The said test pattern that connects the bag network interface is set to receive only packet.
4. method as claimed in claim 3 is characterized in that,
In the steps A, except that test pattern is set, also the following parameter of giving out a contract for a project is set: the physical address of tested network interface numbering, tested network interface, the burst packets number that interrupts once transmission, transmission frame length, transmitted traffic for the said network interface of giving out a contract for a project; Among the step b, said timer sends packet according to the said network interface of giving out a contract for a project of above-mentioned parameter control to the said bag network interface that connects.
5. method as claimed in claim 4 is characterized in that,
In the steps A, comprise also in the said parameter of giving out a contract for a project that one sends duration; Among the step c, when initiatively stopping to test through time of said transmission duration or tester, the said network interface of giving out a contract for a project stops to give out a contract for a project.
6. like claim 4 or 5 described methods, it is characterized in that,
In the steps A, the said network interface of giving out a contract for a project is provided with the said parameter of giving out a contract for a project through one with its veneer terminal of linking to each other of veneer, place; The said bag network interface that connects belongs to the veneer terminal that veneer links to each other through one with it said test pattern is set.
7. the method for claim 1 is characterized in that,
Before the step b, comprise that also one creates the step of print server; In the steps d, the performance index of said tested network interface are through said print server printout.
8. method as claimed in claim 7 is characterized in that,
The said network interface place veneer of giving out a contract for a project is printed the bag number that bag number that the upper-layer protocol on it sends to the said network interface of giving out a contract for a project and the said network interface of giving out a contract for a project send; The said said bag network interface that connects that connects that bag network interface place veneer prints that upper-layer protocol on it receives connects the bag number that the bag network interface receives to the bag number of its transmission and said.
CN2008100010417A 2008-01-15 2008-01-15 A method to test the performance of net mouth Expired - Fee Related CN101217422B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2008100010417A CN101217422B (en) 2008-01-15 2008-01-15 A method to test the performance of net mouth

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2008100010417A CN101217422B (en) 2008-01-15 2008-01-15 A method to test the performance of net mouth

Publications (2)

Publication Number Publication Date
CN101217422A CN101217422A (en) 2008-07-09
CN101217422B true CN101217422B (en) 2012-01-11

Family

ID=39623787

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2008100010417A Expired - Fee Related CN101217422B (en) 2008-01-15 2008-01-15 A method to test the performance of net mouth

Country Status (1)

Country Link
CN (1) CN101217422B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101877658A (en) * 2010-06-30 2010-11-03 中兴通讯股份有限公司 Method and device for detecting network port performance of IPTV set-top box
CN103139823A (en) * 2011-11-25 2013-06-05 亚旭电子科技(江苏)有限公司 Method and system for testing wireless network device
CN102571482A (en) * 2011-11-28 2012-07-11 曙光信息产业(北京)有限公司 System and method for testing stability of network card
CN104683175B (en) * 2013-12-03 2018-05-11 华为技术有限公司 The method and test device of applied in network performance test
CN106055441B (en) * 2016-05-31 2019-06-14 深圳市同泰怡信息技术有限公司 The network port performance test method and system of server under a kind of Linux system
CN108134689B (en) * 2017-12-11 2021-07-23 杭州迪普科技股份有限公司 Method and device for checking faults of cascade interface inside frame type equipment
CN111162966A (en) * 2019-12-23 2020-05-15 广州视源电子科技股份有限公司 Method and device for testing network interface hardware of receiving card, storage medium and processor
CN111427814B (en) * 2020-03-05 2021-12-07 深圳震有科技股份有限公司 Inter-core communication method based on AMP system, terminal and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1688135A (en) * 2005-05-13 2005-10-26 清华大学 Flow receiving taking and statistic circuit assembly for 10G network performance tester
CN1842033A (en) * 2005-03-30 2006-10-04 华为技术有限公司 Method for monitoring frame loss rate in multi protocol label exchange network
CN101001179A (en) * 2006-01-11 2007-07-18 中兴通讯股份有限公司 Detection method for carrier network
CN101083570A (en) * 2007-06-26 2007-12-05 中兴通讯股份有限公司 Method and apparatus for testing single board throughput performance of broadband access system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1842033A (en) * 2005-03-30 2006-10-04 华为技术有限公司 Method for monitoring frame loss rate in multi protocol label exchange network
CN1688135A (en) * 2005-05-13 2005-10-26 清华大学 Flow receiving taking and statistic circuit assembly for 10G network performance tester
CN101001179A (en) * 2006-01-11 2007-07-18 中兴通讯股份有限公司 Detection method for carrier network
CN101083570A (en) * 2007-06-26 2007-12-05 中兴通讯股份有限公司 Method and apparatus for testing single board throughput performance of broadband access system

Also Published As

Publication number Publication date
CN101217422A (en) 2008-07-09

Similar Documents

Publication Publication Date Title
CN101217422B (en) A method to test the performance of net mouth
CN102223263B (en) Packet loss monitoring method based on FPGA and device
CN103546344B (en) A kind of wireless routing Performance Test System and method
CN101588227A (en) Method for performing buffer status reporting and related communication device
CN104750588A (en) Serial port communication based pressure testing method
CN1996898B (en) A system and method for real time detection of the data channel states
CN102904772A (en) Method and device for realizing throughput test of network equipment
CN101998473B (en) System for testing performance of communication equipment
CN101547063A (en) Method and system for testing forward delay
CN101527932A (en) Method for performing buffer status reporting and communication apparatus thereof
CN102377505A (en) Serial port-based IPMI (Intelligent Platform Management Interface) package transmission method
CN101232412B (en) Communication network element performance test apparatus and method
CN110290187A (en) Transmission method and device, storage medium, the electronic device of data information
CN101237450A (en) Method and apparatus for handling packets in a wireless communications system
CN105591839A (en) Device, method and system of testing network exchange chip
CN101072135A (en) Wireless LAN testing method and system
CN104991848A (en) Method and system for implementing Key code burning on basis of MSComm control
CN100486187C (en) A test method and system for L2TP tunnel specification
CN101631074B (en) Multilink message sending method, device and network equipment
CN107769960B (en) BMC management architecture based on CAN bus
US20040143781A1 (en) System and method for non-intrusive loopback testing
CN100518097C (en) Simple detection method for GGSN facilities
CN101159955B (en) Service quality measuring method and system based on media gateway control protocol network
CN101478448B (en) Control method and apparatus for Ethernet switching equipment
CN101931564B (en) Method and system for testing protocol anomaly, test device and control device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20120111

Termination date: 20180115