A network access control method and system based on reported delay
By calculating the weight values of signal reception strength and load level, a delayed reporting time is generated, and candidate nodes are controlled to report network access information in a staggered manner. This solves the channel congestion and collision problems in the relay network and improves the stability and security of network access.
Patent Information
- Application Number
- CN202611358147.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-03
- Publication Date
- 2026-11-03
AI Technical Summary
In a relay-extended hierarchical network, when a terminal node initiates a network access request, multiple relay nodes may receive the network access request simultaneously, leading to main channel congestion and network access request collisions.
By acquiring network access information and candidate node numbers, the weight values of signal reception strength and load level are calculated. Differentiated delay reporting times are generated using delay calculation functions to control candidate nodes to report network access information during off-peak hours. Combined with identity verification and permission verification, the network access control process is optimized.
It effectively reduces network access request collisions caused by simultaneous reporting from multiple nodes, alleviates transmission pressure on the main channel, improves network access transmission stability and security, and reduces the probability of network access failure.
Smart Images

Figure CN123035504A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of network communication technology, and in particular to a network access control method and system based on reporting delay. Background Technology
[0002] Terminal nodes are end devices in IoT wireless sensor networks responsible for collecting field data and operating in low-power sleep mode. They rely on the gateway's periodic broadcast to achieve network-wide time synchronization and maintain communication with the network-wide unified frequency hopping timing. After introducing relays to build multi-level networks to expand signal coverage, when a terminal initiates a network entry broadcast, it is easily received and immediately reported by multiple surrounding relays.
[0003] In related technologies, terminal nodes synchronize time with the gateway through heartbeat messages. The gateway broadcasts for a period of T seconds. Devices in the network hop frequencies at a fixed period of t1 (T / t1 is a natural number). Terminal nodes sleep when there is no service and wake up to listen to the broadcast at a period of T seconds.
[0004] Regarding the aforementioned technologies, in a hierarchical network employing relay extension, when a terminal node initiates a network access request, multiple relay nodes may simultaneously receive the same request. If all relay nodes immediately forward the request to the upstream gateway or parent node, a concentrated reporting will occur in the parent link direction, leading to problems such as main channel congestion and network access request collisions. Summary of the Invention
[0005] To reduce the problems of main channel congestion and network access request collisions when relay nodes upload network access requests, this invention provides a network access control method and system based on reporting delay.
[0006] In a first aspect, the present invention provides a network access control method based on reporting delay, which adopts the following technical solution:
[0007] A network access control method based on reporting delay includes:
[0008] Step 1: In response to the network access request signal, obtain network access information and candidate node number group;
[0009] Step 2: Obtain the candidate node number and the corresponding signal reception strength based on the network access information and candidate node number group;
[0010] Step 3: Based on the candidate node number, search the preset device information database for the load level corresponding to the candidate node number;
[0011] Step 4: Substitute the received signal strength into the preset strength weight formula to calculate the strength weight value;
[0012] Step 5: Substitute the load level into the preset load weight formula to calculate the load weight value;
[0013] Step 6: Substitute the intensity weight value and load weight value into the preset delay calculation function to calculate the delay reporting time corresponding to the candidate node number;
[0014] Step 7: Control each candidate node number to report according to the network access information based on the delay reporting time corresponding to the candidate node number;
[0015] Step 8: Obtain the network access status, which includes both network access status and non-network access status;
[0016] Step 80: When the network entry status is "already entered", control the candidate nodes corresponding to each candidate node number to stop reporting;
[0017] Step 81: If the network access status is not network access, continue to step 7.
[0018] By adopting the above technical solution, and by combining the signal reception strength and load level of candidate nodes, respectively calculating the corresponding weight values and generating differentiated delay reporting times through delay calculation functions, each candidate node can complete the network access information reporting in staggered shifts, effectively avoiding the network access request collision problem caused by multiple nodes reporting simultaneously. This can alleviate the transmission pressure of the main channel, reduce channel congestion, and improve the stability of network access transmission.
[0019] Optional, also includes:
[0020] Step 70: After the candidate node reports the network entry information, the network entry information is decomposed to obtain the identity information;
[0021] Step 71: Search for the corresponding identity number in the preset gateway database based on the identity information;
[0022] Step 72: When an identity number exists, retrieve the network access permission status from the gateway database based on the identity number. The network access permission status includes enabled permission status and disabled permission status.
[0023] Step 73: When the network access permission status is in the enabled status, obtain the reported information;
[0024] Step 74: Analyze the reported information to obtain the reporting path and the nearest node number;
[0025] Step 75: Obtain the reverse output path based on the reported path, and obtain the network access result based on the identity information, network access permission status, and network access information;
[0026] Step 76: Output the network entry result according to the reverse output path, and bind the identity information with the nearest node number;
[0027] Step 77: When the network access permission status is disabled, output the network access information and network access permission status according to the reverse output path;
[0028] Step 78: When no identity number exists, output a preset identity anomaly signal according to the reverse output path.
[0029] By adopting the above technical solution, identity information is extracted by disassembling network access information, and identity verification and permission verification are completed in combination with the gateway database. Three scenarios are classified and processed: normal permissions, disabled permissions, and no identity number. At the same time, the reverse output path is matched to complete the result output and identity binding, thereby improving network access security and access standardization.
[0030] Optionally, an optimization method is also included when an identity number does not exist, the method comprising:
[0031] Step 780: When no identity number exists, search for the corresponding associated upload record in the preset historical connection database based on the identity information;
[0032] Step 781: Analyze the associated upload records to obtain the associated upload nodes;
[0033] Step 782: Analyze the reported information to obtain the upload node group;
[0034] Step 783: When there is an intersection between the associated upload node and the upload node group, execute steps 72 to 77;
[0035] Step 784: When there is no intersection between the associated upload node and the upload node group, output a preset identity anomaly signal according to the reverse output path.
[0036] By adopting the above technical solution, for abnormal scenarios without an identity number, historical connection data is introduced for secondary verification. By comparing the correlation between historically associated upload nodes and the current upload node group, the temporary identity abnormality and illegal network access behavior are distinguished, reducing the probability of false network access judgment and improving the fault tolerance and rationality of network access verification.
[0037] Optionally, it also includes a control method for when multiple network access request signals exist simultaneously, the method comprising:
[0038] Step 800: When the network access status is "already accessed", obtain the current terminal number based on the network access information;
[0039] Step 801: Obtain the current node's working information based on the candidate node number;
[0040] Step 802: Parse the current node's working information to obtain the upload terminal number group;
[0041] Step 803: Obtain the current network access information and other network access information based on the current terminal number and the uploaded terminal number group;
[0042] Step 804: Based on the current network access information, control the candidate node corresponding to the candidate node number to stop reporting, and based on the remaining network access information, control the candidate node corresponding to the candidate node number to continue executing steps 1 to 7.
[0043] By adopting the above technical solution, for scenarios with multiple network access requests, the system distinguishes between the current terminal that has completed network access and the other terminals waiting to join the network. It promptly terminates the reporting operation of the already joined nodes to avoid invalid channel occupation, while ensuring that the remaining non-joined nodes can report normally in a time-sharing manner, thus saving channel resources.
[0044] Optionally, it also includes a control method when multiple network access information needs to be reported at the same time, the method including:
[0045] Step 700: Analyze the current node's working information to obtain the upload time curve;
[0046] Step 701: Obtain the upload time corresponding to each upload terminal number based on the upload time curve;
[0047] Step 702: When there are identical upload times, define the identical upload times as synchronous upload times;
[0048] Step 703: Filter out the synchronous upload number from the upload terminal number group based on the synchronous upload time;
[0049] Step 704: Obtain the synchronized network access information based on the synchronized upload number;
[0050] Step 705: Analyze the synchronized network access information to obtain the network access permission value;
[0051] Step 706: Sort the synchronous upload numbers in descending order of network access permission values to obtain sequential upload number groups;
[0052] Step 707: Based on the delayed reporting time, sum up the delayed reporting times corresponding to each synchronous upload number in the sequential upload number group to obtain the sequential reporting time;
[0053] Step 708: Control the candidate nodes to report the synchronous network access information corresponding to each synchronous upload number in the sequential upload number group according to the sequential upload time.
[0054] By adopting the above technical solution, for conflict scenarios of multiple nodes reporting synchronously, synchronous uploading nodes are identified by uploading time curves, and ordered uploading sequence is generated by combining network access permission priority sorting and accumulating delay time. Through the mechanism of prioritizing high-privilege nodes to enter the network, channel collision and congestion problems caused by synchronous reporting are reduced.
[0055] Optional, also includes:
[0056] Step 7070: Match the sequentially reported times with the upload time curve to obtain the continued synchronous upload time point;
[0057] Step 7071: Find the maximum number of consecutive synchronous uploads from the upload time curve based on the consecutive synchronous upload time points;
[0058] Step 7072: Obtain the current number of synchronized uploads based on the synchronized upload number;
[0059] Step 7073: When the maximum number of continuous synchronous uploads is greater than the current number of synchronous uploads, the candidate nodes are directly controlled to report according to the network access information based on the delay reporting time corresponding to the candidate node number;
[0060] Step 7074: When the maximum number of continuous synchronous uploads is less than the current number of synchronous uploads, the candidate nodes are controlled to report the synchronous network entry information corresponding to each synchronous upload number in the sequential upload number group according to the sequential reporting time.
[0061] By adopting the above technical solution, the reporting mode is adaptively selected by comparing the historical maximum continuous synchronous upload capacity with the current number of synchronous upload nodes. When the channel capacity is sufficient, the conventional delayed reporting mode is used to improve the network access efficiency, and the ordered sequential reporting mode is used when the channel capacity is insufficient. This achieves adaptive switching of the network access reporting mode, taking into account both network access efficiency and channel transmission stability.
[0062] Optionally, it also includes an optimization method when the maximum number of continuous synchronous uploads is greater than the current number of synchronous uploads, the method including:
[0063] Step 70740: When the maximum number of continuous synchronous uploads is greater than the current number of synchronous uploads, the synchronous upload number corresponding to the maximum number of continuous synchronous uploads is further accumulated according to the delayed reporting time to obtain the delayed reporting time;
[0064] Step 70741: Use the delayed reporting time as the sequential reporting time to execute steps 7070 to 7073.
[0065] By adopting the above technical solution, in scenarios with sufficient channel capacity, the reporting timing is optimized by double-accumulation delay, the reporting interval of multiple nodes is further refined, the low-probability reporting conflict between adjacent nodes is avoided, the stability of multiple nodes entering the network in batches is further improved, and channel interference is reduced.
[0066] Optionally, a control method for verifying whether the signal reception strength is normal is also included, the method comprising:
[0067] Step 20: Obtain the candidate node number and the real-time signal strength corresponding to each candidate node number based on the network access information and the candidate node number group;
[0068] Step 21: When the real-time signal reception strength falls within the preset normal signal strength range, define the real-time signal strength as the signal reception strength and execute steps 3 to 8;
[0069] Step 22: When the real-time signal reception strength does not fall within the preset normal signal strength range, output the preset signal strength abnormal signal.
[0070] By adopting the above technical solution, and performing pre-verification of the real-time signal reception strength of nodes, candidate nodes with abnormal signals are screened out and abnormal prompts are output in a timely manner. This avoids calculating delay time based on abnormal and distorted signal strength data, eliminates problems such as reporting timing disorder and network access failure caused by data deviation, and ensures the accuracy and reliability of delay reporting calculation.
[0071] Optional, also includes:
[0072] The intensity weighting formula is as follows: ,in, The RSSI represents the intensity weight value. max RSSI represents the preset maximum effective signal strength. min This represents the preset minimum effective signal strength, and x represents the received signal strength.
[0073] The load weight formula is: ,in, N represents the load weight value. max y represents the maximum number of descendant nodes that a relay node is allowed to have in the system, and y represents the load level.
[0074] The delay calculation function is: ,in, Representatives reported the delay. Represents the intensity weight value. This represents the load weight value, where α is the preset signal strength weighting coefficient and β is the preset relay equipment load weighting coefficient.
[0075] By adopting the above technical solution, the node signal strength and load level are converted into delay reporting time through quantified weight formulas and delay calculation functions, so that the delay strategy fits the actual working state of each node, thereby reducing the probability of channel congestion and request collision.
[0076] Secondly, this invention provides a network access control system based on reporting delay, employing the following technical solution:
[0077] A network access control system based on reporting delay includes:
[0078] The acquisition module is used to acquire network access information, candidate node number groups, network access status, reported information, and current node working information;
[0079] The memory is used to store the program of the network access control method based on reporting delay as described above;
[0080] The processor loads and executes programs from memory.
[0081] By adopting the above technical solutions and building a network access control system through a modular architecture, the system can complete the acquisition of network access data in all dimensions by relying on the acquisition module. With the cooperation of the memory and processor to run the self-developed network access control program, it can automatically complete the entire process of delay calculation, peak reporting, permission verification and anomaly handling. The system has a high degree of integration and strong automation, and can stably adapt to multi-node, high-concurrency relay network access scenarios.
[0082] In summary, the present invention has at least one of the following beneficial technical effects:
[0083] 1. By calculating the differentiated delay reporting time based on signal reception strength and load level, and combining it with the multi-scenario adaptive peak-shifting reporting mode, the channel collision problem caused by multiple relay nodes simultaneously initiating network access requests is reduced, and the channel transmission pressure is distributed.
[0084] 2. By controlling abnormal node access through identity verification and hierarchical permission management, network access security and channel resource utilization are improved, the stability of multi-node network access is enhanced, and the probability of network access failure and channel congestion risk are reduced. Attached Figure Description
[0085] Figure 1 This is a flowchart of a network access control method based on reporting delay in an embodiment of this application;
[0086] Figure 2 This is a schematic diagram of a terminal device sending a network access request signal and having it received by a relay node in an embodiment of this application;
[0087] Figure 3 This is a schematic diagram of a relay node uploading a network request signal in an embodiment of this application. Detailed Implementation
[0088] The present invention will now be described in further detail with reference to the accompanying drawings and embodiments.
[0089] This invention discloses a network access control method based on reporting delay. (Refer to...) Figure 1 A network access control method based on reporting delay includes:
[0090] Step 1: In response to the network access request signal, obtain network access information and candidate node number group.
[0091] Reference Figure 2 A network access request signal is a trigger command sent by a terminal device to request to join a network. The network access request signal is actively sent by the terminal device when it needs to access the network, and is received by the current network node and then transmitted to the control system.
[0092] Network access information refers to various related information carried by a terminal device when requesting network access, including device identifier, device type, and network access authentication code. This information is obtained by parsing the network access request data packet sent by the terminal device.
[0093] The candidate node number group refers to the set of numbers of all candidate nodes that can currently receive the network access request and assist the terminal device in completing the network access process. The candidate node number group is obtained by receiving the network access request signal broadcast by the terminal device, recording the numbers of all network nodes that received the signal, and then summarizing them.
[0094] Step 2: Based on the network access information and the candidate node number group, obtain the number of each candidate node and the signal reception strength corresponding to each candidate node number.
[0095] Signal reception strength (RSS) refers to the wireless signal power value of the network access request signal received by a candidate node from a terminal device. RSSS is obtained by reading the signal power indication value recorded by each candidate node when it receives the network access request signal.
[0096] Step 3: Based on the candidate node number, search the preset device information database for the load level corresponding to the candidate node number.
[0097] A device information database is a database that pre-stores information such as device attributes, operating status, and load conditions for each node in a network. The device information database is created by inputting and continuously updating data such as device parameters, performance indicators, and operating conditions of each node during network deployment.
[0098] Load level refers to the number of terminal devices currently connected to a candidate node. Load level is obtained by using the candidate node number as a search term and matching it with the current load parameters of that node in the device information database.
[0099] Step 4: Substitute the received signal strength into the preset strength weight formula to calculate the strength weight value.
[0100] The strength weighting formula is a mathematical expression used to map signal received strength to weight values, quantifying the impact of signal quality from different candidate nodes on delay calculation. The strength weighting formula is pre-defined by staff based on the relationship between signal strength and communication quality and stored in the control system.
[0101] The strength weight value is a quantized numerical value used to characterize the signal quality of a candidate node, calculated using the strength weight formula. The strength weight value is obtained by substituting the received signal strength into the strength weight formula.
[0102] Step 5: Substitute the load level into the preset load weight formula to calculate the load weight value.
[0103] The load weighting formula is a mathematical expression used to map load levels to weight values, quantifying the impact of the load status of different candidate nodes on latency calculation. The load weighting formula is pre-defined by staff based on the relationship between load levels and available node capacity and stored in the control system.
[0104] The load weight value is a quantified value used to characterize the current load state of a candidate node, calculated using the load weight formula. The load weight value is obtained by substituting the load level into the load weight formula for calculation.
[0105] Step 6: Substitute the intensity weight value and load weight value into the preset delay calculation function to calculate the delay reporting time corresponding to the candidate node number.
[0106] The delay calculation function is a mathematical model used to map the signal strength weight value and load weight value of candidate nodes to a delayed reporting time. This function is pre-set by staff based on signal quality and load balancing requirements, and is used to differentiate the reporting timing of each candidate node.
[0107] The delayed reporting time refers to the length of time each candidate node needs to wait after receiving a network access request; that is, the delay between receiving the request and reporting the request. The delayed reporting time is calculated by substituting the strength weight value and load weight value into the delay calculation function. A longer delayed reporting time indicates that the candidate node reports later.
[0108] Step 7: Control each candidate node number to report according to the network access information based on the delay reporting time corresponding to the candidate node number.
[0109] Reference Figure 3The system controls each candidate node number to report according to the network access information based on the delay reporting time corresponding to the candidate node number. This allows candidate nodes that receive different information from a terminal to report in staggered shifts, reducing problems such as main channel congestion, network access request collisions, packet loss, and repeated retransmissions by the terminal.
[0110] Step 8: Obtain the network access status, which includes both network access status and non-network access status.
[0111] Network access status refers to the determination result of whether a terminal device has successfully accessed the network. Network access status is obtained by reading the network access confirmation response returned by the gateway or coordinator.
[0112] "Network access status" refers to the determination result that the terminal device has successfully accessed the network and completed registration. This status is determined by receiving a network access confirmation response message from the gateway, and the response message contains a success identifier.
[0113] "Not yet registered" refers to the determination that the terminal device has not successfully connected to the network and has not yet completed registration. This status is determined when no network access confirmation response is received within a preset timeout period, or when the received response message contains a failure flag.
[0114] Step 80: When the network entry status is "already entered", control the candidate nodes corresponding to each candidate node number to stop reporting.
[0115] When a terminal device has successfully joined the network, a stop reporting command is sent to all candidate nodes to prevent candidate nodes from continuing to occupy network resources.
[0116] Step 81: If the network access status is not network access, continue to step 7.
[0117] If the terminal device has not yet successfully joined the network, continue to execute step 7, that is, each candidate node continues to report according to its own delayed reporting time until it successfully joins the network.
[0118] This also includes:
[0119] Step 70: After the candidate node reports the network entry information, the network entry information is decomposed to obtain the identity information.
[0120] Identity information refers to the unique identification data of a terminal device extracted from network access information, including device serial number, MAC address, or device ID. Identity information is obtained by parsing the network access information data packets reported by candidate nodes according to a preset data format and extracting the content of the identity fields.
[0121] Step 71: Search for the corresponding identity number in the preset gateway database based on the identity information.
[0122] A gateway database is a database pre-stored in gateway devices that records the identity information of legitimate terminal devices and their corresponding permissions. The gateway database is created by inputting and storing the identity information and permission configurations of legitimate devices during network deployment.
[0123] The identification number refers to the unique registration number of the terminal device corresponding to the identification information in the gateway database. The identification number is obtained by using the identification information as a search term and performing a matching query in the gateway database.
[0124] Step 72: When an identity number exists, retrieve the network access permission status from the gateway database based on the identity number. The network access permission status includes enabled permission status and disabled permission status.
[0125] Network access permission status refers to the permission identifier of whether the terminal device corresponding to the identity number is allowed to access the network. The network access permission status is obtained by querying the permission status field corresponding to the identity number in the gateway database using the identity number as the search term.
[0126] The startup permission status refers to the determination result that a terminal device is allowed to access the network and that the current permission is enabled. The startup permission status is determined by reading the value of the permission status field as "enabled".
[0127] The disabled permission status refers to the determination result that the terminal device is not allowed to access the network and its current permission is disabled. The disabled permission status is determined by reading the value of the permission status field as "disabled".
[0128] Step 73: When the network access permission status is in the start permission status, obtain the reported information.
[0129] Reported information refers to the complete data packet carried by a candidate node when reporting its network entry information to the gateway. This includes the network entry information itself and the transmission routing data added by the candidate node. Reported information is obtained directly after receiving the data packet reported by the candidate node.
[0130] Step 74: Analyze the reported information to obtain the reporting path and the nearest node number.
[0131] The reporting path refers to the complete sequence of nodes traversed by network access information from the terminal device through various candidate nodes to finally reach the gateway. The reporting path is obtained by parsing the routing record field in the reported information and extracting the node number of each hop the information passes through.
[0132] The nearest node number refers to the number of the first candidate node that the network entry information passes through before being reported to the gateway. The nearest node number is obtained by extracting the number of the lowest-level node from the reporting path. For example, if the network entry information passes through candidate nodes A1, A2, and A3 in the reporting path before being reported to the gateway, then A1 is the nearest node number.
[0133] Step 75: Obtain the reverse output path based on the reported path, and obtain the network access result based on the identity information, network access permission status, and network access information.
[0134] The reverse output path refers to the sequence of nodes traversed from the gateway back to the terminal device along the reporting path. The reverse output path is obtained by reversing the order of the nodes in the reporting path.
[0135] The network access result refers to the response data packet generated by the gateway after comprehensively processing the identity information, network access permission status, and network access information in response to the terminal device's network access request. This includes the determination of whether network access was successful and the assigned temporary address. The network access result is obtained by comparing the authentication data of the network access information with the authentication rules corresponding to that identity information in the gateway's database, and combining this with the network access permission status (which is currently active), to generate a response data packet containing an indication of successful or failed network access.
[0136] Step 76: Output the network entry result according to the reverse output path, and bind the identity information with the nearest node number.
[0137] The network access result is forwarded back to the terminal device level by level according to the reverse output path. The network access result data packet is sent to the last node in the reverse output path, and that node continues to forward it to the next node in the path until it reaches the terminal device. Binding the identity information with the nearest node number means associating and storing the identity information of the terminal device with the number of the last-level candidate node in its reporting path, which is used to determine the access location of the terminal in subsequent communications.
[0138] Step 77: When the network access permission status is disabled, output the network access information and network access permission status according to the reverse output path.
[0139] When the terminal device's permission status is disabled, the network access information and the disabled permission status identifier are forwarded back to the terminal device level by level according to the reverse output path to notify the device that the network access request has been rejected and the reason therefor.
[0140] The reverse output path is obtained in the same way as in step 75, by reversing the order of the nodes in the reported path.
[0141] Step 78: When no identity number exists, output a preset identity anomaly signal according to the reverse output path.
[0142] An identity anomaly signal is an alarm message used to indicate that the identity information of a terminal device does not exist in the gateway database. This signal is a pre-set alarm message. When the identity information cannot be found in the gateway database, the system invokes this preset signal and sends it to the terminal device level by level along the reverse output path to notify the device that identity authentication has failed.
[0143] This also includes an optimization method when no identity number exists, which includes:
[0144] Step 780: When no identity number exists, search for the corresponding associated upload record in the preset historical connection database based on the identity information.
[0145] A historical connection database is a database that pre-stores historical network access records and node association information of terminal devices. It is formed by continuously recording data such as the identity information, traversed node links, and access time of each terminal device during network operation.
[0146] Associated upload records refer to all historical network access records in the historical connection database that are associated with the current identity information. Associated upload records are obtained by using the identity information as a search term and then matching and querying the historical connection database for the historical connection records corresponding to that identity.
[0147] Step 781: Analyze the associated upload records to obtain the associated upload nodes.
[0148] Associated upload nodes refer to the set of node numbers extracted from associated upload records that the terminal device has traversed during its historical network access process. Associated upload nodes are obtained by parsing the routing path field in the associated upload records, extracting the node numbers involved in each historical record, and then deduplicating and merging all extracted node numbers.
[0149] Step 782: Analyze the reported information to obtain the upload node group.
[0150] The upload node group refers to the set of candidate node numbers at each level that the network entry information traversed from the terminal device to the gateway, extracted from the currently reported information. The upload node group is obtained by parsing the routing record fields in the reported information obtained in the previous step, extracting the node number of each hop the information passed through, and then summing up all the numbers.
[0151] Step 783: When there is an intersection between the associated upload node and the upload node group, execute steps 72 to 77.
[0152] When there is an intersection between the associated upload node and the upload node group, it indicates that the terminal device currently reports that there are historical nodes that it has previously connected to, and the device identity has a certain degree of credibility. Therefore, steps 72 to 77 are executed.
[0153] The existence of intersection means that the associated upload node and the upload node group have at least one node number that is the same, that is, there is an overlap in the set of node numbers of the two.
[0154] Step 784: When there is no intersection between the associated upload node and the upload node group, output a preset identity anomaly signal according to the reverse output path.
[0155] When there is no intersection between the associated upload node and the upload node group, it means that the node currently reported by the terminal device is completely different from its historical connection node. The device's identity credibility is low, and there is a risk of forgery or abnormal access. Therefore, a preset identity abnormality signal is output according to the reverse output path.
[0156] No intersection means that no node number is the same between the associated upload node and the upload node group, that is, the node number sets of the two have no overlap.
[0157] This also includes a control method for when multiple network access request signals exist simultaneously, the method comprising:
[0158] Step 800: When the network access status is "already accessed", obtain the current terminal number based on the network access information.
[0159] The current terminal number refers to the unique identifier of a terminal device that has successfully joined the network. The current terminal number is obtained by parsing and extracting the terminal identifier field from the network access information.
[0160] Step 801: Obtain the current node's working information based on the candidate node number.
[0161] Current node working information refers to the set of status data for all reported tasks currently being processed by the candidate node, including task records of each terminal device reporting network access information through this candidate node. Current node working information is obtained by using the candidate node number as a search term to read all reported task data currently being executed by the node from the node task queue or working status record table stored in the system.
[0162] Step 802: Parse the current node's working information to obtain the upload terminal number group.
[0163] The "Upload Terminal Number Group" refers to the set of terminal device numbers recorded in the current node's work information that are currently reporting network access information through this candidate node. The Upload Terminal Number Group is obtained by parsing each task record in the current node's work information, extracting the terminal device number corresponding to each reporting task, and then summing up all the numbers.
[0164] Step 803: Obtain the current network access information and other network access information based on the current terminal number and the uploaded terminal number group.
[0165] Current network access information refers to the network access information used by the terminal device corresponding to the current terminal number to successfully access the network. This information is obtained by matching the current terminal number with the uploaded terminal number group and filtering out the reporting task record corresponding to that number from the current node's work information.
[0166] The remaining network access information refers to the network access information of other terminal devices in the uploaded terminal number group besides the current terminal number. This information is obtained by removing the current terminal number from the uploaded terminal number group and extracting the reporting task records corresponding to the remaining numbers.
[0167] Step 804: Based on the current network access information, control the candidate node corresponding to the candidate node number to stop reporting, and based on the remaining network access information, control the candidate node corresponding to the candidate node number to continue executing steps 1 to 7.
[0168] When a terminal has successfully joined the network, the control candidate nodes stop reporting the network entry information corresponding to the current terminal; for other terminals that have not yet joined the network, the complete network entry process continues. For candidate nodes matching the current terminal number, a stop reporting command is issued to the corresponding candidate node; for candidate nodes corresponding to other terminal numbers, steps 1 to 7 are executed.
[0169] This also includes a control method for when multiple network access information needs to be reported at the same time, the method including:
[0170] Step 700: Analyze the current node's working information to obtain the upload time curve.
[0171] The upload time curve refers to the distribution curve of the time points when candidate nodes report network access information on various terminal devices within the current working cycle. The upload time curve is obtained by extracting the planned upload time points corresponding to each reporting task from the current node's working information, arranging them in chronological order, and plotting them as a time series graph.
[0172] Step 701: Obtain the upload time corresponding to each upload terminal number based on the upload time curve.
[0173] Upload time refers to the planned time point at which the terminal device corresponding to each upload terminal number reports its network access information to the candidate node. Upload time is obtained by reading the reporting time point corresponding to each upload terminal number from the upload time curve.
[0174] Step 702: When there are identical upload times, define the identical upload times as synchronous upload times.
[0175] Synchronous upload time refers to the time at which multiple terminal devices plan to report network access information to the candidate node at the same time. Synchronous upload time is obtained by comparing the upload times corresponding to the various upload terminal IDs and filtering out upload times with identical values.
[0176] Step 703: Filter out the synchronous upload number from the upload terminal number group based on the synchronous upload time.
[0177] Synchronous upload number refers to the set of numbers of all terminal devices that reported at the corresponding synchronous upload time. The synchronous upload number is obtained by using the synchronous upload time as a filter condition and finding all terminal numbers in the upload terminal number group whose upload time matches the synchronous upload time.
[0178] Step 704: Obtain the synchronized network access information based on the synchronized upload number.
[0179] Synchronous network access information refers to the set of network access information data that the terminal device corresponding to the synchronous upload number needs to report during the synchronous upload time. Synchronous network access information is obtained by using each synchronous upload number as a search term, matching and searching for the corresponding network access information records in the current node's work information, and then summarizing the results.
[0180] Step 705: Analyze the synchronized network access information to obtain the network access permission value.
[0181] Network access permission value refers to a numerical parameter used to measure the priority of each terminal device in accessing the network. The network access permission value is a priority level value calculated by parsing and quantifying fields such as identity information, device type, and service quality level in the synchronized network access information, and comprehensively calculating it according to preset permission evaluation rules.
[0182] Step 706: Sort the synchronous upload numbers in descending order of network access permission values to obtain sequential upload number groups.
[0183] A sequential upload number group refers to a sequence of synchronous upload numbers arranged in descending order of their network access permission values. The sequential upload number group is formed by associating each synchronous upload number with its corresponding network access permission value, arranging them in descending order of permission value, and using the sorted number sequence as the sequential upload number group.
[0184] Step 707: Based on the delayed reporting time, sum up the delayed reporting times corresponding to each synchronous upload number in the sequential upload number group to obtain the sequential reporting time.
[0185] Sequential reporting time refers to the actual reporting time sequence determined after reordering the synchronous upload numbers. Sequential reporting time is obtained by setting the reporting time of the first number in the sequential upload number group as the original delayed reporting time, and then adding the corresponding delayed reporting time to the reporting time of each subsequent number. In other words, it is obtained by accumulating and staggering the reporting times one by one.
[0186] For example, if the delayed reporting time for synchronously uploaded numbers A, B, and C is T, then the sequential reporting time is: A reports at time T, B reports at time 2T, and C reports at time 3T.
[0187] Step 708: Control the candidate nodes to report the synchronous network access information corresponding to each synchronous upload number in the sequential upload number group according to the sequential upload time.
[0188] Control commands are sent to candidate nodes, instructing them to report the synchronization access information corresponding to each number in the numbered group in sequence according to the reporting time. This avoids channel conflicts and data collisions caused by multiple terminals reporting simultaneously. The control method involves packaging the sequential reporting time sequence and the synchronization access information corresponding to each number into a package and sending it to the candidate nodes. The candidate nodes then perform the reporting operations in the specified order.
[0189] This also includes:
[0190] Step 7070: Match the sequentially reported times with the upload time curve to obtain the continued synchronous upload time point.
[0191] The "continued synchronous upload time point" refers to the time point identified after substituting the sequential report time into the upload time curve, indicating that synchronous reporting processing needs to continue. The continued synchronous upload time point is determined by using the sequential report time as a query value to check if that time point has been occupied by other planned reporting tasks in the upload time curve. If it has been occupied, that time point is marked as the continued synchronous upload time point.
[0192] Step 7071: Find the maximum number of consecutive synchronous uploads from the upload time curve based on the consecutive synchronous upload time points.
[0193] The maximum number of concurrent synchronous uploads refers to the maximum number of synchronous reporting terminals that can be accommodated on the upload time curve at the concurrent synchronous upload time point. The maximum number of concurrent synchronous uploads is calculated by counting the number of reporting tasks already present on the upload time curve at that moment, and then combining this with the network transmission capacity at that moment to determine the maximum number of concurrent reports that can be accommodated.
[0194] Step 7072: Obtain the current number of synchronized uploads based on the synchronized upload number.
[0195] The current number of synchronized uploads refers to the total number of synchronized upload IDs that need to be processed. This number is obtained by counting the IDs within the synchronized upload ID group.
[0196] Step 7073: When the maximum number of continuous synchronous uploads is greater than the current number of synchronous uploads, the candidate nodes are directly controlled to report according to the network access information based on the delay reporting time corresponding to the candidate node number.
[0197] When the maximum number of concurrent synchronous uploads is greater than the current number of concurrent synchronous uploads, it means that the network has sufficient capacity to accommodate all synchronous reporting tasks at the current time. There is no need to arrange them in order; the reporting can be performed directly according to the original delayed reporting time of each candidate node.
[0198] Step 7074: When the maximum number of continuous synchronous uploads is less than the current number of synchronous uploads, the candidate nodes are controlled to report the synchronous network entry information corresponding to each synchronous upload number in the sequential upload number group according to the sequential reporting time.
[0199] When the maximum number of concurrent synchronous uploads is less than the current number of synchronous uploads, it means that the network capacity at the current time is insufficient to accommodate all synchronous reporting tasks. Therefore, according to the reporting time generated in steps 706 and 707, the candidate nodes are controlled to perform the reporting operation in sequence.
[0200] This also includes an optimization method for when the maximum number of concurrent uploads exceeds the current number of concurrent uploads. This method includes:
[0201] Step 70740: When the maximum number of continuous synchronous uploads is greater than the current number of synchronous uploads, the synchronous upload number corresponding to the maximum number of continuous synchronous uploads is further accumulated according to the delayed reporting time to obtain the delayed reporting time.
[0202] The delayed reporting time refers to the new reporting time sequence obtained by further summing the delayed reporting times of each number in the synchronized upload number group after the initial summation and sorting, when the maximum number of continuous synchronized uploads exceeds the current number of synchronized uploads. The delayed reporting time is obtained by using the already allocated reporting times for each synchronized upload number corresponding to the maximum number of continuous synchronized uploads as a baseline, and then sequentially summing the corresponding delayed reporting time for each number.
[0203] When the maximum number of concurrent uploads exceeds the current number of concurrent uploads, the reporting time corresponding to the current sequential upload number group will be further delayed to prepare for the next cycle matching, thus ensuring continuous optimization of the network access process.
[0204] Step 70741: Use the delayed reporting time as the sequential reporting time to execute steps 7070 to 7073.
[0205] The calculated delayed reporting time is used as the new sequential reporting time, and steps 7070 to 7073 are executed again to complete the network capacity matching verification, ensuring that each synchronous reporting process conforms to the actual carrying capacity of the current network and avoiding reporting conflicts caused by network capacity fluctuations.
[0206] This also includes a control method for verifying whether the signal reception strength is normal, the method comprising:
[0207] Step 20: Obtain the candidate node number and the real-time signal strength corresponding to each candidate node number based on the network access information and the candidate node number group.
[0208] Real-time signal strength refers to the wireless signal power value of the network access request signal actually received by each candidate node at the current moment. It is used to distinguish it from the signal reception strength obtained in step 2 and is more real-time signal strength data used for verification. Real-time signal strength is obtained by rereading the signal power indication value recorded by each candidate node when it receives the network access request signal at the execution time of step 20.
[0209] Step 21: When the real-time signal reception strength falls within the preset normal signal strength range, define the real-time signal strength as the signal reception strength and execute steps 3 to 8.
[0210] The normal signal strength range refers to the lower and upper limits of the permissible fluctuation range of wireless signal strength, used to determine whether the current signal quality is at an acceptable level. The normal signal strength range is preset by staff based on the equipment's communication sensitivity, the on-site electromagnetic environment, and communication protocol requirements.
[0211] When the real-time signal strength is between the lower and upper limits of the normal signal strength range, it indicates that the current signal strength is normal and there is no abnormal attenuation or interference. The real-time signal strength is then used as the signal reception strength for subsequent calculations, and steps 3 to 8 are executed sequentially.
[0212] Step 22: When the real-time signal reception strength does not fall within the preset normal signal strength range, output the preset signal strength abnormal signal.
[0213] An abnormal signal strength signal is an alarm message used to indicate that the current signal strength exceeds the normal range, which may indicate equipment failure or environmental interference. This signal strength abnormality signal is a pre-set alarm message. When the real-time signal strength falls below the lower limit of the normal range or exceeds the upper limit, the system invokes and outputs this preset signal to notify relevant personnel to check the signal reception.
[0214] The signal strength abnormality signal is output in two ways: it is sent to a local display device to display alarm information, or it is uploaded to a remote monitoring platform via a communication module for recording and processing.
[0215] This also includes:
[0216] The intensity weight formula is ,in, The RSSI represents the intensity weight value. max RSSI represents the preset maximum effective signal strength. min represents the preset minimum effective signal strength, and x represents the received signal strength.
[0217] Maximum effective signal strength refers to the highest acceptable signal strength threshold that meets the communication requirements between the terminal device and the candidate node. The maximum effective signal strength is preset by staff based on the upper limit of the receiving sensitivity of the device's communication module and the requirements of the system communication protocol. A stronger signal strength results in better channel quality, higher forwarding priority, lower latency, and priority access; conversely, a weaker signal strength results in poorer channel quality, lower forwarding priority, and greater latency.
[0218] The minimum effective signal strength refers to the lowest acceptable signal strength threshold for normal decoding and reception that meets the communication requirements between the terminal device and the candidate node. The minimum effective signal strength is pre-set by the operator based on the lower limit of the receiving sensitivity of the device's communication module and the requirements of the system communication protocol.
[0219] The load weight formula is ,in, N represents the load weight value. max y represents the maximum number of descendant nodes that a relay node is allowed to have in the system, and y represents the load level.
[0220] The maximum number of descendant nodes refers to the maximum number of terminal devices and other relay nodes that a relay node can support in the current network structure. The maximum number of descendant nodes is determined by staff based on the relay node's hardware processing capabilities, available bandwidth resources, and the system's network load balancing rules. More descendant nodes result in a heavier subnet load and greater forwarding pressure; to avoid congestion, latency should be appropriately increased.
[0221] The delay calculation function is: ,in, Representatives reported the delay. Represents the intensity weight value. This represents the load weight value, where α is the preset signal strength weighting coefficient and β is the preset relay equipment load weighting coefficient.
[0222] Based on the same inventive concept, embodiments of the present invention provide a network access control system based on reporting delay.
[0223] A network access control system based on reporting delay includes:
[0224] The acquisition module is used to acquire network access information, candidate node number groups, network access status, reported information, and current node working information;
[0225] The memory is used to store a program for a network access control method based on reporting delay;
[0226] The processor loads and executes the program in memory.
[0227] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the above-described division of functional modules is used as an example. In practical applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. The specific working process of the system, device, and unit described above can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.
[0228] The above description is merely a preferred embodiment of the present invention. The scope of protection of the present invention is not limited to the above embodiments. All technical solutions falling within the scope of the present invention's concept are within the scope of protection of the present invention. It should be noted that for those skilled in the art, any improvements and modifications made without departing from the principles of the present invention should also be considered within the scope of protection of the present invention.
Claims
1. A network access control method based on reporting delay, characterized in that, include: Step 1: In response to the network access request signal, obtain network access information and candidate node number group; Step 2: Obtain the candidate node number and the corresponding signal reception strength based on the network access information and candidate node number group; Step 3: Based on the candidate node number, search the preset device information database for the load level corresponding to the candidate node number; Step 4: Substitute the received signal strength into the preset strength weight formula to calculate the strength weight value; Step 5: Substitute the load level into the preset load weight formula to calculate the load weight value; Step 6: Substitute the intensity weight value and load weight value into the preset delay calculation function to calculate the delay reporting time corresponding to the candidate node number; Step 7: Control each candidate node number to report according to its corresponding delay reporting time and network access information; Step 8: Obtain the network access status, which includes both network access status and non-network access status; Step 80: When the network entry status is "already entered", control the candidate nodes corresponding to each candidate node number to stop reporting; Step 81: If the network access status is not network access, continue to step 7.
2. The network access control method based on reporting delay according to claim 1, characterized in that, Also includes: Step 70: After the candidate node reports the network entry information, the network entry information is decomposed to obtain the identity information; Step 71: Search for the corresponding identity number in the preset gateway database based on the identity information; Step 72: When an identity number exists, retrieve the network access permission status from the gateway database based on the identity number. The network access permission status includes enabled permission status and disabled permission status. Step 73: When the network access permission status is in the enabled status, obtain the reported information; Step 74: Analyze the reported information to obtain the reporting path and the nearest node number; Step 75: Obtain the reverse output path based on the reported path, and obtain the network access result based on the identity information, network access permission status, and network access information; Step 76: Output the network entry result according to the reverse output path, and bind the identity information with the nearest node number; Step 77: When the network access permission status is disabled, output the network access information and network access permission status according to the reverse output path; Step 78: When no identity number exists, output a preset identity anomaly signal according to the reverse output path.
3. The network access control method based on reporting delay according to claim 2, characterized in that, It also includes an optimization method when no identity number exists, which includes: Step 780: When no identity number exists, search for the corresponding associated upload record in the preset historical connection database based on the identity information; Step 781: Analyze the associated upload records to obtain the associated upload nodes; Step 782: Analyze the reported information to obtain the upload node group; Step 783: When there is an intersection between the associated upload node and the upload node group, execute steps 72 to 77; Step 784: When there is no intersection between the associated upload node and the upload node group, output a preset identity anomaly signal according to the reverse output path.
4. The network access control method based on reporting delay according to claim 1, characterized in that, It also includes a control method for when multiple network access request signals exist simultaneously, the method comprising: Step 800: When the network access status is "already accessed", obtain the current terminal number based on the network access information; Step 801: Obtain the current node's working information based on the candidate node number; Step 802: Parse the current node's working information to obtain the upload terminal number group; Step 803: Obtain the current network access information and other network access information based on the current terminal number and the uploaded terminal number group; Step 804: Based on the current network access information, control the candidate node corresponding to the candidate node number to stop reporting, and based on the remaining network access information, control the candidate node corresponding to the candidate node number to continue executing steps 1 to 7.
5. The network access control method based on reporting delay according to claim 4, characterized in that, It also includes a control method for when multiple network access information needs to be reported at the same time, the method including: Step 700: Analyze the current node's working information to obtain the upload time curve; Step 701: Obtain the upload time corresponding to each upload terminal number based on the upload time curve; Step 702: When there are identical upload times, define the identical upload times as synchronous upload times; Step 703: Filter out the synchronous upload number from the upload terminal number group based on the synchronous upload time; Step 704: Obtain the synchronized network access information based on the synchronized upload number; Step 705: Analyze the synchronized network access information to obtain the network access permission value; Step 706: Sort the synchronous upload numbers in descending order of network access permission values to obtain sequential upload number groups; Step 707: Based on the delayed reporting time, sum up the delayed reporting times corresponding to each synchronous upload number in the sequential upload number group to obtain the sequential reporting time; Step 708: Control the candidate nodes to report the synchronous network access information corresponding to each synchronous upload number in the sequential upload number group according to the sequential upload time.
6. The network access control method based on reporting delay according to claim 5, characterized in that, Also includes: Step 7070: Match the sequentially reported times with the upload time curve to obtain the continued synchronous upload time point; Step 7071: Find the maximum number of consecutive synchronous uploads from the upload time curve based on the consecutive synchronous upload time points; Step 7072: Obtain the current number of synchronized uploads based on the synchronized upload number; Step 7073: When the maximum number of continuous synchronous uploads is greater than the current number of synchronous uploads, the candidate nodes are directly controlled to report according to the network entry information based on the delay reporting time corresponding to the candidate node number; Step 7074: When the maximum number of continuous synchronous uploads is less than the current number of synchronous uploads, the candidate nodes are controlled to report the synchronous network entry information corresponding to each synchronous upload number in the sequential upload number group according to the sequential reporting time.
7. The network access control method based on reporting delay according to claim 6, characterized in that, It also includes an optimization method for when the maximum number of continuous synchronous uploads is greater than the current number of synchronous uploads, which includes: Step 70740: When the maximum number of continuous synchronous uploads is greater than the current number of synchronous uploads, the synchronous upload number corresponding to the maximum number of continuous synchronous uploads is further accumulated according to the delayed reporting time to obtain the delayed reporting time; Step 70741: Use the delayed reporting time as the sequential reporting time to execute steps 7070 to 7073.
8. The network access control method based on reporting delay according to claim 7, characterized in that, It also includes a control method for verifying whether the signal reception strength is normal, the method comprising: Step 20: Obtain the candidate node number and the real-time signal strength corresponding to each candidate node number based on the network access information and the candidate node number group; Step 21: When the real-time signal reception strength falls within the preset normal signal strength range, define the real-time signal strength as the signal reception strength and execute steps 3 to 8; Step 22: When the real-time signal reception strength does not fall within the preset normal signal strength range, output the preset signal strength abnormal signal.
9. The network access control method based on reporting delay according to claim 1, characterized in that: The intensity weighting formula is as follows: ,in, The RSSI represents the intensity weight value. max RSSI represents the preset maximum effective signal strength. min This represents the preset minimum effective signal strength, and x represents the received signal strength. The load weight formula is: ,in, N represents the load weight value. max y represents the maximum number of descendant nodes that a relay node is allowed to have in the system, and y represents the load level. The delay calculation function is: ,in, Representatives reported the delay. Represents the intensity weight value. This represents the load weight value, where α is the preset signal strength weighting coefficient and β is the preset relay equipment load weighting coefficient.
10. A network access control system based on reporting delay, characterized in that, include: The acquisition module is used to acquire network access information, candidate node number groups, network access status, reported information, and current node working information; A memory for storing a program of a network access control method based on reporting delay as described in any one of claims 1 to 9; The processor loads and executes programs from memory.
