CN109728973B - Network card speed detection method, system and server - Google Patents

Network card speed detection method, system and server Download PDF

Info

Publication number
CN109728973B
CN109728973B CN201811593683.0A CN201811593683A CN109728973B CN 109728973 B CN109728973 B CN 109728973B CN 201811593683 A CN201811593683 A CN 201811593683A CN 109728973 B CN109728973 B CN 109728973B
Authority
CN
China
Prior art keywords
iperf
network
network port
server
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.)
Active
Application number
CN201811593683.0A
Other languages
Chinese (zh)
Other versions
CN109728973A (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

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The application discloses a method for detecting network card speed, which comprises the following steps: the first network port connected with the gigabit network port of the network card to be detected and the second network port connected with the gigabit network port of the network card to be detected are both set as network ports of DHCP service, so that when a first communication request or a second communication request sent by the iperf client is received, the iperf server is enabled to establish communication with the iperf client through the first network port or the second network port, and the iperf client is enabled to detect the rate of the gigabit network port or the gigabit network port. According to the method and the device, the network card does not need to be replaced at the server side, and only the corresponding network port and the iperf client side need to be selected to establish communication according to the received communication request, so that the development of automatic testing is facilitated, and the detection efficiency of the network card speed is greatly improved. The application also provides a system, a server and a computer readable storage medium for detecting the network card speed, and the system, the server and the computer readable storage medium have the beneficial effects.

Description

Network card speed detection method, system and server
Technical Field
The present application relates to the field of network card rate detection, and in particular, to a method, a system, a server, and a computer-readable storage medium for network card rate detection.
Background
With the continuous development of IT technology, almost all industries establish servers in their own companies nowadays, because of the special status of the servers, the availability, reliability and I/O speed thereof are of particular importance, and maintaining the security and high availability of the servers are of particular importance in enterprise-level IT environments, and the important point is the high availability of network connections of the servers. In order to meet the requirements, the servers nowadays mostly adopt the now popular Linux as the server working environment, and most of the servers adopt multi-network card configuration.
In order to improve the availability and reliability of network connection of the server, the network card is subjected to rate detection in both a research and development stage and a test stage of the server, which is an indispensable link in a server test process.
In the prior art, when an iperf tool is generally used for detecting the speed of the network card, however, only one network port is designated as a DHCP network port by the DHCP service of the server where the iperf server is located, and when the network card to be tested with a gigabit network port and a gigabit network port is faced, the network card is inconvenient to replace at the server, which is not conducive to automatic test development, and greatly affects the test efficiency.
Therefore, how to improve the detection efficiency of the network card speed is a technical problem that needs to be solved by those skilled in the art at present.
Disclosure of Invention
The application aims to provide a method, a system, a server and a computer readable storage medium for detecting the network card speed, which are used for improving the detection efficiency of the network card speed.
In order to solve the above technical problem, the present application provides a method for detecting a network card rate, including:
determining a network port connected with a kilomega network port of a network card to be tested as a first network port, and determining a network port connected with a tera network port of the network card to be tested as a second network port;
setting the first network port and the second network port as network ports of DHCP service, and starting an iperf server;
when a first communication request sent by an iperf client is received, enabling the iperf server to establish communication with the iperf client through the first internet access, so that the iperf client detects the rate of the gigabit internet access; the iperf client is installed on the terminal equipment where the network card to be tested is located;
when a second communication request sent by the iperf client is received, the iperf server is made to establish communication with the iperf client through the second internet access, so that the iperf client detects the speed of the trillion internet access.
Optionally, both the first network port and the second network port are set as network ports for DHCP service, and an iperf server is started, including:
setting the first network port and the second network port as network ports of the DHCP service;
allocating a first IP allocation interval for the first network port according to the input interval allocation command, and allocating a second IP allocation interval for the second network port;
setting a first static IP for the first internet access from the first IP distribution interval according to an input IP setting command, and setting a second static IP for the second internet access from the second IP distribution interval;
and starting the iperf server.
Optionally, when receiving a first communication request sent by an iperf client, enabling the iperf server to establish communication with the iperf client through the first internet access includes:
when the first communication request is received, the iperf server establishes communication with the iperf client through the first internet access corresponding to the first static IP;
when receiving a second communication request sent by the iperf client, the enabling the iperf server to establish communication with the iperf client through the second internet access correspondingly includes:
and when the second communication request is received, the iperf server establishes communication with the iperf client through the second internet access corresponding to the second static IP.
Optionally, the method further includes:
and the iperf client generates a speed detection report of the network card to be detected according to the speed of the gigabit network port and/or the speed of the gigabit network port, and sends the speed detection report to a specified position.
The present application further provides a system for detecting a network card rate, which includes:
the network interface testing device comprises a determining module, a judging module and a judging module, wherein the determining module is used for determining that a network interface connected with a kilomega network interface of a network card to be tested is a first network interface and determining that a network interface connected with a kilomega network interface of the network card to be tested is a second network interface;
the setting and starting module is used for setting the first network port and the second network port as network ports of DHCP service and starting an iperf server;
the first receiving module is used for enabling the iperf client to establish communication with the iperf client through the first internet access when receiving a first communication request sent by the iperf client, so that the iperf server detects the rate of the gigabit internet access; the iperf client is installed on the terminal equipment where the network card to be tested is located;
and the second receiving module is used for enabling the iperf server to establish communication with the iperf client through the second internet access when receiving a second communication request sent by the iperf client, so that the iperf client detects the rate of the trillion internet access.
Optionally, the setting and starting module includes:
the setting submodule is used for setting the first network port and the second network port as network ports of the DHCP service;
an IP interval allocation submodule, configured to allocate a first IP allocation interval to the first network port according to an input interval allocation command, and allocate a second IP allocation interval to the second network port;
the static IP setting submodule is used for setting a first static IP for the first internet access from the first IP distribution interval according to an input IP setting command and setting a second static IP for the second internet access from the second IP distribution interval;
and the starting submodule is used for starting the iperf server.
Optionally, the first receiving module includes:
the first receiving submodule is used for enabling the iperf server to establish communication with the iperf client through the first internet access corresponding to the first static IP when the first communication request is received;
the second receiving module correspondingly comprises:
and the second receiving submodule is used for enabling the iperf server to establish communication with the iperf client through the second internet access corresponding to the second static IP when the second communication request is received.
Optionally, the system further comprises:
and the rate detection report generation module is used for generating a rate detection report of the network card to be detected by the iperf client according to the rate of the gigabit network port and/or the rate of the gigabit network port and sending the rate detection report to a specified position.
The present application also provides a server, including:
a memory for storing a computer program;
a processor, configured to implement the steps of the method for detecting the network card rate as described in any one of the above when the computer program is executed.
The present application further provides a computer-readable storage medium, having a computer program stored thereon, where the computer program, when executed by a processor, implements the steps of the method for detecting a network card rate as described in any one of the above.
The method for detecting the network card speed provided by the application comprises the following steps: determining a network port connected with a kilomega network port of the network card to be tested as a first network port, and determining a network port connected with a tera network port of the network card to be tested as a second network port; setting the first network port and the second network port as network ports of DHCP service, and starting an iperf server; when a first communication request sent by an iperf client is received, enabling the iperf server to establish communication with the iperf client through a first internet access so as to enable the iperf client to detect the rate of a gigabit internet access; the iperf client is installed on the terminal equipment where the network card to be tested is located; when a second communication request sent by the iperf client is received, the iperf server establishes communication with the iperf client through a second internet access, so that the iperf client detects the speed of the trillion internet access.
According to the technical scheme, the first network port connected with the kilomega network port of the network card to be tested and the second network port connected with the kilomega network port of the network card to be tested are both set as network ports of DHCP service, so that when a first communication request or a second communication request sent by an iperf client is received, the iperf server is enabled to establish communication with the iperf client through the first network port or the second network port, the speed of the kilomega network port or the kilomega network port is detected by the iperf client, and further when the network card to be tested with the kilomega network port and the kilomega network port simultaneously faces, the network card does not need to be replaced by the server, only the corresponding network port is selected to establish communication with the iperf client according to the received communication request, the development of automatic testing is facilitated, and the detection efficiency of the speed of the network card is greatly improved. The application also provides a system, equipment and computer readable storage medium for detecting the network card speed, which have the beneficial effects and are not repeated herein.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, it is obvious that the drawings in the following description are only embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a flowchart of a method for detecting a network card rate according to an embodiment of the present disclosure;
fig. 2 is a flowchart illustrating an actual representation of S102 in the method for detecting the network card rate provided in fig. 1;
fig. 3 is a structural diagram of a system for detecting a network card rate according to an embodiment of the present disclosure;
fig. 4 is a structural diagram of another system for detecting a network card rate according to an embodiment of the present disclosure;
fig. 5 is a block diagram of a server according to an embodiment of the present application.
Detailed Description
The core of the application is to provide a method, a system, a server and a computer readable storage medium for detecting the network card speed, which are used for improving the detection efficiency of the network card speed.
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Referring to fig. 1, fig. 1 is a flowchart of a method for detecting a network card rate according to an embodiment of the present disclosure.
The method is applied to the server and specifically comprises the following steps:
s101: determining a network port connected with a kilomega network port of the network card to be tested as a first network port, and determining a network port connected with a tera network port of the network card to be tested as a second network port;
based on the prior art, when the speed of the network card is detected, a kilomega network port and a kilomega network port of the network card to be detected need to be respectively tested, and when the kilomega network port is tested, a server end and a network port connected with the server end are also kilomega network ports, and only one network port is appointed as a DHCP network port by the DHCP service of a server where an iperf server end is located, so that the speed detection of the network card to be detected can be completed only by manually replacing the network card at the server end by a user;
and this application only needs the user to be connected server and the network card that awaits measuring before the test begins, namely, be connected the giga net gape of server and the giga net gape of the network card that awaits measuring through the net twine, with the trillion net gape of server and the trillion net gape of the network card that awaits measuring through the net twine be connected can, the system can all set up first net gape and second net gape into the network port of DHCP service this moment, when testing the giga net gape or the trillion net gape of the network card that awaits measuring, can carry out the speed through corresponding first net gape or second net gape and detect, need not change the net gape of server end.
S102: setting the first network port and the second network port as network ports of DHCP service, and starting an iperf server;
iperf is a network performance testing tool. The Iperf can test the maximum TCP and UDP bandwidth performance, has various parameters and UDP characteristics, can be adjusted according to the needs, can report the bandwidth, delay jitter and data packet loss, and can run on any IP network, including local Ethernet, access Internet, Wi-Fi network and the like; in the working mode, the iperf runs in a server mode and a client mode, wherein the iperf server is mainly used for monitoring an arriving test request, and the iperf client is mainly used for initiating a connection session;
preferably, both the first network port and the second network port are set as network ports for DHCP service, and the iperf server is started, which may specifically be the steps shown in fig. 2, please refer to fig. 2, and fig. 2 is a flowchart of an actual representation manner of S102 in the method for detecting a network card rate provided in fig. 1.
The method specifically comprises the following steps:
s201: setting the first network port and the second network port as network ports of DHCP service;
s202: allocating a first IP allocation interval for the first network port according to the input interval allocation command, and allocating a second IP allocation interval for the second network port;
s203: setting a first static IP for a first internet access from a first IP distribution interval according to an input IP setting command, and setting a second static IP for a second internet access from a second IP distribution interval;
s204: and starting the iperf server.
According to the embodiment of the application, a first IP distribution interval is distributed to a first network port according to an input interval distribution command, and a second IP distribution interval is distributed to a second network port; and then, setting a first static IP for the first internet access from the first IP allocation interval according to the input IP setting command, and setting a second static IP for the second internet access from the second IP allocation interval, so that the iperf client can establish connection with the iperf server through the first static IP or the second static IP, the iperf client can initiate a connection session, and the iperf server can monitor the arriving test request.
S103: when a first communication request sent by an iperf client is received, enabling the iperf server to establish communication with the iperf client through a first internet access so as to enable the iperf client to detect the rate of a gigabit internet access;
the iperf client is installed on the terminal equipment where the network card to be tested is located.
S104: when a second communication request sent by the iperf client is received, the iperf server establishes communication with the iperf client through a second internet access, so that the iperf client detects the speed of the trillion internet access.
Preferably, when receiving the first communication request sent by the iperf client, the step S103 may specifically be to enable the iperf server to establish communication with the iperf client through the first internet access, where the communication request is:
when a first communication request is received, enabling the iperf server to establish communication with the iperf client through a first internet access corresponding to a first static IP;
in step S104, when the second communication request sent by the iperf client is received, the iperf server is enabled to establish communication with the iperf client through the second network port, and the correspondence may be:
when a second communication request is received, the iperf server establishes communication with the iperf client through a second network port corresponding to a second static IP;
preferably, the iperf client can also generate a rate detection report of the network card to be detected according to the rate of the gigabit network port and/or the rate of the gigabit network port, and send the rate detection report to the designated position, so that a user can directly know whether the rate of the network card to be detected meets the requirement according to the rate detection report, and user experience is greatly improved.
Based on the technical scheme, according to the method for detecting the speed of the network card, the first network port connected with the gigabit network port of the network card to be detected and the second network port connected with the gigabit network port of the network card to be detected are both set as network ports of DHCP service, so that when a first communication request or a second communication request sent by an iperf client is received, the iperf server is enabled to establish communication with the iperf client through the first network port or the second network port, the speed of the gigabit network port or the gigabit network port is detected by the iperf client, and further when the network card to be detected with the gigabit network port and the gigabit network port simultaneously faces, the network card does not need to be replaced by the server, and only the corresponding network port is selected to establish communication with the iperf client according to the received communication request, so that the method is beneficial to development of automatic testing, and greatly improves the detection efficiency of the speed of the network card.
Referring to fig. 3, fig. 3 is a structural diagram of a system for detecting a network card rate according to an embodiment of the present disclosure.
The system may include:
the determining module 100 is configured to determine that a network port connected to a gigabit network port of the network card to be tested is a first network port, and determine that a network port connected to a gigabit network port of the network card to be tested is a second network port;
the setting and starting module 200 is used for setting the first network port and the second network port as network ports of DHCP service and starting an iperf server;
the first receiving module 300 is configured to, when receiving a first communication request sent by an iperf client, enable the iperf client to establish communication with the iperf client through a first internet access, so that the iperf server detects a rate of a gigabit internet access; the iperf client is installed on the terminal equipment where the network card to be tested is located;
the second receiving module 400 is configured to, when receiving a second communication request sent by the iperf client, enable the iperf server to establish communication with the iperf client through a second internet access, so that the iperf client detects a rate of the gigabit internet access.
Referring to fig. 4, fig. 4 is a structural diagram of another system for detecting a network card rate according to an embodiment of the present application.
The setup and start module 200 may include:
the setting submodule is used for setting the first network port and the second network port as network ports of DHCP service;
the IP interval distribution submodule is used for distributing a first IP distribution interval for the first network port according to the input interval distribution command and distributing a second IP distribution interval for the second network port;
the static IP setting submodule is used for setting a first static IP for the first internet access from the first IP distribution interval according to the input IP setting command and setting a second static IP for the second internet access from the second IP distribution interval;
and the promoter module is used for starting the iperf server.
The first receiving module 300 may include:
the first receiving submodule is used for enabling the iperf server to establish communication with the iperf client through a first internet access corresponding to the first static IP when receiving the first communication request;
the second receiving module 400 may correspondingly include:
and the second receiving submodule is used for enabling the iperf server to establish communication with the iperf client through a second network port corresponding to the second static IP when the second communication request is received.
The system may further comprise:
and the rate detection report generation module is used for generating a rate detection report of the network card to be detected by the iperf client according to the rate of the gigabit network port and/or the rate of the ten-gigabit network port and sending the rate detection report to the specified position.
The various components of the above system may be practically applied in the following embodiments:
the determining module determines that a network port connected with a gigabit network port of the network card to be tested is a first network port and determines that a network port connected with a gigabit network port of the network card to be tested is a second network port;
the setting submodule sets the first network port and the second network port as network ports of DHCP service; the IP interval distribution submodule distributes a first IP distribution interval for the first network port according to the input interval distribution command and distributes a second IP distribution interval for the second network port; the static IP setting submodule sets a first static IP for the first internet access from the first IP distribution interval according to the input IP setting command and sets a second static IP for the second internet access from the second IP distribution interval; starting an iperf server by a promoter module;
when a first communication request is received, the first receiving submodule enables the iperf server to establish communication with the iperf client through a first internet access corresponding to a first static IP; when a second communication request is received, the second receiving submodule instructs the iperf server to establish communication with the iperf client through a second network port corresponding to a second static IP;
and the rate detection report generation module iperf client generates a rate detection report of the network card to be detected according to the rate of the gigabit network port and/or the rate of the ten-gigabit network port, and sends the rate detection report to a specified position.
Referring to fig. 5, fig. 5 is a structural diagram of a server according to an embodiment of the present disclosure.
The server 500 may vary widely in configuration or performance and may include one or more processors (CPUs) 522 (e.g., one or more processors) and memory 532, one or more storage media 530 (e.g., one or more mass storage devices) storing applications 542 or data 544. Memory 532 and storage media 530 may be, among other things, transient storage or persistent storage. The program stored on the storage medium 530 may include one or more modules (not shown), each of which may include a sequence of instruction operations for the device. Still further, the central processor 522 may be configured to communicate with the storage medium 530, and execute a series of instruction operations in the storage medium 530 on the server 500.
The server 500 may also include one or more power supplies 525, one or more wired or wireless network interfaces 550, one or more input-output interfaces 558, and/or one or more operating systems 541, such as Windows Server, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, and so forth.
The steps in the method for detecting the network card speed described in fig. 1 to 2 are implemented by the server based on the structure shown in fig. 5.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the system, the apparatus and the module described above may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus, device and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, a division of modules is merely a division of logical functions, and an actual implementation may have another division, for example, a plurality of modules or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or modules, and may be in an electrical, mechanical or other form.
Modules described as separate parts may or may not be physically separate, and parts displayed as modules may or may not be physical modules, may be located in one place, or may be distributed on a plurality of network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
In addition, functional modules in the embodiments of the present application may be integrated into one processing module, or each of the modules may exist alone physically, or two or more modules are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode.
The integrated module, if implemented in the form of a software functional module and sold or used as a separate product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be substantially implemented or contributed to by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a function calling device, or a network device) to execute all or part of the steps of the method of the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The method, system, server and computer readable storage medium for detecting network card speed provided by the present application are described in detail above. The principles and embodiments of the present application are explained herein using specific examples, which are provided only to help understand the method and the core idea of the present application. It should be noted that, for those skilled in the art, it is possible to make several improvements and modifications to the present application without departing from the principle of the present application, and such improvements and modifications also fall within the scope of the claims of the present application.
It is further noted that, in the present specification, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.

Claims (10)

1. A method for detecting network card speed is characterized by comprising the following steps:
determining a network port connected with a kilomega network port of a network card to be tested as a first network port, and determining a network port connected with a tera network port of the network card to be tested as a second network port;
setting the first network port and the second network port as network ports of DHCP service, and starting an iperf server;
when a first communication request sent by an iperf client is received, enabling the iperf server to establish communication with the iperf client through the first internet access, so that the iperf client detects the rate of the gigabit internet access; the iperf client is installed on the terminal equipment where the network card to be tested is located;
when a second communication request sent by the iperf client is received, the iperf server is made to establish communication with the iperf client through the second internet access, so that the iperf client detects the speed of the trillion internet access.
2. The method of claim 1, wherein setting the first port and the second port as network ports for DHCP service and starting an iperf server comprises:
setting the first network port and the second network port as network ports of the DHCP service;
allocating a first IP allocation interval for the first network port according to the input interval allocation command, and allocating a second IP allocation interval for the second network port;
setting a first static IP for the first internet access from the first IP distribution interval according to an input IP setting command, and setting a second static IP for the second internet access from the second IP distribution interval;
and starting the iperf server.
3. The method according to claim 2, wherein the causing the iperf server to establish communication with the iperf client through the first internet access when receiving a first communication request sent by the iperf client comprises:
when the first communication request is received, the iperf server establishes communication with the iperf client through the first internet access corresponding to the first static IP;
when receiving a second communication request sent by the iperf client, the enabling the iperf server to establish communication with the iperf client through the second internet access correspondingly includes:
and when the second communication request is received, the iperf server establishes communication with the iperf client through the second internet access corresponding to the second static IP.
4. The method of claim 1, further comprising:
and the iperf client generates a speed detection report of the network card to be detected according to the speed of the gigabit network port and/or the speed of the gigabit network port, and sends the speed detection report to a specified position.
5. A system for network card rate detection, comprising:
the network interface testing device comprises a determining module, a judging module and a judging module, wherein the determining module is used for determining that a network interface connected with a kilomega network interface of a network card to be tested is a first network interface and determining that a network interface connected with a kilomega network interface of the network card to be tested is a second network interface;
the setting and starting module is used for setting the first network port and the second network port as network ports of DHCP service and starting an iperf server;
the first receiving module is used for enabling the iperf client to establish communication with the iperf client through the first internet access when receiving a first communication request sent by the iperf client, so that the iperf server detects the rate of the gigabit internet access; the iperf client is installed on the terminal equipment where the network card to be tested is located;
and the second receiving module is used for enabling the iperf server to establish communication with the iperf client through the second internet access when receiving a second communication request sent by the iperf client, so that the iperf client detects the rate of the trillion internet access.
6. The system of claim 5, wherein the setup and start-up module comprises:
the setting submodule is used for setting the first network port and the second network port as network ports of the DHCP service;
an IP interval allocation submodule, configured to allocate a first IP allocation interval to the first network port according to an input interval allocation command, and allocate a second IP allocation interval to the second network port;
the static IP setting submodule is used for setting a first static IP for the first internet access from the first IP distribution interval according to an input IP setting command and setting a second static IP for the second internet access from the second IP distribution interval;
and the starting submodule is used for starting the iperf server.
7. The system of claim 6, wherein the first receiving module comprises:
the first receiving submodule is used for enabling the iperf server to establish communication with the iperf client through the first internet access corresponding to the first static IP when the first communication request is received;
the second receiving module correspondingly comprises:
and the second receiving submodule is used for enabling the iperf server to establish communication with the iperf client through the second internet access corresponding to the second static IP when the second communication request is received.
8. The system of claim 5, further comprising:
and the rate detection report generation module is used for generating a rate detection report of the network card to be detected by the iperf client according to the rate of the gigabit network port and/or the rate of the gigabit network port and sending the rate detection report to a specified position.
9. A server, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the method for network card rate detection as claimed in any one of claims 1 to 4 when executing the computer program.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon a computer program which, when being executed by a processor, carries out the steps of the method of network card rate detection according to any one of claims 1 to 4.
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 CN109728973A (en) 2019-05-07
CN109728973B true 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)

Families Citing this family (2)

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

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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 浪潮电子信息产业股份有限公司 Linux system based automatic network card performance test environment construction method
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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7200153B2 (en) * 2001-09-20 2007-04-03 Intel Corporation Method and apparatus for autosensing LAN vs WAN to determine port type

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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 浪潮电子信息产业股份有限公司 Linux system based automatic network card performance test environment construction method
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

Also Published As

Publication number Publication date
CN109728973A (en) 2019-05-07

Similar Documents

Publication Publication Date Title
US20170163478A1 (en) Method,electronic device and system for updating client configuration in key-value pair database
EP3352431A1 (en) Network load balance processing system, method, and apparatus
CN109728973B (en) Network card speed detection method, system and server
CN106506664B (en) Server load balancing method and device
CN109151028A (en) A kind of distributed memory system disaster recovery method and device
WO2023030417A1 (en) Packet processing method and device, storage medium, and computer program product
CN103516851A (en) Cloud testing platform system for wireless products
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
CN110515728A (en) Server scheduling method, apparatus, electronic equipment and machine readable storage medium
CN105681266B (en) A kind of communication cluster method and device of mediaphone MMTel
CN109639533B (en) Method and system for testing regional scheduling strategy and terminal equipment
CN113726881B (en) Communication connection establishment method, related device and computer readable storage medium
CN114448841B (en) Network card testing method, device, equipment and medium
CN105163336A (en) Method and system for optimizing stability of wireless network
CN113420275B (en) Data connection processing method, related device and computer program product
CN108111431B (en) Service data sending method, device, computing equipment and computer readable storage medium
CN113535020B (en) Method, apparatus, device, medium and product for generating application icons
US10182119B2 (en) System and methods for facilitating communication among a subset of connections that connect to a web application
CN108055305B (en) Storage expansion method and storage expansion device
US9787539B2 (en) System and method for discovering a server on insertion into a network
CN107612777B (en) Optical fiber switch detection tool and method
CN110830528B (en) Method and device for controlling distributed timing switch
CN110474807A (en) A kind of log processing method and device
CN111641664A (en) Crawler equipment service request method, device and system

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