CN102064971A - Pressure test method for network cards - Google Patents

Pressure test method for network cards Download PDF

Info

Publication number
CN102064971A
CN102064971A CN2009102221737A CN200910222173A CN102064971A CN 102064971 A CN102064971 A CN 102064971A CN 2009102221737 A CN2009102221737 A CN 2009102221737A CN 200910222173 A CN200910222173 A CN 200910222173A CN 102064971 A CN102064971 A CN 102064971A
Authority
CN
China
Prior art keywords
network card
server
path
network
user side
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
Application number
CN2009102221737A
Other languages
Chinese (zh)
Other versions
CN102064971B (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.)
NANJING PONDER ELECTRONIC TECHNOLOGY Co.,Ltd.
Original Assignee
Inventec 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 Inventec Corp filed Critical Inventec Corp
Priority to CN200910222173.7A priority Critical patent/CN102064971B/en
Publication of CN102064971A publication Critical patent/CN102064971A/en
Application granted granted Critical
Publication of CN102064971B publication Critical patent/CN102064971B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses a pressure test method for network cards. The method is used for pressure test of a plurality of network cards of a client and comprises the following steps of: establishing a strategy forwarding table, wherein the strategy forwarding table records route indexes and a route, and the route contains a server path and network card indexes; providing a strategy forwarding means for receiving test files and strategy information sent by the client; consulting the strategy forwarding table according to the strategy information to acquire a user path; transmitting the test files to a server through the specified network card according to the user path and the server path; and receiving the test files returned by the server through the specified network card of the client.

Description

The method for testing pressure of network card
Technical field
The present invention is about a kind of method for testing pressure of network card, particularly about a kind of method for testing pressure of selecting a network card of testing in many network cards.
Background technology
Development in science and technology so far, modern's life has almost be unable to do without network.And no matter be to connect calculator system to the internet (Internet), or the construction LAN (Local Area Internet, LAN), network card (Network Interface Card, NIC claim the network adapting card again) all is the most necessary.Network card connects for the data communication between the calculator system provides entity, and each desires the calculator system of access network all must install network card.Jue Daduoshuo mobile computer, desktop PC or server have network card in all on the market, it serves to show its popularization.
Just because network card is a basic equipment very important in the network computei, the fault of network card can influence the network function of the calculator system of operation; If the network card of critical server breaks down, even can have influence on the normal operation of whole network.Therefore the manufacturer of network card is before with product turnout, the test of the various strictnesses such as test or pressure test that all need to reset to each network card.
Wherein the file transfer test then is one of test event indispensable in the pressure test.Whether the file transfer test is to read and transmit file between a user side and a server end, normal to judge the transmission between user side and the server end.And whether file transfer test has also been tested the file read-write system to a certain extent and is cooperated the state of execution unusual with network card.
The router (router) that traditional method for testing pressure adopts only uses the router (router) of all routing tables (global routing table) usually, but the problem of traditional method regular meeting's generation network card coverage rate deficiency when desiring to test a plurality of network card simultaneously with a user side.In order to save testing equipment, a plurality of network cards may be configured in same user side simultaneously, but wherein have only a network card can be set to default network card.Though user side has a plurality of network cards simultaneously, user side generally only can carry out transceive data with default network card.Thus, not being set as other network card of presetting network card just can not used by user side.In other words, traditional method for testing pressure can't be tested the all-network card of user side, and causes network card coverage rate deficiency when testing, and can't reach the problem of pressure test purpose fully.
Summary of the invention
Can't test the all-network card of user side in order to solve traditional method for testing pressure, and cause network card coverage rate deficiency when testing, can't reach the problem of pressure test purpose fully, the invention provides a kind of method for testing pressure of network card.
The invention discloses a kind of method for testing pressure of network card, send test file by the user side with a plurality of network cards to server, the test file of user side and reception server passback is to carry out pressure test to these network cards.The pressure test mode of this network card is set up strategy table and provide strategy to pass on means is provided, to solve the above problems.
Strategy passes on shows to have network card index, server path and the route of a routing index, each network card.Add a policy information in this test file that sends, this policy information comprises this routing index of a user path and its correspondence;
Provide a strategy to pass on means, carry out the following step: receive test file and policy information that user side sent, wherein policy information comprises user path and its corresponding routing index, consult strategy according to routing index and pass on table, obtaining route, and route comprises the network card index of server path and appointment; According to user path and server path, server is given in the test file transmission via appointed network card; Via the test file that appointed network card reception server is passed back, wherein server is according to the user path; And server path is passed test file back; And the test file that receives transmitted give user side.
Wherein above-mentioned test file and policy information can be specified by a tester.In more detail, the tester can specify server to be measured and test file to be transmitted according to the demand of pressure test, obtains the policy information corresponding to server to be measured more in view of the above.
According to an enforcement example of the present invention, user side links to each other by a network with server.Implement example according to of the present invention another, user side links to each other by a hub with server.
In addition, strategy passes on means and can comprise in addition: the test file of original test file and server being passed back at user side compares, and exports comparing result according to this.
In sum, the method for testing pressure of network card passes on the Collaboration of means by policy information and strategy, passing on means by strategy searches built-in strategy according to policy information and passes on table, the network card that acquisition is desired to test, user path and server path, and then the network card by appointment transmits test file between user side and server.Thus, the transmission that user side can be just can carry out test file to all network cards with receive carrying out pressure test, and solve the problem of the network card coverage rate deficiency of traditional method of testing.
Description of drawings
Fig. 1 is the connection diagram of the one enforcement example according to the present invention; And
Fig. 2 is the schematic flow sheet of the method for testing pressure of the network card of one enforcement example according to the present invention.
Wherein, Reference numeral:
20 user sides
21,21a, 21b network card
22 servers
24 strategies pass on means
Embodiment
Below in execution mode, be described in detail detailed features of the present invention and advantage, its content is enough to make any those skilled in the art to understand technology contents of the present invention and implements according to this, and according to the disclosed content of this specification, claim and accompanying drawing, any those skilled in the art can understand purpose and the advantage that the present invention is correlated with easily.
The method for testing pressure that the invention provides a kind of network card is applicable between a user side and the server, wherein user side have a plurality of network cards (Network Interface Card, NIC).Please refer to Fig. 1, it is the connection diagram of the one enforcement example according to the present invention.Can be seen by Fig. 1 and to know that user side 20 links to each other with server 22, and user side 20 has network card 21a and network card 21b, user side 20 also can be carried out a strategy and pass on means 24.
User side 20 can be calculator systems such as main frame or desktop PC, and has a plurality of network cards 21 simultaneously.As shown in Figure 1, user side 20 has network card 21a and network card 21b, and user side 20 can be by arbitrary network card 21 transceive data.That is to say, user side 20 by arbitrary network card 21 that it had all can connect internet (Internet), local area network (LAN) (Local Area Network, LAN) or other calculator system.Wherein network card 21a is set at default network card 21 by user side 20, so do not have under the specially appointed situation in the network package (packet) of transceive data, user side 20 is all by network card 21a transceive data.
Server 22 also can be calculator systems such as the main frame or the webserver.Server 22 has a shared catalogue can be opened for user side 20, and user side 20 has the read-write right of share directory.In other words, user side 20 can write new file in share directory, also can read the file in the share directory.
And user side 20 can link to each other by networks such as internet or local area network (LAN)s with server 22.More preferably, user side 20 also can link to each other by a hub (hub) with server 22, or directly links to each other in the mode of wire jumper (cross over).According to an enforcement example of the present invention, user side 20 is configured in laboratory or the factory building of testing usefulness with server 22, and user side 20 only links to each other to carry out method for testing pressure by hub with server 22.
Next please be simultaneously with reference to Fig. 2, implement the flow chart of example for one of the method for testing pressure of network card of the present invention.
Can see by Fig. 2 and to know that the method for testing pressure of network card can comprise step S30: specify one of these network cards 21; Step S32 a: test file and a policy information are sent to strategy pass on means 24; Step S33: search a strategy according to policy information and pass on table, to obtain a user path and a server path; Step S34:, test file is sent to server by appointed network card according to user path and server path; Step S36: make server that the test file that is transmitted is write server; Step S38: make server send test file to user side according to user path and server path; Step S40: by appointed network card acceptance test file; Step S42: contrast the original test file and the test file of reception; And step S44: output one contrast result.
User side 20 has network card tabulation, and note has a network card title and a network card index of each network card 21 in the table.More preferably, a medium access control address (Media Access Control address, MAC address also is called MAC Address) that comprises each network card 21 in the network card tabulation in addition.
The content of network card tabulation is exemplified below:
The network card title The network card index The MAC Address of network card
Eth1
1 00:23:18:66:05:F1
Eth2 2 00:23:18:66:05:F2
So in step S30, the middle selection one of a plurality of network cards 21 that can be had by user side 20 is in order to carry out method for testing pressure.Network card 21b is designated in this enforcement example, and the method for testing pressure of network card use network card 21 carries out the transmission between user side 20 and the server 22.Then in step S32, the method for testing pressure of network card sends to strategy with test file and policy information and passes on means 24, sends test file to server 22 to make strategy pass on means 24 according to policy information.Wherein policy information can be incorporated in the test file, and policy information can comprise a routing index of a user path and its correspondence.The user path can comprise an Internet Protocol address (Internet Protocoladdress, IP address also are called the IP address) or the IP network section of user side; More preferably, the user path comprises the MAC Address of this user side.For example, the content of policy information can be [192.168.1.101/00:23:18:66:05:F1,1].
Therefore in the policy information that sends, can specify the network card 21 that this time carries out method for testing pressure by user path and routing index.In more detail, the method for testing pressure of network card passes on means 24 with network card 21b transmission test file by policy information indication strategy.
In addition, above-mentioned test file and policy information can be specified by a tester.In more detail, the tester can specify server 22 to be measured and test file to be transmitted according to the demand of pressure test, obtains the policy information corresponding to server to be measured 22 more in view of the above.In step S33, strategy passes on means to be searched a strategy according to policy information and passes on table, to obtain server path and network card index; And in step S34, strategy passes on means according to the server path that user path in the policy information and inquiry obtain, and via appointed network card test file is sent to server.
After receiving policy information, strategy passes on means 24 and passes on table according to the network card index search strategy of appointment in the policy information.Strategy passes on table to be set up in advance and finishes, and passes on means 24 for strategy and searches.Strategy passes on to be shown to comprise a routing index and a route, and route can comprise server path and network card index.Wherein server path can comprise the IP address or the IP network section of server; More preferably, server path comprises a connectivity port (port) of server.
Strategy pass on means 24 then and according to 22 of user side 20 and servers from the IP addresses send documents.
Strategy pass on the table content be exemplified below:
Routing index Route
1 [192.168.1.100:80,1]
2 [192.168.1.100:80,2]
By the routing index of appointment in the policy information, can in passing on table, strategy find out corresponding route.Thus, can obtain the network card index, and the MAC Address that need carry out the network card 21 of method for testing pressure.According to network card index and the MAC Address of network card 21b, strategy passes on means 24 and just can specified network card 21b send the work of test file, but not is sent by default network card 21a.
Strategy passes on table and comprises the IP address or the network segment of server 22, thus strategy pass on means 24 according to this IP address/network segment send documents and give server 22.Thus, pass on the IP address/network segment of corresponding server 22 in the table by change strategy, user side 20 can carry out method for testing pressure with different servers 22, or makes different network card 21 carry out method for testing pressure with different server 22.
Pass on the information that provided of table according to policy information and strategy, strategy passes on means 24 and just can obtain IP address/network segment of appointed network card 21b and MAC Address as the user side path.Relative, server path comprises the connectivity port of the IP address/network segment and the server 22 of server 22.
If user side 20 directly links to each other for (by hub or wire jumper) with server 22, or be configured in the same district net, user side 20 can obtain the MAC Address of server 22 by the network mechanism of broadcasting packages.But the MAC Address of server network card can be built in strategy in the lump with the IP address of server 22 passes in the table, to save the time of the MAC Address of seeking server.
After obtaining user path and server path, strategy passes on means 24 and by appointed network card 21b test file is transmitted and give server 22.With Internet Protocol, when user side 20 transmission test files gave server 22, user side 20 was a source end (source), and server is a destination (destination).Strategy passes on means 24 according to user path and server path, the network package that includes test file can be sent to server 22 to meet the Internet Protocol mode.
After server 22 was received test file, S36 write share directory with test file in step.Then in step S38, server 22 is according to user path and server path, reads the test file that writes in step S36 and sends to user side 20.Server 22 can be resolved network package that user side 20 transmits obtaining user path and server path, and with the MAC Address of the appointed network card 21b of user side 20 test file is sent to appointed network card 21b.And when server 22 transmission test files gave user side 20, this moment, user side 20 was a destination, and server 22 sides are the source end.
Then in step S40, the method for testing pressure of network card (user side 20) is from appointed network card 21b acceptance test file.Thus, can avoid user side 20, and make the situation that other network card 21 is not utilized all with default network card 21a transceive data.
The method for testing pressure of network card compares test file originally in step S42 with the test file that receives in step S40, to confirm online whether normal between above-mentioned user side 20 and the server 22.If comparing result is identical, then the method for testing pressure of network card can be in step S44 output " correctly " result as a comparison; Then exportable otherwise " mistake " be the result as a comparison.
And according to an enforcement example of the present invention, the method for testing pressure of network card can repeat above-mentioned steps, whether can bear the lot of data accessing operation with test particular network card, or whether performance significantly decreases in the test process.In addition, implement example according to of the present invention another, the method for testing pressure of network card repeats pressure test to different network cards, to reach required network card coverage rate and pressure test.
In sum, can specify arbitrary network card to carry out pressure test by policy information according to the method for testing pressure of the network card of enforcement example of the present invention.The method for testing pressure of network card is specified the network card of desiring to test, and sends policy information and give strategy and pass on means to inform appointed network card.Strategy passes on means to be searched built-in strategy according to policy information and passes on table, obtain user path and server path after, and network card transmission data that can be by appointment are between user side and server.Thus, user side can use arbitrary network card to carry out transceive data carrying out pressure test, and solves the problem of the network card coverage rate deficiency of traditional method of testing.

Claims (6)

1. the method for testing pressure of a network card sends a test file by the user side with a plurality of network cards to a server, and this user side also receives this test file that this server returns, and so that those network cards are carried out pressure test, it is characterized in that:
Set up a strategy and pass on table, this strategy passes on a network card index that records a routing index, a server path and each those network card in the table;
Add a policy information in this test file that sends, this policy information comprises this routing index of a user path and its correspondence; And
Provide a strategy to pass on means, carry out the following step:
Receive this test file and this policy information that this user side sends;
Consult this strategy according to this policy information and pass on table, to obtain a route, this route comprises this network card index of this network card of this server path and an appointment;
According to this user path and this server path, this server is given in this test file transmission via appointed this network card;
Receive this test file that this server is passed back via appointed this network card, wherein this server is passed this test file back according to this user path and this server path; And
This user side is given in this test file transmission that receives.
2. the method for testing pressure of network card as claimed in claim 1, it is characterized in that: this user path comprises an Internet Protocol address or an IP network section of this user side.
3. the method for testing pressure of network card as claimed in claim 1, it is characterized in that: this user path also comprises a medium access control address of appointed this network card.
4. the method for testing pressure of network card as claimed in claim 1, it is characterized in that: this server path comprises an IP address or an IP network section of this server.
5. the method for testing pressure of network card as claimed in claim 1, it is characterized in that: this server path comprises a connectivity port of this server in addition.
6. the method for testing pressure of network card as claimed in claim 1, it is characterized in that: other comprises:
Contrast this original test file and pass on this test file of means reception from this strategy at this user side, and export a contrast result according to this.
CN200910222173.7A 2009-11-18 2009-11-18 Pressure test method for network cards Active CN102064971B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200910222173.7A CN102064971B (en) 2009-11-18 2009-11-18 Pressure test method for network cards

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200910222173.7A CN102064971B (en) 2009-11-18 2009-11-18 Pressure test method for network cards

Publications (2)

Publication Number Publication Date
CN102064971A true CN102064971A (en) 2011-05-18
CN102064971B CN102064971B (en) 2014-11-19

Family

ID=44000082

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200910222173.7A Active CN102064971B (en) 2009-11-18 2009-11-18 Pressure test method for network cards

Country Status (1)

Country Link
CN (1) CN102064971B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106713015A (en) * 2016-12-07 2017-05-24 武汉斗鱼网络科技有限公司 Scheme test method and server
CN107643963A (en) * 2017-08-02 2018-01-30 中标软件有限公司 Network interface card and the method and device of Compatibility of Operating System test
CN110557299A (en) * 2019-07-31 2019-12-10 苏州浪潮智能科技有限公司 network transmission function batch test method, system, terminal and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101272291A (en) * 2008-04-29 2008-09-24 北京星网锐捷网络技术有限公司 Network appliance testing method and system
CN101364902A (en) * 2007-08-09 2009-02-11 英业达股份有限公司 Network card test method
TW200910081A (en) * 2007-08-31 2009-03-01 Inventec Corp Testing system for testing network card
US20090109864A1 (en) * 2007-10-24 2009-04-30 Inventec Corporation Network card testing system
US20090113455A1 (en) * 2007-10-24 2009-04-30 Inventec Corporation Network card testing method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101364902A (en) * 2007-08-09 2009-02-11 英业达股份有限公司 Network card test method
TW200910081A (en) * 2007-08-31 2009-03-01 Inventec Corp Testing system for testing network card
US20090109864A1 (en) * 2007-10-24 2009-04-30 Inventec Corporation Network card testing system
US20090113455A1 (en) * 2007-10-24 2009-04-30 Inventec Corporation Network card testing method
CN101272291A (en) * 2008-04-29 2008-09-24 北京星网锐捷网络技术有限公司 Network appliance testing method and system

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106713015A (en) * 2016-12-07 2017-05-24 武汉斗鱼网络科技有限公司 Scheme test method and server
CN106713015B (en) * 2016-12-07 2019-06-04 武汉斗鱼网络科技有限公司 A kind of method and server of scheme test
CN107643963A (en) * 2017-08-02 2018-01-30 中标软件有限公司 Network interface card and the method and device of Compatibility of Operating System test
CN110557299A (en) * 2019-07-31 2019-12-10 苏州浪潮智能科技有限公司 network transmission function batch test method, system, terminal and storage medium

Also Published As

Publication number Publication date
CN102064971B (en) 2014-11-19

Similar Documents

Publication Publication Date Title
US9438698B2 (en) Method of distributing information regarding one or more electrical devices and system for the same
JP6043303B2 (en) Adapter device for coupling industrial field devices to an industrial wireless network, and related systems and methods
US9503322B2 (en) Automatic stack unit replacement system
CN101547063B (en) Method and system for testing forward delay
US20070115981A1 (en) System and method for filtering communications at a network interface controller
CN101616029B (en) Method and system for realizing network topology discovery
CN102771089A (en) Systems and methods for mixed mode handling of IPv6 and IPv4 traffic by a virtual server
US20060253563A1 (en) Network management system and method
US20120151001A1 (en) Clearing Message Broker System
CN101540743A (en) Information processing unit, information playback unit, method, system and program thereof
JP4935210B2 (en) Network connection type detection method and system, and network device
CN102404195A (en) Data transmission method, gateway and network system
CN103516567A (en) Method and system for equipment discovery and server
CN102064971B (en) Pressure test method for network cards
US20050138221A1 (en) Handling redundant paths among devices
US20050076167A1 (en) Network converter and information processing system
CN101277317B (en) Method for equalization and distribution of distributed processing system data
CN101404595A (en) Network bridge uplink port identification
TW201117580A (en) A pressure test method for network interface card
CN102497296A (en) Method for testing normality of network card receiving and sending packets
US20100274840A1 (en) Cooperation apparatus using peer-to-peer and method thereof
US11088963B2 (en) Automatic aggregated networking device backup link configuration system
CN102394893B (en) Method, server and system for inspecting communication protocol between terminal and server side
US20080198762A1 (en) Cross-subnet-nodes subnet node device detection method
CN116760756B (en) Method for testing terminal equipment by test switch and test switch networking system

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
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20200327

Address after: No. 703, geguan Road, Dachang street, Jiangbei new district, Nanjing, Jiangsu -109

Patentee after: NANJING PONDER ELECTRONIC TECHNOLOGY Co.,Ltd.

Address before: Taipei City, Taiwan, China

Patentee before: Inventec Corp.

PE01 Entry into force of the registration of the contract for pledge of patent right
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: Stress testing method of network card

Effective date of registration: 20201109

Granted publication date: 20141119

Pledgee: Bank of China Limited by Share Ltd. Nanjing Jiangning branch

Pledgor: NANJING PONDER ELECTRONIC TECHNOLOGY Co.,Ltd.

Registration number: Y2020980007686