Intelligent power distribution network method and device, electronic equipment and readable storage medium

By allocating network configuration identifiers through a scheduling server and directly sending available ports and server identifiers, the problem of low network configuration efficiency for IoT devices is solved, enabling a fast and flexible network configuration process.

CN119172240BActive Publication Date: 2026-04-21GREE ELECTRIC APPLIANCE INC OF ZHUHAI +1
View PDF 1 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
GREE ELECTRIC APPLIANCE INC OF ZHUHAI
Filing Date
2024-09-02
Publication Date
2026-04-21

AI Technical Summary

Technical Problem

In the current IoT device network configuration process, the large number of devices increases the difficulty of network configuration, and existing methods are time-consuming and inefficient.

Method used

The scheduling server obtains the identifier allocation device and allocates the network identifier based on the current network information and preset allocation rules. When the port status is determined to be available, it is directly sent to the target device, avoiding polling and traversing ports to find an idle port.

Benefits of technology

It enables fast and flexible device network configuration, improves network configuration efficiency and flexibility, and reduces user waiting time and operational complexity.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119172240B_ABST
    Figure CN119172240B_ABST
Patent Text Reader

Abstract

This invention provides an intelligent network distribution method, apparatus, electronic device, and readable storage medium. Upon receiving a network distribution request from a target device, the method acquires a network distribution identifier allocated by an identifier allocation device based on current network distribution information stored in a scheduling server and preset allocation rules. The network distribution identifier includes a target server identifier and a target port identifier. Based on the port identifier information of the target server corresponding to the target server identifier, the method determines the port status corresponding to the target port identifier. If the port status is available, the method sends the target port identifier and the target server identifier to the target device. The target server identifier and the target port identifier are used by the target device to complete the network distribution. This eliminates the need to poll and traverse server ports to find idle ports. Based on the current network distribution information, it quickly and flexibly selects the server and port required by the target device, enhancing the flexibility and adaptability of the configuration and saving network distribution time and efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of computer technology, and in particular to a smart distribution network method, apparatus, electronic device, and readable storage medium. Background Technology

[0002] With the rapid development of IoT technology, the application of IoT devices is becoming increasingly widespread. However, some problems still exist in the current IoT device network configuration process. The sheer number of IoT devices increases the difficulty of network configuration.

[0003] In related technologies, when configuring devices for network setup, servers often use a round-robin approach to search for available ports and select the most suitable resource for device connection and configuration. However, this method of device configuration is time-consuming and has low efficiency. Summary of the Invention

[0004] To overcome the problems existing in related technologies, the present invention provides a smart distribution network method, device, electronic device, and readable storage medium.

[0005] In a first aspect, the present invention provides an intelligent network distribution method applied to a scheduling server, the method comprising:

[0006] Upon receiving a network configuration request from the target device, the system obtains the network configuration identifier assigned by the identifier allocation device based on the current network configuration information stored in the scheduling server and preset allocation rules; the network configuration identifier includes the target server identifier and the target port identifier.

[0007] Based on the port identifier information of the target server corresponding to the target server identifier, determine the port status corresponding to the target port identifier;

[0008] If the port status is available, the target port identifier and the target server identifier are sent to the target device; the target server identifier and the target port identifier are used by the target device to complete network configuration.

[0009] Optionally, the identification allocation device allocates a network identification based on the current network information stored by the scheduling server and preset allocation rules, including:

[0010] The current network allocation information stored by the scheduling server is sent to the identifier allocation device; the current network allocation information includes the latest server allocation information and the latest port allocation information.

[0011] Obtain the network distribution identifier assigned by the identifier allocation device; the network distribution identifier includes the target server identifier and the target port identifier determined by the identifier allocation device based on the latest server allocation information and the latest port allocation information, according to the identifier incrementing allocation rule.

[0012] Optionally, the method further includes:

[0013] When the port status is unavailable, the first network identifier reassigned by the identifier allocation device is obtained; the first network identifier includes a first server identifier and a first port identifier, and the first server identifier is determined based on the target server identifier according to the first allocation rule.

[0014] Optionally, the method further includes:

[0015] Upon receiving a network configuration request from the target device, if there are idle ports with an idle port allocation status, select the target idle port with the smallest port identifier value from among the idle ports with the smallest server identifier value, and use it as the target port.

[0016] The port identifier and server identifier corresponding to the target port are determined as the target port identifier and the target server identifier.

[0017] Optionally, the method further includes:

[0018] If the target device is the first device, the historical server identifier and historical port identifier are determined based on the historical network configuration information corresponding to the first device; the first device is a reconfiguration device.

[0019] Send the historical server identifier and the historical port identifier to the first device.

[0020] Optionally, the method further includes:

[0021] If the port allocation status corresponding to the historical port identifier is in the allocated state, the operation of obtaining the network identifier allocated by the identifier allocation device based on the current network allocation information stored by the scheduling server and the preset allocation rules is performed.

[0022] Sending the historical server identifier and the historical port identifier to the first device includes:

[0023] If the port allocation status corresponding to the historical port identifier is idle, the historical server identifier and the historical port identifier are sent to the first device.

[0024] Secondly, the present invention provides an intelligent power distribution device applied to a dispatch server, the device comprising:

[0025] The first acquisition module is used to acquire, upon receiving a network allocation request sent by the target device, a network allocation identifier allocated by the identifier allocation device based on the current network allocation information stored in the scheduling server and a preset allocation rule; the network allocation identifier includes a target server identifier and a target port identifier.

[0026] The first determining module is used to determine the port status corresponding to the target port identifier based on the port identifier information of the target server corresponding to the target server identifier;

[0027] The first sending module is used to send the target port identifier and the target server identifier to the target device when the port status is available; the target server identifier and the target port identifier are used by the target device to complete network configuration.

[0028] Optionally, the first acquisition module includes:

[0029] The first sending submodule is used to send the current network allocation information stored by the scheduling server to the identifier allocation device; the current network allocation information includes the latest server allocation information and the latest port allocation information;

[0030] The first acquisition submodule is used to acquire the network distribution identifier assigned by the identifier allocation device; the network distribution identifier includes the target server identifier and the target port identifier determined by the identifier allocation device based on the latest server allocation information and the latest port allocation information, according to the identifier incrementing allocation rule.

[0031] Optionally, the device may further include:

[0032] The second acquisition module is used to acquire the first network identifier reassigned by the identifier allocation device when the port status is unavailable; the first network identifier includes a first server identifier and a first port identifier, and the first server identifier is determined based on the target server identifier according to the first allocation rule.

[0033] Optionally, the device may further include:

[0034] The first selection module is used to select the target free port with the smallest port identifier value from the free ports with the smallest port identifier value when a network configuration request is received from the target device, if there are free ports with the port allocation status of free.

[0035] The second determining module is used to determine the port identifier and server identifier corresponding to the target port as the target port identifier and the target server identifier.

[0036] Optionally, the device may further include:

[0037] The third determining module is used to determine the historical server identifier and the historical port identifier based on the historical network configuration information corresponding to the first device when the target device is the first device; the first device is a reconfiguration device.

[0038] The second sending module is used to send the historical server identifier and the historical port identifier to the first device.

[0039] Optionally, the device may further include:

[0040] The third acquisition module is used to perform the operation of the acquisition identifier allocation device based on the current network allocation information stored by the scheduling server and the preset allocation rules when the port allocation status corresponding to the historical port identifier is in the allocated state.

[0041] The second transmitting module includes:

[0042] The second sending submodule is used to send the historical server identifier and the historical port identifier to the first device when the port allocation status corresponding to the historical port identifier is idle.

[0043] Thirdly, the present invention provides an electronic device comprising: a processor, a memory, and a computer program stored in the memory and executable on the processor, characterized in that the processor, when executing the program, implements the intelligent distribution network method as described in any one of the first aspects above.

[0044] Fourthly, the present invention provides a readable storage medium that, when the instructions in the storage medium are executed by a processor of an electronic device, enables the electronic device to perform the steps of the smart distribution method as described in any of the embodiments of the first aspect above.

[0045] In this embodiment of the invention, upon receiving a network configuration request from a target device, a network configuration identifier allocated by an identifier allocation device based on the current network configuration information stored in the scheduling server and preset allocation rules is obtained. The network configuration identifier includes a target server identifier and a target port identifier. Based on the port identifier information of the target server corresponding to the target server identifier, the port status corresponding to the target port identifier is determined. If the port status is available, the target port identifier and the target server identifier are sent to the target device. The target server identifier and the target port identifier are used by the target device to complete the network configuration. In this way, intelligent network configuration can be achieved directly when the port status in the network configuration identifier allocated by the identifier allocation device is available, based on the current network configuration information. The identifier allocation device rationally allocates servers and ports based on the current network configuration information, eliminating the need to poll and traverse server ports to find idle ports. Based on the current network configuration information, the required servers and ports for the target device can be selected quickly and flexibly, enhancing the flexibility and adaptability of the configuration and saving network configuration time and efficiency. Attached Figure Description

[0046] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0047] Figure 1 This is a flowchart illustrating the steps of an intelligent power distribution method provided in an embodiment of the present invention;

[0048] Figure 2 This is a flowchart illustrating the specific steps of an intelligent power distribution network method provided in an embodiment of the present invention;

[0049] Figure 3 This is a structural diagram of an intelligent power distribution network device provided in an embodiment of the present invention;

[0050] Figure 4 This is a structural diagram of an electronic device provided in an embodiment of the present invention. Detailed Implementation

[0051] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0052] Figure 1This is a flowchart illustrating the steps of an intelligent network distribution method provided in an embodiment of the present invention, applied to a scheduling server in an intelligent network distribution system. A scheduling server is a server used to manage and schedule network resources. In a device network distribution scenario, the scheduling server is mainly responsible for coordinating and managing network resources such as servers and ports, and allocating them to various devices as needed. The intelligent network distribution system also includes multiple servers (device servers) and an identifier allocation device. Each server contains multiple ports, and the number of ports corresponding to each server can be the same or different. A unique server identifier and port identifier are set for each server and each port. The server identifier and port identifier can be distributed IDs, i.e., the server identifier increments in a preset order, and the port identifier increments in a preset order. For example, three servers can be assigned server identifiers as Server 1, Server 2, and Server 3. Correspondingly, assuming each server contains two ports, the port identifiers can be set as follows: Server 1 contains port 1 and port 2, Server 2 contains port 1 and port 2, and Server 3 contains port 1 and port 2. The identifier allocation device can be a distributed ID generator, used to allocate network distribution information based on preset allocation rules.

[0053] like Figure 1 As shown, the method may include:

[0054] Step 101: Upon receiving a network configuration request from the target device, obtain the network configuration identifier assigned by the identifier allocation device based on the current network configuration information stored in the scheduling server and the preset allocation rules; the network configuration identifier includes the target server identifier and the target port identifier.

[0055] In this embodiment of the invention, when a target device needs to perform network configuration, it connects to a scheduling server. A network configuration request is sent to the scheduling server. Upon receiving the request, the scheduling server sends an identifier allocation request to an identifier allocation device and sends the current network configuration information stored in the scheduling server to the identifier allocation device. The current network configuration information may include the latest server allocation information and the latest port allocation information. Each time the identifier allocation device allocates a network configuration identifier to any device, it records the allocated identifier (including the server identifier and port identifier) ​​and updates the current network configuration information. Accordingly, the latest server allocation information includes the server identifier corresponding to the device when it successfully configured the network based on the previously allocated network configuration information. The latest port allocation information includes the port identifier corresponding to the device when it successfully configured the network based on the previously allocated network configuration information.

[0056] Upon receiving a first identifier allocation request, the identifier allocation device generates a network identifier based on the current network allocation information and according to a preset allocation rule. This network identifier includes a target server identifier and a target port identifier. The preset allocation rule can be an incrementing identifier allocation rule. Specifically, the preset allocation rule may include determining the latest server identifier in the latest server allocation information as the target server identifier, and continuously incrementing the latest port identifier in the latest port allocation information by a preset increment to obtain the target port identifier. Based on the latest server allocation information and the latest port allocation information in the current network allocation information, and leveraging the incrementing characteristic of distributed IDs, the target server identifier and target port identifier are determined according to the identifier incrementing allocation rule, serving as the network identifier for this identifier allocation request. Specifically, upon receiving the first identifier allocation request, the latest server identifier in the latest server allocation information can be determined as the target server identifier, and the latest port identifier in the latest port allocation information can be continuously incremented (e.g., the preset increment can be 1) to determine the target port identifier. The target server identifier and the target port identifier are then concatenated to determine the network identifier.

[0057] Step 102: Based on the port identifier information of the target server corresponding to the target server identifier, determine the port status corresponding to the target port identifier.

[0058] In this embodiment of the invention, upon receiving a network distribution identifier, the scheduling server determines the target server corresponding to the target server identifier and obtains the port identifier information corresponding to the target server stored in the scheduling server. Based on the port identifier information, the port status of the target port is determined. The port identifier information may include the port identifiers of each port corresponding to the target server and the actual port allocation status of each port. Based on the port identifiers of each port, it is determined whether the target port identifier exists and the port allocation status corresponding to the target port identifier is determined, thus obtaining the port status corresponding to the target port identifier. When the identifier allocation device allocates network distribution identifiers based on an identifier incrementing rule, it often simply obtains the target port identifier by sequentially incrementing the latest port identifier in the latest port allocation information. However, this target port identifier may not exist; that is, the target server corresponding to the target server identifier may not contain a port identified by that target port identifier. Therefore, it is necessary to determine whether the port identifier information corresponding to the target server contains the target port identifier based on the target server's port identifier information to determine whether the target port identifier exists. Furthermore, the port allocation status corresponding to the target port identifier can be determined based on the actual port allocation status of each port. The port allocation status can include allocated, unallocated, and idle. An allocated port indicates that the port has been assigned to a device for network configuration and is currently being used by the device; an unallocated port indicates that the port has not been assigned to a device for network configuration and is not being used by the device; and an idle port indicates that the port has been assigned to a device for network configuration but is currently unused. When a target port identifier exists and its corresponding port allocation status is idle or unallocated, the port status is determined to be available. When a target port identifier does not exist, or when a target port identifier exists but its corresponding port allocation status is allocated, the port status is determined to be unavailable.

[0059] Step 103: If the port status is available, send the target port identifier and the target server identifier to the target device; the target server identifier and the target port identifier are used by the target device to complete network configuration.

[0060] In this embodiment of the invention, when the port status is available, it indicates that the target port corresponding to the target port identifier and the target server corresponding to the target server identifier can be assigned to the target device. Therefore, the target port identifier and the target server identifier are sent to the target device. After receiving the target port identifier and the target server identifier, the target device will complete the network configuration with the target server and the target port based on the target port identifier and the target server identifier.

[0061] In summary, in this embodiment of the invention, upon receiving a network configuration request from a target device, a network configuration identifier allocated by the identifier allocation device based on the current network configuration information stored by the scheduling server and preset allocation rules is obtained. The network configuration identifier includes a target server identifier and a target port identifier. Based on the port identifier information of the target server corresponding to the target server identifier, the port status corresponding to the target port identifier is determined. If the port status is available, the target port identifier and the target server identifier are sent to the target device. The target server identifier and the target port identifier are used by the target device to complete the network configuration. In this way, intelligent network configuration can be achieved directly when the port status in the network configuration identifier allocated by the identifier allocation device is available, based on the current network configuration information. The identifier allocation device rationally allocates servers and ports based on the current network configuration information, eliminating the need to poll and traverse server ports to find idle ports. Based on the current network configuration information, the required servers and ports for the target device can be selected quickly and flexibly, enhancing the flexibility and adaptability of the configuration and saving network configuration time and efficiency.

[0062] Furthermore, the intelligent network distribution method of this invention can simplify and optimize the network distribution process of devices, and reduce user waiting time and operational complexity.

[0063] Optionally, step 101 may include the following steps:

[0064] Step 301: Send the current network allocation information stored by the scheduling server to the identifier allocation device; the current network allocation information includes the latest server allocation information and the latest port allocation information.

[0065] In this embodiment of the invention, the scheduling server can obtain the stored current network configuration information and send the current network configuration information and a first identifier allocation request to the identifier allocation device. The current network configuration information includes the latest server allocation information and the latest port allocation information. The scheduling server is configured with a counter, which records the port identifier as the latest port allocation information each time a network configuration based on the identifier allocation device is successfully established. Correspondingly, the server identifier is also recorded as the latest server allocation information each time a network configuration based on the identifier allocation device is successfully established.

[0066] Step 302: Obtain the network identifier assigned by the identifier allocation device; the network identifier includes the target server identifier and the target port identifier determined by the identifier allocation device based on the latest server allocation information and the latest port allocation information, according to the identifier incrementing allocation rule.

[0067] In this embodiment of the invention, upon receiving a first identifier allocation request, the identifier allocation device determines the target server identifier and the target port identifier based on the latest server allocation information and the latest port allocation information, according to an incrementing identifier allocation rule, as the network allocation identifier. The scheduling server obtains the network allocation identifier sent by the identifier allocation device. Specifically, the latest server identifier in the latest server allocation information can be determined as the target server identifier, and the latest port identifier in the latest port allocation information can be sequentially incremented (for example, the preset increment can be 1) to determine the target port identifier. The target server identifier and the target port identifier are concatenated to determine the network allocation identifier. For example, assuming the latest server allocation information is server 1 and the latest port allocation information is port 3, the network allocation identifier generated by the identifier allocation device can include the target server identifier as server 1 and the target port identifier as port 4. In this way, servers and ports can be allocated sequentially according to the incrementing characteristics of distributed IDs, making resource allocation more organized and avoiding resource allocation chaos.

[0068] Optionally, embodiments of the present invention may include the following steps:

[0069] Step 201: When the port status is unavailable, obtain the first network identifier reassigned by the identifier allocation device; the first network identifier includes a first server identifier and a first port identifier, and the first server identifier is determined based on the target server identifier according to the first allocation rule.

[0070] In this embodiment of the invention, when a port is in an unavailable state, the scheduling server sends a second identifier allocation request to the identifier allocation device. Upon receiving the second identifier allocation request, the identifier allocation device reallocates a first network identifier based on a first allocation rule and the current network information. The first network identifier includes a first server identifier and a first port identifier. The first server identifier is determined based on the target server identifier according to the first allocation rule. The first allocation rule may include sequentially incrementing the latest server identifier in the latest server allocation information (since an identifier allocation and server identifier recording were performed in step 101, the latest server identifier is the target server identifier) ​​to obtain the first server identifier, and determining the first port identifier of the first server corresponding to the first server identifier as the first port identifier. In other words, the first server identifier is sequentially incremented relative to the target server identifier, and the first port identifier can be the first port identifier corresponding to the first server.

[0071] After obtaining the first network configuration identifier, the first server identifier and the first port identifier are concatenated to determine the first network configuration identifier. Based on the port identifier information of the first server corresponding to the first server identifier, the port status corresponding to the first port identifier is determined. If the port status is available, the first port identifier and the first target server identifier are sent to the target device. The first server identifier and the first port identifier are used by the target device to complete the network configuration.

[0072] For example, assume that server 1 and server 2 each contain two ports: port 1 and port 2. The latest server allocation information in the current network configuration information is for server 1, and the latest port allocation information is for port 2 (indicating that ports 1 and 2 in server 1 have been allocated). Then, the target server identifier allocated by the identifier allocation device based on the preset allocation rules for the first time is server 1, and the target port identifier is port 3. Based on the port identifier information (port 1 and port 2) of the target server (server 1), it is determined that server 1 does not have port 3. Therefore, the port status corresponding to the target port identifier can be determined to be unavailable. Then, the scheduling server requests the identifier allocation device to reassign the first network configuration identifier, including the first server identifier server 2 and the first port identifier port 1. Based on the port identifier information (port 1 and port 2) of the first server (server 2), it is determined that the port status corresponding to the first port identifier is available. Then, the first server identifier server 2 and the first port identifier port 1 are sent to the target device.

[0073] For example, when performing intelligent network configuration based on the embodiments of the present invention, assuming that each server has two ports, in the absence of any devices being decommissioned, the order of the target server identifier and target port identifier for intelligent network configuration to 5 devices can be: Server 1 port 1, Server 1 port 2, Server 2 port 1, Server 2 port 2, Server 3 port 1.

[0074] In this embodiment of the invention, when the port status is unavailable, the first network configuration identifier is reassigned by the identifier allocation device. This ensures that each device can obtain an independent port configuration based on the sequential allocation of servers and ports, thus avoiding the waste of network resources caused by chaotic network configuration order.

[0075] Optionally, embodiments of the present invention may include the following steps:

[0076] Step 401: Upon receiving a network configuration request from the target device, if there are idle ports with an idle port allocation status, select the target idle port with the smallest port identifier value from the idle ports with the smallest server identifier value as the target port.

[0077] Step 402: Determine the port identifier and server identifier corresponding to the target port as the target port identifier and the target server identifier.

[0078] In this embodiment of the invention, after the intelligent power distribution network system has been operating stably for a period of time, some devices may be decommissioned. This means that the servers and ports associated with these devices change from occupied to unoccupied. When a device decommissions, the scheduling server records the device identifier and historical power distribution information corresponding to that device. The historical power distribution information may include the server identifier and port identifier originally assigned to the decommissioned device. Simultaneously, the scheduling server can also record the port status connected to the decommissioned device as idle.

[0079] When the scheduling server receives a network configuration request from the target device, if there are idle ports with an idle port allocation status, it can directly determine the idle port with the smallest server identifier value among all idle ports. Then, it selects the target idle port with the smallest port identifier value from among the idle ports with the smallest server identifier value and designates this target idle port as the target port. The server identifier corresponding to the server where the target port is located is determined as the target server identifier, and the port identifier corresponding to the target port is determined as the target port identifier. For example, assuming that the server identifier and port identifier corresponding to the idle ports with an idle port allocation status are: server 1 and port 2, server 1 and port 7, server 3 and port 1, and server 5 and port 4, then server 1 and port 2 can be sent to the target device as the target server identifier and the target port identifier, respectively.

[0080] In this embodiment of the invention, idle ports can be allocated preferentially when they exist. This makes full use of server ports that have been allocated but are in an idle state, without the need to interact with the scheduling server, thereby further improving the network configuration speed and efficiency.

[0081] Optionally, embodiments of the present invention include the following steps:

[0082] Step 501: If the target device is the first device, determine the historical server identifier and historical port identifier based on the historical network configuration information corresponding to the first device; the first device is a reconfiguration device.

[0083] In this embodiment of the invention, when the target device is a first device, the historical network configuration information corresponding to the first device stored in the scheduling server is obtained based on the device identifier of the first device. Based on the historical network configuration information corresponding to the first device, the historical server identifier and the historical port identifier are determined. Here, the first device is a reconfigured network device; that is, when the first device is decommissioned, the scheduling server records the device identifier and historical network configuration information of the first device. The historical network configuration information may include the server identifier and port identifier originally assigned to the decommissioned device. When the first device is reconfigured, network configuration can be performed based on the servers and ports where the first device has established connections, i.e., the historical server corresponding to the historical server identifier and the historical port corresponding to the historical port identifier.

[0084] Step 502: Send the historical server identifier and the historical port identifier to the first device.

[0085] Optionally, step 502 may include the following steps:

[0086] Step 601: If the port allocation status corresponding to the historical port identifier is idle, send the historical server identifier and the historical port identifier to the first device.

[0087] In this embodiment of the invention, after determining the historical server identifier and the historical port identifier, it is necessary to determine whether the historical port corresponding to the historical port identifier is occupied, that is, to determine whether the port allocation status of the historical port is idle. Based on the port allocation status of each port recorded in the scheduling server, the port allocation status of the historical port corresponding to the historical port identifier is determined. If the port allocation status corresponding to the historical port identifier is idle, it indicates that the historical port is not occupied, and the historical server identifier and the historical port identifier can be sent to the first device.

[0088] Accordingly, embodiments of the present invention may include the following steps:

[0089] Step 602: If the port allocation status corresponding to the historical port identifier is in the allocated state, perform the operation of obtaining the network identifier allocated by the identifier allocation device based on the current network allocation information stored by the scheduling server and the preset allocation rules.

[0090] In this embodiment of the invention, when the port allocation status corresponding to the historical port identifier is in the allocated state, it indicates that the server and port originally connected to the first device have been occupied. In this case, the method of step 101 can be directly executed to reconfigure the network by reconfiguring the network allocation information through the identifier allocation device.

[0091] In one possible implementation, if the port allocation status corresponding to the historical port identifier is in the allocated state, it can be first determined whether there is an idle port with an idle allocation status. If there is, the method of steps 401-402 can be executed directly. If there is not, the method of steps 101-103 can be executed.

[0092] In this embodiment of the invention, for devices undergoing reconfiguration, they can continue to use the previously assigned servers and ports during the reconfiguration process. This maintains their connection status and related settings, ensuring the stability and continuity of device connections and saving configuration time to some extent. Furthermore, if previously assigned servers and ports are already occupied, configuration can be performed using a method that identifies the device's configuration information, improving the flexibility of the configuration process and ensuring that the device can perform configuration normally.

[0093] For example, Figure 2 A flowchart illustrating the specific steps of a smart distribution network method is shown, such as... Figure 2 As shown, when the scheduling server receives a network configuration request from the target device, it begins intelligent network configuration. If the target device is not yet configured, it first checks if there is an idle port with an idle allocation status. If so, it selects the idle port with the smallest port identifier value from the idle ports with the smallest server identifier value as the target port, and sends the corresponding port identifier and server identifier to the target device. If not, the scheduling server obtains the network configuration identifier sent by the identifier allocation device and checks the port status corresponding to the target port identifier in the network configuration identifier. If the port status is available, it sends the target server identifier and target port identifier from the network configuration identifier to the target device. If the port status is unavailable, it obtains the first network configuration identifier reassigned by the identifier allocation device. If the port status corresponding to the first port in the first network configuration identifier is available, it sends the first server identifier and first port identifier from the first network configuration identifier to the target device. If the target device is a reconfigured network device, the historical server identifier and historical port identifier are determined based on the historical network configuration information corresponding to the target device. If the port allocation status corresponding to the historical port identifier is idle, the historical server identifier and historical port identifier are sent to the target device. If the port allocation status corresponding to the historical port identifier is allocated, the step of "determining whether there is an idle port with an idle port allocation status" is executed.

[0094] Figure 3 This is a schematic diagram of the structure of an intelligent power distribution device provided in an embodiment of the present invention, applied to a scheduling server. For example... Figure 3 As shown, the device may specifically include:

[0095] The first acquisition module 701 is used to acquire, upon receiving a network allocation request sent by the target device, a network allocation identifier allocated by the identifier allocation device based on the current network allocation information stored in the scheduling server and a preset allocation rule; the network allocation identifier includes a target server identifier and a target port identifier.

[0096] The first determining module 702 is used to determine the port status corresponding to the target port identifier based on the port identifier information of the target server corresponding to the target server identifier;

[0097] The first sending module 703 is used to send the target port identifier and the target server identifier to the target device when the port status is available; the target server identifier and the target port identifier are used by the target device to complete network configuration.

[0098] This invention provides an intelligent network distribution device. Upon receiving a network distribution request from a target device, it acquires a network distribution identifier allocated by an identifier allocation device based on the current network distribution information stored in a scheduling server and preset allocation rules. The network distribution identifier includes a target server identifier and a target port identifier. Based on the port identifier information of the target server corresponding to the target server identifier, the port status corresponding to the target port identifier is determined. If the port status is available, the target port identifier and the target server identifier are sent to the target device. The target server identifier and the target port identifier are used by the target device to complete the network distribution. In this way, intelligent network distribution can be achieved directly when the port status in the network distribution identifier allocated by the identifier allocation device is available, based on the current network distribution information. The identifier allocation device rationally allocates servers and ports based on the current network distribution information, eliminating the need to poll and traverse server ports to find idle ports. According to the current network distribution information, the device can quickly and flexibly select the servers and ports required by the target device, enhancing the flexibility and adaptability of the configuration, saving network distribution time and efficiency.

[0099] Optionally, the first acquisition module 701 includes:

[0100] The first sending submodule is used to send the current network allocation information stored by the scheduling server to the identifier allocation device; the current network allocation information includes the latest server allocation information and the latest port allocation information;

[0101] The first acquisition submodule is used to acquire the network distribution identifier assigned by the identifier allocation device; the network distribution identifier includes the target server identifier and the target port identifier determined by the identifier allocation device based on the latest server allocation information and the latest port allocation information, according to the identifier incrementing allocation rule.

[0102] Optionally, the device may further include:

[0103] The second acquisition module is used to acquire the first network identifier reassigned by the identifier allocation device when the port status is unavailable; the first network identifier includes a first server identifier and a first port identifier, and the first server identifier is determined based on the target server identifier according to the first allocation rule.

[0104] Optionally, the device may further include:

[0105] The first selection module is used to select the target free port with the smallest port identifier value from the free ports with the smallest port identifier value when a network configuration request is received from the target device, if there are free ports with the port allocation status of free.

[0106] The second determining module is used to determine the port identifier and server identifier corresponding to the target port as the target port identifier and the target server identifier.

[0107] Optionally, the device may further include:

[0108] The third determining module is used to determine the historical server identifier and the historical port identifier based on the historical network configuration information corresponding to the first device when the target device is the first device; the first device is a reconfiguration device.

[0109] The second sending module is used to send the historical server identifier and the historical port identifier to the first device.

[0110] Optionally, the device may further include:

[0111] The third acquisition module is used to perform the operation of the acquisition identifier allocation device based on the current network allocation information stored by the scheduling server and the preset allocation rules when the port allocation status corresponding to the historical port identifier is in the allocated state.

[0112] The second transmitting module includes:

[0113] The second sending submodule is used to send the historical server identifier and the historical port identifier to the first device when the port allocation status corresponding to the historical port identifier is idle.

[0114] The present invention also provides an electronic device, see [link to relevant documentation]. Figure 4It includes: a processor 801, a memory 802, and a computer program 8021 stored in the memory and executable on the processor. When the processor executes the program, it implements the intelligent distribution network method of the foregoing embodiments.

[0115] The present invention also provides a readable storage medium, wherein when the instructions in the storage medium are executed by the processor of an electronic device, the electronic device is able to execute the smart distribution network method of the foregoing embodiments.

[0116] As the device embodiment is basically similar to the method embodiment, the description is relatively simple, and relevant parts can be found in the description of the method embodiment.

[0117] The algorithms and displays provided herein are not inherently related to any particular computer, virtual system, or other device. Various general-purpose systems can also be used in conjunction with the teachings herein. The required structure for constructing such systems is apparent from the above description. Furthermore, this invention is not directed to any particular programming language. It should be understood that the contents of the invention described herein can be implemented using various programming languages, and the above description of specific languages ​​is for the purpose of disclosing the best mode of implementation of the invention.

[0118] Numerous specific details are set forth in the specification provided herein. However, it will be understood that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures, and techniques have not been shown in detail so as not to obscure the understanding of this specification.

[0119] Similarly, it should be understood that, in order to simplify the invention and aid in understanding one or more of the various inventive aspects, in the above description of exemplary embodiments of the invention, various features of the invention are sometimes grouped together in a single embodiment, figure, or description thereof. However, this disclosure should not be construed as reflecting an intention that the claimed invention requires more features than are expressly recited in each claim. Rather, as reflected in the following claims, inventive aspects lie in fewer than all features of a single foregoing disclosed embodiment. Therefore, the claims following the detailed description are hereby expressly incorporated into this detailed description, wherein each claim itself is a separate embodiment of the invention.

[0120] Those skilled in the art will understand that modules in the device of the embodiments can be adaptively changed and placed in one or more devices different from that embodiment. Modules, units, or components in the embodiments can be combined into a single module, unit, or component, and further, they can be divided into multiple sub-modules, sub-units, or sub-components. Except where at least some of such features and / or processes or units are mutually exclusive, any combination can be used to combine all features disclosed in this specification (including the accompanying claims, abstract, and drawings) and all processes or units of any method or device so disclosed. Unless expressly stated otherwise, each feature disclosed in this specification (including the accompanying claims, abstract, and drawings) may be replaced by an alternative feature that serves the same, equivalent, or similar purpose.

[0121] The various component embodiments of the present invention can be implemented in hardware, or as software modules running on one or more processors, or a combination thereof. Those skilled in the art will understand that microprocessors or digital signal processors (DSPs) can be used in practice to implement some or all of the functions of some or all of the components in the sorting device according to the present invention. The present invention can also be implemented as a device or apparatus program for performing part or all of the methods described herein. Such a program implementing the present invention can be stored on a computer-readable medium, or can be in the form of one or more signals. Such signals can be downloaded from an Internet website, provided on a carrier signal, or provided in any other form.

[0122] It should be noted that the above embodiments are illustrative of the invention and not restrictive, and that those skilled in the art can devise alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses should not be construed as limiting the claims. The word "comprising" does not exclude the presence of elements or steps not listed in the claims. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention can be implemented by means of hardware comprising several different elements and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by the same item of hardware. The use of the words first, second, and third, etc., does not indicate any order. These words can be interpreted as names.

[0123] Those skilled in the art will understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.

[0124] It should be noted that all actions involving the acquisition of signals, information, or data in this application are carried out in compliance with the relevant data protection laws and policies of the country where the application is located, and with the authorization granted by the owner of the relevant device.

[0125] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of the present invention should be included within the protection scope of the present invention.

[0126] The above description is merely a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the technical scope disclosed in the present invention should be included within the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.

Claims

1. A smart distribution network method, characterized in that, Applied to a scheduling server, the method includes: Upon receiving a network configuration request from the target device, the system obtains the network configuration identifier assigned by the identifier allocation device based on the current network configuration information stored in the scheduling server and preset allocation rules; the network configuration identifier includes the target server identifier and the target port identifier. Based on the port identifier information of the target server corresponding to the target server identifier, determine the port status corresponding to the target port identifier; If the port status is available, the target port identifier and the target server identifier are sent to the target device; the target server identifier and the target port identifier are used by the target device to complete network configuration. When the port status is unavailable, the first network identifier reassigned by the identifier allocation device is obtained; the first network identifier includes a first server identifier and a first port identifier, and the first server identifier is determined based on the target server identifier according to a first allocation rule; the first allocation rule includes sequentially incrementing the latest server identifier in the latest server allocation information to obtain the first server identifier.

2. The method according to claim 1, characterized in that, The identification allocation device allocates network identifications based on the current network distribution information stored by the scheduling server and preset allocation rules, including: The current network allocation information stored by the scheduling server is sent to the identifier allocation device; the current network allocation information includes the latest server allocation information and the latest port allocation information. Obtain the network distribution identifier assigned by the identifier allocation device; the network distribution identifier includes the target server identifier and the target port identifier determined by the identifier allocation device based on the latest server allocation information and the latest port allocation information, according to the identifier incrementing allocation rule.

3. The method according to claim 1, characterized in that, The method further includes: Upon receiving a network configuration request from the target device, if there are idle ports with an idle port allocation status, select the target idle port with the smallest port identifier value from among the idle ports with the smallest server identifier value, and use it as the target port. The port identifier and server identifier corresponding to the target port are determined as the target port identifier and the target server identifier.

4. The method according to claim 1, characterized in that, The method further includes: If the target device is the first device, the historical server identifier and historical port identifier are determined based on the historical network configuration information corresponding to the first device; the first device is a reconfiguration device. Send the historical server identifier and the historical port identifier to the first device.

5. The method according to claim 4, characterized in that, The method further includes: If the port allocation status corresponding to the historical port identifier is in the allocated state, the operation of obtaining the network identifier allocated by the identifier allocation device based on the current network allocation information stored by the scheduling server and the preset allocation rules is performed. Sending the historical server identifier and the historical port identifier to the first device includes: If the port allocation status corresponding to the historical port identifier is idle, the historical server identifier and the historical port identifier are sent to the first device.

6. A smart distribution network device, characterized in that, The device, applied to a scheduling server, includes: The first acquisition module is used to acquire, upon receiving a network allocation request sent by the target device, a network allocation device that allocates a network identifier based on the current network allocation information stored in the scheduling server and a preset allocation rule; the network allocation identifier includes a target server identifier and a target port identifier. The first determining module is used to determine the port status corresponding to the target port identifier based on the port identifier information of the target server corresponding to the target server identifier; The first sending module is configured to send the target port identifier and the target server identifier to the target device when the port status is available; the target server identifier and the target port identifier are used by the target device to complete network configuration. The second acquisition module is used to acquire the first network identifier reassigned by the identifier allocation device when the port status is unavailable; the first network identifier includes a first server identifier and a first port identifier, and the first server identifier is determined based on the target server identifier according to a first allocation rule; the first allocation rule includes continuously incrementing the latest server identifier in the latest server allocation information to obtain the first server identifier.

7. The apparatus according to claim 6, characterized in that, The first acquisition module includes: The first sending submodule is used to send the current network allocation information stored by the scheduling server to the identifier allocation device; the current network allocation information includes the latest server allocation information and the latest port allocation information; The first acquisition submodule is used to acquire the network distribution identifier assigned by the identifier allocation device; the network distribution identifier includes the target server identifier and the target port identifier determined by the identifier allocation device based on the latest server allocation information and the latest port allocation information, according to the identifier incrementing allocation rule.

8. An electronic device, characterized in that, include: A processor, a memory, and a computer program stored in the memory and executable on the processor, wherein the processor, when executing the program, implements the smart distribution network method as described in any one of claims 1-5.

9. A readable storage medium, characterized in that, When the instructions in the storage medium are executed by the processor of the electronic device, the electronic device is able to perform the smart distribution network method according to any one of claims 1-5.

Citation Information

Patent Citations

  • Internet of Things service method and system based on service discovery

    CN116866315A