CN101217422A - A method to test the performance of net mouth - Google Patents
A method to test the performance of net mouth Download PDFInfo
- Publication number
- CN101217422A CN101217422A CNA2008100010417A CN200810001041A CN101217422A CN 101217422 A CN101217422 A CN 101217422A CN A2008100010417 A CNA2008100010417 A CN A2008100010417A CN 200810001041 A CN200810001041 A CN 200810001041A CN 101217422 A CN101217422 A CN 101217422A
- 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.)
- Granted
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
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 undertaken by 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 as SmartBits, configuration is complicated, and cost is higher.
Summary of the invention
The technical problem to be solved in the present invention 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 described timer started, the described network interface of giving out a contract for a project of described timer control sent packet, counters count relevant test data to connecing the bag network interface when tested network interface; Wherein, the described network interface and describedly meet bag in the network interface and be described tested network interface of giving out a contract for a project;
After c, the described network interface of giving out a contract for a project stopped to give out a contract for a project, described timer quit work;
D, calculate the performance index of described tested network interface according to described relevant test data.
Further, said method also can have following feature: the described network interface of giving out a contract for a project wraps network interface on same veneer or different veneer with described connecing.
Further, said method also can have following feature: before or after the step a, further comprising the steps of A: be respectively the described 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 described network interface of giving out a contract for a project is set to loopback test or only sends packet; The described test pattern that connects the bag network interface is set to receive only packet.
Further, said method also can have following feature: 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 described network interface of giving out a contract for a project; Among the step b, described timer sends packet according to the described network interface of giving out a contract for a project of above-mentioned parameter control to the described bag network interface that connects.
Further, said method also can have following feature: in the steps A, comprise also in the described 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 described transmission duration or tester, the described 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 feature: in the steps A, the described network interface of giving out a contract for a project is provided with the described parameter of giving out a contract for a project by a veneer terminal that links to each other with its place veneer; The described bag network interface that connects is provided with described test pattern by a veneer terminal that links to each other with its place veneer.
Further, said method also can have following feature: before the step b, comprise that also one creates the step of print server; In the steps d, the performance index of described tested network interface are by described print server printout.
Further, said method also can have following feature: the described 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 described network interface of giving out a contract for a project and the described network interface of giving out a contract for a project send; The described bag network interface place veneer that connects is printed described bag number and the described bag number that connect bag network interface reception of network interface to its transmission of being informed of a case that upper-layer protocol receives on it.
Adopt the method for the invention, send the number of times of bag and the quantity that at every turn needs to send bag, 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 by utilizing timer control per second.
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 schematic diagram that parameter is provided with by the veneer terminal in the embodiment of the invention.
Embodiment
Below in conjunction with drawings and Examples technical scheme of the present invention is described in detail.
Below by introducing the network port performance test that the method is applied to the mobile communication base station veneer, further specify this and send described network port performance method of testing.
Concrete test process as shown in Figure 1, may further comprise the steps (wherein, give out a contract for a project network interface and connect the bag network interface one of them for tested network interface, and the two is on same veneer or different veneer, and also may 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 and when connecing the bag network interface and being 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 parameter such as duration (unit for 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 by but be not limited to realize by the program on the veneer terminal (being display unit) that links to each other with above-mentioned veneer.Input test order (as NetTest) on this veneer terminal as shown in Figure 2, can demonstrate the parameter that needs setting on the veneer terminal, 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, 1 expression only sends packet, 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.Reset counter, this counter are mainly used to add up the transmitting-receiving bag quantity of 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.Like this every 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, as: give out a contract for a project network interface and connect bag number that the upper-layer protocol of transmitting-receiving bag quantity, the network interface place veneer of giving out a contract for a project of 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 by print server.The network interface place veneer of giving out a contract for a project is printed the upper strata and is issued the bag number of tested network interface and give out a contract for a project network interface transmission bag number; Connecing bag network interface place veneer prints and connects that the bag network interface sends to the bag number on upper strata and this connects bag network interface receiver packet number.Simultaneously can count packet loss and hardware packet loss according to above-mentioned data: wherein the upper-layer protocol of packet loss=(upper-layer protocol of the network interface place veneer of giving out a contract for a project 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 place veneer of giving out a contract for a project 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 described timer started, the described network interface of giving out a contract for a project of described timer control sent packet, counters count relevant test data to connecing the bag network interface when tested network interface; Wherein, the described network interface and describedly meet bag in the network interface and be described tested network interface of giving out a contract for a project;
After c, the described network interface of giving out a contract for a project stopped to give out a contract for a project, described timer quit work;
D, calculate the performance index of described tested network interface according to described relevant test data.
2. the method for claim 1 is characterized in that,
The described network interface of giving out a contract for a project wraps network interface on same veneer or different veneer with described connecing.
3. the method for claim 1 is characterized in that,
Before or after the step a, further comprising the steps of A: be respectively described give out a contract for a project network interface and connect the bag network interface test pattern is set: the test pattern of the described network interface of giving out a contract for a project is set to loopback test or only sends packet; The described 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 described network interface of giving out a contract for a project; Among the step b, described timer sends packet according to the described network interface of giving out a contract for a project of above-mentioned parameter control to the described bag network interface that connects.
5. method as claimed in claim 4 is characterized in that,
In the steps A, comprise also in the described 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 described transmission duration or tester, the described network interface of giving out a contract for a project stops to give out a contract for a project.
6. as claim 3,4 or 5 described methods, it is characterized in that,
In the steps A, the described network interface of giving out a contract for a project is provided with the described parameter of giving out a contract for a project by a veneer terminal that links to each other with its place veneer; The described bag network interface that connects is provided with described test pattern by a veneer terminal that links to each other with its place veneer.
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 described tested network interface are by described print server printout.
8. method as claimed in claim 7 is characterized in that,
The described 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 described network interface of giving out a contract for a project and the described network interface of giving out a contract for a project send; The described bag network interface place veneer that connects is printed described bag number and the described bag number that connect bag network interface reception of network interface to its transmission of being informed of a case that upper-layer protocol receives on it.
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 true CN101217422A (en) | 2008-07-09 |
CN101217422B 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) |
Cited By (8)
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 |
CN102571482A (en) * | 2011-11-28 | 2012-07-11 | 曙光信息产业(北京)有限公司 | System and method for testing stability of network card |
CN103139823A (en) * | 2011-11-25 | 2013-06-05 | 亚旭电子科技(江苏)有限公司 | Method and system for testing wireless network device |
CN104683175A (en) * | 2013-12-03 | 2015-06-03 | 华为技术有限公司 | Network performance testing method and testing device |
CN106055441A (en) * | 2016-05-31 | 2016-10-26 | 深圳市国鑫恒宇科技有限公司 | Internet access performance testing method and system of servers under linux system |
CN108134689A (en) * | 2017-12-11 | 2018-06-08 | 杭州迪普科技股份有限公司 | Cascade port trouble shooting method and device inside a kind of 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 |
CN111427814A (en) * | 2020-03-05 | 2020-07-17 | 深圳震有科技股份有限公司 | Inter-core communication method based on AMP system, terminal and storage medium |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN100583784C (en) * | 2005-03-30 | 2010-01-20 | 华为技术有限公司 | Method for monitoring frame loss rate in multi protocol label exchange network |
CN100372317C (en) * | 2005-05-13 | 2008-02-27 | 清华大学 | 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 |
CN101083570B (en) * | 2007-06-26 | 2010-06-09 | 中兴通讯股份有限公司 | Method and apparatus for testing single board throughput performance of broadband access system |
-
2008
- 2008-01-15 CN CN2008100010417A patent/CN101217422B/en not_active Expired - Fee Related
Cited By (11)
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 |
CN104683175A (en) * | 2013-12-03 | 2015-06-03 | 华为技术有限公司 | Network performance testing method and testing device |
CN104683175B (en) * | 2013-12-03 | 2018-05-11 | 华为技术有限公司 | The method and test device of applied in network performance test |
CN106055441A (en) * | 2016-05-31 | 2016-10-26 | 深圳市国鑫恒宇科技有限公司 | Internet access performance testing method and system of servers under linux system |
CN106055441B (en) * | 2016-05-31 | 2019-06-14 | 深圳市同泰怡信息技术有限公司 | The network port performance test method and system of server under a kind of Linux system |
CN108134689A (en) * | 2017-12-11 | 2018-06-08 | 杭州迪普科技股份有限公司 | Cascade port trouble shooting method and device inside a kind of frame type equipment |
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 |
CN111427814A (en) * | 2020-03-05 | 2020-07-17 | 深圳震有科技股份有限公司 | Inter-core communication method based on AMP system, terminal and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN101217422B (en) | 2012-01-11 |
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 | |
CN106789430B (en) | A kind of point-to-point link fault detection method | |
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 | |
CN106230634A (en) | The diagnostic method of a kind of link failure, device and Set Top Box | |
CN102104502A (en) | Ethernet equipment performance test platform based on Linux system | |
CN101527932A (en) | Method for performing buffer status reporting and communication apparatus thereof | |
CN104661246A (en) | Performance testing method and device of novel wireless network products | |
CN101232412B (en) | Communication network element performance test apparatus and method | |
CN110290187A (en) | Transmission method and device, storage medium, the electronic device of data information | |
US9985864B2 (en) | High precision packet generation in software using a hardware time stamp counter | |
CN101237450A (en) | Method and apparatus for handling packets in a wireless communications system | |
CN101072135A (en) | Wireless LAN testing method and system | |
CN101383731A (en) | Network card test system | |
US20040143781A1 (en) | System and method for non-intrusive loopback testing | |
CN101631074B (en) | Multilink message sending method, device and network equipment | |
CN104991848A (en) | Method and system for implementing Key code burning on basis of MSComm control | |
CN107769960B (en) | BMC management architecture based on CAN bus | |
CN100518097C (en) | Simple detection method for GGSN facilities | |
CN101159955B (en) | Service quality measuring method and system based on media gateway control protocol network | |
CN101931564B (en) | Method and system for testing protocol anomaly, test device and control device | |
CN202094915U (en) | Tester aiming at network transmission rate in network television |
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 |
Granted publication date: 20120111 Termination date: 20180115 |
|
CF01 | Termination of patent right due to non-payment of annual fee |