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 to multiple recipients simultaneously, only need draw a identical data packet.Namely multicasting technology improves data-transmission efficiency, decreases backbone network and occurs congested possibility.Such as, in video request program field, when different users needs to watch identical program, by multicasting technology, only need draw a video flow to user, flow redundancy can be eliminated, greatly save by trip device bandwidth.Clean culture then needs for each user draws a video flow, and this takies a large amount of bandwidth of upstream equipment, waste bandwidth resource by causing.
Prior art provides multicast and copies (Multicast copy by-session) technical solution by user.In this technical solution, respond the same video flowing of multiple user's program requests, multicast video streams from upper layer network arrives Broadband Remote Access Server (Broadband Remote Access Server, BRAS), and BRAS is that each user copies a multicast video streams.Namely multicast replication occurs, on BRAS, directly to be copied to by multicast message in the session of each user, send to user by BRAS.When a user of this multicast group of program request leaves 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 continuing program request this program responds group-specific query message, and sends user to BRAS and to reach the standard grade request message.Receiving user reaches the standard grade after request message, and BRAS is by the digestion period of brush multicast group.If do not have this program of user's program request, through time digestion period, this multicast group will be aging.
Inventor finds to there is following problem in prior art:
Copy scene at multicast by user, when multicast user leaves multicast group, in order to safeguard the cast communication of other users of this multicast group, BRAS needs to send group-specific query message.This will cause:
1.BRAS generates the system resource that group-specific query message needs to consume BRAS, and then (when a large number of users leaves multicast group, BRAS equipment needs to send a large amount of group-specific query messages to increase the weight of the load of BRAS.In addition, group-specific query message sends (the object MAC of the group-specific query message that BRAS sends is the clean culture MAC of user) in the mode of clean culture, after multicast user leaves multicast, BRAS equipment needs each member for multicast group to construct a group-specific query message, very large to the impact of BRAS equipment)
2. group-specific query message is sent to user in the mode of clean culture, the group-specific query message repeating that BRAS sends less than other program requests the user of this multicast group (the object MAC of the group-specific query message that BRAS sends is the clean culture MAC of user, group-specific query message repeating is the user of this multicast group less than other program requests, therefore, the user of this multicast group of other program requests can not perceive BRAS and sends to the group-specific query message of multicast user and make response.)
3. group-specific query message arrives downstream network, increases the weight of downstream network load (when a large number of users leaves multicast group, BRAS equipment can send a large amount of group-specific query messages in downstream network, adds downstream network burden)
4. the user needing processed group broadcasting user to send due to BRAS reaches the standard grade request message, when a large number of users leaves multicast group, BRAS needs to send a large amount of group-specific query message, increase the weight of the load of BRAS further, if at this moment there is user to reach the standard grade request program, the unable timely process of BRAS, this will cause certain customers cannot successful request program
Summary of the invention
On the one hand, the embodiment of the present invention provides a kind of Broadband Remote Access Server BRAS method for multicast communication, solve multicast and copy scene by user, when multicast group user leaves multicast group, for safeguarding the cast communication with other users of multicast group, BRAS needs the technical problem sending group-specific query message, is conducive to the load reducing BRAS and downstream network.
A kind of Broadband Remote Access Server BRAS method for multicast communication, BRAS is operated in by user's replication mode, comprising:
Receive first user to roll off the production line request message, first user rolls off the production line and comprises Internet protocol IP address and first multicast group address of first user in request message;
Inquire about in a BRAS user's registration information corresponding with the first multicast group address and whether comprise first user call number, the IP address one_to_one corresponding of first user call number and first user;
When comprising first user call number in a BRAS user's registration information, delete the first user call number in a BRAS user's registration information.
On the other hand, the embodiment of the present invention provides a kind of BRAS cast communication device, solve multicast and copy scene by user, when multicast group user leaves multicast group, for safeguarding the cast communication with other users of multicast group, BRAS needs the technical problem sending group-specific query message, is conducive to the load reducing BRAS and downstream network.
A kind of BRAS cast communication device, BRAS is operated in by user's replication mode, comprising:
First user rolls off the production line request message receiving element, to roll off the production line request message for receiving first user, and first user rolls off the production line and comprises Internet protocol IP address and first multicast group address of first user in request message;
Query unit, for inquiring about in a BRAS user's registration information corresponding with the first multicast group address whether comprise first user call number, the IP address one_to_one corresponding of first user call number and first user;
Delete cells, for comprising first user call number in a BRAS user's registration information, deletes the first user call number in a BRAS user's registration information.
Visible, the BRAS method for multicast communication provided by the embodiment of the present invention and device, solve multicast and copy scene by user, when multicast group user leaves multicast group, for safeguarding the cast communication with other users of multicast group, BRAS needs the technical problem sending group-specific query message, is conducive to the load reducing BRAS and downstream network.
Embodiment
For making the object of the embodiment of the present invention, technical scheme and advantage clearly, below in conjunction with the accompanying drawing in the embodiment of the present invention, technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
Embodiment one:
Embodiments provide a kind of BRAS method for multicast communication, BRAS is operated in by user's replication mode (Multicast copy by-session), is the BRAS method for multicast communication flow chart that the embodiment of the present invention provides see Fig. 1, Fig. 1; The method comprises:
101: receive first user and to roll off the production line request message, first user rolls off the production line and comprises Internet Protocol (Internet protocol, IP) address and first multicast group address of first user in request message;
When the specific implementation of the embodiment of the present invention, can have multiple implementation, the present invention does not do concrete restriction.Such as: BRAS receive that first user sends based on the Internet Group Management Protocol first edition (Internet Group Management Protocol version one, IGMP v1) the request message that rolls off the production line (leave), or based on IGMP v2, or based on the request message that rolls off the production line of IGMP v3.First user rolls off the production line and comprises IP address and first multicast group address of first user in request message.
102: inquire about in a BRAS user's registration information corresponding with the first multicast group address whether comprise first user call number, the IP address one_to_one corresponding of first user call number and first user;
When the specific implementation of the embodiment of the present invention, can have multiple implementation, the present invention does not do concrete restriction.A BRAS can support multiple multicast group simultaneously, the corresponding respective multicast group address of each multicast group and respective BRAS user's registration information.BRAS user's registration information is for recording the user of this multicast group.BRAS user's registration information by with IP address one to one user index number record the user of this multicast group.Its IP address of different user is different.Consider IP address and user index one_to_one corresponding, its call number of different user is not identical yet.Therefore, by call number, user is distinguished.Receiving first user rolls off the production line after request message, and BRAS inquires about in a BRAS user's registration information corresponding to the first multicast group address whether comprise first user call number.
103: when comprising first user call number in a BRAS user's registration information, delete the first user call number in a BRAS user's registration information;
When the specific implementation of the embodiment of the present invention, can have multiple implementation, the present invention does not do concrete restriction.If comprise first user call number in a BRAS user's registration information, then show that first user belongs to the first multicast group.When comprising first user call number in a BRAS user's registration information, delete the first user call number in a BRAS user's registration information.This shows that BRAS responds first user and sends first user and to roll off the production line request message, first user is excluded first main broadcaster's group.
Visible, the BRAS method for multicast communication provided by the embodiment of the present invention, solve multicast and copy scene by user, when multicast group user leaves multicast group, for safeguarding the cast communication with other users of multicast group, BRAS needs the technical problem sending group-specific query message, is conducive to the load reducing BRAS and downstream network.
Further, receive first user taking a step forward of request message of rolling off the production line to comprise:
Receive first user to reach the standard grade request message, first user is reached the standard grade and is comprised IP address and first multicast group address of first user in request message;
When not comprising first user call number in a BRAS user's registration information, create first user call number, and add first user call number to a BRAS user's registration information.
Further, after adding first user call number to a BRAS user's registration information and receive first user taking a step forward of request message of rolling off the production line and comprise:
Send general group polling message;
Receive the first user response message that first user responds general group polling message (General Query);
When comprising first user call number in a BRAS user's registration information, refresh the ageing time of multicast corresponding to the first multicast group address.
Further, after adding first user call number to a BRAS user's registration information and receive first user taking a step forward of request message of rolling off the production line and comprise:
Send general group polling message;
Receive the first user response message that first user responds general group polling message;
When not comprising first user call number in a BRAS user's registration information, create first user call number, and add first user call number to a BRAS user's registration information.
Further, a BRAS user's registration information comprises user number counting (Reference Count) field further, and user number counting field is for adding up the number of users of multicast corresponding to the first multicast group address;
When user number counting field is zero, stop the multicast that the first multicast group address is corresponding.
Further, whether comprise first user call number in inquiry the one BRAS user's registration information specifically to comprise:
According to Hash (Hash) algorithm, the call number of the multicast user comprised in the one BRAS user's registration information is divided into multiple array, multiple array corresponding multiple collision domain, wherein each array and each collision domain one_to_one corresponding;
According to first user call number structure K value;
K value and described multiple collision domain are compared one by one;
After finding the collision domain equal with K value, the call number in array corresponding for collision domain that first user call number is equal with K value is compared one by one.
Embodiment two:
The embodiment of the present invention additionally provides a kind of BRAS cast communication device, and BRAS is operated in by user's replication mode.The BRAS method for multicast communication that BRAS cast communication device provides by embodiment one realizes.Be the BRAS cast communication device schematic diagram that the embodiment of the present invention provides see Fig. 2, Fig. 2, this BRAS cast communication device comprises:
First user rolls off the production line request message receiving element 201: to roll off the production line request message for receiving first user, and first user rolls off the production line and comprises IP address and first multicast group address of first user in request message;
Query unit 202: for inquiring about in a BRAS user's registration information corresponding with the first multicast group address whether comprise first user call number, the IP address one_to_one corresponding of first user call number and first user;
Delete cells 203: for comprising first user call number in a BRAS user's registration information, deletes the first user call number in a BRAS user's registration information.
Visible, the BRAS cast communication device provided by the embodiment of the present invention, solve multicast and copy scene by user, when multicast group user leaves multicast group, for safeguarding the cast communication with other users of multicast group, BRAS needs the technical problem sending group-specific query message, is conducive to the load reducing BRAS and downstream network.
Further, BRAS cast communication device comprises further:
First user is reached the standard grade request message receiving element, to reach the standard grade request message for receiving first user before rolling off the production line request message at reception first user, and first user is reached the standard grade and comprised IP address and first multicast group address of first user in request message;
Request message first user call number of reaching the standard grade creating unit, for not comprising first user call number in a BRAS user's registration information, creates first user call number;
Request message first user call number of reaching the standard grade adding device, for adding first user call number to a BRAS user's registration information.
Further, BRAS cast communication device comprises further:
General group polling packet sending unit, for after adding first user call number to a BRAS user's registration information and receive first user and roll off the production line before request message and send general group polling message;
First user response message receiving element, responds the first user response message of general group polling message for receiving first user;
Refresh unit, for comprising first user call number in a BRAS user's registration information, refreshes the ageing time of multicast corresponding to the first multicast group address.
Further, BRAS cast communication device comprises further:
General group polling packet sending unit, for after adding first user call number to a BRAS user's registration information and receive first user and roll off the production line before request message and send general group polling message;
First user response message receiving element, responds the first user response message of general group polling message for receiving first user;
Response message first user call number creating unit, for not comprising first user call number in a BRAS user's registration information, creates first user call number;
Response message first user call number adding device, for adding first user call number to a BRAS user's registration information.
One of ordinary skill in the art will appreciate that: all or part of step realizing said method embodiment can have been come by the hardware that program command is relevant, foregoing routine can be stored in a computer read/write memory medium, this program, when performing, performs the step comprising said method embodiment; And aforesaid storage medium comprises: ROM, RAM, magnetic disc or CD etc. various can be program code stored medium.
Last it is noted that above embodiment is only in order to illustrate technical scheme of the present invention, be not intended to limit; Although with reference to previous embodiment to invention has been detailed description, those of ordinary skill in the art is to be understood that: it still can be modified to the technical scheme described in foregoing embodiments, or carries out equivalent replacement to wherein portion of techniques feature; And these amendments or replacement, do not make the essence of appropriate technical solution depart from the spirit and scope of various embodiments of the present invention technical scheme.