Network port multiplexing method, device, equipment and medium
By receiving the T-port management IP command, modifying the target network port enable status and setting the IP and routing configuration, the redundant configuration difficulty of managing network ports caused by insufficient storage device resources is solved, and network port multiplexing and redundant backup are realized , improves the reliability and performance of the equipment.
Patent Information
- Application Number
- CN202411223568.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-02
- Publication Date
- 2024-12-17
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Due to insufficient resources, existing storage devices cannot achieve redundant configuration of management network ports, resulting in equipment being lost in the event of a single management network port failure, affecting stable operation.
By receiving the T-port management IP command, determine its enable status based on the T-port identification of the target network port, and modify it to T-port enable off and U-port enable on, set the management IP and routing configuration to enable it to execute U-port function, thereby realizing network port multiplexing and redundant configuration.
It realizes network port reuse, meets the redundant backup needs of the management network, saves equipment resources, and improves the reliability and performance of equipment.
Smart Images

Figure CN119155162A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of network port settings, and in particular to a network port multiplexing method, device, equipment and medium. Background Art
[0002] With the rapid development of various industries, the demand for storage is increasing. More and more customers are using a large amount of storage as the core data storage medium. Therefore, higher requirements are placed on the performance, stability, and reliability of storage. Whether the storage can maintain efficient and stable operation has become a prerequisite for the stable operation of customer services. In order to improve the reliability and performance of storage devices, a single storage device will have multiple controllers, and each controller will form a cluster. In order to facilitate the management of a single controller and the management of a controller cluster, each controller of the storage device will be specially designed with a user management network port, also known as a U port in the industry; at the same time, in order to deal with special fault conditions and facilitate the deployment of storage multi-controller clusters, each controller of the storage device also has a technician debugging port, known as a T port in the industry.
[0003] At present, in order to improve the reliability of device management, most management networks have redundant backups to deal with the scenario where a single management network port failure, a management network link failure, etc. cause the storage device to lose connection. This puts forward requirements on the number of management network ports of the controller, that is, at least 2 management network ports. With the development of storage device technology, the performance of a single controller of a storage device is getting higher and higher, and the number of external cards supported is increasing, resulting in fewer and fewer resources reserved for management network ports. The management board needs to provide serial ports and USB ports, so that it is impossible to meet the requirements of a single controller providing 2 management network ports and a technician debugging network port. In order to improve performance, some storage devices choose to reduce the number of management network ports and enhance the hardware reliability of the management network ports, leaving it to customers to ensure the reliability of the management network.
[0004] Therefore, the problem of how to save scarce equipment resources while meeting the use scenarios of managing network redundancy needs to be solved urgently. Summary of the invention
[0005] Based on the above technical problems, the embodiments of the present application provide a network port multiplexing method, device, equipment and medium, aiming to simplify and efficiently perform network port multiplexing.
[0006] A first aspect of an embodiment of the present application provides a network port multiplexing method, the method comprising:
[0007] Receive the command for setting the T-port management IP for the target network port;
[0008] In response to receiving a command to set a T-port management IP, determining, according to the T-port identifier of the target network port, whether the target network port has been configured with T-port enable turned on and U-port enable turned off;
[0009] In the case that the target network port has been configured as T port enable on and U port enable off, modifying the target network port as T port enable off and U port enable on;
[0010] A management IP and corresponding routing configuration are set for the target network port so that the target network port performs the U-port function.
[0011] Optionally, the method further comprises:
[0012] When the target network port has been configured with T-port enable disabled and U-port enable enabled, a management IP and corresponding routing configuration are set for the target network port so that the target network port performs the U-port function.
[0013] After modifying the target network port to enable the T port to be closed and enable the U port to be opened, the method further includes:
[0014] Modify the T port identifier of the target network port from a first identifier to a second identifier, wherein the first identifier is used to indicate that the T port is enabled and the U port is disabled, and the second identifier is used to indicate that the T port is disabled and the U port is enabled;
[0015] The second identifier of the target network port, the management IP and the corresponding routing configuration are stored in the backplane, so that when the power is turned on again, the second identifier of the target network port, the management IP and the corresponding routing configuration are read from the backplane.
[0016] Optionally, after setting a management IP and corresponding routing configuration for the target network port so that the target network port performs the U port function, the method further includes:
[0017] Receiving a function switching command for a target network port, the function switching command being used to instruct the target network port to switch from executing a U-port function to executing a T-port function;
[0018] In response to receiving the function switching command, deleting the management IP and corresponding routing configuration set for the target network port;
[0019] Modify the T port identifier of the target network port from the second identifier to the first identifier, wherein the first identifier is used to indicate that the T port is enabled and the U port is disabled, and the second identifier is used to indicate that the T port is disabled and the U port is enabled;
[0020] Periodically detecting the network cable access status of the target network port, and when the target network port is connected to the network cable, setting a debugging IP and corresponding routing configuration for the target network port so that the target network port performs a T-port function;
[0021] When the target network port is not connected to a network cable, the debugging IP and corresponding routing configuration set for the target network port are deleted.
[0022] Optionally, the method further comprises:
[0023] When the power is turned on again, the T port identifier of the target network port is read from the backplane, and whether the backplane stores the management IP and the corresponding routing configuration;
[0024] In a case where the T-port identifier of the target network port read from the backplane is a second identifier, determining that the target network port is a network port with a U-port function, the second identifier being used to indicate that the T-port enable is turned off and the U-port enable is turned on;
[0025] When the T-port identifier of the target network port read from the backplane is the first identifier and the backplane does not store the management IP and the corresponding routing configuration, it is determined that the target network port is a network port with a T-port function, and the first identifier is used to indicate that the T-port enable is turned on and the U-port enable is turned off;
[0026] When the T-port identifier of the target network port read from the backplane is the first identifier, and the backplane stores a management IP and corresponding routing configuration, the T-port identifier of the target network port is modified from the first identifier to the second identifier, and the target network port is determined to be a network port with a U-port function.
[0027] Optionally, the target network port is a network port of a target controller, and the target controller and other controllers form a controller cluster; after each modification of the T port identifier of the target network port, the method further includes:
[0028] The modified identifier, the management IP address and the corresponding routing configuration are stored in the backplane, so that when the power is turned on again, the modified identifier of the target network port can be read from the backplane;
[0029] The modified identification of the target network port, the management IP address, and the corresponding routing configuration are stored in the memory of the target controller, so that the modified identification of the target network port, the management IP address, and the corresponding routing configuration can be read from the memory when the power is not turned off;
[0030] Notify other controllers in the controller cluster to store the modified identifier of the target network port, the management IP, and the corresponding routing configuration in the memory of the other controllers.
[0031] Optionally, the target network port is a network port of a target controller, and further includes:
[0032] During the period when the target network port performs a U-port function, receiving a modification operation on a T-port identifier of the target network port;
[0033] Before performing the modification operation on the T port identifier of the target network port, detecting whether the management IP and the corresponding routing configuration are stored in the memory of the target controller;
[0034] In the case where the management IP and the corresponding routing configuration are stored in the memory of the target controller, the modification operation of the T-port identifier of the target network port is not performed, and a modification failure prompt is output.
[0035] A second aspect of an embodiment of the present application provides a network port multiplexing device, the device comprising:
[0036] The command receiving module is used to receive the command for setting the T-port management IP for the target network port;
[0037] A T-port identification confirmation module is used to determine, in response to receiving a command to set a T-port management IP, whether the target network port has been configured as T-port enable on and U-port enable off according to the T-port identification of the target network port;
[0038] A target network port modification module, used for modifying the target network port to enable the T port to be disabled and enable the U port to be enabled when the target network port has been configured to enable the T port to be enabled and enable the U port to be disabled;
[0039] The management IP setting module is used to set the management IP and corresponding routing configuration for the target network port so that the target network port can perform the U port function.
[0040] Optionally, the T-port identification confirmation module includes:
[0041] The first management IP setting submodule is used to set a management IP and corresponding routing configuration for the target network port when the target network port has been configured with T-port enable closed and U-port enable opened, so that the target network port performs the U-port function.
[0042] Optionally, the target network port modification module includes:
[0043] A first identification modification submodule, used to modify the T port identification of the target network port from a first identification to a second identification, wherein the first identification is used to indicate that the T port is enabled and the U port is disabled, and the second identification is used to indicate that the T port is enabled and the U port is enabled;
[0044] The backplane storage submodule is used to store the second identifier of the target network port, the management IP and the corresponding routing configuration in the backplane, so that when the power is turned on again, the second identifier of the target network port, the management IP and the corresponding routing configuration are read from the backplane.
[0045] Optionally, the management IP setting module includes:
[0046] A command receiving submodule, used for receiving a function switching command for a target network port, where the function switching command is used for instructing the target network port to switch from executing a U-port function to executing a T-port function;
[0047] A management IP deletion submodule, configured to delete the management IP and corresponding routing configuration set for the target network port in response to receiving the function switching command;
[0048] A second identifier modification submodule, used to modify the T port identifier of the target network port from the second identifier to the first identifier, wherein the first identifier is used to indicate that the T port is enabled and the U port is disabled, and the second identifier is used to indicate that the T port is enabled and the U port is enabled;
[0049] A network cable detection submodule, used for periodically detecting the network cable access status of the target network port, and setting a debugging IP and corresponding routing configuration for the target network port when the target network port is connected to the network cable, so that the target network port performs a T-port function;
[0050] The debugging IP deletion submodule is used to delete the debugging IP and corresponding routing configuration set for the target network port when the target network port is not connected to the network cable.
[0051] Optionally, the device further comprises:
[0052] The backplane reading submodule is used to read the T port identification of the target network port from the backplane when the power is turned on again, and to detect whether the backplane stores the management IP and the corresponding routing configuration;
[0053] A first U-port determination submodule, configured to determine that the target network port is a network port with a U-port function when the T-port identifier of the target network port read from the backplane is a second identifier, wherein the second identifier is used to indicate that the T-port enable is closed and the U-port enable is opened;
[0054] A T-port determination submodule, for determining that the target network port is a network port with a T-port function when the T-port identifier of the target network port read from the backplane is a first identifier and the backplane does not store a management IP and a corresponding routing configuration, wherein the first identifier is used to indicate that the T-port is enabled and the U-port is disabled;
[0055] The second U-port determination submodule is used to modify the T-port identifier of the target network port from the first identifier to the second identifier when the T-port identifier of the target network port read from the backplane is the first identifier and the backplane stores a management IP and corresponding routing configuration, so as to determine that the target network port is a network port with a U-port function.
[0056] Optionally, the target network port in the device is a network port of a target controller, and the target controller and other controllers form a controller cluster; after each modification of the T port identifier of the target network port, the method further includes:
[0057] A backplane storage submodule, used to store the modified identifier, the management IP and the corresponding routing configuration in the backplane, so that when the power is turned on again, the modified identifier of the target network port can be read from the backplane;
[0058] A memory reading submodule, used to store the modified identification of the target network port, the management IP and the corresponding routing configuration in the memory of the target controller, so that the modified identification of the target network port, the management IP and the corresponding routing configuration can be read from the memory during the power-on period;
[0059] The memory storage submodule is used to notify other controllers in the controller cluster to store the modified identifier of the target network port, the management IP and the corresponding routing configuration in the memory of the other controllers.
[0060] Optionally, the target network port in the device is a network port of a target controller, and further includes:
[0061] A modification receiving submodule, used for receiving a modification operation on the T port identifier of the target network port during the period when the target network port performs the U port function;
[0062] A management IP detection submodule, used for detecting whether the management IP and corresponding routing configuration are stored in the memory of the target controller before performing a modification operation on the T port identifier of the target network port;
[0063] The modification rejection submodule is used for not performing the modification operation on the T port identifier of the target network port and outputting a modification failure prompt when the management IP and the corresponding routing configuration are stored in the memory of the target controller.
[0064] A third aspect of an embodiment of the present application provides an electronic device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the computer program is executed by the processor, a network port multiplexing method as in the first aspect of an embodiment of the present application is implemented.
[0065] A fourth aspect of an embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the network port multiplexing method of the first aspect of the embodiment of the present application is implemented.
[0066] Through the network port multiplexing method of the embodiment of the present application, a command for setting a T-port management IP for a target network port is received; in response to receiving the command for setting a T-port management IP, it is determined whether the target network port has been configured as T-port enable on and U-port enable off according to the T-port identifier of the target network port; when the target network port has been configured as T-port enable on and U-port enable off, the target network port is modified to T-port enable off and U-port enable on; a management IP and corresponding routing configuration are set for the target network port so that the target network port performs the U-port function.
[0067] In the embodiment of the present application, not only a method for switching the target network port from executing the T port function to executing the U port function is proposed, but also a method for switching the target network port from executing the U port function to executing the T port function is proposed, so that the target network port can be used to execute both the T port function and the U port function, realizing the reuse of the target network port, and at the same time, corresponding measures for power-off protection and misoperation prevention of the target network port function are proposed. In this way, not only the problem of the inability to realize redundant configuration of the management network port due to insufficient resources in the prior art is solved, but also corresponding processing methods are proposed for various problems that may arise in the reuse of the network port, which perfectly solves the dilemma of insufficient resources for the management network port and meets the customer's demand for management network redundancy. BRIEF DESCRIPTION OF THE DRAWINGS
[0068] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the description of the embodiments of the present application will be briefly introduced below. 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 paying creative labor.
[0069] Figure 1 This is a flow chart of a network port multiplexing method proposed in one embodiment of the present application;
[0070] Figure 2 This is a flowchart of a method of multiplexing a T port as a U port, as proposed in an embodiment of the present application;
[0071] Figure 3 This is a flowchart of a power-on initialization process proposed in an embodiment of the present application;
[0072] Figure 4 It is a structural block diagram of a network port multiplexing device proposed in one embodiment of the present application;
[0073] Figure 5 It is a schematic diagram of an electronic device proposed in an embodiment of the present application. DETAILED DESCRIPTION
[0074] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0075] In the drawings, the size of the constituent elements, the thickness of the layer or the area may be exaggerated for the sake of clarity. Therefore, any implementation of the present disclosure is not necessarily limited to the size shown in the drawings, and the shapes and sizes of the components in the drawings do not reflect the true proportions. In addition, the drawings schematically show ideal examples, and any implementation of the present disclosure is not limited to the shapes or values shown in the drawings.
[0076] Please refer to Figure 1 , Figure 1 This is a flow chart of a network port multiplexing method of the present application. Figure 1 As shown, the method may include steps S101 to S104:
[0077] Step S101: receiving a command for setting a T-port management IP for a target network port;
[0078] Step S102: in response to receiving the command to set the T-port management IP, determining whether the target network port has been configured with the T-port enabled and the U-port enabled disabled according to the T-port identifier of the target network port;
[0079] Step S103: when the target network port has been configured as T-port enable on and U-port enable off, modify the target network port as T-port enable off and U-port enable on;
[0080] Step S104: Setting a management IP and corresponding routing configuration for the target network port so that the target network port performs a U-port function.
[0081] In the prior art, the network ports of the equipment are divided into two types: management network ports and technician debugging ports. Among them, the management network port is also called the U port, which is used to achieve high-speed and stable data transmission, ensuring that the communication equipment and other equipment (such as sensors, actuators, human-machine interfaces, etc.) can exchange data efficiently. This data exchange is real-time, and can achieve flexible control strategies and real-time monitoring feedback, improving production efficiency and quality. The U port can also enable users to remotely operate the equipment, that is, to remotely monitor and control the communication equipment by connecting to the Internet. No matter where the engineer or operator is, as long as there is a network connection, they can always understand the various indicators and status of the production process. Remote monitoring can obtain data such as equipment operation status, input and output status, process variables, alarm information, etc. in real time, providing real-time and accurate data support for production decisions. The U port can also perform remote maintenance and diagnosis, that is, through the management network port, engineers can remotely access the communication equipment to perform status monitoring, parameter adjustment, troubleshooting and other operations. This remote maintenance method can reduce the time and cost of on-site maintenance. At the same time, through real-time data feedback and remote monitoring, equipment failures can be discovered in time and remotely diagnosed, improving fault handling efficiency. The technician debugging port, also known as the T port, is generally used to deal with special fault conditions and facilitate the deployment of storage multi-control clusters. The T port is generally idle during normal use. When technician debugging is required, the debugging device is connected through the T port for debugging.
[0082] Due to the development of storage device technology, the space that can be reserved for network ports is getting smaller and smaller. More users choose to reduce the number of management network ports and enhance the reliability of the management network port hardware to deal with it. The network port of a single device is configured as 1 management network port and 1 technician debugging port. However, this method has the problem of being unable to perform redundant backup of the management network port. If a single management network port fails, the device will lose connection, causing great trouble to normal use and operation.
[0083] Therefore, in the present application, a method for multiplexing the T port is proposed, so that the T port in the device can also be used as a U port, so as to achieve redundant configuration of the U port. At the same time, when technicians need to debug, this multiplexed port can be configured as a T port without affecting normal use. In this way, not only the number of network ports in the device is saved, leaving more space for other devices, but also the design requirements of redundant backup of the management network port can be met, the performance of the device is improved, and the reliability of the device is enhanced.
[0084] Step S101: receiving a command for setting a T-port management IP for a target network port.
[0085] In the embodiment of the present application, the initial state of the network port to be reused in the default device is T port. Since it needs to be reused as U port, the instruction to reuse it is received according to the needs of the user. Among them, the management IP is the IP setting that needs to be configured when the network port is used as a management port. It is used to configure the IP address of the device in network communication. The user configures the management IP according to needs. When the target network port is expected to be used as a U port, it needs to be configured with a management IP.
[0086] Step S102: In response to receiving the command to set the T-port management IP, determine whether the target network port has been configured with the T-port enabled on and the U-port enabled off according to the T-port identifier of the target network port.
[0087] In the embodiment of the present application, the T-port identification of the target network port, that is, the technician port identification bit of the target network port, is used to express the current enabling state of the network port, that is, whether it is used as a T-port or a U-port. The T-port identification has two states, namely, T-port enabled, U-port disabled and T-port disabled, U-port enabled, which respectively represent that the target network port is used as a T-port and a U-port at this time. Since the operation in this step is to multiplex the T-port, it is necessary to determine whether the target network port is in a state where the T-port is enabled and the U-port is enabled, that is, when it is used as a T-port, and then perform subsequent operations.
[0088] Furthermore, if it is determined that the target network port is configured with T port enable closed and U port enable open, then it is determined that the target network port has been used as the U port, and the management IP setting of the target port and the corresponding routing configuration can be performed directly in response to the set management IP command.
[0089] Step S103: when the target network port has been configured with T-port enable turned on and U-port enable turned off, modify the target network port to T-port enable turned off and U-port enable turned on.
[0090] In an embodiment of the present application, after determining that the target network port is used as a T port, that is, it is configured with T port enable turned on and U port enable turned off, the enable state of the target network port is modified, that is, the T port enable is turned off and the U port enable is turned on, and the target network port is configured to be used as a U port.
[0091] Step S104: Setting a management IP and corresponding routing configuration for the target network port so that the target network port performs a U-port function.
[0092] In the embodiment of the present application, after the T-port identifier of the target network port is changed to T-port enable OFF and U-port enable ON, the target network port needs to be managed with IP and corresponding routing configurations so that the network port can normally perform the function of the U-port. In the present application, the management IP of the U-port is determined according to user needs. Generally speaking, a device, that is, a controller cluster, has a management IP to determine the IP address of the controller cluster in network communication. After the configuration is completed, the target port can perform the U-port function, and together with another U-port in the controller cluster, it constitutes a redundant configuration of the management port.
[0093] For example, the specific implementation process is as follows Figure 2 As shown, Figure 2 This is a flowchart of a method of multiplexing a T port as a U port, as proposed in an embodiment of the present application.
[0094] according to Figure 2 As shown, first, you need to receive a command to set the T-port management IP. After receiving the command, you need to determine the T-port identification by judging the enabling state of the T-port. When the T-port is enabled and the U-port is disabled, you need to modify the enabling state of the target network port, that is, disable the T-port and enable the U-port. When the T-port is disabled and the U-port is enabled, no modification is performed. After the T-port identification is modified through the above steps, the target network port has been modified to be used as a U-port. You only need to execute the command for the management IP configuration, configure the management IP and the corresponding routing configuration according to the user's needs, and the target network port can perform the U-port function.
[0095] In combination with the above embodiments, in one implementation, the present application further provides a network port multiplexing method, in which the above step S102 specifically further includes the following contents:
[0096] When the target network port has been configured with T-port enable disabled and U-port enable enabled, a management IP and corresponding routing configuration are set for the target network port so that the target network port performs the U-port function.
[0097] In step S102, in response to receiving the command for setting the T-port management IP, the T-port identifier of the target network port is judged. If the target network port is configured with the T-port enable turned off and the U-port enable turned on at this time, it is considered that the target network port has been set to be used as a U-port. Therefore, when the command for setting the management IP is received, it is only necessary to configure the management IP and the corresponding routing configuration according to the user's needs to enable the target network port to perform the U-port function.
[0098] In combination with the above embodiments, in one implementation, the present application further provides a network port multiplexing method. In the method, after the above step S103, the following contents are specifically included:
[0099] First, the T port identifier of the target network port is changed from a first identifier to a second identifier, wherein the first identifier is used to indicate that the T port is enabled and the U port is disabled, and the second identifier is used to indicate that the T port is disabled and the U port is enabled.
[0100] In the embodiment of the present application, there are two situations of the T-port identification of the target network port. For the convenience of description, the two situations are named and distinguished as the first identification and the second identification in the present application. Among them, when the T-port enable of the target network port is turned on and the U-port enable is turned off, that is, the network port is used as a T-port, the T-port identification of the target network port is set to the first identification; when the T-port enable of the target network port is turned off and the U-port enable is turned on, that is, the network port is used as a U-port, the T-port identification of the target network port is set to the second identification.
[0101] In the embodiment of the present application, since it is necessary to reuse the target port whose default initial state is T port, as described above, it is necessary to first modify the T port identifier of the target port, that is, in step S103, modify the T port identifier of the target port from the first identifier to the second identifier.
[0102] Then, the second identifier of the target network port, the management IP and the corresponding routing configuration are stored in the backplane, so that when the power is turned on again, the second identifier of the target network port, the management IP and the corresponding routing configuration are read from the backplane.
[0103] In this application, multiple controllers in the cluster are connected to the backplane, and the backplane is used to provide connection, communication, power supply and other functions for the devices in the cluster. Since the reuse operation of the target network port is run in the controller, the setting of its T port identification and the configuration of the management IP will also be stored in the memory of the controller accordingly. However, since the controller memory is no longer saved after power failure, after modifying the T port identification and management IP of the target network port, it is necessary to send it to the storage space of the backplane for backup, so that it can be read at the next power-on to ensure that the network port status is consistent before and after the power-on and power-off actions. In this way, it is ensured that the reuse information of the target network port will not be lost in the event of a sudden power failure, and it is also ensured that replacing the controller in the cluster will not affect the reuse settings of the network port.
[0104] In combination with the above embodiments, in one implementation, the present application further provides a network port multiplexing method. In the method, after the above step S104, the following contents are specifically included:
[0105] First, a function switching command for a target network port is received, where the function switching command is used to instruct the target network port to switch from executing a U-port function to executing a T-port function.
[0106] The present application proposes a method for multiplexing a network port, and the multiplexing of the target network port can not only switch it from executing the T-port function to executing the U-port function, but also switch it from executing the U-port function to executing the T-port function. In the above steps, how to switch the target network port from executing the T-port function to executing the U-port function has been explained. In the embodiment of the present application, how to switch the target network port from executing the U-port function to executing the T-port function will also be explained.
[0107] Before operating the target network port, it is necessary to first receive an instruction from the user to switch the target network port from executing the U port function to executing the T port function, and perform subsequent switching operations according to the user instruction.
[0108] Then, in response to receiving the function switching command, the management IP and corresponding routing configuration set for the target network port are deleted.
[0109] As described in the above steps, when the target network port is set to perform the U-port function, it is necessary to set a management IP and corresponding routing configuration for it. These configurations are necessary for the target network port to perform the U-port function and are the prerequisite for achieving network communication and data interaction. Therefore, the management IP is also a necessary feature for the target network port to perform the U-port function. Before switching the network port, it is necessary to delete the management IP and the corresponding routing configuration first to ensure that the target network port remains in an idle state and is ready for network port switching.
[0110] Next, the T port identifier of the target network port is modified from the second identifier to the first identifier, wherein the first identifier is used to indicate that the T port enable is turned on and the U port enable is turned off, and the second identifier is used to indicate that the T port enable is turned off and the U port enable is turned on.
[0111] In an embodiment of the present application, after ensuring that the target network port is in an idle state, the network port is switched, that is, the T-port enable of the target network port is modified from the second identifier representing the execution of the U-port function to the first identifier representing the execution of the T-port function. At this point, the target network port completes the switch from executing the U-port function to executing the T-port function.
[0112] The target network port also needs an IP address and corresponding routing configuration when performing the T-port function. When used as a T-port, the following operations need to be performed:
[0113] The network cable access status of the target network port is periodically detected, and when the target network port is connected to the network cable, a debugging IP and corresponding routing configuration are set for the target network port so that the target network port performs a T-port function.
[0114] In the embodiment of the present application, the T port, i.e., the technician debugging port, is in an idle state when no debugging is performed, and performs corresponding data transmission in response to the debugging operation of the technician. The debugging operation is generally used to deal with special fault conditions and to facilitate the deployment of the storage multi-control cluster. Before the debugging begins, the controller needs to be connected to the technician's debugging equipment through the T port. In the process of executing the T port function, the target network port will periodically detect whether there is a network cable connected to the target network port to determine whether there is a debugging device that needs to be connected. Since the debugging IP and the corresponding routing configuration used for debugging are generally fixed, therefore, when it is detected that there is a network cable connected to the target network port, the target network port will automatically configure the debugging IP and the corresponding routing configuration to realize the function of interacting with the test equipment.
[0115] Finally, when the target network port is not connected to a network cable, the debugging IP and corresponding routing configuration set for the target network port are deleted.
[0116] In the embodiment of the present application, when the target network port executes the T-port function, it only needs to execute the communication function when the technician connects the debugging device to the controller. Therefore, in the absence of a connected debugging device, the target network port used as the T-port will be in an idle state, and no data transmission is required at this time, so the debugging IP and the corresponding routing configuration described above are not required. Therefore, when the target network port is not connected to the network cable, the automatically configured debugging IP and the corresponding routing configuration are deleted. On the one hand, the debugging IP and the corresponding routing configuration are generally fixed, and the target network port can be automatically configured when the network cable is connected. Deleting it will not affect the subsequent target network port to execute the T-port function again; on the other hand, deleting the debugging IP and the corresponding routing configuration can save cache space, improve work efficiency, and prepare for the target network port to switch to execute the U-port function again.
[0117] In combination with the above embodiments, in one implementation, the present application further provides a network port multiplexing method, which specifically includes the following contents:
[0118] When the power is turned on again, the T port identifier of the target network port is read from the backplane, and it is detected whether the backplane stores the management IP and the corresponding routing configuration.
[0119] In the embodiment of the present application, as described above, after the T-port identifier of the target network port is modified in the controller, the T-port identifier, the management IP, and the corresponding routing configuration need to be stored in the backplane. Since the memory in the controller will be automatically cleared after power-off, in this way, when power is turned on again, the configuration of the target network port before power-off can be restored, including the T-port identifier, the management IP, and the corresponding routing configuration. Moreover, since there is more than one controller in the controller cluster, during power-on initialization, by reading the T-port identifier, the management IP, and the corresponding routing configuration saved in the backplane, the network port status of each service in the controller cluster can be kept consistent.
[0120] At the same time, storing the above data in the backplane of the controller cluster is also a risk management measure for emergencies. For example, in the event of a sudden power outage, if the target network port has been reused and switched to the working state of executing the U-port function, when the power is turned on again, the network port related information stored on the backplane can be read to restore the network port to execute the U-port function without having to perform the above switching operation again.
[0121] In the above-mentioned scenario of powering on again, there are many situations in which the target network port information read from the backplane is judged differently. Specifically, it can be divided into the following situations:
[0122] First, when the T-port identifier of the target network port read from the backplane is a second identifier, it is determined that the target network port is a network port with a U-port function, and the second identifier is used to indicate that the T-port enable is closed and the U-port enable is opened.
[0123] In this case, the controller reads the T-port identifier of the network port on the backplane as the second identifier during the power-on initialization process, that is, the enable state of the network port is T-port enable OFF and U-port enable ON. Since the default state of the target network port is used as a T-port, if the T-port identifier of the target network port is read as the second identifier, it proves that the network port has undergone a switching operation for network port multiplexing. Therefore, the network port should be in a state of executing or preparing to execute the U-port function before powering off. Therefore, it is determined that the network port is used as a network port to execute the U-port function.
[0124] Second, when the T-port identifier of the target network port read from the backplane is the first identifier, and the backplane does not store the management IP and the corresponding routing configuration, the target network port is determined to be a network port with a T-port function, and the first identifier is used to indicate that the T-port enable is turned on and the U-port enable is turned off.
[0125] In this case, the controller reads the T-port identifier of the network port on the backplane as the first identifier during the power-on initialization process, that is, the enable state of the network port is T-port enable on and U-port enable off, and there is no storage management IP and corresponding routing configuration, which indicates that the network port is not used as a U-port. At this time, it is determined that the network port is used to perform the T-port function.
[0126] Third, when the T-port identifier of the target network port read from the backplane is the first identifier, and the backplane stores a management IP and corresponding routing configuration, the T-port identifier of the target network port is changed from the first identifier to the second identifier, and the target network port is determined to be a network port with a U-port function.
[0127] Finally, there is a relatively rare situation. In this case, the controller reads the T-port identifier of the network port on the backplane as the first identifier during the power-on initialization process, that is, the enable state of the network port is T-port enable on and U-port enable off, but at the same time, the management IP and corresponding routing configuration set for it are also stored in the backplane. The management IP and the corresponding routing configuration are the configuration conditions necessary for the target network port to perform the U-port function, which represents that the target network port is expected by the user to perform the U-port function. According to the above, in the process of changing the target network port from performing the U-port function to performing the T-port function, the first step to be performed is to delete the management IP and the corresponding routing configuration configured for the target network port, and then modify the T-port identifier from the second identifier to the first identifier. In other words, if the target network port is expected to perform the T-port function, there should be no management IP and the corresponding routing configuration, that is, there will be no situation where there is a management IP and the corresponding routing configuration but the T-port identifier is the first identifier. Therefore, when the T-port identifier of the network port on the backplane is read as the first identifier during the power-on initialization process, but at the same time, the management IP set for it and the corresponding routing configuration are also stored in the backplane, it is necessary to modify the T-port identifier from the first identifier to the second identifier to determine that the network port is used to perform the U-port function. In a specific embodiment, this situation may occur when a device suddenly loses power during a switching operation, and the sudden power failure causes data transmission abnormality, causing the T-port identifier of the target network port to be the first identifier but there is a management IP and a corresponding routing configuration.
[0128] For example, the specific implementation process is as follows Figure 3 As shown, Figure 3This is a flowchart of power-on initialization proposed in one embodiment of the present application. As shown in the figure, the process of powering on and initializing the T-port service first needs to read the T-port identifier of the target network port in the backplane, and determine the enable status of the T-port. If the T-port is enabled and closed and the U-port is enabled and opened, it is directly determined that the target network port is used as the U-port. Then, it is determined whether there is a management IP and a corresponding routing configuration in the backplane. If there is a management IP and a corresponding routing configuration, the T-port is disabled and modified to the state where the T-port is enabled and the U-port is enabled and opened; if there is no management IP and a corresponding routing configuration, it is determined that the target network port is used as a T-port, and the operation of periodically detecting the network cable access status of the target network port is performed, which will not be repeated here.
[0129] In combination with the above embodiments, in one implementation, the present application further provides a network port multiplexing method, wherein the target network port is the network port of the target controller, and the target controller and other controllers form a controller cluster; after each modification of the T port identifier of the target network port, the method further includes the following contents:
[0130] First, the modified identifier, the management IP and the corresponding routing configuration are stored in the backplane, so that when the power is turned on again, the modified identifier of the target network port is read from the backplane.
[0131] In the embodiment of the present application, as described above, since the memory in the controller memory will be cleared after power-off, it is necessary to read the network port information of the target network port from the backplane during power-on initialization. Therefore, each time the target network port is modified, including modifying the T-port identifier of the target network port and modifying the management IP of the target network port and the corresponding routing configuration, all modified information should be stored in the storage space in the backplane in real time to ensure that the relevant information of the target network port stored in the backplane is the latest status, thereby ensuring that when power is turned on again, the function of the target network port remains consistent with that before power-off.
[0132] Then, the modified identification of the target network port, the management IP and the corresponding routing configuration are stored in the memory of the target controller, so that the modified identification of the target network port, the management IP and the corresponding routing configuration can be read from the memory when the power is not turned off.
[0133] Since the above-mentioned various operations on the target network port are all executed by the target controller during the power-on period, that is, during normal working period, it is necessary to store the T-port identifier of the target network port, the management IP and the corresponding routing configuration in the memory of the target controller as the operational basis for executing the network port function during normal working period.
[0134] Finally, other controllers in the controller cluster are notified to store the modified identifier of the target network port, the management IP, and the corresponding routing configuration in the memory of the other controllers.
[0135] In the embodiment of the present application, the target controller and other controllers form a controller cluster, and the controller cluster includes at least one controller. Since the controller is redundantly set in the cluster, the controllers in the same cluster share the network port of the cluster. Therefore, the network port information in each controller should be consistent. Therefore, after the target network port is modified in the target controller, the modified identifier, the management IP and the corresponding routing configuration need to be stored in the memory of the other controllers. Furthermore, if the target controller suddenly fails and cannot perform normal functions, since the identifier of the target network port, the management IP and the corresponding routing configuration are stored in the memory of other controllers in the same cluster, the target network port can still be controlled by other controllers to perform functions, thereby ensuring that the normal use of users is not affected.
[0136] In combination with the above embodiments, in one implementation, the present application further provides a network port multiplexing method, wherein the target network port is a network port of a target controller, and specifically includes the following contents:
[0137] During the period when the target network port performs a U-port function, receiving a modification operation on a T-port identifier of the target network port;
[0138] Before performing the modification operation on the T port identifier of the target network port, detecting whether the management IP and the corresponding routing configuration are stored in the memory of the target controller;
[0139] In the case where the management IP and the corresponding routing configuration are stored in the memory of the target controller, the modification operation of the T-port identifier of the target network port is not performed, and a modification failure prompt is output.
[0140] In the embodiment of the present application, there is also a situation where the target network port receives a modification operation on the T-port identification of the target network port during the execution of the U-port function. Since the U-port function is the main function of the target controller cluster for data communication, it is necessary to perform the network port switching operation without affecting the normal function. Therefore, when receiving the modification command, it is necessary to first confirm the management IP and corresponding routing configuration of the target network port, and detect whether the relevant information is stored in the memory of the target controller. According to the above content, when the target network port is normally switched from executing the U-port function to executing the T-port function, it is necessary to first delete the management IP and the corresponding routing configuration. Therefore, when receiving the T-port identification modification instruction, if it is detected that the management IP and the corresponding routing configuration exist in the memory of the target controller, the modification operation of the T-port identification of the target network port is not performed, ensuring that the user's normal use of the U-port function of the controller cluster is not affected, and at the same time, a prompt message is output for the failure of the operation to remind the user that the modification of the T-port identification has not been completed.
[0141] Specifically, since the present application proposes a method for network port multiplexing, the target network port may be in a state of executing a T-port function or a U-port function. If the technician wants to debug the target controller cluster at this time and directly modify the T-port identifier, it may interrupt the work of the target network port that is executing the U-port function and affect the normal use of the user. Therefore, it is necessary to judge the management IP and the corresponding routing configuration before making the modification. Only when the management IP and the corresponding routing configuration do not exist can the second identifier of the target network port be changed to the first identifier.
[0142] Based on the same design concept, an embodiment of the present application provides a network port multiplexing device. Figure 4 , Figure 4 1 is a structural block diagram of a network port multiplexing device provided in an embodiment of the present application. Figure 4 As shown, the device comprises:
[0143] The command receiving module is used to receive the command for setting the T-port management IP for the target network port;
[0144] A T-port identification confirmation module is used to determine, in response to receiving a command to set a T-port management IP, whether the target network port has been configured as T-port enable on and U-port enable off according to the T-port identification of the target network port;
[0145] A target network port modification module, used for modifying the target network port to enable the T port to be disabled and enable the U port to be enabled when the target network port has been configured to enable the T port to be enabled and enable the U port to be disabled;
[0146] The management IP setting module is used to set the management IP and corresponding routing configuration for the target network port so that the target network port can perform the U port function.
[0147] Optionally, the T-port identification confirmation module includes:
[0148] The first management IP setting submodule is used to set a management IP and corresponding routing configuration for the target network port when the target network port has been configured with T-port enable closed and U-port enable opened, so that the target network port performs the U-port function.
[0149] Optionally, the target network port modification module includes:
[0150] A first identification modification submodule, used to modify the T port identification of the target network port from a first identification to a second identification, wherein the first identification is used to indicate that the T port is enabled and the U port is disabled, and the second identification is used to indicate that the T port is enabled and the U port is enabled;
[0151] The backplane storage submodule is used to store the second identifier of the target network port, the management IP and the corresponding routing configuration in the backplane, so that when the power is turned on again, the second identifier of the target network port, the management IP and the corresponding routing configuration are read from the backplane.
[0152] Optionally, the management IP setting module includes:
[0153] A command receiving submodule, used for receiving a function switching command for a target network port, where the function switching command is used for instructing the target network port to switch from executing a U-port function to executing a T-port function;
[0154] A management IP deletion submodule, configured to delete the management IP and corresponding routing configuration set for the target network port in response to receiving the function switching command;
[0155] A second identifier modification submodule, used to modify the T port identifier of the target network port from the second identifier to the first identifier, wherein the first identifier is used to indicate that the T port is enabled and the U port is disabled, and the second identifier is used to indicate that the T port is enabled and the U port is enabled;
[0156] A network cable detection submodule, used for periodically detecting the network cable access status of the target network port, and setting a debugging IP and corresponding routing configuration for the target network port when the target network port is connected to the network cable, so that the target network port performs a T-port function;
[0157] The debugging IP deletion submodule is used to delete the debugging IP and corresponding routing configuration set for the target network port when the target network port is not connected to the network cable.
[0158] Optionally, the device further comprises:
[0159] The backplane reading submodule is used to read the T port identification of the target network port from the backplane when the power is turned on again, and to detect whether the backplane stores the management IP and the corresponding routing configuration;
[0160] A first U-port determination submodule, configured to determine that the target network port is a network port with a U-port function when the T-port identifier of the target network port read from the backplane is a second identifier, wherein the second identifier is used to indicate that the T-port enable is closed and the U-port enable is opened;
[0161] A T-port determination submodule, for determining that the target network port is a network port with a T-port function when the T-port identifier of the target network port read from the backplane is a first identifier and the backplane does not store a management IP and a corresponding routing configuration, wherein the first identifier is used to indicate that the T-port is enabled and the U-port is disabled;
[0162] The second U-port determination submodule is used to modify the T-port identifier of the target network port from the first identifier to the second identifier when the T-port identifier of the target network port read from the backplane is the first identifier and the backplane stores a management IP and corresponding routing configuration, so as to determine that the target network port is a network port with a U-port function.
[0163] Optionally, the target network port in the device is a network port of a target controller, and the target controller and other controllers form a controller cluster; after each modification of the T port identifier of the target network port, the method further includes:
[0164] A backplane storage submodule, used to store the modified identifier, the management IP and the corresponding routing configuration in the backplane, so that when the power is turned on again, the modified identifier of the target network port can be read from the backplane;
[0165] A memory reading submodule, used to store the modified identification of the target network port, the management IP and the corresponding routing configuration in the memory of the target controller, so that the modified identification of the target network port, the management IP and the corresponding routing configuration can be read from the memory during the power-on period;
[0166] The memory storage submodule is used to notify other controllers in the controller cluster to store the modified identifier of the target network port, the management IP and the corresponding routing configuration in the memory of the other controllers.
[0167] Optionally, the target network port in the device is a network port of a target controller, and further includes:
[0168] A modification receiving submodule, used for receiving a modification operation on the T port identifier of the target network port during the period when the target network port performs the U port function;
[0169] A management IP detection submodule, used for detecting whether the management IP and corresponding routing configuration are stored in the memory of the target controller before performing a modification operation on the T port identifier of the target network port;
[0170] The modification rejection submodule is used for not performing the modification operation on the T port identifier of the target network port and outputting a modification failure prompt when the management IP and the corresponding routing configuration are stored in the memory of the target controller.
[0171] Based on the same design concept, another embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps in the network port multiplexing method described in any of the above embodiments of the present application are implemented.
[0172] Based on the same design concept, another embodiment of the present application provides an electronic device, such as Figure 5 shown. Figure 5 This is a schematic diagram of an electronic device shown in an embodiment of the present application. The electronic device includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the processor executes, the steps in the network port multiplexing method described in any of the above embodiments of the present application are implemented.
[0173] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0174] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.
[0175] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, devices, or computer program products. Therefore, the embodiments of the present application may adopt the form of complete hardware embodiments, complete software embodiments, or embodiments in combination with software and hardware. Moreover, the embodiments of the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.
[0176] The embodiments of the present application are described with reference to the flowcharts and / or block diagrams of the methods, terminal devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing terminal device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0177] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing terminal device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0178] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device so that a series of operating steps are executed on the computer or other programmable terminal device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable terminal device to implement the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0179] Although the preferred embodiments of the present application have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present application.
[0180] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the elements.
[0181] The above is a detailed introduction to a network port multiplexing method, device, equipment and medium provided by the present application. This article uses specific examples to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea; at the same time, for general technical personnel in this field, according to the idea of the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. A network port multiplexing method, characterized in that: The method comprises: Receive the command for setting the T-port management IP for the target network port; In response to receiving a command to set a T-port management IP, determining, according to the T-port identifier of the target network port, whether the target network port has been configured with T-port enable turned on and U-port enable turned off; In the case where the target network port has been configured as T port enable on and U port enable off, modifying the target network port as T port enable off and U port enable on; Set a management IP and corresponding routing configuration for the target network port so that the target network port can perform the U-port function.
2. A network port multiplexing method according to claim 1, characterized in that: The method further comprises: When the target network port has been configured with T-port enable disabled and U-port enable enabled, a management IP and corresponding routing configuration are set for the target network port so that the target network port performs the U-port function.
3. A network port multiplexing method according to claim 1, characterized in that: After modifying the target network port to enable the T port to be closed and enable the U port to be opened, the method further includes: Modify the T port identifier of the target network port from a first identifier to a second identifier, wherein the first identifier is used to indicate that the T port is enabled and the U port is disabled, and the second identifier is used to indicate that the T port is disabled and the U port is enabled; The second identifier of the target network port, the management IP and the corresponding routing configuration are stored in the backplane, so that when the power is turned on again, the second identifier of the target network port, the management IP and the corresponding routing configuration are read from the backplane.
4. A network port multiplexing method according to claim 1, characterized in that: After setting a management IP and corresponding routing configuration for the target network port so that the target network port performs the U port function, the method further includes: Receiving a function switching command for a target network port, the function switching command being used to instruct the target network port to switch from executing a U-port function to executing a T-port function; In response to receiving the function switching command, deleting the management IP and corresponding routing configuration set for the target network port; Modify the T port identifier of the target network port from the second identifier to the first identifier, wherein the first identifier is used to indicate that the T port is enabled and the U port is disabled, and the second identifier is used to indicate that the T port is disabled and the U port is enabled; Periodically detecting the network cable access status of the target network port, and when the target network port is connected to the network cable, setting a debugging IP and corresponding routing configuration for the target network port so that the target network port performs a T-port function; When the target network port is not connected to a network cable, the debugging IP and corresponding routing configuration set for the target network port are deleted.
5. A network port multiplexing method according to claim 1, characterized in that: Also includes: When the power is turned on again, the T port identifier of the target network port is read from the backplane, and whether the backplane stores the management IP and the corresponding routing configuration; In a case where the T-port identifier of the target network port read from the backplane is a second identifier, determining that the target network port is a network port with a U-port function, the second identifier being used to indicate that the T-port enable is turned off and the U-port enable is turned on; When the T-port identifier of the target network port read from the backplane is the first identifier and the backplane does not store the management IP and the corresponding routing configuration, it is determined that the target network port is a network port with a T-port function, and the first identifier is used to indicate that the T-port enable is turned on and the U-port enable is turned off; When the T-port identifier of the target network port read from the backplane is the first identifier, and the backplane stores a management IP and corresponding routing configuration, the T-port identifier of the target network port is modified from the first identifier to the second identifier, and the target network port is determined to be a network port with a U-port function.
6. A network port multiplexing method according to claim 1, characterized in that: The target network port is a network port of a target controller, and the target controller and other controllers form a controller cluster; After each modification of the T port identifier of the target network port, the method further includes: The modified identifier, the management IP address and the corresponding routing configuration are stored in the backplane, so that when the power is turned on again, the modified identifier of the target network port can be read from the backplane; The modified identification of the target network port, the management IP address, and the corresponding routing configuration are stored in the memory of the target controller, so that the modified identification of the target network port, the management IP address, and the corresponding routing configuration can be read from the memory when the power is not turned off; Notify other controllers in the controller cluster to store the modified identifier of the target network port, the management IP, and the corresponding routing configuration in the memory of the other controllers.
7. A network port multiplexing method according to claim 1, characterized in that: The target network port is the network port of the target controller, and also includes: During the period when the target network port performs a U-port function, receiving a modification operation on a T-port identifier of the target network port; Before performing the modification operation on the T port identifier of the target network port, detecting whether the management IP and the corresponding routing configuration are stored in the memory of the target controller; In the case where the management IP and the corresponding routing configuration are stored in the memory of the target controller, the modification operation of the T-port identifier of the target network port is not performed, and a modification failure prompt is output.
8. A network port multiplexing device, characterized in that: The device comprises: The command receiving module is used to receive the command for setting the T-port management IP for the target network port; A T-port identification confirmation module, configured to, in response to receiving a command to set a T-port management IP, determine, according to the T-port identification of the target network port, whether the target network port has been configured to enable the T-port on and enable the U-port off; A target network port modification module, used for modifying the target network port to enable the T port to be disabled and enable the U port to be enabled when the target network port has been configured to enable the T port to be enabled and enable the U port to be disabled; The management IP setting module is used to set the management IP and corresponding routing configuration for the target network port so that the target network port can perform the U port function.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the computer program is executed by the processor, the network port multiplexing method as described in any one of claims 1 to 7 is implemented.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the network port multiplexing method as described in any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
Maintenance port and safety protection method thereof
CN102136935A
Network port configuration method and device for network equipment
CN105721189A
Server management method, device and system, electronic equipment and readable storage medium
CN114866424A
Interface multiplexing circuit and method and electronic equipment
CN115576878A
