Connection management method, device and storage medium of node device

By setting up slots on the connection devices in the data center and utilizing the mapping relationship between slot identifiers and network connection information, the problem of node device management in large-scale data centers is solved, achieving accurate network connection and efficient management.

CN116260853BActive Publication Date: 2026-02-17TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111500278.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-09
Publication Date
2026-02-17
Estimated Expiration
2041-12-09

AI Technical Summary

Technical Problem

In large-scale data centers, how can we effectively manage the connections of various node devices, improve management efficiency and network access efficiency, and avoid node devices using duplicate network connection information?

Method used

By setting slots on the connection device, the node device obtains the slot identifier after connecting to the slot, and obtains the corresponding network connection information according to the pre-established mapping relationship between the slot identifier and the network connection information, performs network configuration and establishes a connection.

Benefits of technology

It enables precise management of node devices, improves management efficiency and network access efficiency, avoids duplicate network connection information, and facilitates maintenance and management.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116260853B_ABST
    Figure CN116260853B_ABST
Patent Text Reader

Abstract

Embodiments of the present application disclose a node device connection management method, device and storage medium. The node device connection management method comprises the following steps: in response to an access event of a slot of a connection device, obtaining a slot identifier of the accessed slot of the node device; obtaining network connection information corresponding to the slot identifier according to a mapping relationship between the established slot identifier and the network connection information; performing network configuration on a network interface of the node device according to the network connection information, and establishing a connection with a network device through the network connection information after the configuration is completed. By using the present application, each node device in a multi-node system can be monitored more conveniently, which is beneficial to user management of a multi-node system of a certain scale. When a node device fails, the position of the faulty node device can be quickly found, the efficiency of fault detection of the multi-node system is improved, and the management of the node device is more accurate and effective.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of computer, and particularly relates to a connection management method of node device, equipment and storage medium. BACKGROUND

[0002] With the rapid development of cloud computing, more and more cloud computing service demands, and the scale of data center required for providing services is also larger and larger. In a network environment, a large-scale node device is usually deployed in a data center, and with the increase of the number of node devices, the difficulty of managing the data center is gradually increased, and how to effectively manage each node device has become a hot research issue at present. SUMMARY

[0003] The embodiment of the present application provides a connection management method of node device, equipment and storage medium, which can effectively manage each node device in a multi-node system.

[0004] In one aspect, the embodiment of the present application provides a connection management method of node device, applied to a node device in a multi-node system, the multi-node system comprising a plurality of node devices and a connection device, the connection device being provided with a plurality of slots, and the node device being allowed to establish a connection with a network device by accessing the slots, comprising:

[0005] In response to an access event of the slots of the connection device, obtaining a slot identifier of the slot accessed by the node device;

[0006] According to a mapping relationship between the established slot identifier and network connection information, obtaining network connection information corresponding to the slot identifier;

[0007] According to the network connection information, performing network configuration on a network interface of the node device, and establishing a connection with the network device through the network connection information after the configuration is completed.

[0008] In one aspect, the embodiment of the present application provides a connection management method of node device, applied to a node device in a multi-node system, the multi-node system comprising a plurality of node devices and a connection device, the connection device being provided with a plurality of slots, and the node device being allowed to establish a connection with a network device by accessing the slots, comprising:

[0009] Analyzing network information of each node device in the multi-node system, and determining network connection information corresponding to each network information;

[0010] Obtaining a mapping relationship between the established slot identifier and network connection information, the mapping relationship being used for obtaining corresponding network connection information according to a slot identifier of the connection device when the node device accesses the connection device, so as to access the network device;

[0011] According to the mapping relationship, the network connection information corresponding to the slot identifier is found.

[0012] According to the found slot identifier, each node device in the multi-node system is managed.

[0013] In another aspect, the embodiment of the present application provides a connection management device of a node device, which is applied to a node device in a multi-node system, the multi-node system comprising a plurality of node devices and a connection device, a plurality of slots being arranged on the connection device, and the node device being allowed to establish a connection with a network device by accessing the slots, and the connection management device comprising:

[0014] a receiving unit configured to receive a notification message of an access event of a slot of the connection device;

[0015] a processing unit configured to, in response to the access event of the slot of the connection device, acquire a slot identifier of the slot accessed by the node device, acquire network connection information corresponding to the slot identifier according to a mapping relationship between the established slot identifier and the network connection information, perform network configuration on a network interface of the node device according to the network connection information, and establish a connection with the network device through the network connection information after the network configuration is completed.

[0016] In another aspect, the embodiment of the present application provides a connection management device of a node device, which is applied to a node device in a multi-node system, the multi-node system comprising a plurality of node devices and a connection device, a plurality of slots being arranged on the connection device, and the node device being allowed to establish a connection with a network device by accessing the slots, and the connection management device comprising:

[0017] a receiving unit configured to receive network information of each node device in the multi-node system;

[0018] a processing unit configured to analyze the network information of each node device in the multi-node system, determine network connection information corresponding to each network information, acquire a mapping relationship between an established slot identifier and the network connection information, the mapping relationship being used to acquire corresponding network connection information according to a slot identifier of the connection device when the node device accesses the connection device, so as to access the network device, find a slot identifier corresponding to the network connection information according to the mapping relationship, and manage each node device in the multi-node system according to the found slot identifier.

[0019] Correspondingly, the embodiment of the present application provides a smart device, comprising a memory, a processor and a network interface, wherein the network interface is used to provide network communication function, the memory is used to store program code, and the processor is used to call the program code and execute the method in the embodiment of the present application.

[0020] Accordingly, the embodiment of the present application provides a computer readable storage medium, comprising: a computer program is stored in the computer readable storage medium, and the computer program is executed by a processor to implement the method in the embodiment of the present application.

[0021] Accordingly, the embodiment of the present application provides a computer program product or computer program, the computer program product or computer program comprising computer instructions stored in a computer readable storage medium, the processor of a computer device reading and executing the computer instructions from the computer readable storage medium, so that the computer device executes the method in the embodiment of the present application.

[0022] By implementing the embodiment of the present application, according to the mapping relationship between the slot identifier and the network connection information established in advance, each node device in the multi-node system can correspond the network connection information used for establishing connection with the network device to the slot identifier of the slot of the connected device accessed by each node device, avoiding the use of repeated network connection information by each node device, and when managing each node device, the slot of the connected device accessed by the node device can be found through the network connection information according to the mapping relationship established in advance, so as to realize the accurate management of each node device and improve the management efficiency. BRIEF DESCRIPTION OF DRAWINGS

[0023] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the drawings needed to be used in the embodiments or the prior art description will be briefly introduced. Obviously, the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative labor.

[0024] Figure 1 is an application scenario diagram of the connection management method of the node device provided by the embodiment of the present application;

[0025] Figure 2 is a flowchart of the connection management method of the node device provided by the embodiment of the present application;

[0026] Figure 3 is a flowchart of another connection management method of the node device provided by the embodiment of the present application;

[0027] Figure 4a is a flowchart of another connection management method of the node device provided by the embodiment of the present application;

[0028] Figure 4b is a flowchart of another connection management method of the node device provided by the embodiment of the present application;

[0029] Figure 5is a structural schematic diagram of a connection management device of a node device provided by an embodiment of the present application.

[0030] Figure 6 is a structural schematic diagram of a smart device provided by an embodiment of the present application. DETAILED DESCRIPTION

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

[0032] The embodiments of the present application provide a connection management method and device of a node device and a storage medium. The method can be applied to a node device in a multi-node system. The multi-node system can include a plurality of node devices and a connection device. Each node device can be directly connected to a slot of the connection device through a network cable and establish a connection with a network device. By implementing the embodiments of the present application, when a node device is connected to a slot of a connection device, the slot identifier of the connected slot of the connection device can be obtained. According to a pre-established mapping relationship between the slot identifier and network connection information, the IP address corresponding to the slot identifier of the connected slot of the connection device can be obtained. Then, the network device can be connected using the network connection information. In this way, on the one hand, the mapping relationship between the slot and the IP address of the network connection information is fixed. The corresponding slot on the connector (or connection device) can be found according to the IP address of the network information. Then, the device that transmits and receives the network information can be accurately determined. The management of the node device can be implemented, including information security management, network security management, and the like. On the other hand, when a node device is connected to a connector, the accurate configuration of the IP address of the network connection information can be quickly completed. The allocation of the IP address does not need to be waited for. The use of repeated network connection information by each node device can also be avoided. In general, compared with the case where some node devices are directly connected to a router or the like, the slot of the connection device to which the node device is connected can be accurately found when the node devices are managed. This is conducive to improving the management efficiency and improving the efficiency of accessing the network to a certain extent.

[0033] Please refer to Figure 1 , Figure 1 is an application scenario schematic diagram of a connection management method of a node device provided by an embodiment of the present application. The application scenario can include a multi-node system 100 and a network device 110. The multi-node system 100 and the network device 110 can communicate through a wired or wireless manner.

[0034] As Figure 1 shown, the network device 110 can be one or more of a switch 111, a router 112 and a gateway device 113, the multi-node system 100 can include a node device 101, a node device 102, a node device 103 and a connection device 104, the connection device 104 is provided with a slot 105, a slot 106 and a slot 107, and each node device included in the multi-node system 100 can establish a connection with the network device 110 by accessing the slots in the connection device 104.

[0035] Among them, the node device can be a server, and can also be a terminal of a personal user. The method described in the embodiments of the application can be applied in a cloud service environment. Cloud technology refers to a series of resources such as hardware, software, network, etc. unified in a wide area network or a local area network, to realize data calculation, storage, processing and sharing.

[0036] Cloud technology is a general term for network technology, information technology, integration technology, management platform technology, application technology, etc. based on cloud computing business model application, which can form a resource pool, and can be used on demand, flexibly and conveniently. Cloud computing technology will become an important support. The background service of the technical network system needs a large amount of computing and storage resources, such as video websites, picture websites and more portals. With the high development and application of the Internet industry, every item in the future may have its own identification mark, and needs to be transmitted to the background system for logical processing. Different levels of data will be processed separately, and various industry data will need strong system support, which can only be realized through cloud computing.

[0037] The server involved in the present application can be a cloud server providing cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, content delivery networks (CDN), and big data and artificial intelligence platforms, etc. The terminal can be a smart phone, a tablet computer, a notebook computer, a desktop computer, a smart speaker, a smart watch, etc., but is not limited thereto. The terminal and the server can be directly or indirectly connected through wired or wireless communication, which is not limited in the present application. The data involved in the present application, such as the mapping relationship between the slot identifier and the network connection information, can be stored and managed by a database. In short, the database can be regarded as an electronic file cabinet - a place for storing electronic files. Users can add, query, update, delete, etc. The data in the file. The so-called "database" is a collection of data stored together in a certain way, shared by multiple users, with as little redundancy as possible, and independent of application programs.

[0038] A database management system (DBMS) is a computer software system designed to manage databases, generally with basic functions such as storage, interception, security, backup, etc. Database management systems can be classified according to the database model they support, such as relational, Extensible Markup Language (XML); or according to the type of computer they support, such as server clusters, mobile phones; or according to the query language they use, such as Structured Query Language (SQL), XML Query Language (XQuery); or according to the performance focus, such as maximum size, highest speed; or other classification methods. Regardless of the classification method used, some DBMSs can cross categories, such as supporting multiple query languages at the same time.

[0039] It should be understood that Figure 1 The number of network devices in the network device, the number of node devices in the multi-node system, and the number of slots on the connection device in the multi-node system is only illustrative. According to the needs of implementation, there can be any number of network devices, any number of node devices in the multi-node system, and any number of slots on the connection device.

[0040] Further, please refer to Figure 2 , Figure 2is a flowchart of a connection management method of a node device provided in the present application. The method can be executed by a node device in a multi-node system, the multi-node system comprising a plurality of node devices and a connection device, the connection device being provided with a plurality of slots, and the node device being able to establish a connection with a network device by accessing a slot. The method can comprise, but is not limited to, the following steps:

[0041] S201: In response to an access event of a slot of a connection device, obtaining a slot identifier of the accessed slot of the connection device.

[0042] In the present application, the node device can obtain the slot identifier of the accessed slot of the connection device when accessing the slot of the connection device.

[0043] In one embodiment, the slot identifier of the slot on the connection device is information that can be used to represent the slot uniquely. For example, the slot identifier can be a slot number of the slot on the connection device. The slot number can be used to indicate the physical position of the slot on the connection device and can be recognized by the node device. When the node device accesses the slot on the connection device, the slot identifier of the slot can be obtained.

[0044] S202: Obtaining network connection information corresponding to the slot identifier according to a pre-established mapping relationship between the slot identifier and the network connection information.

[0045] In the present application, the node device can obtain the pre-established mapping relationship between the slot identifier and the network connection information, and according to the mapping relationship, the network connection information corresponding to the slot identifier of the accessed slot of the node device can be obtained.

[0046] In one embodiment, the pre-established mapping relationship between the slot identifier and the network connection information can be stored in an internal storage space of the multi-node system, such as a register or a flash memory (Flash), or can be stored in an external storage device of the multi-node system, such as a mobile terminal or a personal computer with storage function. The external storage device can be connected to the multi-node system through a network device for access by the multi-node system. The node device can obtain the network connection information according to the mapping relationship. The network connection information here can be an IP address of the node device. Since the slot identifiers of the slots on the connection device are unique, the network connection information obtained according to the pre-established mapping relationship between the slot identifier and the network connection information can also be guaranteed to be non-repetitive, that is, the IP address of the node device obtained according to the mapping relationship will not conflict. Accordingly, by obtaining the mapping relationship, the slot identifier corresponding to the network connection information can be found to know the physical position of the slot of the connection device accessed by the node device using the network connection information.

[0047] S203: configure the network interface of the node device according to the network connection information, and establish a connection with the network device through the network connection information after the configuration is completed.

[0048] In the embodiments of the present application, the node device can configure the network interface according to the obtained network connection information, and establish a connection with the network device using the network connection information after the configuration is completed, that is, communicate with the network device through the network connection information.

[0049] In one embodiment, after the node device obtains the network connection information corresponding to the slot identifier of the slot of the connected device, the node device can configure the network interface through the network connection information and detect whether the configuration is successfully completed. If yes, the node device can establish a connection with the network device using the network connection information; if not, the node device can configure the network interface using the network default information and establish a connection with the network device through the network default information. The network default information can be the default IP address of the node device, and the network default information can be set before the node device accesses the slot of the connected device.

[0050] By implementing the embodiments of the present application, the network connection information used by each node device in the multi-node system can correspond to the slot identifier of the slot of the connected device accessed by the node device, and the uniqueness of the slot identifier ensures that the network connection information is not repeated. In addition, when the slot of the connected device is replaced by the node device, the network connection information corresponding to the slot identifier of the slot of the connected device will not change, which meets the requirement that the network connection information corresponding to the slot of the connected device should not change when the slot is replaced by the node device. In addition, according to the pre-established mapping relationship between the slot identifier and the network connection information, the physical location of the slot of the connected device accessed by the node device can be found through the network connection information, which facilitates the maintenance and management of each node device.

[0051] Further, please refer to Figure 3 , Figure 3 is a flowchart of another connection management method of a node device provided by the embodiments of the present application. The method can be executed by a node device in a multi-node system, the multi-node system including a plurality of node devices and a connected device, the connected device being provided with a plurality of slots, and the node device being able to establish a connection with a network device by accessing a slot. The method can include but is not limited to the following steps:

[0052] S301: In response to an access event of a slot of a connected device, obtain a slot identifier of a slot accessed by a node device.

[0053] S302: According to the established mapping relationship between the slot identifier and the network connection information, obtain the network connection information corresponding to the slot identifier.

[0054] In the embodiments of the present application, the execution processes of steps S301 and S302 can refer to the specific descriptions of steps S201 and S202 in the method of the first aspect respectively, which will not be repeated here. Figure 2

[0055] S303: configuring the network interface of the node device according to the network connection information.

[0056] In the embodiments of the present application, the node device can obtain the network connection information corresponding to the slot identifier of the slot of the connected device according to the established mapping relationship between the slot identifier and the network connection information, and use the network connection information to configure the network interface.

[0057] S304: detecting whether the network configuration of the network interface of the node device is successfully completed according to the network connection information.

[0058] In the embodiments of the present application, the node device can detect whether the network configuration of the network interface is successfully completed using the network connection information.

[0059] S305: if yes, triggering the execution of establishing the connection with the network device through the network connection information after the configuration is completed.

[0060] In the embodiments of the present application, if the node device successfully completes the network configuration of the network interface using the network connection information, the node device can establish the connection with the network device using the network connection information, that is, the node device communicates with the network device through the network connection information.

[0061] S306: if no, obtaining network default information, and using the network default information to configure the network interface of the node device to establish the connection with the network device.

[0062] In the embodiments of the present application, if the node device does not successfully complete the network configuration of the network interface using the network connection information, the node device can use the network default information to configure the network interface of the node device, and establish the connection with the network device using the network default information, that is, the node device communicates with the network device through the network default information.

[0063] In one embodiment, the network default information can be a default IP address of the node device, and the network default information can be set before the node device accesses the slot of the connected device.

[0064] In one embodiment, the multi-node system can further include a management device allowed to communicate with each node device, and the method can further include but not limited to the following step:

[0065] S307: sending notification information to the management device.

[0066] ​In the embodiments of the present application, the management device can communicate with each node device through the network device, and the node device can send notification information to the management device.

[0067] In one embodiment, the node device can actively send notification information to the management device periodically, or send notification information to the management device after receiving the corresponding instruction of the management device. The notification information sent by the node device to the management device can include one or more of configuration information, fault information, load information and version information, and the notification information can carry the slot identifier of the slot of the connection device accessed by the node device. The configuration information can be the network configuration information of the node device, the fault information can be information indicating that the node device has a fault, the load information can be the Central Processing Unit (CPU) information of the node device, and the version information can be the firmware version information of the node device, which are not limited in the embodiments of the present application.

[0068] In one embodiment, when a component of the node device has a fault, the node device can send notification information to the management device, and the management device can obtain the physical location of the slot of the connection device accessed by the node device according to the slot identifier of the slot of the connection device accessed by the node device carried in the notification information, so that the maintenance personnel can obtain the location information of the node device with a fault in time.

[0069] S308: receiving the management operation instruction sent by the management device for the notification information, and performing corresponding operation according to the management operation instruction.

[0070] In the embodiments of the present application, the node device can receive the management operation instruction sent by the management device for the notification information, and perform corresponding operation according to the management operation instruction.

[0071] In one embodiment, when the node device sends notification information to the management device using network default information, the node device can receive the network update instruction sent by the management device, and the network update instruction can include the network update connection information allocated by the management device according to the slot identifier of the slot of the connection device accessed by the node device carried in the notification information. Correspondingly, the mapping relationship between the slot identifier of the slot of the connection device accessed by the node device and the network update connection information can also be established by the management device. After receiving the network update instruction, the node device can update the network configuration of the network interface from the network default information to the network update connection information, and then establish connection with the network device using the network update connection information.

[0072] In one embodiment, the node device can further receive a firmware upgrade instruction sent by the management device for the notification information, according to which the node device can download the latest version of the firmware in a manner of establishing a connection with the network device, thereby improving the flexibility of the firmware upgrade of the node device.

[0073] By implementing the embodiments of the present application, each node device in the multi-node system can be automatically allocated network connection information according to the mapping relationship between the slot identifier of the slot of the connection device and the network connection information previously established, and the corresponding network connection information will not change when the slot in the same physical position accesses different node devices. In addition, each node device can communicate with the management device by establishing a connection with the network device, the management device can monitor each node device and issue management operation instructions, thereby realizing the efficiency and flexibility of the management of the node device.

[0074] Further, please refer to Figure 4a , Figure 4a is a flowchart of another connection management method of a node device provided by the embodiments of the present application, which is performed by a management device in a multi-node system including a plurality of node devices, a connection device and the management device, the connection device is provided with a plurality of slots, and the node device can establish a connection with a network device by accessing the slot, the method can include but is not limited to the following steps:

[0075] S401: Analyzing the network information of each node device in the multi-node system to determine the network connection information corresponding to each network information.

[0076] In the embodiments of the present application, the management device in the multi-node system can analyze the network information of each node device in the multi-node system and determine the network connection information corresponding to the network information.

[0077] In one embodiment, the network information of each node device in the multi-node system can be the network behavior information of a user obtained by the node device, for example, one or more of search information, browsing information, collection information and download information, or can be the state information of the node device in the network environment, which is not limited in the embodiments of the present application. The management device can obtain the network information of each node device through the network device and analyze it, thereby obtaining the network connection information used by each node device when sending the network information to the network device.

[0078] In one embodiment, the management device can statistically process the network information of each node device, and the management device can determine the type of network information by analyzing the network information of each node device, and generate statistical information after counting the results of the analysis.

[0079] S402: Obtain the mapping relationship between the slot identifier of the pre-established slot of the connection device and the network connection information.

[0080] In the embodiment of the present application, the management device can obtain the mapping relationship between the slot identifier of the pre-established slot of the connection device and the network connection information.

[0081] In one embodiment, the mapping relationship between the slot identifier of the pre-established slot of the connection device and the network connection information can be stored in the internal storage space of the multi-node system, such as a register or a flash memory, or can be stored in the external storage device of the multi-node system, such as a mobile terminal or a personal computer with storage function, which can be connected to the multi-node system through a network device for access by the multi-node system.

[0082] S403: Find the slot identifier corresponding to the network connection information according to the mapping relationship.

[0083] In the embodiment of the present application, after obtaining the mapping relationship between the slot identifier of the pre-established slot of the connection device and the network connection information, the management device can find the slot identifier of the slot of the connection device corresponding to the network connection information used by the node device through the mapping relationship.

[0084] S404: Manage each node device in the multi-node system according to the found slot identifier.

[0085] In the embodiment of the present application, after finding the slot identifier of the slot of the connection device corresponding to the network connection information used by the node device, the management device can obtain the physical location of the slot accessed by the node device on the connection device, and can manage each node device according to the physical location of the slot accessed by the node device on the connection device.

[0086] In one embodiment, the management of each node device in the multi-node system by the management device can include monitoring the load information of each node device, such as sending instructions to increase or decrease the corresponding business quantity according to the node device load size; monitoring the fault information of each node device, such as issuing warning information when the management device determines that the node device has failed; managing the firmware version information of each node device, such as issuing a firmware upgrade instruction when the management device detects that the firmware version information is updated.

[0087] By implementing the embodiments of the present application, the management device can obtain network connection information corresponding to the network information by analyzing the network information of the node device, and then find the slot identifier of the slot of the connection device accessed by the node device according to the mapping relationship between the slot identifier of the slot of the connection device and the network connection information, so as to manage each node device. Compared with the case where the node device cannot access the physical position of the slot of the connection device and directly manages the node device, the management is more accurate and effective.

[0088] In one embodiment, as shown in Figure 4b If the management device receives the notification information sent by the node device in the multi-node system through the network default information, the method can further include the following steps:

[0089] S405: Obtain the slot identifier of the slot accessed by the node device included in the notification information.

[0090] In the embodiments of the present application, the management device can obtain the slot identifier of the slot accessed by the node device included in the received notification information.

[0091] In one embodiment, the notification information received by the management device can include one or more of configuration information, fault information, load information and version information, and the notification information can carry the slot identifier of the slot of the connection device accessed by the node device. When the management device receives the notification information sent by the node device in the multi-node system using the network default information, the management device can obtain the slot identifier of the slot of the connection device accessed by the node device carried in the notification information.

[0092] S406: Assign network update connection information to the slot identifier of the slot accessed by the node device, and establish a mapping relationship between the slot identifier of the slot accessed by the node device and the network update connection information.

[0093] In the embodiments of the present application, the management device can assign network update connection information to the node device according to the obtained slot identifier of the slot of the connection device accessed by the node device, and then establish a mapping relationship between the slot identifier of the slot of the connection device accessed by the node device and the network update connection information, and store the mapping relationship in the internal storage space of the multi-node system or in the external storage device connected to the multi-node system through the network device.

[0094] S407: Send a network update instruction to the node device.

[0095] In the embodiments of the present application, when the management device receives the notification information sent by the node device in the multi-node system using the network default information, it indicates that the node device fails to complete the network configuration of the network interface using the network connection information, and the network update instruction is sent to the node device, which is used to instruct the node device to update the network default information used to the network update connection information.

[0096] By implementing the embodiments of the present application, when the management device receives the notification information sent by the node device using the network default information, the network update connection information can be allocated to the node device according to the slot identifier of the slot accessed by the node device, and the mapping relationship between the slot identifier of the slot accessed by the node device and the network update connection information is established. In this way, the network update connection information can be allocated according to the slot accessed by the node device, and the management of the node device is more convenient.

[0097] Further, please refer to Figure 5 , Figure 5 is a structural schematic diagram of a connection management device of a node device provided by the embodiments of the present application, in an embodiment, as shown in Figure 5 , the service processing device 50 can include:

[0098] The receiving unit 501 is configured to receive the notification message of the access event of the slot of the connection device.

[0099] The processing unit 502 is configured to, in response to the access event of the slot of the connection device, acquire the slot identifier of the slot accessed by the node device, acquire the network connection information corresponding to the slot identifier according to the established mapping relationship between the slot identifier and the network connection information, perform the network configuration on the network interface of the node device according to the network connection information, and establish the connection with the network device through the network connection information after the configuration is completed.

[0100] It should be noted that Figure 5 the contents not mentioned in the corresponding embodiments and the specific implementation manners of the steps can be referred to the embodiments shown in Figure 2 - Figure 4b and the foregoing contents, which will not be described here.

[0101] Further, please refer to Figure 6 , Figure 6is a structural schematic diagram of a smart device provided by an embodiment of the present application. The smart device can include a network interface 601, a memory 602, and a processor 603, which are connected through one or more communication buses, and the communication buses are used to realize the connection and communication among the components. The network interface 601 can include a standard wired interface, a wireless interface (such as a WIFI interface). The memory 602 can include a volatile memory (such as a random-access memory (RAM)), and the memory 602 can also include a non-volatile memory (such as a flash memory, a solid-state drive (SSD), etc.), and the memory 602 can also include a combination of the above-mentioned memories. The processor 603 can be a central processing unit (CPU). The processor 603 can further include a hardware chip. The hardware chip can be an application-specific integrated circuit (ASIC), a programmable logic device (PLD), etc. The PLD can be a field-programmable gate array (FPGA), a generic array logic (GAL), etc.

[0102] Optionally, the memory 602 is further configured to store program instructions, and the processor 603 can further invoke the program instructions to realize the following.

[0103] In response to an access event of a slot of a connected device, a slot identifier of a slot accessed by a node device is acquired; according to a mapping relationship between the slot identifier and network connection information that has been established, network connection information corresponding to the slot identifier is acquired; a network interface of the node device is configured according to the network connection information, and after the configuration is completed, a connection with a network device is established through the network connection information.

[0104] It should be understood that the principles and advantages of the smart device 60 described in the embodiments of the present application for solving problems are similar to those of the embodiments of the present application and the foregoing for solving problems. For brevity, they will not be described here. Figure 2 - Figure 4b The principles and advantages of the embodiments of the present application for solving problems are similar to those of the embodiments of the present application and the foregoing for solving problems. For brevity, they will not be described here.

[0105] In addition, the present application also provides a computer readable storage medium, which stores a computer program, and the computer program is executed by a processor to realize the method provided by the foregoing embodiments.

[0106] The computer program product or the computer program includes computer instructions stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer readable storage medium, and the processor executes the computer instructions, so that the computer device executes the method provided by the foregoing embodiments.

[0107] The steps in the method embodiments can be adjusted, combined and reduced in sequence according to actual needs.

[0108] The units in the device embodiments can be combined, divided and reduced according to actual needs.

[0109] Those skilled in the art can understand that all or part of the processes in the above-mentioned method embodiments can be completed by a computer program instructing related hardware, and the program can be stored in a computer readable storage medium. When the program is executed, the program can include the processes of the above-mentioned embodiments of the method. The storage medium can be a magnetic disc, an optical disc, a read-only memory (ROM) or a random access memory (RAM) and the like.

[0110] The above only describes some embodiments of the present application, and of course cannot limit the scope of the rights of the present application. Those skilled in the art can understand that all or part of the processes of the above-mentioned embodiments are implemented, and equivalent changes made according to the claims of the present application still belong to the scope covered by the present application.

Claims

1. A connection management method of a node device, characterized by, A node device applied to a multi-node system, the multi-node system comprising a plurality of node devices and a connection device, the connection device being provided with a plurality of slots, and the node device being allowed to access the slots to establish a connection with a network device, the method comprising: The node device, in response to an access event of a slot of the connection device, acquires a slot identifier of the slot accessed by the node device; The node device acquires network connection information corresponding to the slot identifier according to a mapping relationship between the established slot identifier and the network connection information; The node device performs network configuration on a network interface of the node device according to the network connection information, and detects whether the configuration is successfully completed; If the configuration is successfully completed, the node device establishes a connection with the network device through the network connection information after the configuration is completed; If the configuration is not successfully completed, the node device performs network configuration on the network interface using network default information, and establishes a connection with the network device through the network default information, the network default information being a default IP address of the node device, and the network default information being set before the node device accesses the slot of the connection device; The node device sends notification information to a management device based on the network default information, the notification information carrying a slot identifier of the slot of the connection device accessed by the node device, and the notification information comprising fault information; The node device receives a network update instruction sent by the management device, the network update instruction comprising network update connection information allocated for the slot identifier of the slot accessed by the node device, the mapping relationship between the slot identifier of the slot accessed by the node device and the network update connection information being established after the network update connection information is allocated; The node device updates the network default information used by the node device to the network update connection information according to the network update instruction, and establishes a connection with the network device through the network update connection information.

2. The method of claim 1, wherein, The multi-node system further comprises a management device, the management device being allowed to communicate with each node device, and the method further comprises: Sending notification information to the management device; Receiving a management operation instruction sent by the management device for the notification information, and performing a corresponding operation according to the management operation instruction.

3. The method of claim 2, wherein, The notification information comprises one or more of configuration information, fault information, load information, and version information of the node device, and the notification information carries the slot identifier of the slot accessed by the node device.

4. The method according to any one of claims 1 to 3, wherein The established mapping relationship between the slot identifier and the network connection information is stored in an internal storage space of the multi-node system; Or, the established mapping relationship between the slot identifier and the network connection information is stored in an external storage device of the multi-node system, and the external storage device is connected to the multi-node system through the network device.

5. A connection management method of a node device, characterized by, A management device applied to a multi-node system, the multi-node system comprising a plurality of node devices, a connection device, and the management device, the connection device being provided with a plurality of slots, and the node device being allowed to access the slots to establish a connection with a network device, the method comprising: analyzing network information of each node device in the multi-node system, to determine network connection information corresponding to each network information; obtaining a mapping relationship between a slot identifier that has been established and the network connection information, the mapping relationship being used to obtain the corresponding network connection information according to the slot identifier of the connection device when the node device accesses the connection device, to access the network device; wherein, after the node device obtains the corresponding network connection information, the node device performs network configuration on a network interface of the node device according to the network connection information, and detects whether the configuration is successfully completed, the node device establishes a connection with the network device through the network connection information after the configuration is completed in a case where it is determined that the configuration is successfully completed, and performs network configuration on the network interface using network default information in a case where it is determined that the configuration is not successfully completed, and establishes a connection with the network device through the network default information, the network default information being a default IP address of the node device, the network default information being set before the node device accesses the slot of the connection device; if notification information sent by a node device in the multi-node system through network default information is received, obtaining a slot identifier of a slot accessed by the node device included in the notification information; the notification information including fault information; allocating network update connection information to the slot identifier of the slot accessed by the node device, and establishing a mapping relationship between the slot identifier of the slot accessed by the node device and the network update connection information; sending a network update instruction to the node device, the network update instruction being used to instruct the node device to update the network default information used by the node device to the network update connection information; looking up a slot identifier corresponding to the network connection information according to the mapping relationship; managing each node device in the multi-node system according to the slot identifier found.

6. A smart device, comprising: comprising: a memory, a processor and a network interface, the processor being connected to the memory and the network interface, wherein the network interface is used to provide network communication function, the memory is used to store program code, and the processor is used to call the program code and execute the method in any one of claims 1-5.

7. A computer readable storage medium characterized in that, The computer readable storage medium stores a computer program, and the computer program is executed by the processor to implement the method in any one of claims 1-5.

8. A connection management apparatus of a node device, characterized by comprising: comprising units for implementing the method in any one of claims 1-5.

9. A computer program product comprising computer instructions stored in a computer readable storage medium, characterized in that, The processor of the computer device reads and executes the computer instructions from the computer readable storage medium, so that the computer device executes the method in any one of claims 1-5.

Citation Information

Patent Citations

  • Intelligent cabinet and network protocol address management method thereof

    CN109889615A

  • Node management method and equipment

    CN113300864A