Summary of the invention
The object of the present invention is to provide a kind of network processing system for wireless network and method thereof, with the detailed process that realizes that WiMAX inserts.
To achieve these goals, the invention provides a kind of networking processing method of wireless network access device, the terminal that is used under 802.16 agreements inserts, and comprising:
Step 1, the base station medium access control entity receives the range finding indication and resolves, and generates ranging response message and is sent to terminal;
Step 2, the terminal media access control entity receives ranging response message and resolves, and creates a TLV node queue, and the form of the parameter in the described ranging response message according to the TLV node joined in the described formation;
Step 3, whether the terminal media access control entity runs succeeded according to the TLV node parameter determining step 1 described ranging process in the described formation, if success, terminal is carried out basic capability negotiating and authentication registration, if unsuccessful, terminal restarts ranging process.
Described step 1 further comprises:
After step 1.1, base station physical entity received the CDMA sign indicating number of the initial ranging that terminal sends, according to default form structure range finding indication, and the indication of should finding range uploaded to medium access control entity;
Step 1.2, base station medium access control entity are resolved this range finding indication;
Step 1.3, the base station medium access control entity is provided with a storage organization, utilizes this storage organization to preserve the ranging information that is resolved to from described range finding indication;
Step 1.4, a base station ranging response TLV of medium access control entity initialization node queue according to the TLV node of the described ranging information structure ranging response of preserving in the described storage organization, and is saved in this ranging response TLV node queue;
Step 1.5, base station medium access control entity are taken out the TLV node from described ranging response TLV node queue, construct described ranging response message, are sent to terminal.
Described step 1.4 further comprises:
Step 2.1, base station medium access control entity be according to the ranging information in the described storage organization, and the side-play amount of time, frequency and the power that terminal need be adjusted joins in the described ranging response TLV node queue;
Step 2.2, the base station medium access control entity is judged whether success of range finding according to described time of step 2.1, frequency and power offset, and distance measuring states is generated the TLV node joins in the described ranging response TLV node queue;
Step 2.3, the base station medium access control entity, according to the CDMA ranging information of preserving in the described storage organization, the CDMA parameter TLV node of structure in the ranging response message, and join in the described ranging response TLV node queue.
Described step 3 further comprises:
Step 3.1, the terminal media access control entity is judged the type of message and the distance measuring states of described ranging response message, when if ranging response is aimed at replying of distance measurement request message, and distance measuring states is successfully the time, and execution in step 3.2 is if ranging response is the CDMA ranging response, and distance measuring states is successfully the time, execution in step 3.3 is if distance measuring states re-executes step 1 for unsuccessful;
Step 3.2 starts basic capability negotiating and authentication registration process;
Step 3.3, terminal is carried out ranging process.
Described step 3.3 further comprises:
Step 3.4, the TLV node is filled by TLV node queue of terminal media access control entity initialization, utilizes this TLV node queue structure distance measurement request, sends to the base station;
Step 3.5, the medium access control entity of base station is resolved this distance measurement request, if can resolve successfully, then each TLV in the distance measurement request message is saved in the TLV node queue according to the form of node; If resolve failure, then this distance measurement request message is ignored in the base station;
Step 3.6, ranging response message TLV node queue is preserved in one of base station medium access control entity initialization, the distance measurement request information of preserving then according to the node queue that generates in the step 3.5, the TLV node is replied in the structure range finding, and is saved in the described preservation ranging response message TLV node queue;
Step 3.7 is utilized described preservation ranging response message TLV node queue, constructs described ranging response message, is sent to terminal.
The step of basic capability negotiating described in the step 3 and authentication registration further comprises:
Step 4.1, structure basic capability negotiating request of terminal media access control entity and authentication registration request message, preservation is included in TLV type and the TLV number in described basic capability negotiating request and the authentication registration request message, and described basic capability negotiating request and authentication registration request message are sent to the base station;
Step 4.2, base station medium access control entity receive described basic capability negotiating request and authentication registration request message, and resolve, and TLV type and TLV number that parsing is obtained are saved in the index structure of an overall situation, are index with the connection identifier (CID;
Step 4.3, the base station medium access control entity carries out basic capability negotiating according to the TLV type of preserving, and generates to reply the required TLV of message, and structure is replied message, is sent to terminal.
Also comprise after the described step 4.3:
The terminal media access control entity is resolved described answer message according to TLV type of being preserved and number, judges whether the TLV type mates, and does not do wrong the processing if match.
In the described step 4.2, the base station medium access control entity is by operating the key assignments that obtains index structure to connection identifier (CID.
The invention also discloses a kind of networking treatment system of wireless network, the terminal that is used under 802.16 agreements inserts, the base station medium access control entity further comprises one first parsing module, be used for the range finding indication that receives is resolved, and the generation ranging response message is sent to terminal;
The terminal media access control entity further comprises:
One second parsing module is used to resolve described ranging response message;
One TLV node queue is provided with module, is used for the parameter of the described ranging response message form according to the TLV node is joined in the TLV node queue;
One control module, be used for judging the whether success of ranging process that described first parsing module carries out according to the TLV node parameter of described TLV node queue, if success, terminal is carried out basic capability negotiating and authentication registration, if unsuccessful, terminal restarts ranging process.
Described first parsing module further comprises:
Receiver module is used for the range finding indication that the base station medium access control entity receives the default form that physical layer entity uploads;
The dissection process module is used to resolve described range finding indication;
Memory module is used for according to the storage organization that is provided with, and preserves the distance measurement request information that obtains of resolving;
Formation is provided with module, is used for TLV node queue of initialization, according to the distance measurement request information structuring TLV node of preserving in the described storage organization, to fill described TLV node queue;
The ranging response message constructing module is used for taking out the TLV node from TLV node queue, constructs described ranging response message, is sent to terminal.
The terminal media access control entity also comprises basic capability negotiating and authentication registration module, be used to construct basic capability negotiating request and authentication registration request message, and preserve TLV type and the TLV number that is included in described basic capability negotiating request and the authentication registration request message, described basic capability negotiating request and authentication registration request message are sent to the base station.
The base station medium access control entity also comprises the parsing storage module, be used to receive described basic capability negotiating request and authentication registration request message, resolve, TLV type and TLV number that parsing is obtained are saved in the concordance list of an overall situation, are index with the connection identifier (CID.
The base station medium access control entity also comprises replys the message constructing module, is used for the table according to the described global index of described connection identifier (CID index, holds consultation according to the TLV type of preserving, and generates and replys the required TLV of message, and structure is replied message, is sent to terminal.
The invention discloses and realize under 802.16 agreements specific implementation that wireless network inserts.The present invention adopts the mode of TLV formation to preserve each TLV parameter in the networking control messages, and each the TLV parameter all form of a node joins in the formation.Such storage organization can add in the networking control messages or deletion TLV parameter neatly, makes the networking processing procedure more efficient.
Embodiment
Below cooperate embodiment and accompanying drawing, describe technical characterictic of the present invention in detail.
The invention provides under 802.16 agreements, a kind of network processing system for wireless network and method thereof particularly relate to the optimization process and the storage of each message in the network process.
According to the regulation of 802.16 agreements, networking need comprise range finding, basic capability negotiating and authentication registration several steps, and the overall flow figure of networking processing method as shown in Figure 1 among the present invention.
When finish synchronously terminal and base station, when preparing access of radio network, terminal sends CDMA (Code Division Multiple Access, the code division multiple access) sign indicating number (step 101) of initial ranging to the base station.
After this CDMA sign indicating number is received in the base station, carry out the CDMA ranging process, and send ranging response (Ranging-Response, RNG-RSP) message that comprises the CDMA sign indicating number to terminal.
After terminal is received this RNG-RSP message that comprises the CDMA sign indicating number, according to this RNG-RSP message content, send initial ranging request message (Ranging-Request to the base station, RNG-REQ) message, after RNG-REQ message is received in the base station, be terminal distribution basic linkage identifier (Basic Connection Identifier, Basic CID) and main managing concatenated identifier (Primary management ConnectionIdentifier, Primary CID) (step 102).
802.16 the ranging process of definition on the one hand is to obtain the process that correct time deviation and power are adjusted, the various parameters of physical layer (PHY) when promptly being used for adjusting transmission, for example required power that carries out, the time partially and parameter such as frequency deviation adjustment; On the other hand, be that the base station is the process of terminal distribution link identifiers, comprise the process of basic linkage identifier and main managing concatenated identifier.
The described ranging response message of terminal parses, and after judging that distance measuring states in this ranging response message is designated successfully, information in this ranging response message that the storage of terminal media access control entity obtains, and startup basic capability negotiating and authentication registration process, send basic capability negotiating request (SS BasicCapability-Request to the base station, SBC-REQ), register requirement (Registration-Request, REG-REQ) networking control messages (step 103).
After the base station receives SBC-REQ, REG-REQ message, through handling, to terminal return basic capability negotiating response (SS Basic Capability-Response, SBC-RSP), registration response (Registration-Response, REG-RSP) message (step 104).
Thereby realized range finding, basic capability negotiating and the authentication registration of 802.16 regulations, and then realized the access procedure of travelling carriage.
Described SBC-REQ message is used for terminal current basic capacity information is sent to the base station, and carries out basic capability negotiating with the base station, to determine the executable function of both sides.
Described SBC-RSP message is used for base station notice terminal through after consulting, and the basic capacity information of being supported is to finish basic capability negotiation process.
Described REG-REQ message is used for terminal and initiates the authentication registration process, utilizes this process can make terminal access authentication, access of radio network.
Described REG-RSP message is used for the information that base station notice endpoint registration verification process is supported, to finish verification process.
In the present invention, adopted the mode of TLV formation to preserve each TLV parameter in the networking control messages especially, each TLV parameter all joins in the formation with the form of a node, to be constructed into network control system message more flexibly.
Below describe the implementation procedure of each step in detail.Be illustrated in figure 2 as base station of the present invention and receive process chart after the CDMA sign indicating number, particularly relate to step 101,102 specific implementation process.
Step 201, terminal send the CDMA sign indicating number of initial ranging to the base station;
Step 202, after the base station physical entity receives this CDMA sign indicating number, according to default form structure range finding indication, and the indication of should finding range uploads to medium access control entity, medium access control entity is resolved this range finding indication, and a storage organization is set, utilize this storage organization to preserve and resolve the CDMA ranging information that obtains;
Described default form is relevant with interface between media access control layer entity and the physical layer entity, and the form that defines between different media access control layer entities and the different physical layer entity can be different;
Wherein, if medium access control entity is resolved this primitive success, then preserve the necessary information in this range finding indication, the frame number that comprises this CDMA code word, sends the employed symbol offset of this CDMA sign indicating number, subchannel offset and receive this CDMA primitive message place, and execution in step 203, if medium access control entity is resolved this range finding indication failure, will not process;
Step 203, (Type/Length/Value, TLV) node queue construct the TLV node according to the CDMA ranging information of preserving in the step 202 to type of base station medium access control entity initialization, and this TLV node is joined in this node queue;
Step 204 is taken out the TLV nodal information from TLV node queue, according to form structure ranging response (RNG-RSP) message of 802.16 agreements regulation, and send to terminal.
Comprise the content that all pressures of stipulating in 802.16 agreements comprise in described ranging response (RNG-RSP) message, concrete have emission power adjustment frequently, frequency deviation skew adjust, the time whole, the CDMA sign indicating number relevant information of transposition wilfully, and distance measuring states.
Step 205, the base station sends this ranging response (RNG-RSP) message to terminal.
Further comprise in the described step 203:
Step 2.1, base station medium access control entity be according to the ranging information in the described storage organization, and the side-play amount of time, frequency and the power that terminal need be adjusted joins in the described ranging response TLV node queue;
Step 2.2, the base station medium access control entity is judged whether success of range finding according to described time of step 2.1, frequency and power offset, and distance measuring states is generated the TLV node joins in the described ranging response TLV node queue;
Step 2.3, the base station medium access control entity, according to the CDMA ranging information of preserving in the described storage organization, the CDMA parameter TLV node of structure in the ranging response message, and join in the described ranging response TLV node queue;
Be illustrated in figure 3 as of the present inventionly, particularly relate to and send distance measurement request (RNG-REQ), ranging response (RNG-RSP) message in the step 102,103 flow chart handled of range finding message, and the processing procedure that starts basic capability negotiating.
Step 301, terminal receive this ranging response (RNG-RSP) message;
Step 302, terminal media access control entity are resolved this ranging response (RNG-RSP) message, and each TLV information that parsing is obtained, and are saved in the TLV node queue according to the form of TLV node;
Step 303, the TLV information that writes down in the TLV node queue that terminal media access control entity treatment step 302 generates, determine the ranging response type of ranging response (RNG-RSP) message according to these information, if ranging response is the CDMA ranging response, and the distance measuring states in the ranging response is successfully the time, execution in step 305 if distance measuring states is unsuccessful, then changes step 101 over to and continues to send the CDMA sign indicating number to the base station; When if ranging response is aimed at replying of distance measurement request (RNG-REQ) message, execution in step 304;
In described ranging response (RNG-RSP) the message TLV node, if comprise the relevant TLV of CDMA sign indicating number, then this ranging response message is the CDMA ranging response; If comprise the MAC Address of terminal, then this response message is to be directed to replying of initial ranging request message;
Step 304 starts basic capability negotiation process, continues execution in step 401;
Step 305, terminal is proofreaied and correct corresponding parameters according to the adjustment amount of appointment in the ranging response (RNG-RSP), simultaneously, TLV node queue of terminal initialization, this TLV node queue is used for preserving the employed TLV node of structure RNG-REQ message, terminal is according to this TLV node queue then, and structure distance measurement request (RNG-REQ) message sends to the base station;
Described TLV node should comprise the parameter that all 802.16 agreements regulations must occur, and comprises the MAC Address of terminal and the version number of MAC;
Step 306, after the base station medium access control entity receives distance measurement request (RNG-REQ) message of terminal transmission, resolve this message,, then each TLV in distance measurement request (RNG-REQ) message is saved in the TLV node queue according to the form of node if resolve successfully; If resolve failure, then this distance measurement request (RNG-REQ) message is ignored in the base station;
Step 307, formation of preserving ranging response message TLV node of base station medium access control entity initialization, distance measurement request (RNG-REQ) information of preserving then according to the node queue that generates in the step 306, (RNG-RSP) TLV node is replied in the structure range finding, and is saved in the formation of described preservation ranging response message TLV node.
Step 308, base station medium access control entity are taken out each TLV node from the formation of described preservation ranging response message TLV node, and according to joint structure ranging response (RNG-RSP) message body, and send to terminal;
Figure 4 shows that basic capability negotiating of the present invention and registration message process chart, particularly relate to step 103,104 specific implementation process.
Step 401, the terminal media access control entity is obtained configuration parameter from system configuration parameter;
Step 402, terminal media access control entity judge whether exist in this configuration parameter the network control system of being constructed into message the TLV information that must comprise, if, execution in step 403, if not, execution in step 401 is to obtain configuration parameter again;
The minimal set of the described TLV information that must comprise is a kind of standard known technology from 802.16 agreements, so describes no longer one by one among the present invention.
Step 403, terminal media access control entity are safeguarded a global memory block, and the type (type) of all TLV information that will send is saved in this memory block;
Step 404, the terminal media access control entity is according to the TLV type of preserving, the networking control messages of constructing concurrent make arrangements for his funeral end basic capability negotiating request (SBC-REQ) and authentication registration request (REG-REQ) is to the base station, and the TLV number that comprises in the message is saved in the global variable;
Step 405, after the base station medium access control entity receives basic capability negotiating request (SBC-REQ) and authentication registration request (REG-REQ) networking control messages, resolve, and TLV type and the TLV number that parsing obtains is saved in the index structure of an overall situation;
(Connection Identifier CID) is index to described index structure, and connection identifier (CID is carried out bit manipulation, can obtain index value, thereby obtains described TLV type and TLV number with connection identifier (CID.
Step 406, the base station medium access control entity obtains TLV type and TLV number information according to connection identifier (CID in described index structure, and starts negotiations process;
Step 407 with the TLV information package that consults, generates terminal basic capability negotiating response (SBC-RSP) and authentication registration response (REG-RSP) message, and sends to terminal.
Step 408, after the terminal media access control entity is received basic capacity negotiate response (SBC-RSP) and authentication registration response (REG-RSP) message, should reply message according to the TLV information analysis of preserving in the step 403, if the TLV type does not match, be considered as error message, and carry out fault processing.
For realizing above-mentioned flow process, the invention also discloses a kind of networking treatment system 500 of wireless network, its concrete structure schematic diagram sees also shown in Figure 5.
In base station side, the base station medium access control entity further comprises one first parsing module 501, is used for performing step 201-205, that is, the range finding indication that receives is resolved, and the generation ranging response message is sent to terminal;
Described first parsing module 501 further comprises:
Receiver module 5011 is used for the range finding indication that the base station medium access control entity receives the default form that physical layer entity uploads;
Described dissection process module 5012 is used to resolve described range finding indication;
Memory module 5013 is used for according to the storage organization that is provided with, and preserves the distance measurement request information that obtains of resolving;
Formation is provided with module 5014, is used for TLV node queue of initialization, according to the distance measurement request information structuring TLV node of preserving in the described storage organization, to fill described TLV node queue;
Ranging response message constructing module 5015 is used for taking out the TLV node from TLV node queue, constructs described ranging response message, is sent to terminal.
In end side, the terminal media access control entity comprises that further one second parsing module 502 and a TLV node queue are provided with module 503, with performing step 302.One control module 504 is with performing step 303.One range finder module 505 is used for performing step 305-308.
Described second parsing module 502 is used to resolve described ranging response message;
Described TLV node queue is provided with module 503, is used for the parameter of the described ranging response message form according to the TLV node is joined in the TLV node queue;
Described control module 504, be used for judging the whether success of ranging process that described first parsing module carries out according to the TLV node parameter of described TLV node queue, if success, terminal is carried out basic capability negotiating and authentication registration, if unsuccessful, terminal restarts ranging process.
Described range finder module 505 is used to construct distance measurement request message and is sent to the base station, starts ranging process.
The terminal media access control entity also comprises basic capability negotiating and authentication registration module 506, be used to realize 401-403, promptly, structure basic capability negotiating request and authentication registration request message, and preserve TLV type and the TLV number that is included in described basic capability negotiating request and the authentication registration request message, described basic capability negotiating request and authentication registration request message are sent to the base station.
The base station medium access control entity also comprises resolves storage module 507, be used for performing step 404,405, promptly, receive described basic capability negotiating request and authentication registration request message, resolve, TLV type and TLV number that parsing is obtained are saved in the concordance list of an overall situation, are index with the connection identifier (CID.
The base station medium access control entity also comprises replys message constructing module 508, be used for performing step 406,407, promptly, according to the described global index of described connection identifier (CID index table, hold consultation according to the TLV type of preserving, generate and reply the required TLV of message, structure is replied message, is sent to terminal.
The invention discloses and realize under 802.16 agreements specific implementation that wireless network inserts.The present invention adopts the mode of TLV formation to preserve each TLV parameter in the networking control messages, and each TLV parameter all joins in the formation with the form of node.Such storage organization can add in the networking control messages or deletion TLV parameter neatly, makes the networking processing procedure more efficient.
Certainly; the present invention also can have other various embodiments; under the situation that does not deviate from spirit of the present invention and essence thereof; those of ordinary skill in the art work as can make various corresponding changes and distortion according to the present invention, but these corresponding changes and distortion all should belong to the protection range of the appended claim of the present invention.