Information confirmation method, device, electronic device and readable storage medium
By calculating the frequency weight and access restriction information of the device in the Internet of Things platform, and dynamically adjusting resource allocation, the problem of waste resources on the Internet of Things platform is solved, and fair use and efficient management of resources are achieved.
Patent Information
- Application Number
- CN202110600678.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-05-31
- Publication Date
- 2025-08-26
- Estimated Expiration
- 2041-05-31
AI Technical Summary
In the prior art, the resource allocation algorithm of the Internet of Things platform leads to waste of resources, insufficient resources for busy equipment, and unused equipment resources, especially in third-party paid services, the resources are fixed and expired and cleared.
By obtaining the actual frequency and resource pool parameters of the device, calculating the frequency weight of the device, determining the access limit information, dynamically adjusting resource allocation, realizing flow control, and ensuring fair use of resources.
In the scenario of limited resources, maximize the use of resources, achieve fair and efficient use of resource allocation, and avoid resource waste.
Smart Images

Figure CN115480905B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of Internet of Things, and in particular relates to an information confirmation method, device, electronic device and readable storage medium. Background Art
[0002] The IoT platform supports hundreds of millions of terminal device connections and accesses, with billions of requests received daily. Many types of devices are connected to the IoT platform. To prevent malicious requests from certain devices from placing resource pressure on the IoT platform, traffic control for each device becomes necessary.
[0003] In the existing technology, an average distribution algorithm is generally used to allocate resources to each device. The number and frequency of resource access are fixed. This algorithm cannot fully utilize existing resources, resulting in resource waste. This is especially true for third-party paid services. The total amount of access allowed per day and the number of concurrent accesses are fixed. Expired but not exhausted resources will be cleared. The average distribution algorithm leads to the problem that the resources of some idle devices cannot be used, while the resources of busy devices are insufficient. Summary of the Invention
[0004] The purpose of the embodiments of the present invention is to provide an information confirmation method, device, electronic device and readable storage medium, so as to solve the problem in the prior art that the resources of the Internet of Things platform are not fully utilized, resulting in resource waste.
[0005] To achieve the above objectives, an embodiment of the present invention provides an information confirmation method, comprising:
[0006] When the Internet of Things platform is connected to at least one first device and then to a second device, obtaining an actual frequency of the at least one first device accessing a resource pool of the Internet of Things platform at a current moment;
[0007] Obtaining a frequency weight of the second device according to the actual frequencies respectively corresponding to the at least one first device, parameter information of the resource pool of the Internet of Things platform, the initial frequency of the second device accessing the resource pool, and a constraint condition of the frequency weight;
[0008] determining access restriction information of the second device according to the frequency weight of the second device;
[0009] The at least one first device is connected at different times;
[0010] The parameter information includes: the number of reserved devices, the total number of times and the total frequency;
[0011] The constraint condition is that the sum of the frequency weights of all devices connected to the Internet of Things platform is equal to the total number of all devices;
[0012] The access restriction information includes at least one of: information on an upper limit on the number of times a resource pool can be accessed and information on an upper limit on the frequency of accessing the resource pool.
[0013] Optionally, the method further includes:
[0014] Perform traffic control on the second device according to the access restriction information.
[0015] Optionally, the method further includes:
[0016] When the actual frequency curve of the device connected to the Internet of Things platform at the preset time satisfies a quasi-normal random distribution state, the resource pool capacity corresponding to the upper limit information of the number of times the device can access the resource pool is obtained according to the access restriction information corresponding to the device;
[0017] Dividing the resource pool capacity into a first sub-capacity and a second sub-capacity;
[0018] wherein, after the resources of the first sub-capacity are exhausted, the resources of the second sub-capacity are controlled to be transferred to the resources of the first sub-capacity at a preset rate until the resources of the first sub-capacity are full;
[0019] When resources of the first sub-capacity and the second sub-capacity are exhausted, restricting the device from accessing the resource pool;
[0020] The first sub-capacity is the basic resource pool capacity of the second device;
[0021] The device includes at least one of the at least one first device and the second device.
[0022] Optionally, when the Internet of Things platform is connected to at least one first device and then to a second device, before obtaining the actual frequency of the at least one first device accessing the resource pool of the Internet of Things platform at the current moment, the method further includes:
[0023] Obtaining a frequency weight of the device that is first connected to the Internet of Things platform according to the parameter information, the initial frequency corresponding to the device that is first connected to the Internet of Things platform, and the constraint condition;
[0024] Determining access restriction information for the device accessing for the first time according to the frequency weight of the device accessing for the first time;
[0025] The at least one first device includes the device accessed for the first time.
[0026] Optionally, when the Internet of Things platform is connected to at least one first device and then to a second device, obtaining an actual frequency of the at least one first device accessing a resource pool of the Internet of Things platform at a current moment includes:
[0027] According to the time when the at least one first device last updated the actual frequency and the current time, the actual frequency of the at least one first device at the current time is acquired.
[0028] Optionally, the method further includes:
[0029] The frequency weights of the at least one first device are updated respectively according to the actual frequency of the at least one first device at the current moment and the initial frequency of the second device.
[0030] Optionally, the method further includes:
[0031] The access restriction information of the at least one first device is updated respectively according to the updated frequency weight of the at least one first device.
[0032] Optionally, the method further includes:
[0033] According to the updated access restriction information of the at least one first device, flow control is performed on the at least one first device respectively.
[0034] An embodiment of the present invention further provides an information confirmation device, comprising:
[0035] A first acquisition module is configured to, when the Internet of Things platform is connected to at least one first device and then to a second device, obtain an actual frequency of the at least one first device accessing a resource pool of the Internet of Things platform at a current moment;
[0036] A second acquisition module is configured to acquire a frequency weight of the second device based on the actual frequency corresponding to each of the at least one first device, parameter information of the resource pool of the Internet of Things platform, an initial frequency at which the second device accesses the resource pool, and a constraint condition of the frequency weight;
[0037] a determining module, configured to determine access restriction information of the second device according to the frequency weight of the second device;
[0038] The at least one first device is connected at different times;
[0039] The parameter information includes: the number of reserved devices, the total number of times and the total frequency;
[0040] The constraint condition is that the sum of the frequency weights of all devices connected to the Internet of Things platform is equal to the total number of all devices;
[0041] The access restriction information includes at least one of information on an upper limit on the number of times a resource pool can be accessed and information on an upper limit on the frequency of accessing the resource pool.
[0042] An embodiment of the present invention further provides an electronic device, comprising: a processor, a memory, and a program stored in the memory and executable on the processor, wherein the program, when executed by the processor, implements the steps of the information confirmation method as described in any one of the above items.
[0043] An embodiment of the present invention further provides a readable storage medium, on which a program is stored. When the program is executed by a processor, the steps of the information confirmation method as described in any one of the above items are implemented.
[0044] The above technical solution of the present invention has at least the following beneficial effects:
[0045] In the above scheme, the information confirmation method includes: when the Internet of Things platform is connected to at least one first device and then to a second device, obtaining the actual frequency of the at least one first device accessing the resource pool of the Internet of Things platform at the current moment; obtaining the frequency weight of the second device based on the actual frequency corresponding to the at least one first device, the parameter information of the resource pool of the Internet of Things platform, the initial frequency of the second device accessing the resource pool, and the constraint conditions of the frequency weight; determining the access restriction information of the second device based on the frequency weight of the second device, so as to realize flow control of the device in the scenario where the resources of the Internet of Things platform are limited, combined with the actual frequency of accessing the resource pool, to maximize the utilization of resources while satisfying the fairness of resource allocation. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] Figure 1 Schematic diagram of the flow of the information confirmation method according to an embodiment of the present invention;
[0047] Figure 2 A schematic diagram of a curve showing the actual frequency of accessing a resource pool in the information confirmation method according to an embodiment of the present invention;
[0048] Figure 3 Schematic diagram of an information confirmation device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0049] In order to make the technical problems, technical solutions and advantages to be solved by the present invention clearer, a detailed description will be given below with reference to the accompanying drawings and specific embodiments.
[0050] The embodiments of the present invention address the problem in the prior art that resources of an Internet of Things platform are not fully utilized, resulting in resource waste, and provide an information confirmation method, device, electronic device, and readable storage medium.
[0051] like Figure 1 As shown, an embodiment of the present invention provides an information confirmation method, including:
[0052] Step 101: When an IoT platform is connected to at least one first device and then to a second device, obtain the actual frequency of the at least one first device accessing a resource pool of the IoT platform at the current moment;
[0053] It should be noted that the at least one first device and the second device include but are not limited to mobile phones, computers and Internet of Things terminal devices.
[0054] Step 102: Obtain a frequency weight of the second device based on the actual frequency corresponding to each of the at least one first device, parameter information of the resource pool of the IoT platform, the initial frequency of the second device accessing the resource pool, and a constraint condition of the frequency weight;
[0055] Here, in order to prevent the devices that first access the IoT platform from exhausting resources, the IoT platform resource pool needs to reserve devices.
[0056] It should be noted that the resources of the IoT platform include but are not limited to central processing units, memory, third-party payment services, traffic and other resources that can be accessed or used.
[0057] Step 103: Determine access restriction information of the second device according to the frequency weight of the second device;
[0058] The at least one first device is connected at different times;
[0059] The parameter information includes: the number of reserved devices, the total number of times and the total frequency;
[0060] The constraint condition is that the sum of the frequency weights of all devices connected to the Internet of Things platform is equal to the total number of all devices;
[0061] The access restriction information includes at least one of: information on an upper limit on the number of times a resource pool can be accessed and information on an upper limit on the frequency of accessing the resource pool.
[0062] In an embodiment of the present invention, when an Internet of Things platform is connected to at least one first device and then to a second device, the actual frequency of the at least one first device accessing the resource pool of the Internet of Things platform at the current moment is obtained; the frequency weight of the second device is obtained based on the actual frequency corresponding to the at least one first device, the parameter information of the resource pool of the Internet of Things platform, the initial frequency of the second device accessing the resource pool, and the constraint conditions of the frequency weight; the access restriction information of the second device is determined based on the frequency weight of the second device, so as to realize, in a scenario where resources of the Internet of Things platform are limited, flow control of the device is performed in combination with the actual frequency of accessing the resource pool, thereby maximizing resource utilization and satisfying the fairness of resource allocation.
[0063] Optionally, the method further includes:
[0064] Perform traffic control on the second device according to the second access restriction information.
[0065] It should be noted that the Internet of Things platform in the information confirmation method of an embodiment of the present invention has a fixed resource pool. When the at least one first device is connected to the Internet of Things platform, flow control is performed based on the access restriction information of the at least one first device; when the second device is connected to the Internet of Things platform, a portion of the resources allocated to the at least one first device is transferred to the second device, and flow control is performed based on the access restriction information of the second device to maximize resource utilization.
[0066] Optionally, in step 101, when the IoT platform is connected to at least one first device and then to a second device, before obtaining the actual frequency of the at least one first device accessing the resource pool of the IoT platform at the current moment, the method further includes:
[0067] Obtaining a frequency weight of the device that is first connected to the Internet of Things platform according to the parameter information, the initial frequency corresponding to the device that is first connected to the Internet of Things platform, and the constraint condition;
[0068] Determining access restriction information for the device accessing for the first time according to the frequency weight of the device accessing for the first time;
[0069] The at least one first device includes the device accessed for the first time.
[0070] It should be noted that the actual frequency of the devices connected to the IoT platform is updated slowly or fixedly;
[0071] Here, take the first access of device 1 to the IoT platform as an example:
[0072] The number of reserved devices in the resource pool of the IoT platform is R0 (to prevent the device that accesses the IoT platform first from exhausting resources), the total number of times is M, the total frequency is F, the upper limit information of the number of times device 1 accesses the resource pool is m1, and the upper limit information of the frequency is p1;
[0073] And, the initial access frequency of the resource pool of the device 1 is f1(0)=1;
[0074] Since the sum of the frequency weights of all devices connected to the IoT platform is equal to the total number of all devices, that is, α1+α2+…+α n =n, so the frequency weight of device 1 is
[0075] The upper limit of the number of times device 1 accesses the resource pool is Frequency cap information is
[0076] Furthermore, after the IoT platform accesses device 2, the actual frequency f1(i) of device 1 at the current moment is obtained and updated; wherein i is the number of times the device has updated its actual frequency, and i is 1 for the first update; f1(i) is determined based on the inverse of the difference between the current moment and the moment when device 1 initially accesses the IoT platform; the initial frequency of device 2 is f2(0)=1;
[0077] The frequency weight of device 2 is
[0078] The upper limit of the number of times device 2 accesses the resource pool is Frequency cap information is
[0079] According to the actual frequency f1(i) of device 1 at the current moment, the frequency weight of device 1 is updated:
[0080] According to the updated frequency weight of device 1 Update the upper limit of device 1's access to the resource pool: and frequency cap information:
[0081] Furthermore, when the IoT platform is connected to device n, the initial frequency of the device n is f n (0) = 1;
[0082] The frequency weight of the device n is
[0083] The upper limit of the number of times device n accesses the resource pool is Frequency cap information is
[0084] According to the actual frequencies of devices 1 to n-1 at the current moment: f′1(i) to f n-1 (i), and the initial frequency f of device n n (0) Update the frequency weights from device 1 to device n-1:
[0085] Updated frequency weights from device 1 to device n-1 Update the upper limit of the number of times that devices 1 to n-1 can access the resource pool. and frequency cap information.
[0086] Optionally, step 101, when the IoT platform is connected to at least one first device and then to a second device, obtaining an actual frequency of the at least one first device accessing a resource pool of the IoT platform at a current moment includes:
[0087] According to the time when the at least one first device last updated the actual frequency and the current time, the actual frequency of the at least one first device at the current time is acquired.
[0088] It should be noted that the reciprocal of the difference between the moment when the at least one first device currently updates its actual frequency and the moment when the at least one first device last updated its actual frequency is the actual frequency of the at least one first device at the current moment.
[0089] Optionally, the method further includes:
[0090] The frequency weights of the at least one first device are updated respectively according to the actual frequency of the at least one first device at the current moment and the initial frequency of the second device.
[0091] Here, as described above, the actual frequencies of devices 1 to n-1 at the current moment are: f′1(i) to f n-1 (i), and the initial frequency f of device n n (0) Update the frequency weights from device 1 to device n-1:
[0092] It should be noted that the resource pool of the IoT platform is fixed. When a new device is added, the IoT platform will transfer part of the resources allocated to the original device (here, the original device is the at least one first device) to the new device (here, the new device is the second device). The original device reallocates resources according to the updated frequency weight, thereby ensuring the fairness of resource allocation.
[0093] It should also be noted that the information confirmation method in the embodiment of the present invention uses the frequency of accessing the resource pool as the weight, and may also use the preset priority or the importance of the device itself as the weight, which is not compared or limited here.
[0094] Optionally, the method further includes:
[0095] The access restriction information of the at least one first device is updated respectively according to the updated frequency weight of the at least one first device.
[0096] Here, the upper limit information on the number of accesses to the resource pool and the upper limit information on the frequency of accesses to the resource pool in the access restriction information are dynamically updated as the frequency weight is updated, thereby ensuring the rationality of resource allocation in real time.
[0097] Optionally, the method further includes:
[0098] According to the updated access restriction information of the at least one first device, flow control is performed on the at least one first device respectively.
[0099] It should be noted that as the number of devices connected to the Internet of Things platform increases, in order to ensure real-time and reasonable allocation of resources, traffic control is performed separately according to the updated access restriction information of the at least one first device to improve resource utilization.
[0100] Alternatively, as Figure 2 As shown, the method further includes:
[0101] When the actual frequency curve of the device connected to the Internet of Things platform at the preset time satisfies a quasi-normal random distribution state, the resource pool capacity corresponding to the upper limit information of the number of times the device can access the resource pool is obtained according to the access restriction information corresponding to the device;
[0102] Dividing the resource pool capacity into a first sub-capacity and a second sub-capacity;
[0103] wherein, after the resources of the first sub-capacity are exhausted, the resources of the second sub-capacity are controlled to be transferred to the resources of the first sub-capacity at a preset rate until the resources of the first sub-capacity are full;
[0104] When resources of the first sub-capacity and the second sub-capacity are exhausted, restricting the device from accessing the resource pool;
[0105] The first sub-capacity is the basic resource pool capacity of the second device;
[0106] The device includes at least one of the at least one first device and the second device.
[0107] Here, the preset moment may be the moment at which the actual frequency of the device is currently acquired; the reciprocal of the difference between the preset moment and the moment at which the IoT platform initially accesses the device is the actual frequency of the device at the preset moment. It should be noted that when the curve of the actual frequency of the device at the preset moment satisfies a quasi-normal random distribution or the actual frequency of the device is updated and changes rapidly, the information confirmation method of the embodiment of the present invention can reasonably allocate idle resources, ensure the sudden access needs of each device, and avoid idle resources after sudden access of the device, resulting in resource waste.
[0108] Here, according to the access restriction information of the device, the upper limit information m1 and the frequency upper limit information p of the device's access to the resource pool are obtained. l ;
[0109]
[0110]
[0111] l is the number of devices connected to the IoT platform at the current moment; β l is the preset resource pool access frequency weight of the device, which can be confirmed by the average distribution method or determined according to the pre-agreed priority; M is the total number of times the IoT platform accesses the resource pool; F is the total frequency of access to the resource pool of the IoT platform; R0 is the number of reserved devices of the IoT platform, which prevents devices that access the IoT platform first from exhausting platform resources.
[0112] The resource pool capacity is divided into a first sub-capacity and a second sub-capacity using the 80 / 20 principle. The resource pool capacity corresponding to the first sub-capacity is As the basic resource pool of the second device, the resource pool capacity corresponding to the second sub-capacity is
[0113] Statistics such as Figure 2 The lowest point in the curve of the actual frequency of the device shown is the minimum actual frequency of the device accessing the Internet of Things platform;
[0114] When the resource pool capacity corresponding to the first sub-capacity After the resources are exhausted, the resource pool capacity corresponding to the second sub-capacity is controlled The resources of the first sub-capacity are transferred to the resources of the first sub-capacity at a preset rate. This transfer algorithm is similar to the leaky bucket algorithm;
[0115] The resource pool capacity corresponding to the first sub-capacity is filled again When the second sub-capacity stops transferring resources to the first sub-capacity;
[0116] When the resource pool capacities corresponding to the first sub-capacity and the second sub-capacity are completely exhausted, the second device is restricted from accessing platform resources.
[0117] like Figure 3 As shown, an embodiment of the present invention further provides an information confirmation device, including:
[0118] A first acquisition module 301 is configured to, when the IoT platform is connected to at least one first device and then to a second device, obtain an actual frequency of the at least one first device accessing a resource pool of the IoT platform at a current moment;
[0119] A second acquisition module 302 is configured to acquire a frequency weight of the second device based on the actual frequency corresponding to each of the at least one first device, parameter information of the resource pool of the Internet of Things platform, the initial frequency of the second device accessing the resource pool, and a constraint condition of the frequency weight;
[0120] A first determining module 303 is configured to determine access restriction information of the second device according to the frequency weight of the second device;
[0121] The at least one first device is connected at different times;
[0122] The parameter information includes: the number of reserved devices, the total number of times and the total frequency;
[0123] The constraint condition is that the sum of the frequency weights of all devices connected to the Internet of Things platform is equal to the total number of all devices;
[0124] The access restriction information includes at least one of: information on an upper limit on the number of times a resource pool can be accessed and information on an upper limit on the frequency of accessing the resource pool.
[0125] In an embodiment of the present invention, when an Internet of Things platform is connected to at least one first device and then to a second device, the actual frequency of the at least one first device accessing the resource pool of the Internet of Things platform at the current moment is obtained; the frequency weight of the second device is obtained based on the actual frequency corresponding to the at least one first device, the parameter information of the resource pool of the Internet of Things platform, the initial frequency of the second device accessing the resource pool, and the constraint conditions of the frequency weight; the access restriction information of the second device is determined based on the frequency weight of the second device, so as to realize, in a scenario where resources of the Internet of Things platform are limited, flow control of the device is performed in combination with the actual frequency of accessing the resource pool, thereby maximizing resource utilization and satisfying the fairness of resource allocation.
[0126] Optionally, the device further comprises:
[0127] The first control module is configured to perform flow control on the second device according to the access restriction information.
[0128] Optionally, the device further comprises:
[0129] A third acquisition module is configured to, when a curve of an actual frequency of a device connected to the IoT platform at a preset time satisfies a quasi-normal random distribution state, obtain, based on access restriction information corresponding to the device, a resource pool capacity corresponding to an upper limit on the number of times the device may access the resource pool;
[0130] a partitioning module, configured to partition the resource pool capacity into a first sub-capacity and a second sub-capacity;
[0131] a second control module, configured to control the transfer of resources from the second sub-capacity to the resources of the first sub-capacity at a preset rate after the resources of the first sub-capacity are exhausted, until the resources of the first sub-capacity are fully utilized;
[0132] a restriction module, configured to restrict the device from accessing a resource pool when resources of the first sub-capacity and the second sub-capacity are exhausted;
[0133] The first sub-capacity is the basic resource pool capacity of the second device;
[0134] The device includes at least one of the at least one first device and the second device.
[0135] Optionally, the device further comprises:
[0136] a fourth acquisition module, configured to acquire a frequency weight of the device that first accesses the IoT platform based on the parameter information, an initial frequency corresponding to the device that first accesses the IoT platform, and the constraint condition;
[0137] A second determining module is configured to determine access restriction information of the device accessing for the first time according to the frequency weight of the device accessing for the first time;
[0138] The at least one first device includes the device accessed for the first time.
[0139] Optionally, the first acquiring module 301 is specifically configured to:
[0140] According to the time when the at least one first device last updated the actual frequency and the current time, the actual frequency of the at least one first device at the current time is acquired.
[0141] Optionally, the device further comprises:
[0142] The first updating module is configured to update the frequency weight of the at least one first device according to the actual frequency of the at least one first device at a current moment and the initial frequency of the second device.
[0143] Optionally, the device further comprises:
[0144] The second updating module is configured to update the access restriction information of the at least one first device according to the updated frequency weight of the at least one first device.
[0145] Optionally, the device further comprises:
[0146] The third control module is configured to perform flow control on the at least one first device according to the updated access restriction information of the at least one first device.
[0147] It should be noted that the information confirmation device provided in the embodiment of the present invention is a device capable of executing the above-mentioned information confirmation method, so all embodiments of the above-mentioned information confirmation method are applicable to the device and can achieve the same or similar technical effects.
[0148] An embodiment of the present invention further provides an electronic device, comprising: a processor, a memory, and a program stored in the memory and executable on the processor, wherein the program, when executed by the processor, implements the steps of the information confirmation method as described in any one of the above items.
[0149] An embodiment of the present invention further provides a readable storage medium, on which a program is stored. When the program is executed by a processor, the steps of the information confirmation method as described in any one of the above items are implemented.
[0150] The processor is the processor of the electronic device described in the above embodiment. The readable storage medium includes a computer-readable storage medium, such as a computer read-only memory (ROM), random access memory (RAM), a magnetic disk, or an optical disk.
[0151] In embodiments of the present invention, modules can be implemented in software so that they can be executed by various types of processors. For example, an identified executable code module can include one or more physical or logical blocks of computer instructions, for example, which can be constructed as objects, procedures, or functions. Nevertheless, the executable code of the identified module does not need to be physically located together, but can include different instructions stored in different locations, which, when logically combined together, constitute the module and achieve the specified purpose of the module.
[0152] In fact, executable code module can be a single instruction or many instructions, and can even be distributed on a plurality of different code segments, distributed in the middle of different programs, and distributed across a plurality of memory devices.Similarly, operating data can be identified in the module, and can be implemented and organized in the data structure of any appropriate type according to any appropriate form.Described operating data can be collected as a single data set, or can be distributed in different locations (including on different storage devices), and can only be present on a system or network as an electronic signal at least in part.
[0153] When a module can be implemented using software, given the current state of hardware technology, those skilled in the art can build corresponding hardware circuits to implement the corresponding functions of the module, regardless of cost. The hardware circuits may include conventional very large scale integration (VLSI) circuits or gate arrays, as well as existing semiconductors such as logic chips and transistors, or other discrete components. Modules may also be implemented using programmable hardware devices, such as field programmable gate arrays, programmable array logic, or programmable logic devices.
[0154] The above exemplary embodiments are described with reference to the accompanying drawings. Many different forms and embodiments are possible without departing from the spirit and teachings of the present invention. Therefore, the present invention should not be construed as limited to the exemplary embodiments set forth herein. Rather, these exemplary embodiments are provided so that this disclosure will be complete and perfect and will convey the scope of the invention to those skilled in the art. In the drawings, component sizes and relative sizes may be exaggerated for clarity. The terminology used herein is for purposes of describing specific exemplary embodiments only and is not intended to be limiting. As used herein, the singular forms "a," "an," and "the" are intended to include plural forms, unless the context clearly indicates otherwise. It will be further understood that the terms "comprising" and / or "including," when used in this specification, indicate the presence of stated features, integers, steps, operations, components, and / or elements, but do not preclude the presence or addition of one or more other features, integers, steps, operations, components, elements, and / or groups thereof. Unless otherwise indicated, when stated, a range of values includes the upper and lower limits of that range and any subranges therebetween.
[0155] The above is a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present invention. These improvements and modifications should also be regarded as within the scope of protection of the present invention.
Claims
1. An information confirmation method, characterized in that: include: When the Internet of Things platform is connected to at least one first device and then to a second device, obtaining an actual frequency of the at least one first device accessing a resource pool of the Internet of Things platform at a current moment; Obtaining a frequency weight of the second device according to the actual frequencies respectively corresponding to the at least one first device, parameter information of the resource pool of the Internet of Things platform, the initial frequency of the second device accessing the resource pool, and a constraint condition of the frequency weight; determining access restriction information of the second device according to the frequency weight of the second device; The at least one first device is connected at different times; The parameter information includes: the number of reserved devices, the total number of times and the total frequency; The constraint condition is that the sum of the frequency weights of all devices connected to the Internet of Things platform is equal to the total number of all devices; The sum of the frequency weights of the at least one first device and the second device is equal to the number of devices; The access restriction information includes at least one of: information on an upper limit on the number of times a resource pool can be accessed and information on an upper limit on the frequency of access to the resource pool; performing flow control on the second device according to the access restriction information; updating the frequency weights of the at least one first device according to the actual frequency of the at least one first device at a current moment and the initial frequency of the second device; updating the access restriction information of the at least one first device respectively according to the updated frequency weight of the at least one first device; According to the updated access restriction information of the at least one first device, flow control is performed on the at least one first device respectively.
2. The information confirmation method according to claim 1, characterized in that: The method further comprises: When the actual frequency curve of the device connected to the Internet of Things platform at the preset time satisfies a quasi-normal random distribution state, the resource pool capacity corresponding to the upper limit information of the number of times the device can access the resource pool is obtained according to the access restriction information corresponding to the device; Dividing the resource pool capacity into a first sub-capacity and a second sub-capacity; After the resources of the first sub-capacity are exhausted, controlling the resources of the second sub-capacity to transfer to the resources of the first sub-capacity at a preset rate until the resources of the first sub-capacity are full; When resources of the first sub-capacity and the second sub-capacity are exhausted, restricting the device from accessing the resource pool; The first sub-capacity is the basic resource pool capacity of the second device; The device includes at least one of the at least one first device and the second device.
3. The information confirmation method according to claim 1, wherein: In a case where the Internet of Things platform is connected to at least one first device and then to a second device, before obtaining the actual frequency of the at least one first device accessing the resource pool of the Internet of Things platform at the current moment, the method further includes: Obtaining a frequency weight of the device that is first connected to the Internet of Things platform according to the parameter information, the initial frequency corresponding to the device that is first connected to the Internet of Things platform, and the constraint condition; Determining access restriction information for the device accessing for the first time according to the frequency weight of the device accessing for the first time; The at least one first device includes the device accessed for the first time.
4. The information confirmation method according to claim 1, wherein: When an Internet of Things platform is connected to at least one first device and then to a second device, obtaining actual frequencies of the at least one first device accessing a resource pool of the Internet of Things platform at a current moment includes: According to the time when the at least one first device last updated the actual frequency and the current time, the actual frequency of the at least one first device at the current time is acquired.
5. An information confirmation device, characterized in that: include: A first acquisition module is configured to, when the Internet of Things platform is connected to at least one first device and then to a second device, acquire an actual frequency at which the at least one first device accesses the Internet of Things platform at a current moment; A second acquisition module is configured to acquire a frequency weight of the second device based on the actual frequency corresponding to each of the at least one first device, parameter information of the resource pool of the Internet of Things platform, an initial frequency at which the second device accesses the resource pool, and a constraint condition of the frequency weight; a determining module, configured to determine access restriction information of the second device according to the frequency weight of the second device; The at least one first device is connected at different times; The parameter information includes: the number of reserved devices, the total number of times and the total frequency; The constraint condition is that the sum of the frequency weights of all devices connected to the Internet of Things platform is equal to the total number of all devices; The access restriction information includes at least one of: information on an upper limit on the number of times a resource pool can be accessed and information on an upper limit on the frequency of access to the resource pool; a first control module, configured to perform flow control on the second device according to the access restriction information; a first updating module, configured to update the frequency weight of the at least one first device according to the actual frequency of the at least one first device at a current moment and the initial frequency of the second device; a second updating module, configured to update the access restriction information of the at least one first device respectively according to the updated frequency weight of the at least one first device; The third control module is configured to perform flow control on the at least one first device according to the updated access restriction information of the at least one first device.
6. An electronic device, characterized in that: include: A processor, a memory, and a program stored in the memory and executable on the processor, wherein when the program is executed by the processor, the steps of the information confirmation method according to any one of claims 1 to 4 are implemented.
7. A readable storage medium, characterized in that: The readable storage medium stores a program, and when the program is executed by a processor, the steps of the information confirmation method according to any one of claims 1 to 4 are implemented.
Citation Information
Patent Citations
Resource scheduling method, resource scheduling device, electronic equipment and storage medium
CN111880914A
Dynamic Internet-of-Things equipment access platform and method
CN112019639A