Summary of the invention
Purpose of the present invention is exactly to provide a kind of reliable multicast system and control method thereof that can realize the wireless network of reliable multicast service under terminal fast moving, the frequent scene of switching for the defective that overcomes above-mentioned prior art existence.
Purpose of the present invention can be achieved through the following technical solutions:
The reliable multicast system of wireless network, it is characterized in that, this system comprises gateway controller, base station, car-mounted terminal, and described gateway controller comprises at least two groups, described every networking gateway controller is connected with one group of base station at least, and described car-mounted terminal successively is connected with each base station communication.
The control method of the reliable multicast system of wireless network is characterized in that, the method comprises:
(1) interpolation of multicast service group;
(2) deletion of multicast service group;
(3) attribute configuration of multicast service group;
(4) sequence number is synchronous between controller;
(5) weight of base station and terminal is synchronous;
(6) terminal is switched in identical control;
(7) switch between the different controls of terminal.
The interpolation of described multicast service group may further comprise the steps:
(1) the controller gateway adds service groups, upgrades local service group information;
(2) controller sends the service groups broadcast message to the base station;
(3) base station receives broadcasting, upgrades the local service group according to broadcasting, the local multicast service group of periodic broadcast;
(4) terminal receives the multicast service group broadcasting of base station, preserves broadcasting group information.
The deletion of described multicast service group may further comprise the steps:
(1) the controller gateway adds service groups, upgrades local service group information;
(2) controller sends the service groups broadcast message to the base station;
(3) base station receives the service groups broadcast message, upgrades local multicast service group information, the local multicast service group of periodic broadcast;
(4) terminal receives the multicast service group broadcasting of base station, preserves broadcasting group information.
The attribute configuration of described multicast service group may further comprise the steps:
(1) the controller gateway adds service groups, upgrades local multicast service group information;
(2) controller sends the service groups multicast information to the base station;
(3) base station receives the service groups broadcast message, upgrades local multicast service group information, the local multicast service group of periodic broadcast;
(4) terminal receives the multicast service group broadcasting of base station, preserves broadcasting group information.
Sequence number may further comprise the steps synchronously between described controller:
(1) from the controller cycle initiation synchronously once, send synchronization request to master controller from controller;
(2) master controller is numbered multicast message according to the reception order, and described Serial Number Range is from 1~0xFFFFFFFF;
(3) each controller is preserved nearest N message and characteristic value that receives multicast message;
(4) master controller is numbered multicast message, and will number and the characteristic value of message is included in and sends to other controllers in the sync response, and it is consistent with master controller that other controllers are adjusted local sequence number according to characteristic value;
(5) if not synchronous with master controller from controller, then send immediately a synchronization request to master controller, require to obtain up-to-date sequence number and characteristic value corresponding relation, if can't obtain response always, then periodically send synchronization request;
(6) controller of not going up synchronously still sends multicast message, and it is not synchronous with master controller to indicate this multicast message.
The weight of described base station and terminal may further comprise the steps synchronously:
(1) base station notification terminal equipment in broadcasting packet, whether the controller of one's respective area is synchronous with the master controller multicast;
(2) not synchronous with master controller if terminal is understood the controller of base station from broadcasting, then in the terminal serial number synchronization request, send local nearest characteristic value and sequence number corresponding relation to the base station;
(3) base station receives request, selects to begin to send message, the corresponding relation between notification terminal base station sequence number and the terminal serial number from the sequence number that disconnects according to characteristic value;
(4) corresponding relation that returns according to response of terminal, receive data.
Described terminal is switched in identical control and be may further comprise the steps:
(1) terminal receives base station broadcast, obtains the information of multicast group from broadcasting, the broadcasting group that decision will add;
(2) determine switching time according to default base station handoff algorithms;
(3) terminal sends access and is indicated to new base station, carries the information of the multicast group of adding in the described access indication, the reception test serial number of the next expectation of each multicast group;
(4) base station receives request, returns the access response, and begins to send multicast message;
(5) terminal receives the access response of new base station, sends to disconnect to be indicated to old base station;
(6) old base station receives the request of disconnection, stops to send data, sends to disconnect response to terminal;
(7) terminal receives the disconnection response of old base station.
Switch between the different controls of described terminal and may further comprise the steps:
(1) terminal receives base station broadcast, obtains the information of multicast group from broadcasting, the broadcasting group that decision will add, and judge whether that from broadcast message current controller and master controller are synchronous;
(2) determine switching time according to default base station handoff algorithms;
(3) send access and be indicated to new base station, carry the information of the multicast group of adding in the access indication, if controller and master controller are synchronous under the new base station, then add the reception test serial number of next expectation in each multicast group information, if asynchronous, then send next expectation sequence number, and the message characteristic value that receives at last;
(4) new base station receives multicast and joins request, if affiliated controller and master controller are synchronous, then begin to send multicast message from next one expectation sequence number, and send immediately an access response to terminal, if affiliated controller and master controller are asynchronous, then according to the sequence number and the characteristic value corresponding relation that receive, search local characteristic value and sequence number table, if there is coupling then to send a response to terminal, comprise synchronous indication in the described response, the multicast message sequence number that the next one begins to send and the multicast message that begins to send, if coupling is not then returned response to terminal, and comprises asynchronous sign, the multicast message sequence number that the next one begins to send and the multicast message that begins to send;
(5) terminal receives the access response of new base station, begins to receive multicast message from new base station;
(6) terminal sends to disconnect and is indicated to old base station;
(7) terminal receives the disconnection response of old base station.
Described N message and characteristic value that receives multicast message is 100 message and characteristic values that receive multicast message.
Compared with prior art, the present invention can realize reliable multicast service under terminal fast moving, the frequent scene of switching, and in addition, the multilevel network mode that gateway controller of the present invention adds the base station can satisfy the needs of large-scale network-estabilishing.
Embodiment
As shown in Figure 1, the reliable multicast system of wireless network of the present invention comprises mobile node (being terminal MS), base station (BS), gateway controller.The major function of said system part is:
Network controller multicast module realizes following functions:
(1) multicast service group management: the configuration of service groups quality, service groups are added and deletion, and service groups is broadcast to base station and terminal in system;
(2) multicast service classification: according to the service groups attributive classification.
Multicast module in base station realizes following functions:
(1) multicast message buffering: be the unit buffering according to the multicast service group.Buffer size arranges in the service groups attribute;
(2) multicast message sends: the indication according to the terminal terminal starts and stops to send multicast message, can select the sequence number of appointment to send multicast message according to sequence number; Can send according to the multicast message of the message characteristic match selection appointment of message;
(3) the multicast message message is mapped to unicast message;
(4) management of multicast service group: service groups quality configuration; Service groups is added and deletion; Service groups is broadcast to terminal.
Terminal multicast module realizes following functions:
(1) multicast message buffering;
(2) multicast message ordering and re-transmission;
(3) switch: the multicast message sequence number is notified to the purpose base station, starts the multicast message transmission; If exist asynchronously between the controller, then the characteristic matching value in the anti-pass message is to the base station, judged the original position of sequence number according to the characteristic matching value by the base station;
(4) management of multicast service group: add or release specific transactions group.
So-called message characteristic value refers to be used for to distinguish one group of numerical value with corresponding different messages.For example use IP Identification field for the IP message, and Header Checksum field combination is distinguished: with Identification, Header Checksum is as 16 signless integers, the characteristic of correspondence value is 32 signless integers (Identificaiton<<16)+Header Checksum, a number after namely last number moves to left 16 and adds.For practical application, it is very little for same receiving node the identical probability of different message characteristic values to appear, can ignore.
In wireless network, switch in the process of different base station in terminal, because the decay of wireless signal occuring, perhaps send message between the new and old base station asynchronous, cause multicast message to be lost or out of order, therefore the quality of service degradation occurs, directly have influence on user's business experience.This patent has adopted new way of innovation, has proposed a kind of reliable multicast system and method for wireless network, can address the above problem fully.
Sequence number is used for guaranteeing the according to the order of sequence delivery of message and packet loss not synchronously, and the basic ideas that sequence number comprises synchronously are:
When switching between the base station of terminal under same controller, to message numbering, guarantee that the message that switches between the base station sends to terminal according to the order of sequence continuously by same controller.When switch the base station that terminal is striden two controllers, rely on the sequence number synchronization mechanism to guarantee that sequence number is consistent between two controllers, thereby message is not lost when guaranteeing that the base station is switched, and does not repeat.
The critical process that sequence number realizes synchronously comprises:
(1) between the controller synchronously;
(2) weight between base station and the terminal is synchronous.
In order to keep transparent to the upper strata multicast service, guarantee simultaneously the data sequencing problem that terminal is switched between a plurality of base stations or controller, use the characteristic value of message as the criterion of message uniqueness.According to this criterion, the synchronous sequence number of message between each controller; Also can be used for test serial number between synchronising base station and the terminal, thereby guaranteeing no matter terminal is striden the base station or striden router can guarantee to deliver according to the order of sequence.Even after step-out between the controller, still can be synchronous with coupling acquisition sequence number synchronously by the message characteristic value between terminal and the base station.
Multicast service group interpolation flow process is as follows:
1) the controller gateway adds service groups, upgrades local service group information
2) controller sends the service groups broadcast message to the base station
3) base station receives broadcasting, upgrades the local service group according to broadcasting; The local multicast service of periodic broadcast
4) terminal receives the multicast service group broadcasting of base station, preserves broadcasting group information
Multicast service group deletion flow process is as follows:
1) the controller gateway adds service groups, upgrades local service group information
2) controller sends the service groups broadcast message to the base station
3) base station receives the service groups broadcast message, upgrades local multicast service group information, the local multicast service group of periodic broadcast
4) terminal receives the multicast service group broadcasting of base station, and preservation broadcasting group information multicast service group attribute configuration flow process is as follows:
1) the controller gateway adds service groups, upgrades local multicast service group information
2) controller sends the service groups multicast information to the base station
3) base station receives the service groups broadcast message, upgrades local multicast service group information, the local multicast service group of periodic broadcast
4) terminal receives the multicast service group broadcasting of base station, and the sequence number synchronization mechanism of preserving between broadcasting group information controller is as follows:
1) initiates synchronously once from controller cycle (for example every 10s): send synchronization request to master controller from controller.
2) master controller is numbered multicast message according to the reception order, and Serial Number Range is from 1-0xFFFFFFFF.
3) each controller is preserved the characteristic value that receives recently multicast message, and each service groups is preserved a plurality of (for example 100) message according to configuration attribute.
4) master controller is numbered multicast message, and will number and the characteristic value of message is included in and sends to other controllers in the sync response; It is consistent with master controller that other controllers are adjusted local sequence number according to characteristic value.
5) if not synchronous with master controller from controller, then send immediately a synchronization request and exist to master controller; Require to obtain up-to-date sequence number and characteristic value corresponding relation.If can't obtain response always, then periodically send synchronization request.
6) controller of not going up synchronously still sends multicast message.But it is not synchronous with master controller to indicate this multicast message.
The heavy synchronization mechanism of base station and terminal is roughly as follows:
1) base station notification terminal equipment in broadcasting packet: whether the controller of one's respective area is synchronous with the master controller multicast.
2) not synchronous with master controller if terminal is understood the controller of base station from broadcasting: then in the terminal serial number synchronization request, send local nearest characteristic value and sequence number corresponding relation to the base station.
3) base station receives request, selects to begin to send message, the corresponding relation between notification terminal base station sequence number and the terminal serial number from the sequence number that disconnects according to characteristic value.
4) corresponding relation that returns according to response of terminal, receive data.
Switching flow under the same controller is as follows:
1) terminal receives base station broadcast, obtains the information of multicast group from broadcasting, the broadcasting group that decision will add.
2) determine switching time according to the base station handoff algorithms
3) terminal sends access and is indicated to the new base station that gets; Carry in the access indication and add to get the information of multicast group, the reception test serial number of the next expectation of each multicast group;
4) base station receives request, returns the access response, and begins to send multicast message;
5) terminal receives new base station and must access response; Send to disconnect and be indicated to old base station;
6) old base station receives the request of disconnection, stops to send data; Send and disconnect response to terminal;
7) terminal receives old base station and must disconnect response.
Switching flow is as follows between the base station under the different controllers:
1) terminal receives base station broadcast, obtains the information of multicast group from broadcasting, the broadcasting group that decision will add; And judge whether that from broadcast message current controller and master controller are synchronous;
2) determine switching time according to the base station handoff algorithms;
3) send cut-grafting and enter to be indicated to the new base station that gets; Carry in the access indication and add to get the information of multicast group, if controller and master controller are synchronously then add the next reception test serial number of expecting in each multicast group information under the new base station; If asynchronous, then send next expectation sequence number, and the message characteristic value that receives at last;
4) new base station receives multicast and joins request, if affiliated controller and master controller are synchronous, then begins to send multicast message from next one expectation sequence number, and sends immediately an access and respond to terminal; If affiliated controller and master controller are asynchronous, then according to the sequence number and the characteristic value corresponding relation that receive, search local characteristic value and sequence number table, if coupling arranged then send a response to terminal, synchronous indication and the next multicast message sequence number that begins to send have been comprised in the response, the multicast message that begins to send; If coupling is not equally returned response to terminal yet, but comprise asynchronous sign and the next multicast message sequence number that begins to send, and the multicast message that begins to send;
5) terminal receives new base station and must access response, begins to receive multicast message from new base station;
6) terminal sends to disconnect and is indicated to old base station.
Terminal receives old benchmark must disconnect response.
1) carries out sequence number between the gateway controller synchronous; The multicast service group that each is synchronous is distributed a master controller and some from controller, carries out sequence number by sync message between the master-slave controller synchronous.
When 2) terminal switches to new base station from old base station, report expectation test serial number and current characteristic value to new base station.If be synchronous between the new and old base station, new base station is according to reporting sequence number to determine the initial of subsequent packet.If be nonsynchronous between the new and old base station, new base station determines the initial of subsequent packet according to characteristic value.
For the IP message, adopt Identification field associating Header Checksum field as the characteristic value of distinguishing different messages.