A terminal network access decision method and device
By scanning target terminals, receiving their identifiers, determining the number of communication links, and selecting appropriate preset network access strategies, the problem of poor adaptability in communication between edge nodes and terminals is solved, achieving seamless switching and improving user experience.
Patent Information
- Application Number
- CN202310262537.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-14
- Publication Date
- 2026-02-03
- Estimated Expiration
- 2043-03-14
AI Technical Summary
In existing technologies, the communication connection between edge nodes and terminals relies on signal strength to switch, which has poor adaptability and results in a poor user experience. In particular, when the signal strength is insufficient, it needs to be disconnected and reconnected, which affects the user experience.
By scanning the target terminal, receiving its identifier, determining the number of communication links, and selecting an appropriate preset network access strategy based on the number of links, the target edge node is selected for communication connection, thus achieving seamless handover.
It improves the adaptability of terminal network access, reduces discontinuity in user experience, and enhances user experience.
Smart Images

Figure CN116193542B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of Internet of Things (IoT) technology, and in particular to a method and apparatus for making decisions on terminal network access. Background Technology
[0002] With the development of IoT technology, cloud computing platforms and terminals communicate and connect through edge nodes. These edge nodes then process resources for the terminals, improving processing efficiency and reducing the load on the cloud computing platform. Because edge nodes are distributed in a mesh pattern, it is necessary to select suitable edge nodes and connect the target terminals to them.
[0003] Currently, communication between edge nodes and terminals is established and switched by comparing signal strength. However, this method has poor adaptability, and after a terminal establishes a communication connection with an edge node, it needs to wait until the signal strength is insufficient to support the terminal and the connected edge node to continue communicating before switching the edge node, resulting in a poor user experience. Summary of the Invention
[0004] To address the aforementioned issues, this application provides a terminal network access decision-making method and apparatus to improve the adaptability of terminal network access and enhance user experience.
[0005] The embodiments of this application disclose the following technical solutions:
[0006] In a first aspect, embodiments of this application provide a terminal network access decision method, the method comprising:
[0007] In response to a terminal's network access request, the target terminal is obtained through scanning;
[0008] Receive the terminal identifier sent by the target terminal;
[0009] The number of communication links corresponding to the target terminal is determined based on the terminal identifier;
[0010] Determine the preset network access strategy corresponding to the number of communication links;
[0011] The target edge node to be connected to the target terminal is determined according to the preset network access strategy.
[0012] Optionally, determining the preset network access strategy corresponding to the number of communication links includes:
[0013] When the number of communication links is 0, the preset network access strategy is the first network access strategy;
[0014] The step of determining the target edge node to communicate with the target terminal according to the preset network access policy includes:
[0015] Determine the number of edge nodes to be connected to the target terminal, and determine the target edge nodes to be connected to the target terminal based on the number of edge nodes.
[0016] Optionally, when there are multiple target terminals, determining the number of edge nodes to be connected corresponding to each target terminal, and determining the target edge nodes to be connected to the target terminal based on the number of edge nodes, includes:
[0017] The number of edge nodes to be connected for each target terminal is determined, and a priority value for each target terminal is determined based on the number of edge nodes; the priority value is the reciprocal of the number of edge nodes for the target terminal.
[0018] The target edge node to be connected to the target terminal is determined based on multiple priority values.
[0019] Optionally, determining the preset network access strategy corresponding to the number of communication links includes:
[0020] When the number of communication links is 1, the preset network access strategy is the second network access strategy.
[0021] The step of determining the target edge node to communicate with the target terminal according to the preset network access policy includes:
[0022] Determine the first signal strength value between the edge node to be connected and the target terminal;
[0023] Determine the second signal strength value of the communication link established by the target terminal;
[0024] Determine whether the first signal strength value is greater than the second signal strength value;
[0025] If the value is greater than the target value, the edge node to be connected will be used as the target edge node for communication connection with the target terminal.
[0026] If the value is not greater than the target edge node, then the edge node corresponding to the communication link will be used as the target edge node.
[0027] Optionally, after the target terminal and the target edge node establish a communication connection, the method further includes:
[0028] Receive a task upload request sent by the target terminal; the task upload request includes the amount of task data.
[0029] Determine the amount of storage space corresponding to the edge node associated with the target edge node;
[0030] The edge nodes whose storage space is greater than the task data volume are identified as task edge nodes.
[0031] The target edge node or the task edge node receives the task sent by the target terminal.
[0032] Optionally, receiving the task sent by the target terminal based on the target edge node or the task edge node includes:
[0033] Determine the first fitness value and the second fitness value corresponding to the target edge node and the task edge node, respectively;
[0034] Determine whether the first fitness value is greater than or equal to the second fitness value;
[0035] If the value is greater than the target terminal, then the task edge node is connected to the target terminal for communication, and the task edge node is used to receive the task sent by the target terminal.
[0036] If it is less than or equal to, then the target edge node connected to the target terminal through the target terminal communication connection receives the task sent by the target terminal.
[0037] Optionally, determining the first fitness value and the second fitness value corresponding to the target edge node and the task edge node respectively includes:
[0038] The importance of the task is determined based on the task upload request.
[0039] Determine the target processing time, target signal strength, and target load of the target edge node;
[0040] The first fitness value is determined based on the task importance, target processing time, target signal strength, and target load.
[0041] Based on the steps for determining the first fitness value, the second fitness value corresponding to the task edge node is determined.
[0042] Optionally, the method further includes:
[0043] When the number of communication links of the target terminal is 0, the number of edge nodes to be connected to the target terminal is 1, and the number of connection links corresponding to the edge nodes to be connected is a preset number, the target terminal and the edge nodes are connected to communicate according to the third network access strategy; the connection link is the link between the edge node to be connected and the terminal.
[0044] Optionally, the method further includes:
[0045] When the CPU resources of the edge node to be connected to the target terminal are at a preset threshold, the target edge node to be connected to the target terminal is determined according to the fourth network access strategy.
[0046] Secondly, embodiments of this application provide a terminal network access decision-making device, the device comprising:
[0047] The scanning module is used to scan and obtain target terminals in response to terminal network access requests;
[0048] A receiving module is used to receive the terminal identifier sent by the target terminal;
[0049] A communication link quantity determination module is used to determine the number of communication links corresponding to the target terminal based on the terminal identifier;
[0050] A preset network access strategy determination module is used to determine the preset network access strategy corresponding to the number of communication links;
[0051] The target edge node determination module is used to determine the target edge node to be connected to the target terminal for communication according to the preset network access strategy.
[0052] Thirdly, a computer device includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, it implements the terminal network access decision method as described in the first aspect.
[0053] Fourthly, embodiments of this application provide a computer-readable storage medium storing instructions that, when executed on a terminal device, cause the terminal device to perform the terminal network access decision method as described in the first aspect.
[0054] Compared with the prior art, this application has the following beneficial effects:
[0055] This application obtains a target terminal by scanning in response to a terminal network access request, receives a terminal identifier sent by the target terminal, determines the number of communication links corresponding to the target terminal based on the terminal identifier, determines a preset network access strategy corresponding to the number of communication links, and determines a target edge node to be connected to the target terminal based on the preset network access strategy. Specifically, by determining different numbers of communication links for the target terminal and further selecting an appropriate preset network access strategy based on these different numbers of communication links, the target terminal is connected to the target edge node, improving the adaptive capability of terminal network access. Unlike existing technologies, this method eliminates the need to disconnect the communication link between the target terminal and the already connected edge node before reconnecting, achieving seamless switching and improving the user experience. Attached Figure Description
[0056] To more clearly illustrate the technical solutions in the embodiments of this application 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 only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0057] Figure 1 This application provides a schematic diagram of the relationship between a terminal and an edge node.
[0058] Figure 2 A flowchart illustrating a terminal network access decision method provided in this application embodiment;
[0059] Figure 3 A flowchart of a terminal network access decision-making method based on information resource scheduling provided in this application embodiment;
[0060] Figure 4 This is a schematic diagram of the structure of a terminal network access decision device provided in an embodiment of this application. Detailed Implementation
[0061] As described earlier, research on terminal network access revealed that current communication connections between edge nodes and terminals are established and switched based on signal strength. However, this method has poor adaptability, and after a terminal establishes a communication connection with an edge node, it waits until the signal strength is insufficient to support continued communication between the terminal and the connected edge node before switching, thus degrading the user experience. Furthermore, since an edge node can connect to multiple terminals, but a terminal only connects to one edge node, if a target terminal can connect to only one edge node, while that edge node has multiple terminals waiting to connect, all with stronger signal strengths than the target terminal, then making network access decisions based on signal strength may result in the target terminal being unable to connect or experiencing slow connections, leading to a poor user experience.
[0062] See Figure 1 This figure is a schematic diagram of the relationship between a terminal and an edge node provided in an embodiment of this application, combined with... Figure 1 As shown, the edge nodes are A1, A2, and A3; the terminals are N1, N2, N3, N4, and N5; the signal range of each edge node is... Figure 1 The circular area shown.
[0063] exist Figure 1In the scenario described above, assuming terminal N5 has already established a communication connection with edge node A3, as terminal N5 moves closer to A2, the signal strength between A2 and N5 is higher than the signal strength between N5 and A3. However, since N5 and A3 are already connected, N5 cannot connect to A2. It can only disconnect the communication link with A3 and reconnect to A2 when the signal strength is insufficient to support communication between N5 and A3. This results in a poor user experience.
[0064] See also Figure 1 N1 can only establish a connection with A1, but within A1's signal range, there are also N2, N3, and N4; however, N2 and N3 are both within A3's signal range, while N4 is within the signal ranges of A1, A2, and A3; when N1's signal strength is the weakest, A1 will prioritize connecting to N2, N3, or N4, which have a higher signal strength than N1. However, N2, N3, and N4 can connect to other edge nodes, while A1 can only connect to A1, causing N1 to be unable to connect preferentially or to fail to connect at all, resulting in a poor user experience.
[0065] To address the aforementioned issues, this application provides a terminal network access decision-making method and apparatus. The method includes: scanning and obtaining a target terminal in response to a terminal network access request; receiving a terminal identifier sent by the target terminal; determining the number of communication links corresponding to the target terminal based on the terminal identifier; determining a preset network access strategy corresponding to the number of communication links; and determining a target edge node to be connected to the target terminal for communication based on the preset network access strategy.
[0066] Thus, by determining the number of different communication links for the target terminal and further selecting an appropriate preset network access strategy based on the different number of communication links, the target terminal is connected to the target edge node, improving the adaptability of the terminal's network access. Unlike existing technologies, it does not require disconnecting the communication link between the target terminal and the connected edge node before reconnecting, achieving seamless switching and improving the user experience.
[0067] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present application, and not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of the present application.
[0068] This application can be applied to the field of Internet of Things (IoT) technology. IoT refers to the use of various information sensors, RFID technology, GPS, infrared sensors, laser scanners, and other devices and technologies to collect real-time information on any object or process that needs to be connected or interacted with, including sound, light, heat, electricity, and mechanics. This information is then accessed through various possible networks to achieve ubiquitous connectivity between things and between things and people, enabling intelligent perception, identification, and management of objects and processes. IoT is an information carrier based on the internet, traditional telecommunications networks, etc., enabling all independently addressable ordinary physical objects to form an interconnected network.
[0069] It should be noted that in the following embodiments, edge nodes refer to nodes that are very close to the user and not located on the backbone network. When a user accesses information in the network, the request first reaches the edge node, and then is progressively forwarded from the edge node to the core node. In this way, when a user requests static resources, they can obtain them at the edge node without having to go through layers of forwarding to obtain them from the core node. The "edge computing" corresponding to edge nodes refers to computation performed at the edge node; that is, computation can be carried out at the edge node close to the user, without needing to go to the core node. It can be understood that the edge node is located between the user end and the cloud center, and is closer to the user (data source) compared to traditional cloud center edge nodes.
[0070] It should be noted that in the following embodiments, the term "terminal" refers to a user terminal connected to the edge node. Specifically, it can be the system terminal of a physiological information collection device, or other types of terminals.
[0071] It should be noted that in this application, the method can be applied to physiological information resource acquisition devices and edge computing devices. Specifically, it involves establishing a communication connection between the physiological information resource acquisition device and the edge device. Taking electrocardiogram (ECG) detection as an example, the ECG acquisition device needs to be placed on the patient and ECG data is collected. Then, the ECG acquisition device uploads the ECG data through the communication link established with the edge node, and the edge node sends it to the doctor's computer (i.e., cloud computing platform) to finally generate a visualized ECG.
[0072] Physiological information resource acquisition equipment refers to equipment used to collect physiological information, which may include electrocardiogram acquisition equipment, mobile acquisition equipment, etc., without being specifically limited here.
[0073] First Embodiment
[0074] See Figure 2 The figure is a flowchart of a terminal network access decision method provided in an embodiment of this application, combined with... Figure 2As shown, the terminal network access decision method provided in this application embodiment may include:
[0075] S201: In response to the terminal's network access request, the target terminal is obtained through scanning.
[0076] A terminal network access request refers to a terminal's request to establish a communication connection with an edge node.
[0077] It should be noted that the terminal's network access request can be issued by the server, that is, the server receives the terminal's network access request and forwards it to the edge node; the terminal's network access request can also be broadcast by the target terminal itself, and the edge node scans it according to a preset period.
[0078] Correspondingly, the scanning of target terminals can also be performed by edge nodes controlled by the server. Specifically, when the server sends a terminal network access request, the edge nodes will scan according to the terminal network access request to obtain the target terminal; or the target terminal will continuously broadcast, and the edge nodes will scan according to a preset period to obtain the target terminal.
[0079] It should be noted that, in the embodiments of this application, the prerequisite for the terminal to join the network is that the target terminal is scanned or identified, that is, the target terminal can only proceed to the next step when it is within the signal range of the edge node.
[0080] It should be noted that, in the embodiments of this application, the communication link established between the target terminal and the edge node can be a Bluetooth channel, a 5G WiFi channel, or a 2.4G WiFi channel.
[0081] S202: Receive the terminal identifier sent by the target terminal.
[0082] Terminal identifier refers to the status identifier of the communication link connecting the target terminal and the edge node. In some cases, the terminal identifier can indicate the number of communication links.
[0083] It should be noted that by receiving the terminal identifier sent by the target terminal, the status of the target terminal can be further determined, thereby setting different network access policies.
[0084] S203: Determine the number of communication links corresponding to the target terminal based on the terminal identifier.
[0085] The number of communication links refers to the number of communication links that have been established between the target terminal and the edge node. In this embodiment, when the edge node acts as the master device and the target terminal is the slave device, and the established communication link is a Bluetooth channel, since the target terminal can connect to a maximum of 2 master devices in Bluetooth mode, the maximum number of communication links can be 2, and the minimum number can be 0. A communication link count of 0 indicates that the target terminal has not established a communication connection with any edge node. It should be noted that when the channel type of the communication link is a 5G WiFi channel or a 2.4G WiFi channel, the number of communication links is 0 or 1.
[0086] S204: Determine the preset network access strategy corresponding to the number of communication links.
[0087] Preset network access strategy refers to the strategy corresponding to the number of communication links. Different numbers of communication links will have different preset network access strategies. Based on different preset network access strategies, different target terminals can be made to make network access decisions, thereby improving the adaptability of terminal network access.
[0088] S205: Determine the target edge node to be connected to the target terminal for communication according to the preset network access strategy.
[0089] Since there are one or more edge nodes, the most suitable target edge node for the target terminal can be determined by setting a network access policy, and a communication connection can be established.
[0090] This application embodiment obtains a target terminal by scanning in response to a terminal network access request, receives a terminal identifier sent by the target terminal, determines the number of communication links corresponding to the target terminal based on the terminal identifier, determines a preset network access strategy corresponding to the number of communication links, and determines a target edge node to be connected to the target terminal based on the preset network access strategy. Specifically, by determining different numbers of communication links for the target terminal and further selecting appropriate preset network access strategies based on these different numbers of communication links, the target terminal is connected to the target edge node, improving the adaptive capability of the terminal network access. Unlike existing technologies, this method eliminates the need to disconnect the communication links between the target terminal and the already connected edge node before reconnecting, achieving seamless switching and improving the user experience.
[0091] Second Embodiment
[0092] To further illustrate the different preset network access strategies corresponding to different communication links, and to make terminal network access decisions based on different preset network access strategies, in one feasible implementation, this application embodiment also provides a method for terminal network access decision-making. The method for determining the number of communication links in the method is the same as the steps S201 to S203 in the previous embodiment, and therefore will not be described again.
[0093] Based on steps S201 to S203, step S204 may specifically include: when the number of communication links is 0, the preset network access strategy is the first network access strategy.
[0094] It should be noted that the first entry policy refers to the policy executed when the number of communication links is 0.
[0095] Correspondingly, according to the first network access policy, step S205 may specifically include:
[0096] Determine the number of edge nodes to be connected to the target terminal, and determine the target edge nodes to be connected to the target terminal based on the number of edge nodes.
[0097] It should be noted that, in the embodiments of this application, by determining the number of edge nodes corresponding to the target terminal obtained by scanning, the number of edge nodes that the target terminal can connect to can be known. That is, since the target terminal is broadcasting and the edge nodes are scanning, when the target terminal is within the scanning range of multiple edge nodes, the target terminal can be scanned by multiple edge nodes. Therefore, it is necessary to determine the target edge nodes that communicate with the target terminal based on the number of edge nodes that the target terminal can connect to.
[0098] In one feasible implementation, when there is one target terminal and one edge node, the target terminal can establish a communication connection with the edge node.
[0099] In another possible implementation, when the number of target terminals is multiple, step S205 may further specifically include:
[0100] Step 11: Determine the number of edge nodes to be connected for each target terminal, and determine the priority value for each target terminal based on the number of edge nodes; the priority value is the reciprocal of the number of edge nodes corresponding to the target terminal.
[0101] Step 12: Determine the target edge node to be connected to the target terminal for communication based on multiple priority values.
[0102] Since multiple target terminals may appear within the scanning range of an edge node, the existing technology determines the order of network access for these target terminals based on their signal strength. That is, the target terminal with the highest signal strength is connected first. However, this method has limitations. If a target terminal can only communicate with that edge node and its signal strength is weaker than other target terminals, then that target terminal needs to wait for a connection, resulting in a long connection time and a poor user experience.
[0103] In the embodiments of this application, steps 11 to 12 involve determining the number of connectable edge nodes corresponding to multiple target terminals within the scanning range of an edge node, and determining a priority value. The higher the priority value, the less likely the target terminal is to connect with other edge nodes. That is, when the priority value is equal to 1, the target terminal with a priority value of 1 can only connect with the edge node and needs to be connected first to improve the user experience.
[0104] In some cases, since there are multiple edge nodes and multiple target terminals, multiple edge nodes can be judged simultaneously. First, the priority value of multiple target terminals within the scanning range of each edge node is determined. Then, connections are made sequentially according to the priority value from largest to smallest. If the priority of the same target terminal corresponding to multiple edge nodes is consistent, the signal strength between the target terminal and each edge node can be determined. The edge node with the highest signal strength is selected as the target edge node, and a communication connection is established. If the signal strength is also consistent, the edge node with the fewest connected target terminals can be selected as the target edge node for communication connection. If the number of connected target terminals of edge nodes is consistent, a random selection can be made. That is, in this embodiment, not only the number of edge nodes to be connected to the target terminal is considered, but other factors can also be considered to make decisions on terminal network access. It is not limited to the two factors of signal strength and the number of connected target terminals mentioned in the above embodiment, but can also include other factors. This is only an illustrative example and is not specifically limited.
[0105] It should be noted that if multiple target terminals exist under the same priority value, and all target terminals are only within the range of the same edge node, then the connection can be made by judging the signal strength between each target terminal and the edge node, and connecting them according to the signal strength from highest to lowest. If the signal strength is the same, the connection can be made according to the pre-set device priority between different target terminals. For example, if the target terminals correspond to an ECG detection device and a mobile real-time ECG monitoring device, the device priority of the mobile real-time ECG monitoring device can be preset to be higher than that of the ECG detection device. Then, when the priority values and signal strengths of the two are the same, the mobile real-time ECG monitoring device will be connected first.
[0106] It should be noted that, in this embodiment of the application, the terminal identifier of the target terminal that has not been connected after scanning can be marked as C. i,j,t0This means that the target terminal has not yet established a connection with any edge node. t0 can be set to a preset value, representing the time required for the target terminal to establish a communication link with the edge node. The preset value can be defined as 0, Z, etc., indicating that the target terminal has not established a communication connection with any edge node. For such target terminals, the first network access strategy is used for decision-making. Target terminals are then admitted to the network according to different priorities. For example, suppose a target terminal i is added to the network by ε within a preset period. i If an edge node scan finds (ε is greater than or equal to 1; if ε equals 0, it proves that the target terminal has not been scanned by any edge node and has not entered the network access range in physical space), then the access priority of the target terminal i (i.e., the priority value mentioned above) is ω. i =1 / ε i (Priority is 1 for the highest and close to zero for the lowest). Access decisions are made in order of priority, which avoids access competition outside the priority group. This allows target terminals that are at the edge of the scanning edge of the edge node to access the network first, or target terminals that are only within the scanning range of a certain edge node to access the network first, so as to expand service coverage as much as possible and improve the user experience.
[0107] Third Embodiment
[0108] To further illustrate the different preset network access strategies corresponding to different communication links, and to make terminal network access decisions based on different preset network access strategies, in another feasible implementation, this application embodiment provides a method for terminal network access decision-making. The method for determining the number of communication links in the method is the same as the steps S201 to S203 in the previous embodiment, so it will not be described again.
[0109] Based on steps S201 to S203, step S204 may specifically include: when the number of communication links is 1, the preset network access strategy is the second network access strategy.
[0110] It should be noted that the second network access strategy refers to the strategy executed when the number of communication links is 1.
[0111] Correspondingly, according to the second network access policy, step S205 may specifically include:
[0112] Step 21: Determine the first signal strength value between the edge node to be connected and the target terminal;
[0113] Step 22: Determine the second signal strength value of the communication link established by the target terminal;
[0114] Step 23: Determine whether the first signal strength value is greater than the second signal strength value;
[0115] Step 24: If it is greater than the target edge node to be connected, then the edge node to be connected is taken as the target edge node for communication connection with the target terminal.
[0116] Step 25: If it is not greater than, then the edge node corresponding to the communication link is taken as the target edge node.
[0117] It should be noted that, in the embodiments of this application, the signal strength value refers to the signal strength between the target terminal and the edge node, the first signal strength value refers to the signal strength between the edge node and the scanned target terminal, and the second signal strength value refers to the signal strength between the target terminal and the edge node with which a connection has been established.
[0118] It should be noted that by comparing the first signal strength value and the second signal strength value, automatic switching can be performed when the signal strength of the connected communication link is low, thus ensuring signal quality and improving the user experience.
[0119] It should be noted that, in one feasible implementation, when communicating via a 5G WiFi channel or a 2.4G WiFi channel, the number of communication links can be set to 0 or 1. When the number of communication links is 1, the signal comparison process can be performed by the server, and the edge node can be switched.
[0120] For example, the terminal identifier of the target terminal is represented as C. i,j,t This means that target terminal i has established a data communication link with an edge node j, and t represents the timestamp of the establishment of the communication link between the target terminal and the edge node. Since the target terminal in this embodiment is pre-configured to connect to 2 edge nodes simultaneously according to the BLE protocol, it can continue broadcasting even after establishing a data communication link. Other edge nodes can then access the network according to the second network access policy and target terminal i. Once target terminal i establishes a new connection with another edge node, the original connection is disconnected, achieving seamless handover.
[0121] It should be noted that when a label C i,j,t When the target terminal i continues to broadcast and is detected by another unconnected edge node q, the BLE signal strength RSSI (first strength value) of the communication link between the original target terminal i and edge node j will be compared with the BLE signal strength RSSI (second strength value) between the new unconnected edge node q and the target terminal i. If the difference between the first strength value and the second strength value is greater than RF, a warning Fc will be issued; if it is greater than RT, an edge node handover operation will be performed.
[0122] It should also be noted that in this embodiment, if the signal strength value of the edge node to be connected is less than or equal to the signal strength value of the edge node already connected to the target terminal, then no switching is required, reducing the switching frequency and ensuring a smooth user experience.
[0123] Fourth embodiment
[0124] Based on the above embodiments, in order to further ensure that the target terminal can communicate with the unique edge node, this application embodiment also considers the limitations of the edge node itself. This application embodiment further provides a terminal network access decision method, which may further include:
[0125] When the number of communication links of the target terminal is 0, the number of edge nodes to be connected to the target terminal is 1, and the number of connection links corresponding to the edge nodes to be connected is a preset number, the target terminal and the edge nodes are connected to communicate according to the third network access strategy; the connection link is the link between the edge node to be connected and the terminal.
[0126] It should be noted that, assuming there is a target terminal 2 to be connected, this target terminal 2 can only connect to edge node A, but the number of target terminals that can be connected to edge node A has reached the upper limit. At this time, the already connected target terminal 1 can be notified to find other edge nodes B. When the target terminal 1 finds other edge nodes B, the current edge node A can disconnect the communication link with the already connected target terminal 1 and connect to the target terminal 2 to be connected, so as to ensure that the target terminal 2 can be connected.
[0127] Fifth embodiment
[0128] Based on the above embodiments, in order to further ensure that the target terminal and the edge node can communicate and connect, this application embodiment also considers the limitations of the edge node itself. This application embodiment further provides a terminal network access decision method, which may further include:
[0129] When the CPU resources of the edge node to be connected to the target terminal are at a preset threshold, the target edge node to be connected to the target terminal is determined according to the fourth network access strategy.
[0130] It should be noted that, assuming there is a target terminal a to be connected, which can only connect to edge node M, but the CPU resources corresponding to edge node M have reached their limit, in one feasible scenario, edge node M can establish a communication connection with target terminal a and transfer the information resources of target terminal a to other edge node N for execution; or in another feasible implementation, the already connected target terminal b can be notified to find other edge node N. When target terminal b finds other edge node N, the current edge node M can disconnect the communication link with the already connected target terminal b and connect to the target terminal a to be connected, so as to ensure that target terminal a can be connected normally.
[0131] Sixth Embodiment
[0132] Based on the terminal network access decision method provided in the above embodiments, further, in order to improve the processing efficiency of information resources, see... Figure 3 The figure is a flowchart of a terminal network access decision method based on information resource scheduling provided in an embodiment of this application. After the target terminal and the target edge node establish a communication connection, the method further includes:
[0133] S301: Receive the task upload request sent by the target terminal.
[0134] The task upload request includes the amount of task data.
[0135] A task upload request refers to a request from the target to upload a task.
[0136] It should be noted that the target terminal has basic computing capabilities and can perform basic processing of information resources. If further processing of information resources is required, the task needs to be uploaded to the edge node, where it will be computed and processed.
[0137] S302: Determine the amount of storage space corresponding to the edge node associated with the target edge node.
[0138] It should be noted that the target edge node will establish communication connections with multiple target terminals at the same time. That is, the target edge node will calculate the information resources of multiple target terminals. However, since the storage space corresponding to the target edge node is limited, it may not be able to receive and process the tasks to be uploaded. Therefore, it is necessary to determine the storage space of the edge nodes associated with the target edge node and to determine whether the information resources can be calculated and processed by other edge nodes.
[0139] S303: Determine the edge node whose storage space is greater than the task data volume, and designate it as the task edge node.
[0140] S304: Receive the task sent by the target terminal according to the target edge node or the task edge node.
[0141] In this embodiment, edge nodes with more storage space than the target edge node are used as task edge nodes, i.e., as alternatives. When the storage space of the target edge node is insufficient, the calculation can be switched to the task edge node.
[0142] Furthermore, to specifically illustrate the switching process between the target edge node and the task edge node, step S304 may specifically include:
[0143] Step 31: Determine the first fitness value and the second fitness value corresponding to the target edge node and the task edge node respectively;
[0144] Step 32: Determine whether the first fitness value is greater than or equal to the second fitness value;
[0145] Step 33: If the value is greater than the target terminal, then connect the task edge node to the target terminal for communication and receive the task sent by the target terminal through the task edge node;
[0146] Step 34: If it is less than or equal to, then the target edge node connected to the target terminal through the target terminal communication connection receives the task sent by the target terminal.
[0147] It should be noted that, in the embodiments of this application, the fitness value refers to the overall capability value of the edge node in processing the task uploaded by the target terminal. If the overall capability value of the target edge node in processing the task is better than that of the task edge node, then the task is processed by the target edge node; otherwise, it is processed by the task edge node. This improves the efficiency of task processing while ensuring that the task can be processed.
[0148] To further illustrate the process of determining the first fitness value and the second fitness value, step 31 may specifically include:
[0149] Step 311: Determine the importance of the task based on the task upload request.
[0150] Step 312: Determine the target processing time, target signal strength, and target load of the target edge node.
[0151] Step 313: Determine the first fitness value based on the task importance, target processing time, target signal strength, and target load.
[0152] Step 314: Based on the step of determining the first fitness value, determine the second fitness value corresponding to the task edge node.
[0153] It should be noted that, in the embodiments of this application, the adaptiveness value is determined by comprehensively considering the importance of the task, the processing time of the task, the signal strength between the target terminal and the edge node, and the load of the edge node, so as to determine whether the edge node needs to be switched, thereby ensuring that the processing time of the task is reduced and the processing efficiency of the task is improved.
[0154] Seventh Embodiment
[0155] Based on the network access decision-making method based on information resource scheduling provided in the above embodiments, this application also provides a physiological information resource scheduling process, which may include:
[0156] In existing technologies, the processing of two-dimensional or even higher-dimensional physiological information, such as ECG signals, involves a sequential process of filtering, QRS detection of heartbeat position, waveform morphology analysis, and various pathological information analyses. However, the data results and computational demands of each step in this analysis process are different, and the analysis sequence is sequential. Therefore, to achieve data processing for different steps, this embodiment sets up data acquisition on the target terminal and filtering and conversion of analog data via an analog-to-digital converter (ADC); complex staged tasks such as data decompression, waveform morphology analysis, and coordinate plotting of the two-dimensional ECG are uploaded to edge nodes for processing. The cloud computing platform then performs ECG rendering and various pathological information analyses based on the data processed by the edge nodes.
[0157] X i,0 This indicates that the collected physiological information resources are processed on the target terminal, and no task is uploaded. X i,1 This indicates that the task is uploaded to the target terminal of the edge node. Assume there are K edge nodes E, where E = {E...} j |j=1,2,…,K},K∈N + The task upload process is as follows:
[0158] Step 1: Establish a communication link between the target terminal and the target edge node according to the preset network access policy. The target terminal sends a task upload request message to the edge node E. j The format can be TO: (D i ,T th ).
[0159] Among them, D i T represents the amount of data uploaded. th This represents the timeout threshold. When the target edge node receives the task upload request, it broadcasts this message across the edge network.
[0160] Step 2: Edge node E associated with the target edge node atrAfter receiving the task upload request message, check its storage space. Is that enough? If Then do not reply to messages; if Then to E j Send a response message (ECHO message), the message format of which can be (
[0161] Among them, RSSI i,atr BR represents the received signal strength. atr Represents the remaining bandwidth. Represents the atr-th edge node E atr The computing power (CPU clock speed), E atr The physical location coordinates; E represents atr The l-th task TK in the task execution queue l Required CPU resources (i.e., CPU clock speed) (the execution time below) E atr For the l-th task TK l The proportion of allocated CPU computing power to total computing power, L atr E atr The number of tasks currently in the queue; E atr The proportion of CPU computing power allocated to task i to the total computing power, θ atr E represents atr The overhead index for providing services by the node (in this embodiment, the overhead index of all edge nodes is set to 1, i.e., θ) atr =1).
[0162] Step 3: Target edge node E j For T th Statistical analysis is performed on edge nodes that respond to task upload request messages within a specified time, and a node set S is established. i ={E m |m≠j,m∈Z+}, upload to cloud service computing platform.
[0163] The cloud service computing platform calculates S according to formula (1). i Each node E in m (m=1,2,…,num(S i The processing time for the request task, num(S) i ) represents set S i The size. Equation (1) is as follows:
[0164]
[0165] Among them, R i Represents execution X i,1 The CPU resources required for the node's task, D i This represents the amount of data uploaded. Indicates target terminal X i,1 To edge node E m The communication link transmission rate.
[0166] The specific formula for the transmission rate between the target terminal and the edge node is as follows:
[0167]
[0168] Among them, P Xi,1 X represents i,1 The node's transmit power, σ 2 Represents the noise interference power, ∑ k∈E,k≠i p X(k,1) X (k,1)m Indicates interference from other mobile target terminals, X (i,1)m Represents X (i,1) With E m The channel gain between them, where the channel gain is specifically as shown in equation (3):
[0169]
[0170] Where, α M Represents the small-scale attenuation coefficient, d im Represents mobile target terminal X i,1 With edge node E m The straight-line distance between them, β M Represents X i,1 The channel attenuation exponent, d max Represents X i,1 The maximum communication distance.
[0171] It should be noted that in this embodiment of the application, three factors are considered for the processing time of the task, namely the task queuing delay, the task processing delay and the task upload delay, which correspond to the three parts in formula (1).
[0172] Where u in equation (1) i This represents the importance of the task, that is, the urgency of the task.
[0173] If the task is urgent (u i=1), the task is preemptively scheduled at the edge node, at which point the first term in equation (1) becomes 0, thus reducing the latency caused by queuing for urgent tasks; and at this point, the second term in equation (1) becomes The edge node will allocate all CPU resources to process the urgent task, thus reducing the processing latency of the urgent task.
[0174] When the task is not urgent (u i When (=0), the task is scheduled using a "first-come, first-served" approach, where "first-come, first-served" means that tasks are processed in the order they were uploaded. Therefore, non-urgent tasks experience queuing delays, and at this time, the second term of equation (1) becomes The edge node represents only A certain percentage of CPU resources are used for processing this non-urgent task. It is understandable that the main difference in latency between urgent and non-urgent tasks comes from queuing latency and processing latency, while propagation latency (part 3 of equation (1)) is unrelated to the urgency of the task, but only depends on the amount of data corresponding to the task and the target terminal X. i,1 It is related to the data transmission rate.
[0175] Step 4: Compare the processing time of each edge node with the task deadline T. Exp The relationship. If Then this E m Exclude and update set S i .
[0176] It should be noted that in step four, the processing time is compared with the task deadline. If the processing time is longer than the task deadline, it means that the edge node will time out of completing the task uploaded by the target terminal. Therefore, the task needs to be completed while ensuring that it does not exceed the task deadline, and edge nodes that exceed the task deadline need to be excluded.
[0177] Step 5: For S respectively i Processing time T for each edge node within the node E Signal strength RSSI and load Sort by size in ascending order to obtain the corresponding set.
[0178] Step 6: Apply equation (4) to the set The elements in the dataset are normalized to obtain the target processing time. Update collection Equation (4) is as follows:
[0179]
[0180] in, and They represent China T E The minimum and maximum values.
[0181] Step 7: Apply according to formula (5) Normalize each element in the set to obtain the target signal strength RSSI*, and update the set. Equation (5) is as follows:
[0182]
[0183] Among them, RSSI min and RSSI max They represent RSSI i,m The minimum and maximum values.
[0184] Step 8: Apply according to formula (6) The total task load in each edge node queue is normalized to obtain the target load. Equation (6) is as follows:
[0185]
[0186] in, This represents the minimum total load of the edge node queues. This represents the maximum value of the total load of the edge node queues.
[0187] Step 9: Based on the target processing time obtained above Target signal strength and target load Calculate S according to formula (7) i Fitness function for each edge node:
[0188]
[0189] Using the fitness function obtained above, the fitness value of each edge node can be calculated, and different fitness values can be obtained according to different task importance.
[0190] When u i =0 That is, when the task is not urgent, the algorithm will proceed according to the total processing time. and the reliability index RSSI* for target node E t Optimization is performed, and to balance time efficiency and reliability, the two are weighted equally, each with a weight of 1.
[0191] And when u i When = 1, At this point, the algorithm prioritizes minimizing latency and task load, with each weighted at 1 to meet latency requirements in emergency situations. The fitness function adaptively adjusts the optimization objectives based on the urgency of the task, thereby selecting the optimal target edge node for task processing.
[0192] Step 10: Determine the task edge nodes according to the following formula (8):
[0193]
[0194] Step 11: Based on marker C i,j,t Calculate the initial access option E under the joint optimization of Layer 1 guaranteed service coverage. j Given the fitness function f(j), compare f(j) with minf(m). If At that time, the edge node performs an access switch, connecting to the task edge node E. b Then, execute the task upload strategy according to the above steps.
[0195] In this embodiment, steps one and two determine a set of edge nodes capable of processing the tasks to be uploaded by the target terminal. Step three determines the processing time of each edge node in the set. Step four removes edge nodes with processing times exceeding the task deadline from the set, resulting in a new set. Steps five through eight determine the target processing time, target signal strength, and target load, respectively. Step nine determines a fitness function, which assigns a fitness value to each edge node. Step ten identifies the edge node with the minimum fitness value based on this function, designating it as the task edge node. Step eleven compares the fitness values of the target edge node and the task edge node. If the fitness value of the task edge node is less than half that of the target edge node, an edge node switch occurs, and the task edge node receives the task sent by the target terminal. This embodiment improves task processing efficiency and enhances user experience while ensuring the target terminal's tasks can be processed.
[0196] Device Examples
[0197] Based on the terminal network access decision method provided in the above embodiments, this application also provides a terminal network access decision device, see [link to relevant documentation]. Figure 4 This figure is a schematic diagram of the structure of a terminal network access decision device provided in an embodiment of this application, combined with... Figure 4 As shown, the terminal network access decision device 400 provided in this application embodiment may include:
[0198] The scanning module 401 is used to scan and obtain the target terminal in response to the terminal's network access request;
[0199] The receiving module 402 is used to receive the terminal identifier sent by the target terminal;
[0200] The communication link quantity determination module 403 is used to determine the number of communication links corresponding to the target terminal based on the terminal identifier;
[0201] The preset network access strategy determination module 404 is used to determine the preset network access strategy corresponding to the number of communication links;
[0202] The target edge node determination module 405 is used to determine the target edge node to be connected to the target terminal for communication according to the preset network access strategy.
[0203] As an example, the preset network access policy determination module 404 is specifically used for:
[0204] When the number of communication links is 0, the preset network access strategy is the first network access strategy;
[0205] The target edge node determination module 405 includes:
[0206] The target edge node determination submodule is used to determine the number of edge nodes to be connected to the target terminal, and to determine the target edge nodes to be connected to the target terminal based on the number of edge nodes.
[0207] As an example, when there are multiple target terminals, the target edge node determination submodule is specifically used for:
[0208] The number of edge nodes to be connected for each target terminal is determined, and a priority value for each target terminal is determined based on the number of edge nodes; the priority value is the reciprocal of the number of edge nodes for the target terminal.
[0209] The target edge node to be connected to the target terminal is determined based on multiple priority values.
[0210] As an example, the preset network access policy determination module 404 is specifically used for:
[0211] When the number of communication links is 1, the preset network access strategy is the second network access strategy.
[0212] The target edge node determination module 405 includes:
[0213] The first signal strength value determination module is used to determine the first signal strength value between the edge node to be connected and the target terminal;
[0214] The second signal strength value determination module is used to determine the second signal strength value of the communication link established by the target terminal;
[0215] The first judgment module is used to determine whether the first signal strength value is greater than the second signal strength value;
[0216] A preset network access strategy determination unit is used to determine the edge node to be connected as the target edge node for communication connection with the target terminal if the value is greater than the target value; otherwise, the edge node corresponding to the communication link is used as the target edge node.
[0217] As an example, after the target terminal and the target edge node establish a communication connection, the device further includes:
[0218] The receiving module is used to receive a task upload request sent by the target terminal; the task upload request includes the amount of task data.
[0219] The first determining module is used to determine the amount of storage space corresponding to the edge node associated with the target edge node;
[0220] The second determining module is used to determine the edge nodes whose storage space is greater than the task data volume, and to designate them as task edge nodes.
[0221] The task processing module is used to receive tasks sent by the target terminal based on the target edge node or the task edge node.
[0222] As an example, the task processing module specifically includes:
[0223] The third determining module is used to determine the first fitness value and the second fitness value corresponding to the target edge node and the task edge node, respectively.
[0224] The second judgment module is used to determine whether the first fitness value is greater than or equal to the second fitness value;
[0225] The task processing unit is configured to, if the value is greater than or equal to the target terminal, establish a communication connection between the task edge node and the target terminal, and receive the task sent by the target terminal through the task edge node; if the value is less than or equal to the target terminal, receive the task sent by the target terminal through the target edge node established by the target terminal.
[0226] As an example, the third determining module is specifically used for:
[0227] The importance of the task is determined based on the task upload request.
[0228] Determine the target processing time, target signal strength, and target load of the target edge node;
[0229] The first fitness value is determined based on the task importance, target processing time, target signal strength, and target load.
[0230] Based on the steps for determining the first fitness value, the second fitness value corresponding to the task edge node is determined.
[0231] As an example, the device 400 further includes:
[0232] The first target edge node determination subunit is used to connect the target terminal to the edge node according to the third network access strategy when the number of communication links of the target terminal is 0, the number of edge nodes to be connected to the target terminal is 1, and the number of connection links corresponding to the edge nodes to be connected is a preset number; the connection link is the link between the edge node to be connected and the terminal.
[0233] As an example, the device 400 further includes:
[0234] The second target edge node determination subunit is used to determine the target edge node that will communicate with the target terminal according to the fourth network access strategy when the CPU resources of the edge node to be connected to the target terminal are at a preset threshold.
[0235] The terminal network access decision device provided in this application embodiment has the same beneficial effects as the terminal network access decision method provided in the above embodiments, so it will not be described again.
[0236] This application also provides corresponding devices and computer storage media for implementing the solutions provided in this application.
[0237] The device includes a memory and a processor. The memory is used to store instructions or code, and the processor is used to execute the instructions or code to enable the device to perform the terminal network access decision method according to any embodiment of this application.
[0238] The computer storage medium stores code, and when the code is executed, the device running the code implements the terminal network access decision method described in any embodiment of this application.
[0239] It should be noted that the various embodiments in this specification are described in a progressive manner, and the same or similar parts between the various embodiments can be referred to mutually. Each embodiment focuses on describing the differences from other embodiments. In particular, for the device and equipment embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the description of the method embodiments. The device and equipment embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate, and the components indicated as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of the solution in this embodiment according to actual needs. Those skilled in the art can understand and implement this without creative effort.
[0240] In the embodiments of this application, the terms "first" and "second" (if they exist) are used only as name identifiers and do not represent the order of first and second.
[0241] As can be seen from the above description of the embodiments, those skilled in the art can clearly understand that all or part of the steps in the methods of the above embodiments can be implemented by means of software plus a general-purpose hardware platform. Based on this understanding, the technical solution of this application can be embodied in the form of a software product. This computer software product can be stored in a storage medium, such as a read-only memory (ROM) / RAM, magnetic disk, optical disk, etc., including several instructions to cause a computer device (which may be a personal computer, a server, or a network communication device such as a router) to execute the methods described in various embodiments or some parts of the embodiments of this application.
[0242] The above description is merely one specific embodiment of this application, but the scope of protection of this application 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 this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
Claims
1. A terminal network access decision method, characterized in that, The method includes: In response to a terminal's network access request, the target terminal is obtained through scanning; Receive the terminal identifier sent by the target terminal; The number of communication links corresponding to the target terminal is determined based on the terminal identifier; Determine the preset network access strategy corresponding to the number of communication links; The target edge node to be connected to the target terminal is determined according to the preset network access strategy; The method further includes, after the target terminal and the target edge node establish a communication connection: Receive a task upload request sent by the target terminal; the task upload request includes the amount of task data. Determine the amount of storage space corresponding to the edge node associated with the target edge node; The edge nodes whose storage space is greater than the task data volume are identified as task edge nodes. The target edge node or the task edge node receives the task sent by the target terminal.
2. The method according to claim 1, characterized in that, The preset network access strategy corresponding to the number of communication links includes: When the number of communication links is 0, the preset network access strategy is the first network access strategy; The step of determining the target edge node to communicate with the target terminal according to the preset network access policy includes: Determine the number of edge nodes to be connected to the target terminal, and determine the target edge nodes to be connected to the target terminal based on the number of edge nodes.
3. The method according to claim 2, characterized in that, When there are multiple target terminals, determining the number of edge nodes to be connected corresponding to each target terminal, and determining the target edge nodes to be connected to the target terminals based on the number of edge nodes, includes: The number of edge nodes to be connected for each target terminal is determined, and a priority value for each target terminal is determined based on the number of edge nodes; the priority value is the reciprocal of the number of edge nodes for the target terminal. The target edge node to be connected to the target terminal is determined based on multiple priority values.
4. The method according to claim 1, characterized in that, The preset network access strategy corresponding to the number of communication links includes: When the number of communication links is 1, the preset network access strategy is the second network access strategy. The step of determining the target edge node to communicate with the target terminal according to the preset network access policy includes: Determine the first signal strength value between the edge node to be connected and the target terminal; Determine the second signal strength value of the communication link established by the target terminal; Determine whether the first signal strength value is greater than the second signal strength value; If the value is greater than the target value, the edge node to be connected will be used as the target edge node for communication connection with the target terminal. If the value is not greater than the target edge node, then the edge node corresponding to the communication link will be used as the target edge node.
5. The method according to claim 1, characterized in that, The step of receiving the task sent by the target terminal based on the target edge node or the task edge node includes: Determine the first fitness value and the second fitness value corresponding to the target edge node and the task edge node, respectively; Determine whether the first fitness value is greater than or equal to the second fitness value; If the value is greater than the target terminal, then the task edge node is connected to the target terminal for communication, and the task edge node is used to receive the task sent by the target terminal. If it is less than or equal to, then the target edge node connected to the target terminal through the target terminal communication connection receives the task sent by the target terminal.
6. The method according to claim 5, characterized in that, The step of determining the first fitness value and the second fitness value corresponding to the target edge node and the task edge node respectively includes: The importance of the task is determined based on the task upload request. Determine the target processing time, target signal strength, and target load of the target edge node; The first fitness value is determined based on the task importance, target processing time, target signal strength, and target load. Based on the steps for determining the first fitness value, the second fitness value corresponding to the task edge node is determined.
7. The method according to claim 1, characterized in that, The method further includes: When the number of communication links of the target terminal is 0, the number of edge nodes to be connected to the target terminal is 1, and the number of connection links corresponding to the edge nodes to be connected is a preset number, the target terminal and the edge nodes are connected to communicate according to the third network access strategy; the connection link is the link between the edge node to be connected and the terminal.
8. The method according to claim 1, characterized in that, The method further includes: When the CPU resources of the edge node to be connected to the target terminal are at a preset threshold, the target edge node to be connected to the target terminal is determined according to the fourth network access strategy.
9. A terminal network access decision-making device, characterized in that, The device includes: The scanning module is used to scan and obtain target terminals in response to terminal network access requests; A receiving module is used to receive the terminal identifier sent by the target terminal; A communication link quantity determination module is used to determine the number of communication links corresponding to the target terminal based on the terminal identifier; A preset network access strategy determination module is used to determine the preset network access strategy corresponding to the number of communication links; The target edge node determination module is used to determine the target edge node to be connected to the target terminal for communication according to the preset network access strategy. Wherein, after the target terminal and the target edge node establish a communication connection, the device further includes: The receiving module is used to receive a task upload request sent by the target terminal; the task upload request includes the amount of task data. The first determining module is used to determine the amount of storage space corresponding to the edge node associated with the target edge node; The second determining module is used to determine the edge nodes whose storage space is greater than the task data volume, and to designate them as task edge nodes. The task processing module is used to receive tasks sent by the target terminal based on the target edge node or the task edge node.
Citation Information
Patent Citations
Apparatus and method for connection cotrol in wireless network environment
KR1020130057271A