Port switching test system, method, device, electronic device and storage medium
The switching device in the port switching test system works in conjunction with the baseboard management controller to automatically switch network connections and determine paths, solving the high cost problem caused by manual operation in the existing technology and achieving efficient and stable testing results.
Patent Information
- Application Number
- CN202510828591.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-19
- Publication Date
- 2025-09-09
- Estimated Expiration
- 2045-06-19
AI Technical Summary
In the prior art, the network port switching test between the server BMC and the physical layer relies on manual operation, resulting in a huge testing workload and consuming a lot of manpower and material resources.
A port switching test system is provided, which automatically switches network connections and determines path connections based on preset control logic through the cooperation of a switching device and a baseboard management controller, replacing manual operations.
It realizes efficient and stable network port switching testing, improves testing efficiency and reduces testing costs.
Smart Images

Figure CN120342928B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a port switching test system, method, device, electronic device, and storage medium. Background Art
[0002] Communication between the Baseboard Management Controller (BMC) and the physical layer (PHY) is typically achieved through an Ethernet interface. The Reduced Media Independent Interface (RMII) and Reduced Gigabit Media Independent Interface (RGMII) are two mainstream physical layer interface standards. In practical applications, servers integrate links and functions that can freely switch BMC communication interfaces. Therefore, the testing process requires basic functional testing and stress testing of this functionality. Basic functional testing can be accomplished by simply manually switching the communication link, but stress testing is labor-intensive and manual testing consumes significant manpower and resources. Summary of the Invention
[0003] The present application provides a port switching test system, method, device, electronic device and storage medium to at least solve the problem in the related art that the workload of stress testing is relatively huge and the manual testing method consumes a lot of manpower and material resources.
[0004] The present application provides a port switching test system, comprising: a switching device, a baseboard management controller, and a physical layer; one end of the switching device is connected to the physical layer, and the other end of the switching device is connected to a first network port and a second network port respectively; the physical layer is connected to the baseboard management controller via a first path and a second path;
[0005] The switching device switches the network connection based on a preset time interval in response to the switching instruction; wherein the network connection includes a first network corresponding to the first network port and a second network corresponding to the second network port;
[0006] The baseboard management controller determines a path connection with the physical layer based on a preset control logic in response to the switching of the network connection; wherein the path connection includes a first path and a second path.
[0007] This application provides a port switching test method, including:
[0008] In response to the switching instruction, switching the network connection based on a preset time interval; wherein the network connection includes a first network corresponding to the first network port and a second network corresponding to the second network port;
[0009] In response to the switching of the network connection, a path connection with the physical layer is determined based on a preset control logic; wherein the path connection includes a first path and a second path.
[0010] The present application also provides a port switching test device, comprising:
[0011] A switching unit, configured to switch a network connection based on a preset time interval in response to a switching instruction; wherein the network connection includes a first network corresponding to the first network port and a second network corresponding to the second network port;
[0012] The determining unit is configured to determine a path connection with the physical layer based on a preset control logic in response to the switching of the network connection; wherein the path connection includes a first path and a second path.
[0013] The present application also provides an electronic device, comprising: a memory for storing a computer program; and a processor for implementing the steps of any one of the above-mentioned port switching test methods when executing the computer program.
[0014] The present application also provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a processor, the steps of any one of the above-mentioned port switching test methods are implemented.
[0015] The present application also provides a computer program product, including a computer program, which implements the steps of any of the above-mentioned port switching test methods when executed by a processor.
[0016] Through the present application, since the switching device can automatically switch the network connection at a preset time interval, the baseboard management controller can determine the path connection with the physical layer based on the preset control logic, without the need for frequent manual operation. When performing a network port switching test, the switching device and the baseboard management controller work together to replace manual work to complete highly repetitive test tasks. Therefore, it can solve the technical problem that the existing stress test relies on manual labor and consumes a lot of manpower and material resources. Through automated network connection switching and path connection determination, the stress test of the communication interface switching function of the server baseboard management controller can be completed efficiently and stably, thereby achieving the technical effect of improving test efficiency and reducing test costs. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0018] Figure 1 A schematic diagram of a fault detection system provided in an embodiment of the present application;
[0019] Figure 2 A schematic diagram of another fault detection system provided by an embodiment of the present disclosure;
[0020] Figure 3 A flow chart of a port switching test method provided in an embodiment of the present application;
[0021] Figure 4 A schematic diagram of the structure of a port switching test device provided in an embodiment of the present disclosure;
[0022] Figure 5 A schematic structural diagram of another port switching test device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION
[0023] The following will be combined with the accompanying drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are only part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.
[0024] It should be noted that, in the description of this application, the terms "comprises," "includes," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or elements inherent to such process, method, article, or device. The terms "first," "second," etc., in this application are used to distinguish similar objects, and are not used to describe a particular order or sequence.
[0025] In order to enable those skilled in the art to better understand the present application, the present application is further described in detail below with reference to the accompanying drawings and specific implementation methods.
[0026] See also Figure 1 , Figure 1 A schematic diagram of a fault detection system provided by an embodiment of the present disclosure is shown in FIG. Figure 1As shown, it includes: a switching device 103, a baseboard management controller 101 and a physical layer 102; one end of the switching device 103 is connected to the physical layer 102, and the other end of the switching device 103 is connected to the first network port and the second network port respectively; the physical layer 102 is connected to the baseboard management controller 101 based on a first path and a second path;
[0027] The switching device 103 switches the network connection based on a preset time interval in response to the switching instruction; wherein the network connection includes a first network corresponding to the first network port and a second network corresponding to the second network port;
[0028] In response to the switching of the network connection, the baseboard management controller 101 determines a path connection with the physical layer 102 based on a preset control logic; wherein the path connection includes a first path and a second path.
[0029] One end of the switching device 103 is directly connected to the physical layer 102 for receiving and processing network signals transmitted by the physical layer 102; the other end is connected to the first network port and the second network port respectively; the physical layer 102 and the baseboard management controller 101 are connected via two independent paths.
[0030] Switching device 103 is capable of autonomously generating switching commands and executing switching actions. In some embodiments, an operator can flexibly set the switching period based on test requirements through a control interface. When the test is initiated, switching device 103 automatically generates periodic switching signals based on preset parameters, rapidly switching between the first network corresponding to the first network port and the second network corresponding to the second network port.
[0031] In some embodiments, during the network switching process, the built-in signal buffering and compensation mechanism of the switching device 103 can ensure seamless switching of the network connection, avoid data loss and signal interruption, and accurately simulate the link change scenario in the real network environment.
[0032] After a network connection is switched, the baseboard management controller 101 uses a link status monitoring mechanism to detect network changes in real time. Based on a pre-defined control policy library, the controller comprehensively analyzes key parameters such as the current network connection type, bandwidth, and signal strength, intelligently selecting the optimal path to establish a connection with the physical layer 102. For example, when testing the anti-interference capability of a server BMC communication interface, if strong electromagnetic interference is detected on the primary network, the controller will automatically switch to the secondary path to ensure stable and accurate data transmission.
[0033] like Figure 1As shown, the physical layer 102 is connected to the baseboard management controller 101 based on the Reduced Media Independent Interface (RMII) and the Reduced Gigabit Media Independent Interface (RGMII), and then connected to the external network via the PHY. When the external network is connected to a 100M interface device, the BMC's network system will automatically switch to the RMII communication channel through the logic design and code control within the entire system, and establish a BMC network communication system with a maximum communication rate of 100M. When the external network is connected to a 1G interface device, the BMC's network system will automatically switch to the RGMII communication channel through the logic design and code control within the entire system, and establish a BMC network communication system with a maximum communication rate of 1G. This forms a BMC network free switching system that can automatically switch its own communication rate based on the communication rate capability of the external network interface. Through this design, the advantages and disadvantages of RMII and RGMII, two mainstream physical layer 102 interfaces, can be well utilized, and their rate, signal, sensitivity and performance can be effectively selected. Based on the different characteristics of the two interfaces, the function of reasonably selecting RMII or RGMII channels can be achieved by reasonably selecting the external network model, which can achieve a balance between cost, power consumption and performance to meet the BMC communication needs of different scenarios.
[0034] Through the present application, since the switching device can automatically switch the network connection at a preset time interval, the baseboard management controller 101 can determine the path connection with the physical layer based on the preset control logic, without the need for frequent manual operation. When performing a network port switching test, the switching device and the baseboard management controller 101 work together to replace manual work to complete highly repetitive test tasks. Therefore, the technical problem that the existing stress test relies on manual labor and consumes a lot of manpower and material resources can be solved. Through automated network connection switching and path connection determination, the stress test of the communication interface switching function of the server baseboard management controller 101 can be completed efficiently and stably, thereby achieving the technical effect of improving test efficiency and reducing test costs.
[0035] In some embodiments, the switching device 103 includes a controller and a relay circuit 1031 ; the relay circuit 1031 is connected to the first network port and the second network port;
[0036] The controller generates the switching instruction and sends the switching instruction to the relay circuit 1031;
[0037] The relay circuit 1031 switches the network connection based on the preset time interval.
[0038] See also Figure 2 , Figure 2 A schematic diagram of a fault detection system provided by an embodiment of the present disclosure is shown in FIG. Figure 2 As shown, switching device 103 integrates a controller 1032 and a relay circuit 1031. Based on user-defined parameters (such as switching cycle, switching times, and switching mode) on the test interface, controller 1032 generates precise switching control signals using an internal algorithm. This signal contains timing information and action instructions, ensuring that relay circuit 1031 performs switching operations according to preset requirements.
[0039] In some embodiments, when generating switching instructions, switching instructions can be generated based on multiple switching mode configurations, such as periodic switching, event-triggered switching, random switching, etc. Specifically, a suitable switching mode can be selected according to different test requirements, and the embodiments of the present application do not limit this.
[0040] The relay circuit 1031 switches the network connection by closing and opening the physical contacts. According to the switching instruction sent by the controller 1032, the relay circuit 1031 completes the switching of the contact state.
[0041] When the system starts a test task, the controller 1032 first generates a switching instruction based on preset parameters and sends it to the relay circuit 1031. After receiving the instruction, the relay circuit 1031 switches between the first network corresponding to the first network port and the second network corresponding to the second network port by controlling the closing and opening of contacts at time intervals.
[0042] This collaborative working mechanism based on the controller 1032 and the relay circuit 1031 enables the port switching test system to accurately simulate various complex network environment change scenarios, providing efficient and reliable technical support for the testing of the server BMC communication interface.
[0043] An embodiment of the present application provides a port switching test method, and the method is described in detail in conjunction with the execution flow of the port switching test method. Figure 3 A flow chart of a port switching test method provided in an embodiment of the present application.
[0044] like Figure 1 As shown, the method comprises the following steps:
[0045] Step 201: In response to a switching instruction, switching a network connection based on a preset time interval; wherein the network connection includes a first network corresponding to a first network port and a second network corresponding to a second network port;
[0046] The switching command can be triggered manually by the tester through the operation interface, or it can be generated regularly according to a pre-written automated test script. The switching command is parsed to extract the preset time interval parameters contained in it.
[0047] The controller generates an electrical signal containing the target network port and the timing of the switch, and transmits it to the relay circuit. The relay circuit uses electromagnetic or solid-state relays. Upon receiving the signal, the relay contacts activate rapidly. Specifically, if the first network port is currently connected, the contacts disconnect the first network port and close the second network port; vice versa.
[0048] To ensure data transmission continuity during the switching process, the switching device also has signal buffering and pre-synchronization functions. Its internal buffer temporarily stores network data at the moment of switching, and then outputs the buffered data in an orderly manner after the new network connection is established.
[0049] Step 202 : In response to the switching of the network connection, determine a path connection with the physical layer based on a preset control logic; wherein the path connection includes a first path and a second path.
[0050] After the switching device completes the network connection switch, the baseboard management controller senses the network change through the link status detection circuit. In some embodiments, the baseboard management controller can determine whether the network connection has changed by real-time monitoring of parameters such as the level signal and data transmission characteristics in the network line. If the network connection changes, the controller determines the path connection to be connected based on the preset control logic. The preset control logic is optimized based on a large amount of experimental data and actual application scenarios. The controller first reads the status register of the physical layer chip to obtain key information such as link rate, bit error rate, and signal strength. At the same time, it conducts a comprehensive assessment based on factors such as the current network connection type, bandwidth requirements, and test task priority.
[0051] For example, if the first network is a high-bandwidth but less stable fiber optic network, and the second network is a highly stable but limited-bandwidth Ethernet network, and the current test task requires the transmission of large amounts of data, the control logic will determine whether to connect to the physical layer through the first path, fully utilizing the fiber optic network's high bandwidth. If the test task requires extremely high data transmission stability, the control logic will select the second path to ensure data transmission accuracy. After determining the path, the baseboard management controller sends a path selection control signal to the physical layer via a dedicated configuration interface. The physical layer reconfigures the internal data transmission path based on this signal, completing the path connection with the baseboard management controller and providing a stable data transmission channel for subsequent data interaction and testing.
[0052] Through the present application, since the switching device can automatically switch the network connection at a preset time interval, the baseboard management controller can determine the path connection with the physical layer based on the preset control logic, without the need for frequent manual operation. When performing a network port switching test, the switching device and the baseboard management controller work together to replace manual work to complete highly repetitive test tasks. Therefore, it can solve the technical problem that the existing stress test relies on manual labor and consumes a lot of manpower and material resources. Through automated network connection switching and path connection determination, the stress test of the communication interface switching function of the server baseboard management controller can be completed efficiently and stably, thereby achieving the technical effect of improving test efficiency and reducing test costs.
[0053] In some embodiments, in response to the switching of the network connection, determining the path connection with the physical layer based on the preset control logic includes:
[0054] The path connection with the physical layer is determined based on the network characteristics after switching and the communication requirements of the device; wherein the network characteristics of the first network and the second network are different; and the data transmission rates of the first path and the second path are different.
[0055] The baseboard management controller (BMC) reads multiple key parameters in real time through the status registers of the physical layer chip. It accurately identifies network bandwidth, whether it's 100M, 1G, or 10G. It assesses signal quality using metrics like signal-to-noise ratio and bit error rate. If the bit error rate exceeds a threshold, it indicates an unstable network transmission environment. It also monitors network latency and packet loss rates to provide a comprehensive understanding of the network's real-time status. For example, if the first network is a high-bandwidth but high-latency fiber-optic network, while the second network is a low-bandwidth but low-latency Ethernet network, these differences in characteristics will inform path selection.
[0056] Analyzing device communication needs is equally critical. Different test tasks have varying data transmission requirements. In stress testing scenarios involving large amounts of data, high bandwidth is required to ensure fast data transmission, and latency requirements are relatively low. In contrast, in control instruction transmission tests, which require extremely high real-time performance, low latency becomes the primary consideration, with bandwidth requirements taking a back seat. The baseboard management controller prioritizes device communication based on the type of test task, data volume, and real-time requirements.
[0057] Based on a comprehensive analysis of the aforementioned network characteristics and device communication requirements, the baseboard management controller invokes the preset control logic. If the network characteristics after switching meet high-bandwidth requirements and device communication is primarily based on large data transmission, the control logic will prioritize the first path with a higher data transmission rate. If the network signal quality is poor and device communication has strict requirements for data accuracy, the control logic will enable the second path with stronger error correction capabilities and a relatively lower transmission rate but better stability. After determining the path, the baseboard management controller sends instructions to the physical layer through a dedicated configuration interface. The physical layer then reconfigures the internal wiring accordingly, quickly establishing a path connection with the baseboard management controller, thereby ensuring that data can be stably transmitted along the optimal path during testing.
[0058] In some embodiments, before switching the network connection based on a preset time interval in response to the switching instruction, the method further includes:
[0059] Generate the switching instruction; wherein the switching instruction includes the switching time and the target network connection to be switched;
[0060] The switching of the network connection based on a preset time interval in response to the switching instruction includes:
[0061] The network connection is switched to the target network connection according to the switching time.
[0062] Before running the port switching test system, generating switching instructions is a critical prerequisite for the orderly execution of the test process. The switching instruction generation module constructs the instruction content through complex algorithmic logic based on the test parameters configured by the user in the test interface. Through the visual interface, users can precisely set the switching time and clearly specify the target network connection for switching. They can select the first network corresponding to the first network port, the second network corresponding to the second network port, and even set a looping mode for alternating switching.
[0063] When constructing a command, the generation module verifies the validity of the input parameters to ensure that the switch time is within the reasonable range supported by the system and that the target network connection is correctly configured. Once verified, the command is encapsulated into a specific data format, including key information such as the timestamp and target network identifier, to ensure the accuracy of subsequent execution.
[0064] When the system receives the switching instruction, the controller in the switching device immediately parses the instruction content. The high-precision timer in the controller starts timing based on the switching time in the instruction. When the timing reaches the set switching moment, the controller sends a drive signal to the relay circuit based on the target network connection identifier. The relay circuit responds quickly and switches the network connection to the target network by controlling the closing and opening of the internal contacts. For example, if the instruction requires the network connection to be switched from the first network to the second network, the relay circuit will first disconnect the connection line with the first network port, and then establish a connection with the second network port after the line signal is completely interrupted. The signal buffer mechanism built into the switching device will temporarily store the network data at the moment of switching to avoid data loss, thereby strictly following the requirements of the switching instruction to accurately switch the network connection to the target network connection, providing a stable and expected network environment for subsequent testing links.
[0065] In some embodiments, the first path is a sophisticated media-independent interface.
[0066] In some embodiments, the second path is a Reduced Gigabit Media Independent Interface.
[0067] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus the necessary general hardware platform, and of course it can also be implemented by hardware, but in many cases the former is a better implementation method.
[0068] An embodiment of the present application also provides a port switching test device, and the number of simple virtual device claims does not exceed one (except in special circumstances). The omitted virtual device claims should be described in detail in the specification and correspond one-to-one with the method claims.
[0069] Figure 4 A schematic diagram of the structure of a port switching test device provided in an embodiment of the present disclosure is shown in FIG. Figure 4 Shown, including:
[0070] The switching unit 31 is configured to switch the network connection based on a preset time interval in response to the switching instruction; wherein the network connection includes a first network corresponding to the first network port and a second network corresponding to the second network port;
[0071] The determining unit 32 is configured to determine a path connection with the physical layer based on a preset control logic in response to the switching of the network connection; wherein the path connection includes a first path and a second path.
[0072] Through the present application, since the switching device can automatically switch the network connection at a preset time interval, the baseboard management controller can determine the path connection with the physical layer based on the preset control logic, without the need for frequent manual operation. When performing a network port switching test, the switching device and the baseboard management controller work together to replace manual work to complete highly repetitive test tasks. Therefore, it can solve the technical problem that the existing stress test relies on manual labor and consumes a lot of manpower and material resources. Through automated network connection switching and path connection determination, the stress test of the communication interface switching function of the server baseboard management controller can be completed efficiently and stably, thereby achieving the technical effect of improving test efficiency and reducing test costs.
[0073] Furthermore, in a possible implementation of the embodiment of the present disclosure, the determining unit 32 is further configured to:
[0074] The path connection with the physical layer is determined based on the network characteristics after switching and the communication requirements of the device; wherein the network characteristics of the first network and the second network are different; and the data transmission rates of the first path and the second path are different.
[0075] Furthermore, in a possible implementation of the embodiment of the present disclosure, as Figure 5 As shown, the device also includes:
[0076] The generating unit 33 is configured to generate the switching instruction before the switching unit 31 switches the network connection based on the preset time interval in response to the switching instruction; wherein the switching instruction includes the switching time and the target network connection to be switched;
[0077] The switching unit is also used for:
[0078] The network connection is switched to the target network connection according to the switching time.
[0079] Furthermore, in a possible implementation of the embodiment of the present disclosure, the first path is a sophisticated media-independent interface.
[0080] Furthermore, in a possible implementation of the embodiment of the present disclosure, the second path is a reduced gigabit media independent interface.
[0081] For the description of the features in the embodiment corresponding to the port switching test device, reference can be made to the relevant description of the embodiment corresponding to the port switching test method, which will not be repeated here.
[0082] An embodiment of the present application further provides an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute the steps in any of the above-mentioned port switching test method embodiments.
[0083] An embodiment of the present application further provides a computer-readable storage medium, in which a computer program is stored. The computer program is configured to execute the steps of any of the above-mentioned port switching test method embodiments when running.
[0084] In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to, various media that can store computer programs, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk, or an optical disk.
[0085] An embodiment of the present application further provides a computer program product, which includes a computer program. When the computer program is executed by a processor, the steps of any of the above-mentioned port switching test method embodiments are implemented.
[0086] An embodiment of the present application further provides another computer program product, including a non-volatile computer-readable storage medium, wherein the non-volatile computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of any of the above-mentioned port switching test method embodiments are implemented.
[0087] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the above description has generally described the components and steps of each example according to their functions. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0088] The above describes in detail the port switching test system, method, device, electronic device, and storage medium provided by the present application. Specific examples are used herein to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only intended to help understand the method and core concept of the present application. It should be noted that, for those skilled in the art, without departing from the principles of the present application, several improvements and modifications may be made to the present application, and such improvements and modifications also fall within the scope of protection of the claims of the present application.
Claims
1. A port switching test system, characterized in that: include: Switching devices, baseboard management controllers, and physical layers; The switching device has a built-in signal buffer module and a timing compensation circuit; One end of the switching device is connected to the physical layer, and the other end of the switching device is connected to the first network port and the second network port respectively; the physical layer is connected to the baseboard management controller via a first path and a second path; the first path and the second path have different data transmission rates; the signal buffer module is used to temporarily store the high-frequency signal output by the physical layer, and the timing compensation circuit is used to calibrate the signal transmission delay difference of the path; The switching device automatically switches the network connection based on a preset time interval in response to the switching instruction; wherein the network connection includes a first network corresponding to the first network port and a second network corresponding to the second network port; The baseboard management controller determines, in response to the switching of the network connection, a path connection with the physical layer based on a preset control logic through network bandwidth and signal quality; wherein the path connection includes a first path and a second path; wherein the first path is a streamlined medium-independent interface; and the second path is a streamlined gigabit medium-independent interface.
2. The port switching test system according to claim 1, wherein: The switching device includes a controller and a relay circuit; the relay circuit is connected to the first network port and the second network port; The controller generates the switching instruction and sends the switching instruction to the relay circuit; The relay circuit switches the network connection based on the preset time interval.
3. A port switching test method, characterized in that: include: In response to a switching instruction, automatically switching a network connection based on a preset time interval; wherein the network connection includes a first network corresponding to the first network port and a second network corresponding to the second network port; In response to the switching of the network connection, determining a path connection with the physical layer based on the network bandwidth and signal quality based on the preset control logic; wherein the path connection includes a first path and a second path; the first network and the second network have different network characteristics; and the first path and the second path have different data transmission rates; The determining of the path connection with the physical layer based on the preset control logic in response to the switching of the network connection includes: The path connection with the physical layer is determined based on the network characteristics after switching and the device communication requirements; wherein the network characteristics include network bandwidth fluctuation and delay jitter; the device communication requirements include task type, data volume, and real-time requirements.
4. The port switching test method according to claim 3, wherein: Before switching the network connection based on the preset time interval in response to the switching instruction, the method further includes: Generate the switching instruction; wherein the switching instruction includes the switching time and the target network connection to be switched; The switching of the network connection based on a preset time interval in response to the switching instruction includes: The network connection is switched to the target network connection according to the switching time.
5. The port switching test method according to claim 3, wherein: The first path is a sophisticated media-independent interface.
6. The port switching test method according to claim 3, wherein: The second path is a reduced Gigabit media independent interface.
7. A port switching test device, characterized in that: include: A switching unit, configured to switch a network connection based on a preset time interval in response to a switching instruction; wherein the network connection includes a first network corresponding to the first network port and a second network corresponding to the second network port; a determining unit configured to determine, in response to the switching of the network connection, a path connection with the physical layer based on network bandwidth and signal quality based on a preset control logic; wherein the path connection includes a first path and a second path; the first network and the second network have different network characteristics; and the first path and the second path have different data transmission rates; The determining unit is further configured to: The path connection with the physical layer is determined based on the network characteristics after switching and the device communication requirements; wherein the network characteristics include network bandwidth and delay; the device communication requirements include task type, data volume, and real-time requirements.
8. An electronic device, characterized in that: include: memory for storing computer programs; A processor, configured to implement the steps of the port switching test method according to any one of claims 3 to 6 when executing the computer program.
9. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a computer program, wherein the computer program, when executed by a processor, implements the steps of the port switching test method according to any one of claims 3 to 6.
Citation Information
Patent Citations
Testing system
CN102752161A
Server with selective switch management network connection function
CN104536514A
Method and system for keeping stability of BMC network, storage medium and equipment
CN116132266A