Network port configuration method, device, equipment and medium in network card performance test scenario
By identifying and configuring the IP address in the network card performance test scenario, the problem of low IP address configuration efficiency of multi-network card machines is solved, and efficient and accurate network port configuration and testing environment preparation are achieved.
Patent Information
- Application Number
- CN202211357388.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-01
- Publication Date
- 2024-12-03
- Estimated Expiration
- 2042-11-01
AI Technical Summary
In the performance test of network card, the IP address configuration of multi-network card machines is very labor-intensive, time-consuming and error-prone, and the existing manual configuration methods are inefficient and inaccurate enough.
By scanning all physical network ports of the target configuration device, identifying the IP address to configure the network port, and automatically or manually configure it according to the network configuration type (automatically created or manually created), providing real-time user prompts to ensure the network of the test server and the client being tested The port is in the same LAN, improving the efficiency and accuracy of IP address configuration.
It realizes efficient IP address batch setting for multiple network card machines in network card performance testing, reduces configuration workload, improves testing efficiency and accuracy, and allows testers to monitor configuration results in real time.
Smart Images

Figure CN118041767B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of software testing, and in particular to a network port configuration method, device, equipment and medium in a network card performance testing scenario. Background Art
[0002] When using various test software (for example, netperf software) to test the performance of the network card, the client under test and the test server need to work together to implement the test. The test content mainly involves the test server using one or more physical network ports to send test data packets to one or more physical network ports paired in the client under test for testing. Therefore, before performing the network card performance test, it is necessary to first configure the IP (Internet Protocol) address of each physical network port in the client under test and the test server.
[0003] In the prior art, the IP address of each physical network port is configured mainly by manual configuration. However, with the continuous advancement of multi-network card technology, when there are a large number of network cards in a test machine, the workload of manually configuring the IP address of each physical network port becomes huge, the labor cost is high, it is time-consuming and labor-intensive, and it is prone to errors. Summary of the invention
[0004] The embodiment of the present invention provides a network port configuration method, device, equipment and medium in a network card performance test scenario, so as to provide a new technology for efficient and convenient network port IP address configuration.
[0005] According to one aspect of the present invention, a network port configuration method in a network card performance test scenario is provided, comprising:
[0006] Obtain a target configuration device, and scan all physical network ports included in the target configuration device;
[0007] Identify the IP address configuration network port among all physical network ports, and obtain the network configuration type that matches the target configuration device;
[0008] If the network configuration type is to automatically create an IP address, obtaining the test role of the target configuration device in the network card performance test scenario;
[0009] According to the test role, the IP address of each IP address configuration network port is automatically configured, and during the IP address configuration process, a real-time user prompt is given to each IP address configuration network port currently configured.
[0010] Further, after obtaining the network configuration type matching the target configuration device, the method further includes:
[0011] If the network configuration type is to manually create an IP address, the IP address of each IP address configuration network port is configured according to the IP address configuration information input by the user;
[0012] During the IP address configuration process, real-time user prompts are given for each IP address configuration network port currently configured.
[0013] The advantage of this setting is that while providing users with the option of automatically creating an IP address, it also provides users with the option of manually creating an IP address, further enriching the adaptability and versatility of the network port configuration method.
[0014] Further, according to the test role, the IP address of each IP address configuration network port is automatically configured, including:
[0015] If the test role is a test server, the IP address of each IP address configuration network port is automatically configured directly.
[0016] The advantage of this setting is that it specifically implements an IP address configuration method for the test server. In addition to automatically configuring the IP addresses of each network port in the test server, it can also guide the paired network port in the tested client to follow the IP address configuration based on the above IP address configuration results, thereby ensuring that the two paired network ports in the test server and the tested client belong to the same local area network, providing accurate network configuration for subsequent network card performance testing. While maximizing the efficiency of automatic IP address configuration, it also improves the accuracy of IP address configuration.
[0017] Further, according to the test role, the IP address of each IP address configuration network port is automatically configured, including:
[0018] If the test role is a client under test, wait for the test server matching the client under test to complete the network port configuration, and then obtain the current IP address to configure the network port in turn;
[0019] Wherein, a direct communication relationship between the tested client and the tested network ports of the test server is established in advance according to the mapping relationship between the tested network ports of the tested parties in the network card performance test scenario;
[0020] Send test data packets of different network segments through the current IP address configuration network port to perform a network connection test, and automatically configure the IP address of the current IP address configuration network port according to the test result;
[0021] Return to execute the operations of obtaining the current IP address configuration network port in sequence until the automatic configuration of all IP address configuration network ports is completed.
[0022] The advantage of this setting is that it specifically implements an IP address configuration method for the client under test. During the network connection test, the client under test can obtain the IP addresses configured for each network port in the test server, and then follow the configuration based on the pairing relationship between the local network port and the test server network port and the IP address configuration result sent by the test server, thereby ensuring that the two paired network ports in the test server and the client under test belong to the same local area network, providing accurate network configuration for subsequent performance tests. While maximizing the efficiency of automatic configuration of IP addresses, it also improves the accuracy of IP address configuration.
[0023] Further, according to the test result, the IP address of the current IP address configuration network port is automatically configured, including:
[0024] In the test result, obtain the target IP address in the target network segment in the network connection test;
[0025] Identify the network segment number and host number in the target IP address;
[0026] The host number is accumulated to obtain an updated host number, and the network segment number is combined with the updated host number to obtain a current IP address;
[0027] Configure the current IP address as the current IP address configuration network port
[0028] The advantage of this setting is that it ensures that the two paired network ports in the test server and the tested client belong to the same local area network (network segment), and the IP addresses of the two are not mixed, thereby improving the efficiency of setting the follow-up IP address.
[0029] Furthermore, the IP address configuration network port is identified among all physical network ports, including:
[0030] Generate a physical network port IP list according to each of the physical network ports and the current IP address corresponding to each physical network port, and display the physical network port IP list on a user display page;
[0031] The user display page includes a selection control for configuring an IP address for each physical network port or not configuring an IP address;
[0032] In response to a selection instruction of a selection control in the user display page, an IP address configuration network port is identified among all the physical network ports.
[0033] The advantage of this setting is that before the user configures the IP address of the physical network port, the current IP addresses of all physical network ports in the target configuration device can be displayed to the user, and the user can independently select the IP address to be configured, which further improves the effectiveness and pertinence of the IP address configuration.
[0034] Further, after scanning all physical network ports included in the target configuration device, the method further includes:
[0035] Obtaining a PCIe (Peripheral Component Interconnect Express) address corresponding to each of the physical network ports, and determining a network card device corresponding to each of the physical network ports according to the PCIe address;
[0036] After automatically configuring the IP address of each IP address configuration network port according to the test role, the method further includes:
[0037] Generate performance test information corresponding to each physical network port according to the network card bandwidth of the network card device corresponding to each physical network port;
[0038] According to the performance test information, a performance test is performed on each physical network port in the target configuration device.
[0039] The advantage of this setting is that: in order to address the problem that the existing technology cannot directly locate the network card device to which the physical network port belongs, by accurately establishing the corresponding relationship between the physical network port and the network card device, the network card bandwidth corresponding to each physical network port can be accurately known, and then the performance test information corresponding to each physical network port can be conveniently and accurately set, thereby improving the setting efficiency and accuracy of the performance test information.
[0040] Furthermore, during the configuration process, real-time user prompts are provided for each IP address configuration network port currently configured, including:
[0041] In the process of configuring the network port of the currently configured target IP address configuration, obtaining the target network port identifier corresponding to the target IP address configuration network port;
[0042] While the target network port identifier is displayed to the user, the network port light of the target IP address configuration network port is controlled to flash.
[0043] The advantage of this setting is that it allows testers to participate in real-time monitoring of configuration results in a simple and convenient way, so as to further improve the efficiency of network card performance testing.
[0044] According to another aspect of the present invention, a network port configuration device in a network card performance test scenario is provided, comprising:
[0045] A network port scanning module, used to obtain a target configuration device and scan all physical network ports included in the target configuration device;
[0046] A network configuration type acquisition module, used to identify the IP address configuration network port among all physical network ports, and acquire the network configuration type matching the target configuration device;
[0047] A test role acquisition module, used for acquiring the test role of the target configuration device in the network card performance test scenario if the network configuration type is to automatically create an IP address;
[0048] The configuration prompt module is used to automatically configure the IP address of each IP address configuration network port according to the test role, and during the IP address configuration process, provide real-time user prompts for each currently configured IP address configuration network port.
[0049] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:
[0050] at least one processor; and
[0051] a memory communicatively connected to the at least one processor; wherein,
[0052] The memory stores a computer program that can be executed by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the network port configuration method in the network card performance test scenario described in any embodiment of the present invention.
[0053] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the network port configuration method in the network card performance test scenario described in any embodiment of the present invention when executed.
[0054] The technical solution of the embodiment of the present invention first scans and obtains all physical network ports in the target configuration device in the network card performance test scenario, and identifies the IP address configuration network port that needs to be configured with an IP address among all the physical network ports; when it is determined that the network configuration type of the target configuration device is to automatically create an IP address, the IP address of each IP address configuration network port is automatically configured according to the test role of the target configuration device in the network card performance test scenario, and during the IP address configuration process, a real-time user prompt is given to each currently configured IP address configuration network port. The technical solution of the embodiment of the present invention aims at the problem that the prior art cannot effectively set the IP address of a multi-network card machine in the network card performance test scenario, and provides a new method for configuring the network port that is efficient and convenient, which can quickly realize the batch setting of the IP addresses of the multi-network card machines in the network card performance test scenario, reduce the workload of the network port configuration, improve the work efficiency of the network card performance test, and enable the test personnel to participate in the real-time monitoring of the configuration results in a simple and convenient way.
[0055] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0056] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative work.
[0057] Figure 1 This is a flowchart of a network port configuration in a network card performance test scenario provided according to the first embodiment of the present invention;
[0058] Figure 2 is a flowchart of a network port configuration method in another network card performance test scenario provided by Embodiment 2 of the present invention;
[0059] Figure 3 is a flowchart of a network port configuration method in a network card performance test scenario provided in Embodiment 3 of the present invention;
[0060] Figure 4 The present invention is a scenario diagram for implementing a network port configuration method in a network card performance test scenario in an embodiment of the present invention.
[0061] Figure 5 It is a structural schematic diagram of a network port configuration device in a network card performance test scenario provided in Embodiment 3 of the present invention;
[0062] Figure 6 It is a structural schematic diagram of an electronic device for implementing a network port configuration method in a network card performance test scenario according to an embodiment of the present invention. DETAILED DESCRIPTION
[0063] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0064] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0065] Embodiment 1
[0066] Figure 1 This is a flowchart of a network port configuration method in a network card performance test scenario provided by the first embodiment of the present invention. This embodiment is applicable to the case of configuring an IP address for a physical network port to be tested in a network card performance test scenario. The method can be executed by a network port configuration device in a network card performance test scenario. The device can be implemented in the form of hardware and / or software and can generally be integrated into a test server or a client to be tested in a network card performance test scenario. Figure 1 As shown, the method includes:
[0067] S110: Acquire a target configuration device, and scan all physical network ports included in the target configuration device.
[0068] The target configuration device refers to a device that needs to configure the IP addresses of each physical network port before the network card performance test. The device can be a test server in the network card performance test scenario, or it can be a client under test. When the target configuration device is a test server, the target configuration device is mainly used to send test data packets when performing a network card performance test. When the target configuration device is a client under test, the target configuration device is mainly used to monitor the test data packets sent by the test server when performing a network card performance test.
[0069] A network card device is a hardware device connected to a network. Accordingly, one, two or more network card devices may be configured in the target configuration device. Optionally, the target configuration device may be a computer or server (also referred to as a multi-network card machine) configured with multiple network card devices. Network card devices have different network card bandwidths (or, may also be referred to as the maximum transmission speed per unit time), for example, 10M, 100M, 1G, 10G, 25G, 40G or even 100G. In general, a network card with a suitable network card bandwidth may be flexibly configured according to the actual needs of the target configuration device to establish a communication connection between the target configuration device and other devices.
[0070] A physical network port is a hardware module configured on a network card device for plugging in a network cable. Generally speaking, a network card device may include one or more physical network ports. Each physical network port can be connected to the network by plugging in a network cable.
[0071] The network card performance test in this embodiment refers to the test of data transmission and reception of all physical network ports included in the network card device. When performing the network card performance test, it is necessary to configure the IP addresses of all physical network ports included in the target configuration device to ensure that each physical network port has an effective network connection. Furthermore, it is necessary to first obtain all physical network ports included in the target configuration device.
[0072] Among them, all physical network ports included in the target configuration device can be scanned by the system query tool built into the target configuration device, or all physical network ports included in the target configuration device can be scanned by non-system native network port information query software. Optionally, if the target configuration device is pre-configured with the Linus operating system, the Linus native command can be used:
[0073] ls -l / sys / class / net /
[0074] ls -l / sys / class / net / |grep -v virtual, obtain all physical network ports included in the target configuration device.
[0075] S120: Identify the IP address configuration network port among all physical network ports, and obtain a network configuration type that matches the target configuration device.
[0076] The IP address is a way of addressing a host on the Internet and is a unified address format provided by the IP protocol. An IP address is a 32-bit binary number consisting of a network ID and a host ID, which is used to uniquely identify a computer in the network. The network ID is used to identify the network segment where the computer is located; the host ID is used to identify the location of the computer in the network segment.
[0077] Among them, the IP address configuration network port refers to the physical network port that needs to be configured with an IP address among all physical network ports. It is understandable that the IP address currently configured for one or more physical network ports in the target configuration device may have met the IP address configuration requirements. Therefore, such physical network ports do not need to perform IP address configuration. Therefore, in order to improve the efficiency of network port configuration and save network port configuration time, it is necessary to first identify the IP address configuration network port among all physical network ports.
[0078] Optionally, the method of identifying the IP address configuration network port among all physical network ports may be identification in response to a manual selection by a user, or may be identification by a combination of automatic system identification and identification in response to manual confirmation by a user, and the like.
[0079] Taking the system's automatic identification combined with identification in response to the user's manual confirmation as an example, first obtain the current IP address information of each physical network port, where the obtained IP address information may be a specific IP address or may be empty. To identify an empty physical network port, it is definitely necessary to configure the IP address, while the physical network identified as a specific IP address may not require the IP address to be configured. Furthermore, the above-mentioned physical network ports with IP addresses can be prompted to the user, and the user can select the physical network ports that need to be configured with IP addresses from the above-mentioned physical network ports.
[0080] Among them, the network configuration type matching the target configuration device may include manually creating an IP address and automatically creating an IP address. Manually creating an IP address can be understood as a user manually configuring an IP address for the network port configuration, and automatically creating an IP address can be understood as the target configuration device automatically configuring an IP address for the network port configuration according to the built-in IP address configuration rules.
[0081] Furthermore, when an IP address configuration network port is identified, a network configuration type matching the target configuration device can be obtained through system query.
[0082] S130: If the network configuration type is to automatically create an IP address, obtain the test role of the target configuration device in the network card performance test scenario.
[0083] Among them, when it is determined that the network configuration type is to automatically create an IP address, it is necessary to further obtain the test role of the target configuration device in the network card performance test scenario.
[0084] Specifically, the test roles may be a test server and a tested client.
[0085] Specifically, the test client refers to a program that corresponds to the server and provides local services to the client. It is generally installed on an ordinary client and needs to cooperate with the server to run. Commonly used client terminals include web browsers used for the World Wide Web, email clients for sending and receiving emails, and client software for instant messaging. For this type of application, there needs to be a corresponding server and service program in the network to provide corresponding services, such as database services, email services, etc., so a specific communication connection needs to be established between the client and the server to ensure the normal operation of the application.
[0086] Specifically, the test server refers to a server device that provides computing services. Since the server needs to respond to service requests and perform processing, the server should have the ability to undertake and guarantee services. The server consists of a processor, hard disk, memory, system bus, etc., which is similar to a general computer architecture. However, due to the need to provide highly reliable services, high requirements are placed on processing power, stability, reliability, security, scalability, manageability, etc. Depending on the type of service provided by the server, it can be divided into file servers, database servers, application servers, and WEB servers, etc.
[0087] In this embodiment, by acquiring the device description information of the target configuration device (for example, the number of computing cores, memory size, or device type information, etc.), it is possible to quickly identify whether the target configuration device is a common computer or a dedicated server.
[0088] Specifically, when the target configuration device is identified as an ordinary computer, the test role of the target configuration device in the network card performance test scenario is determined to be the client under test; when the target configuration device is identified as a dedicated server, the test role of the target configuration device in the network card performance test scenario is determined to be the test client.
[0089] S140: Automatically configure the IP address of each IP address configuration network port according to the test role, and during the IP address configuration process, provide a real-time user prompt for each currently configured IP address configuration network port.
[0090] In this embodiment, different types of IP address configuration methods may be adopted according to different test roles of the target configuration device.
[0091] Specifically, if the test role is a test server, the IP address of each IP address configuration network port in the target configuration device can be automatically configured, and after the configuration is completed, the client under test that is paired with the target configuration device for network card performance testing is instructed to follow the configuration based on the configured IP addresses. This can ensure that the two paired network ports in the test server and the client under test belong to the same local area network, so as to provide accurate network configuration for subsequent network card performance testing;
[0092] If the test role is a client under test, the target configuration device, after waiting for the IP addresses of all network ports in the test server that is paired with the target configuration device for the network card performance test, establishes a direct communication relationship between the client under test and each network port of the test server according to the mapping relationship between the network ports of the test parties in the network card performance test scenario; furthermore, each IP address configuration network port in the target configuration device can send test data packets of different network segments respectively to perform a network connection test, and automatically configure the IP address of each IP address configuration network port according to the test results.
[0093] Furthermore, since the number of IP address configuration network ports of the target configuration device is generally multiple, and it is necessary to ensure that each of the above IP address configuration network ports corresponds to the IP address of each physical network port in the paired device of the target configuration device in the network card performance test scenario. In order to further ensure the accuracy of the configuration, real-time user prompts can be given for each currently configured IP address configuration network port, so that testers can participate in real-time monitoring of configuration results in a simple and convenient way.
[0094] Optionally, during the IP address configuration process, a real-time user prompt can be provided for each IP address configuration network port currently configured. The network port light of each IP address configuration network port currently configured can be controlled to flash during the IP address configuration process; or, during the IP address configuration process, the system can pop up a network port information details page for each IP address configuration network port currently configured to provide real-time user prompts, etc.
[0095] The technical solution of the embodiment of the present invention first scans and obtains all physical network ports in the target configuration device in the network card performance test scenario, and identifies the IP address configuration network port that needs to be configured with an IP address among all the physical network ports; when it is determined that the network configuration type of the target configuration device is to automatically create an IP address, the IP address of each IP address configuration network port is automatically configured according to the test role of the target configuration device in the network card performance test scenario, and during the IP address configuration process, a real-time user prompt is given to each currently configured IP address configuration network port. The technical solution of the embodiment of the present invention aims at the problem that the prior art cannot effectively set the IP address of a multi-network card machine in the network card performance test scenario, and provides a new method for configuring the network port that is efficient and convenient, which can quickly realize the batch setting of the IP addresses of the multi-network card machines in the network card performance test scenario, reduce the workload of the network port configuration, improve the work efficiency of the network card performance test, and enable the test personnel to participate in the real-time monitoring of the configuration results in a simple and convenient way.
[0096] Based on the above embodiments, the method may further include:
[0097] After obtaining the network configuration type that matches the target configuration device, if the network configuration type is to manually create an IP address, the IP address of each IP address configuration network port is configured according to the IP address configuration information input by the user; during the IP address configuration process, real-time user prompts are given for each IP address configuration network port currently configured.
[0098] Specifically, after obtaining the network configuration type matching the target configuration device, if it is verified that the network configuration type is manually creating an IP address, the IP address of each IP address configuration network port is configured according to the IP address configuration information input by the user.
[0099] It is understandable that in the network card performance test scenario, the user may have special testing requirements for certain specific network segments or URLs. Therefore, the solution of the embodiment of the present invention can provide the option of allowing the user to customize the IP address of each IP address configuration network port for the user to choose.
[0100] Optionally, after all IP address configuration network ports are identified in all physical network ports, the method of the embodiment of the present invention can pop up a configuration item of the network configuration type, allowing the user to choose to manually configure the IP address or for the target configuration device to automatically configure the IP address.
[0101] Furthermore, in addition to providing a unified network configuration type configuration item for all IP address configuration network ports, network configuration type configuration items can also be provided for each IP address configuration network port, so that the user can determine the physical network ports of the IP addresses that need to be manually configured and those that need to be automatically configured among all IP address configuration network ports.
[0102] At the same time, in order to make the matching relationship clear at a glance during the IP address configuration process, it is necessary to provide real-time user prompts for each currently configured IP address configuration network port.
[0103] The advantage of this setting is that while providing users with the option of automatically creating an IP address, it also provides users with the option of manually creating an IP address, further enriching the adaptability and versatility of the network port configuration method.
[0104] Embodiment 2
[0105] Figure 2 This is a flow chart of another network port configuration method in a network card performance test scenario provided by Embodiment 2 of the present invention. This embodiment is a further refinement of the above technical solutions, and the technical solution in this embodiment can be combined with various optional solutions in one or more of the above embodiments.
[0106] Correspondingly, such as Figure 2 As shown, the method for configuring a network port in a network card performance test scenario of this embodiment may include:
[0107] S210: Acquire a target configuration device, and scan all physical network ports included in the target configuration device.
[0108] S220: Identify the IP address configuration network port among all physical network ports, and obtain a network configuration type that matches the target configuration device.
[0109] The network configuration type matching the target configuration device may be obtained by system inquiry, or the network configuration type matching the target configuration device may be obtained by responding to a question. Exemplarily, when obtaining the network configuration type matching the target configuration device, if there is no response operation within 10 seconds, it is assumed to be an automatic configuration IP address.
[0110] S230, judging the network configuration type: if the network configuration type is manually creating an IP address, executing S240; if the network configuration type is automatically creating an IP address, executing S260;
[0111] In this embodiment, after the IP address configuration network port is identified, the network configuration type can be determined according to the user's check information in the system form to inform the target configuration device whether to automatically create the IP address or manually create the IP address by the user.
[0112] S240. Configure the IP address of each IP address configuration network port according to the IP address configuration information input by the user, and execute S250.
[0113] The IP address configuration information input by the user may include a network segment ID (Identity document) and a host ID. When the user manually configures the IP address of the IP address configuration network port, the user first needs to find the network properties of the target configuration device, open Internet Protocol version 4, fill in the IP address, subnet mask, default gateway and DNS (Domain Name System) server in sequence, and complete the manual configuration of the IP address of the IP address configuration network port.
[0114] S250, during the IP address configuration process, providing a real-time user prompt for each IP address configuration network port currently configured;
[0115] Among them, through real-time user prompts, it can be clearly displayed which actual physical network port is currently configuring the IP address.
[0116] Optionally, during the configuration process of the target IP address configuration network port currently being configured, the target network port identifier corresponding to the target IP address configuration network port can be obtained, and while the target network port identifier is displayed to the user, the network port light of the target IP address configuration network port can be controlled to flash to provide real-time user prompts; alternatively, during the IP address configuration process, the system can pop up a network port information details page for each currently configured IP address configuration network port to provide real-time user prompts, etc.
[0117] S260, obtaining and determining the test role of the target configuration device in the network card performance test scenario; if the test role is a test server, executing S270; if the test role is a tested client, executing S280.
[0118] Specifically, when it is determined that the network configuration type is to automatically create an IP address, the test role of the target configuration device in the network card performance test scenario is obtained, and it is determined whether the test role is specifically a test client or a test server.
[0119] S270. Automatically configure the IP address of the IP address configuration network port directly, and during the IP address configuration process, provide a real-time user prompt for each currently configured IP address configuration network port.
[0120] In this embodiment, if the test role is a test server, each IP address configuration network port can be automatically configured according to a preset IP address configuration strategy, and a real-time user prompt can be provided during the configuration process of each IP address configuration network port. When the test server completes the configuration of the IP addresses of all IP address configuration network ports, the above IP addresses can be provided to the tested client matching the test server for follow-up configuration of the IP address.
[0121] S280, after waiting for the test server matching the tested client to complete the network port configuration, execute S290.
[0122] In this embodiment, a direct communication relationship between the tested client and the tested network ports of the test server is established in advance according to the mapping relationship between the tested network ports in the network card performance test scenario.
[0123] As mentioned above, the network card performance test scenario requires the use of both the client under test and the test server to implement a complete network card performance test process. Furthermore, the two test parties in the network card performance test scenario specifically refer to the target configuration device as the test server, and the client under test that matches the target configuration device. At the same time, before the network card performance test, it is also necessary to specify the mapping relationship between the network ports between the test server and the client under test, that is, which physical network port in the test server and which physical network port in the client under test perform the test of sending and receiving test data packets.
[0124] Correspondingly, the mapping relationship between the network ports of the two parties under test includes multiple network port mappings, each of which includes a physical network port in the test server and a peer network port in the tested client that is tested together with the physical network port. By querying the above mapping relationship between the network ports of the two parties under test, a direct communication relationship between the tested client and each network port of the two parties under test in the test server can be established.
[0125] Specifically, a network port A in the tested client and a network port B in the test server may be connected through a network cable, wherein the network port A and the network port B are one of the network port mappings in the mapping relationship between the network ports of the two parties under test.
[0126] S290, obtain the current IP address and configure the network port in sequence, and execute S2100.
[0127] S2100, configure the network port through the current IP address to send test data packets in different network segments to test the network connection.
[0128] Specifically, a test data packet of the same network segment may be sent through a ping test command, or other types of network test tools may be used to send test data packets of different network segments.
[0129] S2110. Automatically configure the IP address of the current IP address configuration network port according to the test result, and during the IP address configuration process, provide a real-time user prompt for each currently configured IP address configuration network port.
[0130] In an optional implementation of this embodiment, automatically configuring the IP address of the current IP address configuration network port according to the test result may include:
[0131] In the test result, the target IP address in the target network segment in the network connection test is obtained; the network segment number and host number in the target IP address are identified; the host number is accumulated to obtain an updated host number, and the network segment number is combined with the updated host number to obtain the current IP address; the current IP address is configured as the IP address of the network port configured by the current IP address.
[0132] In this optional implementation manner, a specific IP address configuration network port (ie, the current IP address configuration network port) is taken as an example to introduce the IP address follow-up configuration process.
[0133] First, when the current IP address configuration network port of the tested client passes the network connection test, it is determined that the target IP address that is successfully pinged is 251.109.25.6. According to the subnet mask 255.255.255.0, the network segment number is determined to be 251.109.25 and the host number is 6. After that, the host number can be accumulated, for example, a simple +1 accumulation is performed to obtain an updated host number 7. By combining the network segment number with the updated host number, a current IP address of the form 251.109.25.7 can be obtained as the IP address of the current IP address configuration network port.
[0134] S2120, determine whether the automatic configuration of all IP address configuration network ports is completed: if so, end the process; otherwise, return to execute S290.
[0135] The technical solution of the embodiment of the present invention selects different IP address configuration methods to configure the IP addresses of the IP address configuration network ports in the target configuration device according to different test roles of the target configuration device. It can ensure that the two paired network ports in the test server and the tested client belong to the same local area network, so as to provide accurate network configuration for subsequent performance tests. While the efficiency of automatic configuration of IP addresses is improved to the greatest extent, the accuracy of IP address configuration is also improved.
[0136] Embodiment 3
[0137] Figure 3 It is a flowchart of a network port configuration method in another network card performance test scenario provided according to Embodiment 3 of the present invention; this embodiment is a further refinement of the above-mentioned technical solutions, and the technical solution in this embodiment can be combined with various optional solutions in one or more of the above-mentioned embodiments.
[0138] Correspondingly, such as Figure 3 As shown, the method for configuring a network port in a network card performance test scenario of this embodiment may include:
[0139] S310, obtaining a target configuration device, and scanning all physical network ports included in the target configuration device;
[0140] S320, obtaining a PCIe address corresponding to each of the physical network ports, and determining a network card device corresponding to each of the physical network ports according to the PCIe address;
[0141] Among them, the PCIe is a very popular high-speed motherboard expansion bus interface standard, which adopts a serial link connection architecture with a point-to-point topology, making its processing more reliable, the overall speed faster and the production cost lower.
[0142] In this embodiment, in order to achieve more accurate and efficient network card performance testing, performance test information corresponding to each physical network port can be automatically constructed according to the network card performance information of the network cards to which different physical network ports belong, such as the network card bandwidth.
[0143] Based on this, it is necessary to first determine the network card device corresponding to each physical network port. Considering that the network card device will assign a unique PCIe address to each physical network port in the network card device after completing the network card registration, the PCIe address corresponding to each of the physical network ports can be determined first. Furthermore, the network card device corresponding to each physical network port can be determined by querying the correspondence between each network card device and the assigned PCIe address.
[0144] Similarly, the PCIe address corresponding to each of the physical network ports and the mapping relationship between the PCIe address and the network port device can be obtained through the system query tool built into the target configuration device or through non-system native query software.
[0145] S330: Generate a physical network port IP list according to each of the physical network ports and the current IP address corresponding to each physical network port, and display the physical network port IP list on a user display page.
[0146] The user display page includes a selection control for configuring an IP address for each physical network port or not configuring an IP address.
[0147] In this embodiment, the current IP address corresponding to each of the physical network ports can also be obtained through the system query tool built into the target configuration device or through non-system native query software. The current IP address can be a specific IP address value or empty, which reflects the current IP address setting status of each physical port.
[0148] After obtaining each of the physical network ports and the current IP address corresponding to each physical network port, the above information can be organized into a physical network port IP list to determine the IP address configuration network port among all the physical network ports, and based on the user's selection of the selection control in the user display page, the above IP address configuration network ports can be identified and fed back to the target configuration device.
[0149] Among them, in the physical network port IP list, the physical network port corresponds one to one with the current IP address of each physical network port.
[0150] Furthermore, the physical network port IP list needs to be displayed in a user display page. The user display page includes a selection control for each physical network port, and a physical network port can be configured as an IP address configuration network port by selecting or not selecting the selection control.
[0151] S340: In response to a selection instruction for a selection control in the user display page, an IP address configuration network port is identified in all the physical network ports, and a network configuration type matching the target configuration device is acquired.
[0152] S350: If the network configuration type is to automatically create an IP address, obtain the test role of the target configuration device in the network card performance test scenario.
[0153] S360: Automatically configure the IP address of each IP address configuration network port according to the test role, and obtain the target network port identifier corresponding to the target IP address configuration network port during the configuration process of the currently configured target IP address configuration network port.
[0154] S370: While displaying the target network port identifier to the user, control the network port light of the target IP address configuration network port to flash.
[0155] Exemplarily, when the target IP address is automatically configured, the target network port identifier can be displayed to the user in real time in the human-computer interaction interface, and the network port light of the target IP address configuration network port can be controlled to flash to prompt the user the location of the physical network port of the target IP address.
[0156] S380, generating performance test information corresponding to each physical network port according to the network card bandwidth of the network card device corresponding to each physical network port;
[0157] Among them, the network card bandwidth of the network card device refers to the amount of information flowing from one end to the other within a specified time, that is, the data transmission rate. Having a wider bandwidth means having a greater ability to carry information. Network bandwidth is an important indicator to measure network characteristics.
[0158] Among them, when performing a network card performance test, it is often necessary to test the actual data transmission rate of a physical network port. The upper limit of the data transmission rate of a physical network port is adapted to the network card bandwidth of the network card device where the physical network port is located. In this embodiment, by obtaining the mapping relationship between the network card device and the physical network port, the tester can intuitively obtain the upper limit value of the data transmission rate of a physical network port. Therefore, the performance test information of each physical network port can be determined more conveniently and accurately.
[0159] Specifically, the performance test information may include under what test results (data transmission speed or data transmission delay) a system error or operation prompt is issued.
[0160] S390. Perform a performance test on each physical network port in the target configuration device according to the performance test information.
[0161] The technical solution of the embodiment of the present invention addresses the problem that the prior art cannot directly locate the network card device to which the physical network port belongs. By accurately establishing the corresponding relationship between the physical network port and the network card device, the network card bandwidth corresponding to each physical network port can be accurately known, and then the performance test information corresponding to each physical network port can be conveniently and accurately set, thereby improving the setting efficiency and accuracy of the performance test information.
[0162] Specific application scenarios
[0163] Figure 4 It is a specific application scenario diagram for implementing the network port configuration method in the network card performance test scenario in the embodiment of the present invention.
[0164] For details, please refer to Figure 4In the network card performance test scenario, it is first necessary to determine the test server and the tested client (both of which can be referred to as target configuration devices) that participate in the network card performance test. Then, for each target configuration device, the method described in each embodiment of the present invention can be executed in the order of configuring the test server first and then configuring the tested client.
[0165] For each target test device, you can first scan all the physical network ports included in the target test device through system tools or third-party tools, the PCIe address corresponding to each physical network port and the current IP address corresponding to each physical network port. Then, you can obtain the network card device to which each physical network card belongs.
[0166] Afterwards, all physical network ports and the current IP addresses corresponding to each physical network port can be organized into a physical network port IP list for user display. Then, in response to the user's selection of the physical network port IP list, the IP address configuration network port is identified from all physical network ports.
[0167] After identifying the IP address configuration network port, it is necessary to further respond to the user's selection and obtain the network configuration type that matches the target configuration device. It should be noted that the test server and the tested client in the network card performance test need to be set to the same network configuration type at the same time. That is, they need to be configured as manually configured IP addresses at the same time, or configured as automatically configured IP addresses at the same time.
[0168] When the network configuration type is manual IP address configuration, it is necessary to perform corresponding IP address configuration for each IP address configuration network port according to the IP address configuration information manually input by the user. At the same time, during the manual configuration of the IP address, the network port light flashes in real time to prompt the user for each currently configured IP address configuration network port. After completing the IP address configuration of all IP address configuration network ports, the network card bandwidth corresponding to each physical network port can be determined based on the network card device to which each physical network port belongs, and then the matching performance test can be performed on each physical network port based on the network card bandwidth.
[0169] When the network configuration type is manual configuration of the IP address, it is necessary to first read the device performance information of the target configuration device and determine the test role of the target configuration device based on the device performance information.
[0170] When the test role is a test server, in addition to automatically configuring the IP addresses of each IP address configuration network port in the test server, it can also simultaneously guide the paired network port in the tested client to follow the configuration of the IP address based on the above IP address configuration result; when the test role is a tested client, after waiting for the matching test server to complete the network port configuration, obtain the current IP configuration network port in turn, send test data packets of different network segments through the current IP address configuration network port to perform a network connection test, and automatically configure the IP address of the current IP address configuration network port according to the test result.
[0171] At the same time, during the automatic configuration of the IP address, the network port light flashes in real time to prompt the user for each currently configured IP address configuration network port. After completing the IP address configuration of all IP address configuration network ports, the network card bandwidth corresponding to each physical network port can be determined based on the network card device to which each physical network port belongs, and then the matching performance test can be performed on each physical network port based on the network card bandwidth.
[0172] Embodiment 5
[0173] Figure 5 This is a schematic diagram of the structure of a network card configuration device in a network card performance test scenario provided by Embodiment 5 of the present invention. Figure 5 As shown, the device includes: a network port scanning module 510, a network configuration type acquisition module 520, a test role acquisition module 530, and a configuration prompt module 540, wherein:
[0174] The network port scanning module 510 is used to obtain a target configuration device and scan all physical network ports included in the target configuration device.
[0175] The network configuration type acquisition module 520 is used to identify the Internet Protocol IP address configuration network port in all physical network ports, and obtain the network configuration type matching the target configuration device;
[0176] The test role acquisition module 530 is used to acquire the test role of the target configuration device in the network card performance test scenario if the network configuration type is to automatically create an IP address;
[0177] The configuration prompt module 540 is used to automatically configure the IP address of each IP address configuration network port according to the test role, and during the IP address configuration process, provide real-time user prompts for each currently configured IP address configuration network port.
[0178] The technical solution of the embodiment of the present invention first scans and obtains all physical network ports in the target configuration device in the network card performance test scenario, and identifies the IP address configuration network port that needs to be configured with an IP address among all the physical network ports; when it is determined that the network configuration type of the target configuration device is to automatically create an IP address, the IP address of each IP address configuration network port is automatically configured according to the test role of the target configuration device in the network card performance test scenario, and during the IP address configuration process, a real-time user prompt is given to each currently configured IP address configuration network port. The technical solution of the embodiment of the present invention aims at the problem that the prior art cannot effectively set the IP address of a multi-network card machine in the network card performance test scenario, and provides a new method for configuring the network port that is efficient and convenient, which can quickly realize the batch setting of the IP addresses of the multi-network card machines in the network card performance test scenario, reduce the workload of the network port configuration, improve the work efficiency of the network card performance test, and enable the test personnel to participate in the real-time monitoring of the configuration results in a simple and convenient way.
[0179] On the basis of the above embodiments, it can also include: a manual configuration module, which is used to, after obtaining the network configuration type that matches the target configuration device, if the network configuration type is to manually create an IP address, configure the IP address of each IP address configuration network port according to the IP address configuration information input by the user; during the IP address configuration process, provide real-time user prompts for each IP address configuration network port currently configured.
[0180] Based on the above embodiments, the test role acquisition module 530 can be specifically used for:
[0181] According to the test role, the IP address of each IP address configuration network port is automatically configured, including:
[0182] If the test role is a test server, the IP address of each IP address configuration network port is automatically configured directly, so that the tested client matching the test server can follow the IP address configuration.
[0183] Based on the above embodiments, the test role acquisition module 530 can be specifically used for:
[0184] An IP address waiting receiving unit is used to, if the test role is a client under test, wait for the test server matching the client under test to complete the network port configuration, and then sequentially obtain the current IP address to configure the network port;
[0185] The IP address configuration unit is used to send test data packets of different network segments through the current IP address configuration network port to perform a network connection test, and automatically configure the IP address of the current IP address configuration network port according to the test result.
[0186] Based on the above embodiments, the IP address following configuration unit can be specifically used for:
[0187] In the test result, obtain the target IP address in the target network segment in the network connection test;
[0188] Identify the network segment number and host number in the target IP address;
[0189] The host number is accumulated to obtain an updated host number, and the network segment number is combined with the updated host number to obtain a current IP address;
[0190] The current IP address is configured as the IP address of the current IP address configuration network port.
[0191] Based on the above embodiments, the network configuration type acquisition module 520 can be specifically used for:
[0192] Generate a physical network port IP list according to each of the physical network ports and the current IP address corresponding to each physical network port, and display the physical network port IP list on a user display page;
[0193] The user display page includes a selection control for configuring an IP address for each physical network port or not configuring an IP address;
[0194] In response to a selection instruction of a selection control in the user display page, an IP address configuration network port is identified among all the physical network ports.
[0195] On the basis of the above embodiments, the present invention may further include: a network card device determination module, which is used to obtain a peripheral component express interconnect (PCIe) address corresponding to each physical network port after scanning all physical network ports included in the target configuration device, and determine the network card device corresponding to each physical network port according to the PCIe address;
[0196] Accordingly, the method may further include: a performance test module, which is used to generate performance test information corresponding to each physical network port according to the network card bandwidth of the network card device corresponding to each physical network port after automatically configuring the IP address of each IP address configuration network port according to the test role;
[0197] According to the performance test information, a performance test is performed on each physical network port in the target configuration device.
[0198] Based on the above embodiments, the configuration prompt module 540 can be specifically used for:
[0199] In the process of configuring the network port of the currently configured target IP address configuration, obtaining the target network port identifier corresponding to the target IP address configuration network port;
[0200] While the target network port identifier is displayed to the user, the network port light of the target IP address configuration network port is controlled to flash.
[0201] An apparatus for configuring a network port in a network card performance test scenario provided by an embodiment of the present invention can execute a network port configuration method in a network card performance test scenario provided by any embodiment of the present invention, and has functional modules and beneficial effects corresponding to the network port configuration method in the network card performance test scenario. For detailed processes, please refer to the relevant operations of the network port configuration method in a network card performance test scenario in the aforementioned embodiment.
[0202] Embodiment 6
[0203] Figure 6 A schematic diagram of the structure of an electronic device 10 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.
[0204] like Figure 6 As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 420 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 490 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 410 can also be stored. The processor 11, ROM 12 and RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0205] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0206] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The processor 11 executes the various methods and processes described above, and the network card configuration in a network card performance test scenario described in an embodiment of the present invention.
[0207] Wherein, the method comprises:
[0208] Obtain a target configuration device, and scan all network ports included in the target configuration device;
[0209] Identify the Internet Protocol IP address configuration network port among all network ports, and obtain the network configuration type that matches the target configuration device;
[0210] If the network configuration type is to automatically create an IP address, obtaining the test role of the target configuration device in the network card performance test scenario;
[0211] According to the test role, the IP address of each IP address configuration network port is automatically configured, and during the IP address configuration process, a real-time user prompt is given to each IP address configuration network port currently configured.
[0212] In some embodiments, the network card configuration method in a network card performance test scenario described in an embodiment of the present invention may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps in the method described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to execute the network card configuration method in a network card performance test scenario as described in an embodiment of the present invention in any other appropriate manner (for example, by means of firmware).
[0213] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0214] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0215] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, device, or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0216] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).
[0217] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0218] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.
[0219] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.
[0220] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A network port configuration method in a network card performance test scenario, characterized in that: include: Obtain a target configuration device, and scan all physical network ports included in the target configuration device; Identify an Internet Protocol IP address configuration network port among all physical network ports, and obtain a network configuration type that matches the target configuration device; If the network configuration type is to automatically create an IP address, obtaining the test role of the target configuration device in the network card performance test scenario; According to the test role, the IP address of each IP address configuration network port is automatically configured, and during the IP address configuration process, a real-time user prompt is provided for each IP address configuration network port currently configured; According to the test role, the IP address of each IP address configuration network port is automatically configured, including: If the test role is a client under test, wait for the test server matching the client under test to complete the network port configuration, and then obtain the current IP address to configure the network port in turn; Wherein, a direct communication relationship between the tested client and the tested network ports of the test server is established in advance according to the mapping relationship between the tested network ports of the tested parties in the network card performance test scenario; Send test data packets of different network segments through the current IP address configuration network port to perform a network connection test, and automatically configure the IP address of the current IP address configuration network port according to the test result; Return to execute the operation of obtaining the current IP address configuration network port in sequence until the automatic configuration of all IP address configuration network ports is completed; Among them, by obtaining the number of computing cores, memory size or device type information of the target configuration device, it is identified whether the target configuration device is an ordinary computer or a dedicated server. When the target configuration device is identified as an ordinary computer, the test role of the target configuration device in the network card performance test scenario is determined to be the client under test. When the target configuration device is identified as a dedicated server, the test role of the target configuration device in the network card performance test scenario is determined to be the test client.
2. The method according to claim 1, characterized in that After obtaining the network configuration type matching the target configuration device, the method further includes: If the network configuration type is to manually create an IP address, the IP address of each IP address configuration network port is configured according to the IP address configuration information input by the user; During the IP address configuration process, real-time user prompts are given for each IP address configuration network port currently configured.
3. The method according to claim 1, characterized in that According to the test role, the IP address of each IP address configuration network port is automatically configured, including: If the test role is a test server, the IP address of each IP address configuration network port is automatically configured directly, so that the tested client matching the test server can follow the IP address configuration.
4. The method according to claim 1, characterized in that: According to the test result, the IP address of the current IP address configuration network port is automatically configured, including: In the test result, obtain the target IP address in the target network segment in the network connection test; Identify the network segment number and host number in the target IP address; The host number is accumulated to obtain an updated host number, and the network segment number is combined with the updated host number to obtain a current IP address; The current IP address is configured as the IP address of the current IP address configuration network port.
5. The method according to any one of claims 1 to 4, characterized in that: Identify the IP address configuration network port among all physical network ports, including: Generate a physical network port IP list according to each of the physical network ports and the current IP address corresponding to each physical network port, and display the physical network port IP list on a user display page; The user display page includes a selection control for configuring an IP address for each physical network port or not configuring an IP address; In response to a selection instruction of a selection control in the user display page, an IP address configuration network port is identified among all the physical network ports.
6. The method according to any one of claims 1 to 4, characterized in that: After scanning all physical network ports included in the target configuration device, the method further includes: Obtaining a peripheral component express interconnect (PCIe) address corresponding to each of the physical network ports, and determining a network card device corresponding to each of the physical network ports according to the PCIe address; After automatically configuring the IP address of each IP address configuration network port according to the test role, the method further includes: Generate performance test information corresponding to each physical network port according to the network card bandwidth of the network card device corresponding to each physical network port; According to the performance test information, a performance test is performed on each physical network port in the target configuration device.
7. The method according to any one of claims 1 to 4, characterized in that: During the IP address configuration process, the user is prompted in real time for each IP address configuration network port currently configured, including: In the process of configuring the network port of the currently configured target IP address configuration, obtaining the target network port identifier corresponding to the target IP address configuration network port; While the target network port identifier is displayed to the user, the network port light of the target IP address configuration network port is controlled to flash.
8. A network port configuration device in a network card performance test scenario, characterized in that: include: A network port scanning module, used to obtain a target configuration device and scan all physical network ports included in the target configuration device; A network configuration type acquisition module, used to identify an Internet Protocol IP address configuration network port among all physical network ports, and acquire a network configuration type that matches the target configuration device; A test role acquisition module, used for acquiring the test role of the target configuration device in the network card performance test scenario if the network configuration type is to automatically create an IP address; A configuration prompt module is used to automatically configure the IP address of each IP address configuration network port according to the test role, and during the IP address configuration process, provide real-time user prompts for each IP address configuration network port currently configured; Wherein, the configuration prompt module is specifically used for: If the test role is a client under test, wait for the test server matching the client under test to complete the network port configuration, and then obtain the current IP address to configure the network port in turn; Wherein, a direct communication relationship between the tested client and the tested network ports of the test server is established in advance according to the mapping relationship between the tested network ports of the tested parties in the network card performance test scenario; Send test data packets of different network segments through the current IP address configuration network port to perform a network connection test, and automatically configure the IP address of the current IP address configuration network port according to the test result; Return to execute the operation of obtaining the current IP address configuration network port in sequence until the automatic configuration of all IP address configuration network ports is completed; Among them, by obtaining the number of computing cores, memory size or device type information of the target configuration device, it is identified whether the target configuration device is an ordinary computer or a dedicated server. When the target configuration device is identified as an ordinary computer, the test role of the target configuration device in the network card performance test scenario is determined to be the client under test. When the target configuration device is identified as a dedicated server, the test role of the target configuration device in the network card performance test scenario is determined to be the test client.
9. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the network port configuration method in the network card performance test scenario described in any one of claims 1-7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the network port configuration method in the network card performance test scenario described in any one of claims 1 to 7 when executed.
