Voucher issuing method and platform for dynamically adjusting data packet, and storage medium
By monitoring the network status in real time and adjusting the packet size dynamically, the problem of the traditional credential issuance method of low efficiency and success rate in the case of unstable network or poor signal is solved, and a higher transmission success rate and lower network congestion are achieved.
Patent Information
- Application Number
- CN202411852596.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-16
- Publication Date
- 2025-04-22
AI Technical Summary
In the case of unstable network or poor signal, the traditional credential issuance method has low efficiency and success rate, and is prone to network congestion.
By monitoring the network status in real time, obtaining signal strength and network stability coefficients, dynamically adjusting the packet size, and adjusting the retransmission strategy according to the transmission score to adapt to the current network conditions.
Improves the success rate of packet transmission, reduces network congestion, and ensures that credentials can be sent successfully to the device, even in situations where the network is unstable or the signal is poor.
Smart Images

Figure CN119865851A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of smart community access control technology, and in particular to a method, platform and storage medium for dynamically adjusting credential issuance of data packets. Background Art
[0002] In smart community renovation projects, the reliability and efficiency of access control systems are key factors in ensuring community safety and convenience. However, when access control machines are installed in areas with poor network signals, such as basements, traditional methods of issuing credentials face a series of challenges.
[0003] First, areas like basements often have weak or unstable network signals, making traditional credential issuance mechanisms unable to ensure successful credential delivery to devices. Second, existing technologies typically use fixed-size data packets for transmission during credential delivery. This transmission mechanism cannot dynamically adjust the packet size or adapt to current network conditions, resulting in a high transmission failure rate in unstable networks or with poor signals. Furthermore, using fixed-size data packets for transmission can easily cause network congestion, affecting the success rate of credential delivery and the normal use of devices.
[0004] In summary, when the network is unstable or the signal is poor, the existing credential issuance method has the problems of low issuance efficiency and success rate. Summary of the Invention
[0005] The purpose of the present invention is to propose a method, platform and medium for dynamically adjusting the issuance of credentials for data packets, aiming to solve the technical problems of low issuance efficiency and success rate in existing credential issuance methods.
[0006] To achieve the above object, the present invention provides a method for dynamically adjusting the credential issuance of a data packet, which comprises the following steps:
[0007] S10. Monitor the network status in real time to obtain signal strength and network stability coefficient;
[0008] S20: When issuing the certificate for the first time, it is sent to the target device with the original data packet size;
[0009] S30. Determine whether the original data packet is successfully transmitted based on the device response information or timeout monitoring; if the original data packet fails to be transmitted and the number of transmissions reaches a preset threshold, execute S40;
[0010] S40, dynamically adjusting the data packet size based on the signal strength and the network stability coefficient and sending the data packet to the target device;
[0011] S50, judging whether the adjusted data packet is successfully transmitted according to the device response information or timeout monitoring; if the adjusted data packet fails to be transmitted, executing S60;
[0012] S60: Calculate the transmission score and dynamically adjust the retransmission strategy according to the transmission score.
[0013] Optionally, during the monitoring process, the network stability coefficient monitoring result is updated according to a preset period. The calculation formula of the network stability coefficient N is as follows:
[0014]
[0015] Among them, ∈ is a constant, σ delay is the standard deviation of network delay, n is the number of delayed data samples, delay i is the delay value of the i-th sampling, delay avy is the average value of the delayed data sampled n times.
[0016] Optionally, dynamically adjusting the packet size includes at least the following steps:
[0017] The adjusted packet size P is calculated according to the following formula size :
[0018]
[0019] Among them, P max is the preset maximum packet size, A is the signal strength, and 0≤A≤100, N is the network stability coefficient, and 0≤N≤1;
[0020] The packet size is adjusted based on the calculation results.
[0021] Optionally, the transmission score is calculated based on the historical recognition success rate, the security requirement coefficient for the time period, the user security level, and the recent suspicious activity detection coefficient;
[0022] The historical recognition success rate is specifically the K times of credential issuance success rate before this credential issuance;
[0023] The time period safety demand coefficient is specifically a corresponding value preset according to the preset time period;
[0024] The user security level is specifically a corresponding value preset according to the preset user type;
[0025] The recent suspicious activity detection coefficient is calculated based on the number of times the device frequently goes online and offline, the device failure status, and the duration of the device abnormal status.
[0026] Optionally, the calculation formula for the transmission score S is as follows:
[0027] S=α·HSR+β·TSC+γ·USL-δ·RSA;
[0028] Where HSR is the historical recognition success rate, and 0≤HSR≤1, TSC is the security requirement coefficient of the time period, USL is the user security level, RSA is the recent suspicious activity detection coefficient, and O is the number of times the device frequently goes online and offline, Fs is the device failure state, Ds is the duration of the device abnormal state, α, β, γ, and δ are the corresponding coefficients of the historical recognition success rate, the time period security requirement coefficient, the user security level, and the recent suspicious activity detection coefficient, respectively. ω1, ω2, and ω3 represent the weights of the impact of the number of times the device frequently goes online and offline, the device failure state, and the duration of the device abnormal state on the RSA value, respectively, and ω1+ω2+ω3=1.
[0029] Optionally, dynamically adjust the retransmission strategy based on the transmission score, specifically:
[0030] When S>0.8, maintain the current strategy;
[0031] When 0.5≤S≤0.8, extend the retransmission interval and transmit again;
[0032] When S < 0.5, the packet size is reduced and transmission is restricted.
[0033] Optional, α=0.4, β=0.3, γ=0.2, δ=0.1;
[0034] Or, α=0.3, β=0.4, γ=0.2, δ=0.1;
[0035] Alternatively, α=0.5, β=0.2, γ=0.2, and δ=0.1.
[0036] Optionally, TSC is 0.5 or 0.9, 0.5 is the corresponding value preset in the first preset time period, and 0.9 is the corresponding value preset in the second preset time period;
[0037] USL is 0.7 or 1, 0.7 is a corresponding value preset when the preset user type is the first type, and 1 is a corresponding value preset when the preset user type is the second type.
[0038] Corresponding to the method for issuing credentials for dynamically adjusting data packets, the present invention provides a platform for issuing credentials for dynamically adjusting data packets, which includes:
[0039] Network monitoring module, used to monitor network status in real time, obtain signal strength and network stability coefficient;
[0040] The control module is used to send the original data packet size to the target device when issuing the certificate for the first time; and send the adjusted data packet to the target device;
[0041] A judgment module is used to judge whether the original data packet and the adjusted data packet are transmitted successfully based on the device response information or timeout monitoring;
[0042] The data packet control module is used to dynamically adjust the data packet size according to the signal strength and network stability coefficient when the original data packet transmission fails and the number of downlinks reaches a preset threshold;
[0043] The adaptive retransmission module is used to calculate the transmission score when the adjusted data packet fails to be transmitted, and dynamically adjust the retransmission strategy according to the transmission score.
[0044] In addition, to achieve the above-mentioned purpose, the present invention also provides a computer-readable storage medium, on which a credential issuance program for dynamically adjusting data packets is stored. When the credential issuance program for dynamically adjusting data packets is executed by a processor, the steps of the credential issuance method for dynamically adjusting data packets as described above are implemented.
[0045] The beneficial effects of the present invention are:
[0046] (1) Compared with the existing technology, the present invention monitors the network status in real time, obtains the signal strength and network stability coefficient, and dynamically adjusts the data packet size to adapt to the current network conditions. It can improve the success rate of data packet transmission, reduce network congestion, and ensure that the certificate can be successfully sent to the device even when the network is unstable or the signal is poor.
[0047] (2) Compared with the existing technology, the present invention enhances the accuracy of network status monitoring by calculating the network stability coefficient; and, based on the network stability coefficient monitoring results updated at a preset period, it can more accurately evaluate the network status and adjust the data packet size accordingly, further improving the success rate of credential issuance and the adaptability of the network.
[0048] (3) Compared with the prior art, the present invention can adjust the data packet size according to the signal strength and network stability coefficient by dynamically adjusting the data packet size. This dynamic adjustment mechanism makes data packet transmission more flexible, can adapt to different network environments, and reduce transmission failures caused by network instability or weak signals.
[0049] (4) Compared with the existing technology, the present invention can dynamically adjust the transmission strategy according to the actual situation by comprehensively considering the historical recognition success rate, time period security requirement coefficient, user security level and recent suspicious activity detection coefficient, thereby improving the security and efficiency of credential issuance.
[0050] (5) Compared with the existing technology, the present invention can more accurately control transmission behavior, optimize resource allocation, and improve the success rate of credential issuance by calculating the transmission score and adjusting the retransmission strategy accordingly.
[0051] (6) Compared with the existing technology, the present invention dynamically adjusts the retransmission strategy according to the transmission score, providing a flexible transmission control mechanism that can adopt different retransmission strategies according to different transmission scores, such as extending the retransmission interval or reducing the data packet size, thereby improving transmission efficiency and success rate.
[0052] These and other aspects of the present application will be more clearly understood in the following description of the embodiments. It should be understood that the above general description and the following detailed description are merely exemplary and explanatory and cannot limit the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0053] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other embodiments can be obtained based on these drawings without paying any creative work.
[0054] In the figure:
[0055] Figure 1 The figure is a flow chart of an embodiment of a method for dynamically adjusting the voucher issuance of a data packet according to the present invention.
[0056] Figure 2 A comparison chart of the transmission success rate between the method for dynamically adjusting the credential issuance of data packets according to the present invention and the prior art;
[0057] Figure 3 This is a framework diagram of an embodiment of a platform for issuing credentials for dynamically adjusting data packets according to the present invention;
[0058] Figure 4 A comparison chart of the load rates of the credential distribution platform for dynamically adjusting data packets in the present invention and the prior art. DETAILED DESCRIPTION
[0059] Below, the present application is further described in conjunction with the accompanying drawings and specific implementation methods. It should be noted that, under the premise of no conflict, the various embodiments or technical features described below can be arbitrarily combined to form new embodiments.
[0060] To make the purpose, technical solutions and advantages of the present invention more clearly understood, the following is a further detailed description of the embodiments of the present invention in conjunction with specific embodiments and with reference to the accompanying drawings. It should be understood that the specific embodiments described herein are only used to explain the present application and are not intended to limit the present application.
[0061] It should be noted that all expressions using "first" and "second" in the embodiments of the present invention are intended to distinguish two non-identical entities or non-identical parameters with the same name. It can be seen that "first" and "second" are only for convenience of expression and should not be understood as limitations on the embodiments of the present invention. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, other steps or units inherent to a process, method, platform, product, or device that includes a series of steps or units.
[0062] The following will be combined with the drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.
[0063] The flowcharts shown in the accompanying drawings are for illustrative purposes only and do not necessarily include all contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps may be decomposed, combined, or partially merged, so the actual execution order may vary depending on the actual situation.
[0064] The following describes some embodiments of the present application in detail with reference to the accompanying drawings. In the absence of conflict, the following embodiments and features therein may be combined with each other.
[0065] See also Figure 1 As shown, an embodiment of the present invention provides a method for dynamically adjusting the voucher issuance of a data packet, comprising the following steps:
[0066] S10. Monitor the network status in real time to obtain signal strength and network stability coefficient;
[0067] S20: When issuing the certificate for the first time, it is sent to the target device with the original data packet size;
[0068] S30. Determine whether the original data packet is successfully transmitted based on the device response information or timeout monitoring; if the original data packet fails to be transmitted and the number of transmissions reaches a preset threshold, execute S40;
[0069] S40, dynamically adjusting the data packet size based on the signal strength and the network stability coefficient and sending the data packet to the target device;
[0070] S50, judging whether the adjusted data packet is successfully transmitted according to the device response information or timeout monitoring; if the adjusted data packet fails to be transmitted, executing S60;
[0071] S60: Calculate the transmission score and dynamically adjust the retransmission strategy according to the transmission score.
[0072] Preferably, the preset threshold for the number of times of sending is 3.
[0073] The present invention monitors the network status in real time, obtains the signal strength and network stability coefficient, and dynamically adjusts the data packet size to adapt to the current network conditions. It can improve the success rate of data packet transmission, reduce network congestion, and ensure that the certificate can be successfully sent to the device even in the case of unstable network or poor signal.
[0074] In this embodiment, during the monitoring process, the network stability coefficient monitoring result is updated according to a preset period. The calculation formula of the network stability coefficient N is as follows:
[0075]
[0076] Among them, ∈ is a constant, σ delay is the standard deviation of network delay, n is the number of delayed data samples, delay i is the delay value of the i-th sampling, delay avy is the average value of the delayed data sampled n times.
[0077] It should be noted that σ delay Used to measure the degree of delay fluctuation. The larger the standard deviation, the more unstable the network delay. avy The higher the value, the slower the network response speed. ∈ is a constant introduced to avoid the denominator being 0, and its preferred value is 0.01. It can be understood that ∈ can be a very small positive number.
[0078] When σ delay When N→0 (i.e., the delay fluctuation is extremely small), N→1, indicating that the network is very stable;
[0079] When σ delay >>delay avg When N is 0 (i.e., the delay fluctuation is very large), it indicates that the network is very unstable. The delay value is the round-trip delay.
[0080] The present invention enhances the accuracy of network status monitoring by calculating the network stability coefficient; and, based on the network stability coefficient monitoring results updated at a preset period, it can more accurately evaluate the network status and adjust the data packet size accordingly, further improving the success rate of credential issuance and the adaptability of the network.
[0081] In this embodiment, dynamically adjusting the data packet size includes at least the following steps:
[0082] The adjusted packet size P is calculated according to the following formulasize :
[0083]
[0084] Among them, P max is the preset maximum packet size, A is the signal strength, and 0≤A≤100, N is the network stability coefficient, and 0≤N≤1;
[0085] The packet size is adjusted based on the calculation results.
[0086] Preferably, P max =1KB. Further, P min =128B.
[0087] In this embodiment, A is reported by the access control device through the physical model. N is an indicator that measures the fluctuation of network delay. The closer the value is to 1, the more stable the network is and the smaller the fluctuation is.
[0088] The present invention can adjust the data packet size according to the signal strength and network stability coefficient by dynamically adjusting the data packet size. This dynamic adjustment mechanism makes data packet transmission more flexible, can adapt to different network environments, and reduce transmission failures caused by network instability or weak signals.
[0089] In this embodiment, the transmission score is calculated based on the historical recognition success rate, the security requirement coefficient of the time period, the user security level, and the recent suspicious activity detection coefficient;
[0090] The historical recognition success rate is specifically the K times of credential issuance success rate before this credential issuance;
[0091] The time period safety demand coefficient is specifically a corresponding value preset according to the preset time period;
[0092] The user security level is specifically a corresponding value preset according to the preset user type;
[0093] The recent suspicious activity detection coefficient is calculated based on the number of times the device frequently goes online and offline, the device failure status, and the duration of the device abnormal status.
[0094] Preferably, K=10, and the historical recognition success rate defaults to the success rate of the 10 credential issuances before the current credential issuance.
[0095] By comprehensively considering the historical recognition success rate, time period security requirement coefficient, user security level and recent suspicious activity detection coefficient, the present invention can dynamically adjust the transmission strategy according to actual conditions to improve the security and efficiency of credential issuance.
[0096] In this embodiment, the calculation formula of the transmission score S is as follows:
[0097] S=α·HSR+β·TSC+γ·USL-δ·RSA;
[0098] Where HSR is the historical recognition success rate, and 0≤HSR≤1, TSC is the security requirement coefficient of the time period, USL is the user security level, RSA is the recent suspicious activity detection coefficient, and O is the number of times the device frequently goes online and offline, Fs is the device failure state, Ds is the duration of the device abnormal state, α, β, γ, and δ are the corresponding coefficients of the historical recognition success rate, the time period security requirement coefficient, the user security level, and the recent suspicious activity detection coefficient, respectively. ω1, ω2, and ω3 represent the weights of the impact of the number of times the device frequently goes online and offline, the device failure state, and the duration of the device abnormal state on the RSA value, respectively, and ω1+ω2+ω3=1.
[0099] It should be noted that the number of times a device frequently goes online and offline refers to the number of times the target device changes state within a preset time window (for example, the past 5 minutes). By analyzing the device's online status log or heartbeat packet record, the number of times the device switches from "online" to "offline" or from "offline" to "online" is counted. The more frequent the state switching, the worse the device's connection stability, which may indicate a network problem or device anomaly. Usually, a threshold of 0 is set for the number of times a device goes online and offline. max The value is 5 times / 5 minutes, which is used to judge the abnormality of the equipment.
[0100] Fs represents the device failure status, a binary variable that indicates whether the device has failed. Its value is 0 (normal) or 1 (failed). This determination is based on the following indicators: 1) network connection status, such as more than three consecutive heartbeat packet losses; 2) hardware operation status, such as hardware anomalies detected in logs; and 3) command response status, such as three consecutive command timeouts without a response. If any of these conditions are met, the device is considered to be in a failed state, meaning Fs = 1.
[0101] Ds is the duration of the device's abnormal state, which refers to the cumulative length of time the device remains in an abnormal state within a set time window (for example, the duration of an offline or faulty state). This is typically obtained through device status logs or heartbeat packet monitoring. This value is calculated by recording the start and end times of the abnormal state and summing these abnormal time periods in seconds or minutes. For example, if a device was offline twice within the past 5 minutes, for a total of 3 minutes, then Ds = 3 minutes.
[0102] ω1, ω2, and ω3 usually use the corresponding default values ω1 = 0.5 (frequent online and offline is the most common abnormal behavior, so it has the highest weight), ω2 = 0.3 (equipment failure directly affects transmission, so it has the second highest weight), and ω3 = 0.2 (the duration of the abnormal state is important but has the lowest priority).
[0103] The present invention calculates the transmission score and adjusts the retransmission strategy accordingly, thereby being able to more accurately control the transmission behavior, optimize resource allocation, and improve the success rate of credential issuance.
[0104] Furthermore, the present invention assesses security risks based on TSC and RSA, automatically improves security, can identify and block a large number of abnormal requests, and enhances the platform's anti-attack capabilities, especially at night or during periods of high security demand.
[0105] In this embodiment, the retransmission strategy is dynamically adjusted according to the transmission score, specifically:
[0106] When S>0.8, maintain the current strategy;
[0107] When 0.5≤S≤0.8, extend the retransmission interval and transmit again;
[0108] When S < 0.5, the packet size is reduced and transmission is restricted.
[0109] The present invention dynamically adjusts the retransmission strategy according to the transmission score, providing a flexible transmission control mechanism that can adopt different retransmission strategies according to different transmission scores, such as extending the retransmission interval or reducing the data packet size, thereby improving transmission efficiency and success rate.
[0110] In this embodiment, α=0.4, β=0.3, γ=0.2, δ=0.1;
[0111] Or, α=0.3, β=0.4, γ=0.2, δ=0.1;
[0112] Alternatively, α=0.5, β=0.2, γ=0.2, and δ=0.1.
[0113] Specifically, α=0.4, β=0.3, γ=0.2, and δ=0.1 are applicable in general scenarios and are used by default.
[0114] Alternatively, α = 0.3, β = 0.4, γ = 0.2, and δ = 0.1 are used in high-authority scenarios, such as when access control uses a password lock;
[0115] Alternatively, α=0.5, β=0.2, γ=0.2, and δ=0.1 are used for emergency services, such as when a certificate needs to be immediately sent to a certain machine.
[0116] In this embodiment, TSC is 0.5 or 0.9, 0.5 is the corresponding value preset in the first preset time period, and 0.9 is the corresponding value preset in the second preset time period; preferably, the first preset time period is 8-20 o'clock, and the second preset time period is 20-8 o'clock.
[0117] USL is 0.7 or 1, 0.7 is the corresponding value preset when the preset user type is the first type, and 1 is the corresponding value preset when the preset user type is the second type. Preferably, the first type is a resident, and the second type is a manager.
[0118] like Figure 2 As shown, compared with the prior art, the method for dynamically adjusting the credential issuance of data packets of the present invention can increase the credential transmission success rate by about 30-40%, greatly reduce the transmission failure situation, and ensure smooth entry and exit of users.
[0119] like Figure 3 As shown, the present invention also provides a platform for issuing credentials for dynamically adjusting data packets, which includes:
[0120] The network monitoring module 10 is used to monitor the network status in real time and obtain the signal strength and network stability coefficient;
[0121] The control module 20 is used to send the original data packet size to the target device when issuing the certificate for the first time; and send the adjusted data packet to the target device;
[0122] A judgment module 30 is used to judge whether the original data packet and the adjusted data packet are successfully transmitted based on the device response information or timeout monitoring;
[0123] The data packet control module 40 is used to dynamically adjust the data packet size according to the signal strength and network stability coefficient when the original data packet transmission fails and the number of transmissions reaches a preset threshold;
[0124] The adaptive retransmission module 50 is configured to calculate a transmission score when the adjusted data packet transmission fails, and dynamically adjust a retransmission strategy according to the transmission score.
[0125] like Figure 4 As shown, the data packet size and retransmission strategy are adjusted according to the network conditions, so that the average retransmission times of the certificate issuance platform for dynamically adjusting the data packet are reduced by about 40% compared with the existing technology, reducing the bandwidth occupancy and network resource consumption. Compared with the traditional fixed-size data packet solution, it can save about 25% of bandwidth.
[0126] Furthermore, the present invention reduces hardware wear caused by frequent device retries, can extend the average service life of the equipment, and significantly reduce the daily maintenance costs of the platform.
[0127] The embodiment of the present invention further provides a computer-readable storage medium, which may be a computer-readable storage medium included in the memory in the above embodiment; or a computer-readable storage medium that exists independently and is not assembled into a device. The computer-readable storage medium stores at least one instruction, which is loaded and executed by a processor to implement Figure 1 The computer readable storage medium may be a read-only memory, a disk or an optical disk, etc.
[0128] It should be noted that the various embodiments in this specification are described in a progressive manner, with each embodiment focusing on the differences from other embodiments. For similar or identical parts between the various embodiments, reference can be made to each other. The platform and storage medium embodiments are described briefly because they are fundamentally similar to the method embodiments. For relevant parts, reference can be made to the description of the method embodiments.
[0129] Furthermore, in this document, the terms "comprises," "comprising," or any other variations thereof are intended to encompass non-exclusive inclusion, such that a process, method, article, or apparatus that includes a list of elements includes not only those elements but also other elements not explicitly listed, or elements inherent to such process, method, article, or apparatus. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not preclude the presence of additional identical elements in the process, method, article, or apparatus that includes the element.
[0130] While the foregoing description shows and describes preferred embodiments of the present invention, it should be understood that the present invention is not limited to the forms disclosed herein and should not be construed as excluding other embodiments. Rather, the present invention can be used in various other combinations, modifications, and environments, and can be modified within the scope of the present invention by the teachings herein or by techniques or knowledge in the relevant art. Modifications and variations made by those skilled in the art without departing from the spirit and scope of the present invention are intended to be within the scope of the appended claims.
Claims
1. A method for dynamically adjusting the voucher issuance of a data packet, characterized in that: The following steps are involved: S10, monitor the network status in real time, and obtain the signal strength and network stability coefficient; S20, when issuing the certificate for the first time, it is sent to the target device with the original data packet size; S30, judging whether the original data packet is successfully transmitted according to the device response information or timeout monitoring; if the transmission of the original data packet fails and the number of transmissions reaches a preset threshold, executing S40; S40, dynamically adjusting the size of the data packet according to the signal strength and the network stability coefficient and sending the data packet to the target device; S50, judging whether the adjusted data packet is successfully transmitted according to the device response information or timeout monitoring; if the adjusted data packet fails to be transmitted, executing S60; S60: Calculate the transmission score, and dynamically adjust the retransmission strategy according to the transmission score.
2. The method for issuing a certificate for dynamically adjusting a data packet according to claim 1, characterized in that: During the monitoring process, the network stability coefficient monitoring results are updated according to the preset period. The calculation formula of the network stability coefficient N is as follows: Among them, ∈ is a constant, σ delay is the standard deviation of network delay, n is the number of delayed data samples, delay i is the delay value of the i-th sampling, delay avy is the average value of the delayed data sampled n times.
3. The method for dynamically adjusting the voucher issuance of a data packet according to claim 1, characterized in that: Dynamically adjusting the packet size includes at least the following steps: The adjusted packet size P is calculated according to the following formula size : Among them, P max is the preset maximum packet size, A is the signal strength, and 0≤A≤100, N is the network stability coefficient, and 0≤N≤1; The packet size is adjusted based on the calculation result.
4. The method for dynamically adjusting the voucher issuance of a data packet according to claim 1, characterized in that: The transmission score is calculated based on the historical recognition success rate, the security requirement coefficient for the time period, the user security level, and the recent suspicious activity detection coefficient; The historical recognition success rate is specifically the K times of credential issuance success rate before this credential issuance; The time period safety demand coefficient is specifically a corresponding value preset according to the preset time period; The user security level is specifically a corresponding value preset according to the preset user type; The recent suspicious activity detection coefficient is calculated based on the number of times the device frequently goes online and offline, the device failure status, and the duration of the device abnormal status.
5. The method for dynamically adjusting the voucher issuance of a data packet according to claim 4, characterized in that: The calculation formula of the transmission score S is as follows: S=α·HSR+β·TSC+γ·USL-δ·RSA; Where HSR is the historical recognition success rate, and 0≤HSR≤1, TSC is the time period security requirement coefficient, USL is the user security level, RSA is the recent suspicious activity detection coefficient, and O is the number of times the device frequently goes online and offline, Fs is the device fault state, Ds is the duration of the device abnormal state, α, β, γ, and δ are the corresponding coefficients of the historical recognition success rate, the time period security requirement coefficient, the user security level, and the recent suspicious activity detection coefficient, respectively. ω1, ω2, and ω3 represent the weights of the number of times the device frequently goes online and offline, the device fault state, and the duration of the device abnormal state on the RSA value, respectively, and ω1+ω2+ω3=1.
6. The method for issuing a certificate for dynamically adjusting a data packet according to claim 5, characterized in that: Dynamically adjust the retransmission strategy based on the transmission score, specifically: When S>0.8, maintain the current strategy; When 0.5≤S≤0.8, extend the retransmission interval and transmit again; When S < 0.5, the packet size is reduced and transmission is restricted.
7. The method for issuing a certificate for dynamically adjusting a data packet according to claim 5, characterized in that: α=0.4, β=0.3, γ=0.2, δ=0.1; Or, α=0.3, β=0.4, γ=0.2, δ=0.1; Alternatively, α=0.5, β=0.2, γ=0.2, and δ=0.
1.
8. The method for dynamically adjusting the voucher issuance of a data packet according to claim 5, characterized in that: TSC is 0.5 or 0.9, 0.5 is the corresponding value preset in the first preset time period, and 0.9 is the corresponding value preset in the second preset time period; USL is 0.7 or 1, 0.7 is a corresponding value preset when the preset user type is the first type, and 1 is a corresponding value preset when the preset user type is the second type.
9. A credential distribution platform for dynamically adjusting data packets, characterized in that: include: Network monitoring module, used to monitor network status in real time, obtain signal strength and network stability coefficient; A control module, used for sending the original data packet size to the target device when issuing the certificate for the first time; and sending the adjusted data packet to the target device; A judgment module, used to judge whether the original data packet and the adjusted data packet are successfully transmitted according to the device response information or timeout monitoring; The data packet control module is used to dynamically adjust the data packet size according to the signal strength and network stability coefficient when the original data packet transmission fails and the number of times it is sent reaches a preset threshold; The adaptive retransmission module is used to calculate the transmission score when the adjusted data packet transmission fails, and dynamically adjust the retransmission strategy according to the transmission score.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a credential distribution program for dynamically adjusting a data packet, and when the credential distribution program for dynamically adjusting a data packet is executed by a processor, the steps of the credential distribution method for dynamically adjusting a data packet as described in any one of claims 1 to 8 are implemented.