CN114786276B - Service terminal access method and device, electronic equipment and storage medium - Google Patents

Service terminal access method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN114786276B
CN114786276B CN202210276066.8A CN202210276066A CN114786276B CN 114786276 B CN114786276 B CN 114786276B CN 202210276066 A CN202210276066 A CN 202210276066A CN 114786276 B CN114786276 B CN 114786276B
Authority
CN
China
Prior art keywords
terminal
service
target
priority
time slot
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202210276066.8A
Other languages
Chinese (zh)
Other versions
CN114786276A (en
Inventor
陆阳
翟迪
安春燕
高鸿坚
王晟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
State Grid Smart Grid Research Institute Co ltd
State Grid Corp of China SGCC
State Grid Jiangsu Electric Power Co Ltd
State Grid Fujian Electric Power Co Ltd
Information and Telecommunication Branch of State Grid Fujian Electric Power Co Ltd
Original Assignee
State Grid Smart Grid Research Institute Co ltd
State Grid Corp of China SGCC
State Grid Jiangsu Electric Power Co Ltd
State Grid Fujian Electric Power Co Ltd
Information and Telecommunication Branch of State Grid Fujian Electric Power Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by State Grid Smart Grid Research Institute Co ltd, State Grid Corp of China SGCC, State Grid Jiangsu Electric Power Co Ltd, State Grid Fujian Electric Power Co Ltd, Information and Telecommunication Branch of State Grid Fujian Electric Power Co Ltd filed Critical State Grid Smart Grid Research Institute Co ltd
Priority to CN202210276066.8A priority Critical patent/CN114786276B/en
Publication of CN114786276A publication Critical patent/CN114786276A/en
Application granted granted Critical
Publication of CN114786276B publication Critical patent/CN114786276B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W74/00Wireless channel access, e.g. scheduled or random access
    • H04W74/08Non-scheduled or contention based access, e.g. random access, ALOHA, CSMA [Carrier Sense Multiple Access]
    • H04W74/0833Non-scheduled or contention based access, e.g. random access, ALOHA, CSMA [Carrier Sense Multiple Access] using a random access procedure
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/30Services specially adapted for particular environments, situations or purposes
    • H04W4/38Services specially adapted for particular environments, situations or purposes for collecting sensor information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W72/00Local resource management
    • H04W72/04Wireless resource allocation
    • H04W72/044Wireless resource allocation based on the type of the allocated resource
    • H04W72/0446Resources in time domain, e.g. slots or frames
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W72/00Local resource management
    • H04W72/50Allocation or scheduling criteria for wireless resources
    • H04W72/56Allocation or scheduling criteria for wireless resources based on priority criteria
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The application discloses a service terminal access method, a service terminal access device, electronic equipment and a storage medium. The method comprises the following steps: acquiring a terminal access request, wherein the terminal access request comprises a target service; determining a target service priority corresponding to the target service, and determining a target terminal priority corresponding to the service terminal based on the corresponding relation; distributing a target time slot corresponding to the target terminal priority to the service terminal and a target access mechanism; and determining the load condition of the target time slot where the service terminal is positioned after the service terminal is accessed to the network, and adjusting the time slot quantity corresponding to the target time slot and the terminal access quantity in the time slot by utilizing the load condition. According to the method and the device, different time slots and access mechanisms are allocated to the service terminal according to the terminal priority of the service terminal, so that lower power consumption can be kept, and different service requirements can be met. Meanwhile, after the service terminal is accessed to the network, the number of time slots and the access quantity of the terminal in the time slots can be dynamically adjusted according to the load condition of the target time slots, so that the overall performance of the network is improved.

Description

Service terminal access method and device, electronic equipment and storage medium
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method and an apparatus for accessing a service terminal, an electronic device, and a storage medium.
Background
In a large-scale micro-power wireless sensor network, the importance of an excellent random access protocol is further amplified due to the characteristics of long service generation period, strict terminal power requirement, large number of access terminals, different service priorities and the like of the terminals. However, in the existing random access protocol, the utilization rate of the ALOHA protocol channel is low, the information timeliness is poor, and the utilization rate of the channel is almost 0 in the random access process of the large-scale micro-power wireless sensor; the slotted ALOHA protocol has improved performance compared with the ALOHA protocol, but still cannot cope with large-scale terminal access; the CSMA protocol can be divided into non-persistent CSMA, p-persistent CSMA and 1-persistent CSMA, wherein the utilization rate of partial protocol channels can be close to 100%, and if the protocol is dormant at a back-off time, the power consumption is lower, but the access timeliness is not high, and the timeliness requirement of the business with different priorities is difficult to be met; the CSMA/CA protocol channel utilization is close to 100%, and the timeliness is high in the case of small-scale terminal access, but the power consumption is slightly high because the channel is required to be continuously monitored in the back-off process.
Disclosure of Invention
In order to solve the technical problems or at least partially solve the technical problems, the application provides an access method, an access device, electronic equipment and a storage medium of a service terminal.
According to an aspect of an embodiment of the present application, there is provided an access method of a service terminal, including:
acquiring a terminal access request, wherein the terminal access request comprises target services of a service terminal to be accessed;
determining a target service priority corresponding to the target service, and determining the target service priority to determine a target terminal priority corresponding to the service terminal based on a corresponding relation between a preset service priority and a terminal priority;
distributing a target time slot and a target access mechanism corresponding to the target terminal priority to the service terminal so that the service terminal can access the network by utilizing the target time slot and the target access mechanism;
and determining the load condition of the target time slot where the service terminal is positioned after the service terminal is accessed to the network, and adjusting the time slot quantity corresponding to the target time slot and the terminal access quantity in the time slot by utilizing the load condition.
In this embodiment of the present application, the determining a service priority corresponding to the target service includes:
acquiring service delay data corresponding to the target service;
and determining the service priority corresponding to the target service based on the variance of the service delay data, wherein the service priority is a first service priority when the variance is smaller than a preset delay average value, or is a second service priority when the variance is larger than or equal to the preset delay average value, and the first service priority is higher than the second service priority.
In this embodiment of the present application, determining the target service priority to determine the target terminal priority corresponding to the service terminal based on the correspondence between the preset service priority and the terminal priority includes:
under the condition that the service priority is the first service priority, determining that the target terminal priority corresponding to the first service priority is the first terminal priority based on the corresponding relation between the preset service priority and the terminal priority;
under the condition that the service priority is the second service priority, determining that the target terminal priority corresponding to the second service priority is the second terminal priority based on the corresponding relation between the preset service priority and the terminal priority;
wherein the first terminal priority is higher than the second terminal priority.
In this embodiment of the present application, the determining a load condition of a target timeslot where the service terminal is located after the service terminal is connected to the network includes:
acquiring the current load in a target time slot where a service terminal is located after the service terminal is connected to the network, and calculating the optimal load of the target time slot;
and obtaining the load condition based on the comparison result of the current load and the optimal load, wherein the load condition is non-overload when the current load is smaller than the optimal load, and the load condition is overload when the current load is greater than or equal to the optimal load.
In this embodiment of the present application, the formula for calculating the optimal load of the target timeslot is:
Figure BSA0000269107250000031
wherein T is t Generating an average time period of a service for a service terminal, T p For the time length of the time period of the target time slot, N is the number of the service terminals corresponding to the priority of the first terminal or the number of the service terminals corresponding to the priority of the second terminal, T a For the transmission time of single service data, T s Is the slot length of the target slot.
In this embodiment of the present application, the adjusting, by using the load condition, the number of time slots corresponding to the target time slot and the terminal access amount in the time slot includes:
calculating the terminal access quantity of a single time slot in the target time slot by utilizing the optimal load under the condition that the target time slot is the time slot corresponding to the first terminal priority and the load condition is overload, and configuring the time slot quantity of the single time slot in the target time slot and the total terminal access quantity in the target time slot based on the terminal access quantity;
and under the condition that the target time slot is the time slot corresponding to the first terminal priority and the load condition is non-overload, all service terminals currently belonging to the first terminal priority are distributed to the same time slot in the target time slot.
In this embodiment of the present application, the adjusting, by using the load condition, the number of time slots corresponding to the target time slot and the terminal access amount in the time slot includes:
calculating the terminal access quantity of a single time slot in the target time slot by utilizing the optimal load under the condition that the target time slot is the time slot corresponding to the second terminal priority and the load condition is overload, and configuring the time slot quantity of the single time slot in the target time slot and the total terminal access quantity in the target time slot based on the terminal access quantity;
and under the condition that the target time slot is the time slot corresponding to the second terminal priority and the load condition is non-overload, all the service terminals currently belonging to the first terminal priority are distributed to the same time slot in the target time slot.
According to another aspect of the embodiments of the present application, there is also provided an access device of a service terminal, including:
the terminal access module is used for acquiring a terminal access request, wherein the terminal access request comprises target services of a service terminal to be accessed;
the determining module is used for determining a target service priority corresponding to the target service, determining the target service priority and determining a target terminal priority corresponding to the service terminal based on a corresponding relation between a preset service priority and a terminal priority;
the allocation module is used for allocating a target time slot and a target access mechanism corresponding to the target terminal priority to the service terminal so that the service terminal can access the network by utilizing the target time slot and the target access mechanism;
and the processing module is used for determining the load condition of the target time slot where the service terminal is positioned after the service terminal is accessed to the network, and adjusting the time slot quantity corresponding to the target time slot and the terminal access quantity in the time slot by utilizing the load condition.
According to another aspect of the embodiments of the present application, there is also provided a storage medium including a stored program that performs the steps described above when running.
According to another aspect of the embodiments of the present application, there is provided an electronic device including a processor, a communication interface, a memory, and a communication bus, where the processor, the communication interface, and the memory complete communication with each other through the communication bus; wherein: a memory for storing a computer program; and a processor for executing the steps of the method by running a program stored on the memory.
Embodiments of the present application also provide a computer program product comprising instructions which, when run on a computer, cause the computer to perform the steps of the above method.
Compared with the prior art, the technical scheme provided by the embodiment of the application has the following advantages: according to the embodiment of the application, different time slots and access mechanisms are allocated to the service terminal according to the terminal priority of the service terminal, so that the average sending time can be reduced, and lower power consumption can be kept, so that different service demands can be met. Meanwhile, after the service terminal is accessed to the network, the number of time slots and the access quantity of the terminal in the time slots can be dynamically adjusted according to the load condition of the target time slots, and the overall performance of the network can be improved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and together with the description, serve to explain the principles of the application.
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings that are required to be used in the description of the embodiments or the prior art will be briefly described below, and it will be obvious to those skilled in the art that other drawings can be obtained from these drawings without inventive effort.
Fig. 1 is a flowchart of an access method of a service terminal according to an embodiment of the present application;
fig. 2 is a schematic diagram of an access system of a service terminal according to an embodiment of the present application;
fig. 3 is a schematic diagram of a timeslot according to an embodiment of the present application;
fig. 4 is a comparison diagram of a terminal simulation average access time and ALOHA protocol, non-persistent CSMA protocol according to an embodiment of the present invention;
FIG. 5 is a graph comparing high and low priority power consumption in simulation with power consumption in simulation of ALOHA protocol and non-persistent CSMA protocol in accordance with the embodiments of the present invention;
fig. 6 is a block diagram of an access device of a service terminal according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
For the purposes of making the objects, technical solutions and advantages of the embodiments of the present application more apparent, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments, the exemplary embodiments of the present application and the descriptions thereof are used to explain the present application and do not constitute undue limitations of the present application. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present application based on the embodiments herein.
It should be noted that in this document, relational terms such as "first" and "second" and the like are used solely to distinguish one entity or action from another similar entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises an element.
The embodiment of the application provides a service terminal access method, a service terminal access device, electronic equipment and a storage medium. The method provided by the embodiment of the invention can be applied to any needed electronic equipment, for example, the electronic equipment can be a server, a terminal and the like, is not particularly limited, and is convenient to describe and is called as the electronic equipment for short hereinafter.
According to an aspect of the embodiment of the application, a method embodiment of an access method of a service terminal is provided. Fig. 1 is a flowchart of a method for accessing a service terminal according to an embodiment of the present application, where, as shown in fig. 1, the method includes:
step S11, obtaining a terminal access request, wherein the terminal access request comprises target services of the service terminals to be accessed.
The method provided by the embodiment of the invention is applied to the access node, the access node can acquire the terminal access request, and the terminal access request can be initiated by a service terminal nearby the access node. When a service terminal initiates a terminal access request, a target service deployed in the service terminal is carried in the terminal access request, and the target service can be: trip detection, data sampling, etc.
In the embodiment of the application, the service terminal can be a micropower wireless sensor, and the wireless sensor is applied to smart power grids, smart agriculture, modern industry, smart city environments and is used for sensing the environment and detecting the running quality of the terminal. The access node is an access terminal responsible for transmitting terminal service data to a network platform in a large-scale micro-power wireless sensor network, and is in communication with the service terminal in a wireless mode and is connected with core network equipment in a wired or wireless mode.
When the service terminal is connected to the network where the access node is located for the first time, the access node needs to perform dynamic address allocation, channel allocation, time synchronization and other tasks on different terminals according to terminal characteristics, and perform time slot and random access mechanism allocation on different terminals according to a scheduling algorithm. After the first configuration is completed, the service terminal can randomly access the network according to the allocated time slot and the random access mechanism.
Step S12, determining a target service priority corresponding to the target service, and determining a target terminal priority corresponding to the target service terminal based on a corresponding relation between a preset service priority and a terminal priority.
In the embodiment of the application, determining the service priority corresponding to the target service includes the following steps A1-A2:
and step A1, acquiring service delay data corresponding to the target service.
And step A2, determining the service priority corresponding to the target service based on the variance of the service delay data, wherein the service priority is the first service priority when the variance is smaller than the preset delay average value, or the service priority is the second service priority when the variance is larger than or equal to the preset delay average value, and the first service priority is higher than the second service priority.
In the embodiment of the application, when the access node determines the service priority corresponding to the target service, the access node may divide according to the information such as the importance of the data and the time-consuming requirement. Specifically, the variance can be calculated according to the service delay data corresponding to the target service, the variance is used for judging the discrete degree, if the variance is smaller and the distance delay average value is far, the discrete degree is higher, and the service priority corresponding to the target service is the first service priority (namely, high priority). Conversely, if the variance is larger, the dispersion degree is smaller, and the service priority corresponding to the target service is the second service priority (i.e. low priority).
In addition, the target service with smaller discrete degree can be divided secondarily, specifically, the importance degree corresponding to the target service can be queried, and if the importance degree corresponding to the target service is smaller and greater than the preset importance degree, the service priority corresponding to the target service is the first service priority (i.e. high priority).
As an example, in the smart grid scenario, some data services that ensure the operation safety of the terminal, such as trip detection, switch change, terminal operation sampling value, etc., are high priority, and some environment detection services, such as temperature and humidity detection, weather detection, etc., are low priority.
In the embodiment of the present application, determining the target service priority to determine the target terminal priority corresponding to the service terminal based on the corresponding relationship between the preset service priority and the terminal priority includes:
under the condition that the service priority is the first service priority, determining the target terminal priority corresponding to the first service priority as the first terminal priority based on the corresponding relation between the preset service priority and the terminal priority.
And under the condition that the service priority is the second service priority, determining the target terminal priority corresponding to the second service priority as the second terminal priority based on the corresponding relation between the preset service priority and the terminal priority, wherein the first terminal priority is higher than the second terminal priority.
It should be noted that, the corresponding relationship between the preset service priority and the terminal priority is: when the service priority is the first service priority (i.e. high priority), the corresponding target terminal priority is the first terminal priority (i.e. high priority). When the service priority is the second service priority (i.e. low priority), the corresponding target terminal priority is the second terminal priority (i.e. low priority).
And step S13, distributing a target time slot and a target access mechanism corresponding to the target terminal priority to the service terminal so that the service terminal can access the network by utilizing the target time slot and the target access mechanism.
In the embodiment of the application, after determining the terminal priority of the service terminal, the access node allocates a target time slot and a target access mechanism corresponding to the target terminal priority to the service terminal. The access mechanism is different due to the different time slots allocated to it by the terminals of different priorities. For example: the first terminal priority (high priority) corresponds to the high priority time slot and access mechanism, and the second terminal priority (low priority) corresponds to the low priority time slot and access mechanism, wherein the high priority access mechanism is more time-efficient than the low priority access mechanism.
It should be noted that, as shown in fig. 3, a time slot includes a plurality of high priority time slots and low priority time slots, and the target time slot may be all high priority time slots in a time slot or all low priority time slots in a time slot, where each high priority time slot includes a plurality of high priority services, and each low priority time slot includes a plurality of low priority services.
Step S14, the load condition of the target time slot where the service terminal is located after the service terminal is accessed to the network is determined, and the time slot number corresponding to the target time slot and the terminal access quantity in the time slot are adjusted by utilizing the load condition.
In the embodiment of the application, the load condition of the target time slot where the service terminal is located after the service terminal is connected to the network is determined, which comprises the following steps of:
and step B1, acquiring the current load of the service terminal in the target time slot after the service terminal is accessed to the network, and calculating the optimal load of the target time slot.
In the embodiment of the present application, the formula for calculating the optimal load of the target time slot is:
Figure BSA0000269107250000111
wherein G is 0 For optimum load, T t Generating an average time period of a service for a service terminal, T p For the time length of the time period of the target time slot, N is the number of the service terminals corresponding to the priority of the first terminal or the number of the service terminals corresponding to the priority of the second terminal, T a For the transmission time of single service data, T s Is the slot length of the target slot.
And step B2, obtaining a load condition based on a comparison result of the current load and the optimal load.
In the embodiment of the application, the current load and the optimal load are compared, if the current load is smaller than the optimal load, the load condition is non-overload, and if the current load is larger than or equal to the optimal load, the load condition is overload.
In the embodiment of the present application, when the target time slot is a time slot corresponding to the first terminal priority, the number of time slots corresponding to the target time slot and the terminal access amount in the time slots are adjusted by using the load condition, including the following situations:
(1) And under the condition that the load condition is overload, calculating the terminal access quantity of a single time slot in the target time slot by utilizing the optimal load, and configuring the time slot quantity of the single time slot in the target time slot and the total terminal access quantity in the target time slot based on the terminal access quantity.
(2) And under the condition that the load condition is not overload, all service terminals currently belonging to the first terminal priority are allocated to the same time slot in the target time slots.
In the embodiment of the present application, when the target time slot is a time slot corresponding to the priority of the second terminal, and when the target time slot is the time slot corresponding to the priority of the second terminal, the number of time slots corresponding to the target time slot and the access amount of the terminal in the time slot are adjusted by using the load condition, including the following situations:
(1) Under the condition that the load condition is overload, calculating the terminal access quantity of a single time slot in the target time slot by utilizing the optimal load, and configuring the time slot quantity of the single time slot in the target time slot and the total terminal access quantity in the target time slot based on the terminal access quantity;
(2) And under the condition that the load condition is not overload, all service terminals currently belonging to the first terminal priority are allocated to the same time slot in the target time slots.
As an example, in the case that the target time slot is a high priority time slot, if it is determined that the current load condition of the target time slot is overload, the following calculation process is performed by using the terminal access amount of a single time slot in the target time slot when calculating the optimal load:
Figure BSA0000269107250000121
wherein N' is the number of access terminals in a single time slot when optimally loaded, G 0 For optimum load, T p And generating the time period of the service for the service terminal averagely.
In the embodiment of the application, the terminal access amount can be half of the number of the single time slot access terminals when the optimal load is adopted, and the time slot number is determined according to the number. In overload condition, the number of access terminals in a single time slot is smaller, and the number of time slots is increased, so that the power consumption of the terminal is reduced.
Meanwhile, the time slot size can also be set to be a reasonable value which is several times of the service transmission time, the transmission time of a single service is multiplied by a reasonable value of the number of all high-priority terminals in the time slot, and a specific calculation formula is as follows: t'. s >T b X N, where T' s Time slot size, T, for high priority time slots b For the transmission time of a single service when using the random access mechanism of the high priority terminal, N is the number of terminals of the high priority terminal in the slot.
As another example, in the case where the target slot is a high priority slot, if it is determined that the current load condition of the target slot is not overloaded, all service terminals currently belonging to the first terminal priority are allocated to the same slot in the target slot.
According to the embodiment of the application, different time slots and access mechanisms are allocated to the service terminal according to the terminal priority of the service terminal, so that the average sending time can be reduced, and lower power consumption can be kept, so that different service demands can be met. Meanwhile, after the service terminal is accessed to the network, the number of time slots and the access quantity of the terminal in the time slots can be dynamically adjusted according to the load condition of the target time slots, and the overall performance of the network can be improved.
In the embodiment of the application, when the service terminal is accessed for the first time, if the large-scale service terminal initiates the first configuration at the same time, so that the channel is congested, the collision can be reduced by adopting the following method:
and during the first configuration of the service terminal, if the channel is busy or no reply is received, performing a common back-off process. And when the back-off times reach a certain threshold value, carrying out back-off according to the set back-off time T1 of the service terminal. After the time T2 is over, the configuration request and the normal backoff process are continued for a fixed time T2. If the service terminal has not completed the first configuration, it needs to wait for a back-off time T3 again, and after the back-off is completed, it still sends a request within the time range of T2, so as to repeat. By setting the T1 and the same T2 and T3 of different terminals in the service terminal placement stage, the terminals of different batches can realize time slot division access in the approximate range so as to reduce signaling collision of different terminals. Where T1 is the slot size, T3 is the repeatable time period, and T1 is the length of time from one time period to the slot in which the terminal is located.
The following is an example of specific scheduling based on a target slot provided in an embodiment of the present application. Assuming that the service priorities are divided in advance, the system consists of 40 high-priority micropower wireless sensing terminals, 50 low-priority micropower wireless sensing terminals and one access node. The terminals are randomly distributed in a field.
The service transmission period of each terminal is about 0.5s, the transmission and receiving rates are 250kbps, the dormancy power consumption is 144nW, the transmission power consumption is 26.334mW, the receiving power consumption is 35.28mW, the idle power consumption is 0.712mW, and the service data length is 1064b.
The simulation shows that the CSMA/CA mechanism has better timeliness, but does not adhere to the CSMA mechanism, so that the CSMA/CA mechanism is adopted for the time slot where the high-priority terminal is positioned, the non-adhering CSMA mechanism is adopted for the time slot where the low-priority terminal is positioned, and the timing dormancy is carried out when the non-adhering CSMA mechanism is retracted so as to reduce the power consumption.
Firstly, the optimal load of two random access mechanisms under the time-sharing condition is obtained. Only two time slots are allocated, wherein each of the high-priority terminal and the low-priority terminal occupies one time slot, the time slot length is self-defined, the number of the high-priority terminal and the low-priority terminal is regulated by simulating the actual packet sending condition, so that the overall channel utilization rate of the high-priority terminal is higher, the average service sending time of the high-priority terminal is shorter, the power consumption of the low-priority terminal is lower, the time slot is available at the moment, the service sending period is about 0.5s, the number of the CSMA/CA mechanism is exactly 40 terminals in the time slot when the CSMA/CA mechanism is under the optimal load, and the time length T of the time slot in the simulation is at the moment s For 1s, the time period T of average service generation of the terminal in the scenario p The number N of the terminals with high priority in the time slot is 40 s and the time slot length T of the time slot where the terminals are positioned is 0.5s s Transmission time T of single service data of 0.5s a About 0.004156s, the optimal load is calculated according to the formula:
Figure BSA0000269107250000151
the optimum load is about 0.66.
When the non-persistent CSMA mechanism is under the optimal load, the number of the terminals in a time slot is 55, and the optimal load is calculated to be about 0.9 according to a formula. The scenario belongs to a medium-low load scenario, two time slots are divided, 40 terminals are in a high priority time slot, and 50 terminals are in a low priority time slot.
Wherein the time slot size can be set to be larger than the reasonable value of the transmission time of a single service multiplied by the total number of high priority terminals in the time slot when the random access mechanism is used by the high priority terminals, wherein the transmission time T of the single service is used in the random access of the CSMA/CA mechanism b About 5.26ms, the number of terminals N in the high priority slot is 40, so the slot size T 'of the high priority slot' s The method comprises the following steps: t'. s >T b X N, thus setting the slot size to 0.25s.
In this embodiment of the present application, as shown in fig. 4 and fig. 5, fig. 4 is a comparison between the average access time of the high and low priority service terminals obtained by simulation and the average access time of the ALOHA protocol and the non-persistent CSMA protocol. Wherein the average access time refers to the average time that the traffic starts from generation, including queuing time, transmission time, backoff retransmission time, until the access node successfully receives. Fig. 5 is a comparison of the power consumption of the high and low priority service terminals obtained by simulation with the power consumption of ALOHA protocol, non-persistent CSMA protocol.
Fig. 6 is a block diagram of an access device of a service terminal according to an embodiment of the present application, where the device may be implemented as part or all of an electronic device by using software, hardware, or a combination of both. As shown in fig. 6, the apparatus includes:
an obtaining module 61, configured to obtain a terminal access request, where the terminal access request includes a target service deployed in a service terminal to be accessed;
the determining module 62 is configured to determine a target service priority corresponding to the target service, and determine a target terminal priority corresponding to the target service terminal according to a corresponding relationship between a preset service priority and a terminal priority;
the allocation module 63 is configured to allocate a target time slot and a target access mechanism corresponding to the target terminal priority to the service terminal, so that the service terminal uses the target time slot and the target access mechanism to access the network;
the processing module 64 is configured to determine a load condition of a target time slot where the service terminal is located after the service terminal is connected to the network, and adjust the number of time slots corresponding to the target time slot and the access amount of the terminal in the time slot by using the load condition.
In the embodiment of the present application, the determining module 62 is configured to obtain service delay data corresponding to a target service; and determining the service priority corresponding to the target service based on the variance of the service delay data, wherein the service priority is a first service priority when the variance is smaller than a preset delay average value, or is a second service priority when the variance is greater than or equal to the preset delay average value, and the first service priority is higher than the second service priority.
In this embodiment of the present application, the determining module 62 is configured to determine, based on a correspondence between a preset service priority and a terminal priority, that a target terminal priority corresponding to the first service priority is a first terminal priority when the service priority is the first service priority; under the condition that the service priority is the second service priority, determining the target terminal priority corresponding to the second service priority as the second terminal priority based on the corresponding relation between the preset service priority and the terminal priority; wherein the first terminal priority is higher than the second terminal priority.
In this embodiment of the present application, the processing module 64 is configured to obtain a current load in a target time slot where the service terminal is located after the service terminal is connected to the network, and calculate an optimal load of the target time slot based on a comparison result of the current load and the optimal load, so as to obtain a load situation, where the load situation is non-overload when the current load is less than the optimal load, and the load situation is overload when the current load is greater than or equal to the optimal load.
In the embodiment of the present application, the formula for calculating the optimal load of the target time slot is:
Figure BSA0000269107250000171
wherein T is t Generating an average time period of a service for a service terminal, T p For the time length of the time period of the target time slot, N is the number of the service terminals corresponding to the priority of the first terminal or the number of the service terminals corresponding to the priority of the second terminal, T a For the transmission time of single service data, T s Is the slot length of the target slot.
In this embodiment of the present application, the processing module 64 is configured to calculate, when the target time slot is a time slot corresponding to the first terminal priority and the load condition is overload, a terminal access amount of a single time slot in the target time slot by using the optimal load, and configure, based on the terminal access amount, a time slot number of the single time slot in the target time slot and a total terminal access amount in the target time slot; and when the target time slot is the time slot corresponding to the first terminal priority and the load condition is non-overload, all the service terminals currently belonging to the first terminal priority are distributed to the same time slot in the target time slot.
In this embodiment of the present application, the processing module 64 is configured to calculate, when the target time slot is a time slot corresponding to the second terminal priority and the load condition is overload, a terminal access amount of a single time slot in the target time slot by using the optimal load, and configure, based on the terminal access amount, a time slot number of the single time slot in the target time slot and a total terminal access amount in the target time slot; and when the target time slot is the time slot corresponding to the second terminal priority and the load condition is non-overload, all the service terminals currently belonging to the first terminal priority are distributed to the same time slot in the target time slot.
The embodiment of the application further provides an electronic device, as shown in fig. 7, where the electronic device may include: the device comprises a processor 1501, a communication interface 1502, a memory 1503 and a communication bus 1504, wherein the processor 1501, the communication interface 1502 and the memory 1503 are in communication with each other through the communication bus 1504.
A memory 1503 for storing a computer program;
the processor 1501, when executing the computer program stored in the memory 1503, implements the steps of the above embodiments.
The communication bus mentioned by the above terminal may be a peripheral component interconnect standard (Peripheral Component Interconnect, abbreviated as PCI) bus or an extended industry standard architecture (Extended Industry Standard Architecture, abbreviated as EISA) bus, etc. The communication bus may be classified as an address bus, a data bus, a control bus, or the like. For ease of illustration, the figures are shown with only one bold line, but not with only one bus or one type of bus.
The communication interface is used for communication between the terminal and other devices.
The memory may include random access memory (Random Access Memory, RAM) or non-volatile memory (non-volatile memory), such as at least one disk memory. Optionally, the memory may also be at least one memory device located remotely from the aforementioned processor.
The processor may be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU for short), a network processor (Network Processor, NP for short), etc.; but also digital signal processors (Digital Signal Processing, DSP for short), application specific integrated circuits (Application Specific Integrated Circuit, ASIC for short), field-programmable gate arrays (Field-Programmable Gate Array, FPGA for short) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
In yet another embodiment provided in the present application, there is further provided a computer readable storage medium having instructions stored therein, which when run on a computer, cause the computer to perform the access method of the service terminal according to any one of the above embodiments.
In a further embodiment provided in the present application, there is also provided a computer program product containing instructions, which when run on a computer, cause the computer to perform the access method of the service terminal according to any of the above embodiments.
In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, produces a flow or function in accordance with embodiments of the present application, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by a wired (e.g., coaxial cable, fiber optic, digital subscriber line), or wireless (e.g., infrared, wireless, microwave, etc.). The computer readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains an integration of one or more available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid State Disk), etc.
The foregoing description is only of the preferred embodiments of the present application and is not intended to limit the scope of the present application. Any modifications, equivalent substitutions, improvements, etc. that are within the spirit and principles of the present application are intended to be included within the scope of the present application.
The foregoing is merely a specific embodiment of the application to enable one skilled in the art to understand or practice the application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (8)

1. An access method of a service terminal is characterized by comprising the following steps:
acquiring a terminal access request, wherein the terminal access request comprises target services of a service terminal to be accessed;
determining a target service priority corresponding to the target service, and determining a target terminal priority of the service terminal corresponding to the target service priority based on a corresponding relation between a preset service priority and a terminal priority;
distributing a target time slot and a target access mechanism corresponding to the target terminal priority to the service terminal so that the service terminal can access the network by utilizing the target time slot and the target access mechanism;
determining the load condition of a target time slot where the service terminal is located after the service terminal is connected to the network, and adjusting the time slot number corresponding to the target time slot and the terminal access quantity in the time slot by utilizing the load condition;
the determining the load condition of the target time slot where the service terminal is located after the service terminal is connected to the network comprises the following steps:
acquiring the current load in a target time slot where a service terminal is located after the service terminal is connected to the network, and calculating the optimal load of the target time slot;
obtaining the load condition based on a comparison result of the current load and the optimal load, wherein the load condition is non-overload when the current load is smaller than the optimal load, and the load condition is overload when the current load is greater than or equal to the optimal load;
the formula for calculating the optimal load of the target time slot is as follows:
Figure QLYQS_1
in the method, in the process of the invention,
Figure QLYQS_2
generating an average time period of the service for the service terminal, < >>
Figure QLYQS_3
For the time length of the time period of the target time slot, N is the number of the service terminals corresponding to the priority of the first terminal or the number of the service terminals corresponding to the priority of the second terminal, < >>
Figure QLYQS_4
For the transmission time of the individual service data, +.>
Figure QLYQS_5
Is the slot length of the target slot.
2. The method of claim 1, wherein the determining the target service priority corresponding to the target service comprises:
acquiring service delay data corresponding to the target service;
and determining a target service priority corresponding to the target service based on the variance of the service delay data, wherein when the variance is smaller than a preset delay average value, the target service priority is a first service priority, or when the variance is larger than or equal to the preset delay average value, the target service priority is a second service priority, and the first service priority is higher than the second service priority.
3. The method according to claim 2, wherein determining the target service priority to determine the target terminal priority corresponding to the service terminal based on the correspondence between the preset service priority and the terminal priority, comprises:
under the condition that the target service priority is the first service priority, determining that the target terminal priority corresponding to the first service priority is the first terminal priority based on a corresponding relation between a preset service priority and a terminal priority;
under the condition that the target service priority is the second service priority, determining that the target terminal priority corresponding to the second service priority is the second terminal priority based on the corresponding relation between the preset service priority and the terminal priority;
wherein the first terminal priority is higher than the second terminal priority.
4. The method of claim 1, wherein the adjusting the number of slots corresponding to the target slot and the amount of terminal access in the slot using the load condition comprises:
calculating the terminal access quantity of a single time slot in the target time slot by utilizing the optimal load under the condition that the target time slot is the time slot corresponding to the first terminal priority and the load condition is overload, and configuring the time slot quantity of the single time slot in the target time slot and the total terminal access quantity in the target time slot based on the terminal access quantity;
and under the condition that the target time slot is the time slot corresponding to the first terminal priority and the load condition is non-overload, all service terminals currently belonging to the first terminal priority are distributed to the same time slot in the target time slot.
5. The method of claim 1, wherein the adjusting the number of slots corresponding to the target slot and the amount of terminal access in the slot using the load condition comprises:
calculating the terminal access quantity of a single time slot in the target time slot by utilizing the optimal load under the condition that the target time slot is the time slot corresponding to the second terminal priority and the load condition is overload, and configuring the time slot quantity of the single time slot in the target time slot and the total terminal access quantity in the target time slot based on the terminal access quantity;
and under the condition that the target time slot is the time slot corresponding to the second terminal priority and the load condition is non-overload, all the service terminals currently belonging to the first terminal priority are distributed to the same time slot in the target time slot.
6. An access device for a service terminal, comprising:
the terminal access module is used for acquiring a terminal access request, wherein the terminal access request comprises target services of a service terminal to be accessed;
the determining module is used for determining the target service priority corresponding to the target service and determining the target terminal priority of the service terminal corresponding to the target service priority based on the corresponding relation between the preset service priority and the terminal priority;
the allocation module is used for allocating a target time slot and a target access mechanism corresponding to the target terminal priority to the service terminal so that the service terminal can access the network by utilizing the target time slot and the target access mechanism;
the processing module is used for determining the load condition of a target time slot where the service terminal is located after the service terminal is connected to the network, and adjusting the time slot number corresponding to the target time slot and the terminal access quantity in the time slot by utilizing the load condition;
the processing module is used for acquiring the current load of the service terminal in the target time slot where the service terminal is located after the service terminal is connected to the network, and calculating the optimal load of the target time slot; obtaining the load condition based on a comparison result of the current load and the optimal load, wherein the load condition is non-overload when the current load is smaller than the optimal load, and the load condition is overload when the current load is greater than or equal to the optimal load;
the formula for calculating the optimal load of the target time slot is as follows:
Figure QLYQS_6
in the method, in the process of the invention,
Figure QLYQS_7
generating an average time period of the service for the service terminal, < >>
Figure QLYQS_8
For the time length of the time period of the target time slot, N is the number of the service terminals corresponding to the priority of the first terminal or the number of the service terminals corresponding to the priority of the second terminal, < >>
Figure QLYQS_9
For the transmission time of the individual service data, +.>
Figure QLYQS_10
Is the slot length of the target slot.
7. A storage medium comprising a stored program, wherein the program when run performs the method of any one of the preceding claims 1 to 5.
8. The electronic equipment is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory are communicated with each other through the communication bus; wherein:
a memory for storing a computer program;
a processor for performing the method of any one of claims 1 to 5 by running a program stored on a memory.
CN202210276066.8A 2022-03-21 2022-03-21 Service terminal access method and device, electronic equipment and storage medium Active CN114786276B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210276066.8A CN114786276B (en) 2022-03-21 2022-03-21 Service terminal access method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210276066.8A CN114786276B (en) 2022-03-21 2022-03-21 Service terminal access method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN114786276A CN114786276A (en) 2022-07-22
CN114786276B true CN114786276B (en) 2023-07-04

Family

ID=82425478

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210276066.8A Active CN114786276B (en) 2022-03-21 2022-03-21 Service terminal access method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114786276B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116633998A (en) * 2023-07-24 2023-08-22 广东电网有限责任公司佛山供电局 Power distribution network equipment access scheduling method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109309524A (en) * 2018-09-25 2019-02-05 中国人民解放军空军工程大学 A kind of cut-in method based on the low-orbit satellite of IEEE802.11 to synchronous orbit data relay satellite
EP3468262A1 (en) * 2017-10-09 2019-04-10 Orta Dogu Teknik Universitesi Energy efficient scheduling method and algorithm for the non-deterministic traffic in ieee 802.15.4e time slotted channel hopping (tsch) medium access control
CN112565442A (en) * 2020-12-10 2021-03-26 中国电子科技集团公司第二十研究所 Time slot resource adjusting method based on load assessment
CN113766658A (en) * 2021-09-02 2021-12-07 上海交通大学 Self-organizing network for guaranteeing reliable transmission of high-priority time-sensitive service
CN113810883A (en) * 2021-07-01 2021-12-17 中铁二院工程集团有限责任公司 Internet of things large-scale random access control method

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016210389A1 (en) * 2015-06-25 2016-12-29 Zte Corporation Slotted ofdma based random access
CN106455073B (en) * 2016-08-23 2021-04-13 国网冀北电力有限公司信息通信分公司 Channel allocation method for security service in electric power wireless private network and central base station
US10980057B2 (en) * 2016-11-17 2021-04-13 Zte Corporation Slotted OFDMA based channel access
CN109548156B (en) * 2018-12-24 2022-12-27 西安空间无线电技术研究所 Single-channel Time Division Multiple Access (TDMA) satellite cluster ad hoc network time slot resource allocation method
US20230239902A1 (en) * 2020-08-28 2023-07-27 Qualcomm Incorporated Prioritized channel access for sidelink communication in shared channel

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3468262A1 (en) * 2017-10-09 2019-04-10 Orta Dogu Teknik Universitesi Energy efficient scheduling method and algorithm for the non-deterministic traffic in ieee 802.15.4e time slotted channel hopping (tsch) medium access control
CN109309524A (en) * 2018-09-25 2019-02-05 中国人民解放军空军工程大学 A kind of cut-in method based on the low-orbit satellite of IEEE802.11 to synchronous orbit data relay satellite
CN112565442A (en) * 2020-12-10 2021-03-26 中国电子科技集团公司第二十研究所 Time slot resource adjusting method based on load assessment
CN113810883A (en) * 2021-07-01 2021-12-17 中铁二院工程集团有限责任公司 Internet of things large-scale random access control method
CN113766658A (en) * 2021-09-02 2021-12-07 上海交通大学 Self-organizing network for guaranteeing reliable transmission of high-priority time-sensitive service

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
空间网络中的接入算法研究;楼晓明;《中国优秀硕士学位论文全文数据库-信息科技辑》(第S2期);全文 *
面向电力业务接入的跨频段融合与宽窄一体无线专网;陆阳等;《电信科学》;全文 *

Also Published As

Publication number Publication date
CN114786276A (en) 2022-07-22

Similar Documents

Publication Publication Date Title
US7843943B2 (en) Differentiation for bandwidth request contention
CN110248417B (en) Resource allocation method and system for communication service in power Internet of things
CN107535006A (en) A kind of channel access method and device
US10034121B2 (en) RAN overload control for M2M communications in LTE networks
US8620369B2 (en) Channel access method in wireless network
CN111526530B (en) Optimization method of random access congestion control algorithm for NB-IoT
US20110182178A1 (en) Randomization Management For Carrier Sensing Multiple Access with Collision Avoidance (CSMA-CA)
US11388751B2 (en) Data transmission method and apparatus technical field
CN114786276B (en) Service terminal access method and device, electronic equipment and storage medium
JP2001237839A (en) Wireless packet priority control method
CN109195194B (en) Channel access method, device and equipment
CN110225594B (en) Method and device for adjusting scheduling request period
Hu et al. Slotted Aloha for cognitive radio users and its tagged user analysis
CN115226159A (en) Method and device for determining backoff parameters based on spatial multiplexing mechanism
CN113316230B (en) Method and device for scheduling data sending task, electronic equipment and storage medium
CN107147586B (en) Dynamic competition window adjusting method, device and equipment based on random game theory
WO2022089508A1 (en) Service transmission method and apparatus
CN111278163B (en) Channel access method for solving problem of hidden terminal of short-distance wireless Internet of things
WO2017173804A1 (en) Access resource adjustment method and device
US9526116B2 (en) Method for granting medium access in a wireless network and network therefor
CN109150345B (en) Channel multiplexing method, device and storage medium
CN111526596B (en) Joint resource scheduling method and device for WLAN (Wireless local area network) and mobile network
CN116582954A (en) Channel competition method, device, communication equipment and storage medium
CN114051267B (en) Method for optimizing time division multiplexing based on network bridge spacing
CN116887440A (en) Hybrid access method for power line carrier and wireless fusion communication system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant