CN110505110B - Network interface test method and device and multi-network-port host - Google Patents
Network interface test method and device and multi-network-port host Download PDFInfo
- Publication number
- CN110505110B CN110505110B CN201810479517.1A CN201810479517A CN110505110B CN 110505110 B CN110505110 B CN 110505110B CN 201810479517 A CN201810479517 A CN 201810479517A CN 110505110 B CN110505110 B CN 110505110B
- Authority
- CN
- China
- Prior art keywords
- network
- network interface
- independent
- interfaces
- testing
- 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
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/50—Testing arrangements
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The embodiment of the invention provides a method and a device for testing a network interface and a multi-network-port host, wherein the method comprises the following steps: aiming at two network interfaces to be tested in a multi-network-port host, respectively setting the two network interfaces to be tested as network interfaces of two independent networks which are isolated from each other in an internal network of the multi-network-port host to obtain a network interface pair; and testing the performance of the two network interfaces in the network interface pair. In the method for testing the network interface, which is provided by the embodiment of the invention, aiming at two network interfaces to be tested in the multi-network-port host, the two network interfaces are set as the network interfaces of independent networks which are isolated from each other in the internal network of the multi-network-port host, so that the two network interfaces can be used for mutually receiving and transmitting data to finish the test of the performance of the network interface, an external switch and client equipment are not required, and the test cost of the network interface can be reduced.
Description
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method and an apparatus for testing a network interface, and a multi-port host.
Background
In order to obtain the performance of each network interface in the multi-port host, the performance of each network interface needs to be tested.
In the existing network interface testing method, a multi-portal host to be tested needs to be used as a server, each network interface of the multi-portal host is connected to a switch, and a client device is connected to the switch at the same time, and the structure of the method is shown in fig. 1. When testing the performance of the network interface, the network streaming test method is utilized, and data is sent to the client device through each network interface in sequence in a polling mode so as to test the performance of each network interface.
However, the testing method needs an external switch and client equipment, and the testing cost of the network interface is high.
Disclosure of Invention
The embodiment of the invention aims to provide a method and a device for testing a network interface and a multi-port host, so as to reduce the testing cost of the network interface. The specific technical scheme is as follows:
in a first aspect, an embodiment of the present invention provides a method for testing a network interface, which is applied to a host with multiple network ports, and the method includes:
aiming at two network interfaces to be tested in the multi-network-port host, setting the two network interfaces to be tested as network interfaces of two independent networks which are isolated from each other in an internal network of the multi-network-port host respectively to obtain a network interface pair;
and testing the performance of the two network interfaces in the network interface pair.
Optionally, the setting, for two network interfaces to be tested in the multi-portal host, the two network interfaces to be tested as network interfaces of two independent networks isolated from each other in the internal network of the multi-portal host, respectively, to obtain a network interface pair includes:
setting the network where each network interface is located as an independent network isolated from each other in the internal network of the multi-port host to obtain independent network interfaces;
and testing the connection condition of each independent network interface, and determining each network interface pair to be tested, wherein the network interface pair comprises two connected independent network interfaces.
Optionally, the setting the network where each network interface is located as an independent network isolated from each other in the internal network of the multi-portal host to obtain an independent network interface respectively includes:
and respectively virtualizing the network card where each network interface is positioned into the network card of the independent network environment by using a network name space virtualization technology, and taking the network interface of the network card virtualized into the independent network environment as the independent network interface.
Optionally, the testing the performance of two network interfaces in the network interface pair includes:
aiming at each network interface pair, setting the addresses of two independent network interfaces of the network interface pair as two different addresses in the same network segment;
and testing the performance of two independent network interfaces in each network interface pair by using a preset network streaming test method.
Optionally, the testing the performance of two network interfaces in the network interface pair includes:
configuring a virtual gateway for each of the pairs of network interfaces;
and testing the performance of two independent network interfaces in each network interface pair by using a preset network streaming test method through the virtual gateway.
In a second aspect, an embodiment of the present invention provides a device for testing a network interface, which is applied to a host with multiple network ports, and the device includes:
the network configuration module is used for setting two network interfaces to be tested in the multi-network-port host as network interfaces of two independent networks which are isolated from each other in an internal network of the multi-network-port host respectively to obtain a network interface pair;
and the performance testing module is used for testing the performance of the independent network interface in each network interface pair.
Optionally, the network configuration module includes:
the interface network independent submodule is used for respectively setting the network where each network interface is positioned as an independent network which is isolated from each other in the internal network of the multi-port host to obtain an independent network interface;
and the interface pair determining submodule is used for testing the connection condition of each independent network interface and determining each network interface pair to be tested, wherein the network interface pair comprises two connected independent network interfaces.
Optionally, the interface network independent sub-module is specifically configured to:
and respectively virtualizing the network card where each network interface is positioned into the network card of the independent network environment by using a network name space virtualization technology, and taking the network interface of the network card virtualized into the independent network environment as the independent network interface.
Optionally, the performance testing module includes:
the address configuration submodule is used for setting the addresses of two independent network interfaces of the network interface pair to be two different addresses in the same network segment aiming at each network interface pair;
and the first streaming submodule is used for testing the performance of two independent network interfaces in each network interface pair by using a preset network streaming test method.
Optionally, the performance testing module includes:
a gateway configuration submodule, configured to configure a virtual gateway for each network interface pair;
and the second streaming submodule is used for testing the performance of two independent network interfaces in each network interface pair by using a preset network streaming test method through the virtual gateway.
In a third aspect, an embodiment of the present invention provides a multi-port host, including a processor, a network interface, and a memory, where the network interface is used to send and receive data, and the memory is used to store a computer program; the processor is configured to implement the method for testing a network interface according to any one of the first aspect described above when executing the program stored in the memory.
The embodiment of the invention provides a method and a device for testing network interfaces and a multi-network-port host, wherein the multi-network-port host comprises a plurality of network interfaces, and aiming at two network interfaces to be tested in the multi-network-port host, the two network interfaces to be tested are respectively set as network interfaces of two independent networks which are isolated from each other in an internal network of the multi-network-port host to obtain a network interface pair; and testing the performance of the two network interfaces in the network interface pair. Aiming at two network interfaces to be tested in a multi-network-port host, the two network interfaces are set as network interfaces of independent networks which are isolated from each other in an internal network of the multi-network-port host, so that the two network interfaces can be used for receiving and sending data mutually to complete the test of the performance of the network interfaces, an external switch and client equipment are not needed, and the test cost of the network interfaces can be reduced. Of course, not all of the advantages described above need to be achieved at the same time in the practice of any one product or method of the invention.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a diagram illustrating a system for testing network interface performance in the prior art;
fig. 2a is a schematic flow chart of a testing method of a network interface according to an embodiment of the present invention;
FIG. 2b is a schematic flow chart illustrating a testing method of a network interface according to an embodiment of the present invention;
FIG. 3 is a system diagram illustrating a system for testing network interface performance according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of a testing apparatus for network interfaces according to an embodiment of the present invention;
fig. 5 is a schematic diagram of a multi-portal host according to an embodiment of the invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the 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 invention.
In the prior art, when testing the performance of a network interface, each network interface of a multi-portal host to be tested is connected to a switch, and a client device is connected to the switch, and the structure of the switch is shown in fig. 1. When testing the performance of the network interface, the network streaming test method is utilized, and data is sent to the client device through each network interface in sequence in a polling mode so as to test the performance of each network interface. However, the testing method needs to be externally connected with a switch and client equipment, the testing cost of the network interfaces is high, the performance of each network interface is tested in sequence, and the testing efficiency is low.
In view of this, an embodiment of the present invention provides a method for testing a network interface, which is applied to a multi-port host, with reference to fig. 2a, and the method includes:
s201, setting two network interfaces to be tested in the multi-portal host as network interfaces of two independent networks isolated from each other in the internal network of the multi-portal host, respectively, to obtain a network interface pair.
The multi-network-port host comprises a plurality of network interfaces, two network interfaces to be tested are selected, and the two network interfaces to be tested are connected through a network cable. By a virtualization technology, for example, a Network Namespaces (Netns) virtualization technology or a Virtual Local Area Network (VLAN) virtualization technology, a Network where two Network interfaces to be tested are located is set as an independent Network inside a multi-portal host, and two Network interfaces in the two independent networks are used as a Network interface pair.
S202, testing the performance of the two network interfaces in the network interface pair.
And aiming at the network interface pair, a preset network streaming test method is utilized, and data is sent to the other network interface through one network interface so as to finish the test of the performance of the network interface.
When the number of the network interfaces to be tested in the multi-network-port host is more than two, the multi-network-port host can sequentially select the network interface pairs and test the performance of the two network interfaces in the network interface pairs.
In the embodiment of the invention, aiming at two network interfaces to be tested in the multi-network-port host, the two network interfaces are set as the network interfaces of independent networks which are isolated from each other in the internal network of the multi-network-port host, so that the two network interfaces can be used for mutually receiving and transmitting data to complete the test of the performance of the network interfaces, a switch and client equipment do not need to be externally connected, and the test cost of the network interfaces can be reduced.
Optionally, referring to fig. 2b, for two network interfaces to be tested in the multi-portal host, setting the two network interfaces to be tested as network interfaces of two independent networks isolated from each other in the internal network of the multi-portal host, respectively, to obtain a network interface pair, including:
s2011, the network where each network interface is located is set as an independent network isolated from each other in the internal network of the multi-port host, so as to obtain independent network interfaces.
For each network interface to be tested, the network interface is connected to at least one other network interface than the network interface. Optionally, as shown in fig. 3, the network interfaces in the multi-portal host are connected to each other two by two. For example, each network interface in the multi-portal host is connected two by two through a network cable, and the like. The multi-port host sets a network where the network interface is located as an independent network for each network interface by using a virtualization technology, such as a Netns virtualization technology or a VLAN virtualization technology, and the network interfaces in the independent networks are referred to as independent network interfaces.
And S2012, testing the connection condition of each independent network interface, and determining each network interface pair to be tested, wherein the network interface pair includes two connected independent network interfaces.
The network cards after each virtualization configuration in the multi-port host send data packets through each independent network interface to determine the connection status of each independent network interface, and pairwise pairing the independent network interfaces connected with each other to obtain a network interface pair to be tested.
Optionally, when there is an independent network interface that is not connected to another independent network interface, an alarm prompt is issued.
When the multi-network-port host detects an independent network interface which is not connected with other independent network interfaces, an alarm prompt is sent out, and the alarm prompt can be any alarm form, such as sending out a buzzer, lighting or displaying on a display that the network interfaces are not connected, so that a detector can complete the connection of the network interfaces after receiving the alarm information.
And aiming at each network interface pair, sending data to the other independent network interface through one independent network interface by using a preset network streaming test method so as to finish the test of the performance of the network interface. The multi-network-port host can test the performance of each network interface pair to the independent network interface in parallel, thereby increasing the efficiency of network interface testing.
In the embodiment of the invention, each network interface is respectively set as the independent network interfaces which are mutually isolated in the internal network of the multi-network-port host, the performance test of the network interfaces can be completed by utilizing two independent network interfaces in the multi-network-port host, an external switch and client equipment are not needed, the test cost of the network interfaces can be reduced, the performance of the independent network interfaces in each network interface pair can be tested in parallel, and the test efficiency of the network interfaces can be increased.
Optionally, the setting the network where each network interface is located as an independent network isolated from each other in the internal network of the multi-portal host to obtain an independent network interface respectively includes:
and respectively virtualizing the network card where each network interface is positioned into a network card in an independent network environment by using a network name space virtualization technology, and taking the network interface of the network card virtualized into the independent network environment as an independent network interface.
The multi-network-port host virtualizes and configures the network environment of each network card in the multi-network-port host into mutually independent network environments through a network name space virtualization technology, and the network interfaces of the network cards after the virtualization configuration are used as independent network interfaces.
In the embodiment of the invention, the network name space virtualization technology is utilized to configure each network card into an independent network environment, so that the communication between each network interface in the same multi-port host can be realized, and the change of the multi-port host can be reduced by adopting the Netns virtualization technology, so that the cost is saved.
Optionally, the testing the performance of the two network interfaces in the network interface pair includes:
step one, aiming at each network interface pair, setting the addresses of two independent network interfaces of the network interface pair as two different addresses in the same network segment.
After the network where the network interface is located is configured as an independent network, each independent network interface corresponds to an address, and in order to implement direct communication of each independent network, the addresses of two independent network interfaces in the same network interface pair may be set in the same network segment, and the addresses of the two independent network interfaces are different.
And step two, testing the performance of two independent network interfaces in each network interface pair by using a preset network streaming test method.
In the embodiment of the invention, the addresses of two independent network interfaces of the same network interface pair are set as two different addresses in the same network segment, so that the communication of the two independent network interfaces of the same network interface pair can be directly realized through a network cable without adding gateway equipment, and the test cost can be saved.
Optionally, the testing the performance of the two network interfaces in the network interface pair includes:
step one, aiming at each network interface pair, a virtual gateway is configured.
The multi-network-port host sets a virtual gateway by using a virtualization technology, so that communication between two independent network interfaces in each network interface pair is realized.
And step two, testing the performance of two independent network interfaces in each network interface pair by the virtual gateway and utilizing a preset network streaming test method.
In the embodiment of the invention, the virtual gateway is configured, external hardware equipment is not required to be added, the communication of two independent network interfaces of the same network interface pair is directly realized through a network cable, and the test cost can be saved.
An embodiment of the present invention further provides a testing apparatus for a network interface, which is applied to a multi-port host, with reference to fig. 4, and the apparatus includes:
a network configuration module 401, configured to set, for two network interfaces to be tested in the multi-portal host, the two network interfaces to be tested as network interfaces of two independent networks that are isolated from each other in the internal network of the multi-portal host, respectively, to obtain a network interface pair;
a performance testing module 402, which tests the performance of two network interfaces in the network interface pair.
In the embodiment of the invention, aiming at two network interfaces to be tested in the multi-network-port host, the two network interfaces are set as the network interfaces of independent networks which are isolated from each other in the internal network of the multi-network-port host, so that the two network interfaces can be used for mutually receiving and transmitting data to complete the test of the performance of the network interfaces, a switch and client equipment do not need to be externally connected, and the test cost of the network interfaces can be reduced.
Optionally, in the apparatus for testing a network interface according to the embodiment of the present invention, the network configuration module 401 includes:
the interface network independent submodule is used for respectively setting the network where each network interface is positioned as an independent network which is isolated from each other in the internal network of the multi-port host to obtain an independent network interface;
and the interface pair determining submodule is used for testing the connection condition of each independent network interface and determining each network interface pair to be tested, wherein the network interface pair comprises two connected independent network interfaces.
In the embodiment of the invention, each network interface is respectively set as the independent network interfaces which are mutually isolated in the internal network of the multi-network-port host, the performance test of the network interfaces can be completed by utilizing two independent network interfaces in the multi-network-port host, an external switch and client equipment are not needed, the test cost of the network interfaces can be reduced, the performance of the independent network interfaces in each network interface pair can be tested in parallel, and the test efficiency of the network interfaces can be increased.
Optionally, the interface network independent sub-module is specifically configured to:
and respectively virtualizing the network card where each network interface is positioned into a network card in an independent network environment by using a network name space virtualization technology, and taking the network interface of the network card virtualized into the independent network environment as an independent network interface.
In the embodiment of the invention, the network cards are configured into independent network environments by utilizing a network name space virtualization technology, so that the communication among the network interfaces in the same multi-port host can be realized.
Optionally, the performance testing module 402 includes:
the address configuration submodule is used for setting the addresses of two independent network interfaces of the network interface pair into two different addresses in the same network segment aiming at each network interface pair;
and the first streaming submodule is used for testing the performance of two independent network interfaces in each network interface pair by using a preset network streaming test method.
In the embodiment of the invention, the addresses of two independent network interfaces of the same network interface pair are set as two different addresses in the same network segment, so that the communication of the two independent network interfaces of the same network interface pair can be directly realized through a network cable without adding gateway equipment, and the test cost can be saved.
Optionally, the performance testing module 402 includes:
a gateway configuration submodule, configured to configure a virtual gateway for each of the network interface pairs;
and the second streaming submodule is used for testing the performance of two independent network interfaces in each network interface pair by using a preset network streaming test method through the virtual gateway.
In the embodiment of the invention, the virtual gateway is configured, the external hardware equipment is added differently, and the communication of two independent network interfaces of the same network interface pair is directly realized through a network cable, so that the test cost can be saved.
An embodiment of the present invention further provides a multi-port host, referring to fig. 5, including a processor 501, a network interface 502, and a memory 503, where the network interface 502 is used to send and receive data, and the memory 503 is used to store a computer program; the processor 501 is configured to implement the following steps when executing the program stored in the memory 503:
aiming at two network interfaces to be tested in the multi-network-port host, respectively setting the two network interfaces to be tested as network interfaces of two independent networks which are isolated from each other in an internal network of the multi-network-port host to obtain a network interface pair;
and testing the performance of the two network interfaces in the network interface pair.
In the embodiment of the invention, aiming at two network interfaces to be tested in the multi-network-port host, the two network interfaces are set as the network interfaces of independent networks which are isolated from each other in the internal network of the multi-network-port host, so that the two network interfaces can be used for mutually receiving and transmitting data to complete the test of the performance of the network interfaces, a switch and client equipment do not need to be externally connected, and the test cost of the network interfaces can be reduced.
Optionally, the multi-portal host according to the embodiment of the present invention further includes: a communication bus, wherein the processor 501, the network interface 502 and the memory 503 complete communication with each other through the communication bus.
Optionally, the processor 501 may further implement a test method for any of the network interfaces when executing the program stored in the memory 503.
The communication bus mentioned above for the multi-portal host may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The Memory may include a Random Access Memory (RAM) or a Non-Volatile Memory (NVM), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components.
An embodiment of the present invention further provides a computer-readable storage medium, in which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
aiming at two network interfaces to be tested in the multi-network-port host, respectively setting the two network interfaces to be tested as network interfaces of two independent networks which are isolated from each other in an internal network of the multi-network-port host to obtain a network interface pair;
and testing the performance of the two network interfaces in the network interface pair.
In the embodiment of the invention, aiming at two network interfaces to be tested in the multi-network-port host, the two network interfaces are set as the network interfaces of independent networks which are isolated from each other in the internal network of the multi-network-port host, so that the two network interfaces can be used for mutually receiving and transmitting data to complete the test of the performance of the network interfaces, a switch and client equipment do not need to be externally connected, and the test cost of the network interfaces can be reduced.
Optionally, the computer program can also implement the testing method of any network interface when being executed by the processor.
It is noted that, herein, relational terms such as first and second, and the like may be 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.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the embodiments of the apparatus, the multi-portal host and the storage medium, since they are substantially similar to the method embodiments, the description is relatively simple, and for the relevant points, reference may be made to the partial description of the method embodiments.
The above description is only for the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.
Claims (11)
1. A method for testing a network interface is applied to a multi-network port host, and comprises the following steps:
aiming at two network interfaces to be tested in the multi-network-port host, setting the two network interfaces to be tested as network interfaces of two independent networks which are isolated from each other in an internal network of the multi-network-port host respectively to obtain a network interface pair;
and testing the performance of the two network interfaces in the network interface pair.
2. The method according to claim 1, wherein the setting, for two network interfaces to be tested in the multi-portal host, the two network interfaces to be tested as network interfaces of two independent networks isolated from each other in the internal network of the multi-portal host, respectively, to obtain a network interface pair, comprises:
setting the network where each network interface in the multi-network-port host is located as an independent network isolated from each other in the internal network of the multi-network-port host to obtain an independent network interface;
and testing the connection condition of each independent network interface, and determining each network interface pair to be tested, wherein the network interface pair comprises two connected independent network interfaces.
3. The method according to claim 2, wherein the setting the network where each of the network interfaces is located as an independent network isolated from each other in the internal network of the multi-portal host to obtain an independent network interface respectively comprises:
and respectively virtualizing the network card where each network interface is positioned into the network card of the independent network environment by using a network name space virtualization technology, and taking the network interface of the network card virtualized into the independent network environment as the independent network interface.
4. The method of claim 2, wherein the testing the performance of both of the pair of network interfaces comprises:
setting the addresses of two network interfaces of the network interface pair as two different addresses in the same network segment aiming at each network interface pair;
and testing the performance of two independent network interfaces in each network interface pair by using a preset network streaming test method.
5. The method of claim 2, wherein the testing the performance of both of the pair of network interfaces comprises:
configuring a virtual gateway for each of the pairs of network interfaces;
and testing the performance of two network interfaces in each network interface pair by using a preset network streaming test method through the virtual gateway.
6. A testing device for network interface, which is applied to a multi-port host, the device comprising:
the network configuration module is used for setting two network interfaces to be tested in the multi-network-port host as network interfaces of two independent networks which are isolated from each other in an internal network of the multi-network-port host respectively to obtain a network interface pair;
and the performance testing module is used for testing the performance of the two network interfaces in the network interface pair.
7. The apparatus of claim 6, wherein the network configuration module comprises:
the interface network independent submodule is used for respectively setting the network where each network interface is positioned as an independent network which is isolated from each other in the internal network of the multi-port host to obtain an independent network interface;
and the interface pair determining submodule is used for testing the connection condition of each independent network interface and determining each network interface pair to be tested, wherein the network interface pair comprises two connected independent network interfaces.
8. The apparatus according to claim 7, wherein the interface network independent sub-module is specifically configured to:
and respectively virtualizing the network card where each network interface is positioned into the network card of the independent network environment by using a network name space virtualization technology, and taking the network interface of the network card virtualized into the independent network environment as the independent network interface.
9. The apparatus of claim 7, wherein the performance testing module comprises:
the address configuration submodule is used for setting the addresses of two independent network interfaces of the network interface pair to be two different addresses in the same network segment aiming at each network interface pair;
and the first streaming submodule is used for testing the performance of two independent network interfaces in each network interface pair by using a preset network streaming test method.
10. The apparatus of claim 7, wherein the performance testing module comprises:
a gateway configuration submodule, configured to configure a virtual gateway for each network interface pair;
and the second streaming submodule is used for testing the performance of two independent network interfaces in each network interface pair by using a preset network streaming test method through the virtual gateway.
11. A multi-network port host is characterized by comprising a processor, a network interface and a memory, wherein the network interface is used for sending and receiving data, and the memory is used for storing a computer program; the processor, when executing the program stored in the memory, implementing the method steps of any of claims 1-5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810479517.1A CN110505110B (en) | 2018-05-18 | 2018-05-18 | Network interface test method and device and multi-network-port host |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810479517.1A CN110505110B (en) | 2018-05-18 | 2018-05-18 | Network interface test method and device and multi-network-port host |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110505110A CN110505110A (en) | 2019-11-26 |
CN110505110B true CN110505110B (en) | 2021-07-20 |
Family
ID=68585009
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810479517.1A Active CN110505110B (en) | 2018-05-18 | 2018-05-18 | Network interface test method and device and multi-network-port host |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110505110B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111224847B (en) * | 2020-01-15 | 2023-02-28 | 西安青松光电技术有限公司 | Network port test method and test system of sending card |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1917452A (en) * | 2005-08-19 | 2007-02-21 | 上海亿人通信终端有限公司 | Method for testing forwarding performance of Ethernet exchange, and method for configuring network |
CN101594222A (en) * | 2009-06-29 | 2009-12-02 | 中兴通讯股份有限公司 | A kind of interface test method and device |
US7872988B1 (en) * | 2009-09-21 | 2011-01-18 | Spirent Communications, Inc. | Methods and apparatuses for generating network test packets and parts of network test packets |
CN103532785A (en) * | 2013-10-18 | 2014-01-22 | 上海斐讯数据通信技术有限公司 | Full load test method for Ethernet switch |
CN104954205A (en) * | 2015-07-22 | 2015-09-30 | 上海斐讯数据通信技术有限公司 | Soft routing performance test method |
CN107278362A (en) * | 2016-11-09 | 2017-10-20 | 华为技术有限公司 | The method of Message processing, main frame and system in cloud computing system |
CN107566152A (en) * | 2017-06-13 | 2018-01-09 | 中国银联股份有限公司 | Method and device for virtual network link detection |
CN107979504A (en) * | 2016-10-25 | 2018-05-01 | 中兴通讯股份有限公司 | A kind of detection method of Ethernet switch network interface, apparatus and system |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102223268B (en) * | 2011-06-17 | 2014-04-02 | 福建星网锐捷网络有限公司 | Network equipment as well as method and device for starting hardware testing of same |
CN103188116B (en) * | 2011-12-31 | 2016-03-02 | 中国移动通信集团公司 | A kind of network performance detection method of blade server and system |
US10044795B2 (en) * | 2014-07-11 | 2018-08-07 | Vmware Inc. | Methods and apparatus for rack deployments for virtual computing environments |
CN107005441B (en) * | 2016-08-25 | 2020-12-04 | 华为技术有限公司 | Dial testing method, dial testing system and computing node |
CN107547304A (en) * | 2017-07-13 | 2018-01-05 | 紫光华山信息技术有限公司 | Network card testing method, device and machinable medium |
-
2018
- 2018-05-18 CN CN201810479517.1A patent/CN110505110B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1917452A (en) * | 2005-08-19 | 2007-02-21 | 上海亿人通信终端有限公司 | Method for testing forwarding performance of Ethernet exchange, and method for configuring network |
CN101594222A (en) * | 2009-06-29 | 2009-12-02 | 中兴通讯股份有限公司 | A kind of interface test method and device |
US7872988B1 (en) * | 2009-09-21 | 2011-01-18 | Spirent Communications, Inc. | Methods and apparatuses for generating network test packets and parts of network test packets |
CN103532785A (en) * | 2013-10-18 | 2014-01-22 | 上海斐讯数据通信技术有限公司 | Full load test method for Ethernet switch |
CN104954205A (en) * | 2015-07-22 | 2015-09-30 | 上海斐讯数据通信技术有限公司 | Soft routing performance test method |
CN107979504A (en) * | 2016-10-25 | 2018-05-01 | 中兴通讯股份有限公司 | A kind of detection method of Ethernet switch network interface, apparatus and system |
CN107278362A (en) * | 2016-11-09 | 2017-10-20 | 华为技术有限公司 | The method of Message processing, main frame and system in cloud computing system |
CN107566152A (en) * | 2017-06-13 | 2018-01-09 | 中国银联股份有限公司 | Method and device for virtual network link detection |
Also Published As
Publication number | Publication date |
---|---|
CN110505110A (en) | 2019-11-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20240126705A1 (en) | Emulated endpoint configuration | |
CN108509210B (en) | System and method for automatically updating basic input output system | |
CN105376107B (en) | Terminal testing method and proxy server | |
CN111858296B (en) | Interface testing method, device, equipment and storage medium | |
CN109951325B (en) | Network cable connection checking method and device | |
US10915486B1 (en) | Ingress data placement | |
US9331915B1 (en) | Dynamic network traffic mirroring | |
US20190372804A1 (en) | Method and apparatus for operating smart network interface card | |
CN108282385B (en) | Port test method and communication equipment | |
RU2631769C2 (en) | Method and device for determining objective of information processing | |
US10355968B2 (en) | Diagnosis of a network adapter during network operation | |
CN109660422B (en) | Network card bandwidth testing method, device, terminal and storage medium based on multiple processes | |
CN114095567B (en) | Data access request processing method and device, computer equipment and medium | |
US20190140888A1 (en) | Computer readable media, methods, and computer apparatuses for network service continuity management | |
CN111752770A (en) | Service request processing method, system, computer device and storage medium | |
CN108628712B (en) | Application program testing method and terminal equipment | |
US10180919B1 (en) | Broadcasting reads to multiple modules | |
CN109446130B (en) | Method and system for acquiring state information of I/O (input/output) equipment | |
CN110505110B (en) | Network interface test method and device and multi-network-port host | |
CN115190062A (en) | Service processing method and device, electronic equipment and computer readable storage medium | |
CN110297764B (en) | Vulnerability test model training method and device | |
US20160328200A1 (en) | Testing screens of a multi-screen device | |
US8959209B1 (en) | Systems and methods to indicate compatibility | |
CN109905486B (en) | Application program identification display method and device | |
WO2023024919A1 (en) | Transport control word architecture for physical port mirroring |
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 |