Port switching test system, method and device, electronic equipment and storage medium

Through the coordinated work of the switching device and the substrate management controller, the network port switching test is automatically completed, solving the high cost problem caused by manual operation and achieving efficient and stable test results.

CN120342928AActive Publication Date: 2025-07-18INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
CN202510828591.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-06-19
Publication Date
2025-07-18
Estimated Expiration
2045-06-19

AI Technical Summary

Technical Problem

In the prior art, network port switching tests between server BMC and physical layer rely on manual operations, consume a lot of manpower and material resources, resulting in inefficient testing.

Method used

The switching device is used to work in concert with the substrate management controller, and through automated network connection switching and path connection determination, it realizes automatic network connection switching without manual frequent manual operation and selects path connection based on preset control logic.

Benefits of technology

Improves testing efficiency, reduces testing costs, and realizes efficient and stable stress testing of the communication interface switching function of the server substrate management controller.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120342928A_ABST
    Figure CN120342928A_ABST
Patent Text Reader

Abstract

The invention discloses a port switching test system, method and device, electronic equipment and a storage medium, and relates to the technical field of computers, a switching device can automatically switch network connection according to a preset time interval, a substrate management controller can determine access connection with a physical layer based on preset control logic, and frequent manual operation is not needed. When a network port switching test is carried out, the switching device and the substrate management controller work cooperatively, and a test task with high repeatability can be completed instead of manual work. Therefore, the technical problem that the existing pressure test depends on manpower and consumes a lot of manpower and material resources can be solved. According to the method and the device, the pressure test of the communication interface switching function of the server substrate management controller can be efficiently and stably completed through automatic network connection switching and access connection determination, so that the technical effects of improving the test efficiency and reducing the test cost are achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This 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] The communication between the BMC (Baseboard Management Controller) and the physical layer (PHY) is usually implemented through an Ethernet interface. The Reduced Media Independent Interface (RMII) and the Reduced Gigabit Media Independent Interface (RGMII) are two mainstream physical layer interface standards. In practical applications, a server will integrate a link and function for freely switching the BMC communication interface. Therefore, during the testing process, it is necessary to cover the basic function testing and stress testing of this function. The basic function testing can be completed by simply manually switching the communication link, but the workload of the stress testing is relatively large, and the manual testing method will consume a large amount of manpower and material resources. Summary of the Invention

[0003] This application provides a port switching test system, method, device, electronic device, and storage medium to at least solve the problem that the workload of stress testing in related technologies is relatively large, and the manual testing method consumes a large amount of manpower and material resources.

[0004] This application provides a port switching test system, including: 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 respectively connected to a first network port and a second network port; the physical layer and the baseboard management controller are connected based on a first path and a second path; The switching device responds to a switching instruction and switches the network connection based on a preset time interval; where 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 responds to the switching of the network connection and determines the path connection with the physical layer based on a preset control logic; where the path connection includes a first path and a second path.

[0005] This application provides a port switching test method, including: Responding to a switching instruction and switching the network connection based on a preset time interval; where 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 a switch 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.

[0006] The present application also provides a port switching test device, including: A switching unit, configured to switch the network connection based on a preset time interval in response to a switching instruction; wherein, the network connection includes a first network corresponding to a first network port and a second network corresponding to a second network port; A determining unit, configured to determine a path connection with the physical layer based on a preset control logic in response to a switch of the network connection; wherein, the path connection includes a first path and a second path.

[0007] The present application also provides an electronic device, including: a memory, configured to store a computer program; a processor, configured to implement the steps of any one of the above port switching test methods when executing the computer program.

[0008] The present application also provides a computer-readable storage medium, in which a computer program is stored, and wherein the computer program implements the steps of any one of the above port switching test methods when executed by a processor.

[0009] The present application also provides a computer program product, including a computer program, and the computer program implements the steps of any one of the above port switching test methods when executed by a processor.

[0010] 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 frequent manual operations. When performing a network port switching test, the switching device and the baseboard management controller cooperate to complete the repetitive test tasks instead of manual labor. Therefore, the technical problem that the existing stress test relies on manual labor and consumes a large amount of manpower and material resources can be solved. The stress test of the communication interface switching function of the server baseboard management controller can be efficiently and stably completed through automated network connection switching and path connection determination, thereby achieving the technical effects of improving the test efficiency and reducing the test cost. BRIEF DESCRIPTION OF THE DRAWINGS

[0011] To more clearly illustrate the embodiments of the present application, the following will briefly introduce the drawings required in the embodiments. Obviously, the drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.

[0012] Figure 1 A schematic diagram of a fault detection system provided by an embodiment of the present application; Figure 2 Schematic diagram of another fault detection system provided by an embodiment of the present disclosure; Figure 3 Flow schematic diagram of a port switching test method provided by an embodiment of the present application; Figure 4 Structural schematic diagram of a port switching test device provided by an embodiment of the present disclosure; Figure 5 Structural schematic diagram of another port switching test device provided by an embodiment of the present disclosure. Detailed implementation manners

[0013] Next, the technical solutions in the embodiments of the present application will be clearly and completely described with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present application.

[0014] It should be noted that in the description of the present application, the terms "include", "comprise" or any other variation thereof are intended to cover a non-exclusive inclusion, so that a process, method, article or device including a series of elements not only includes those elements but also includes other elements not expressly listed, or further includes elements inherent to such process, method, article or device. The terms "first", "second", etc. in the present application are used to distinguish similar objects and are not used to describe a specific order or sequence.

[0015] To enable those skilled in the art of the present technology to better understand the solution of the present application, the present application will be further described in detail below with reference to the accompanying drawings and specific implementation manners.

[0016] Please refer to Figure 1 , Figure 1 Schematic diagram of a fault detection system provided by an embodiment of the present disclosure. As Figure 1 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 respectively connected to a first network port and a second network port; the physical layer 102 and the baseboard management controller 101 are connected based on a first path and a second path; The switching device 103 responds to a switching instruction and switches 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; The baseboard management controller 101 determines the path connection with the physical layer 102 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.

[0017] One end of the switching device 103 is directly connected to the physical layer 102, and is used for receiving and processing the network signals transmitted by the physical layer 102; the other end is respectively connected to a first network port and a second network port; two independent paths are established for connection between the physical layer 102 and the baseboard management controller 101.

[0018] The switching device 103 has the ability to autonomously generate a switching instruction and execute a switching action. In some embodiments, an operator can flexibly set a switching period through a control interface according to test requirements. After the test is started, the switching device 103 automatically generates a periodic switching signal according to preset parameters, and quickly switches between a first network corresponding to the first network port and a second network corresponding to the second network port.

[0019] In some embodiments, during the network switching process, the signal buffering and compensation mechanism built into the switching device 103 can be used to ensure seamless switching of the network connection, avoid data loss and signal interruption, and accurately simulate the link change scenario in a real network environment.

[0020] After the network connection is switched, the baseboard management controller 101 perceives network changes in real time through a link status monitoring mechanism. Based on a preset control policy library, the controller comprehensively analyzes key parameters such as the type, bandwidth, and signal strength of the current network connection, and intelligently selects the optimal path to establish a connection with the physical layer 102. For example, when testing the anti-interference ability of the BMC communication interface of a test server, if there is strong electromagnetic interference in the first network, the controller will automatically switch to the second path to ensure the stability and accuracy of data transmission.

[0021] Such as Figure 1As shown in the figure, the physical layer 102 and the baseboard management controller 101 are connected based on the Reduced Media Independent Interface (RMII) and the Reduced Gigabit Media Independent Interface (RGMII), and then connected to the external network through the PHY. When the external network is connected to a 100Mbps interface device, the network system of the BMC will automatically switch to the RMII communication channel through the internal logic design and code control of the entire system, and establish a BMC network communication system with a maximum communication rate of 100Mbps; when the external network is connected to a gigabit interface device, the network system of the BMC will automatically switch to the RGMII communication channel through the internal logic design and code control of the entire system, and establish a BMC network communication system with a maximum communication rate of gigabit; thus forming a BMC network free-switching system that can automatically switch its own communication rate according to the communication rate capability of the external network interface. Through this design, the advantages and disadvantages of RMII and RGMII, which are two mainstream physical layer 102 interfaces, can be well utilized, their rates, signals, sensitivities, and performances can be effectively selected, and according to the different characteristics of the two interfaces, the function of reasonably selecting the RMII or RGMII channel can be achieved by reasonably selecting the external network model, and a balance can be achieved among cost, power consumption, and performance to meet the BMC communication requirements in different scenarios.

[0022] Through this application, since the switching device can automatically switch the network connection at preset time intervals, the baseboard management controller 101 can determine the path connection with the physical layer based on the preset control logic without frequent manual operations by humans. When performing network port switching tests, the switching device and the baseboard management controller 101 work together to replace humans to complete high-repetition test tasks. Therefore, the technical problem of the existing stress test relying on humans and consuming a large amount of manpower and material resources can be solved. The stress test of the communication interface switching function of the server baseboard management controller 101 can be efficiently and stably completed through automated network connection switching and path connection determination, thereby achieving the technical effects of improving test efficiency and reducing test costs.

[0023] 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; The controller generates the switching instruction and sends the switching instruction to the relay circuit 1031; The relay circuit 1031 switches the network connection based on the preset time interval.

[0024] Please refer to Figure 2 ,Figure 2 The figure is a schematic diagram of a fault detection system provided by an embodiment of the present disclosure. As Figure 2 shown, the switching device 103 integrates a controller 1032 and a relay circuit 1031 inside. Based on the parameters set by the user on the test interface (such as switching period, switching times, switching mode, etc.), the controller 1032 generates an accurate switching control signal through an internal algorithm. This signal contains timing information and action instructions to ensure that the relay circuit 1031 can perform the switching operation according to the preset requirements.

[0025] In some embodiments, when generating the switching instruction, the switching instruction can be generated based on various switching mode configurations, such as periodic switching, event-triggered switching, random switching, etc. Specifically, the appropriate switching mode can be selected according to different test requirements, and the embodiments of the present application do not limit this.

[0026] The relay circuit 1031 realizes the switching of network connections by closing and disconnecting physical contacts. According to the switching instruction sent by the controller 1032, the relay circuit 1031 completes the switching of the contact state.

[0027] When the system starts the test task, the controller 1032 first generates a switching instruction according to the 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 disconnecting of the contacts at time intervals.

[0028] 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 test of the server BMC communication interface.

[0029] The embodiments of the present application provide a port switching test method. Combining the execution process of the port switching test method, the method will be described in detail. Figure 3 The figure is a schematic flowchart of a port switching test method provided by an embodiment of the present application.

[0030] As Figure 1 shown, the method includes the following steps: Step 201, in response to the switching instruction, switch the network connection based on a preset time interval; wherein, the network connection includes the first network corresponding to the first network port and the second network corresponding to the second network port; The switching instruction can be manually triggered by the tester through the operation interface or can be generated regularly according to a pre-written automated test script. Parse the switching instruction to extract the preset time interval parameter contained therein.

[0031] The controller then generates a set of electrical signal instructions containing the switching target network port information and the switching timing, and transmits them to the relay circuit. Inside the relay circuit, electromagnetic or solid-state relays are used. After receiving the instructions, the contacts of the relay act quickly. Specifically, if currently connected to the first network port, the contacts will disconnect the connection line with the first network port and simultaneously close the connection line with the second network port; vice versa.

[0032] During the switching process, to ensure the continuity of data transmission, the switching device also has signal buffering and pre-synchronization functions. The internal buffer of the device temporarily stores the network data at the moment of switching, and then outputs the buffered data in an orderly manner after the new network connection is established.

[0033] Step 202: In response to the switching of the network connection, determine the path connection with the physical layer based on a preset control logic; wherein, the path connection includes a first path and a second path.

[0034] After the switching device completes the network connection switching, the baseboard management controller senses the network change through the link status detection circuit. In some embodiments, it 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. After discovering that the network connection has changed, it determines the path connection to be established based on a preset control logic, which 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, and at the same time makes a comprehensive evaluation by combining factors such as the type of the current network connection, bandwidth requirements, and test task priority.

[0035] For example, when the first network is a fiber optic network with high bandwidth but slightly weaker signal stability, the second network is an Ethernet with strong stability but limited bandwidth, and the current test task requires transmitting a large amount of data, the control logic will determine to connect to the physical layer through the first path to make full use of the high bandwidth advantage of the fiber optic network; if the test task has extremely high requirements for data transmission stability, the control logic will select the second path to ensure the accuracy of data transmission. After determining the path, the baseboard management controller sends a path selection control signal to the physical layer through a dedicated configuration interface, and the physical layer reconfigures the internal data transmission path according to this signal to complete the establishment of the path connection with the baseboard management controller, providing a stable data transmission channel for subsequent data interaction and test work.

[0036] With this application, since the switching device can automatically switch network connections at preset time intervals, the baseboard management controller can determine the path connection to the physical layer based on preset control logic without frequent manual operations. When performing network port switching tests, the switching device and the baseboard management controller work together to replace manual labor in performing highly repetitive test tasks. Therefore, the technical problem of relying on manual labor and consuming a large amount of human and material resources in existing stress tests 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 can be completed efficiently and stably, thereby achieving the technical effects of improving test efficiency and reducing test costs.

[0037] In some embodiments, determining a path connection to the physical layer based on preset control logic in response to a network connection switch includes: Determining a path connection to the physical layer based on the network characteristics after switching and the device communication requirements; wherein, the network characteristics of the first network and the second network are different; the data transmission rates of the first path and the second path are different.

[0038] The baseboard management controller reads multiple key parameters in real time through the status register of the physical layer chip. For network bandwidth, it can accurately identify whether it is in the 100M, 1G, or 10G level; it judges the signal quality through indicators such as signal-to-noise ratio and bit error rate. If the bit error rate exceeds the threshold, it indicates that the network transmission environment is unstable. At the same time, it also detects the latency characteristics and packet loss rate of the network to comprehensively grasp the real-time state of the network. Taking the first network as an example, if it is a fiber optic network with high bandwidth but large latency, and the second network is an Ethernet network with low bandwidth but low latency, these characteristic differences will be the basis for path selection.

[0039] The analysis of device communication requirements is equally crucial. Different test tasks have different requirements for data transmission. In a stress test scenario with a large amount of data, high bandwidth is required to ensure fast data transmission, and the requirement for latency is relatively low; while in a test of transmitting control instructions with extremely high real-time requirements, low latency becomes the primary consideration factor, and the bandwidth requirement is secondary. The baseboard management controller will determine the priority of device communication based on the type of the current test task, the amount of data, and the real-time requirements.

[0040] Based on the comprehensive analysis of the above network characteristics and device communication requirements, the baseboard management controller invokes a preset control logic. If the switched network characteristics meet the high-bandwidth requirements and the device communication is mainly for large-data transmission, the control logic will preferentially select the first path with a higher data transmission rate; if the network signal quality is poor and the device communication has strict requirements for data accuracy, the control logic will enable the second path with stronger error correction ability, relatively lower transmission rate but better stability. After determining the path, the baseboard management controller sends an instruction to the physical layer through a dedicated configuration interface, and the physical layer reconfigures the internal lines accordingly to quickly establish a path connection with the baseboard management controller, thereby ensuring that data can be stably transmitted on the optimal path during the test process.

[0041] In some embodiments, before switching the network connection based on a preset time interval in response to a switching instruction, the method further includes: Generating the switching instruction; wherein, the switching instruction includes a switching time and a target network connection to be switched; The switching the network connection based on a preset time interval in response to the switching instruction includes: Switching the network connection to the target network connection according to the switching time.

[0042] Before the port switching test system runs, the generation of the switching instruction is a key pre-step for the orderly development 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 on the test interface. The user can precisely set the switching time through the visual interface, and at the same time, clearly specify the target network connection to be switched, and can select the first network corresponding to the first network port, or the second network corresponding to the second network port, or even set an alternating switching loop mode.

[0043] When the generation module constructs the instruction, it will perform validity verification on the input parameters to ensure that the switching time is within a reasonable range supported by the system and the target network connection is correctly configured. After the verification passes, the instruction will be encapsulated into a specific data format, including key information such as a timestamp and a target network identifier, to ensure the accuracy of subsequent execution.

[0044] When the system receives a 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 driving signal to the relay circuit according to 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 switching the network connection from the first network to the second network, the relay circuit will first disconnect the connection line with the first network port. After the line signal is completely interrupted, it will establish a connection with the second network port. The signal buffering mechanism built into the switching device will temporarily store the network data at the moment of switching to avoid data loss, so as to accurately switch the network connection to the target network connection in strict accordance with the requirements of the switching instruction, providing a stable and expected network environment for the subsequent test session.

[0045] In some embodiments, the first path is a reduced media independent interface.

[0046] In some embodiments, the second path is a reduced gigabit media independent interface.

[0047] Through the description of the above embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by means of software plus a necessary general hardware platform. Of course, it can also be implemented by hardware, but in many cases, the former is a better implementation method.

[0048] The embodiments of the present application also provide a port switching test device. The number of pure virtual device claims does not exceed 1 (except in special cases). The content of the omitted virtual device claims should be described in detail in the specification and correspond one by one to the method claims.

[0049] Figure 4 FIG. is a schematic structural diagram of a port switching test device provided by an embodiment of the present disclosure, as Figure 4 shown, including: A switching unit 31, configured to respond to a switching instruction and switch 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; A determining unit 32, configured to respond to the switching of the network connection and 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] With this application, since the switching device can automatically switch network connections at preset time intervals, the baseboard management controller can determine the path connection to the physical layer based on preset control logic, eliminating the need for frequent manual operations. When performing network port switching tests, the switching device and the baseboard management controller work together to replace manual labor in performing highly repetitive test tasks. Therefore, the technical problem of relying on manual labor and consuming a large amount of human and material resources in existing stress tests 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 can be completed efficiently and stably, thereby achieving the technical effects of improving test efficiency and reducing test costs.

[0051] Further, in a possible implementation manner of the embodiment of the present disclosure, the determining unit 32 is further configured to: Determine the path connection to the physical layer based on the network characteristics after switching and the device communication requirements; wherein, the network characteristics of the first network and the second network are different; the data transmission rates of the first path and the second path are different.

[0052] Further, in a possible implementation manner of the embodiment of the present disclosure, as Figure 5 shown, the device further includes: A generating unit 33, configured to generate the switching instruction before the switching unit 31 switches the network connection based on a 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; The switching unit is further configured to: Switch the network connection to the target network connection according to the switching time.

[0053] Further, in a possible implementation manner of the embodiment of the present disclosure, the first path is a reduced media independent interface.

[0054] Further, in a possible implementation manner of the embodiment of the present disclosure, the second path is a reduced gigabit media independent interface.

[0055] For the description of the features in the embodiments corresponding to the port switching test device, reference can be made to the relevant descriptions in the embodiments corresponding to the port switching test method, which will not be elaborated here one by one.

[0056] An embodiment of the present application further provides an electronic device, including a memory and a processor. A computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above embodiments of the port switching test method.

[0057] Embodiments of the present application also provide a computer-readable storage medium storing a computer program, wherein the computer program is configured to execute the steps in any of the above-described embodiments of the port switching test method when running.

[0058] In an exemplary embodiment, the above computer-readable storage medium may include, but is not limited to: various media such as USB flash drives, read-only memories (ROM for short), random access memories (RAM for short), external hard drives, magnetic disks, or optical discs that can store computer programs.

[0059] Embodiments of the present application also provide a computer program product, where the computer program product includes a computer program, and the computer program implements the steps in any of the above-described embodiments of the port switching test method when executed by a processor.

[0060] Embodiments of the present application also provide another computer program product, including a non-volatile computer-readable storage medium storing a computer program, and the computer program implements the steps in any of the above-described embodiments of the port switching test method when executed by a processor.

[0061] Those skilled in the art can further realize that the units and algorithm steps of each example described in combination with the embodiments disclosed herein can be implemented by electronic hardware, computer software, or a combination of the two. To clearly illustrate the interchangeability of hardware and software, the components and steps of each example have been generally described according to their functions in the above description. Whether these functions are executed in a hardware or software manner depends on the specific application and design constraints of the technical solution. Skilled professionals can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present application.

[0062] The above has introduced in detail a port switching test system, method, device, electronic device, and storage medium provided by the present application. Specific examples are used herein to elaborate on the principles and implementation manners of the present application. The description of the above embodiments is only used to help understand the method and its core idea of the present application. It should be noted that for those of ordinary skill in the art in the technical field, without departing from the principle of the present application, several improvements and modifications can be made to the present application, and these improvements and modifications also fall within the protection scope of the claims of the present application.

Claims

1. A port switching test system, characterized in that, 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 respectively connected to a first network port and a second network port; the physical layer and the baseboard management controller are connected based on a first path and a second path; The switching device responds to a switching instruction and switches network connections based on a preset time interval; wherein, the network connections include a first network corresponding to the first network port and a second network corresponding to the second network port; The baseboard management controller responds to the switching of the network connection and determines the path connection with the physical layer based on a preset control logic; wherein, the path connections include a first path and a second path.

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 network connections based on the preset time interval.

3. A port switching test method, characterized in that, Comprising: Responding to a switching instruction and switching network connections based on a preset time interval; wherein, the network connections include a first network corresponding to the first network port and a second network corresponding to the second network port; Responding to the switching of the network connection and determining the path connection with the physical layer based on a preset control logic; wherein, the path connections include a first path and a second path.

4. The port switching test method according to claim 3, wherein The responding to the switching of the network connection and determining the path connection with the physical layer based on a preset control logic includes: Determining the path connection with the physical layer based on the network characteristics after switching and the device communication requirements; wherein, the network characteristics of the first network and the second network are different; the data transmission rates of the first path and the second path are different.

5. The port switching test method according to claim 3, wherein Before responding to the switching instruction and switching network connections based on a preset time interval, the method further includes: Generating the switching instruction; wherein, the switching instruction includes the switching time and the target network connection to be switched; The responding to the switching instruction and switching network connections based on a preset time interval includes: Switching the network connection to the target network connection according to the switching time.

6. The port switching test method according to claim 3, wherein The first path is a reduced media independent interface.

7. The port switching test method according to claim 3, wherein The second path is a reduced gigabit media independent interface.

8. A port switching test device, characterized in that Comprising: A switching unit, configured to respond to a switching instruction and switch network connections based on a preset time interval; wherein, the network connections include a first network corresponding to the first network port and a second network corresponding to the second network port; A determining unit, configured to respond to the switching of the network connection and determine the path connection with the physical layer based on a preset control logic; wherein, the path connections include a first path and a second path.

9. An electronic device, characterized in that, Comprising: A memory, configured to store a computer program; A processor, configured to implement the steps of the port switching test method according to any one of claims 3 to 7 when executing the computer program.

10. A computer-readable storage medium, characterized in that, A computer program is stored in the computer-readable storage medium, wherein, when the computer program is executed by a processor, the steps of the port switching test method according to any one of claims 3 to 7 are implemented.

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

  • Communication method and device

    CN117792566A

  • Local area network switching board, data transmission system and data transmission method

    CN118449918A