CN109728973A - A kind of method, system and the server of the detection of network interface card rate - Google Patents

A kind of method, system and the server of the detection of network interface card rate Download PDF

Info

Publication number
CN109728973A
CN109728973A CN201811593683.0A CN201811593683A CN109728973A CN 109728973 A CN109728973 A CN 109728973A CN 201811593683 A CN201811593683 A CN 201811593683A CN 109728973 A CN109728973 A CN 109728973A
Authority
CN
China
Prior art keywords
network interface
iperf
server
rate
client
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
CN201811593683.0A
Other languages
Chinese (zh)
Other versions
CN109728973B (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.)
Guangdong Inspur Smart Computing Technology Co Ltd
Original Assignee
Guangdong Inspur Big Data Research 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 Guangdong Inspur Big Data Research Co Ltd filed Critical Guangdong Inspur Big Data Research Co Ltd
Priority to CN201811593683.0A priority Critical patent/CN109728973B/en
Publication of CN109728973A publication Critical patent/CN109728973A/en
Application granted granted Critical
Publication of CN109728973B publication Critical patent/CN109728973B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

This application discloses a kind of methods of network interface card rate detection, it include: the network port by being disposed as DHCP service by the first network interface of the gigabit network interface connection with network interface card to be measured and with the second network interface of 10,000,000,000 network interface connections of network interface card to be measured, so that when receiving the first communication request or the second communication request of the transmission of iperf client, iperf server-side is enabled to communicate by the first network interface or the second network interface with the foundation of iperf client, so that the rate of iperf client detection gigabit network interface or 10,000,000,000 network interfaces.The application does not need server end replacement network interface card, it is only necessary to select corresponding network interface to communicate with the foundation of iperf client according to the communication request received, be conducive to the development of automatic test, greatly improve the detection efficiency of network interface card rate.The application additionally provides system, server and the computer readable storage medium of a kind of network interface card rate detection simultaneously, has above-mentioned beneficial effect.

Description

A kind of method, system and the server of the detection of network interface card rate
Technical field
This application involves network interface card rate detection field, in particular to a kind of method, the system, server of the detection of network interface card rate And computer readable storage medium.
Background technique
With the continuous development of IT technology, nowadays almost all trades and professions all establish server in the intra-company of oneself, Because of the special status of server, its availability, reliability and its I/O speed just seems especially important, keeps server Safety and high availability be the especially important index of enterprise-level IT environment, and wherein the important point is exactly server network The high availability of connection.To realize these requirements, nowadays server is mostly using present popular Linux as server The environment of work, it is most all to use more network card configurations.
For the development phase and test rank by the availability of the network connection of server and reliability raising, in server Section all can carry out rate detection to network interface card, this is an indispensable link in server test process.
When detecting network interface card rate usually using iperf tool in the prior art, however, server where iperf server-side DHCP service only specify a network interface as the DHCP network port, facing while having gigabit network interface and 10,000,000,000 network interfaces When network interface card to be measured, it is extremely inconvenient that server end replaces network interface card, is unfavorable for automatic test development, strong influence test effect Rate.
Therefore, how to improve the detection efficiency of network interface card rate is that the technology that those skilled in the art need to solve at present is asked Topic.
Summary of the invention
The purpose of the application is to provide method, system, server and the computer-readable storage of a kind of network interface card rate detection Medium, for improving the detection efficiency of network interface card rate.
In order to solve the above technical problems, the application provides a kind of method of network interface card rate detection, this method comprises:
The determining network interface with the gigabit network interface connection of network interface card to be measured is the first network interface, determining 10,000,000,000 with the network interface card to be measured The network interface of network interface connection is the second network interface;
First network interface and second network interface are disposed as the network port of DHCP service, and start iperf clothes Business end;
When receiving the first communication request of iperf client transmission, enable the iperf server-side by described first Network interface is communicated with iperf client foundation, so that the iperf client detects the rate of the gigabit network interface;Wherein, The iperf client is installed on the terminal device where the network interface card to be measured;
When receiving the second communication request that the iperf client is sent, the iperf server-side is enabled to pass through described Second network interface is communicated with iperf client foundation, so that the iperf client detects the rate of 10,000,000,000 network interface.
Optionally, first network interface and second network interface are disposed as the network port of DHCP service, and started Iperf server-side, comprising:
First network interface and second network interface are disposed as to the network port of the DHCP service;
It is first network interface distribution the first IP distribution section according to the distribution order of the section of input, and is second net Mouth distribution the 2nd IP distribute section;
It is that the first network interface setting first is static from the first IP distribution section according to the IP setting command of input IP, and be that the second static IP is arranged in second network interface from the 2nd IP distribution section;
Start the iperf server-side.
Optionally, described when receiving the first communication request of iperf client transmission, enable the iperf server-side It is communicated by first network interface with iperf client foundation, comprising:
When receiving first communication request, enable the iperf server-side corresponding by first static IP First network interface establishes the communication with the iperf client;
It is described when receiving the second communication request that the iperf client is sent, enable the iperf server-side pass through Second network interface is communicated with iperf client foundation, and correspondence includes:
When receiving second communication request, enable the iperf server-side corresponding by second static IP Second network interface establishes the communication with the iperf client.
Optionally, this method further include:
The iperf client is according to the rate of the gigabit network interface and/or the generation of the rate of 10,000,000,000 network interface The rate examining report of network interface card to be measured, and the rate examining report is sent to designated position.
The application also provides a kind of system of network interface card rate detection, which includes:
Determining module is the first network interface for the determining network interface with the gigabit network interface connection of network interface card to be measured, it is determining with it is described The network interface of 10,000,000,000 network interface connections of network interface card to be measured is the second network interface;
Setting and starting module, for first network interface and second network interface to be disposed as to the network of DHCP service Port, and start iperf server-side;
First receiving module, for enabling the iperf when receiving the first communication request of iperf client transmission Client is communicated by first network interface with iperf client foundation, so that iperf server-side detection described thousand The rate of million network interfaces;Wherein, the iperf client is installed on the terminal device where the network interface card to be measured;
Second receiving module, for when receiving the second communication request that the iperf client is sent, described in order Iperf server-side is communicated by second network interface with iperf client foundation, so that the iperf client detects The rate of 10,000,000,000 network interface.
Optionally, the setting and starting module include:
Submodule is set, for first network interface and second network interface to be disposed as to the network of the DHCP service Port;
The section IP distribution sub module, for being that first network interface distributes the first IP points according to the distribution order of the section of input With section, and the 2nd IP is distributed for second network interface and distributes section;
Submodule is arranged in static IP, is described from the first IP distribution section for the IP setting command according to input The first static IP is arranged in first network interface, and is that the second static IP is arranged in second network interface from the 2nd IP distribution section;
Promoter module, for starting the iperf server-side.
Optionally, first receiving module includes:
First receiving submodule, for when receiving first communication request, enabling the iperf server-side pass through institute State the communication of the first static IP corresponding first network interface foundation and the iperf client;
The second receiving module correspondence includes:
Second receiving submodule, for when receiving second communication request, enabling the iperf server-side pass through institute State the communication of the second static IP corresponding second network interface foundation and the iperf client.
Optionally, the system further include:
Rate examining report generation module, rate and/or institute for the iperf client according to the gigabit network interface The rate for stating 10,000,000,000 network interfaces generates the rate examining report of the network interface card to be measured, and the rate examining report is sent to specified Position.
The application also provides a kind of server, which includes:
Memory, for storing computer program;
Processor realizes the method that the network interface card rate as described in any of the above-described detects when for executing the computer program The step of.
The application also provides a kind of computer readable storage medium, and calculating is stored on the computer readable storage medium Machine program realizes the step for the method that the network interface card rate as described in any of the above-described detects when the computer program is executed by processor Suddenly.
The method of network interface card rate detection provided herein, comprising: the determining net with the gigabit network interface connection of network interface card to be measured Mouth is the first network interface, and the determining network interface with 10,000,000,000 network interface connections of network interface card to be measured is the second network interface;By the first network interface and the second net Mouth is disposed as the network port of DHCP service, and starts iperf server-side;When receive iperf client transmission first When communication request, iperf server-side is enabled to communicate by the first network interface with the foundation of iperf client, so that iperf client detects The rate of gigabit network interface;Wherein, iperf client is installed on the terminal device where network interface card to be measured;When receiving iperf client When holding the second communication request sent, iperf server-side is enabled to communicate by the second network interface with the foundation of iperf client, so that Iperf client detects the rate of 10,000,000,000 network interfaces.
Technical solution provided herein, by by the first network interface of the gigabit network interface connection with network interface card to be measured and with to Second network interface of 10,000,000,000 network interface connections of survey grid card is disposed as the network port of DHCP service, so that when receiving iperf visitor When the first communication request or the second communication request that family end is sent, enable iperf server-side by the first network interface or the second network interface with Iperf client establishes communication, so that the rate of iperf client detection gigabit network interface or 10,000,000,000 network interfaces, and then in face of same When with gigabit network interface and 10,000,000,000 network interfaces network interface card to be measured when, do not need server end replacement network interface card, it is only necessary to according to what is received Communication request selects corresponding network interface to communicate with the foundation of iperf client, is conducive to the development of automatic test, greatly Improve the detection efficiency of network interface card rate.The application additionally provides system, equipment and the calculating of a kind of network interface card rate detection simultaneously Machine readable storage medium storing program for executing has above-mentioned beneficial effect, and details are not described herein.
Detailed description of the invention
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this The embodiment of application for those of ordinary skill in the art without creative efforts, can also basis The attached drawing of offer obtains other attached drawings.
Fig. 1 is a kind of flow chart of the method for network interface card rate detection provided by the embodiment of the present application;
Fig. 2 is a kind of process of practical manifestation mode of S102 in a kind of method of the detection of network interface card rate provided by Fig. 1 Figure;
Fig. 3 is a kind of structure chart of the system of network interface card rate detection provided by the embodiment of the present application;
Fig. 4 is the structure chart of the system of the detection of another kind network interface card rate provided by the embodiment of the present application;
Fig. 5 is a kind of structure chart of server provided by the embodiment of the present application.
Specific embodiment
The core of the application is to provide method, system, server and the computer-readable storage of a kind of network interface card rate detection Medium, for improving the detection efficiency of network interface card rate.
To keep the purposes, technical schemes and advantages of the embodiment of the present application clearer, below in conjunction with the embodiment of the present application In attached drawing, the technical scheme in the embodiment of the application is clearly and completely described, it is clear that described embodiment is Some embodiments of the present application, instead of all the embodiments.Based on the embodiment in the application, those of ordinary skill in the art Every other embodiment obtained without making creative work, shall fall in the protection scope of this application.
Referring to FIG. 1, Fig. 1 is a kind of flow chart of the method for network interface card rate detection provided by the embodiment of the present application.
Applied to server, this method specifically comprises the following steps:
S101: the determining network interface with the gigabit network interface connection of network interface card to be measured is the first network interface, determining ten thousand with network interface card to be measured The network interface of million network interface connections is the second network interface;
When based on carrying out rate detection to network interface card in the prior art, need to treat the gigabit network interface and Wan Zhao of survey grid card respectively Network interface is tested, and while testing gigabit network interface needs server end network interface connected to it to be similarly gigabit network interface, And since the DHCP service of server where iperf server-side only specifies a network interface as the DHCP network port, it uses Server end network interface card is replaced manually and could complete to treat the rate detection of survey grid card in family;
And the application only needs user to be before the test begins attached server with network interface card to be measured, that is, by server Gigabit network interface and the gigabit network interface of network interface card to be measured are attached by cable, by 10,000,000,000 network interfaces of server and the ten thousand of network interface card to be measured Million network interfaces are attached by cable, and the first network interface and the second network interface can be disposed as the net of DHCP service by system at this time Network port can pass through corresponding first network interface or when the gigabit network interface or 10,000,000,000 network interfaces for treating survey grid card are tested Two network interfaces carry out rate detection, do not need to replace the network interface of server end.
S102: being disposed as the network port of DHCP service for the first network interface and the second network interface, and starts iperf service End;
Iperf is an applied in network performance test tool.Iperf can test maximum TCP and UDP bandwidth performance, have more Kind of parameter and UDP characteristic, can according to need adjustment, can report bandwidth, delay jitter and data-bag lost, and iperf can be with It operates on any IP network, including local ethernet, access internet, Wi-Fi network etc.;On operating mode, iperf fortune Row is under server, client mode, and wherein iperf server end is mainly used for monitoring the test request reached, and iperf is objective Family end is mainly used for initiating the connection session;
Preferably, mentioned herein, the first network interface and the second network interface are disposed as the network port of DHCP service, and open Dynamic iperf server-side, is specifically as follows step as shown in Figure 2, referring to FIG. 2, Fig. 2 is a kind of network interface card provided by Fig. 1 The flow chart of a kind of practical manifestation mode of S102 in the method for rate detection.
Itself specifically includes the following steps:
S201: the first network interface and the second network interface are disposed as to the network port of DHCP service;
S202: it is the first network interface distribution the first IP distribution section according to the distribution order of the section of input, and is the second network interface Distribute the 2nd IP distribution section;
S203: being arranged the first static IP from the first IP distribution section according to the IP setting command of input for the first network interface, And the second static IP is set for the second network interface from the 2nd IP distribution section;
S204: starting iperf server-side.
The embodiment of the present application according to the distribution order of the section of input is that the first network interface distributes the first IP and distributes section, and is the Two network interfaces distribute the 2nd IP and distribute section;It then is the first network interface from the first IP distribution section according to the IP setting command of input First static IP is set, and the second static IP is set for the second network interface from the 2nd IP distribution section, so that iperf client energy Connection is enough established by the first static IP or the second static IP and iperf server-side, so that iperf client can be initiated Session is connected, iperf server end can monitor the test request of arrival.
S103: when receiving the first communication request of iperf client transmission, iperf server-side is enabled to pass through the first net Mouth is communicated with the foundation of iperf client, so that the rate of iperf client detection gigabit network interface;
Wherein, iperf client is installed on the terminal device where network interface card to be measured.
S104: when receiving the second communication request of iperf client transmission, iperf server-side is enabled to pass through the second net Mouth is communicated with the foundation of iperf client, so that iperf client detects the rate of 10,000,000,000 network interfaces.
Preferably, it mentions in step S103, when receiving the first communication request of iperf client transmission, enables Iperf server-side is communicated by the first network interface with the foundation of iperf client, is specifically as follows:
When receiving the first communication request, iperf server-side is enabled to establish by corresponding first network interface of the first static IP With the communication of iperf client;
It is mentioned in step S104, when receiving the second communication request of iperf client transmission, iperf is enabled to service End is communicated by the foundation of the second network interface and iperf client, and correspondence can be with are as follows:
When receiving the second communication request, iperf server-side is enabled to establish by corresponding second network interface of the second static IP With the communication of iperf client;
Preferably, iperf client can also generate to be measured according to the rate of gigabit network interface and/or the rate of 10,000,000,000 network interfaces The rate examining report of network interface card, and rate examining report is sent to designated position, so that user can directly examine according to the rate It observes and predicts announcement and recognizes whether the rate of network interface card to be measured meets demand, greatly improve user experience.
Based on the above-mentioned technical proposal, the method for a kind of network interface card rate detection provided herein, by will with to survey grid First network interface of the gigabit network interface connection of card and DHCP clothes are disposed as with the second network interface of 10,000,000,000 network interface connections of network interface card to be measured The network port of business, so that being enabled when receiving the first communication request or the second communication request of the transmission of iperf client Iperf server-side is communicated by the first network interface or the second network interface with the foundation of iperf client, so that iperf client detection thousand The rate of million network interfaces or 10,000,000,000 network interfaces, and then when facing while there is the network interface card to be measured of gigabit network interface and 10,000,000,000 network interfaces, it is not required to Server end is wanted to replace network interface card, it is only necessary to select corresponding network interface and iperf client to establish according to the communication request received logical Letter is conducive to the development of automatic test, greatly improves the detection efficiency of network interface card rate.
Referring to FIG. 3, Fig. 3 is a kind of structure chart of the system of network interface card rate detection provided by the embodiment of the present application.
The system may include:
Determining module 100 is the first network interface for the determining network interface with the gigabit network interface connection of network interface card to be measured, determine with to The network interface of 10,000,000,000 network interface connections of survey grid card is the second network interface;
Setting and starting module 200, for the first network interface and the second network interface to be disposed as to the network port of DHCP service, And start iperf server-side;
First receiving module 300, for enabling iperf objective when receiving the first communication request of iperf client transmission Family end is communicated by the first network interface with the foundation of iperf client, so that the rate of iperf server-side detection gigabit network interface;Wherein, Iperf client is installed on the terminal device where network interface card to be measured;
Second receiving module 400, for enabling iperf take when receiving the second communication request of iperf client transmission Business end is communicated by the second network interface with the foundation of iperf client, so that iperf client detects the rate of 10,000,000,000 network interfaces.
Referring to FIG. 4, Fig. 4 is the structure chart of the system of the detection of another kind network interface card rate provided by the embodiment of the present application.
The setting and starting module 200 may include:
Submodule is set, for the first network interface and the second network interface to be disposed as to the network port of DHCP service;
The section IP distribution sub module, for being that the first network interface distributes the first IP distribution area according to the distribution order of the section of input Between, and distribute the 2nd IP for the second network interface and distribute section;
Submodule is arranged in static IP, is the first network interface from the first IP distribution section for the IP setting command according to input First static IP is set, and the second static IP is set for the second network interface from the 2nd IP distribution section;
Promoter module, for starting iperf server-side.
First receiving module 300 may include:
First receiving submodule, for when receiving the first communication request, enabling iperf server-side pass through the first static IP Corresponding first network interface establishes the communication with iperf client;
The correspondence of second receiving module 400 may include:
Second receiving submodule, for when receiving the second communication request, enabling iperf server-side pass through the second static IP Corresponding second network interface establishes the communication with iperf client.
The system can also include:
Rate examining report generation module, for iperf client according to the rate of gigabit network interface and/or 10,000,000,000 network interfaces Rate generates the rate examining report of network interface card to be measured, and rate examining report is sent to designated position.
Each component part in system above can be applied in embodiment below:
The determining network interface with the gigabit network interface connection of network interface card to be measured of determining module is the first network interface, determining and network interface card to be measured The network interface of 10000000000 network interface connections is the second network interface;
The network port that first network interface and the second network interface are disposed as DHCP service by submodule is set;The section IP distribution Module is that the first network interface distributes the first IP distribution section, and distributes the 2nd IP for the second network interface according to the distribution order of the section of input Distribute section;Static IP is arranged submodule and is arranged according to the IP setting command of input from the first IP distribution section for the first network interface First static IP, and the second static IP is set for the second network interface from the 2nd IP distribution section;Promoter module starts iperf clothes Business end;
When receiving the first communication request, the first receiving submodule enables iperf server-side corresponding by the first static IP The first network interface establish and the communication of iperf client;When receiving the second communication request, the second receiving submodule is enabled Iperf server-side establishes the communication with iperf client by corresponding second network interface of the second static IP;
Rate examining report generation module iperf client is according to the rate of gigabit network interface and/or the rate of 10,000,000,000 network interfaces The rate examining report of network interface card to be measured is generated, and rate examining report is sent to designated position.
Referring to FIG. 5, Fig. 5 is a kind of structure chart of server provided by the embodiment of the present application.
The server 500 can generate bigger difference because configuration or performance are different, may include one or one with Upper processor (central processing units, CPU) 522 (for example, one or more processors) and memory 532, one or more storage application programs 542 or data 544 storage medium 530 (such as one or more sea Amount storage equipment).Wherein, memory 532 and storage medium 530 can be of short duration storage or persistent storage.Storage is stored in be situated between The program of matter 530 may include one or more modules (diagram does not mark), and each module may include in device Series of instructions operation.Further, central processing unit 522 can be set to communicate with storage medium 530, in server The series of instructions operation in storage medium 530 is executed on 500.
Server 500 can also include one or more power supplys 525, one or more wired or wireless networks Interface 550, one or more input/output interfaces 558, and/or, one or more operating systems 541, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM etc..
Step in the method for the detection of network interface card rate described in above-mentioned Fig. 1 to Fig. 2 is shown in fig. 5 based on this by server Structure is realized.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description, The specific work process of device and module, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In several embodiments provided herein, it should be understood that disclosed device, device and method, it can be with It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, the division of module, Only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple module or components can be with In conjunction with or be desirably integrated into another system, or some features can be ignored or not executed.Another point, it is shown or discussed Mutual coupling, direct-coupling or communication connection can be through some interfaces, the INDIRECT COUPLING of device or module or Communication connection can be electrical property, mechanical or other forms.
Module may or may not be physically separated as illustrated by the separation member, show as module Component may or may not be physical module, it can and it is in one place, or may be distributed over multiple networks In module.Some or all of the modules therein can be selected to achieve the purpose of the solution of this embodiment according to the actual needs.
It, can also be in addition, can integrate in a processing module in each functional module in each embodiment of the application It is that modules physically exist alone, can also be integrated in two or more modules in a module.Above-mentioned integrated mould Block both can take the form of hardware realization, can also be realized in the form of software function module.
If integrated module is realized and when sold or used as an independent product in the form of software function module, can To be stored in a computer readable storage medium.Based on this understanding, the technical solution of the application substantially or Say that all or part of the part that contributes to existing technology or the technical solution can embody in the form of software products Out, which is stored in a storage medium, including some instructions are used so that a computer equipment The whole of (can be personal computer, funcall device or the network equipment etc.) execution each embodiment method of the application Or part steps.And storage medium above-mentioned include: USB flash disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic or disk etc. are various can store program The medium of code.
It to a kind of method of network interface card rate detection provided herein, system, server and computer-readable deposits above Storage media is described in detail.Specific examples are used herein to illustrate the principle and implementation manner of the present application, The description of the example is only used to help understand the method for the present application and its core ideas.It should be pointed out that for this technology For the those of ordinary skill in field, under the premise of not departing from the application principle, several improvement can also be carried out to the application And modification, these improvement and modification are also fallen into the protection scope of the claim of this application.
It should also be noted that, in the present specification, relational terms such as first and second and the like be used merely to by One entity or operation are distinguished with another entity or operation, without necessarily requiring or implying these entities or operation Between there are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant meaning Covering non-exclusive inclusion, so that the process, method, article or equipment for including a series of elements not only includes that A little elements, but also including other elements that are not explicitly listed, or further include for this process, method, article or The intrinsic element of equipment.In the absence of more restrictions, the element limited by sentence "including a ...", is not arranged Except there is also other identical elements in the process, method, article or equipment for including element.

Claims (10)

1. a kind of method of network interface card rate detection characterized by comprising
The determining network interface with the gigabit network interface connection of network interface card to be measured is the first network interface, determining 10,000,000,000 network interfaces with the network interface card to be measured The network interface of connection is the second network interface;
First network interface and second network interface are disposed as the network port of DHCP service, and start iperf server-side;
When receiving the first communication request of iperf client transmission, the iperf server-side is enabled to pass through first network interface It is communicated with iperf client foundation, so that the iperf client detects the rate of the gigabit network interface;Wherein, described Iperf client is installed on the terminal device where the network interface card to be measured;
When receiving the second communication request that the iperf client is sent, enable the iperf server-side by described second Network interface is communicated with iperf client foundation, so that the iperf client detects the rate of 10,000,000,000 network interface.
2. the method according to claim 1, wherein first network interface and second network interface are disposed as The network port of DHCP service, and start iperf server-side, comprising:
First network interface and second network interface are disposed as to the network port of the DHCP service;
It is first network interface distribution the first IP distribution section according to the distribution order of the section of input, and is second network interface point Section is distributed with the 2nd IP;
It is the first static IP of the first network interface setting from the first IP distribution section according to the IP setting command of input, and It is that the second static IP is arranged in second network interface from the 2nd IP distribution section;
Start the iperf server-side.
3. according to the method described in claim 2, it is characterized in that, described when receive the transmission of iperf client first is logical When letter request, the iperf server-side is enabled to communicate by first network interface with iperf client foundation, comprising:
When receiving first communication request, enable the iperf server-side corresponding described by first static IP First network interface establishes the communication with the iperf client;
It is described when receiving the second communication request that the iperf client is sent, enable the iperf server-side pass through described Second network interface is communicated with iperf client foundation, and correspondence includes:
When receiving second communication request, enable the iperf server-side corresponding described by second static IP Second network interface establishes the communication with the iperf client.
4. the method according to claim 1, wherein further include:
The iperf client generates described to be measured according to the rate of the gigabit network interface and/or the rate of 10,000,000,000 network interface The rate examining report of network interface card, and the rate examining report is sent to designated position.
5. a kind of system of network interface card rate detection characterized by comprising
Determining module is the first network interface for the determining network interface with the gigabit network interface connection of network interface card to be measured, it is determining with it is described to be measured The network interface of 10,000,000,000 network interface connections of network interface card is the second network interface;
Setting and starting module, for first network interface and second network interface to be disposed as to the network-side of DHCP service Mouthful, and start iperf server-side;
First receiving module, for enabling the iperf client when receiving the first communication request of iperf client transmission End is communicated by first network interface with iperf client foundation, so that the iperf server-side detects the kilomega network The rate of mouth;Wherein, the iperf client is installed on the terminal device where the network interface card to be measured;
Second receiving module, for enabling the iperf when receiving the second communication request that the iperf client is sent Server-side is communicated by second network interface with iperf client foundation, so that iperf client detection described ten thousand The rate of million network interfaces.
6. system according to claim 5, which is characterized in that the setting and starting module include:
Submodule is set, for first network interface and second network interface to be disposed as to the network-side of the DHCP service Mouthful;
The section IP distribution sub module, for being that first network interface distributes the first IP distribution area according to the distribution order of the section of input Between, and distribute the 2nd IP for second network interface and distribute section;
Submodule is arranged in static IP, is described first from the first IP distribution section for the IP setting command according to input The first static IP is arranged in network interface, and is that the second static IP is arranged in second network interface from the 2nd IP distribution section;
Promoter module, for starting the iperf server-side.
7. system according to claim 6, which is characterized in that first receiving module includes:
First receiving submodule, for when receiving first communication request, enabling the iperf server-side by described the Corresponding first network interface of one static IP establishes the communication with the iperf client;
The second receiving module correspondence includes:
Second receiving submodule, for when receiving second communication request, enabling the iperf server-side by described the Corresponding second network interface of two static IPs establishes the communication with the iperf client.
8. system according to claim 5, which is characterized in that further include:
Rate examining report generation module, for the iperf client according to the rate of the gigabit network interface and/or described ten thousand The rate of million network interfaces generates the rate examining report of the network interface card to be measured, and the rate examining report is sent to specific bit It sets.
9. a kind of server characterized by comprising
Memory, for storing computer program;
Processor, realizing that network interface card rate detects as described in any one of Claims 1-4 when for executing the computer program The step of method.
10. a kind of computer readable storage medium, which is characterized in that be stored with computer on the computer readable storage medium Program realizes the side that the network interface card rate as described in any one of Claims 1-4 detects when the computer program is executed by processor The step of method.
CN201811593683.0A 2018-12-25 2018-12-25 Network card speed detection method, system and server Active CN109728973B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811593683.0A CN109728973B (en) 2018-12-25 2018-12-25 Network card speed detection method, system and server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811593683.0A CN109728973B (en) 2018-12-25 2018-12-25 Network card speed detection method, system and server

Publications (2)

Publication Number Publication Date
CN109728973A true CN109728973A (en) 2019-05-07
CN109728973B CN109728973B (en) 2021-11-19

Family

ID=66296377

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811593683.0A Active CN109728973B (en) 2018-12-25 2018-12-25 Network card speed detection method, system and server

Country Status (1)

Country Link
CN (1) CN109728973B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111464378A (en) * 2020-03-13 2020-07-28 苏州浪潮智能科技有限公司 Server network card double-network-speed testing method and system
CN111490909A (en) * 2020-03-08 2020-08-04 苏州浪潮智能科技有限公司 Method for testing server NIC function

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030058894A1 (en) * 2001-09-20 2003-03-27 Feuerstraeter Mark T. Method and apparatus for autosensing LAN vs WAN to determine port type
CN101425938A (en) * 2008-12-17 2009-05-06 福建星网锐捷网络有限公司 Method and apparatus for network apparatus test
CN102497318A (en) * 2011-12-13 2012-06-13 曙光信息产业(北京)有限公司 System and method for achieving promiscuous port type network card
CN104811353A (en) * 2015-05-05 2015-07-29 浪潮电子信息产业股份有限公司 Network card performance testing environment automatic setting-up method based on Linux system
CN105530143A (en) * 2015-12-11 2016-04-27 浪潮电子信息产业股份有限公司 Netperf based multi network port testing method
CN108965062A (en) * 2018-08-07 2018-12-07 郑州云海信息技术有限公司 A kind of network interface test method, device, equipment and the storage medium of Onboard NIC

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030058894A1 (en) * 2001-09-20 2003-03-27 Feuerstraeter Mark T. Method and apparatus for autosensing LAN vs WAN to determine port type
CN101425938A (en) * 2008-12-17 2009-05-06 福建星网锐捷网络有限公司 Method and apparatus for network apparatus test
CN102497318A (en) * 2011-12-13 2012-06-13 曙光信息产业(北京)有限公司 System and method for achieving promiscuous port type network card
CN104811353A (en) * 2015-05-05 2015-07-29 浪潮电子信息产业股份有限公司 Network card performance testing environment automatic setting-up method based on Linux system
CN105530143A (en) * 2015-12-11 2016-04-27 浪潮电子信息产业股份有限公司 Netperf based multi network port testing method
CN108965062A (en) * 2018-08-07 2018-12-07 郑州云海信息技术有限公司 A kind of network interface test method, device, equipment and the storage medium of Onboard NIC

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
CN111464378A (en) * 2020-03-13 2020-07-28 苏州浪潮智能科技有限公司 Server network card double-network-speed testing method and system
CN111464378B (en) * 2020-03-13 2021-12-07 苏州浪潮智能科技有限公司 Server network card double-network-speed testing method and system

Also Published As

Publication number Publication date
CN109728973B (en) 2021-11-19

Similar Documents

Publication Publication Date Title
Mtibaa et al. Towards computational offloading in mobile device clouds
CN108075934B (en) Network quality monitoring method, device and system
CN104092650B (en) A kind of method and apparatus for distributing service request
WO2017084450A1 (en) Method and system for cloud management
CN106685752B (en) A kind of information processing method and terminal
CN106506664B (en) Server load balancing method and device
CN109728973A (en) A kind of method, system and the server of the detection of network interface card rate
CN114357495B (en) Prediction machine under-chain aggregation method, device, equipment and medium based on block chain
CN110457176A (en) For the monitoring method of distributed system, device, storage medium and electronic equipment
CN108737544A (en) CDN node dispatching method and device
CN108243222A (en) Server network architecture method and device
CN103516851A (en) Cloud testing platform system for wireless products
CN108141381B (en) System and method to coordinate cable test results with cable test configuration
CN108011779A (en) The test method of Cloud Server task throughput under limited resources supplIes
CN112751689A (en) Network connectivity detection method, monitoring server and monitoring agent device
CN105430028A (en) Service calling method, service providing method, and node
CN107749796A (en) The output power distribution method and device of PoE system
CN105677470B (en) Virtual machine method for scheduling task, virtual machine system
CN109800079B (en) Node adjusting method in medical insurance system and related device
CN110932879B (en) Network performance test method, data processing device and storage medium
CN105163336A (en) Method and system for optimizing stability of wireless network
CN106878117A (en) A kind of data processing method and device
CN115277499B (en) Delay parameter determination method and device of MAC (media access control) equipment, hardware platform and medium
CN111278022A (en) Internet of things WiFi module performance test method and system
CN113726881B (en) Communication connection establishment method, related device and computer readable storage medium

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
GR01 Patent grant
GR01 Patent grant