Disclosure of Invention
In view of the above, the present invention is proposed to provide a method and apparatus for wireless network access, and a terminal device, which overcome the above problems or at least partially solve the above problems.
In a first aspect of the present invention, a method for accessing a wireless network is provided, including:
determining a working period of a wireless Access Point (AP), wherein the working period comprises preset time lengths corresponding to all service types and positions of the time lengths corresponding to all the service types in the working period;
the time length of each service type and the position of the time length corresponding to each service type in the working cycle are determined according to the corresponding service type, and/or the channel quality, and/or the service requirement of each terminal device to be accessed, and/or the priority of each terminal device to be accessed;
and performing information interaction with each terminal device according to the determined work period, and completing the access of each terminal device to the wireless network.
Wherein, each service type comprises a broadcast service, an uplink data service, a downlink data service and a competitive access service;
the determining the work cycle of the wireless access point AP comprises:
and distributing the broadcast information time length corresponding to the broadcast service at the initial position of the work period, and distributing the time length and the distribution position corresponding to other services except the broadcast service based on the residual time length of the work period.
Before allocating the broadcast information duration corresponding to the broadcast service at the initial position of the work cycle, the method further includes:
and configuring the duration of the working period according to the service delay parameters of the users and the number of the users.
Before allocating the broadcast information duration corresponding to the broadcast service at the initial position of the work cycle, the method further includes:
and determining the duration of the broadcast information according to the size of the carried broadcast information and a modulation coding mode.
Wherein the allocating the time length and the distribution position corresponding to other services except the broadcast service based on the remaining time length of the work cycle comprises:
distributing competition access duration corresponding to the competition access service according to round-trip time required by the terminal equipment which is farthest away in the coverage area of the current AP to initiate an association request;
calculating the remaining time length after the broadcast information time length and the competitive access time length are distributed in the working period time length;
determining the uplink data time length and the downlink data time length according to the calculated remaining time length and the preset proportion of the uplink data service time length and the downlink data service time length;
and determining the positions of the competitive access time length, the uplink data time length and the downlink data time length in the working period according to preset system configuration parameters.
Wherein the method further comprises:
and if the uplink data time length and the downlink data time length are determined to be adjacent according to the preset system parameters, distributing a protection time length with a first specified length between the uplink data time length and the downlink data time length.
Wherein the method further comprises:
allocating a protection time length with a second specified length at the initial position of each time slot in the uplink data time length;
allocating a protection time length with a third specified length at the initial position of each time slot in the downlink data time length;
and allocating a guard time length with a fourth specified length at the initial position of the competitive access time length.
The performing information interaction with the terminal devices according to the determined work cycle and completing the access of the wireless network of the terminal devices comprises:
and sending broadcast information to each terminal device in the coverage range at the position of the broadcast information duration, wherein the broadcast information comprises an identification number of the current AP, a distribution position of the competitive access duration corresponding to the competitive access service, the identification number of each terminal device and an uplink and downlink time slot resource allocation result corresponding to each terminal device, so that the terminal devices in the coverage range perform the competitive access of the current AP or uplink data sending or downlink data receiving in a specified time according to the broadcast information.
In a second aspect of the present invention, a method for accessing a wireless network is provided, where the method includes:
acquiring a working cycle of a wireless Access Point (AP), wherein the working cycle comprises preset duration corresponding to each service type and the position of the duration corresponding to each service type in the working cycle;
the time length of each service type and the position of the time length corresponding to each service type in the working cycle are determined according to the corresponding service type, and/or the channel quality, and/or the service requirement of each terminal device to be accessed, and/or the priority of each terminal device to be accessed;
and performing information interaction with the AP according to the obtained work cycle to complete the wireless network access of the current terminal equipment.
Wherein, the obtaining the work cycle of the wireless access point AP includes:
and receiving broadcast information sent by the AP, wherein the broadcast information comprises an identification number of the AP, a distribution position of a competitive access time length corresponding to a competitive access service, an identification number of each terminal device and an uplink and downlink time slot resource allocation result corresponding to each terminal device.
The information interaction with the AP according to the obtained work cycle to complete the wireless network access of the current terminal device includes:
judging whether the AP is an associated access point or an access point to be associated of the current terminal equipment or not according to the identification number of the AP and the identification number of the current terminal equipment;
if the AP is the access point associated with the current terminal equipment, acquiring corresponding uplink and downlink time slot resource allocation results according to the identification number of the current terminal equipment, and transmitting uplink data or receiving downlink data within a specified time;
and if the AP is the access point to be associated with the current terminal equipment, acquiring the distribution position of the competitive access duration, and performing competitive access within a specified time.
Wherein the method further comprises:
and if the access point is not the associated access point or the access point to be associated of the current terminal equipment, re-searching the broadcast information sent by other access points.
In a third aspect of the present invention, a wireless network access apparatus is provided, including:
the access point configuration module is used for determining a working period of a wireless Access Point (AP), wherein the working period comprises preset time lengths corresponding to all service types and positions of the preset time lengths corresponding to all the service types in the working period; the time length of each service type and the position of the time length corresponding to each service type in the working cycle are determined according to the corresponding service type, and/or the channel quality, and/or the service requirement of each terminal device to be accessed, and/or the priority of each terminal device to be accessed;
and the access point access module is used for performing information interaction with each terminal device according to the determined work period and completing the access of each terminal device to the wireless network.
The service types comprise a broadcast service, an uplink data service, a downlink data service and a competitive access service;
the access point configuration module is specifically configured to allocate a broadcast information duration corresponding to a broadcast service at an initial position of the working period, and allocate a duration and a distribution position corresponding to other services other than the broadcast service based on a remaining duration of the working period.
The access point access module is specifically configured to send broadcast information to each terminal device in a coverage area at a location of the broadcast information duration, where the broadcast information includes an identification number of a current AP, a distribution location of a contention access duration corresponding to a contention access service, the identification number of each terminal device, and an uplink and downlink timeslot resource allocation result corresponding to each terminal device, so that the terminal device in the coverage area performs contention access of the current AP or uplink data sending or downlink data receiving within a specified time according to the broadcast information.
In a fourth aspect of the present invention, a terminal device is provided, including:
the station communication module is used for acquiring a working cycle of a wireless Access Point (AP), wherein the working cycle comprises preset time length corresponding to each service type and the position of the time length corresponding to each service type in the working cycle; the time length of each service type and the position of the time length corresponding to each service type in the working cycle are determined according to the corresponding service type, and/or the channel quality, and/or the service requirement of each terminal device to be accessed, and/or the priority of each terminal device to be accessed;
and the station access module is used for performing information interaction with the AP according to the acquired working period and completing wireless network access of the current terminal equipment.
The station communication module is specifically configured to receive broadcast information sent by the AP, where the broadcast information includes an identification number of the AP, a distribution position of contention access duration corresponding to a contention access service, an identification number of each terminal device, and an uplink and downlink timeslot resource allocation result corresponding to each terminal device.
Wherein, the station access module includes:
the judging submodule is used for judging whether the AP is an associated access point or an access point to be associated of the current terminal equipment according to the identification number of the AP and the identification number of the current terminal equipment;
the access sub-module is used for acquiring corresponding uplink and downlink time slot resource allocation results according to the identification number of the current terminal equipment when the AP is the access point associated with the current terminal equipment, and transmitting uplink data or receiving downlink data within a specified time;
and the access sub-module is further used for acquiring the respective positions of the competitive access duration and performing competitive access within a specified time when the AP is the access point to be associated with the current terminal equipment.
According to the method, the device and the terminal equipment for accessing the wireless network, provided by the embodiment of the invention, the duration of each service type and the position of the duration corresponding to each service type in the working period are determined according to the service type corresponding to each service in the working period, and/or the channel quality, and/or the service requirement of each terminal equipment to be accessed, and/or the priority of each terminal equipment to be accessed, information interaction is carried out with each terminal equipment according to the determined working period, and the wireless network access of each terminal equipment is completed. The synchronization of receiving and sending uplink data and downlink data among different APs is realized, and the cross interference caused by the asynchronous uplink and downlink time lengths is reduced; the switching frequency of AP sending and receiving and the hardware processing complexity are reduced, and the power consumption of the terminal equipment is reduced.
In addition, in the embodiment of the invention, the AP distributes the broadcast information transmission, the uplink/downlink data, the duration and the position of the competitive access in a centralized manner, so that the resource utilization rate is improved, the collision between the competitive access and the normal uplink data transmission is reduced, the success probability of the competitive access is improved, the duration of waiting for the uplink data transmission of the accessed terminal equipment is reduced, the service transmission delay is reduced, and the service quality and the perception of the terminal equipment are improved.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
It will be understood by those skilled in the art that, unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. It will be further understood that terms, such as those defined in commonly used dictionaries, should be interpreted as having a meaning that is consistent with their meaning in the context of the prior art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein.
In the method, in each working period, an AP determines the distribution positions of broadcast information duration, downlink data duration, uplink data duration and contention access duration respectively; all terminal equipment starts to preferentially receive the broadcast information in each working period to acquire the positions of the competitive access and the uplink/downlink data time length, and performs the competitive access, the uplink data transmission or the downlink data reception in the designated time. The invention distinguishes the broadcast information time length, the uplink/downlink data sending time length and the competitive access time length, so that the terminal equipment carries out competitive access or uplink data sending or downlink data receiving in the appointed time, thereby realizing the uplink and downlink data receiving and sending synchronization among different APs and reducing the cross interference caused by the asynchronous uplink and downlink time lengths; the switching frequency of AP sending and receiving and the hardware processing complexity are reduced, and the power consumption of the terminal equipment is reduced; the AP distributes the time length and the position corresponding to the services such as broadcast information transmission, uplink/downlink data, competitive access and the like in a centralized manner, so that the resource utilization rate is improved, the collision between the competitive access and the normal uplink data transmission is reduced, the success probability of the competitive access is improved, the time length of the accessed terminal equipment for waiting the uplink data transmission is reduced, the service transmission time delay is reduced, and the service quality and the perception of the terminal equipment are improved.
Fig. 1 schematically shows a flow chart of a method of wireless network access according to an embodiment of the present invention. The method for accessing the wireless network provided by the embodiment is suitable for the access device side. Referring to fig. 1, the method for accessing a wireless network according to the embodiment of the present invention specifically includes the following steps:
s11, determining a working cycle of the wireless access point AP, wherein the working cycle comprises preset duration corresponding to each service type and the position of the duration corresponding to each service type in the working cycle;
and the time length of each service type and the position of the time length corresponding to each service type in the working cycle are determined according to the corresponding service type, and/or the channel quality, and/or the service requirement of each terminal device to be accessed, and/or the priority of each terminal device to be accessed.
The service types in the embodiment of the present invention are not limited to data services such as uplink and downlink, but also include other service types such as broadcast service, contention access service, and the like.
And S12, performing information interaction with each terminal device according to the determined work period, and completing the access of each terminal device to the wireless network.
The method for accessing the wireless network provided by the embodiment of the invention determines the duration of each service type and the position of the duration corresponding to each service type in the working period according to the service type corresponding to each service in the working period, and/or the channel quality, and/or the service requirement of each terminal device to be accessed, and/or the priority of each terminal device to be accessed, and performs information interaction with each terminal device according to the determined working period, and completes the access of the wireless network of each terminal device. The synchronization of receiving and sending uplink data and downlink data among different APs is realized, and the cross interference caused by the asynchronous uplink and downlink time lengths is reduced; the switching frequency of AP sending and receiving and the hardware processing complexity are reduced, and the power consumption of the terminal equipment is reduced.
In addition, in the embodiment of the invention, the AP distributes the broadcast information transmission, the uplink/downlink data, the duration and the position of the competitive access in a centralized manner, so that the resource utilization rate is improved, the collision between the competitive access and the normal uplink data transmission is reduced, the success probability of the competitive access is improved, the duration of waiting for the uplink data transmission of the accessed terminal equipment is reduced, the service transmission delay is reduced, and the service quality and the perception of the terminal equipment are improved.
In the embodiment of the invention, each service type comprises a broadcast service, an uplink data service, a downlink data service and a competitive access service. Correspondingly, the determination of the working cycle of the wireless access point AP in step S11 is implemented by the following steps: and distributing the broadcast information time length corresponding to the broadcast service at the initial position of the work period, and distributing the time length and the distribution position corresponding to other services except the broadcast service based on the residual time length of the work period.
In practical application, the access device may specifically allocate uplink and downlink timeslot resources to each terminal device within an uplink data duration corresponding to the uplink data service and a downlink data duration corresponding to the downlink data service, respectively, according to uplink and downlink service requirements of each terminal device within a coverage area of the access device.
The duty cycle in this embodiment is the duty cycle of the access point. The duty cycle includes a broadcast information duration, a downlink data duration, an uplink data duration, and a contention access duration. Before the broadcast information duration corresponding to the broadcast service is distributed, the duration of the working period can be configured according to the user service delay parameter and the number of users. In this embodiment, the AP may configure the working period according to the service delay requirement of the user and the number of users, may configure the working period to be a fixed value, for example, 5ms is a working period, and may also dynamically adjust based on a certain policy.
The broadcast information duration in this embodiment is a duration occupied by the AP for sending broadcast information in the working period, and the broadcast information may include an identification number of the serving AP, a bandwidth, a NAV, a position of the contention access duration in the working period, identifications of all terminal devices, and uplink and downlink sending duration positions corresponding to the identifiers. Specifically, the duration of the broadcast information may be determined according to the size of the broadcast information and the modulation and coding scheme. For example, the Beacon frame may occupy 250us according to the size of the carried information and the modulation and coding scheme.
The contention access duration in this embodiment is the time required for the terminal device that is not associated with the AP to initiate contention association.
The downlink data duration in this embodiment is a total duration used by the AP to send downlink data in a working period, and the uplink data duration is a total duration used by the terminal device to send uplink data in the working period. The AP may obtain the specific time length for the different terminal devices to send the uplink/downlink data according to the uplink/downlink service requirements of the different terminal devices and by combining the priority allocation of each different terminal device.
The allocation of the duration and the distribution position corresponding to the other services than the broadcast service based on the remaining duration of the duty cycle in the embodiment of the present invention may be specifically implemented by the following steps not shown in the accompanying drawings:
s111, distributing competition access duration corresponding to the competition access service according to round-trip time required by the terminal equipment which is farthest away in the coverage area of the current AP to initiate an association request;
s112, calculating the remaining time length after the broadcast information time length and the competitive access time length are distributed in the working period time length;
s113, determining the uplink data time length and the downlink data time length according to the calculated remaining time length and the preset proportion of the uplink data service time length and the downlink data service time length;
s114, determining the positions of the competitive access time length, the uplink data time length and the downlink data time length in the working cycle according to preset system configuration parameters.
Further, if the uplink data duration and the downlink data duration are adjacent, a protection duration with a first specified length is included between the uplink data duration and the downlink data duration.
Further, a protection duration with a second specified length is allocated to the initial position of each time slot in the uplink data duration; allocating a protection time length with a third specified length at the initial position of each time slot in the downlink data time length; and allocating a guard time length with a fourth specified length at the initial position of the competitive access time length. In this embodiment, the initial position of each timeslot in the uplink data duration includes a protection duration with a second specified length. The initial position of each time slot in the downlink data time length comprises a protection time length with a third specified length. The initial position of the contention access duration includes a guard duration of a fourth specified length.
In a specific embodiment, the contention access duration is related to a round trip time required by the terminal device farthest from the coverage area of the AP to initiate the association request, and may be determined according to the round trip time required by the terminal device farthest from the AP to initiate the association request. In order to ensure that the uplink data transmission of the terminal equipment is not conflicted with the uplink data transmission of other accessed terminal equipment, the initial position of the competitive access time length comprises a protection time length with a fourth specified length. A guard duration GP3 may be reserved before the contention access duration, which may also be set according to the transmission distance; for example, GP3 is set to 50us, and the contention access duration is set to 100 us.
The downlink data time length is the total time length used by the AP to send downlink data in the working period, the uplink data time length is the total time length used by the terminal equipment to send uplink data in the working period, and the two time lengths can be distributed based on the remaining time length of (working period-broadcast information time length-competitive access time length) and in combination with the proportion of the upper time length and the lower time length; the up-down time length proportion is a preset system configuration parameter, and can be configured fixedly or dynamically; the proportion can be determined according to the uplink and downlink traffic or the channel quality; for example: the working period is 5ms, the broadcast information time length is 250us, the total contention access time length is 50+100 ═ 150us, and the residual time length is 5000-; assuming that the up-down time length ratio is set to 1:3, the downlink data time length 4600 × 3/4 is 3450us, and the uplink data time length is 1150 us; the AP obtains the specific time length for sending the uplink/downlink data by different terminal equipment according to the uplink/downlink service requirements and the priority distribution of the different terminal equipment, and can simply and equally divide the time length of the uplink/downlink data to the terminal equipment based on the number of the terminal equipment; for example, in a certain working period, there are terminal devices STA1, STA2, and STA3, and the specific time periods for sending uplink/downlink data, which are obtained according to their uplink/downlink traffic demands and priority assignment, are: the allocated time lengths of the downlink (1000us, 450us, 2000us) + the uplink (150us, 400us, 600us) can be completely used for uplink and downlink data transmission of the terminal equipment, and the AP can allocate specific time slot resources to each terminal equipment according to the time lengths. In order to protect data transmission of different terminal devices in the same direction from collision, a guard interval GP1/GP2 of a second specified length and a third specified length may be reserved on uplink/downlink data transmission intervals of different terminal devices, and the duration may also be set according to the transmission distance; for example, GP 1-10 us, GP 2-15 us; meanwhile, a guard interval GP0 with a first specified length may also be added between the downlink data duration and the uplink data duration to prevent uplink and downlink data collision, for example, GP0 is set to 20 us.
Further, the method for determining the distribution positions of the broadcast information duration, the downlink data duration, the uplink data duration and the contention access duration is as follows: the AP sets the broadcast information position to be at the initial position of the working period, so that the terminal equipment can receive the broadcast information preferentially and acquire the uplink and downlink data time length and the competitive access time length, for example, the broadcast information can be sent through a Beacon frame of a management frame in 802.11; the position sequence of the downlink data time length, the uplink data time length and the competitive access time length can be set according to the system requirement; for example, the contention access duration may be located between the downlink data duration and the uplink data duration, so as to form an isolation for uplink and downlink data transmission, and reduce the overhead of the guard interval. For another example, the contention access duration is located at the end of the working period, and the requirement for the reserved duration during ETSI authentication is supported, as shown in fig. 2.
In this embodiment, the step S12 is implemented by performing information interaction with the terminal devices according to the determined work cycle, and completing the access of the wireless network of the terminal devices through the following steps:
and sending broadcast information to each terminal device in the coverage range at the position of the broadcast information duration, wherein the broadcast information comprises an identification number of the current access point, a distribution position of competitive access duration corresponding to a competitive access service, an identification number of each terminal device and uplink and downlink time slot resource allocation results corresponding to each terminal device, so that the terminal devices in the coverage range perform competitive access of the current access point or uplink data sending or downlink data receiving in a specified time according to the broadcast information.
In this embodiment, all terminal devices start to preferentially receive broadcast information in each working cycle to obtain the position of the contention access duration and the corresponding uplink and downlink timeslot resource allocation results, and perform contention access or uplink data transmission or downlink data reception within a specified time. Specifically, all terminal devices start to preferentially receive broadcast information in each working period, acquire the identification number of the serving AP, determine whether the serving AP is associated with the serving AP or an AP that can be associated with the serving AP, and continue to acquire other information if the serving AP is associated with the serving AP; otherwise, searching other broadcast information again; after confirming the AP associated or associable with the terminal device, the accessed terminal device obtains the uplink and downlink time slot resources corresponding to the terminal device according to the identification of the terminal device, and performs uplink data transmission or downlink data reception at the uplink and downlink transmission time length position corresponding to the terminal device. The unaccessed terminal equipment only acquires the position of the competitive access duration. And if the competition is unsuccessful, the terminal equipment backs off to wait for the next working period to arrive, receives the broadcast information to acquire the next competition access duration position and then initiates the competition access.
In the embodiment of the invention, the broadcast information time length, the uplink/downlink data time length and the competitive access time length are distinguished, so that terminal equipment performs competitive access or uplink data transmission or downlink data reception in a specified time, the uplink and downlink data receiving and transmitting synchronization among different APs is realized, and the cross interference caused by the asynchronous uplink and downlink time lengths is reduced; the switching frequency of AP sending and receiving and the hardware processing complexity are reduced, and the power consumption of the terminal equipment is reduced;
in the embodiment of the invention, the AP distributes the broadcast information sending, the uplink/downlink data and the duration and the position of the competitive access in a centralized way, thereby improving the resource utilization rate, reducing the collision between the competitive access and the normal uplink data sending, improving the success probability of the competitive access, reducing the duration of waiting for the uplink data sending of the accessed terminal equipment, reducing the service transmission delay and improving the service quality and the perception of the terminal equipment.
Fig. 3 schematically shows a flow chart of a method of wireless network access according to another embodiment of the present invention. The method for accessing the wireless network provided by the embodiment is suitable for the terminal equipment side. Referring to fig. 3, the method for accessing a wireless network according to the embodiment of the present invention specifically includes the following steps:
s31, obtaining a working cycle of the wireless access point AP, wherein the working cycle comprises preset duration corresponding to each service type and the position of the duration corresponding to each service type in the working cycle. The time length of each service type and the position of the time length corresponding to each service type in the working cycle are determined according to the corresponding service type, and/or the channel quality, and/or the service requirement of each terminal device to be accessed, and/or the priority of each terminal device to be accessed;
and S32, performing information interaction with the AP according to the obtained work cycle, and completing wireless network access of the current terminal equipment.
The method for accessing the wireless network provided by the embodiment of the invention determines the duration of each service type and the position of the duration corresponding to each service type in the working period according to the service type corresponding to each service in the working period, and/or the channel quality, and/or the service requirement of each terminal device to be accessed, and/or the priority of each terminal device to be accessed, and performs information interaction with each terminal device according to the determined working period, and completes the access of the wireless network of each terminal device. The synchronization of receiving and sending uplink data and downlink data among different APs is realized, and the cross interference caused by the asynchronous uplink and downlink time lengths is reduced; the switching frequency of AP sending and receiving and the hardware processing complexity are reduced, and the power consumption of the terminal equipment is reduced.
In addition, in the embodiment of the invention, the AP distributes the broadcast information transmission, the uplink/downlink data, the duration and the position of the competitive access in a centralized manner, so that the resource utilization rate is improved, the collision between the competitive access and the normal uplink data transmission is reduced, the success probability of the competitive access is improved, the duration of waiting for the uplink data transmission of the accessed terminal equipment is reduced, the service transmission delay is reduced, and the service quality and the perception of the terminal equipment are improved.
In this embodiment, the obtaining of the working cycle of the wireless access point AP in step S31 is specifically implemented by the following steps:
and receiving broadcast information sent by the AP, wherein the broadcast information comprises an identification number of the AP, a distribution position of competition access duration corresponding to a competition access service, an identification number of each terminal device and an uplink and downlink time slot resource allocation result corresponding to each terminal device.
In this embodiment, in step S32, performing information interaction with the AP according to the obtained work cycle, and completing wireless network access of the current terminal device specifically includes the following steps:
judging whether the AP is an associated access point or an access point to be associated of the current terminal equipment or not according to the identification number of the AP and the identification number of the current terminal equipment;
if the AP is the access point associated with the current terminal equipment, acquiring corresponding uplink and downlink time slot resource allocation results according to the identification number of the current terminal equipment, and transmitting uplink data or receiving downlink data within a specified time;
and if the AP is the access point to be associated with the current terminal equipment, acquiring the distribution position of the competitive access duration, and performing competitive access within a specified time.
Further, if the competition is unsuccessful within the specified time, the terminal device backs off to wait for the next working period to arrive, receives the broadcast information to acquire the next competition access duration position and then initiates competition access.
In practical application, if the access point is not an associated access point or an access point to be associated with the current terminal device, the broadcast information sent by other access points is searched again to search for an accessible access point.
In this embodiment, all terminal devices start to preferentially receive broadcast information in each working cycle to obtain the position of the contention access duration and the corresponding uplink and downlink timeslot resource allocation results, and perform contention access or uplink data transmission or downlink data reception within a specified time. Specifically, all terminal devices start to preferentially receive broadcast information in each working period, acquire the identification number of the serving AP, determine whether the serving AP is associated with the serving AP or an AP that can be associated with the serving AP, and continue to acquire other information if the serving AP is associated with the serving AP; otherwise, searching other broadcast information again; after confirming the AP associated or associable with the terminal device, the accessed terminal device obtains the uplink and downlink time slot resources corresponding to the terminal device according to the identification of the terminal device, and performs uplink data transmission or downlink data reception at the uplink and downlink transmission time length position corresponding to the terminal device. The unaccessed terminal equipment only acquires the position of the competitive access duration. And if the competition is unsuccessful, the terminal equipment backs off to wait for the next working period to arrive, receives the broadcast information to acquire the position of the next competition access time and then initiates the next competition access time.
According to the wireless network access method provided by the embodiment of the invention, through distinguishing the broadcast information time length, the uplink/downlink data time length and the competitive access time length in the working period time length, the terminal equipment performs competitive access or uplink data transmission or downlink data reception in the specified time, the uplink and downlink data receiving and transmitting synchronization among different APs is realized, and the cross interference caused by the asynchronous uplink and downlink time lengths is reduced; the switching frequency of AP sending and receiving and the hardware processing complexity are reduced, and the power consumption of the terminal equipment is reduced.
In addition, in the embodiment of the invention, the AP distributes the broadcast information transmission, the uplink/downlink data, the duration and the position of the competitive access in a centralized manner, so that the resource utilization rate is improved, the collision between the competitive access and the normal uplink data transmission is reduced, the success probability of the competitive access is improved, the duration of waiting for the uplink data transmission of the accessed terminal equipment is reduced, the service transmission delay is reduced, and the service quality and the perception of the terminal equipment are improved.
For simplicity of explanation, the method embodiments are described as a series of acts or combinations, but those skilled in the art will appreciate that the embodiments are not limited by the order of acts described, as some steps may occur in other orders or concurrently with other steps in accordance with the embodiments of the invention. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred and that no particular act is required to implement the invention.
Fig. 4 schematically shows a structural diagram of a wireless network access device according to an embodiment of the present invention. Referring to fig. 4, the wireless network access apparatus in the embodiment of the present invention specifically includes an access point configuration module 401 and an access point access module 402, where: an access point configuration module 401, configured to determine a working period of an access point AP, where the working period includes preset durations corresponding to various service types and positions of the durations corresponding to the service types in the working period; the time length of each service type and the position of the time length corresponding to each service type in the working cycle are determined according to the corresponding service type, and/or the channel quality, and/or the service requirement of each terminal device to be accessed, and/or the priority of each terminal device to be accessed; an access point access module 402, configured to perform information interaction with each terminal device according to the determined work cycle, and complete access to the wireless network of each terminal device.
In this embodiment, each service type includes a broadcast service, an uplink data service, a downlink data service, and a contention access service.
Correspondingly, the access point configuration module 401 is specifically configured to allocate the broadcast information duration corresponding to the broadcast service at the initial position of the working period, and allocate the durations and distribution positions corresponding to other services other than the broadcast service based on the remaining duration of the working period.
In this embodiment of the present invention, the access point configuration module 401 is further configured to configure the duration of the working cycle according to the user service delay parameter and the number of users before the broadcast information duration corresponding to the broadcast service is allocated at the initial position of the working cycle.
In this embodiment of the present invention, the access point configuration module 401 is further configured to determine the broadcast information duration according to the size of the bearer broadcast information and the modulation and coding scheme before allocating the broadcast information duration corresponding to the broadcast service at the initial position of the working cycle.
In this embodiment, the access point configuration module 401 is specifically configured to allocate a contention access duration corresponding to the contention access service according to a round trip time required by the terminal device with the farthest distance in the coverage area of the current AP to initiate an association request; calculating the remaining time length after the broadcast information time length and the competitive access time length are distributed in the working period time length; determining the uplink data time length and the downlink data time length according to the calculated remaining time length and the preset proportion of the uplink data service time length and the downlink data service time length; and determining the positions of the competitive access time length, the uplink data time length and the downlink data time length in the working period according to preset system configuration parameters. Further, if the uplink data duration and the downlink data duration are adjacent, a protection duration with a first specified length is included between the uplink data duration and the downlink data duration.
Further, a protection duration with a second specified length is allocated to the initial position of each time slot in the uplink data duration; allocating a protection time length with a third specified length at the initial position of each time slot in the downlink data time length; and allocating a guard time length with a fourth specified length at the initial position of the competitive access time length. In this embodiment, the initial position of each timeslot in the uplink data duration includes a protection duration with a second specified length. Wherein, the initial position of each time slot in the downlink data time length comprises a protection time length with a third specified length. Wherein, the initial position of the contention access duration comprises a guard duration with a fourth specified length. The method and the device reduce cross interference while realizing the synchronization of uplink and downlink data receiving and transmitting among different APs.
In this embodiment of the present invention, the access point access module 402 is specifically configured to send broadcast information to each terminal device in a coverage area at a location of the broadcast information duration, where the broadcast information includes an identification number of a current AP, a distribution location of a contention access duration corresponding to a contention access service, the identification number of each terminal device, and an uplink and downlink timeslot resource allocation result corresponding to each terminal device, so that the terminal device in the coverage area performs contention access of the current AP or uplink data sending or downlink data receiving within a specified time according to the broadcast information.
Fig. 5 schematically shows a structural diagram of a terminal device according to an embodiment of the present invention. Referring to fig. 5, the terminal device in the embodiment of the present invention specifically includes a station communication module 501 and a station access module 502, where: a station communication module 501, configured to obtain a working cycle of an AP, where the working cycle includes preset durations corresponding to various service types and positions of the durations corresponding to the service types in the working cycle; the time length of each service type and the position of the time length corresponding to each service type in the working cycle are determined according to the corresponding service type, and/or the channel quality, and/or the service requirement of each terminal device to be accessed, and/or the priority of each terminal device to be accessed; and the station access module 502 is configured to perform information interaction with the AP according to the obtained work cycle, and complete wireless network access of the current terminal device.
In this embodiment of the present invention, the station communication module 501 is specifically configured to receive broadcast information sent by the AP, where the broadcast information includes an identification number of the AP, a distribution position of contention access duration corresponding to a contention access service, an identification number of each terminal device, and an uplink and downlink timeslot resource allocation result corresponding to each terminal device.
In this embodiment of the present invention, the station access module 502 specifically includes a determination submodule and an access submodule, where:
the judging submodule is used for judging whether the AP is an associated access point or an access point to be associated of the current terminal equipment according to the identification number of the AP and the identification number of the current terminal equipment;
the access sub-module is used for acquiring corresponding uplink and downlink time slot resource allocation results according to the identification number of the current terminal equipment when the AP is the associated access point of the current terminal equipment, and transmitting uplink data or receiving downlink data within a specified time;
and the access sub-module is further configured to, when the AP is a to-be-associated access point of the current terminal device, acquire respective positions of the contention access duration, and perform contention access within a specified time.
In this embodiment of the present invention, the station communication module 502 is further configured to re-search for broadcast information sent by another access point when the access point is not an associated access point or an access point to be associated with the current terminal device.
For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Compared with the prior art, the wireless network access method, the wireless network access device and the terminal equipment provided by the embodiment of the invention have the following advantages and beneficial effects:
the embodiment of the invention determines the time length of each service type and the position of the time length corresponding to each service type in the working period according to the service type corresponding to each service in the working period, and/or the channel quality, and/or the service requirement of each terminal device to be accessed, and/or the priority of each terminal device to be accessed, and performs information interaction with each terminal device according to the determined working period, and completes the access of the wireless network of each terminal device. The synchronization of receiving and sending uplink data and downlink data among different APs is realized, and the cross interference caused by the asynchronous uplink and downlink time lengths is reduced; the switching frequency of AP sending and receiving and the hardware processing complexity are reduced, and the power consumption of the terminal equipment is reduced.
In addition, in the embodiment of the invention, the AP distributes the broadcast information transmission, the uplink/downlink data, the duration and the position of the competitive access in a centralized manner, so that the resource utilization rate is improved, the collision between the competitive access and the normal uplink data transmission is reduced, the success probability of the competitive access is improved, the duration of waiting for the uplink data transmission of the accessed terminal equipment is reduced, the service transmission delay is reduced, and the service quality and the perception of the terminal equipment are improved.
In the embodiments of the present invention, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, the described unit or division of units is only one division of logical functions, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical or other form.
The functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may be an independent physical module. The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, all or part of the technical solutions of the embodiments of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device, such as a personal computer, a server, or a network device, or a processor (processor) to execute all or part of the steps of the methods according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a Universal Serial Bus flash drive (usb flash drive), a removable hard disk, a read-only memory (ROM), a Random Access Memory (RAM), a magnetic disk, and an optical disk.
Those skilled in the art will appreciate that while some embodiments herein include some features included in other embodiments, rather than others, combinations of features of different embodiments are meant to be within the scope of the invention and form different embodiments. For example, in the following claims, any of the claimed embodiments may be used in any combination.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.