The content of the invention
The embodiment of the present invention provides a kind of multicast data processing method and device, for being received in trunking from access point
During to multicast packet, the waste to Internet resources is reduced.
The one side of the embodiment of the present invention is to provide a kind of multicast data processing method, including:
Trunking obtains the multicast address of the multicast group belonging to website, and the multicast address is that access point is the website
Distribution;
The trunking receives the multicast packet that described access point is sent, and is carried in the multicast packet purposeful
Multicast address;
If the trunking judges that the purpose multicast address is identical with the multicast address, by the multicast number
The website corresponding to the multicast address is transmitted to according to bag, so that the website receives the multicast packet.
The multicast data processing method provided with reference to one side, in the first possible implementation, in described
The multicast address of the multicast group belonging to website is obtained after equipment to be included:
In the first notice message that the trunking is sent from described access point, the multicast address is obtained, described
The multicast address that described access point is website distribution is carried in one notice message;
Or in the second notice message for being sent from the website of the trunking, the multicast address is obtained, it is described
The multicast address that described access point is website distribution is carried in second notice message;
Or the trunking forward described access point be sent to the management message of the website when, from the pipe
The multicast address is obtained in reason message, it is described group that the website distributes to carry described access point in the management message
Broadcast address.
Second aspect of the embodiment of the present invention is to provide a kind of trunking, including:
Acquiring unit, for obtaining the multicast address of the multicast group belonging to website, the multicast address is access point for institute
State website distribution;
Receiving unit, for receiving the multicast packet of described access point transmission, mesh is carried in the multicast packet
Multicast address;
Processing unit, for when judging that the purpose multicast address is identical with the multicast address, by the multicast
Packet is transmitted to the website corresponding to the multicast address, so that the website receives the multicast packet.
The trunking provided with reference to second aspect, in the first possible implementation, the acquiring unit tool
Body is used for:
In the first notice message sent from described access point, the multicast address is obtained, in first notice message
Carry the multicast address that described access point is website distribution;
Or in the second notice message sent from the website, obtain the multicast address, second notice message
In carry described access point be the website distribution the multicast address;
Or when forwarding described access point to be sent to the management message of the website, obtained from the management message
The multicast address, it is described to manage the multicast address for carrying that described access point is website distribution in message.
Multicast data processing method and device provided in an embodiment of the present invention, it to obtain by website access point by trunking
The multicast address of the Multicast Group Assignment of category, after the multicast packet of described access point transmission is received, obtain the multicast
The purpose multicast address of packet, and when judging that the purpose multicast address is identical with the multicast address, by described group
Unicast packets are transmitted to the website corresponding to the multicast address;Because trunking is no longer needed the multicast packet,
The whole websites being transmitted in its coverage, and the multicast packet is sent to each website corresponding to purpose multicast address i.e.
Can, so as to efficiently reduce the waste to Internet resources, be advantageous to improve the efficiency of data transfer in wireless network.
Embodiment
When receiving multicast packet from access point to solve trunking, and the multicast packet being forwarded,
The multicast packet can also be transmitted to the website that need not be received, the problem of wasting Internet resources, various embodiments of the present invention are led to
Cross the corresponding relation between preservation website and multicast address in trunking so that trunking is receiving multicast packet
When, can find needs the website for receiving the multicast packet, so as to reduce the waste to Internet resources.
Various embodiments of the present invention can apply the applied field in the radio communication being made up of access point, trunking and website
Jing Zhong.
Fig. 1 is the flow chart of multicast data processing method provided in an embodiment of the present invention, as shown in figure 1, this method includes:
101st, trunking obtains the multicast address of the multicast group belonging to website.Wherein, the multicast address is access point
For website distribution.
Specifically, access point, trunking and website can carry out radio communication, trunking both includes access point
Function, include the function of website again.In the communication system being made up of access point, trunking and website, in access point with
When being communicated between equipment, the status of trunking is equivalent to website, when being communicated between trunking and website,
The status of trunking is equivalent to access point.
In the coverage of access point, one or more trunkings can be disposed, one or more can also be disposed
Website.Each trunking can have multicast address, can also not have multicast address;Each website can have multicast address,
Can there is no multicast address.Trunking and website can have identical multicast address, it is possible to have different multicasts
Location.
In the coverage of trunking, one or more access points can be deployed with, can also be deployed with one or
Multiple websites.One trunking can only provide relay services for an access point, and an access point can utilize it is multiple
Trunking is relayed respectively.The access point and trunking that can communicate to connect described in various embodiments of the present invention, i.e.,
Expression has service relation between the two.
The multicast address of trunking can be distributed by access point for it, can specifically be used and access point in the prior art
Distribute multicast address similar implementation for website.
The multicast address of website is that access point distributes for it, belongs to the website of same multicast group, has identical group
Broadcast address.
Trunking can obtain the multicast address of website in several ways.For example, trunking can with access
The multicast address of website is obtained in the communication process of point;The multicast of website can also be obtained in the communication process in website
Location;During the management message for sending access point is transmitted to website, the group of website can also be obtained from management message
Broadcast address.
102nd, trunking receives the multicast packet that described access point is sent, and is carried in the multicast packet purposeful
Multicast address.
Specifically, access point when sending multicast packet, can carry the purpose group for needing to send in multicast packet
Broadcast address.The destination address of the multicast packet as needs the purpose multicast address sent.Access point is by the multicast packet
Trunking is sent to, correspondingly, trunking is after the multicast packet is received, with obtaining purpose multicast therein
Location.
103rd, trunking judges whether the purpose multicast address is identical with the multicast address.If so, then perform step
Rapid 104;If it is not, then perform step 105.
104th, the multicast packet is transmitted to the website corresponding to the multicast address by trunking.Perform step
104 be in order that the website receives the multicast packet.
105th, trunking does not forward to the multicast packet.
Specifically, trunking after the purpose multicast address is got, it is necessary to whether judge the purpose multicast address
It is identical with the multicast address that trunking has been got.
If trunking is judged in its multicast address got, exist and the purpose multicast address identical group
When broadcasting address, then the multicast packet is transmitted to website corresponding to the multicast address, that is, belongs to the website of the multicast group.
Preferably, the multicast packet it is corresponding can be transmitted to the multicast address by the way of unicast by trunking
Each website;The multicast packet can also be transmitted to each website corresponding to the multicast address by the way of multicast.
Because trunking can know that each website for communicating with connection is in a dormant state, to be in normal work
Make state.Website in normal operating conditions can receive the multicast packet of trunking transmission, and be in dormancy shape
The website of state can not then receive the multicast packet of trunking transmission.Therefore, when trunking is turned by the way of multicast
When sending out the multicast packet, it is necessary to the presence or absence of website in a dormant state in first judging each website that its needs is sent.
Website in a dormant state be present, then temporarily if it is judged that in each website that its needs is sent in trunking
The multicast packet is not forwarded first.
Trunking can use carries data instruction figure (Traffic Indication in beacon frame (Beacon)
Map, TIM) mode, to needing the website for receiving the multicast packet to indicate.With each station of trunking communication connection
Point, it is required to listen to the Beacon transmitted by trunking.The website that TIM middle fingers are shown with data can be actively to the relaying of association
Equipment obtains data.
Trunking can also notify the website for belonging to the multicast group by Beacon, be waken up at the time of regulation, to connect
Receive the multicast packet of the trunking forwarding.So as to, it is necessary to receive the multicast packet when being arrived at the time of regulation
Website will be in normal operating conditions, and therefore, trunking retransmits the multicast packet at the time of regulation, enables to
Each website can normally receive the multicast packet.
If trunking is judged in its multicast address got, in the absence of with the purpose multicast address identical
During multicast address, then the multicast packet is not forwarded.
So as to, trunking no longer needs the whole websites being sent to the multicast packet in its coverage, but
The multicast packet is sent to each website corresponding with purpose multicast address identical multicast address.
Preferably, an address table can be prestored in trunking, the address table is included acquired in trunking
Corresponding relation between arrive, website and multicast address.Address table can also be referred to as multicast address (Group Address
Table, GAT).
After trunking has got the multicast address of website, i.e., website and multicast address are updated in the address table
Between corresponding relation;After the multicast address of website is updated, trunking is getting the multicast address of website renewal
Afterwards, multicast address corresponding with the website in address table is correspondingly updated.
Multicast data processing method provided in an embodiment of the present invention, it is the multicast belonging to website that trunking, which obtains access point,
The multicast address of group distribution, after the multicast packet of described access point transmission is received, obtains the multicast packet
Purpose multicast address, and when judging that the purpose multicast address is identical with the multicast address, by the multicast packet
It is transmitted to the website corresponding to the multicast address;Because trunking no longer needs, by the multicast packet, to be transmitted to it
Whole websites in coverage, and the multicast packet is sent to each website corresponding to purpose multicast address, so as to
The waste to Internet resources can be efficiently reduced, is advantageous to improve the efficiency of data transfer in wireless network.
Fig. 2 is the flow chart of another multicast data processing method provided in an embodiment of the present invention, as shown in Fig. 2 this method
Including:
201st, in the first notice message that the trunking is sent from described access point, the multicast address is obtained;Or
In the second notice message that person sends from the website, the multicast address is obtained;Or it is sent in forwarding described access point
During the management message of the website, the multicast address is obtained from the management message.
Specifically, on the basis of the implementation described in step 101, trunking can by following three kinds of modes,
Get the multicast address that access point is website distribution.
The first is that access point is sent after multicast address is assigned with for website in a manner of unicast to trunking
First notice message.The multicast address that access point is website distribution is carried in first notice message.Access point can first by for
The multicast address of website distribution is sent to the website, first can also carry the multicast address and is sent in the first notice message
Trunking.
Second is that access point is sent to the website after multicast address is assigned with for website, by the multicast address, stands
The multicast address is carried in the second notice message, is sent to after the multicast address is obtained by point in a manner of unicast
Trunking.
The third is that access point is being sent to the management message of website, when being transmitted to the website, Ke Yicong by trunking
Wherein entrained multicast address corresponding with the website is obtained in the management message.
So as to which trunking can get multicast address corresponding with website by above various ways.
202nd, trunking receives the multicast packet that described access point is sent, and is carried in the multicast packet purposeful
Multicast address.Specifically, it may refer to the implementation described in step 102.
203rd, trunking judges whether the purpose multicast address is identical with the multicast address.If so, then perform step
Rapid 204;If it is not, then perform step 205.
204th, the multicast packet is transmitted to the website corresponding to the multicast address by trunking.
205th, trunking does not forward to the multicast packet.
Specifically, it may refer to the implementation described in step 103-105.
Fig. 3 is the structural representation of trunking provided in an embodiment of the present invention, as shown in figure 3, the trunking includes:
Acquiring unit 11, for obtaining the multicast address of the multicast group belonging to website, the multicast address is that access point is
The website distribution;
Receiving unit 12, for receiving the multicast packet of described access point transmission, carried in the multicast packet
Purpose multicast address;
Processing unit 13, for when judging that the purpose multicast address is identical with the multicast address, by described group
Unicast packets are transmitted to the website corresponding to the multicast address, so that the website receives the multicast packet.
Further, the acquiring unit 11 is specifically used for:
In the first notice message sent from described access point, the multicast address is obtained, in first notice message
Carry the multicast address that described access point is website distribution;
Or in the second notice message sent from the website, obtain the multicast address, second notice message
In carry described access point be the website distribution the multicast address;
Or when forwarding described access point to be sent to the management message of the website, obtained from the management message
The multicast address, it is described to manage the multicast address for carrying that described access point is website distribution in message.
Fig. 4 is the structural representation of another trunking provided in an embodiment of the present invention, as shown in figure 4, the trunking
Including:Processor 21, memory 22, bus 23 and communication interface 24.Lead between processor 21, memory 22 and communication interface 24
Bus 23 is crossed to connect and complete mutual communication.
Processor 21 may be monokaryon or multinuclear CPU (Central Processing Unit, CPU), or
Person is specific integrated circuit (Application Specific Integrated Circuit, ASIC), or to be configured to
Implement one or more integrated circuits of the embodiment of the present invention.
Memory 22 can be high-speed RAM memory, or nonvolatile memory (non-volatile
Memory), a for example, at least magnetic disk storage.
Memory 22 is used to deposit program 221.Specifically, program code, described program code can be included in program 221
Including computer-managed instruction.
The operation program 221 of processor 21, to perform:The multicast address of multicast group belonging to acquisition website, the multicast
Location is that access point distributes for the website;The multicast packet that described access point is sent is received, is taken in the multicast packet
With purposeful multicast address;If judging, the purpose multicast address is identical with the multicast address, by the multicast packet
Bag is transmitted to the website corresponding to the multicast address, so that the website receives the multicast packet.
Specifically, the method that trunking provided in an embodiment of the present invention carries out multicast packet processing, may refer to above-mentioned
Implementation described in corresponding embodiment of the method, this is repeated no more.
One of ordinary skill in the art will appreciate that:Realizing all or part of step of above-mentioned each method embodiment can lead to
The related hardware of programmed instruction is crossed to complete.Foregoing program can be stored in a computer read/write memory medium.The journey
Sequence upon execution, execution the step of including above-mentioned each method embodiment;And foregoing storage medium includes:ROM, RAM, magnetic disc or
Person's CD etc. is various can be with the medium of store program codes.
Finally it should be noted that:Various embodiments above is merely illustrative of the technical solution of the present invention, rather than its limitations;To the greatest extent
The present invention is described in detail with reference to foregoing embodiments for pipe, it will be understood by those within the art that:Its according to
The technical scheme described in foregoing embodiments can so be modified, either which part or all technical characteristic are entered
Row equivalent substitution;And these modifications or replacement, the essence of appropriate technical solution is departed from various embodiments of the present invention technology
The scope of scheme.