Background technology
Multicast is a kind of network data transmission technology, is with a wide range of applications.The advantage of multicast is fully reflected in following scene: a sender transmits identical data for simultaneously a plurality of recipients, only need draw a identical data packet.Be that multicasting technology has improved data-transmission efficiency, reduced backbone network and congested possibility occurred.For example,, when different users need watch identical program,, only need draw a video flow and get final product, can eliminate the flow redundancy, save greatly with the trip device bandwidth to the user by multicasting technology in the video request program field.Clean culture then needs for each user draws a video flow, and this will cause taking a large amount of bandwidth of upstream equipment, waste bandwidth resource.
Prior art provides multicast to duplicate (Multicast copy by-session) technical solution by the user.In this technical solution, respond the same video flowing of a plurality of user's program requests, (Broadband Remote Access Server, BRAS), BRAS duplicates a multicast video streams for each user to arrive Broadband Remote Access Server from the multicast video streams of upper layer network.Be that multicast replication takes place directly multicast message to be copied in each user's the session by BRAS on the BRAS, send to the user.When a user of this multicast group of program request left this multicast group, BRAS can send a group-specific query (Group-Specific Query) message, and whether inquiry also has other these programs of user's program request.The user who continues this program of program request responds the group-specific query message, and sends user's request message of reaching the standard grade to BRAS.Receive that the user reaches the standard grade behind the request message, BRAS will brush the digestion period of multicast group.If there is not this program of user's program request, through time digestion period, this multicast group will be worn out.
The inventor finds to exist in the prior art following problem:
Duplicate scene at multicast by the user, when the multicast user left multicast group, in order to safeguard other users' of this multicast group cast communication, BRAS need send the group-specific query message.This will cause:
Need consume the system resource of BRAS 1.BRAS generate the group-specific query message, and then (when a large number of users left multicast group, BRAS equipment need send a large amount of group-specific query messages to increase the weight of the load of BRAS.In addition, the group-specific query message sends (the purpose MAC of the group-specific query message that BRAS sends is user's clean culture MAC) in the mode of clean culture, after the multicast user leaves multicast, BRAS equipment need be constructed a group-specific query message for each member of multicast group, and is very big to the impact of BRAS equipment)
2. the group-specific query message sends to the user in the mode of clean culture, the group-specific query message that BRAS sends has been transmitted less than other program requests the user of this multicast group, and (the purpose MAC of the group-specific query message that BRAS sends is user's clean culture MAC, the group-specific query message has been transmitted less than other program requests the user of this multicast group, therefore, other program requests the user of this multicast group can not perceive BRAS and send to multicast user's group-specific query message and make response.)
3. the group-specific query message arrives downstream network, increases the weight of downstream network load (when a large number of users left multicast group, BRAS equipment can send a large amount of group-specific query messages on downstream network, has increased the downstream network burden)
4. the request message because the user that BRAS needs the processed group broadcasting user to send reaches the standard grade, when a large number of users leaves multicast group, BRAS need send a large amount of group-specific query messages, further increased the weight of the load of BRAS, if at this moment user's request program of reaching the standard grade is arranged, the unable timely processing of BRAS, this will cause the certain customers can't successful request program
Summary of the invention
On the one hand, the embodiment of the invention provides a kind of Broadband Remote Access Server BRAS method for multicast communication, solved multicast and duplicated scene by the user, when the multicast group user leaves multicast group, be the cast communication of maintenance with other users of multicast group, BRAS need send the technical problem of group-specific query message, helps reducing the load of BRAS and downstream network.
A kind of Broadband Remote Access Server BRAS method for multicast communication, BRAS is operated in the replication mode by the user, comprising:
Receive the first user offline request message, comprise first user's the Internet Protocol IP address and first multicast group address in the first user offline request message;
Inquire about whether comprise first user index number in the BRAS user's registration information corresponding with first multicast group address, first user index is number corresponding one by one with first user's IP address;
In a BRAS user's registration information, comprise under the situation of first user index number, delete first user index number in the BRAS user's registration information.
On the other hand, the embodiment of the invention provides a kind of BRAS cast communication device, solved multicast and duplicated scene by the user, when the multicast group user leaves multicast group, be the cast communication of maintenance with other users of multicast group, BRAS need send the technical problem of group-specific query message, helps reducing the load of BRAS and downstream network.
A kind of BRAS cast communication device, BRAS is operated in the replication mode by the user, comprising:
The first user offline request message receiving element is used to receive the first user offline request message, comprises first user's the Internet Protocol IP address and first multicast group address in the first user offline request message;
Query unit is used for inquiring about a BRAS user's registration information corresponding with first multicast group address and whether comprises first user index number, and first user index is number corresponding one by one with first user's IP address;
Delete cells is used for comprising under the situation of first user index number at a BRAS user's registration information, deletes first user index number in the BRAS user's registration information.
As seen, the BRAS method for multicast communication and the device that provide by the embodiment of the invention, solved multicast and duplicated scene by the user, when the multicast group user leaves multicast group, be the cast communication of maintenance with other users of multicast group, BRAS need send the technical problem of group-specific query message, helps reducing the load of BRAS and downstream network.
Embodiment
For the purpose, technical scheme and the advantage that make the embodiment of the invention clearer, below in conjunction with the accompanying drawing in the embodiment of the invention, technical scheme in the embodiment of the invention is clearly and completely described, obviously, described embodiment is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills belong to the scope of protection of the invention not making the every other embodiment that is obtained under the creative work prerequisite.
Embodiment one:
The embodiment of the invention provides a kind of BRAS method for multicast communication, and BRAS is operated in by user's replication mode (Multicast copy by-session), and referring to Fig. 1, Fig. 1 is the BRAS method for multicast communication flow chart that the embodiment of the invention provides; This method comprises:
101: receive the first user offline request message, comprise first user's Internet Protocol (Internet protocol, IP) address and first multicast group address in the first user offline request message;
When the specific implementation of the embodiment of the invention, multiple implementation can be arranged, the present invention does not do concrete qualification.For example: BRAS receive that first user sends based on Internet Group Management Protocol front page (Internet Group Management Protocol version one, IGMP v1) the request message that rolls off the production line (leave), perhaps based on IGMP v2, perhaps based on the request message that rolls off the production line of IGMP v3.Comprise first user's IP address and first multicast group address in the first user offline request message.
102: inquire about whether comprise first user index number in the BRAS user's registration information corresponding with first multicast group address, first user index is number corresponding one by one with first user's IP address;
When the specific implementation of the embodiment of the invention, multiple implementation can be arranged, the present invention does not do concrete qualification.A BRAS can support a plurality of multicast group simultaneously, each multicast group correspondence multicast group address separately and BRAS user's registration information separately.The BRAS user's registration information is used to write down the user of this multicast group.The BRAS user's registration information by with IP address one to one user index number write down the user of this multicast group.Its IP address difference of different user.Consider that IP address and user index are number corresponding one by one, its call number of different user is also inequality.Therefore, can distinguish the user by call number.After receiving the first user offline request message, BRAS inquires about whether comprise first user index number in the BRAS user's registration information of the first multicast group address correspondence.
103: in a BRAS user's registration information, comprise under the situation of first user index number, delete first user index number in the BRAS user's registration information;
When the specific implementation of the embodiment of the invention, multiple implementation can be arranged, the present invention does not do concrete qualification.If comprise first user index number in the BRAS user's registration information, show that then first user belongs to first multicast group.In a BRAS user's registration information, comprise under the situation of first user index number, delete first user index number in the BRAS user's registration information.This shows that BRAS responds first user and sends the first user offline request message, and first user is excluded first main broadcaster group.
As seen, the BRAS method for multicast communication that provides by the embodiment of the invention, solved multicast and duplicated scene by the user, when the multicast group user leaves multicast group, be the cast communication of maintenance with other users of multicast group, BRAS need send the technical problem of group-specific query message, helps reducing the load of BRAS and downstream network.
Further, receiving the first user offline request message further comprises before:
Receive first user request message of reaching the standard grade, first user reaches the standard grade and comprises first user's IP address and first multicast group address in the request message;
In a BRAS user's registration information, do not comprise under the situation of first user index number, create first user index number, and number add first user index to a BRAS user's registration information.
Further, after number adding first user index to a BRAS user's registration information and before receiving the first user offline request message, further comprise:
Send general group polling message;
Receive that first user responds the first user answer message of general group polling message (General Query);
In a BRAS user's registration information, comprise under the situation of first user index number, refresh the ageing time of the multicast of the first multicast group address correspondence.
Further, after number adding first user index to a BRAS user's registration information and before receiving the first user offline request message, further comprise:
Send general group polling message;
Receive that first user responds the first user answer message of general group polling message;
In a BRAS user's registration information, do not comprise under the situation of first user index number, create first user index number, and number add first user index to a BRAS user's registration information.
Further, a BRAS user's registration information further comprises user number counting (Reference Count) field, and the user number counting field is used to add up the number of users of the multicast of the first multicast group address correspondence;
Be under zero the situation in the user number counting field, stop the multicast of the first multicast group address correspondence.
Further, inquire about and whether comprise first user index in the BRAS user's registration information and number specifically comprise:
According to Hash (Hash) algorithm the multicast user's that comprises in the one BRAS user's registration information call number is divided into a plurality of arrays, the corresponding a plurality of collision domains of a plurality of arrays, wherein each array and each collision domain are corresponding one by one;
According to first user index number structure K value;
K value and described a plurality of collision domain are compared one by one;
After finding the collision domain that equates with the K value, the call number in the array that first user index is number corresponding with the collision domain that equates with the K value compares one by one.
Embodiment two:
The embodiment of the invention also provides a kind of BRAS cast communication device, and BRAS is operated in the replication mode by the user.BRAS cast communication device can be realized by the BRAS method for multicast communication that embodiment one provides.Referring to Fig. 2, Fig. 2 is the BRAS cast communication device schematic diagram that the embodiment of the invention provides, and this BRAS cast communication device comprises:
The first user offline request message receiving element 201: be used to receive the first user offline request message, comprise first user's IP address and first multicast group address in the first user offline request message;
Query unit 202: be used for inquiring about a BRAS user's registration information corresponding with first multicast group address and whether comprise first user index number, first user index is number corresponding one by one with first user's IP address;
Delete cells 203: be used for comprising under the situation of first user index number, delete first user index number in the BRAS user's registration information at a BRAS user's registration information.
As seen, the BRAS cast communication device that provides by the embodiment of the invention, solved multicast and duplicated scene by the user, when the multicast group user leaves multicast group, be the cast communication of maintenance with other users of multicast group, BRAS need send the technical problem of group-specific query message, helps reducing the load of BRAS and downstream network.
Further, BRAS cast communication device further comprises:
First user request message receiving element of reaching the standard grade is used for receiving first user request message of reaching the standard grade before receiving the first user offline request message, first user reaches the standard grade and comprises first user's IP address and first multicast group address in the request message;
The request message first user index creating unit of reaching the standard grade is used for not comprising under the situation of first user index number at a BRAS user's registration information, creates first user index number;
The request message first user index adding device of reaching the standard grade is used for number adding first user index to a BRAS user's registration information.
Further, BRAS cast communication device further comprises:
General group polling packet sending unit is used for sending general group polling message after number adding first user index to a BRAS user's registration information and before receiving the first user offline request message;
The first user answer message receiving element is used to receive the first user answer message that first user responds general group polling message;
Refresh unit is used for comprising under the situation of first user index number at a BRAS user's registration information, refreshes the ageing time of the multicast of the first multicast group address correspondence.
Further, BRAS cast communication device further comprises:
General group polling packet sending unit is used for sending general group polling message after number adding first user index to a BRAS user's registration information and before receiving the first user offline request message;
The first user answer message receiving element is used to receive the first user answer message that first user responds general group polling message;
The response message first user index creating unit is used for not comprising under the situation of first user index number at a BRAS user's registration information, creates first user index number;
The response message first user index adding device is used for number adding first user index to a BRAS user's registration information.
One of ordinary skill in the art will appreciate that: all or part of step that realizes said method embodiment can be finished by the relevant hardware of program command, aforementioned program can be stored in the computer read/write memory medium, this program is carried out the step that comprises said method embodiment when carrying out; And aforesaid storage medium comprises: various media that can be program code stored such as ROM, RAM, magnetic disc or CD.
It should be noted that at last: above embodiment only in order to technical scheme of the present invention to be described, is not intended to limit; Although with reference to previous embodiment the present invention is had been described in detail, those of ordinary skill in the art is to be understood that: it still can be made amendment to the technical scheme that aforementioned each embodiment put down in writing, and perhaps part technical characterictic wherein is equal to replacement; And these modifications or replacement do not make the essence of appropriate technical solution break away from the spirit and scope of various embodiments of the present invention technical scheme.