CN1519742A - Network card testing method capable of balancing loads - Google Patents
Network card testing method capable of balancing loads Download PDFInfo
- Publication number
- CN1519742A CN1519742A CNA031019072A CN03101907A CN1519742A CN 1519742 A CN1519742 A CN 1519742A CN A031019072 A CNA031019072 A CN A031019072A CN 03101907 A CN03101907 A CN 03101907A CN 1519742 A CN1519742 A CN 1519742A
- Authority
- CN
- China
- Prior art keywords
- network interface
- network
- server
- interface card
- 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.)
- Granted
Links
Images
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
Architecture of server/client is adopted in the invention. The method includes following steps. Computers with multiple network cards being installed at client end are connected to network composed of multiple servers. Next, network cards are scanned so as to obtain IP address of each network card. Server is manual assigned or automatic configured for each piece of network card by referencing server list, and structure of configured parameters of the network card is built. Finally, based on structure of configured parameters, testing is carried out for multiple network cards at same time, and connection testing is carried out for pointed any piece of network card. The invention prevents that program-reporting error occurs at testing end caused by no real time answer to lots of service requests since server in busy state. Thus, situation of putting key point on testing network card is reduced greatly if errors happen caused by network jam.
Description
Technical field
The present invention relates to a kind of network card testing method, relate in particular to a kind of method that adopts server/customer end constitution test network interface card.
Background technology
Along with computer network development, increasing people has touched network.LAN (Local Area Network) belongs to a kind of in the computer network, is a network system that exchanges data, resource sharing are provided.And one of major equipment of forming LAN (Local Area Network) is exactly a network interface card.Adapter (Network Interface Card) is called for short network interface card (NIC).Network interface card provides physical connection for the data communication between the computing machine.Each computing machine such as need access network must be installed network interface card.
Network interface card is a requisite basic equipment in the computer network, and network interface card breaks down has not just influenced workstation itself, also usually has influence on the normal operation of whole network.At present a lot of for the method for testing of network interface card, adopt server/customer end constitution mostly, the method for testing of prior art is the connected mode of " many-one ", and the only corresponding same server of promptly tested a plurality of network interface cards is connected test with same server.Fig. 1 is the synoptic diagram of the employing server/customer end constitution test network interface card of prior art.When adopting the connected mode of " many-one " among the figure, n network interface card is connected with a server 10.When a plurality of clients were sent test request, when being in busy condition as if server 10, a large amount of testing service requests just can not get real-time response, thereby can cause tested end program to report an error, and made in test process often owing to network congestion produces mistake.The network failure that the network interface card fault causes is often difficult judges that this is that the equipment that phenomenon of the failure is arranged often is not to be the equipment that fault has taken place because the network failure phenomenon that the network interface card fault causes has nothing in common with each other.In the connected mode that adopts " many-one ", when program reported an error, the tester also need check, actually or the problem of the problem network interface card to be measured of test lead program.Therefore not only increase tester's workload, also wasted a large amount of time, seriously influenced testing efficiency.
Summary of the invention
Technical matters to be solved by this invention is for providing a kind of network card testing method capable of balancing loads, and a plurality of network interface cards can be connected test with server manual or configuration automatically, thereby improve testing efficiency.
For achieving the above object, the invention provides a kind of network card testing method capable of balancing loads, adopt server/customer end constitution, at first, the client computer that a plurality of network interface cards are installed is inserted in the network of being made up of a plurality of server computer, scan network interface card then, obtaining the IP address of each piece network interface card, is each piece network interface card given server again, and sets up the configuration parameter structure of this network interface card, according to this configuration parameter structure, a plurality of network interface cards are tested simultaneously.
The invention provides a kind of network card testing method capable of balancing loads, adopt the framework of server/customer end, can specify different servers to connect test for a plurality of network interface cards that are installed on the client, alleviated load of server, the simultaneously balanced load of client, prevented that effectively when server was in busy condition, a large amount of services request can not get real-time response, and the test lead program that the occurs phenomenon that reports an error.And reduced the mistake that produces because of network congestion greatly.Test is focused in the test of network interface card hardware.When being applied on the production line large batch of test especially, testing efficiency is significantly improved.
For making purpose of the present invention, structural attitude and function thereof that further understanding be arranged, conjunction with figs. is described in detail as follows:
Description of drawings
Fig. 1 is the synoptic diagram of available technology adopting server/customer end constitution test network interface card;
Fig. 2 is the process flow diagram of network card testing method capable of balancing loads of the present invention;
Fig. 3 be among the present invention according to the configuration parameter structure, the process flow diagram that a plurality of network interface cards are tested simultaneously; And
Fig. 4 is the process flow diagram of according to protocol type network interface card specifically being tested among the present invention.
Wherein, description of reference numerals is as follows:
The 10--server, the client computer that step 211--will be equipped with a plurality of network interface cards inserts in the network of being made up of a plurality of server computer, step 212--scans network interface card, step 213--obtains the IP address of each piece network interface card, step 214--is each piece network interface card given server, and set up the configuration parameter structure of this network interface card, step 215--is according to the configuration parameter structure, a plurality of network interface cards are tested simultaneously, step 311--creates socket, step 312--is with the IP address binding of socket and acquisition, step 313--and specified server connect, step 314--tests according to protocol type, and step 411--user end to server end sends data, and step 412--server end receives data, and its former state returned to client, after step 413--client receives the data of returning, itself and the data that send are compared, step 414--draws test result according to comparative result.
Embodiment
The present invention is described in detail below in conjunction with accompanying drawing.
Network interface card is the physical medium of network, erects the bridge that is connected between unit and network.Network card testing method capable of balancing loads provided by the invention, Fig. 2 are the process flow diagrams of network card testing method capable of balancing loads.According to network card testing method capable of balancing loads provided by the invention, adopt server/customer end constitution, it can connect test by given server.At first, the client computer that a plurality of network interface cards are installed is inserted in the network of being made up of a plurality of server computer (step 211); Scan network interface card (step 212) then; Obtain the IP address (step 213) of each piece network interface card; Be each piece network interface card configuration server again, and set up the configuration parameter structure (step 214) of network interface card; At last, according to the configuration parameter structure, a plurality of network interface cards are tested (step 215) simultaneously.
Wherein, according to the configuration parameter structure, (see figure 3) in the process that a plurality of network interface cards are tested simultaneously at first, is created socket (Socket) (step 311) above-mentioned; Then, with the IP address binding (Bind) (step 312) of this socket and acquisition; Again with specified server connect (step 313); At last, test (step 314) according to agreement (protocol) type.
When adopting server/customer end constitution that network interface card is tested, at first a plurality of client computers and server end computing machine to be connected, described server can be one, also can be for a plurality of.Characteristics of the present invention are that client can connect with a plurality of servers.When network interface card was tested, client was inserted with the polylith network interface card.After installing network interface card, client is scanned, draw, be contained in the number of concrete network interface card of each client and the IP address of each network interface card by scanning.Network interface card all has the physical address of its address of unique expression, and this address writes among the ROM.To the network interface card that scans craft or Automatic Configuration Server one by one, a plurality of network interface cards on the same client can dispose same server, also can dispose different servers respectively again.This also is characteristic of the present invention place.Then, be each network interface card configuration parameter structure, each network interface card just all has a configuration parameter structural table like this.The configuration parameter structural table has been arranged, just can add agreement.According to workstations different in the network, can transmit data between the server, come from the existence of agreement.Communicate by letter successfully reliably in order to make, the All hosts in the network all must use unified agreement.Thereby each in each word in each bag between the standard definition main frame of necessary exploitation strictness.These standards come from the effort of a plurality of tissues, appoint general communication mode, i.e. agreement.Agreement all provides the facility of web application intercommunication together with network interface card.The present invention can be that each tested network interface card is specified different agreements according to configuration parameter.The for example Transmission Control Protocol or the udp protocol of transport layer in the ICP/IP protocol group (Transmission Control Protocol/Internet Protocol transmission control protocol/internet protocol).Network interface card also will be created socket before test, socket is the basis of communication, and a socket is exactly an end of communication.With socket of creating and the IP address binding that scans, network interface card just can carry out communication with specified server like this.Afterwards, just can data have been sent mutually.Fig. 4 is the process flow diagram that a plurality of network interface cards of the present invention are specifically tested simultaneously.The work that network interface card is finished is exactly to obtain data from computing machine, encode the data into then and send in the network on other the network interface card by network connection (netting twine) for specific format, when the network interface card of the other end receives these data, it gives Computer Processing the data layout that the data of specific format are converted to computer understanding again.Adopt server/customer end constitution to test, at first the user end to server end sends data (step 411), this server end receives data, and its former state returned to this client (step 412), after this client receives the data of returning, itself and the data that send are compared (step 413), draw test result (step 414) according to comparative result.
Network card testing method capable of balancing loads provided by the invention, both can use the means of a plurality of servers to come load in the balanced test macro, be the parameter configuration of carrying out that tested network interface card can utilize configuration module, select the type of attachment of many-one (being the corresponding servers of a plurality of network interface cards); Also can select man-to-man form (promptly a network interface card is corresponding to a server).Certainly, the method that can adopt above dual mode to mix.
The above only is preferred embodiment of the present invention, but is not to be used for limiting practical range of the present invention; Therefore the present invention's claim scope required for protection should be applied for that the claim of protecting is as the criterion with claims.
Claims (7)
1. a network card testing method capable of balancing loads is characterized in that, adopts server/customer end constitution, comprises the steps:
The client computer that a plurality of network interface cards are installed is inserted in the network of being made up of a plurality of server computer;
The scanning network interface card;
Obtain the IP address of each piece network interface card;
Be each piece network interface card given server, and set up the configuration parameter structure of network interface card; And
According to the configuration parameter structure, a plurality of network interface cards are tested simultaneously.
2. network card testing method capable of balancing loads as claimed in claim 1 is characterized in that, the step of scanning network interface card is the scanning client computer, goes out it with detection of dynamic network card number is installed.
3. network card testing method capable of balancing loads as claimed in claim 1 is characterized in that, is the step of each piece network interface card configuration server, is to specify identical server for each piece network interface card.
4. network card testing method capable of balancing loads as claimed in claim 1 is characterized in that, is the step of each piece network interface card configuration server, is to specify different servers for each piece network interface card.
5. network card testing method capable of balancing loads as claimed in claim 1 is characterized in that, according to this configuration parameter structure, the step to a plurality of network interface cards are tested simultaneously more comprises the steps:
Create socket (Socket);
IP address binding (Bind) with socket and acquisition;
Connect with specified server; And
Test according to protocol type.
6. network card testing method capable of balancing loads as claimed in claim 5 is characterized in that, agreement is an ICP/IP protocol.
7. network card testing method capable of balancing loads as claimed in claim 5 is characterized in that the step according to protocol type is tested more comprises the steps:
The user end to server end sends data;
Server end receives data, and its former state is returned to client;
After client receives the data of returning, itself and the data that send are compared; And
Draw test result according to comparative result.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 03101907 CN1261890C (en) | 2003-01-23 | 2003-01-23 | Network card testing method capable of balancing loads |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 03101907 CN1261890C (en) | 2003-01-23 | 2003-01-23 | Network card testing method capable of balancing loads |
Publications (2)
Publication Number | Publication Date |
---|---|
CN1519742A true CN1519742A (en) | 2004-08-11 |
CN1261890C CN1261890C (en) | 2006-06-28 |
Family
ID=34281505
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN 03101907 Expired - Fee Related CN1261890C (en) | 2003-01-23 | 2003-01-23 | Network card testing method capable of balancing loads |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN1261890C (en) |
Cited By (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN100367723C (en) * | 2004-12-31 | 2008-02-06 | 技嘉科技股份有限公司 | Dynamic monitoring and operating method for entity network layer state |
CN100414936C (en) * | 2006-06-30 | 2008-08-27 | 中国科学院计算技术研究所 | Method for balancing load between multi network cards of network file system server |
CN100438453C (en) * | 2005-11-08 | 2008-11-26 | 鸿富锦精密工业(深圳)有限公司 | A system and method to test network card |
CN101782869A (en) * | 2010-03-09 | 2010-07-21 | 南京航空航天大学 | Method for testing function of panel based on Bash shell script |
CN101729302B (en) * | 2008-10-31 | 2012-06-13 | 英业达股份有限公司 | Test system and automatic configuration method for internet protocol address thereof |
CN101349982B (en) * | 2007-07-20 | 2012-07-04 | 环达电脑(上海)有限公司 | Method for testing network card automatic switchover velocity mode under Windows |
WO2016188240A1 (en) * | 2016-01-07 | 2016-12-01 | 中兴通讯股份有限公司 | Method and device for configuring multiple network cards |
CN108173713A (en) * | 2017-12-26 | 2018-06-15 | 深圳市极致汇仪科技有限公司 | A kind of more network interface card parallel test methods of list PC |
CN108683556A (en) * | 2018-04-26 | 2018-10-19 | Tcl王牌电器(惠州)有限公司 | Detect the method, apparatus and computer storage media of network interface card functional status |
CN110048954A (en) * | 2018-01-17 | 2019-07-23 | 北京视联动力国际信息技术有限公司 | A kind of data transmission method and device |
CN112291181A (en) * | 2019-07-23 | 2021-01-29 | 腾讯科技(深圳)有限公司 | Data transmission method based on multiple network cards and related device |
CN112311625A (en) * | 2020-10-26 | 2021-02-02 | 珠海格力电器股份有限公司 | Network management method and device, storage medium and electronic device |
CN112583663A (en) * | 2020-12-08 | 2021-03-30 | 吉林大学 | Automatic network performance testing method based on domestic operating system |
CN115499346A (en) * | 2022-09-15 | 2022-12-20 | 巨擎网络科技(济南)有限公司 | Multi-network-card speed measuring method, device, equipment and medium |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101179411B (en) * | 2006-11-10 | 2011-03-02 | 中兴通讯股份有限公司 | Method of receiving multicast data using multi-network card in Linux system |
-
2003
- 2003-01-23 CN CN 03101907 patent/CN1261890C/en not_active Expired - Fee Related
Cited By (19)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN100367723C (en) * | 2004-12-31 | 2008-02-06 | 技嘉科技股份有限公司 | Dynamic monitoring and operating method for entity network layer state |
CN100438453C (en) * | 2005-11-08 | 2008-11-26 | 鸿富锦精密工业(深圳)有限公司 | A system and method to test network card |
CN100414936C (en) * | 2006-06-30 | 2008-08-27 | 中国科学院计算技术研究所 | Method for balancing load between multi network cards of network file system server |
CN101349982B (en) * | 2007-07-20 | 2012-07-04 | 环达电脑(上海)有限公司 | Method for testing network card automatic switchover velocity mode under Windows |
CN101729302B (en) * | 2008-10-31 | 2012-06-13 | 英业达股份有限公司 | Test system and automatic configuration method for internet protocol address thereof |
CN101782869A (en) * | 2010-03-09 | 2010-07-21 | 南京航空航天大学 | Method for testing function of panel based on Bash shell script |
CN106953795B (en) * | 2016-01-07 | 2020-07-31 | 南京中兴软件有限责任公司 | Method and device for configuring multiple network cards |
WO2016188240A1 (en) * | 2016-01-07 | 2016-12-01 | 中兴通讯股份有限公司 | Method and device for configuring multiple network cards |
CN106953795A (en) * | 2016-01-07 | 2017-07-14 | 中兴通讯股份有限公司 | Configure the method and device of many network interface cards |
CN108173713A (en) * | 2017-12-26 | 2018-06-15 | 深圳市极致汇仪科技有限公司 | A kind of more network interface card parallel test methods of list PC |
CN110048954A (en) * | 2018-01-17 | 2019-07-23 | 北京视联动力国际信息技术有限公司 | A kind of data transmission method and device |
CN108683556A (en) * | 2018-04-26 | 2018-10-19 | Tcl王牌电器(惠州)有限公司 | Detect the method, apparatus and computer storage media of network interface card functional status |
CN108683556B (en) * | 2018-04-26 | 2021-11-09 | Tcl王牌电器(惠州)有限公司 | Method and device for detecting functional state of network card and computer storage medium |
CN112291181A (en) * | 2019-07-23 | 2021-01-29 | 腾讯科技(深圳)有限公司 | Data transmission method based on multiple network cards and related device |
CN112291181B (en) * | 2019-07-23 | 2023-03-10 | 腾讯科技(深圳)有限公司 | Data transmission method based on multiple network cards and related device |
CN112311625A (en) * | 2020-10-26 | 2021-02-02 | 珠海格力电器股份有限公司 | Network management method and device, storage medium and electronic device |
CN112583663A (en) * | 2020-12-08 | 2021-03-30 | 吉林大学 | Automatic network performance testing method based on domestic operating system |
CN115499346A (en) * | 2022-09-15 | 2022-12-20 | 巨擎网络科技(济南)有限公司 | Multi-network-card speed measuring method, device, equipment and medium |
CN115499346B (en) * | 2022-09-15 | 2024-04-26 | 巨擎网络科技(济南)有限公司 | Speed measuring method, device, equipment and medium for multiple network cards |
Also Published As
Publication number | Publication date |
---|---|
CN1261890C (en) | 2006-06-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN1261890C (en) | Network card testing method capable of balancing loads | |
US7440415B2 (en) | Virtual network addresses | |
CN101425938B (en) | Method and apparatus for network apparatus test | |
US8793351B2 (en) | Automated configuration of new racks and other computing assets in a data center | |
US10341187B2 (en) | Discovering, defining, and implementing computer application topologies | |
CN105847023B (en) | Operation system network topology acquisition methods and device | |
CN109788055B (en) | Service management system and method based on micro-service architecture | |
CN112583648A (en) | Intelligent service fault processing method based on DNS | |
CN102143414A (en) | Method for implementing network connection test between local-side device and terminal device in EPON (Ethernet passive optical network) | |
CN1612544A (en) | Network bridge uplink port identification | |
CN108089968A (en) | A kind of method of host's machine monitoring virtual-machine data storehouse state | |
CN112637010A (en) | Equipment checking method and device | |
CN1845507A (en) | Multi-class device normalization network maintaining method and system | |
CN116455869A (en) | Method and system for efficiently configuring public network domain name based on Kubernetes | |
CN1609819B (en) | Test method for computer external equipment interface | |
TWI231122B (en) | Method for balancing load of network interface card testing | |
CN112787853B (en) | Automatic generation method and device of network change scheme and related equipment | |
CN104836689A (en) | Server fault transfer method and system | |
CN113242299A (en) | Disaster recovery system, method, computer device and medium for multiple data centers | |
CN2819663Y (en) | Intranet IP address discovering and blocking system | |
CN1925436A (en) | Method for test of network collecting equipment | |
CN109814871B (en) | Node management method and system based on DDS bus | |
CN106506268B (en) | Server access method and system | |
CN112822071B (en) | Network fault diagnosis method and device based on double-layer soft load architecture | |
CN109039680A (en) | A kind of method, system and BNG switching main wideband network gateway BNG and standby BNG |
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 | ||
C17 | Cessation of patent right | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20060628 Termination date: 20110123 |