Storage network port multiplexing method, device, equipment and medium

By implementing the network port multiplexing method in the storage device, the resource waste and cost increase caused by the traditional network port allocation method are solved, and hardware costs are reduced through port multiplexing and functional conversion is realized.

CN119232560AInactive Publication Date: 2024-12-31INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411307842.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-19
Publication Date
2024-12-31
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The network port allocation method in traditional storage devices leads to the exclusive network card of each port, which has problems such as wasting resources and rising costs.

Method used

By implementing the network port multiplexing method on the target network card, obtain the current enable status of the target port, determine whether configuration is allowed, and set the target enable status according to the enable status, start or stop technical port service, and realize the switching of port functions and Reuse.

Benefits of technology

Reduces the demand for additional hardware ports, reduces hardware costs, and realizes the conversion of storage transfer function to management function through port multiplexing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119232560A_ABST
    Figure CN119232560A_ABST
Patent Text Reader

Abstract

The invention discloses a storage network port multiplexing method, device and equipment and a medium, and relates to the technical field of centralized storage. According to the scheme, the multiple ports are arranged on the target network card, and when the function of the target port needs to be switched, the current enabling state of the target port is obtained; if it is confirmed that the target port allows configuration according to the current enabling state of the target port and it is confirmed that the current enabling state of the target port is different from the target enabling state, the enabling state of the target port is set to be the target enabling state based on the key product data of the target network card, and the technical port service of the target port is started. In other words, conversion of the target port from the storage transmission function to the management function is achieved through port multiplexing, the requirement for additional hardware ports is reduced, and the hardware cost is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of centralized storage technology, and in particular to a storage network port multiplexing method, device, equipment and medium. Background Art

[0002] In storage devices, management ports include user management ports and technician ports. The user management port is a port used for basic management and monitoring of storage devices, which usually provides limited permissions and functions for ordinary users. The technician port is a port used for more in-depth configuration and management of storage devices, which usually provides professional technicians with higher permissions and richer functions.

[0003] To ensure redundancy and reliability, storage devices are often equipped with two user management ports and one technician port, each corresponding to a network card, for a total of three network cards. However, with the increase in device density and the diversification of operation and maintenance requirements, the traditional network port allocation method has the problem of resource waste and cost increase because each port exclusively occupies the network card.

[0004] In view of the above problems, how to solve the current storage device network port allocation method in which each port exclusively occupies a network card, resulting in a waste of resources, is an urgent problem to be solved by technical personnel in this field. Summary of the invention

[0005] The purpose of the present invention is to provide a storage network port multiplexing method, device, equipment and medium to solve the problem that the current storage device network port allocation method is that each port exclusively occupies a network card, resulting in resource waste.

[0006] In order to solve the above technical problems, the present invention provides a storage network port multiplexing method, which is applied to a target network card; wherein the target network card includes multiple ports; the method includes:

[0007] When receiving a network port switching command for a target port, obtaining a current enabling state of the target port; wherein the target port is any one of the multiple ports of the target network card;

[0008] Determine whether the target port is allowed to be configured according to the current enabling state of the target port;

[0009] If it is confirmed that the target port allows configuration, then determine whether the current enable state of the target port is the same as the target enable state;

[0010] If it is confirmed that the current enable state of the target port is different from the target enable state, the enable state of the target port is set to the target enable state based on the key product data of the target network card, and the technical port service of the target port is started.

[0011] On the one hand, judging whether the target port is allowed to be configured according to the current enabled state of the target port includes:

[0012] If the current enable state of the target port is stateless or fixed, it is confirmed that the target port does not allow configuration;

[0013] If the current enable state of the target port is enabled or disabled, it is confirmed that the target port allows configuration.

[0014] On the other hand, the determining whether the current enabled state of the target port is the same as the target enabled state includes:

[0015] Determine whether the current target port is configured with a cluster backup Internet Protocol address;

[0016] If it is confirmed that the target port is configured with a cluster backup Internet Protocol address, then it is confirmed that the current enable state of the target port is the same as the target enable state;

[0017] If it is confirmed that the target port is not configured with a cluster backup Internet Protocol address, then it is confirmed that the current enable state of the target port is different from the target enable state;

[0018] Correspondingly, setting the enable state of the target port to the target enable state based on the key product data of the target network card includes:

[0019] Get the target Internet Protocol address of the target port;

[0020] A target Internet Protocol address of a target port is set based on the key product data of the target network card.

[0021] On the other hand, the technical port service of starting the target port includes:

[0022] Execute the process of starting the technical port service;

[0023] Creating a service process identity record file to monitor the running status of the technical port service through the service process identity record file;

[0024] Determining whether the current enable state of the target port is the target enable state, and the Internet Protocol address of the target port has been set to a non-target Internet Protocol address;

[0025] If it is confirmed that the current enable state of the target port is the target enable state, and the Internet Protocol address of the target port has been set to a non-target Internet Protocol address, the target port is disabled, and a wiring check is performed on the target port;

[0026] If it is confirmed that the current enable state of the target port is the target enable state, and the Internet Protocol address of the target port is not set to a non-target Internet Protocol address, the Internet Protocol address of the target port is configured as the target Internet Protocol address, and a wiring check is performed on the target port;

[0027] If it is confirmed that the enable state of the current target port is not the target enable state, and the Internet Protocol address of the target port is not set to a non-target Internet Protocol address, it is confirmed that the technical port service startup fails;

[0028] The wiring check of the target port specifically includes:

[0029] Determine whether the current target port is connected to the network cable and the target port is enabled;

[0030] If it is confirmed that the current target port has been connected to the network cable and the target port is enabled, a prompt message indicating that the technical port service of the target port is started is reported;

[0031] If it is confirmed that the current target port is not connected to a network cable and / or the target port is not enabled, then the prompt information indicating that the technical port service of the target port is started is cleared.

[0032] On the other hand, after the technical port service of the target port is started, the method further comprises:

[0033] When receiving a technical port service stop command for a target port, executing a process for stopping the technical port service;

[0034] Delete the routing configuration of the target port and reset the Internet Protocol address of the target port;

[0035] Delete the service process identity record file of the target port.

[0036] On the other hand, before receiving the network port switching command for the target port, the method further includes:

[0037] determining whether an Internet Protocol address configuration command is received;

[0038] If it is confirmed that the Internet Protocol address configuration command has been received, the cluster backup Internet Protocol address is set;

[0039] The cluster backup Internet Protocol address is cached and sent to the target network card.

[0040] On the other hand, it also includes:

[0041] Monitor the startup status of the technical port service of the target port;

[0042] Generate a technical port usage log based on the startup status of the technical port service of the target port;

[0043] Upload the technical port usage log to the server.

[0044] In order to solve the above technical problems, the present invention further provides a storage network port multiplexing device, which is applied to a target network card; wherein the target network card includes multiple ports; the device includes:

[0045] An acquisition module, configured to acquire the current enabled state of the target port when receiving a network port switching command for the target port; wherein the target port is any one of the multiple ports of the target network card;

[0046] A first judgment module is used to judge whether the target port allows configuration according to the current enabling state of the target port; if it is confirmed that the target port allows configuration, the second judgment module is triggered;

[0047] The second judgment module is used to judge whether the current enabled state of the target port is the same as the target enabled state; if it is confirmed that the current enabled state of the target port is not the same as the target enabled state, the setting module is triggered;

[0048] The setting module is used to set the enable state of the target port to the target enable state based on the key product data of the target network card, and start the technical port service of the target port.

[0049] In order to solve the above technical problems, the present invention further provides a storage network port multiplexing device, comprising:

[0050] Memory for storing computer programs;

[0051] A processor is used to implement the steps of the above-mentioned storage network port multiplexing method when executing the computer program.

[0052] In order to solve the above technical problem, the present invention also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the above storage network port multiplexing method are implemented.

[0053] The storage network port multiplexing method provided by the present invention is applied to a target network card; wherein the target network card includes multiple ports; the method specifically obtains the current enable state of the target port when a network port switching command for the target port is received; wherein the target port is any one of the multiple ports of the target network card; whether the target port is allowed to be configured is judged according to the current enable state of the target port; if it is confirmed that the target port is allowed to be configured, whether the current enable state of the target port is the same as the target enable state is judged; if it is confirmed that the current enable state of the target port is not the same as the target enable state, the enable state of the target port is set to the target enable state based on the key product data of the target network card, and the technical port service of the target port is started.

[0054] The beneficial effect of the present invention lies in that multiple ports are set on a target network card, and when the function of the target port needs to be switched, the current enable state of the target port is obtained; if it is confirmed that the target port allows configuration according to the current enable state of the target port, and it is confirmed that the current enable state of the target port is different from the target enable state, the enable state of the target port is set to the target enable state based on the key product data of the target network card, and the technical port service of the target port is started, that is, the conversion of the target port from the storage and transmission function to the management function is realized through port multiplexing, the demand for additional hardware ports is reduced, and the hardware cost is reduced.

[0055] On the other hand, in a specific implementation of the present invention, if the current enable state of the target port is stateless or fixed, it is confirmed that the target port is not allowed to be configured; if the current enable state of the target port is enabled or disabled, it is confirmed that the target port is allowed to be configured, thereby realizing the judgment of whether the target port is allowed to be configured. If it is confirmed that the target port is configured with a cluster backup Internet Protocol address, it is confirmed that the current enable state of the target port is the same as the target enable state, and there is no need to further configure the target port; if it is confirmed that the target port is not configured with a cluster backup Internet Protocol address, it is confirmed that the current enable state of the target port is different from the target enable state, and the target port needs to be further configured. By obtaining the target Internet Protocol address of the target port, the target Internet Protocol address of the target port is further set based on the key product data of the target network card, thereby realizing the modification of the enable state of the target port.

[0056] In addition, the present invention also provides a storage network port multiplexing device, equipment and medium, with the same effect as above. BRIEF DESCRIPTION OF THE DRAWINGS

[0057] In order to more clearly illustrate the embodiments of the present invention, the following briefly introduces the drawings required for use in the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0058] Figure 1 A flowchart of a storage network port multiplexing method provided by an embodiment of the present invention;

[0059] Figure 2 A schematic diagram of a storage network port multiplexing device provided by an embodiment of the present invention;

[0060] Figure 3 A schematic diagram of a storage network port multiplexing device provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0061] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0062] The core of the present invention is to provide a storage network port multiplexing method, device, equipment and medium to solve the problem of resource waste in the current storage device network port allocation method that each port exclusively occupies a network card.

[0063] In order to enable those skilled in the art to better understand the scheme of the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and specific implementation methods.

[0064] In a storage device, the management port includes a user management port and a technician port. The user management port is responsible for monitoring, configuring, and managing network devices and resources. It allows administrators or users to configure, monitor, and maintain servers through remote management software without physically contacting the server. Technician port Technicians can access the server's network services, applications, and maintain storage devices through this network port. In order to manage the redundancy and reliability of the port, a storage device usually requires two management ports and one technician port, for a total of three ports, each port corresponding to a network card, for a total of three network cards. However, with the increase in device density and the diversification of operation and maintenance requirements, the traditional network port allocation method has the problem of resource waste and cost increase because each port exclusively occupies the network card. In order to solve the above problems, the present invention provides a storage network port multiplexing method.

[0065] It should be noted that the method provided by the present invention is applied to a target network card. The target network card includes a plurality of ports. The present invention does not limit the number of ports; for example, considering the hardware cost of port redundancy, two ports may be provided on the target network card. In the initial state, each port of the target network card is a user management port. It is worth noting that the ports of the target network card allow multiplexing, that is, support the conversion from a user management port with storage and transmission functions to a technician port with management functions. The following is a detailed description of this solution in conjunction with the specific steps of the method.

[0066] Figure 1 A flowchart of a storage network port multiplexing method provided by an embodiment of the present invention. Figure 1 As shown, the method includes:

[0067] S10: When a network port switching command for a target port is received, a current enabling state of the target port is obtained.

[0068] The target port is any one of the multiple ports of the target network card.

[0069] In a specific implementation, when receiving the network port switching command mtop chserviceip-techport disable / enable for the target port, the current enable state of the target port needs to be obtained first. It should be noted that in this embodiment, the target port is any one of the multiple ports of the target network card; in the initial state, the target port is a user management port for performing storage transmission functions.

[0070] S11: judging whether the target port allows configuration according to the current enabling state of the target port; if it is confirmed that the target port allows configuration, proceeding to step S12.

[0071] Further, after obtaining the current enabled state of the target port, it is determined whether the target port is allowed to be configured according to the current enabled state of the target port. In this embodiment, the specific process of determining whether the target port is allowed to be configured according to the current enabled state of the target port is not limited. If it is determined that the target port is not allowed to be configured according to the current enabled state of the target port, it is considered that the target port is not allowed to perform function switching, and the current process ends.

[0072] S12: Determine whether the current enable state of the target port is the same as the target enable state; if it is confirmed that the current enable state of the target port is not the same as the target enable state, proceed to step S13.

[0073] If it is confirmed that the target port allows configuration, it is determined whether the current enabled state of the target port is the same as the target enabled state. It should be noted that the target enabled state specifically refers to the state of the technician port with management function. If it is confirmed that the current enabled state of the target port is the same as the target enabled state, there is no need to further set the enabled state of the target port, and the current process ends.

[0074] S13: Setting the enable state of the target port to a target enable state based on the key product data of the target network card, and starting the technical port service of the target port.

[0075] If it is confirmed that the current enable state of the target port is different from the target enable state, the enable state of the target port needs to be set. Specifically, the enable state of the target port is set to the target enable state based on the Vital Product Data (VPD) of the target network card, and the technical port service (Techport service) of the target port is started, thereby completing the conversion and multiplexing of the target port from the storage transmission function to the management function, so that the staff can manage the storage device through the target port.

[0076] It should be noted that in this embodiment, there is no restriction on the specific process of setting the target port's enable state to the target enable state based on the key product data of the target network card, and there is no restriction on the specific process of starting the technical port service of the target port, which depends on the specific implementation situation.

[0077] In this embodiment, multiple ports are set on the target network card. When the function of the target port needs to be switched, the current enable state of the target port is obtained; if it is confirmed that the target port allows configuration according to the current enable state of the target port, and it is confirmed that the current enable state of the target port is different from the target enable state, the enable state of the target port is set to the target enable state based on the key product data of the target network card, and the technical port service of the target port is started, that is, the conversion of the target port from the storage and transmission function to the management function is realized through port multiplexing, which reduces the demand for additional hardware ports and reduces hardware costs.

[0078] Based on the above embodiments, in some embodiments, judging whether the target port is allowed to be configured according to the current enabling state of the target port includes:

[0079] S111: If the current enabling state of the target port is stateless or fixed, confirm that the target port is not allowed to be configured;

[0080] S112: If the current enabling state of the target port is enabled or disabled, confirm that the target port allows configuration.

[0081] In order to determine whether the target port is allowed to be configured, in a specific implementation, if the current enable state of the target port is none or permanent, it is determined that the target port is not allowed to be configured. If the current enable state of the target port is enable or disable, it is determined that the target port is allowed to be configured. In this way, the determination of whether the target port is allowed to be configured is realized.

[0082] Based on the above embodiments, in some embodiments, determining whether the current enable state of the target port is the same as the target enable state includes:

[0083] S121: Determine whether the current target port is configured with a cluster backup Internet Protocol address; if it is confirmed that the target port is configured with a cluster backup Internet Protocol address, proceed to step S122; if it is confirmed that the target port is not configured with a cluster backup Internet Protocol address, proceed to step S123;

[0084] S122: confirming that the current enable state of the target port is the same as the target enable state;

[0085] S123: Confirm that the current enable state of the target port is different from the target enable state.

[0086] In a specific implementation, in order to determine whether the current enabled state of the target port is the same as the target enabled state, it is specifically determined whether the current target port is configured with a cluster backup Internet Protocol (IP) address. If it is confirmed that the target port is configured with a cluster backup Internet Protocol address, it is confirmed that the current enabled state of the target port is the same as the target enabled state, and no further configuration of the target port is required. If it is confirmed that the target port is not configured with a cluster backup Internet Protocol address, it is confirmed that the current enabled state of the target port is not the same as the target enabled state, and further configuration of the target port is required.

[0087] Correspondingly, setting the enable state of the target port to the target enable state based on the key product data of the target network card includes:

[0088] S130: Obtain a target Internet Protocol address of a target port;

[0089] S131: Setting a target Internet Protocol address of a target port based on key product data of a target network card.

[0090] Furthermore, when it is confirmed that the current enable state of the target port is different from the target enable state, in order to set the enable state of the target port to the target enable state based on the VPD of the target network card, the target IP address of the target port is specifically obtained, and the target IP address of the target port is further set based on the VPD of the target network card, thereby realizing the modification of the enable state of the target port.

[0091] Based on the above embodiments, in some embodiments, starting the technical port service of the target port includes:

[0092] S132: executing the process of starting the technical port service;

[0093] S133: creating a service process identity record file, so as to monitor the running status of the technical port service through the service process identity record file;

[0094] S134: Determine whether the enable state of the current target port is the target enable state, and the Internet Protocol address of the target port has been set to a non-target Internet Protocol address; if it is confirmed that the enable state of the current target port is the target enable state, and the Internet Protocol address of the target port has been set to a non-target Internet Protocol address, proceed to step S135; if it is confirmed that the enable state of the current target port is the target enable state, and the Internet Protocol address of the target port is not set to a non-target Internet Protocol address, proceed to step S136; if it is confirmed that the enable state of the current target port is not the target enable state, and the Internet Protocol address of the target port is not set to a non-target Internet Protocol address, confirm that the technical port service startup has failed, and end the current process.

[0095] S135: disabling the target port and performing a wiring check on the target port;

[0096] S136: Configure the Internet Protocol address of the target port as the target Internet Protocol address, and perform a wiring check on the target port.

[0097] The wiring check of the target port specifically includes:

[0098] S137: Determine whether the current target port is connected to a network cable and the target port is enabled; if it is confirmed that the current target port is connected to a network cable and the target port is enabled, proceed to step S138; if it is confirmed that the current target port is not connected to a network cable and / or the target port is not enabled, proceed to step S139;

[0099] S138: reporting prompt information indicating that the technical port service of the target port is started;

[0100] S139: Clear the prompt information indicating the start of the technical port service of the target port.

[0101] In a specific implementation, in order to start the Techport service, a process of starting the Techport service is specifically executed. The Techport service searches for a target network card according to the platform, initializes the service, and creates a service process identity (ID) record file, so as to monitor the running status of the Techport service through the service process identity record file.

[0102] Further determine whether the current target port enable state is the target enable state, and the target port's Internet Protocol address has been set to a non-target Internet Protocol address (other IP addresses of the non-target port). If it is confirmed that the current target port enable state is the target enable state, and the target port's Internet Protocol address has been set to a non-target Internet Protocol address, then disable the target port and perform a wiring check on the target port. If it is confirmed that the current target port enable state is the target enable state, and the target port's Internet Protocol address is not set to a non-target Internet Protocol address, then configure the target port's Internet Protocol address to be the target Internet Protocol address, and perform a wiring check on the target port. If it is confirmed that the current target port enable state is not the target enable state, and the target port's Internet Protocol address is not set to a non-target Internet Protocol address, then confirm that the technical port service startup has failed, and end the current process.

[0103] It should be noted that the target port is wired for inspection to determine whether the current target port is connected to a network cable and whether the target port is enabled. If it is confirmed that the current target port is connected to a network cable and the target port is enabled, it is confirmed that the target port is wired, and a prompt message indicating that the technical port service of the target port has been started is reported. If it is confirmed that the current target port is not connected to a network cable and / or the target port is not enabled, it is confirmed that the technical port service of the target port has failed to start, and the prompt message indicating that the technical port service of the target port has been started is cleared.

[0104] In summary, the startup of the technical port service of the target port is achieved, so that the target port can realize the management function provided by the technical port service.

[0105] In order to close the technical port service of the target port, based on the above embodiment, in some embodiments, after starting the technical port service of the target port, the method further includes:

[0106] S14: when receiving a technical port service stop command for the target port, executing a process of stopping the technical port service;

[0107] S15: Delete the routing configuration of the target port and reset the Internet Protocol address of the target port;

[0108] S16: Delete the service process identity record file of the target port.

[0109] In a specific implementation, after starting the technical port service of the target port, in order to shut down the technical port service of the target port, when a technical port service stop command for the target port is received, the process of stopping the technical port service is executed, and the technical port service searches for the target network card according to the platform, deletes the routing configuration of the target port, and resets the Internet Protocol address of the target port, usually to 0.0.0.0. Finally, the service process identity record file of the target port is deleted, thereby realizing the shutdown of the technical port service of the target port.

[0110] Based on the above embodiment, in some embodiments, before receiving the network port switching command for the target port, the method further includes:

[0111] S17: Determine whether an Internet protocol configuration command is received; if it is confirmed that the Internet protocol configuration command is received, proceed to step S18;

[0112] S18: Set cluster backup Internet protocol;

[0113] S19: Cache the cluster backup Internet Protocol and send the cluster backup Internet Protocol to the target network card.

[0114] In a specific implementation, since the initial state of the target port is a user management port with storage transmission function before receiving the network port switching command for the target port, the user can switch the backup IP address of the target port to meet the actual use requirements of the user management port.

[0115] Specifically, it is determined whether an IP address configuration command is received. If it is confirmed that the IP address configuration command is not received, the process ends. If it is confirmed that the IP address configuration command is received, the cluster standby IP address is set; the cluster standby IP address is further cached, and the cluster standby IP address is sent to the target network card, thereby switching the standby IP address of the target port.

[0116] Based on the above embodiments, in some embodiments, the method further includes:

[0117] S20: monitoring the startup status of the technical port service of the target port;

[0118] S21: Generate a technical port usage log according to the startup status of the technical port service of the target port;

[0119] S22: Upload the technical port usage log to the server.

[0120] In the specific implementation, in order to enable the user to better understand the reuse of the target port, the startup status of the technical port service of the target port can be further monitored, including the startup and stop status. A technical port usage log is generated according to the startup status of the technical port service of the target port.

[0121] It should be noted that the technical port usage log should include the time when the log entry occurred for subsequent analysis and troubleshooting; record the port information involved before and after port reuse, including port number and name; record the user command, system event or scheduled task that triggered the switch; record the result of the switch operation, such as success or failure, and any related error code or message. Finally, upload the technical port usage log to the server for log backup.

[0122] Furthermore, users can monitor the status and history of network port reuse based on the technical port usage log to ensure the correctness and compliance of network configuration. When a problem occurs, you can view the log to determine the time and cause of the failure, so as to carry out targeted repairs. By analyzing the switching frequency and mode in the log, you can optimize the network port reuse strategy and improve network performance and resource utilization. The log also contains records of user operations for security auditing and intrusion detection to prevent unauthorized access or configuration changes. In this way, the security of storage network port reuse is improved.

[0123] In the above embodiments, the storage network port multiplexing method is described in detail, and the present invention also provides a corresponding embodiment of the storage network port multiplexing device.

[0124] Figure 2 A schematic diagram of a storage network port multiplexing device provided by an embodiment of the present invention. The device is applied to a target network card; wherein the target network card includes multiple ports; Figure 2 As shown, the device comprises:

[0125] The acquisition module 10 is used to acquire the current enabling state of the target port when receiving a network port switching command for the target port; wherein the target port is any one of the multiple ports of the target network card.

[0126] The first judgment module 11 is used to judge whether the target port is allowed to be configured according to the current enabling state of the target port; if it is confirmed that the target port is allowed to be configured, the second judgment module 12 is triggered.

[0127] The second judgment module 12 is used to judge whether the current enable state of the target port is the same as the target enable state; if it is confirmed that the current enable state of the target port is not the same as the target enable state, the setting module 13 is triggered.

[0128] The setting module 13 is used to set the enable state of the target port to a target enable state based on the key product data of the target network card, and start the technical port service of the target port.

[0129] In some embodiments, the first determination module 11 includes:

[0130] A first confirmation submodule, used for confirming that the target port is not allowed to be configured if the current enabling state of the target port is stateless or fixed;

[0131] The second confirmation submodule is used to confirm that the target port allows configuration if the current enabling state of the target port is enabled or disabled.

[0132] In some embodiments, the second determination module 12 includes:

[0133] The first judgment submodule is used to judge whether the current target port is configured with a cluster backup Internet Protocol address; if it is confirmed that the target port is configured with a cluster backup Internet Protocol address, the third confirmation submodule is triggered; if it is confirmed that the target port is not configured with a cluster backup Internet Protocol address, the fourth confirmation submodule is triggered;

[0134] A third confirmation submodule, used to confirm that the current enable state of the target port is the same as the target enable state;

[0135] A fourth confirmation submodule, used to confirm that the current enable state of the target port is different from the target enable state;

[0136] Correspondingly, the setting module 13 includes:

[0137] A first acquisition submodule, used to acquire a target Internet Protocol address of a target port;

[0138] The first setting submodule is used to set a target Internet Protocol address of a target port based on key product data of a target network card.

[0139] In some embodiments, the setting module 13 includes:

[0140] A first execution submodule is used to execute a process for starting a technical port service;

[0141] A first creation submodule is used to create a service process identity record file to monitor the running status of the technical port service through the service process identity record file;

[0142] The second judgment submodule is used to judge whether the enable state of the current target port is the target enable state, and the Internet Protocol address of the target port has been set to a non-target Internet Protocol address; if it is confirmed that the enable state of the current target port is the target enable state, and the Internet Protocol address of the target port has been set to a non-target Internet Protocol address, the disabling submodule is triggered; if it is confirmed that the enable state of the current target port is the target enable state, and the Internet Protocol address of the target port is not set to a non-target Internet Protocol address, the configuration submodule is triggered; if it is confirmed that the enable state of the current target port is not the target enable state, and the Internet Protocol address of the target port is not set to a non-target Internet Protocol address, it is confirmed that the technical port service startup fails;

[0143] A disabling submodule, used to disable the target port and trigger the wiring checking submodule;

[0144] A configuration submodule, used to configure the Internet Protocol address of the target port as the target Internet Protocol address and trigger the wiring check submodule;

[0145] The wiring check submodule specifically includes:

[0146] The third judgment submodule is used to judge whether the current target port is connected to the network cable and the target port is enabled; if it is confirmed that the current target port is connected to the network cable and the target port is enabled, the reporting submodule is triggered; if it is confirmed that the current target port is not connected to the network cable and / or the target port is not enabled, the clearing submodule is triggered;

[0147] A reporting submodule, used for reporting prompt information indicating the start of a technical port service of a target port;

[0148] The clearing submodule is used to clear the prompt information indicating the start of the technical port service of the target port.

[0149] In some embodiments, it also includes:

[0150] A stop submodule, used for executing a process of stopping the technical port service when receiving a technical port service stop command for a target port;

[0151] A first deletion submodule, used for deleting the routing configuration of the target port and resetting the Internet Protocol address of the target port;

[0152] The second deletion submodule is used to delete the service process identity record file of the target port.

[0153] In some embodiments, it also includes:

[0154] The fourth determination submodule is used to determine whether an Internet Protocol address configuration command has been received; if it is confirmed that the Internet Protocol address configuration command has been received, the second setting submodule is triggered;

[0155] A second setting submodule is used to set a cluster backup Internet Protocol address;

[0156] The cache sending submodule is used to cache the cluster backup Internet Protocol address and send the cluster backup Internet Protocol address to the target network card.

[0157] In some embodiments, it also includes:

[0158] A monitoring submodule, used to monitor the startup status of the technical port service of the target port;

[0159] A generation submodule, used for generating a technical port usage log according to the startup status of the technical port service of the target port;

[0160] The upload submodule is used to upload the technical port usage log to the server.

[0161] Since the embodiments of the apparatus part correspond to the embodiments of the method part, please refer to the description of the embodiments of the method part for the embodiments of the apparatus part, which will not be repeated here.

[0162] In addition, the present invention also provides a computer program product, including a computer program / instruction, which implements the steps of the above-mentioned storage network port multiplexing method when executed by a processor.

[0163] Figure 3 A schematic diagram of a storage network port multiplexing device provided by an embodiment of the present invention. Figure 3 As shown in the figure, the storage network port multiplexing device includes:

[0164] A memory 20, used for storing computer programs;

[0165] The processor 21 is used to implement the steps of the storage network port multiplexing method mentioned in the above embodiment when executing a computer program.

[0166] The storage network port multiplexing device provided in this embodiment may include, but is not limited to, a smart phone, a tablet computer, a laptop computer, or a desktop computer.

[0167] Among them, the processor 21 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 21 can be implemented in at least one hardware form of a digital signal processor (DSP), a field programmable gate array (FPGA), and a programmable logic array (PLA). The processor 21 may also include a main processor and a coprocessor. The main processor is a processor for processing data in an awake state, also known as a central processing unit (CPU); the coprocessor is a low-power processor for processing data in a standby state. In some embodiments, the processor 21 may be integrated with a graphics processing unit (GPU), and the GPU is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 21 may also include an artificial intelligence (AI) processor, which is used to process computing operations related to machine learning.

[0168] The memory 20 may include one or more computer-readable storage media, which may be non-transitory. The memory 20 may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In this embodiment, the memory 20 is at least used to store the following computer program 201, wherein, after the computer program is loaded and executed by the processor 21, it can implement the relevant steps of the storage network port multiplexing method disclosed in any of the aforementioned embodiments. In addition, the resources stored in the memory 20 may also include an operating system 202 and data 203, etc., and the storage method may be temporary storage or permanent storage. Among them, the operating system 202 may include Windows, Unix, Linux, etc. Data 203 may include but is not limited to data related to the storage network port multiplexing method.

[0169] In some embodiments, the storage network port multiplexing device may also include a display screen 22 , an input and output interface 23 , a communication interface 24 , a power supply 25 , and a communication bus 26 .

[0170] Those skilled in the art will understand that Figure 3 The structure shown in the figure does not constitute a limitation on the storage network port multiplexing device, and may include more or fewer components than those shown in the figure.

[0171] Finally, the present invention also provides an embodiment corresponding to a computer-readable storage medium. The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps recorded in the above method embodiment are implemented.

[0172] It is understandable that if the method in the above embodiment is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium to execute all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk, etc. Various media that can store program codes.

[0173] The above is a detailed introduction to a storage network port multiplexing method, device, equipment and medium provided by the present invention. The various embodiments in the specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same and similar parts between the embodiments can be referenced to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part description. It should be pointed out that for ordinary technicians in this technical field, without departing from the principle of the present invention, several improvements and modifications can be made to the present invention, and these improvements and modifications also fall within the scope of protection of the present invention.

[0174] It should also be noted that, in this specification, 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 "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or 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 device. In the absence of further restrictions, an element defined by the statement "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or device including the element.

Claims

1. A storage network port multiplexing method, characterized in that: Applied to a target network card; wherein the target network card includes a plurality of ports; the method includes: When receiving a network port switching command for a target port, obtaining a current enabling state of the target port; wherein the target port is any one of the multiple ports of the target network card; Determine whether the target port is allowed to be configured according to the current enabling state of the target port; If it is confirmed that the target port allows configuration, then determine whether the current enable state of the target port is the same as the target enable state; If it is confirmed that the current enable state of the target port is different from the target enable state, the enable state of the target port is set to the target enable state based on the key product data of the target network card, and the technical port service of the target port is started.

2. The storage network port multiplexing method according to claim 1, characterized in that: The step of judging whether the target port is allowed to be configured according to the current enabling state of the target port includes: If the current enable state of the target port is stateless or fixed, it is confirmed that the target port does not allow configuration; If the current enable state of the target port is enabled or disabled, it is confirmed that the target port allows configuration.

3. The storage network port multiplexing method according to claim 1, characterized in that: The determining whether the current enabled state of the target port is the same as the target enabled state includes: Determine whether the current target port is configured with a cluster backup Internet Protocol address; If it is confirmed that the target port is configured with a cluster backup Internet Protocol address, then it is confirmed that the current enable state of the target port is the same as the target enable state; If it is confirmed that the target port is not configured with a cluster backup Internet Protocol address, then it is confirmed that the current enable state of the target port is different from the target enable state; Correspondingly, setting the enable state of the target port to the target enable state based on the key product data of the target network card includes: Get the target Internet Protocol address of the target port; A target Internet Protocol address of a target port is set based on the key product data of the target network card.

4. The storage network port multiplexing method according to claim 1, characterized in that: The technical port service of starting the target port includes: Execute the process of starting the technical port service; Creating a service process identity record file to monitor the running status of the technical port service through the service process identity record file; Determining whether the current enable state of the target port is the target enable state, and the Internet Protocol address of the target port has been set to a non-target Internet Protocol address; If it is confirmed that the current enable state of the target port is the target enable state, and the Internet Protocol address of the target port has been set to a non-target Internet Protocol address, the target port is disabled, and a wiring check is performed on the target port; If it is confirmed that the current enable state of the target port is the target enable state, and the Internet Protocol address of the target port is not set to a non-target Internet Protocol address, the Internet Protocol address of the target port is configured as the target Internet Protocol address, and a wiring check is performed on the target port; If it is confirmed that the enable state of the current target port is not the target enable state, and the Internet Protocol address of the target port is not set to a non-target Internet Protocol address, it is confirmed that the technical port service startup fails; The wiring check of the target port specifically includes: Determine whether the current target port is connected to the network cable and the target port is enabled; If it is confirmed that the current target port has been connected to the network cable and the target port is enabled, a prompt message indicating that the technical port service of the target port is started is reported; If it is confirmed that the current target port is not connected to a network cable and / or the target port is not enabled, then the prompt information indicating that the technical port service of the target port is started is cleared.

5. The storage network port multiplexing method according to claim 1, characterized in that: After the technical port service of the target port is started, it also includes: When receiving a technical port service stop command for a target port, executing a process for stopping the technical port service; Delete the routing configuration of the target port and reset the Internet Protocol address of the target port; Delete the service process identity record file of the target port.

6. The storage network port multiplexing method according to claim 1, characterized in that: Before receiving the network port switching command for the target port, the following steps are also included: determining whether an Internet Protocol address configuration command is received; If it is confirmed that the Internet Protocol address configuration command has been received, the cluster backup Internet Protocol address is set; The cluster backup Internet Protocol address is cached and sent to the target network card.

7. The storage network port multiplexing method according to any one of claims 1 to 6, characterized in that: Also includes: Monitor the startup status of the technical port service of the target port; Generate a technical port usage log based on the startup status of the technical port service of the target port; Upload the technical port usage log to the server.

8. A storage network port multiplexing device, characterized in that: Applied to a target network card; wherein the target network card includes a plurality of ports; the device includes: An acquisition module, configured to acquire the current enabled state of the target port when receiving a network port switching command for the target port; wherein the target port is any one of the multiple ports of the target network card; A first judgment module is used to judge whether the target port allows configuration according to the current enabling state of the target port; if it is confirmed that the target port allows configuration, the second judgment module is triggered; The second judgment module is used to judge whether the current enabled state of the target port is the same as the target enabled state; if it is confirmed that the current enabled state of the target port is not the same as the target enabled state, the setting module is triggered; The setting module is used to set the enable state of the target port to the target enable state based on the key product data of the target network card, and start the technical port service of the target port.

9. A storage network port multiplexing device, characterized in that: include: Memory for storing computer programs; A processor, configured to implement the steps of the storage network port multiplexing method as described in any one of claims 1 to 7 when executing the computer program.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by the processor, the steps of the storage network port multiplexing method according to any one of claims 1 to 7 are implemented.

Citation Information

Patent Citations

  • Control method and device of LLDP enabling state and medium

    CN116048642A

  • Network identifier mapping method and system, terminal, and identification gateway

    WO2019144826A1