A kind of method and apparatus of controlling the protection device initialize
Technical field
The present invention relates to communication technical field, especially a kind of method and apparatus of controlling the protection device initialize.
Background technology
Along with the popularization of DTV, the utilance of frequency range that originally is used for simulated television is more and more lower.The equipment that present approved exempts to authorize uses this part untapped TV band under the prerequisite that does not cause interference.Although these television channels are not used to broadcast television signal, other lower powered authorisation device also are operated on these television channels such as wireless microphone etc.Therefore protect these lower powered equipment to avoid disturbing and just seem particularly important.
IEEE 802.22.1 standard definition a kind of protection equipment (Protecting Device; PD) or beacon equipment (Beaconing Device) be used for forming beacon network (Beaconing Network); Reinforcement helps and exempts from authorisation device carrying out frequency spectrum share to the protection of lower powered authorized master user equipment (such as wireless microphone).
Beacon transmissions in the beacon network is all broadcasted, and the data of transmission can be received by any equipment in the network coverage and handle.Protection equipment in the beacon network be divided into main protecting equipment (Primary Protecting Device, PPD) and from protection equipment (Secondary Protecting Device, SPD).Other bootstrap informations from protection equipment are merged in the access of main protecting equipment system wireless channel, are responsible for all beacon messages in this beacon network of broadcasting; Be responsible for the protection of the lower powered authorisation device in a part of zone from protection equipment, send to main subscriber equipment to beacon content.In order to shorten the time of reselecting new main protecting equipment after main protecting equipment withdraws from, IEEE 802.22.1 standard definition a kind of special from protection equipment, promptly alternative protective equipment (Next-in-line Protecting Device, NPD).
The step of device initialize is following: at first carry out initialization after the protection device power-up.Each protection equipment is being intercepted several super frame period to judge whether there is main protecting equipment on this channel on the television channel of appointment.If do not listen to main protecting equipment, this protection equipment just promotes to main protecting equipment and begins to send beacon frame; If listen to the existence of one or more main protecting equipments, this protection equipment can determine the beacon frame that becomes main protecting equipment and begin to send oneself, or becomes from protection equipment and attempt and one of them main protecting equipment is got in touch.When having main protecting equipment in the beacon network, main protecting equipment should select certain from protection equipment as alternative protective equipment.If main protecting equipment stops to send beacon; Alternative protective equipment will promote and be main protecting equipment; Other finally can be got in touch with new main protecting equipment from protection equipment, and new main protecting equipment should select wherein that certain becomes new alternative protective equipment from protection equipment.
The architecture of protection equipment is based on open system interconnection, and (Open System Interconnection, OSI) sandwich construction of seven layer model is as shown in Figure 1.Each layer is responsible for a part of agreement, and to the upper strata service is provided.
(Physical Layer is PHY) with medium access control (Medium Access Control, MAC) sublayer for the physical layer of IEEE 802.22.1 standard definition protection equipment.Physical layer comprises the controlling mechanism of wireless transceiver and bottom, and the service of bit transfer is provided to the MAC layer.Medium access control sublayer provides the access service of physical channel, and carries out the assembling and the decomposition of mac frame.High-rise (Next Higher Layer; NHL) do not belong to the part of standard code; But because the high-rise functions such as mistake of selecting working channel, the mode of operation (becoming main protecting equipment) of decision protection equipment, the transmission that begins/stop beacon frame, the information of handling the beacon frame that receives, fused data and handling security mechanism of carrying out still from protection equipment; High-rise behavior is extremely important to the operate as normal of protection equipment, so IEEE 802.22.1 standard has been described high-rise behavior in appendix.
Interface between each layer be known as Service Access Point (Service Access Points, SAPs).Each Service Access Point provides the information interacting method between the adjacent two layers.Carry out information interaction through MLME (MAC sublayer Management Entity, media access control sublayer management entity)-SAP interface between high level and the medium access control sublayer; Data between medium access control sublayer and the physical layer are carried out alternately through PD-SAP, and control information is carried out through PLME (PHY Layer Management Entity, PLME)-SAP alternately.
Superframe (superframe) structure of IEEE 802.22.1 system is as shown in Figure 2.A super frame period is divided into 31 time slots (slot), and preceding 30 time slots are used to send bootstrap information, and back literary composition is called beacon period, and (Inter-device communication period, ICP), back literary composition is called the communication between devices phase to the 31st time slot as communication between devices.Superframe is divided into two logic channels in the beacon period: synchronizing channel (Synchronization channel) and beacon channel (beacon channel).Synchronizing channel comprises 30 synchronization burst (Sync burst), is used for carrying out superframe-synchronized; Beacon channel is used for sending bootstrap information (MAC beacon frame).The communication between devices phase is divided into two parts again: the take over period (Rx period) and reply the phase (Acknowledgement/No acknowledgement period, ANP).
The communication between devices phase is a slot length, comprises 32 modulation symbols, and is comprising the take over period of 8 symbol lengths and replying the phase of 8 symbol lengths, as shown in Figure 3.Can in the take over period, send RTS (Request to Send) request from protection equipment, main protecting equipment detects the RTS request in the take over period after, in the answer of making reception or refusal in the phase of replying subsequently.If main protecting equipment has received the RTS request, then in the phase of replying, send corresponding ACK (Acknowledgement) code word; If main protecting equipment has been refused the RTS request, then in the phase of replying, send NACK (No Acknowledgement) code word.
After the main protecting equipment initialization was accomplished, it needed broadcast beacon frame so that other protection equipment can listen to its existence, and contacts with it, relevant protection information reporting.The initialization transmission course of main protecting equipment continues 100 super frame period; In this process, have only main protecting equipment to send beacon frame, therefore need be set the communication between devices phase; On the corresponding synchronizing channel of the 31st time slot, send synchronization burst, send complete zero on the beacon channel.The structure of superframe is as shown in Figure 4 in the main protecting equipment initialization transmission course.
When the prior art main protecting equipment carried out the initialization transmission, the primitives interoperation between the high level of protocol stack, media access control sublayer and the physical layer was as shown in Figure 5, may further comprise the steps:
Step s501, high level passes to media access control sublayer to the information of beacon frame and control information through MLME-START-BEACON.request primitive.
Step s502, media access control sublayer returns confirmation through MLME-START-BEACON.confirm primitive to high level.
Step s503; Media access control sublayer receives that this request back generates media access control sublayer protocol Data Unit (MAC Protocol Data Unit according to the information and the control information of beacon frame; MPDU), set the state of transceiver after, send the request of sending through PD-DATA.request primitive to physical layer.
Step s504 after physical layer is received request, encodes the media access control sublayer protocol Data Unit; Generate physical layer protocol data unit (PHY Protocol Data Unit; PPDU) and fill the zero bit of 4 bytes, on beacon channel, send then, generate 31 synchronization burst simultaneously; On synchronizing channel, send, superframe structure is as shown in Figure 4.
In this flow process, the initialization transmission course of main protecting equipment continues 100 super frame period, if do not listen to main protecting equipment, this protection equipment just promotes to main protecting equipment and begins to send beacon frame; If listen to the existence of one or more main protecting equipments, this protection equipment can determine the beacon frame that becomes main protecting equipment and begin to send oneself, or becomes from protection equipment and attempt and one of them main protecting equipment is got in touch.
MLME-START-BEACON.request primitive has defined the transmission that two parameter S tart and Periodic come the mouse beacon frame, and is as shown in table 1:
The Control Parameter of table 1MLME-START-BEACON.request primitive
Title |
Type |
Desirable scope |
Describe |
Start (beginning) |
Boolean |
" very " or " vacation " |
If this parameter is made as " very ", then protection equipment begins to send beacon; Otherwise protection equipment stops to send beacon. |
Periodic (cycle) |
Boolean |
" very " or " vacation " |
If this parameter is made as " very ", then protection equipment sends the beacon in cycle; Otherwise protection equipment only sends a beacon.If the Start parameter is " vacation ", then ignore this parameter. |
Concerning main protecting equipment, if begin the beacon in the cycle of sending, Start then is set is " very ", Periodic is " very "; If stop the beacon in the cycle of sending, Start then is set is " vacation ".If main protecting equipment is only sent out a beacon, then the setting of Control Parameter is that Start is " very ", and Periodic is " vacation ".
Concerning from protection equipment, it can only send out a beacon continuously, so the setting of Control Parameter can only be that Start is " very ", and Periodic is " vacation ".
The shortcoming of prior art is: the superframe structure that in main protecting equipment initialization transmission course, sends does not comprise the communication between devices phase; Therefore the physical layer of main protecting equipment must be sent synchronization burst on the corresponding synchronizing channel of the 31st time slot, and on beacon channel, sends the zero bit of 4 bytes.But the physical layer of main protecting equipment does not also know that equipment whether from the initialization transmission course, cannot judge whether to comprise the communication between devices phase.
Summary of the invention
Embodiments of the invention provide a kind of method and apparatus of controlling the protection device initialize; Be used to discern main protecting equipment and whether be in the initialization transmit stage; Whether comprise the communication between devices phase in the control superframe structure, and the initialization transmission course of control main protecting equipment.
For achieving the above object, embodiments of the invention provide a kind of method of controlling the protection device initialize, may further comprise the steps:
Receive the information frame of the high level transmission of protection equipment;
Whether be in the initialization transmission course according to the said protection equipment of said information frame indication physical layer;
Wherein, said whether be in the initialization transmission course according to the said protection equipment of said information frame indication physical layer after, also comprise:
Said physical layer is made response to said indication;
Said when being designated as protection equipment and being in the initialization transmission course; Said physical layer structure is used for the superframe and the cycle transmission of initialization transmission; When the said initialization transmission that is designated as protection equipment had been accomplished, said physical layer stopped to be used for the cycle of the superframe of initialization transmission and sends.
Embodiments of the invention also provide a kind of equipment of controlling the protection device initialize, comprise higher layer entities, media access control sublayer management entity and PLME, comprising:
Higher layer entities is used for sending information frame to said media access control sublayer management entity;
The media access control sublayer management entity, whether the said protection equipment of information frame indication PLME that is used for sending according to said higher layer entities is in the initialization transmission course;
PLME is used for the indication according to said media access control sublayer management entity, and the cycle sends the superframe that is used for the initialization transmission or stops to send the superframe that is used for the initialization transmission.
Compared with prior art, embodiments of the invention have the following advantages:
According to the behavior of main protecting equipment in the initialization transmission course; Designed a kind of method whether main protecting equipment comprises the communication between devices phase of controlling; Make the transmission that to carry out control information between high level, media access control sublayer and the physical layer of equipment, the perfect structure of protocol stack.Primitive design through suitable has reduced the primitives interoperation between media access control sublayer and the physical layer, has improved the efficient of protocol stack.
Description of drawings
Fig. 1 is the architectural schematic of protection equipment in the prior art;
Fig. 2 is a superframe structure sketch map in the prior art;
Fig. 3 is the sketch map of communication between devices phase in the prior art;
Fig. 4 is the superframe structure sketch map of main protecting equipment initialization transmission in the prior art;
Fig. 5 is the schematic flow sheet of main protecting equipment initialization transmission in the prior art;
Fig. 6 is a kind of flow chart of controlling protection device initialize method in the embodiment of the invention one;
Fig. 7 is the schematic flow sheet of main protecting equipment initialization transmission in the embodiment of the invention one;
Fig. 8 is a kind of structural representation of controlling the equipment of protection device initialize in the embodiment of the invention two.
Embodiment
Below in conjunction with accompanying drawing and embodiment, execution mode of the present invention done further describing.
A kind of method of controlling the protection device initialize is provided in the embodiment of the invention one, as shown in Figure 6, may further comprise the steps:
Step s601, the information frame that the high level of reception protection equipment sends;
Whether step s602 is in the initialization transmission course according to this this protection of information frame indication physical layer equipment.
Below in conjunction with concrete application scenarios, protect the method for device initialize to be described in detail to above-mentioned control.
The high level of protection equipment is after accomplishing device initialize; If decision becomes main protecting equipment; Then prepare beginning initialization transmission course; High level passes to media access control sublayer to the information of beacon frame and control information through MLME-START-BEACON.request primitive, in this primitive, increases a Control Parameter Initialize, and is as shown in table 2.
The parameter of the MLME-START-BEACON.request primitive that table 2 increases
Title |
Type |
Span |
Describe |
Initialize |
Boolean |
True or false |
If this parameter is true, then main protecting equipment is prepared beginning initialization transmission course, does not comprise the communication between devices phase in the superframe structure.If this parameter is false, then main protecting equipment is accomplished the initialization transmission course, comprises the communication between devices phase in the superframe structure. |
[0050]
|
|
|
This parameter is only effective to main protecting equipment, must be set to vacation from protection equipment. |
After media access control sublayer is received the MLME-START-BEACON.request request; If the Initialize parameter is true; Start a timer T that length is aInitializationPeriod; And notice physical layer current device need generate synchronization burst from the initialization transmission course, the zero bit of 4 bytes of transmission on beacon channel on the synchronizing channel of the 31st corresponding time slot of communication between devices phase; If the Initialize parameter is that vacation or timer T are overtime, then notify physical layer equipment to accomplish the initialization transmission course.Therefore define a constant aInitializationPeriod such as table 3 at media access control sublayer, and PLME-INITIALIZE.request and PLME-INITIALIZE.confirm primitive.
The media access control sublayer constant that table 3 increases
Constant |
Describe |
Value |
aInitializationPeriod |
The time of main protecting equipment initialization transmission. |
100 super frame period |
PLME-INITIALIZE.request primitive is the media access control sublayer management entity generation of main protecting equipment and issues its PLME, requires physical layer whether to comprise the communication between devices phase.This primitive has a Start parameter, and is as shown in table 4.
The parameter of table 4PLME-INITIALIZE.request primitive
Title |
Type |
Span |
Describe |
Start |
Boolean |
True or false |
If this parameter is true, then do not comprise the communication between devices phase in the superframe structure, the synchronizing channel of the 31st time slot is sent synchronization burst, and beacon channel sends complete zero bit.If this parameter is false, then comprise the communication between devices phase in the superframe structure. |
[0057]After physical layer is received this primitive,, know that then main protecting equipment just preparing the initialization transmission, then according to form structure superframe and the cycle transmission of the content of the media access control sublayer protocol Data Unit of receiving according to Fig. 4 if the Start parameter be true; If the Start parameter is false, then dwelling period sends.
PLME-INITIALIZE.confirm primitive is the PLME generation of main protecting equipment and issues its media access control sublayer management entity, as the response of PLME-INITIALIZE.request primitive.The parameter of this primitive is as shown in table 5 below.
The parameter of table 5 PLME-INITIALIZE.confirm primitive
Title |
Type |
Span |
Describe |
Status |
Enumerate |
COMPLETE |
Requirement begins to send or stop to send the result of the superframe that is used for the initialization transmission |
In the present embodiment; When main protecting equipment carries out the initialization transmission; Primitives interoperation between the high level of protocol stack, media access control sublayer and the physical layer is as shown in Figure 7; For the process of main protecting equipment initialization transmission is described, this flow chart has only comprised main signalling interactive process, does not represent complete Signalling exchange flow process.
Step s701; High-rise through MLME-START-BEACON.request primitive; And (Control Parameter Initialize is for true in this flow chart in primitive, to carry Control Parameter Initialize; Be that main protecting equipment is prepared beginning initialization transmission course), pass to media access control sublayer to the information of beacon frame and control information.
Step s702, media access control sublayer returns confirmation through MLME-START-BEACON.confirm primitive to high level.
Step s703; Media access control sublayer judges that the Initialize parameter is true; Then start from the initialization transmission course through PLME-INITIALIZE.request primitive (the Start parameter is true in this primitive) notice physical layer current device; Need on the synchronizing channel of the 31st corresponding time slot of communication between devices phase, generate synchronization burst, on beacon channel, send the zero bit of 4 bytes.And the timer T that to start a length be aInitializationPeriod.
Step s704, physical layer is carried the Status parameter through PLME-INITIALIZE-confirm primitive in the primitive, send to media access control sublayer, as the response of above-mentioned steps s703.
Step s705; Media access control sublayer receives that information and the control information according to beacon frame generates the media access control sublayer protocol Data Unit behind the PLME-INITIALIZE.confirm; After setting the state of transceiver, send the request of transmission to physical layer through PD-DATA.request primitive.
Step s706 after physical layer is received request, returns acknowledge message through PD-DATA.confirm primitive to media access control sublayer.And encode the media access control sublayer protocol Data Unit, generate physical layer protocol data unit, and fill the zero bit of 4 bytes, on beacon channel, send then, generate 31 synchronization burst simultaneously, on synchronizing channel, send, superframe structure is as shown in Figure 4.
Step s707; If timer T is overtime; Promptly after physical layer has been sent 100 superframes; This moment, media access control sublayer sent PLME-INITIALIZE.request primitive (the Start parameter is false) to physical layer, and the transmission of notice physical layer protection device initialize is accomplished, and comprises the communication between devices phase in the superframe structure that sends afterwards.
Step s708, physical layer sends to media access control sublayer, as the response to step s707 through PLME-INITIALIZE-confirm primitive.
In the present embodiment,, be specially: in MLME-START-BEACON.request primitive, increase the Initialize parameter through in primitive, increasing Control Parameter; Increase the aInitializationPeriod parameter at media access control sublayer; Increase PLME-INITIALIZE.request primitive and PLME-INITIALIZE.confirm primitive; Make physical layer to obtain beacon frame and whether comprise the communication between devices phase, and whether the identification main protecting equipment is in or accomplishes the information of initialization transmission course according to above-mentioned parameter.
The method that the application of the invention the foregoing description provides; According to the behavior of main protecting equipment in the initialization transmission course; Designed a kind of method whether main protecting equipment comprises the communication between devices phase of controlling; Make the transmission that to carry out control information between high level, media access control sublayer and the physical layer of equipment, the perfect structure of protocol stack.Primitive design through suitable has reduced the primitives interoperation between media access control sublayer and the physical layer, has improved the efficient of protocol stack.
Embodiments of the invention two also provide a kind of equipment of controlling the protection device initialize, and are as shown in Figure 8, comprising:
Higher layer entities 10 is used for sending information frame to media access control sublayer management entity 20.This information frame can send through the MLME-START-BEACON.request primitives, also carries Control Parameter Initialize in the primitive, is used to represent whether main protecting equipment is in the initialization transmission course.
Media access control sublayer management entity 20, whether the information frame indication PLME protection equipment 30 that is used for sending according to higher layer entities 10 is in the initialization transmission course.This indication can be PLME-INITIALIZE.request primitive, and whether the indication physical layer comprises the communication between devices phase in the superframe that sends.
PLME 30 is used for sending the superframe that is used for the initialization transmission or stopping to send the superframe that is used for the initialization transmission according to the indication cycle of media access control sublayer management entity 20.
Wherein, media access control sublayer management entity 20 further comprises:
Timing unit 21, be used to notify PLME protection equipment to be in the initialization transmission course after, start a timer.
Indicating member 22; Whether 30 the protection equipment of information frame indication PLME that are used for sending according to higher layer entities 10 are in the initialization transmission course; And when timing unit 21 was overtime, the superframe that requires PLME 30 to stop to be used for the initialization transmission sent.
The equipment that the application of the invention the foregoing description provides; According to the behavior of main protecting equipment in the initialization transmission course; Designed a kind of method whether main protecting equipment comprises the communication between devices phase of controlling; Make the transmission that to carry out control information between high level, media access control sublayer and the physical layer of equipment, the perfect structure of protocol stack.Primitive design through suitable has reduced the primitives interoperation between media access control sublayer and the physical layer, has improved the efficient of protocol stack.
Through the description of above execution mode, those skilled in the art can be well understood to the present invention and can realize by the mode that software adds essential general hardware platform, can certainly pass through hardware, but the former is better execution mode under a lot of situation.Based on such understanding; The part that technical scheme of the present invention contributes to prior art in essence in other words can be come out with the embodied of software product; This computer software product is stored in the storage medium, comprises that some instructions are used so that an equipment is carried out the described method of each embodiment of the present invention.
More than disclosedly be merely specific embodiment of the present invention, still, the present invention is not limited thereto, any those skilled in the art can think variation all should fall into protection scope of the present invention.