Network node access method and device, computer readable storage medium, and electronic device
By determining the required service resources during network node access and checking whether the available service resources are met, the problem of insufficient bandwidth caused by excessive node access to the node is solved, and stable access and service processing of new node devices are achieved.
Patent Information
- Application Number
- CN202211466849.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-22
- Publication Date
- 2025-02-18
- Estimated Expiration
- 2042-11-22
AI Technical Summary
When the prior art adds new node devices, it causes a certain node to access too many devices and insufficient bandwidth, resulting in equipment disconnection or data packet loss during data transmission.
When receiving network access requests, the required service resources required to access the network are determined based on the device type and services of the new node device. Only when the available service resources of this node meet the required service resources will it be established Connect to allow new node devices to access the network.
After the new node equipment is connected to the network, the service resources required for business processing can be fully guaranteed, avoiding disconnection and data loss, and making network resource allocation more reasonable.
Smart Images

Figure CN116192775B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of network communication technology, and in particular to a network node access method and device, a computer-readable storage medium, and an electronic device. Background Art
[0002] With the development of network technology, the scale of the network is growing rapidly, and its role in people's lives is becoming more and more important. All walks of life in society, such as finance, fiscal affairs, manufacturing and other industries, are increasingly dependent on the network. At the same time, the network structure is becoming more and more complex, and multi-node network topology structures are increasingly used in various scenarios.
[0003] A more flexible network structure allows new node devices to be connected to an already established network to achieve network expansion.
[0004] In the process of implementing the embodiments of the present disclosure, it is found that there are at least the following problems in the related art:
[0005] In the prior art, when adding new node devices, the new nodes are often connected directly through existing nodes. This will cause too many devices to be connected to a certain node, and the bandwidth obtained by each access device may not meet the needs of the device, resulting in device disconnection or data packet loss during data transmission.
[0006] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present application, and therefore may include information that does not constitute the prior art known to ordinary technicians in the field. Summary of the invention
[0007] In order to provide a basic understanding of some aspects of the disclosed embodiments, a brief summary is given below. The summary is not an extensive review, nor is it intended to identify key / critical components or delineate the scope of protection of these embodiments, but rather serves as a prelude to the detailed description that follows.
[0008] Embodiments of the present disclosure provide a network node access method and device, a computer-readable storage medium, and an electronic device to improve the stability of a new network node after access.
[0009] In some embodiments, the network node access method includes: receiving a network access request; wherein the network access request is sent by a new node device, and the network access request includes the device type and pending services of the new node device; determining the required service resources required for accessing the network based on the device type and pending services of the new node device; and establishing a connection with the new node device when the available service resources of the current node meet the required service resources, so that the new node device can access the network.
[0010] Optionally, receiving a network access request includes: receiving a network access request sent by the new node device; or receiving a network access request forwarded by a low-level node; wherein the low-level node is communicatively connected with the current node, and the available business resources of the low-level node are less than the available business resources of the current node.
[0011] Optionally, the required service resources include: device role bandwidth and service bandwidth.
[0012] Optionally, determining the required service resources required for accessing the network according to the device type of the new node device and the service to be processed includes: determining the device role bandwidth corresponding to the device type of the new node device based on a preset corresponding relationship; and determining the service bandwidth according to the service to be processed.
[0013] Optionally, the available business resources include device role bandwidth and available business bandwidth; the situation in which the available business resources of the current node meet the required business resources includes: the device role bandwidth of the current node is greater than the device role bandwidth of the new node device; and the available business bandwidth of the current node is greater than the business bandwidth of the new node device.
[0014] Optionally, the method further includes: when the available business resources of the current node do not meet the required business resources, forwarding the network access request to a higher-level node; wherein the higher-level node is communicatively connected with the current node, and the available business resources of the higher-level node are greater than the available business resources of the current node.
[0015] Optionally, before receiving the network access request, the method also includes: acquiring the business resources already allocated to the current node; and sending a receivable signal when the business resources already allocated to the current node are less than a predetermined business resource threshold, so that the new node device sends the network access request after receiving the receivable signal.
[0016] In some embodiments, the network node access method includes: issuing a network access request; the network access request includes the device type of the current node and the pending business; receiving an accessible node fed back by the network side; wherein the available business resources of the accessible node meet the required business resources of the current node, and the required business resources of the current node are determined based on the device type of the current node and the pending business; establishing a connection with the accessible node and accessing the network.
[0017] Optionally, the accessible node fed back by the network side includes: a node that receives the network access request; or a node that receives the network access request by forwarding it through a low-level node; wherein the low-level node is communicatively connected with this node, and the available business resources of the low-level node are less than the available business resources of this node.
[0018] Optionally, when the accessible node fed back by the network side is a node that receives the network access request by forwarding through a low-level node, establishing a connection with the accessible node includes: obtaining the communication signal strength between the node device of this node and the accessible node; when the communication signal strength is greater than a signal strength threshold, sending a connection request to the accessible node; and when the connection is successful, establishing a connection with the accessible node.
[0019] Optionally, the method further includes: establishing a connection with a node that receives the network access request in any of the following situations: the communication signal strength is less than or equal to the signal strength threshold; and the connection with the accessible node fails.
[0020] Optionally, before establishing a connection with the node that receives the network access request, the method further includes: reducing required service resources of the node so that the required service resources of the node are less than available service resources of the node that receives the network access request.
[0021] Optionally, the required business resources include: device role bandwidth and business bandwidth, the available business resources include the device role bandwidth and available business bandwidth of the node receiving the network access request, and reducing the required business resources of this node includes: reducing the device role bandwidth of this node so that the device role bandwidth of this node is less than the device role bandwidth of the node receiving the network access request; reducing the business bandwidth of this node so that the business bandwidth of this node is less than the available business bandwidth of the node receiving the network access request.
[0022] Optionally, after establishing the connection with the accessible node, the method further includes: determining a target application whose required business resources are lower than or equal to the available business resources of the accessible node from multiple applications installed on the node device of the node; and starting the target application.
[0023] In some embodiments, the network node access device includes: a request receiving module, configured to receive a network access request; wherein the network access request is sent by a new node device, and the network access request includes the device type and pending services of the new node device; a demand determination module, configured to determine the required service resources required for accessing the network based on the device type and pending services of the new node device; and a connection module, configured to establish a connection with the new node device when the available service resources of the current node meet the required service resources, so that the new node device can access the network.
[0024] In some embodiments, the network node access device includes: a request sending module, configured to issue a network access request; the network access request includes the device type of the current node and the pending business; a node receiving module, configured to receive the accessible node feedback from the network side; wherein the available business resources of the accessible node meet the required business resources of the current node, and the required business resources of the current node are determined based on the device type of the current node and the pending business; a connection module, configured to establish a connection with the accessible node and access the network.
[0025] The network node access method and device, computer-readable storage medium, and electronic device provided in the embodiments of the present disclosure can achieve the following technical effects:
[0026] Before a new node device is connected, the required business resources of the new node access device are obtained. Only when the available business resources of the current node can meet the required business resources, a connection is established. After the new node device is connected to the network, the business resources required for business processing can be fully guaranteed, avoiding problems such as disconnection and data loss caused by too many devices connected to a node and exceeding the available business resources of the node, making network resource allocation more reasonable.
[0027] The above general description and the following description are exemplary and explanatory only and are not intended to limit the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0029] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0030] Figure 1It is a schematic diagram of the structure of a typical mesh network in the prior art;
[0031] Figure 2 A flowchart of a network node access method provided by an embodiment of the present disclosure;
[0032] Figures 3a to 3d A schematic diagram of four types of node devices provided in an embodiment of the present disclosure;
[0033] Figure 4 A flowchart of another network node access method provided by an embodiment of the present disclosure;
[0034] Figure 5 A flowchart of a network node access method provided by an embodiment of the present disclosure;
[0035] Figure 6 A flowchart of another network node access method provided by an embodiment of the present disclosure;
[0036] Figure 7 A flowchart of a network node access method in a practical application scenario provided by an embodiment of the present disclosure;
[0037] Figure 8 A flowchart of a network node access method in another practical application scenario provided by an embodiment of the present disclosure;
[0038] Fig. 9 A schematic diagram of the structure of a network node access device is provided for an embodiment of the present disclosure;
[0039] Fig.10 A schematic diagram of the structure of a network node access device is provided for an embodiment of the present disclosure;
[0040] Fig.11 A schematic diagram of an electronic device is provided according to an embodiment of the present disclosure. DETAILED DESCRIPTION
[0041] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.
[0042] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0043] The embodiments of the present disclosure provide a network node access method, which can be applied to a multi-node network, and the multi-node network can be, for example, a mesh (multi-hop) network. A mesh network is a new type of wireless communication network architecture. In a mesh network, any node device can act as a router, each node device can send and receive signals, and each node device can communicate directly with one or more node devices, thereby achieving communication over a wider range.
[0044] As the number of mesh network device nodes increases, the number of packets sent and received in the entire network will gradually increase, but the bandwidth of the entire mesh network is limited. Therefore, it is necessary to control the business of each node so that the overall number of packets sent is controlled below the bandwidth.
[0045] In related technologies, new node devices are usually directly connected. However, as the number of node devices continues to increase, the business resources (such as bandwidth) allocated to each device become less and less. As a result, some node devices will be squeezed out of the network, or during data transmission, data packet loss will occur due to insufficient bandwidth, seriously affecting the stability and reliability of the network connection.
[0046] Based on this, the network node access method provided by the embodiment of the present disclosure does not directly connect to the new node device when an existing node in the network receives a new access request, but only connects to the new node device when the available business resources of the existing node can meet the required business resources of the new node device, thereby ensuring stable and efficient communication of the entire mesh network.
[0047] like Figure 1 As shown in FIG. 1 , a typical mesh network structure diagram in the prior art is shown. The new node in the embodiment of the present disclosure is Figure 1 The new node in the embodiment of the present disclosure is the other node other than the new node device. Figure 1Any one of the nodes 1 to N in .
[0048] Combination Figure 2 As shown, a network node access method provided by an embodiment of the present disclosure, the method specifically includes the following steps:
[0049] S202: Receive a network access request.
[0050] The network access request is sent by a new node device, and the network access request includes the device type and the service to be processed of the new node device.
[0051] It should be noted that the new node devices in the embodiments of the present disclosure can be divided into four types of nodes according to the binding status and historical access information, such as Figure 3a As shown, the first type of node is a node that has been connected to the network and is an intermediate node or root node of the network, but there are nodes that have not been bound in the node device and the lower-level node devices connected to the node device. Figure 3b As shown in FIG. 1 , the second type of node is a node that has been connected to the network and is an intermediate node or a root node of the network, and the node device and the lower-level node devices connected to the node device have been bound. Figure 3c As shown in , the third type of node is a new node device that has not been connected to the network and has not been bound. Figure 3d As shown, the fourth type of node is a new node device that has not been connected to the network, but the node has been bound before.
[0052] Above Figures 3a to 3d The four types of node devices in the embodiment of the present disclosure can all be the new node devices described in the embodiments of the present disclosure. Specifically, the node devices can be mobile terminals, PCs, servers, routers and other intelligent terminals. The above-mentioned binding refers to the binding of the identification information of the device in the network. The identification information can be used to uniquely identify the device, such as the device's ID, serial number, user name, etc. Binding can also be understood as registration, that is, the identification information of the device is retained in the network through registration. Bound devices do not need to be re-bound after re-accessing the network. Devices that have not been bound need to be bound when they access the network for the first time.
[0053] S204: Determine the required service resources required for accessing the network according to the device type of the new node device and the service to be processed.
[0054] Specifically, the services to be processed include services running on the new node devices, such as various APPs, data sending and receiving tasks, data transfer tasks, etc. running on the new node devices.
[0055] S206: When the available service resources of the current node meet the required service resources, establish a connection with the new node device to enable the new node device to access the network.
[0056] The available service resources of the node may be understood as the remaining service resources of the node, that is, after the available service resources are allocated, service processing of other nodes connected to the node will not be affected.
[0057] The new node device establishes a connection with the current node, which can be a direct connection or a connection confirmation before the connection, such as judging the communication signal strength or sending a connection request, so as to ensure a successful connection and avoid invalid connections.
[0058] The above-mentioned network node access method provided by the embodiment of the present disclosure obtains the required business resources of the new node access device before the new node device is accessed, and establishes a connection only when the available business resources of the current node can meet the required business resources. After the new node device is connected to the network, the business resources required for business processing can be fully guaranteed, avoiding problems such as disconnection and data loss caused by too many devices connected to a node and exceeding the available business resources of the node, thereby making network resource allocation more reasonable.
[0059] Optionally, before receiving the network access request in the above embodiment, it also includes: obtaining the service resources that have been allocated to the node; when the service resources that have been allocated to the node are less than the predetermined service resource threshold, sending a receivable signal, so that the new node device sends the network access request after receiving the receivable signal. In this way, the nodes that send the signal are all nodes with certain available service resources, avoiding the new node device from sending access requests to nodes without sufficient available service resources multiple times, saving node connection time and improving node connection efficiency.
[0060] Optionally, the receiving of the network access request includes: receiving the network access request sent by the new node device; or receiving the network access request forwarded by a lower-level node; wherein the lower-level node is in communication connection with the current node, and the available business resources of the lower-level node are less than the available business resources of the current node. In this way, when the current node cannot meet the requirements, it does not directly reject the access of the new node device, but forwards the network access request of the new node device to the node of the previous level. The node of the previous level can provide more business resources than the current node, so the available business resources of the node of the previous level are more likely to meet the required business resources. This can further ensure that the new node device successfully accesses the network, and there is no need for the new node device to find a node that can provide more business resources by itself, thereby improving the efficiency of node access.
[0061] Optionally, the required service resources include: device role bandwidth and service bandwidth.
[0062] Specifically, the device role is used to characterize the category of the device. Different devices require different bandwidth levels, and the device role level can be used to reflect the bandwidth range of the current device. For example, if the bandwidth required by a mobile terminal is less than that required by a PC or server, the device role level of the mobile terminal can be set to be lower than that of the PC or server.
[0063] The bandwidth required by various services running on the device is also different. Therefore, the required service resources also include service bandwidth.
[0064] Optionally, determining the required service resources required for accessing the network according to the device type of the new node device and the service to be processed includes: determining the device role bandwidth corresponding to the device type of the new node device based on a preset corresponding relationship; and determining the service bandwidth according to the service to be processed.
[0065] Specifically, the correspondence is the correspondence between the pre-set device role level and the bandwidth. For example, the role level can be set to include three levels, the bandwidth corresponding to the role level of the mobile terminal is 500M, the bandwidth corresponding to the role level of the PC is 800M, and the bandwidth corresponding to the role level of the server is 1G. The above correspondence can be stored on the node device or on a new node device. Of course, in order to save storage space, it can also be stored on the cloud server side. Before establishing a connection, access the server to retrieve the corresponding device role bandwidth.
[0066] Optionally, the available service resources include device role bandwidth and available service bandwidth; the situation where the available service resources of the current node meet the required service resources includes: the device role bandwidth of the current node is greater than the device role bandwidth of the new node device; and the available service bandwidth of the current node is greater than the service bandwidth of the new node device. In this way, the required service resources are divided into device role bandwidth and service bandwidth. When actually connecting, if only the role bandwidth or only the service bandwidth is considered, data transmission failure may occur after the connection is completed. Only when both the device role bandwidth and the service bandwidth are met, the established connection is more stable, further ensuring the reliability and stability of data transmission.
[0067] Optionally, the above method also includes: when the available business resources of the current node do not meet the required business resources, forwarding the network access request to a high-level node; wherein the high-level node is communicatively connected with the current node, and the available business resources of the high-level node are greater than the available business resources of the current node.
[0068] Specifically, the above-mentioned process of judging whether the available service resources meet the required service resources, and if not, forwarding the network access request to the higher-level node is a process of multiple cycles. If a higher-level node that meets the required service resources is found after one execution of judgment and forwarding, then the cycle ends. If not found, it continues to be forwarded to a higher-level node until the cycle stop condition is met. Among them, the cycle stop condition may include: the node currently receiving the forwarded network access request is a root node, or the available service resources of the node currently receiving the forwarded network access request meet the required service resources.
[0069] Combination Figure 4 As shown, another network node access method provided by an embodiment of the present disclosure is applied to an already connected node C in the network, the lower-level node of the already connected node C is node B, and the new node device is node A. The method specifically includes the following steps:
[0070] S402: Node C receives the network access request sent by node A and forwarded by node B.
[0071] S404: Node C determines the device role bandwidth corresponding to the device type of node A based on a preset corresponding relationship.
[0072] S406: Node C determines the service bandwidth of node A according to the service to be processed.
[0073] S408: Node C determines whether the device role bandwidth of the node is greater than the device role bandwidth of node A; and whether the available service bandwidth of the node is greater than the service bandwidth of node A? If yes, execute step S410; otherwise, execute step S412.
[0074] S410: Node C establishes a connection with node A.
[0075] S412: Node C forwards the network access request of node A to node D.
[0076] Node D is a higher-level node than node C. Available service resources of node D are greater than available service resources of node C.
[0077] Furthermore, node D continues to determine whether the available service resources meet the required service resources until the loop stop condition is met.
[0078] In this embodiment, when the device role bandwidth and business bandwidth can meet the needs of node A, node C connects to node A. If not, it continues to forward the request to the higher-level node D. In this way, it not only ensures that the bandwidth requirements of node A are met, but also further ensures that node A can be accessed, thereby improving the stability of new node access.
[0079] Combination Figure 5 As shown, another network node access method provided by an embodiment of the present disclosure is applied to a new node device. The method specifically includes the following steps:
[0080] S502: Send a network access request.
[0081] The network access request includes the device type of the node and the service to be processed;
[0082] S504: Receive the accessible nodes fed back by the network side.
[0083] The available service resources of the accessible node meet the required service resources of the node, and the required service resources of the node are determined according to the device type of the node and the service to be processed;
[0084] S506: Establish a connection with the accessible node and access the network.
[0085] The above-mentioned network node access method provided by the embodiment of the present disclosure first issues a network access request, receives an accessible node whose available service resources can meet the required service resources, and establishes a connection with the accessible node. Since the accessible node can meet the required service resources, the service resources required for service processing after the new node device accesses the network can be fully guaranteed, avoiding problems such as disconnection and data loss caused by too many devices connected to a node and exceeding the available service resources of the node, making the network resource allocation more reasonable.
[0086] Optionally, the accessible nodes fed back by the network side include: a node that receives the network access request; or a node that receives the network access request by forwarding a low-level node; wherein the low-level node is in communication connection with the current node, and the available service resources of the low-level node are less than the available service resources of the current node. In this way, the accessible nodes are not limited to the nodes that receive the network access request, but can also be nodes that receive the network access request forwarded by the node that receives the request, so that the new device node can obtain the accessible node by issuing a request once, without the need for the new device node to issue network access requests multiple times by itself, thereby improving access efficiency.
[0087] Optionally, when the accessible node fed back by the network side is a node that receives the network access request by forwarding through a low-level node, establishing a connection with the accessible node includes: obtaining the communication signal strength between the node device of the node and the accessible node; when the communication signal strength is greater than the signal strength threshold, sending a connection request to the accessible node; and when the connection is successful, establishing a connection with the accessible node. In this way, only nodes whose communication signal strength meets the requirements are connected, and no connection is made for nodes that only meet the required business resources but are far away or have obstacles that cause the signal to be weak, thereby ensuring the success rate of the connection and improving the data communication effect after the connection is successful.
[0088] Optionally, the method further includes: establishing a connection with a node that receives the network access request in any of the following situations: the communication signal strength is less than or equal to the signal strength threshold; and the connection with the accessible node fails.
[0089] That is, if the current node cannot establish a connection with a new node device, the new node device is not denied access to the network, but is connected to the new node device through the node that directly receives the network access request.
[0090] Optionally, before establishing a connection with the node that receives the network access request, the method further includes: reducing the required service resources of the node so that the required service resources of the node are less than the available service resources of the node that receives the network access request. In this way, the required service resources of the node are reduced before connecting, rather than directly connecting as in the prior art, which can ensure that some services after the connection can operate normally, avoid the occurrence of disconnection and packet loss, and further ensure the effectiveness and stability of the data connection.
[0091] Optionally, the required business resources include: device role bandwidth and business bandwidth, the available business resources include the device role bandwidth and available business bandwidth of the node receiving the network access request, and reducing the required business resources of this node includes: reducing the device role bandwidth of this node so that the device role bandwidth of this node is less than the device role bandwidth of the node receiving the network access request; reducing the business bandwidth of this node so that the business bandwidth of this node is less than the available business bandwidth of the node receiving the network access request.
[0092] Specifically, some services with high bandwidth requirements may be abandoned, thereby reducing the service bandwidth of the node, or services with low urgency may be abandoned, thereby reducing the service bandwidth of the node. The embodiments of the present disclosure do not limit the specific manner of reducing the service resource requirements of the node.
[0093] Optionally, after establishing the connection with the accessible node, the method further includes: determining a target application whose required business resources are lower than or equal to the available business resources of the accessible node from multiple applications installed on the node device of the node; and starting the target application.
[0094] Furthermore, for Figure 3a and Figure 3c The types of node devices shown can also enter different binding processes while running the target application or before running the target application, so that all devices running in the network are bound devices, which is convenient for subsequent device maintenance and information preservation.
[0095] Combination Figure 6 As shown, another network node access method provided by an embodiment of the present disclosure is described in detail by taking the new node device as node A, the device receiving the network access request as node B, and the high-level node of node B as node C as an example. Figure 6 As shown, the method specifically comprises the following steps:
[0096] S602: Node A sends a network access request.
[0097] S604: Node A receives the accessible nodes fed back by the network side.
[0098] S606: Node A determines that the accessible node is Node B. If yes, execute step S608; otherwise, execute step S610.
[0099] S608: Node A establishes a connection with node B, and node A accesses the network.
[0100] S610: Node A obtains the communication signal strength between itself and node C.
[0101] S612: Node A determines whether the communication signal strength is greater than the signal strength threshold, if so, executes step S614, otherwise, executes step S620.
[0102] S614: Node A sends a connection request to node C.
[0103] S616: Determine whether the connection is successful. If successful, execute step S618; otherwise, execute step S620.
[0104] S618: Node A establishes a connection with node C.
[0105] S620: Node A reduces the required service resources of the node so that the required service resources of the node are less than the available service resources of node B.
[0106] S622: Node A establishes a connection with node B.
[0107] S624: Node A determines, from a plurality of applications installed on the node device of the node, a target application whose required service resources are lower than or equal to the available service resources of the accessible node.
[0108] S626: Start the target application.
[0109] For ease of understanding, the following Figure 7 , giving examples to illustrate how new node devices and existing node devices in the network are connected in actual application scenarios. Figure 7 The new node device in the example is node A, and the existing node device is node B. In this embodiment, the device role level and service level of node B are both greater than those of node A. Figure 7 As shown, the method specifically includes:
[0110] S702: Node A sends a network access request to join the network;
[0111] S704: Node B receives the network access request;
[0112] S706: The role level and service level of node A are both lower than those of node B, and node B sends a response message to node A allowing it to join the network;
[0113] The role level may specifically refer to the bandwidth corresponding to the device role, and the service level may specifically refer to the bandwidth required by the service.
[0114] S708: Node A establishes a connection with node B, and starts an application whose role level and service level are lower than those of node B.
[0115] In this embodiment, when node B meets the needs of node A, a direct connection is established. After the connection is established, it can ensure that the original equipment connected to node B is not affected, and can also ensure that the connection of node A is stable and the application runs normally, thereby improving the stability of new node access.
[0116] Combination Figure 8 , the device role level or service level of node B in this embodiment is lower than that of node A, and the device level and service level of node C are both higher than those of node A. Figure 8 As shown, the method specifically includes:
[0117] S802: Node A sends a network access request to join the network;
[0118] S804: Node B receives the network access request;
[0119] S806: The role level or service level of node A is greater than that of node B, and node B forwards the network joining request of node A to node C;
[0120] S808: The role level and service level of node C are both greater than those of node A, and node C sends a response message to node B allowing access to the network;
[0121] S810: Node B receives the response message from node C, and forwards the response message to node A;
[0122] S812: Node A receives a response message sent by node B;
[0123] S814: Node A scans the signal strength between node A and node C and determines whether the signal strength reaches a threshold value. If yes, execute step S816; otherwise, execute step S822;
[0124] S816: Node A sends a connection request to node C;
[0125] S818: After receiving the connection request, whether node C is successfully connected to node A, if yes, execute step S820, otherwise, execute step S822;
[0126] S820: Node A connects to node C and starts an application whose role level and business level are lower than those of node C;
[0127] S822: Node A lowers its role level and service level, connects to node B, and starts an application whose role level and service level are lower than those of node B.
[0128] Combination Fig. 9 As shown, the embodiment of the present disclosure provides a network node access device 900, including a request receiving module 902, a demand determining module 904 and a connection module 906.
[0129] The request receiving module 902 is configured to receive a network access request; wherein the network access request is sent by a new node device, and the network access request includes a device type and a pending service of the new node device;
[0130] The demand determination module 904 is configured to determine the required service resources required for accessing the network according to the device type and the service to be processed of the new node device;
[0131] The connection module 906 is configured to establish a connection with the new node device when the available service resources of the node meet the required service resources, so that the new node device can access the network.
[0132] The above-mentioned node access device provided by the embodiment of the present disclosure obtains the required business resources of the new node access device before accessing the new node device, and establishes a connection only when the available business resources of the current node can meet the required business resources. After the new node device accesses the network, the business resources required for business processing can be fully guaranteed, avoiding problems such as disconnection and data loss caused by too many devices connected to a node and exceeding the available business resources of the node, thereby making network resource allocation more reasonable.
[0133] Optionally, the request receiving module 902 is further configured to: receive a network access request sent by the new node device; or, receive a network access request forwarded by a low-level node; wherein the low-level node is communicated with the current node, and the available business resources of the low-level node are less than the available business resources of the current node.
[0134] Optionally, the required service resources include: device role bandwidth and service bandwidth.
[0135] Optionally, the demand determination module 904 is further configured to: determine the device role bandwidth corresponding to the device type of the new node device based on a preset corresponding relationship; and determine the service bandwidth according to the service to be processed.
[0136] Optionally, the available business resources include device role bandwidth and available business bandwidth; the situation in which the available business resources of the current node meet the required business resources includes: the device role bandwidth of the current node is greater than the device role bandwidth of the new node device; and the available business bandwidth of the current node is greater than the business bandwidth of the new node device.
[0137] Optionally, the device also includes: a forwarding module, configured to forward the network access request to a high-level node when the available business resources of the current node do not meet the required business resources; wherein the high-level node is communicatively connected with the current node, and the available business resources of the high-level node are greater than the available business resources of the current node.
[0138] Optionally, the device also includes: an acquisition module, configured to acquire the business resources already allocated to the node; a signal sending module, configured to send a receivable signal when the business resources already allocated to the node are less than a predetermined business resource threshold, so that the new node device sends the network access request after receiving the receivable signal.
[0139] Combination Fig.10 As shown, the embodiment of the present disclosure provides another network node access device 1000, including a request sending module 1002, a node receiving module 1004 and a connection module 1006. Among them,
[0140] The request sending module 1002 is configured to send a network access request; the network access request includes the device type of the node and the service to be processed;
[0141] The node receiving module 1004 is configured to receive an accessible node fed back by the network side; wherein the available service resources of the accessible node meet the required service resources of the node, and the required service resources of the node are determined according to the device type of the node and the service to be processed;
[0142] The connection module 1006 is configured to establish a connection with the accessible node and access the network.
[0143] Optionally, the accessible node fed back by the network side includes: a node that receives the network access request; or a node that receives the network access request by forwarding it through a low-level node; wherein the low-level node is communicatively connected with this node, and the available business resources of the low-level node are less than the available business resources of this node.
[0144] Optionally, in the case where the accessible node fed back by the network side is a node that receives the network access request by forwarding through a low-level node, the connection module 1006 is further configured to: obtain the communication signal strength between the node device of this node and the accessible node; when the communication signal strength is greater than the signal strength threshold, send a connection request to the accessible node; and when the connection is successful, establish a connection with the accessible node.
[0145] Optionally, the device also includes: a second connection module, configured to establish a connection with the node receiving the network access request in any of the following situations: the communication signal strength is less than or equal to the signal strength threshold; the connection with the accessible node fails.
[0146] Optionally, the device further includes: a resource reduction module configured to reduce the required service resources of the node so that the required service resources of the node are smaller than the available service resources of the node receiving the network access request.
[0147] Optionally, the required business resources include: device role bandwidth and business bandwidth, the available business resources include the device role bandwidth and available business bandwidth of the node receiving the network access request, and the resource reduction module is further configured to: reduce the device role bandwidth of this node so that the device role bandwidth of this node is less than the device role bandwidth of the node receiving the network access request; reduce the business bandwidth of this node so that the business bandwidth of this node is less than the available business bandwidth of the node receiving the network access request.
[0148] Optionally, the device also includes: a target application determination module, configured to determine a target application whose required business resources are lower than or equal to the available business resources of the accessible node from multiple applications installed on the node device of the local node; and a startup module, configured to start the target application.
[0149] Combination Fig.11 As shown, an embodiment of the present disclosure provides an electronic device 1100, including a processor 100 and a memory 101. Optionally, the device may also include a communication interface 102 and a bus 103. The processor 100, the communication interface 102, and the memory 101 may communicate with each other through the bus 103. The communication interface 102 may be used for information transmission. The processor 100 may call the logic instructions in the memory 101 to execute the network node access method of the above embodiment.
[0150] In addition, the logic instructions in the memory 101 described above may be implemented in the form of software functional units and when sold or used as independent products, may be stored in a computer-readable storage medium.
[0151] The memory 101 is a computer-readable storage medium that can be used to store software programs and computer executable programs, such as program instructions / modules corresponding to the method in the embodiment of the present disclosure. The processor 100 executes functional applications and data processing by running the program instructions / modules stored in the memory 101, that is, implementing the network node access method in the above embodiment.
[0152] The memory 101 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and an application required for at least one function; the data storage area may store data created according to the use of the terminal device, etc. In addition, the memory 101 may include a high-speed random access memory and may also include a non-volatile memory.
[0153] An embodiment of the present disclosure provides a computer-readable storage medium storing computer-executable instructions, wherein the computer-executable instructions are configured to execute the above-mentioned network node access method.
[0154] An embodiment of the present disclosure provides a computer program product, which includes a computer program stored on a computer-readable storage medium, and the computer program includes program instructions. When the program instructions are executed by a computer, the computer executes the above-mentioned network node access method.
[0155] The computer-readable storage medium mentioned above may be a transient computer-readable storage medium or a non-transitory computer-readable storage medium.
[0156] The technical solution of the embodiment of the present disclosure can be embodied in the form of a software product, which is stored in a storage medium and includes one or more instructions for enabling a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in the embodiment of the present disclosure. The aforementioned storage medium may be a non-transient storage medium, including: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and other media that can store program codes, or a transient storage medium.
[0157] The above description and the accompanying drawings fully illustrate the embodiments of the present disclosure so that those skilled in the art can practice them. Other embodiments may include structural, logical, electrical, process and other changes. The embodiments represent only possible changes. Unless explicitly required, separate components and functions are optional, and the order of operation may vary. The parts and features of some embodiments may be included in or replace the parts and features of other embodiments. Moreover, the words used in this application are only used to describe the embodiments and are not used to limit the claims. As used in the description of the embodiments and the claims, unless the context clearly indicates, the singular forms of "a", "an" and "the" are intended to include plural forms as well. Similarly, the term "and / or" as used in this application refers to any and all possible combinations of listings containing one or more associated ones. In addition, when used in the present application, the term "comprise" and its variants "comprises" and / or comprising refer to the presence of stated features, wholes, steps, operations, elements, and / or components, but do not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or groups thereof. In the absence of further restrictions, the elements defined by the sentence "comprising a ..." do not exclude the presence of other identical elements in the process, method or device comprising the elements. In this article, each embodiment may focus on the differences from other embodiments, and the same and similar parts between the various embodiments may refer to each other. For the methods, products, etc. disclosed in the embodiments, if they correspond to the method part disclosed in the embodiments, then the relevant parts can refer to the description of the method part.
[0158] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software may depend on the specific application and design constraints of the technical solution. The technicians may use different methods for each specific application to implement the described functions, but such implementations should not be considered to exceed the scope of the embodiments of the present disclosure. The technicians may clearly understand that, for the convenience and simplicity of description, the specific working processes of the systems, devices and units described above may refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here.
[0159] In the embodiments disclosed herein, the disclosed methods and products (including but not limited to devices, equipment, etc.) can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units can be only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the coupling or direct coupling or communication connection between each other shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms. The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to implement this embodiment. In addition, each functional unit in the embodiment of the present disclosure may be integrated in a processing unit, or each unit may exist physically alone, or two or more units may be integrated in one unit.
[0160] The flowchart and block diagram in the accompanying drawings show the possible architecture, function and operation of the system, method and computer program product according to the embodiment of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of the code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. In some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, which can depend on the functions involved. In the description corresponding to the flowchart and the block diagram in the accompanying drawings, the operations or steps corresponding to different boxes can also occur in a different order from the order disclosed in the description, and sometimes there is no specific order between different operations or steps. For example, two consecutive operations or steps can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, which can depend on the functions involved. Each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, may be implemented by a dedicated hardware-based system that performs the specified functions or actions, or may be implemented by a combination of dedicated hardware and computer instructions.
[0161] The above is only a preferred implementation of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.
Claims
1. A network node access method, characterized in that: The method comprises: Receiving a network access request forwarded by a low-level node; wherein the network access request is sent by a new node device, the network access request includes a device type of the new node device and a pending service, the low-level node is in communication connection with the current node, and the available service resources of the low-level node are less than the available service resources of the current node; Determining the required service resources required for accessing the network according to the device type of the new node device and the service to be processed; When the available service resources of the node meet the required service resources, establish a connection with the new node device so that the new node device can access the network; When the available service resources of the node do not meet the required service resources, forwarding the network access request to a higher-level node; The high-level node is in communication connection with the current node, and the available service resources of the high-level node are greater than the available service resources of the current node; The process of forwarding the network access request to a high-level node is a multi-cycle process, and the cycle stop conditions include: the node currently receiving the forwarded network access request is a root node, or the available business resources of the node currently receiving the forwarded network access request meet the required business resources.
2. The method according to claim 1, characterized in that: The required service resources include: device role bandwidth and service bandwidth.
3. The method according to claim 2, characterized in that The available service resources include device role bandwidth and available service bandwidth; the situation in which the available service resources of the node meet the required service resources includes: The device role bandwidth of the current node is greater than the device role bandwidth of the new node device; and The available service bandwidth of the current node is greater than the service bandwidth of the new node device.
4. A network node access method, characterized in that: The method comprises: Sending a network access request; the network access request includes the device type of the node and the service to be processed; An accessible node receiving feedback from the network side; wherein the available service resources of the accessible node meet the required service resources of the node, and the required service resources of the node are determined according to the device type of the node and the service to be processed; Establishing a connection with the accessible node and accessing the network; The accessible nodes fed back by the network side include: A node that receives the network access request by forwarding it through a lower-level node; wherein the lower-level node is in communication with the node, and the available service resources of the lower-level node are less than the available service resources of the node; Wherein, when the available service resources of the current node do not meet the required service resources, forwarding the network access request to a higher-level node; The high-level node is in communication connection with the current node, and the available service resources of the high-level node are greater than the available service resources of the current node; The process of forwarding the network access request to a high-level node is a multi-cycle process, and the cycle stop conditions include: the node currently receiving the forwarded network access request is a root node, or the available business resources of the node currently receiving the forwarded network access request meet the required business resources.
5. The method according to claim 4, characterized in that In a case where the accessible node fed back by the network side is a node that receives the network access request by forwarding by a low-level node, establishing a connection with the accessible node includes: Obtaining the communication signal strength between the node device of the current node and the accessible node; When the communication signal strength is greater than a signal strength threshold, sending a connection request to the accessible node; If the connection is successful, a connection is established with the accessible node.
6. The method according to claim 5, characterized in that Also includes: In any of the following cases, a connection is established with the node that receives the network access request: The communication signal strength is less than or equal to the signal strength threshold; Failed to connect to the accessible node.
7. The method according to claim 6, characterized in that Before establishing a connection with the node receiving the network access request, the method further includes: The required service resources of the node are reduced so that the required service resources of the node are smaller than the available service resources of the node receiving the network access request.
8. A network node access device, characterized in that: The device comprises: a request receiving module configured to receive a network access request forwarded by a low-level node; wherein the network access request is sent by a new node device, the network access request includes a device type and a pending service of the new node device, the low-level node is in communication connection with the current node, and the available service resources of the low-level node are less than the available service resources of the current node; A demand determination module, configured to determine the required service resources required for accessing the network according to the device type and the service to be processed of the new node device; A connection module, configured to establish a connection with the new node device when the available service resources of the node meet the required service resources, so that the new node device can access the network; a forwarding module configured to forward the network access request to a higher-level node when the available service resources of the current node do not meet the required service resources, wherein the higher-level node is in communication connection with the current node and the available service resources of the higher-level node are greater than the available service resources of the current node; The process of forwarding the network access request to a high-level node is a multi-cycle process, and the cycle stop conditions include: the node currently receiving the forwarded network access request is a root node, or the available business resources of the node currently receiving the forwarded network access request meet the required business resources.
9. A network node access device, characterized in that: The device comprises: A request sending module, configured to send a network access request; the network access request includes a device type of the node and a service to be processed; A node receiving module is configured to receive an accessible node fed back by a network side; wherein the available service resources of the accessible node meet the required service resources of the node, and the required service resources of the node are determined according to the device type of the node and the service to be processed; A connection module, configured to establish a connection with the accessible node and access the network; The accessible node fed back by the network side includes: a node that receives the network access request by forwarding by a low-level node; wherein the low-level node is in communication connection with the current node, and the available service resources of the low-level node are less than the available service resources of the current node; The device is also used to forward the network access request to a higher-level node when the available service resources of the node do not meet the required service resources; The high-level node is in communication connection with the current node, and the available service resources of the high-level node are greater than the available service resources of the current node; The process of forwarding the network access request to a high-level node is a multi-cycle process, and the cycle stop conditions include: the node currently receiving the forwarded network access request is a root node, or the available business resources of the node currently receiving the forwarded network access request meet the required business resources.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored program, wherein the program executes the method according to any one of claims 1 to 7 when executed.
11. An electronic device comprising a memory and a processor, characterized in that: A computer program is stored in the memory, and the processor is configured to execute the method according to any one of claims 1 to 7 through the computer program.
Citation Information
Patent Citations
Reserved bandwidth allocation method and device, equipment and storage medium
CN113037529A