Access parameter adjusting method and device, storage medium and electronic equipment
By analyzing resource status information in the historical cycle and dynamically adjusting the access parameters of the second device, the problem of ineffective access resource allocation in the prior art is solved, and the utilization rate of access resources and the success rate of equipment access is improved.
Patent Information
- Application Number
- CN202510233661.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-28
- Publication Date
- 2025-03-28
- Estimated Expiration
- 2045-02-28
AI Technical Summary
The prior art cannot effectively allocate access resources, resulting in severe congestion during the equipment access process, increased access delay and low resource utilization.
By determining the resource status information of the target resource in the historical cycle, the number of the first device in the current cycle is calculated, and the access parameters of the second device are adjusted based on the number to control the number of the first device accessing the second device.
It effectively improves the utilization rate of access resources, reduces conflicts and abnormalities during device access, and improves the success rate of the first device to access the second device and the overall performance of the second device.
Smart Images

Figure CN119729885A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the computer field, and specifically, to a method and device for adjusting access parameters, a storage medium, and an electronic device. Background Art
[0002] At present, due to limited access resources, a large number of terminal devices may compete for the same access resources at the same time, which will lead to serious congestion and increased access delay. For example, in the field of wireless communications, the limitation of random access channel resources will cause multiple terminals to compete for a random access resource at the same time, which will cause congestion and reduce the throughput of the random access system. On the contrary, a large number of idle resources will be generated, resulting in a waste of resources.
[0003] In the related art, different backoff times are mainly selected for terminal devices of different priorities, and conflicts are alleviated by extending the backoff time of low-priority services. However, this method will also increase access delay, have low resource utilization, and fail to reasonably allocate access resources. Summary of the invention
[0004] The embodiments of the present application provide a method and device for adjusting access parameters, a storage medium, and an electronic device, so as to at least solve the problem that access resources cannot be effectively allocated in the related art.
[0005] According to an embodiment of the present application, a method for adjusting access parameters is provided, including: determining resource status information of a target resource in a historical period, wherein the target resource is a resource to which a first device requests access to a second device; using the resource status information to determine the number of the first devices in a current period to obtain a target number, wherein the first device is a device to be accessed to the second device in the current period; adjusting the access parameters of the second device based on the target number to obtain a target access parameter, wherein the target access parameter is used to control the number of the first device accessing the second device in the current period.
[0006] In an exemplary embodiment, determining resource status information of a target resource within a historical period includes: determining L resource blocks included in the target resource within the historical period, wherein L is a power of 2; determining resource usage status of the L resource blocks within the historical period; and determining resource status information of the target resource within the historical period using the resource usage status.
[0007] In an exemplary embodiment, determining the resource usage status of the L resource blocks in the historical period includes: counting the number of resource blocks in the historical period that are in an idle state to obtain a first number; counting the number of resource blocks that are selected by a preset number of the first devices and connected to the second device by a preset number of the first devices to obtain a second number; counting the number of resource blocks that are selected by a plurality of the first devices and abnormalities occur when the plurality of the first devices are connected to the second device to obtain a third number; and determining the first number, the second number, and the third number as the resource usage status.
[0008] In an exemplary embodiment, the resource usage status is used to determine the resource status information of the target resource in a historical period, including: calculating the average value of the L resource blocks in the idle state in the historical period to obtain a first average value; calculating the average value of the L resource blocks selected by a preset number of the first devices in the historical period and the resource blocks connected from the first device to the second device to obtain a second average value; calculating the average value of the L resource blocks selected by a plurality of the first devices in the historical period and the resource blocks in which abnormalities occur when the first device is connected to the second device to obtain a third average value; and determining the resource usage status, the first average value, the second average value and the third average value as the resource status information.
[0009] In an exemplary embodiment, the resource status information is used to determine the quantity of the first devices in the current cycle to obtain a target quantity, including: determining a first correspondence between the first average value and the first quantity, a second correspondence between the second average value and the second quantity, and a third correspondence between the third average value and the third quantity; according to the first correspondence, the second correspondence and the third correspondence, the quantity of the first devices in the current cycle is calculated to obtain the target quantity.
[0010] In an exemplary embodiment, the access parameter of the second device is adjusted based on the target number to obtain the target access parameter, including: using the target number to calculate the average number of the first devices allowed to access a single resource block to obtain a fourth number; calculating the target access parameter according to a functional relationship between the fourth number, the number of resource blocks included in the target resource block in the current cycle, and the access probability of the first device accessing the second device, wherein the access probability includes: when a preset number of the first devices are included in one resource block, the probability of a preset number of the first devices accessing the second device; when a plurality of the first devices are included in one resource block, the probability of the first device accessing the second device.
[0011] In an exemplary embodiment, before determining the resource status information of the target resource in the historical period, the method further includes: setting the device parameters and the access parameters of the second device; setting the access resources of the second device according to the device parameters to obtain the target resource;
[0012] The access parameter is broadcast to the first device, wherein the access parameter is used to adjust the number of times the first device accesses the second device within the historical period.
[0013] In an exemplary embodiment, after adjusting the access parameter of the second device based on the target number and obtaining the target access parameter, the method further includes: broadcasting the target access parameter so that the first device receives the target access parameter.
[0014] According to another embodiment of the present application, a method for controlling device access is provided, comprising: receiving a first broadcast message, wherein the first broadcast message includes a target access parameter, the target access parameter is a parameter obtained by adjusting an access parameter of the second device based on a target number, and the target number is the number of first devices to be connected to the second device in a current period; and using the target access parameter to control the number of the first devices connected to the second device in the current period.
[0015] In an exemplary embodiment, before receiving the first broadcast message, the method further includes: receiving a second broadcast message, wherein the second broadcast message includes the access parameter; and adjusting the access parameter of the first device in the current period in response to the second broadcast message.
[0016] In an exemplary embodiment, in response to the second broadcast message, adjusting the access parameters of the first device in the current period includes: generating a first random parameter, wherein the first random parameter is within a preset range; in a case where the first random parameter is less than or equal to the access parameter in the second broadcast message, selecting a target resource block from L resource blocks included in the target resource, wherein the target resource is a resource for which the first device requests access to the second device, and the target resource block is any one of the L resource blocks; sending an access request to the second device through the target resource block to request access to the second device; in a case where the first random parameter is greater than the access parameter in the second broadcast message, regenerating a second random parameter after a preset time interval so that the second random parameter is less than or equal to the access parameter in the second broadcast message.
[0017] According to another embodiment of the present application, there is provided an access parameter adjustment device, comprising: a first memory, a first processor, and a first computer program stored in the first memory and executable on the first processor, wherein the first processor implements the following operations when executing the first computer program: determining resource status information of a target resource in a historical period, wherein the target resource is a resource to which a first device requests access to a second device; determining the number of the first devices in a current period using the resource status information to obtain a target number, wherein the first device is a device to be accessed to the second device in the current period; adjusting the access parameters of the second device based on the target number to obtain a target access parameter, wherein the target access parameter is used to adjust the number of the first device accessing the second device in the current period.
[0018] According to another embodiment of the present application, a device access adjustment apparatus is provided, comprising: a second memory, a second processor, and a second computer program stored in the second memory and executable on the second processor, wherein the second processor implements the following operations when executing the second computer program: receiving a first broadcast message, wherein the first broadcast message includes a target access parameter, the target access parameter is a parameter obtained by adjusting the access parameter of the second device based on a target number, the target number being the number of first devices to be connected to the second device in a current period; and using the target access parameter to control the number of the first devices connected to the second device in the current period.
[0019] According to another embodiment of the present application, a computer program product is provided, including a computer program, and when the computer program is executed by a processor, the steps in any of the above method embodiments are implemented.
[0020] According to another embodiment of the present application, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when run.
[0021] According to another embodiment of the present application, an electronic device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.
[0022] Through this application, since the resource status information of the target resource in the historical period is used to determine the number of first devices in the current period, the access parameters of the second device can be dynamically adjusted based on the number of first devices, so that the number of first devices requesting access to the second device can be adjusted according to the target access parameters in the current period. This effectively improves the utilization rate of access resources, reduces conflicts and anomalies in the device access process, and improves the success rate of the first device accessing the second device and the overall performance of the second device. Therefore, the problem of the inability to effectively allocate access resources in the related technology can be solved, and the effect of effectively allocating access resources and improving the utilization rate of access resources can be achieved. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] Figure 1 It is a hardware structure block diagram of a server device of an access parameter adjustment method according to an embodiment of the present application;
[0024] Figure 2 is a flow chart of a method for adjusting access parameters according to an embodiment of the present application;
[0025] Figure 3 is a flowchart of a method for controlling device access according to an embodiment of the present application;
[0026] Figure 4 is a flowchart of interaction between a base station and a user equipment according to a specific embodiment of the present application;
[0027] Figure 5 is a structural block diagram of an access parameter adjustment device according to an embodiment of the present application;
[0028] Figure 6 It is a structural block diagram of a device access adjustment apparatus according to an embodiment of the present application. DETAILED DESCRIPTION
[0029] The embodiments of the present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0030] It should be noted that the terms "first", "second", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.
[0031] The method embodiments provided in the embodiments of the present application can be executed in a server device or a similar computing device. Taking running on a server device as an example, Figure 1 1 is a hardware structure block diagram of a server device of an access parameter adjustment method according to an embodiment of the present application. Figure 1 As shown, the server device may include one or more ( Figure 1 A processor 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data, wherein the server device may also include a transmission device 106 and an input / output device 108 for communication functions. A person skilled in the art can understand that Figure 1 The structure shown is for illustration only and does not limit the structure of the above server device. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations are shown.
[0032] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the access parameter adjustment method in the embodiment of the present application. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, to implement the above method. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories may be connected to the server device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0033] The transmission device 106 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the server device. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0034] In this embodiment, a method for adjusting access parameters is provided. Figure 2 is a flow chart of a method for adjusting access parameters according to an embodiment of the present application, such as Figure 2 As shown, the process includes the following steps:
[0035] Step S202, determining resource status information of a target resource in a historical period, wherein the target resource is a resource that a first device requests to access a second device;
[0036] Optionally, this embodiment includes but is not limited to being applied to scenarios where access parameters need to be adjusted in wireless communication systems. For example, scenarios of channel allocation in mobile communication networks, scenarios of channel selection in wireless local area networks, and scenarios of channel selection in wireless sensor networks. The wireless access parameters in these application scenarios need to be optimized and adjusted according to specific communication requirements, network environment, and device characteristics. Through reasonable wireless access parameter configuration, the performance, reliability, and user experience of the wireless communication system can be improved. Among them, the access parameters in this embodiment include various parameters for controlling and managing wireless channels. These parameters are crucial to ensuring communication quality, improving efficiency, and meeting the needs of different application scenarios.
[0037] Optionally, the target resources in this embodiment include but are not limited to resources with network access capabilities. For example, random access resources included in a wireless communication system. Among them, random access resources are resources used to support the connection establishment process between a user device (e.g., a mobile phone) and a network in a wireless communication system. These resources are mainly used on a random access channel (RACH for short), which can help the user device complete tasks such as registration, synchronization, and data transmission in the network. Random access resources include but are not limited to several aspects: time resources, such as subframes and time slots. The user equipment needs to send a random access preamble on these time resources so that the network can receive and process its random access request. Frequency resources, such as resource blocks (RBs for short) or frequency bands. The user equipment needs to send a random access preamble on these frequency resources so that the network can receive and process its random access request. Power control, including initial power setting and power adjustment based on network feedback. Random access resources together constitute the basis of the random access process in a wireless communication system, which can ensure that the user equipment can effectively establish a connection with the network and perform data transmission.
[0038] Optionally, the historical period in this embodiment includes but is not limited to a historical period of time or a historical information frame. For example, in a wireless communication system, a historical frame refers to a historical time period during which multiple time slots are allocated for data transmission. A time slot is a smaller time unit within a frame and is used to transmit data or control information.
[0039] Optionally, the resource status information in this embodiment includes but is not limited to the usage status of the target resource in the historical period. For example, in a random access system, multiple terminal users are randomly distributed around the base station, and one information frame includes multiple time slots. The resource status information of the information frame includes the number of idle states, collision states, and success states in multiple time slots. Among them, in this embodiment, the idle state refers to a user device that has not successfully accessed the base station in a time slot, that is, no user device selects the time slot to send an access request to the base station. The collision state means that no user device can successfully decode a time slot, or there are more than two users selecting the same time slot. Both of these situations will result in access failure. The successful state refers to the presence of a user device that has successfully accessed the base station in a time slot.
[0040] Optionally, the first device in this embodiment includes but is not limited to a device that needs to be connected to other devices for data transmission. For example, user equipment and user terminals in the above wireless communication system. The second device includes but is not limited to a device with network access capability, such as a wireless access point (AP), a micro base station, an irregularly distributed base station, a portable base station, a communication system, and a radio transmitter.
[0041] Step S204, determining the number of the first devices in the current cycle by using the resource status information to obtain a target number, wherein the first devices are devices to be connected to the second device in the current cycle;
[0042] Optionally, the current period in this embodiment includes but is not limited to a current period of time or a current information frame. For example, in a wireless communication system, the current frame refers to a current time period, during which multiple time slots are allocated for data transmission. A time slot is a smaller time unit within a frame, used to transmit data or control information.
[0043] Optionally, the number of first devices in the current cycle refers to the number of remaining first devices that have not accessed the second device in the current cycle. Or, first devices that have not been allocated resources in the historical cycle, for example, in a network communication system with limited resources, such as a wireless communication network system, a part of users may be able to obtain time slot resources at the same time in one information frame. The remaining user devices refer to those user devices that have not yet obtained time slot resources. For another example, in a wireless communication network system, the remaining user devices that have not successfully accessed the base station in the previous information frame. The number of remaining user devices will greatly affect the performance of the wireless communication system. If the number of user devices that respond to the system at the same time is too large, a large number of collision time slots will be generated; conversely, a large number of idle time slots will be generated, resulting in a waste of resources.
[0044] Step S206: Adjust the access parameter of the second device based on the target number to obtain a target access parameter, wherein the target access parameter is used to control the number of the first device accessing the second device in the current period.
[0045] Optionally, the access parameters in this embodiment include, but are not limited to, parameters for controlling and optimizing device access performance. For example, the number of access attempts, access request interval, random backoff time, channel selection strategy, access window, access class barring (ACB) control factor, etc. This embodiment takes the access parameter as an example of an ACB factor, wherein the ACB factor is a factor based on the ACB mechanism, which can quickly adjust the number of access applications received by the base station side, thereby achieving the purpose of controlling traffic and improving access success rate. The ACB factor includes, but is not limited to: ACB information, which is a parameter containing ACB rules, used to guide the network on how to handle access requests from different categories of devices. ACB information is usually represented in binary format, and each bit represents a specific user category or service type. ACB categories define different user categories based on user identity, service type or other attributes. For example, emergency service users may belong to a high-priority ACB category, while ordinary users may belong to a low-priority ACB category. ACB levels define the access levels of different categories of users in the network. For example, a user may be assigned to ACB level 0 (highest priority) or ACB level 3 (lowest priority). The network can decide whether to allow user access or limit the user's access rate based on the ACB level. ACB capacity is used to limit the number of users in each ACB category to prevent network congestion. For example, the network can set an ACB capacity threshold, and when the number of users in an ACB category reaches this threshold, the network will prohibit other users in this category from accessing. ACB time is used to define the effective time of the ACB rule. For example, the network can enable ACB rules during a specific time period to cope with network congestion during peak hours. ACB reason is used to indicate the reason for enabling ACB, such as network congestion, emergency, or other special events. This helps network operators understand when ACB rules need to be enabled and take appropriate measures. By properly configuring ACB factors, network resources can be effectively managed to ensure high-quality services for users in different situations.
[0046] The execution subject of the above steps in this embodiment may be a specific processor set in the second device, or a processor or processing device set relatively independently from the second device, but is not limited thereto. For example, a processor set in a wireless communication system.
[0047] Through the above steps, since the resource status information of the target resource in the historical period is used to determine the number of first devices in the current period, the access parameters of the second device can be dynamically adjusted based on the number of first devices, so that the number of first devices requesting access to the second device can be adjusted according to the target access parameters in the current period. This effectively improves the utilization rate of access resources, reduces conflicts and anomalies in the device access process, and improves the success rate of the first device accessing the second device and the overall performance of the second device. Therefore, the problem of the inability to effectively allocate access resources in the related technology can be solved, and the effect of effectively allocating access resources and improving the utilization rate of access resources can be achieved.
[0048] In an exemplary embodiment, the above step S202 may determine the resource status information of the target resource in the historical period by the following steps:
[0049] Step S302, determining L resource blocks included in the target resource in the historical period, where L is a power of 2;
[0050] Step S304, determining the resource usage status of the L resource blocks in the historical period;
[0051] Step S306: Determine resource status information of the target resource in a historical period using the resource usage status.
[0052] Optionally, the value of L in this embodiment is related to the allocated resources of the second device. n (n>2, n∈N + ). For example, when the second device is a base station, the number of time slot resources allocated by the base station to a certain historical information frame is related to the following factors in the random access system: The bandwidth and capacity of the system, the amount of data in each time slot can be determined according to the bandwidth and capacity of the system to ensure sufficient information transmission speed and capacity. The priority of data transmission, the number of time slots allocated to each data frame can be determined according to the importance and urgency of different data. The load condition of the system, the allocation of the number of time slots can be dynamically adjusted according to the current load condition of the system to avoid system overload or waste of resources. For example, the base station allocates 10 time slot resources to a certain historical information frame, that is, in this historical information frame, 10 consecutive time slots are allocated to the information frame. These time slots can be used for data transmission to ensure that information can be smoothly transmitted from the user equipment to the base station.
[0053] Optionally, the resource usage status is directly related to the type of resource block. For example, in the case where the resource block is a time slot resource included in an information frame in a wireless communication system, the resource usage status includes but is not limited to the usage of each time slot resource, including the number of time slots in an idle state, the number of time slots in a collision state, and the number of time slots in a successful state among multiple time slots.
[0054] Optionally, the resource status information in this embodiment includes the resource usage status mentioned above, as well as other information. For example, when the resource block is a time slot resource included in an information frame in a wireless communication system, the resource status information also includes information about user equipment accessing each time slot, including but not limited to the probability of successfully accessing multiple user equipment in each time slot, the average value of time slots in an idle state in an information frame, etc.
[0055] By analyzing the resource usage status in the historical cycle, this embodiment can more accurately understand the resource usage, so as to make more reasonable resource allocation and optimization decisions in the next cycle. In addition, by analyzing historical data, the pattern and trend of resource usage can be identified, and future resource demand can be predicted to provide a basis for long-term planning. By identifying unused or inefficiently used resource blocks, measures can be taken to improve resource utilization and reduce resource waste.
[0056] In an exemplary embodiment, the above step S304 may determine the resource usage status of the L resource blocks in the historical period by the following steps:
[0057] Step S402, counting the number of resource blocks in the L resource blocks that are in an idle state in the historical period to obtain a first number;
[0058] Step S404, counting the number of resource blocks selected by a preset number of the first devices and connected to the second device by a preset number of the first devices in the historical period, to obtain a second number;
[0059] Step S406, counting the number of L resource blocks selected by the plurality of first devices in the historical period and having abnormalities when the plurality of first devices are connected to the second device, to obtain a third number;
[0060] Step S408: determine the first quantity, the second quantity, and the third quantity as the resource usage status.
[0061] Optionally, the statistical methods in the above steps S402, S404, and S406 are related to factors such as the type of resource block (e.g., time, space, computing power, etc.), historical period, and definition of different states. For example, when counting the number of resource blocks in an idle state among L resource blocks in a specific historical period, first, it is determined that the resource block is a time slot resource, the historical period is an information frame, and the idle state refers to the state in which the time slot resource has not been selected by the user equipment in the historical period. Then, the usage status (idle number or congested number) of the time slot resource can be counted by querying the log, monitoring system, or database. For another example, in the case where a wireless communication system includes 10 time slot resources, the idle time slots in the historical period are counted to include 2, the successful time slots include 5, and the remaining is the number of collision time slots, which is 3.
[0062] The idle time slot is a resource block in the idle state. In this time slot, no terminal attempts to send data, so there is no data collision. The successful time slot is a resource block in which the first device accesses the second device. In this time slot, there is exactly D 0 The collision time slot is a resource block where abnormalities occur when multiple first devices access the second device. In this time slot, there are D 0 If more than one terminal attempts to send data at the same time, data collision will occur and all sent data will be lost.
[0063] This embodiment helps to more effectively allocate resources in the next cycle, reduce waste, and improve overall network performance by counting the number of idle, successful, and collision resource blocks.
[0064] In an exemplary embodiment, the above step S306 can determine the resource status information of the target resource in the historical period by using the resource usage status through the following steps:
[0065] Step S502, calculating an average value of the L resource blocks in the idle state in the historical period to obtain a first average value;
[0066] Step S504, calculating an average value of the resource blocks selected by a preset number of the first devices and connected by the first device to the second device in the historical period, to obtain a second average value;
[0067] Step S506, calculating an average value of the L resource blocks selected by the plurality of the first devices in the historical period and the resource blocks in which abnormalities occur when the first device is connected to the second device, to obtain a third average value;
[0068] Step S508: determine the resource usage status, the first average value, the second average value, and the third average value as the resource status information.
[0069] Optionally, the average value in the idle state in step S502 includes the average idle time slot resources, which refers to the average number of time slots that are not used, or idle, in a frame. To calculate the average idle time slot resources in a frame, the following information is required: Frame length: that is, the duration of a frame. Number of time slots: that is, the total number of time slots that can be allocated in a frame. Number of time slots actually used: that is, the number of time slots actually used for data transmission in a frame. The calculation formula can be: Average idle time slot resources , where L is used to represent the number of time slots contained in a frame, It is used to indicate the number of user equipments randomly distributed around the base station. This average value can reflect the idleness of resources within a frame.
[0070] Optionally, the average value of the resource blocks selected by the preset number of the first devices in step S504 and accessed by the first device to the second device includes the average number of time slot resources that can be successfully accessed within a frame, which refers to the number of time slot resources that can be successfully allocated to the user equipment within a frame in the wireless communication system. The average number of time slot resources that can be successfully accessed can be calculated by the following formula: Average number of time slot resources that can be successfully accessed , where L is used to represent the number of time slots contained in a frame, Used to indicate the number of user devices randomly distributed around the base station. It is used to indicate the maximum number of users that the system can identify on the same time slot resource. Both d and i are counters. di Used to represent the first device U di The probability of successful access, C d m0 =m 0 ! / d!(m 0 -d).
[0071] Optionally, in step S506, the average value of the resource blocks selected by the plurality of first devices and in which the first device accesses the second device abnormally includes the average number of collision resources in one frame. The average number of collision time slots in one frame may be affected by various factors such as the load of the network, the number of network devices, and the network topology. The average number of collision time slots in one frame may be calculated by the following formula: , where L is used to represent the number of time slots contained in a frame, and E I It is used to indicate the average idle time slot resources in a frame, E s Used to indicate the average number of time slot resources that can be successfully accessed within a frame.
[0072] This embodiment calculates the average usage of resource blocks to identify which resource blocks are idle and which resource blocks are occupied by less than devices are selected, and which resource blocks are It helps to optimize resource allocation and ensure that resources are used more effectively.
[0073] In an exemplary embodiment, the above step S204 can determine the number of the first devices in the current cycle by using the resource status information to obtain the target number through the following steps:
[0074] Step S602, determining a first corresponding relationship between the first average value and the first quantity, a second corresponding relationship between the second average value and the second quantity, and a third corresponding relationship between the third average value and the third quantity;
[0075] Step S604: Calculate the number of the first devices in the current period according to the first corresponding relationship, the second corresponding relationship, and the third corresponding relationship to obtain the target number.
[0076] Optionally, the first corresponding relationship between the first average value and the first quantity in step S602 includes but is not limited to the square of the difference between the first average value and the first quantity. The second corresponding relationship between the second average value and the second quantity includes but is not limited to the square of the difference between the second average value and the second quantity. The third corresponding relationship between the third average value and the third quantity includes but is not limited to the square of the difference between the third average value and the third quantity.
[0077] Optionally, the target quantity in step S604 can be based on the E calculated above. I 、E s 、E c , and the square of each difference in the above. For example, the number of user equipments participating in the competition in the current frame can be calculated by the following formula:
[0078] ,in, , and are used to represent the first number, the second number and the third number respectively, and then the number of remaining users is obtained as: .
[0079] This embodiment can calculate the number of first devices in the current cycle according to the first corresponding relationship, the second corresponding relationship and the third corresponding relationship, so as to allocate resources more accurately, ensure that the number of user devices matches the actual resources, and avoid resource waste or shortage.
[0080] In an exemplary embodiment, step S206 may adjust the access parameters of the second device based on the target number to obtain the target access parameters in the following manner:
[0081] Step S702, using the target number to calculate the average number of the first devices allowed to access a single resource block, to obtain a fourth number;
[0082] Step S704, calculate the target access parameter according to the functional relationship between the fourth quantity, the number of resource blocks included in the target resource block in the current cycle, and the access probability of the first device accessing the second device, wherein the access probability includes: when a preset number of the first devices are included in one resource block, the probability of a preset number of the first devices accessing the second device; when multiple first devices are included in one resource block, the probability of the first device accessing the second device.
[0083] Optionally, in step S702, by calculating the average number of first devices allowed to access a single resource block, it is possible to evaluate whether the capacity of the network meets current and future user needs. In the case where the resource block is a time slot resource, the average number of user devices that can access a single time slot can be calculated by the following formula:
[0084] ,in, It is used to indicate access parameters, mainly used to control the number of users that respond to the base station at the same time. L is used to indicate the number of time slots contained in a frame. The remaining user data is ,q 11 Used to represent user U 11 The probability of successful access, q 21 Used to represent user U 21 The probability of successful access, q 22 Used to represent user U 22 The probability of successful access is and .
[0085] Optionally, in step S704, based on the above formula, ρ is diverged, that is, , we can obtain: , the number of remaining users is the number of remaining users in this time slot: . is the number of remaining users in the previous time slot.
[0086] The target access parameters can be calculated for: ,in, , , , It should be noted that when season .
[0087] Optionally, in step S704, for example, when each resource block can accommodate at most two user equipments, that is, D 0 =2 For a certain time slot resource, including a user The probability of successfully accessing the user can be calculated by the following formula:
[0088] ,in, , , Used to indicate the average received power of the signal.
[0089] When two user equipments select the same time slot, ,in, For users The minimum target rate is . The first user device can be obtained The probability of access is:
[0090] in, , .
[0091] First user device After decoding, the remaining user devices Only then can decoding begin. So the user equipment The probability of successful access is the probability that two user devices access the same time slot at the same time. Therefore, the probability of the second user can be calculated as:
[0092] .
[0093] This embodiment can optimize the access process of the device and improve the access success rate by considering the access probability.
[0094] In an exemplary embodiment, before determining the resource status information of the target resource in the historical period, the method further includes:
[0095] Step S802, setting device parameters and the access parameters of the second device;
[0096] Step S804, setting the access resources of the second device according to the device parameters to obtain the target resources;
[0097] Step S806: broadcast the access parameter to the first device, wherein the access parameter is used to adjust the number of times the first device accesses the second device within the historical period.
[0098] Optionally, in this embodiment, the device parameters and access parameters of the second device are set, including but not limited to setting the device name, time settings, firmware version, etc. Adjust as needed. Setting access parameters includes but is not limited to setting the network connection settings of the device, such as IP address, subnet mask, gateway, DNS server, etc. These settings need to match your network environment. For example, the base station initializes the parameters of the wireless communication system. , the base station broadcasts an initialized ACB factor to the user equipment .
[0099] This embodiment can more effectively utilize network resources and reduce waste through accurate parameter settings and resource allocation. Optimized device parameters and access parameters can improve communication efficiency between devices and reduce delays and error rates. By adjusting access parameters, network loads can be balanced to avoid overloading of certain devices or resources, thereby improving overall network performance.
[0100] In an exemplary embodiment, after adjusting the access parameter of the second device based on the target number and obtaining the target access parameter, the method further includes: broadcasting the target access parameter so that the first device receives the target access parameter.
[0101] Optionally, the broadcasting method of this embodiment is not limited. For example, the base station broadcasts a message carrying the target access parameter to the user equipment through the wireless communication network. Specifically, the base station generates a message to be broadcast. The base station encodes the message into a format suitable for wireless transmission. The encoded message needs to be modulated into a signal suitable for wireless transmission. The base station sends the modulated signal through a wireless channel.
[0102] This embodiment transmits the target access parameter to the user equipment by broadcasting, and can quickly instruct the user equipment to adjust the number of accesses, thereby improving access efficiency and making reasonable use of resources.
[0103] In this embodiment, a method for controlling device access is provided. Figure 3 is a flowchart of a method for controlling device access according to an embodiment of the present application. Figure 3 As shown, the process includes the following steps:
[0104] Step S3002, receiving a first broadcast message, wherein the first broadcast message includes a target access parameter, the target access parameter is a parameter obtained by adjusting an access parameter of the second device based on a target number, and the target number is the number of the first device to be connected to the second device in a current period;
[0105] Step S3004: Use the target access parameter to control the number of the first devices connected to the second device in the current period.
[0106] Optionally, this embodiment includes but is not limited to being applied to scenarios where access parameters need to be adjusted in wireless communication systems. For example, scenarios of channel allocation in mobile communication networks, scenarios of channel selection in wireless local area networks, and scenarios of channel selection in wireless sensor networks. The wireless access parameters in these application scenarios need to be optimized and adjusted according to specific communication requirements, network environment, and device characteristics. Through reasonable wireless access parameter configuration, the performance, reliability, and user experience of the wireless communication system can be improved. Among them, the access parameters in this embodiment include various parameters for controlling and managing wireless channels. These parameters are crucial to ensuring communication quality, improving efficiency, and meeting the needs of different application scenarios.
[0107] Optionally, in step S3002, the broadcast message is broadcast by the second device. For example, the base station broadcasts a message carrying target access parameters to the user equipment through the wireless communication network. Specifically, the base station generates a message to be broadcast. The base station encodes the message into a format suitable for wireless transmission. The encoded message needs to be modulated into a signal suitable for wireless transmission. The base station sends the modulated signal through a wireless channel.
[0108] Optionally, the first device in this embodiment includes but is not limited to a device that needs to be connected to other devices for data transmission. For example, user equipment and user terminals in the above wireless communication system. The second device includes but is not limited to a device with network access capability, such as a wireless access point (AP), a micro base station, an irregularly distributed base station, a portable base station, a communication system, and a radio transmitter.
[0109] Optionally, the number of first devices in the current cycle refers to the number of remaining first devices that have not accessed the second device in the current cycle. Or, first devices that have not been allocated resources in the historical cycle, for example, in a network communication system with limited resources, such as a wireless communication network system, a part of users may be able to obtain time slot resources at the same time in one information frame. The remaining user devices refer to those user devices that have not yet obtained time slot resources. For another example, in a wireless communication network system, the remaining user devices that have not successfully accessed the base station in the previous information frame. The number of remaining user devices will greatly affect the performance of the wireless communication system. If the number of user devices that respond to the system at the same time is too large, a large number of collision time slots will be generated; conversely, a large number of idle time slots will be generated, resulting in a waste of resources.
[0110] Optionally, the access parameters in this embodiment include, but are not limited to, parameters for controlling and optimizing device access performance. For example, the number of access attempts, access request interval, random backoff time, channel selection strategy, access window, access class barring (ACB) control factor, etc. This embodiment takes the access parameter as an example of an ACB factor, wherein the ACB factor is a factor based on the ACB mechanism, which can quickly adjust the number of access applications received by the base station side, thereby achieving the purpose of controlling traffic and improving access success rate. The ACB factor includes, but is not limited to: ACB information, which is a parameter containing ACB rules, used to guide the network on how to handle access requests from different categories of devices. ACB information is usually represented in binary format, and each bit represents a specific user category or service type. ACB categories define different user categories based on user identity, service type or other attributes. For example, emergency service users may belong to a high-priority ACB category, while ordinary users may belong to a low-priority ACB category. ACB levels define the access levels of different categories of users in the network. For example, a user may be assigned to ACB level 0 (highest priority) or ACB level 3 (lowest priority). The network can decide whether to allow user access or limit the user's access rate based on the ACB level. ACB capacity is used to limit the number of users in each ACB category to prevent network congestion. For example, the network can set an ACB capacity threshold, and when the number of users in an ACB category reaches this threshold, the network will prohibit other users in this category from accessing. ACB time is used to define the effective time of the ACB rule. For example, the network can enable ACB rules during a specific time period to cope with network congestion during peak hours. ACB reason is used to indicate the reason for enabling ACB, such as network congestion, emergency, or other special events. This helps network operators understand when ACB rules need to be enabled and take appropriate measures. By properly configuring ACB factors, network resources can be effectively managed to ensure high-quality services for users in different situations.
[0111] Optionally, in step S3004, the current period includes but is not limited to a current period of time or a current information frame. For example, in a wireless communication system, the current frame refers to a current time period during which multiple time slots are allocated for data transmission. A time slot is a smaller time unit within a frame and is used to transmit data or control information.
[0112] The execution subject of the above steps in this embodiment may be a specific processor set in the first device, or a processor or processing device set relatively independently from the first device, but is not limited thereto. For example, a processor set in a user device.
[0113] Through the above steps, since the target access parameter is a parameter obtained by adjusting the access parameter of the second device based on the target number, the target access parameter can be used to control the number of first devices accessing the second device in the current cycle. This effectively improves the utilization rate of access resources, reduces conflicts and anomalies during device access, and improves the success rate of the first device accessing the second device and the overall performance of the second device. Therefore, the problem of inability to effectively allocate access resources in related technologies can be solved, and the effect of effectively allocating access resources and improving the utilization rate of access resources can be achieved.
[0114] In an exemplary embodiment, before receiving the first broadcast message, the method further includes: receiving a second broadcast message, wherein the second broadcast message includes the access parameter; and adjusting the access parameter of the first device in the current period in response to the second broadcast message.
[0115] Optionally, the broadcasting method of the second broadcast message in this embodiment is the same as the broadcasting method of the first broadcast message, which will not be described in detail herein.
[0116] Optionally, in response to the second broadcast message, adjusting the access parameters of the first device within the current period, including: generating a first random parameter, wherein the first random parameter is within a preset range; in a case where the first random parameter is less than or equal to the access parameter in the second broadcast message, selecting a target resource block from L resource blocks included in the target resources, wherein the target resource is a resource for which the first device requests access to the second device, and the target resource block is any one of the L resource blocks; sending an access request to the second device through the target resource block to request access to the second device; in a case where the first random parameter is greater than the access parameter in the second broadcast message, regenerating a second random parameter after a preset time interval so that the second random parameter is less than or equal to the access parameter in the second broadcast message.
[0117] Optionally, in this embodiment, the main purpose of adjusting the number of first devices connected to second devices in the historical period is to control the number of first devices connected to second devices in the historical period to reduce collisions. After receiving the broadcast message from the base station, a random number between 0 and 1 will be generated If the random number Less than or equal to ACB factor ,but Will be from Randomly select one from the time slots and try to send a connection request signal. Otherwise, You need to wait for a certain period of time and then regenerate a new random number ,until .
[0118] This embodiment compares the generated random parameter with the access parameter, and selects whether to access the second device based on the comparison result. The number of first devices accessing the second device can be adjusted at the initialization node, which is conducive to reasonable allocation of resources, improving resource utilization, and reducing congestion.
[0119] In an exemplary embodiment, in step S3004, after receiving the target access parameter, the first device can adjust the number of accesses based on the value of the target access parameter. For example, when the target access parameter is the ACB factor, when the ACB factor is relatively large, the restrictions on user equipment access are relaxed, allowing more user equipment to attempt to connect to the base station. This can improve network utilization, especially when the network load is low, so that more users can enjoy the service. On the contrary, when the number of users is large or the network load is high, a smaller ACB factor value can reduce the number of users who attempt to access the base station at the same time, thereby reducing the burden on the network and ensuring the access quality of high-priority users or critical services. This helps to avoid network overload and ensure the reliability of critical communications.
[0120] For example, if there are few users in a remote area, the base station can set the ACB factor higher to ensure that all or most users who attempt to access can successfully access. For example, if the base station has 100 channels and the ACB factor is set to 90%, a maximum of 90 users are allowed to access at the same time. In the city center or large event venues, the number of users may be very large. The base station can limit the number of users who can access at the same time by lowering the ACB factor to ensure network stability and service quality. For example, if the base station has 1000 channels and the ACB factor is set to 30%, a maximum of 300 users are allowed to access at the same time. In this way, the ACB factor, as a flexible control parameter, can help the base station adjust the user access strategy according to the actual situation to optimize network performance and user experience.
[0121] The present application is described below in conjunction with specific embodiments:
[0122] This specific embodiment aims at the congestion problem in the random access system in the related art, and proposes a non-orthogonal multiple access (NOMA) random access method for dynamically adjusting the ACB factor. By introducing an ACB factor, the number of user equipments that simultaneously respond to the base station can be regulated, thereby reducing the number of collision time slots.
[0123] This embodiment first describes the probability of a user equipment accessing a base station and the number of user equipments accessed by the base station in a single time slot:
[0124] Assume that there are randomly distributed terminal users. Assume that an information frame contains time slots. If multiple users select the same time slot at the same time, these users cannot decode. In this embodiment, when there is a successful user on a time slot resource, it is called a successful time slot. If there is no successful user on a time slot, it is called an idle time slot. The rest are called collision time slots. Assume that the channel experienced by each user is a Rayleigh channel with a gain of , road loss , then the channel gain is .
[0125] Assume that a time slot contains users, and their channel gains satisfy Assume that If two users select the same time slot, the signal received by the base station in this time slot is: ,user The transmission power is .in, and are the maximum transmit power and target receive power of the user respectively. is the power back-off step size, is the power path loss, is the power of the noise. Using the SIC algorithm, first delete the users, and then decode their own information, so the user The access probability is: (2)
[0126] in, For users The minimum target rate is .
[0127] The throughput is defined as the average number of users accessing a single time slot: ,in, is the total number of frames, is the number of time slots contained in a frame, is the number of users who successfully access the i-th time slot.
[0128] In this specific embodiment, the base station will count the number of successful, idle and collision time slots in the previous frame, and then calculate the number of remaining users in the next frame. In order to maximize the performance of the system, the base station dynamically updates the ACB factor according to the number of remaining users each time, thereby reducing user access delay and improving resource utilization efficiency. The specific implementation process is as follows Figure 4 The method comprises the following steps:
[0129] S4001, base station initialization system parameters ;
[0130] S4002: When the user equipment is not equal to 0, the base station broadcasts an initialized ACB factor .
[0131] S4003, user equipment After receiving the broadcast message, a random number between 0 and 1 will be generated :
[0132] S4004, Determine random numbers Is it less than or equal to the ACB factor? ;
[0133] S4005, If the random number Less than or equal to ACB factor ,but Will be from Randomly select one from the time slots and try to send a connection request signal. Otherwise, You need to wait for a certain period of time and then regenerate a new random number ,until Or continue to remain silent and return to S4002 to wait for the broadcast message.
[0134] S4006, for those who meet the conditions The user device will be A random selection is made from the time slots and an attempt is made to send a connection request signal. For user equipment that does not meet the conditions, the user equipment continues to remain silent and returns to S4002 to wait for a broadcast message.
[0135] S4007, the base station will count the number of successful and idle resource blocks , and .
[0136] S4008, the base station uses the formula Estimate the number of remaining users , and then according to the formula Calculate the next access control factor ACB. If the number of remaining users , the base station returns to S4002 to continue the access process of the remaining users; otherwise, the loop is exited, and the successful access of all user equipments is completed.
[0137] By optimizing the ACB factor, this specific embodiment can dynamically adjust the number of user devices that respond to the system each time, thereby reducing the number of collision time slots, reducing resource waste, increasing the access probability of user devices, reducing the access delay of user devices, and improving the throughput of the system, thereby improving the utilization of system resources and the capacity of user devices.
[0138] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in each embodiment of the present application.
[0139] In this embodiment, a device for adjusting access parameters is also provided, which is used to implement the above embodiments and preferred implementation modes, and the descriptions that have been made are not repeated here. As used below, the term "module" can be a combination of software and / or hardware that implements a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.
[0140] Figure 5 is a structural block diagram of an access parameter adjustment device according to an embodiment of the present application, such as Figure 5 As shown, the device includes: a first memory 52, a first processor 54, and a first computer program 5402 stored in the first memory 52 and executable on the first processor 54, wherein the first processor 54 implements the following operations when executing the first computer program 5402: determining resource status information of a target resource in a historical period, wherein the target resource is a resource to which a first device requests access to a second device; determining the number of the first devices in a current period using the resource status information to obtain a target number, wherein the first device is a device to be accessed to the second device in the current period; adjusting access parameters of the second device based on the target number to obtain target access parameters, wherein the target access parameters are used to adjust the number of the first device accessing the second device in the current period.
[0141] Through the above device, since the resource status information of the target resource in the historical period is used to determine the number of first devices in the current period, the access parameters of the second device can be dynamically adjusted based on the number of first devices, so that the number of first devices requesting access to the second device can be adjusted according to the target access parameters in the current period. This effectively improves the utilization rate of access resources, reduces conflicts and anomalies in the device access process, and improves the success rate of the first device accessing the second device and the overall performance of the second device. Therefore, the problem of the inability to effectively allocate access resources in the related technology can be solved, and the effect of effectively allocating access resources and improving the utilization rate of access resources can be achieved.
[0142] The implementation of this embodiment is the same as the above method embodiment, and will not be repeated here.
[0143] In an exemplary embodiment, the above-mentioned device determines the resource status information of the target resource within the historical period through the following steps: determining the L resource blocks included in the target resource within the historical period, wherein L is a power of 2; determining the resource usage status of the L resource blocks within the historical period; and determining the resource status information of the target resource within the historical period using the resource usage status.
[0144] In an exemplary embodiment, the above-mentioned device determines the resource usage status of L resource blocks in the historical period through the following steps: counting the number of resource blocks in the idle state in the historical period to obtain a first number; counting the number of resource blocks selected by a preset number of the first devices and connected to the second device by a preset number of the first devices in the historical period to obtain a second number; counting the number of resource blocks selected by multiple first devices and abnormalities occurred when multiple first devices were connected to the second device in the historical period to obtain a third number; determining the first number, the second number and the third number as the resource usage status.
[0145] In an exemplary embodiment, the above-mentioned device uses the resource usage status to determine the resource status information of the target resource within the historical period through the following steps: calculating the average value of the L resource blocks in the idle state within the historical period to obtain a first average value; calculating the average value of the L resource blocks selected by a preset number of the first devices within the historical period and the resource blocks connected from the first device to the second device to obtain a second average value; calculating the average value of the L resource blocks selected by multiple first devices within the historical period and the resource blocks in which abnormalities occur when the first device is connected to the second device to obtain a third average value; determining the resource usage status, the first average value, the second average value and the third average value as the resource status information.
[0146] In an exemplary embodiment, the above-mentioned device determines the quantity of the first devices in the current cycle using the resource status information to obtain the target quantity through the following steps: determining a first corresponding relationship between the first average value and the first quantity, a second corresponding relationship between the second average value and the second quantity, and a third corresponding relationship between the third average value and the third quantity; according to the first corresponding relationship, the second corresponding relationship and the third corresponding relationship, calculate the quantity of the first devices in the current cycle to obtain the target quantity.
[0147] In an exemplary embodiment, the above-mentioned device adjusts the access parameters of the second device based on the target number through the following steps to obtain the target access parameters: using the target number to calculate the average number of the first devices allowed to access a single resource block to obtain a fourth number; according to the fourth number, the number of resource blocks included in the target resource block in the current cycle, and the access probability of the first device accessing the second device, the target access parameter is calculated, wherein the access probability includes: when a preset number of the first devices are included in one resource block, the probability of a preset number of the first devices accessing the second device; when multiple first devices are included in one resource block, the probability of the first device accessing the second device.
[0148] In an exemplary embodiment, the above-mentioned device is used to set the device parameters and the access parameters of the second device before determining the resource status information of the target resource within the historical period; the second setting module is used to set the access resources of the second device according to the device parameters to obtain the target resource; the first broadcast module is used to broadcast the access parameters to the first device, wherein the access parameters are used to adjust the number of the first device accessing the second device within the historical period.
[0149] In an exemplary embodiment, after adjusting the access parameter of the second device based on the target number to obtain the target access parameter, the apparatus is further configured to broadcast the target access parameter so that the first device receives the target access parameter.
[0150] Figure 6 is a structural block diagram of an adjustment device for device access according to an embodiment of the present application, such as Figure 6 As shown, the device comprises:
[0151] A second memory 62, a second processor 64, and a second computer program 6402 stored in the second memory 62 and executable on the second processor, wherein the second processor 62 implements the following operations when executing the second computer program 6402: receiving a first broadcast message, wherein the first broadcast message includes a target access parameter, the target access parameter is a parameter obtained by adjusting an access parameter of the second device based on a target number, and the target number is the number of first devices to be connected to the second device in a current period; and using the target access parameter to control the number of the first devices connected to the second device in the current period.
[0152] Through the above device, since the target access parameter is a parameter obtained by adjusting the access parameter of the second device based on the target number, the target access parameter can be used to control the number of first devices accessing the second device in the current cycle. This effectively improves the utilization rate of access resources, reduces conflicts and anomalies during device access, and improves the success rate of the first device accessing the second device and the overall performance of the second device. Therefore, the problem of the inability to effectively allocate access resources in the related art can be solved, and the effect of effectively allocating access resources and improving the utilization rate of access resources can be achieved.
[0153] The implementation of this embodiment is the same as that of the above method embodiment, and will not be repeated here.
[0154] In an exemplary embodiment, before receiving the first broadcast message, the above-mentioned device is also used to receive a second broadcast message before receiving the first broadcast message, wherein the second broadcast message includes the access parameters; in response to the second broadcast message, adjust the access parameters of the first device in the current period.
[0155] In an exemplary embodiment, the above-mentioned device responds to the second broadcast message and adjusts the access parameters of the first device in the current period through the following steps: generating a first random parameter, wherein the first random parameter is within a preset range; when the first random parameter is less than or equal to the access parameter in the second broadcast message, selecting a target resource block from L resource blocks included in the target resource, wherein the target resource is a resource for which the first device requests access to the second device, and the target resource block is any one of the L resource blocks; sending an access request to the second device through the target resource block to request access to the second device; when the first random parameter is greater than the access parameter in the second broadcast message, regenerating a second random parameter after a preset time interval so that the second random parameter is less than or equal to the access parameter in the second broadcast message.
[0156] It should be noted that the above modules can be implemented by software or hardware. For the latter, it can be implemented in the following ways, but not limited to: the above modules are all located in the same processor; or the above modules are located in different processors in any combination.
[0157] An embodiment of the present application further provides a computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when running.
[0158] In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to, various media that can store computer programs, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk.
[0159] An embodiment of the present application further provides an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.
[0160] In an exemplary embodiment, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.
[0161] An embodiment of the present application further provides a computer program product, which includes a computer program. When the computer program is executed by a processor, the steps in any one of the above method embodiments are implemented.
[0162] An embodiment of the present application further provides another computer program product, including a non-volatile computer-readable storage medium, wherein the non-volatile computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in any of the above method embodiments are implemented.
[0163] The embodiments of the present application also provide a computer program, which includes computer instructions, which are stored in a computer-readable storage medium; a processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the steps of any one of the above method embodiments.
[0164] For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary implementation modes, and this embodiment will not be described in detail herein.
[0165] Obviously, those skilled in the art should understand that the above modules or steps of the present application can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order from that herein, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present application is not limited to any specific combination of hardware and software.
[0166] The above is only a preferred embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the principles of the present application shall be included in the protection scope of the present application.
Claims
1. A method for adjusting access parameters, characterized in that: include: Determine resource status information of a target resource in a historical period, wherein the target resource is a resource that a first device requests to access a second device; Determine the number of the first devices in a current cycle by using the resource status information to obtain a target number, wherein the first devices are devices to be connected to the second device in the current cycle; The access parameter of the second device is adjusted based on the target number to obtain a target access parameter, wherein the target access parameter is used to control the number of the first device accessing the second device in the current period.
2. The method according to claim 1, characterized in that Determine the resource status information of the target resource in the historical period, including: Determine L resource blocks included in the target resource in the historical period, where L is a power of 2; Determining resource usage status of the L resource blocks in the historical period; The resource usage status is used to determine resource status information of the target resource in a historical period.
3. The method according to claim 2, characterized in that Determining resource usage states of the L resource blocks in the historical period includes: Counting the number of resource blocks in an idle state among the L resource blocks in the historical period to obtain a first number; Counting the number of resource blocks selected by a preset number of the first devices and accessed by a preset number of the first devices to the second device of the L resource blocks in the historical period, to obtain a second number; Counting the number of L resource blocks that are selected by the plurality of first devices in the historical period and in which abnormalities occur when the plurality of first devices are connected to the second device, to obtain a third number; The first number, the second number, and the third number are determined as the resource usage status.
4. The method according to claim 3, characterized in that Determining resource status information of the target resource in a historical period using the resource usage status includes: Calculate an average value of the L resource blocks in the idle state during the historical period to obtain a first average value; Calculate an average value of the L resource blocks selected by a preset number of the first devices in the historical period and the resource blocks connected by the first device to the second device to obtain a second average value; Calculate an average value of the L resource blocks selected by the plurality of the first devices in the historical period and resource blocks in which abnormalities occur when the first device is connected to the second device, to obtain a third average value; The resource usage status, the first average value, the second average value, and the third average value are determined as the resource status information.
5. The method according to claim 4, characterized in that Determining the quantity of the first devices in a current cycle by using the resource status information to obtain a target quantity includes: Determine a first corresponding relationship between the first average value and the first quantity, a second corresponding relationship between the second average value and the second quantity, and a third corresponding relationship between the third average value and the third quantity; According to the first corresponding relationship, the second corresponding relationship, and the third corresponding relationship, the quantity of the first devices in the current period is calculated to obtain the target quantity.
6. The method according to claim 4, characterized in that Adjusting the access parameter of the second device based on the target number to obtain the target access parameter includes: Using the target number, calculate the average number of the first devices that a single resource block is allowed to access, to obtain a fourth number; The target access parameter is calculated according to a functional relationship between the fourth quantity, the number of resource blocks included in the target resource block in the current cycle, and the access probability of the first device accessing the second device, wherein the access probability includes: when a preset number of the first devices are included in one resource block, the probability of a preset number of the first devices accessing the second device; when multiple first devices are included in one resource block, the probability of the first device accessing the second device.
7. The method according to claim 1, characterized in that Before determining the resource status information of the target resource in the historical period, the method further includes: Setting device parameters of the second device and the access parameters; Setting the access resources of the second device according to the device parameters to obtain the target resources; The access parameter is broadcast to the first device, wherein the access parameter is used to adjust the number of times the first device accesses the second device within the historical period.
8. The method according to claim 1, characterized in that: After adjusting the access parameter of the second device based on the target number and obtaining the target access parameter, the method further includes: The target access parameter is broadcasted so that the first device receives the target access parameter.
9. A method for controlling device access, characterized in that: include: Receiving a first broadcast message, wherein the first broadcast message includes a target access parameter, the target access parameter is a parameter obtained by adjusting an access parameter of the second device based on a target number, and the target number is the number of the first device to be connected to the second device in a current period; The target access parameter is used to control the number of the first devices accessing the second device in the current period.
10. The method according to claim 9, characterized in that Before receiving the first broadcast message, the method further includes: receiving a second broadcast message, wherein the access parameter in the second broadcast message is a parameter determined based on the number of remaining users in a historical period; In response to the second broadcast message, adjust access parameters of the first device in the current period.
11. The method according to claim 10, characterized in that In response to the second broadcast message, adjusting the access parameters of the first device in the current period includes: Generate a first random parameter, wherein the first random parameter is within a preset range; In a case where the first random parameter is less than or equal to the access parameter in the second broadcast message, selecting a target resource block from L resource blocks included in the target resources, wherein the target resource is a resource that the first device requests to access the second device, and the target resource block is any resource block in the L resource blocks; Sending an access request to the second device through the target resource block to request access to the second device; In the case that the first random parameter is greater than the access parameter in the second broadcast message, a second random parameter is regenerated after a preset time interval so that the second random parameter is less than or equal to the access parameter in the second broadcast message.
12. A device for adjusting access parameters, comprising: A first memory, a first processor, and a first computer program stored in the first memory and executable on the first processor, wherein the first processor implements the following operations when executing the first computer program: Determine resource status information of a target resource in a historical period, wherein the target resource is a resource that a first device requests to access a second device; Determine the number of the first devices in a current cycle by using the resource status information to obtain a target number, wherein the first devices are devices to be connected to the second device in the current cycle; The access parameter of the second device is adjusted based on the target number to obtain a target access parameter, wherein the target access parameter is used to adjust the number of the first device accessing the second device within the current period.
13. A device access adjustment apparatus, comprising: A second memory, a second processor, and a second computer program stored in the second memory and executable on the second processor, wherein the second processor implements the following operations when executing the second computer program: Receiving a first broadcast message, wherein the first broadcast message includes a target access parameter, the target access parameter is a parameter obtained by adjusting an access parameter of the second device based on a target number, and the target number is the number of the first device to be connected to the second device in a current period; The target access parameter is used to control the number of the first devices accessing the second device in the current period.
14. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein when the computer program is executed by a processor, the steps of the method described in any one of claims 1 to 8 are implemented, or the steps of the method described in any one of claims 9 to 11 are implemented.
15. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the processor implements the steps of the method described in any one of claims 1 to 8, or implements the steps of the method described in any one of claims 9 to 11.
16. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the computer program implements the steps of the method described in any one of claims 1 to 8, or implements the steps of the method described in any one of claims 9 to 11.
Citation Information
Patent Citations
Wireless resource allocation optimization method and device
CN115278908A
Access resource configuration method and device, electronic equipment and nonvolatile storage medium
CN117377028A
Wireless resource scheduling management method and device, electronic equipment and readable storage medium
CN117528787A
Random access load control method and device, electronic equipment and storage medium
CN118450466A
Latch circuit and semiconductor apparatus including the same
KR102578200B1