CN109818830A - A method of based on the network interface card rate and dual-mode test under Linux platform - Google Patents

A method of based on the network interface card rate and dual-mode test under Linux platform Download PDF

Info

Publication number
CN109818830A
CN109818830A CN201910147431.3A CN201910147431A CN109818830A CN 109818830 A CN109818830 A CN 109818830A CN 201910147431 A CN201910147431 A CN 201910147431A CN 109818830 A CN109818830 A CN 109818830A
Authority
CN
China
Prior art keywords
network interface
dual
mode
rate
interface card
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
CN201910147431.3A
Other languages
Chinese (zh)
Inventor
史慧娟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Wave Intelligent Technology Co Ltd
Original Assignee
Suzhou Wave Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suzhou Wave Intelligent Technology Co Ltd filed Critical Suzhou Wave Intelligent Technology Co Ltd
Priority to CN201910147431.3A priority Critical patent/CN109818830A/en
Publication of CN109818830A publication Critical patent/CN109818830A/en
Pending legal-status Critical Current

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

A kind of method of network interface card rate and dual-mode test based under Linux platform proposed by the present invention, it is applicable in the operating systems such as the red cap of x86 framework and Centos and Suse, the present invention is by being connected to stability test under different speed and single dual-mode using automatized script progress network interface card, convenient for efficiently finding the problems in test, be conducive to promote production quality, and workflow can be enormously simplified, the consumption of human resources is reduced, improves working efficiency.

Description

A method of based on the network interface card rate and dual-mode test under Linux platform
Technical field
The present invention relates to field of computer technology, more particularly to a kind of network interface card speed based under Linux platform The method of rate and dual-mode test.
Background technique
With the development of social economy and the progress of Internet technology, nowadays our life is become computer network Must be more convenient, fast.People do shopping on the internet, browse national matters and hospital's reservation is registered, public transport subway By bus etc., these activities produce very large data set, therefore the demand to network is increasing.With computer network The hope that application of the network in life every profession and trade allows ' not going out family, know all over the world ' can enjoy all at home is achieved.Interconnection The net nowadays more and more important role of performer in life.
Development based on the society dependence increasing for network, at this stage constantly increases the demand of network technology Greatly, lower server of many occasions can all be equipped at least one and throw the net card shipment, thus stability for network connection and The adaptability of network environment has increasingly higher demands.
But the workflow of the test method of existing server network interface card function is sufficiently complex, can not simultaneously Test Network Be stuck in different speed and full duplex and semiduplex mode lower network is connected to stability, take a large amount of testing time and The cost of manpower test.
Summary of the invention
In view of the above problems, the purpose of the present invention is to provide a kind of network interface card rates and duplex based under Linux platform Mode test method, using automatized script realize test network interface card speed and list dual-mode under the stability being connected to, Convenient for efficiently finding the problems in test, the quality of product is improved.
The present invention to achieve the above object, is achieved through the following technical solutions: a kind of network interface card speed based under Linux platform The method of rate and dual-mode test, includes the following steps:
Step 1: diagnosing all NIC port numbers and the speed and duplex mode number of SUT and CLIENENT;
Step 2: selecting rate and the identical network interface of dual-mode at the end SUT and client and tested;
Step 3: ping test is carried out to the network interface;
Step 4: collecting test result and save log;
Step 5: in the case where auto-negotiation is opened, setting the duplex and rate mould of all network interfaces again Formula.
Further, the Linux platform uses 7 operating system of Redhat.
Further, the step 1 includes:
Step 11: setting static IP in the operating system of the end client Redhat 7;
Step 12: setting static IP in the operating system of the end SUT Redhat 7;
Step 13: setting SSH exempts from password login;
Step 14: obtaining the rate and dual-mode that network interface can be supported.
Further, after the completion of the step 2 includes: primary test, master_eths [0] and slave_eths [0] are used It is tested to control other network interfaces.
Further, the step 2 further include:
Obtain the current end SUT and client and dual-mode rate, and judge whether that setting comes into force;
If setting comes into force, step 3 is gone to.
Further, after the step 5 further include:
Step 6: controlling master_eths [0] using master_eths [0] and slave_eths [0] and tested;
Step 7: the rate and dual-mode for obtaining the current end SUT and client check whether setting comes into force.
Further, after the step 7 further include:
Step 8: deleting temporary file.
Further, it in the step 5, waits 5 seconds, makes after the completion of duplex and the rate mode setting of each network interface It must be arranged and come into force.
The prior art is compared, the beneficial effects of the invention are that: a kind of network interface card based under Linux platform proposed by the present invention The method of rate and dual-mode test, is applicable in the operating systems such as the red cap of x86 framework and Centos and Suse, and the present invention is logical It crosses and is connected to stability test under different speed and single dual-mode using automatized script progress network interface card, convenient for efficiently It was found that the problems in test, is conducive to promote production quality, and can enormously simplify workflow, manpower money is reduced The consumption in source improves working efficiency.
In addition, the present invention is based on linux system, it is versatile, it is widely used, test result is reliable and stable.
It can be seen that compared with prior art, the present invention implementing with substantive distinguishing features outstanding and significant progress Beneficial effect be also obvious.
Detailed description of the invention
Attached drawing 1 is the method flow diagram of the embodiment of the present invention one.
Attached drawing 2 is the method flow diagram of the embodiment of the present invention two.
Specific embodiment
It explains with reference to the accompanying drawing to a specific embodiment of the invention.
Embodiment one:
A kind of method of network interface card rate and dual-mode test based under Linux platform as shown in Figure 1, including it is as follows Step:
Step 1: diagnosing all NIC port numbers and the speed and duplex mode number of SUT and CLIENENT.
Step 2: selecting rate and the identical network interface of dual-mode at the end SUT and client and tested.
Step 3: ping test is carried out to the network interface.
Step 4: collecting test result and save log.
Step 5: in the case where auto-negotiation is opened, setting the duplex and rate mould of all network interfaces again Formula.
Embodiment two:
A kind of method of network interface card rate and dual-mode test based under Linux platform as shown in Figure 2, it is described Linux platform uses 7 operating system of Redhat, includes the following steps:
Step 1: setting static IP in the operating system of the end client Redhat 7.
Step 2: setting static IP in the operating system of the end SUT Redhat 7.
Step 3: setting SSH exempts from password login.
Step 4: obtaining the rate and dual-mode that network interface can be supported.
Step 5: selecting rate and the identical network interface of dual-mode at the end SUT and client and tested.
Step 6: being tested using master_eths [0] and slave_eths [0] to control other network interfaces.
Step 7: obtain the current end SUT and client and dual-mode rate, and judge whether that setting comes into force.
Step 8: if setting comes into force, ping test being carried out to the network interface.
Step 9: collecting test result and save log.
Step 10: in the case where auto-negotiation is opened, setting the duplex and rate of all network interfaces again Mode.
Wherein, it is waited 5 seconds after the completion of the duplex of each network interface and rate mode setting, so that setting comes into force.
Step 11: controlling master_eths [0] using master_eths [0] and slave_eths [0] and tested.
Step 12: the rate and dual-mode for obtaining the current end SUT and client check whether setting comes into force.
Step 13: deleting temporary file.
Based on the method that the above-mentioned network interface card rate based under Linux platform and dual-mode are tested, specific script Content is as follows:
With reference to the drawings and specific embodiments, the invention will be further described.It should be understood that these embodiments are merely to illustrate The present invention rather than limit the scope of the invention.In addition, it should also be understood that, after reading the content taught by the present invention, this field Technical staff can make various changes or modifications the present invention, and such equivalent forms equally fall within range defined herein.

Claims (8)

1. a kind of method of network interface card rate and dual-mode test based under Linux platform, which is characterized in that including walking as follows It is rapid:
Step 1: diagnosing all NIC port numbers and the speed and duplex mode number of SUT and CLIENENT;
Step 2: selecting rate and the identical network interface of dual-mode at the end SUT and client and tested;
Step 3: ping test is carried out to the network interface;
Step 4: collecting test result and save log;
Step 5: in the case where auto-negotiation is opened, setting the duplex and rate mode of all network interfaces again.
2. the method for the network interface card rate and dual-mode test according to claim 1 based under Linux platform, feature Be: the Linux platform uses 7 operating system of Redhat.
3. the method for the network interface card rate and dual-mode test according to claim 2 based under Linux platform, feature It is, the step 1 includes:
Step 11: setting static IP in the operating system of the end client Redhat 7;
Step 12: setting static IP in the operating system of the end SUT Redhat 7;
Step 13: setting SSH exempts from password login;
Step 14: obtaining the rate and dual-mode that network interface can be supported.
4. the method for the network interface card rate and dual-mode test according to claim 1 based under Linux platform, feature It is, the step 2 includes: after the completion of once testing, to control it using master_eths [0] and slave_eths [0] His network interface is tested.
5. the method for the network interface card rate and dual-mode test according to claim 1 based under Linux platform, feature It is, the step 2 further include:
Obtain the current end SUT and client and dual-mode rate, and judge whether that setting comes into force;
If setting comes into force, step 3 is gone to.
6. the method for the network interface card rate and dual-mode test according to claim 1 based under Linux platform, feature It is, after the step 5 further include:
Step 6: controlling master_eths [0] using master_eths [0] and slave_eths [0] and tested;
Step 7: the rate and dual-mode for obtaining the current end SUT and client check whether setting comes into force.
7. the method for the network interface card rate and dual-mode test according to claim 6 based under Linux platform, feature It is, after the step 7 further include:
Step 8: deleting temporary file.
8. the method for the network interface card rate and dual-mode test according to claim 1 based under Linux platform, feature It is, in the step 5, is waited 5 seconds after the completion of duplex and the rate mode setting of each network interface, so that setting life Effect.
CN201910147431.3A 2019-02-27 2019-02-27 A method of based on the network interface card rate and dual-mode test under Linux platform Pending CN109818830A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910147431.3A CN109818830A (en) 2019-02-27 2019-02-27 A method of based on the network interface card rate and dual-mode test under Linux platform

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910147431.3A CN109818830A (en) 2019-02-27 2019-02-27 A method of based on the network interface card rate and dual-mode test under Linux platform

Publications (1)

Publication Number Publication Date
CN109818830A true CN109818830A (en) 2019-05-28

Family

ID=66607677

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910147431.3A Pending CN109818830A (en) 2019-02-27 2019-02-27 A method of based on the network interface card rate and dual-mode test under Linux platform

Country Status (1)

Country Link
CN (1) CN109818830A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110377474A (en) * 2019-06-29 2019-10-25 苏州浪潮智能科技有限公司 A kind of loop test method and system of Mellanox network interface card
CN111490909A (en) * 2020-03-08 2020-08-04 苏州浪潮智能科技有限公司 Method for testing server NIC function

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6874147B1 (en) * 1999-11-18 2005-03-29 Intel Corporation Apparatus and method for networking driver protocol enhancement
CN101882099A (en) * 2009-05-06 2010-11-10 鸿富锦精密工业(深圳)有限公司 Network card test system and method
CN102185733A (en) * 2011-04-13 2011-09-14 深圳宝德科技集团股份有限公司 Network card testing method and system
CN104811353A (en) * 2015-05-05 2015-07-29 浪潮电子信息产业股份有限公司 Linux system based automatic network card performance test environment construction method
CN107872365A (en) * 2017-10-23 2018-04-03 上海斐讯数据通信技术有限公司 A kind of Ethernet fourdrinier wire beats stream performance test methods and system
CN107968734A (en) * 2017-11-29 2018-04-27 郑州云海信息技术有限公司 A kind of method of the automatic test Network Packet Loss performance under network card binding pattern
CN109388530A (en) * 2018-08-22 2019-02-26 华东计算技术研究所(中国电子科技集团公司第三十二研究所) Blade server-oriented automatic test platform and test method

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6874147B1 (en) * 1999-11-18 2005-03-29 Intel Corporation Apparatus and method for networking driver protocol enhancement
CN101882099A (en) * 2009-05-06 2010-11-10 鸿富锦精密工业(深圳)有限公司 Network card test system and method
CN102185733A (en) * 2011-04-13 2011-09-14 深圳宝德科技集团股份有限公司 Network card testing method and system
CN104811353A (en) * 2015-05-05 2015-07-29 浪潮电子信息产业股份有限公司 Linux system based automatic network card performance test environment construction method
CN107872365A (en) * 2017-10-23 2018-04-03 上海斐讯数据通信技术有限公司 A kind of Ethernet fourdrinier wire beats stream performance test methods and system
CN107968734A (en) * 2017-11-29 2018-04-27 郑州云海信息技术有限公司 A kind of method of the automatic test Network Packet Loss performance under network card binding pattern
CN109388530A (en) * 2018-08-22 2019-02-26 华东计算技术研究所(中国电子科技集团公司第三十二研究所) Blade server-oriented automatic test platform and test method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
DKCNDK,: ""多网卡的7种bond模式原理"", 《WWW.CNBLOGS.COM/DKBLOG/P/3613407.HTML》 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110377474A (en) * 2019-06-29 2019-10-25 苏州浪潮智能科技有限公司 A kind of loop test method and system of Mellanox network interface card
CN111490909A (en) * 2020-03-08 2020-08-04 苏州浪潮智能科技有限公司 Method for testing server NIC function
CN111490909B (en) * 2020-03-08 2022-04-26 苏州浪潮智能科技有限公司 Method for testing server NIC function

Similar Documents

Publication Publication Date Title
CN102468981B (en) Systems and methods for business network management discovery and consolidation
TW200809664A (en) Method an apparatus for middleware assisted system integration in a federated environment
US11509505B2 (en) Method and apparatus for operating smart network interface card
CN104199723B (en) Camera mapping method based on virtual equipment
CN104866418B (en) Automated testing method and system
CN109818830A (en) A method of based on the network interface card rate and dual-mode test under Linux platform
CN113806434B (en) Big data processing method, device, equipment and medium
US20160154900A1 (en) 3d model component comparing system and method thereof
CN108563455A (en) Middleware portion arranging method, system and equipment in a kind of K-UX operating systems
CN106230857A (en) A kind of active leakage location towards industrial control system and detection method
CN101094234A (en) Method and system of accurate recognition in P2P protocol based on behavior characteristics
WO2011082666A1 (en) Method and system for inviting the friends to experience the correlative products
CN104636441B (en) NFS implementation method and device
CN108173713A (en) A kind of more network interface card parallel test methods of list PC
CN109003670A (en) Big data medical information processing method, system, terminal device and storage medium
WO2017054307A1 (en) Recognition method and apparatus for user information
CN110399485A (en) The data source tracing method and system of word-based vector sum machine learning
CN107277180A (en) The processing system and method for internet resource popularization data
CN106324555A (en) General virtual electric energy meter for electric energy meter data acquisition terminal test system
CN104052632B (en) Equipment automatization method of testing and device based on virtual serial port server
CN105897884A (en) Android mobile phone push platform based on eXtensive messaging presence protocol (XMPP)
CN104268680A (en) Case detection process real-time synchronizing system
CN110427293A (en) Application processing method, device, equipment and medium
CN110825607A (en) Big data-based computer network test system
CN106610964A (en) Abnormal reimbursement data analysis method and server

Legal Events

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

Application publication date: 20190528