CN101656614B - Method and system for enabling multicast terminal to leave multicast group reliably - Google Patents

Method and system for enabling multicast terminal to leave multicast group reliably Download PDF

Info

Publication number
CN101656614B
CN101656614B CN 200810141956 CN200810141956A CN101656614B CN 101656614 B CN101656614 B CN 101656614B CN 200810141956 CN200810141956 CN 200810141956 CN 200810141956 A CN200810141956 A CN 200810141956A CN 101656614 B CN101656614 B CN 101656614B
Authority
CN
China
Prior art keywords
multicast
terminal
datagram
cast
group
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN 200810141956
Other languages
Chinese (zh)
Other versions
CN101656614A (en
Inventor
丁鹏
郑可馨
陈鹏飞
柴作朋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Haining Yanguan Industrial Investment Co., Ltd
Original Assignee
ZTE Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by ZTE Corp filed Critical ZTE Corp
Priority to CN 200810141956 priority Critical patent/CN101656614B/en
Publication of CN101656614A publication Critical patent/CN101656614A/en
Application granted granted Critical
Publication of CN101656614B publication Critical patent/CN101656614B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)
  • Small-Scale Networks (AREA)

Abstract

The invention discloses a method for enabling a multicast terminal to leave a multicast group reliably, which comprises the following processing steps that 1) the multicast terminal detects received multicast datagrams in real time; 2) the multicast terminal judges whether the multicast datagrams in the step 1) are multicast datagrams to be received by the terminal or not; and 3) if the multicast datagrams are not the multicast datagrams to be received by the terminal, a message indicating the leaving from the multicast group is sent to a multicast router. The invention also discloses a system for enabling the multicast terminal to leave the multicast group reliably, which consists of the multicast terminal and the multicast router. The method and the system solve the problem that when restart in a short time, the multicast terminal receives a plurality of paths of multicast streams at the same time after the channel switching and power off of the multicast terminal because the multicast terminal looses the message indicating the leaving from the multicast group or fails to send out the message indicating the leaving from the multicast group in time when power is off, thereby saving network bandwidth effectively and ensuring the playing quality of the multicast terminal.

Description

A kind of multi-cast terminal reliably leaves the method and system of multicast group
Technical field
The present invention relates to Web TV (IPTV) technology, relate in particular to the method and system that a kind of multi-cast terminal reliably leaves multicast group.
Background technology
Multicast also claims multicast (Multicast), is to realize that between sender and each recipient point-to-point configuration connects.If a sender transmits identical data for simultaneously a plurality of recipients, through router the time, only need copy a identical data packet, it has improved data-transmission efficiency like this.Reduce backbone network and congested possibility occurred.
The basic service of Web TV (IPTV) is live, and the live multicast mode that mostly adopts at present is to reduce the pressure to backbone network.The operator that has can give IPTV multi-cast terminal user configuration saving channel, can enter into the memory channel when the user starts shooting again, and this point is the same with simulated television.
Multi-cast terminal will send the message of adding multicast group to the multicast router in the subnet at multi-cast terminal place when playing group broadcasting program.When multi-cast terminal stopped to play group broadcasting program, except the multi-cast terminal of only supporting IGMPV1, the message of supporting the multi-cast terminal of IGMP V2 and above version all can send to leave multicast group was to multicast router.Multicast router meeting timed sending igmp querying message, after multi-cast terminal is received query message, can in the official hour scope, send IGMP member and report to multicast router, if but other member has sent IGMP member's report in the group, then multi-cast terminal just need not have been sent out, belong to this group because how many main frames multicast router is indifferent to, and only be concerned about whether this group also has a main frame at least.
The IGMP agreement does not resemble Transmission Control Protocol, does not have retransmission mechanism, so it is insecure.When network takes place when congested, multi-cast terminal sends leaves the multicast group message and may lose.If added other multicast group this moment when the multi-cast terminal power-off restarting enters the memory channel or switches to other multicast channel, and it is not successful to leave multicast group before, at this moment multi-cast terminal can be received the multichannel multicast data flow simultaneously, taken massive band width, find that up to multicast router multi-cast terminal does not stop forwarding certain road multicast data flow in certain multicast group, at this moment network congestion could be alleviated to some extent.But because different multicast routers arranges difference, it is just not different in the time of multicast group to detect multi-cast terminal yet, the igmp querying time-out time of general router setting is 3 minutes, if so, multi-cast terminal will be subjected to the influence of this road multicast data flow in these 3 minutes, group broadcasting program with a 1.5Mbps, having multichannel multicast data flow occupied bandwidth simultaneously is exactly the multiple of 1.5Mbps, and the bandwidth of general family 2-3M just this shows that the multicast data flow of in time not closing is very large to the influence of home network.
Therefore, can reliably leave multicast group for multi-cast terminal is the key factor that guarantees the set-top box play quality.
When leaving multicast group, the existing technical scheme processing host adopts one of two kinds of following schemes usually:
1. when main frame leaves some multicast group, it will withdraw from voluntarily, multicast router regularly uses the group address inquiry of the All hosts of " membership qualification inquiry " message in the IP subnet, if a certain multicast group in the IP subnet without any the member, multicast router will no longer be transmitted the data of this multicast group in subnet after confirming this event.Meanwhile, by Routing Information Exchange, the corresponding multicast router of deletion from specific multicast group distribution tree, this method makes multicast router learn in the 1P subnet that the event without any multicast member has been delayed time a period of time.This scheme is the delay of normally withdrawing from or all will cause during powered-off fault certain hour in the user multicast terminal.
2. when each main frame leaves some multicast group, proactive notification subnet multicast router, multicast router be all multicast group inquiries in the IP subnet immediately, if not response then stops the forwarding of multicast group, this scheme can stop multicast in real time.But under the situation of user multicast terminal abnormal power down, main frame can not proactive notification, and multicast router can't start querying flow, and therefore, this scheme can't solve the problem that the power down of user multicast terminal abnormal causes.
Existing patent mainly contains following two kinds to the solution of effectively leaving multicast group:
1.CN200510121004 the information of the multicast that the patent proposition once adds on the multi-cast terminal side is preserved, the message of multicast group is left in transmission when user's start next time.This is a kind of solution, but it is multi-cast terminal will once add multicast group on non-volatile memories is preserved information that this solution version has a prerequisite, if what if playlist preserves failure? in addition, multi-cast terminal starts the back and sends out a message that leaves multicast group according to the multicast address of preserving, leave the situation of the message dropping of multicast group when not considering network congestion, if this message dropping, the situation of network congestion still can not be resolved.
2.CN200610060903 patent proposes to send the general multicast group message that leaves to the multicast packet copying equipment, leave all multicast group, this method is pretty good, but this method has been introduced a kind of off-gauge multicast message, needs multicast replication equipment to make an amendment to support this multicast message in addition.This is a kind of private method, and for being applied in any place and any network is established the multi-cast terminal of each intercommunication, this way does not possess versatility.
Summary of the invention
In view of this, main purpose of the present invention is to propose the method and system that a kind of multi-cast terminal reliably leaves multicast group, does not in time send the problem that the datagram of leaving multicast group causes behind the multi-cast terminal switching channels or receives the multichannel multicast data flow when restarting in the outage short time afterwards simultaneously when solving multi-cast terminal because of the message dropping that leaves multicast group or outage.
For achieving the above object, technical scheme of the present invention is achieved in that
A kind of multi-cast terminal reliably leaves the method for multicast group, comprises following treatment step:
1) multi-cast terminal detects the multicast datagram that receives in real time;
2) the multi-cast terminal determining step 1) in multicast datagram whether be the multicast datagram that local terminal will receive;
3) multicast datagram that will receive if not local terminal then sends the message that leaves multicast group to multicast router.
Preferably, also comprise following treatment step after the described step 3):
4) if not the multicast source datagram of local terminal requirement, determine the multicast source of each datagram, corresponding each multicast source arranges timer respectively, and starts timer;
5) when receiving the multicast source datagram of self-timer correspondence within the timer timing, local terminal is not handled this datagram; When outside the timer timing, receiving the multicast source datagram of self-timer correspondence, then return step 3) and handle.
Preferably, be specially described step 2): multi-cast terminal judges whether the multicast source datagram that will receive for local terminal according to the multicast source address of multicast datagram.
Preferably, a plurality of timers that arrange in the described multi-cast terminal, the multicast address of the non-local terminal that receives of the corresponding local terminal multicast message that will receive respectively.
A kind of multi-cast terminal reliably leaves the system of multicast group, comprising:
Multi-cast terminal is used for detecting in real time the multicast datagram that receives; Judge whether multicast datagram is the multicast source datagram that local terminal is asked reception; Send the message leave the multicast group that non-local terminal will receive to multicast router;
Multicast router is used for the message request of receiving group terminal, and stops to transmit the multicast datagram that non-multi-cast terminal will receive to multi-cast terminal.
Preferably, be provided with a plurality of timers in the described multi-cast terminal, respectively the multicast source of the corresponding non-local terminal message that will receive; Multi-cast terminal also is used for judging the situation of receiving corresponding multicast source datagram in timing range.
Preferably, described multi-cast terminal judges whether the multicast source datagram that will receive for local terminal according to the multicast source address of multicast datagram.
Preferably, the timing value of described timer is set to a value between 30 milliseconds-60 milliseconds.
The present invention overcomes the deficiencies in the prior art, detecting on the basis of multicast datagram in real time, has increased the processing to multicast data message.The present invention does not a kind ofly want that for multi-cast terminal the multicast data flow that receives in time and effectively sends the method and system of the datagram of leaving multicast group, its measured IGMP protocol processes mechanism, solved that multi-cast terminal is lost because of the datagram of leaving multicast group or in time do not sent the problem that the datagram of leaving multicast group causes behind the multi-cast terminal switching channels or receives the multichannel multicast data flow when restarting in the outage back short time simultaneously when cutting off the power supply, save the network bandwidth effectively, guarantee the quality that multi-cast terminal is play.
Description of drawings
Fig. 1 reliably leaves the schematic flow sheet of multicast group for multi-cast terminal of the present invention;
Fig. 2 is multicast timer expiry reprocessing flow chart of the present invention;
Fig. 3 reliably leaves the preferred embodiment flow chart of multicast group for multi-cast terminal of the present invention.
Embodiment
Below in conjunction with accompanying drawing and by specific embodiment technical scheme of the present invention is elaborated.
Be illustrated in figure 1 as multi-cast terminal of the present invention and reliably leave the multicast group flow process.Multi-cast terminal starts the back and detects the multicast datagram that arrives network protocol stack through network interface in real time, and the multicast datagram of receiving handled, if what find that multicast datagram is not that local terminal will receive (is the multicast group that multi-cast terminal does not have the multicast datagram place that adding receives, or be called multi-cast terminal and do not have process to add the multicast group at this multicast packet place), then send the message that leaves this multicast group to multicast router, handle otherwise multi-cast terminal returns the reception of multicast datagram.
Not under the local terminal situation that will receive at multicast datagram, can also handle like this: the timer of the correspondence that each multicast address is arranged.When receiving the datagram that non-local terminal will receive first, send the message that leaves this multicast group to multicast router, and start the timer of multicast address correspondence.Behind corresponding timer expiry, if terminal can also be received the multicast message from the corresponding multicast group of this timer, then send again and leave the message of this multicast group, and restart the timer of corresponding multicast group.If before timer expiry, receive the message of the corresponding multicast group of this timer, then do not handle this multicast message.
Also be provided with the existence sign for each timer as shown in Figure 2, after the timing timeout treatment is finished, by the timer processing function existence sign of timer fallen clearly.In the time that timer need being restarted, then there is sign by the function setup timer.Multi-cast terminal is by judging whether to exist the timer of multicast group correspondence to exist sign to judge whether timer is overtime.
The multicast end that the present invention proposes reliably leaves the system of multicast group, comprising:
The multicast end is used for detecting in real time the multicast datagram that receives; Judge whether multicast datagram is the multicast source datagram of local terminal requirement; Send the message of the multicast group of leaving non-local terminal requirement to multicast router;
Multicast router is used for the message request of receiving group end, and stops to transmit to the multicast end multicast datagram of non-multicast end requirement.
Wherein in the multicast end, be provided with a plurality of timers, respectively the multicast source of the message of corresponding non-local terminal requirement; The multicast end also is used for judging the situation of receiving corresponding multicast source datagram in timing range.
The multicast end judges whether the multicast source datagram that requires for local terminal according to the multicast source address of multicast datagram.
The timing value of timer is set to a value between 30ms-60ms.
Basic principle of the present invention is to detect in real time on the data flow basis that network interface receives, by detecting the multicast datagram through the multi-cast terminal network interface, can detect the multicast data flow that multi-cast terminal does not add multicast at present effectively, and tell timely and effectively and reduce the multicast data flow on the network by multicast server.Describe by a specific embodiment more below.
The system of the corresponding linux2.4.16 version of this example uses tcp/ip ipv4 protocol stack.
Its method flow as shown in Figure 3, this method may further comprise the steps:
Step 1: the multi-cast terminal system normally starts;
The real-time udp packet that network interface is received of the udp_rcv function of step 2:tcp/ip network protocol stack udp layer is handled.
Step 3: the multicast data message that belongs to the udp bag in the udp_rcv function is handled.If multi-cast terminal does not have to add the multicast group at the multicast datagram place receive, namely multi-cast terminal does not have process to add the multicast group at this multicast packet place, execution in step 4; Otherwise continue execution in step 2;
Step 4: according to the corresponding timer of different multicast source address structures, the timer that different multicast source address is corresponding different.As receive that multicast address is the multicast data flow of A, and the timer A that structure is corresponding, the timer expiry time is set to a value between 30ms-60ms, and preferred value is 50ms.
If receive the multicast data message from the A multicast group first time, send at once and leave the message of A multicast group, and start the timer A of a correspondence; If not the multicast datagram of receiving for the first time from the A multicast group, whether the timer A that judges this multicast group A correspondence overrun finishes; If timer A timeout treatment is over, then send again at once and leave the message of A multicast group, and restart the timer A of new correspondence, re-execute step 2.
Above content be in conjunction with concrete preferred implementation to further describing that the present invention does, can not assert that concrete enforcement of the present invention is confined to these explanations.For the general technical staff of the technical field of the invention, without departing from the inventive concept of the premise, can also make some simple deduction or replace, all should be considered as belonging to protection scope of the present invention.

Claims (8)

1. a multi-cast terminal reliably leaves the method for multicast group, it is characterized in that described method comprises following treatment step:
1) multi-cast terminal detects the multicast datagram that receives in real time;
2) the multi-cast terminal determining step 1) in multicast datagram whether be the multicast datagram that local terminal will receive;
3) multicast datagram that will receive if not local terminal then sends the message that leaves multicast group to multicast router.
2. multi-cast terminal according to claim 1 reliably leaves the method for multicast group, it is characterized in that, also comprises following treatment step after the described step 3):
4) multicast datagram that will receive if not local terminal is determined the multicast source of each datagram, and corresponding each multicast source arranges timer respectively, and starts timer;
5) when receiving the multicast source datagram of self-timer correspondence within the timer timing, local terminal is not handled this datagram; When outside the timer timing, receiving the multicast source datagram of self-timer correspondence, then return step 3) and handle.
3. multi-cast terminal according to claim 1 and 2 reliably leaves the method for multicast group, it is characterized in that, described step 2) in be specially: multi-cast terminal judges whether the multicast source datagram that will receive for local terminal according to the multicast source address of multicast datagram.
4. multi-cast terminal according to claim 2 reliably leaves the method for multicast group, it is characterized in that, a plurality of timers that arrange in the described multi-cast terminal, the multicast address of the non-local terminal that receives of the corresponding local terminal multicast message that will receive respectively.
5. a multi-cast terminal reliably leaves the system of multicast group, it is characterized in that, comprising:
Multi-cast terminal is used for detecting in real time the multicast datagram that receives; Judge whether multicast datagram is the multicast datagram that local terminal will receive; Send the message leave the multicast group that non-local terminal will receive to multicast router;
Multicast router is used for the message request of receiving group terminal, and stops to transmit the multicast datagram that non-multi-cast terminal will receive to multi-cast terminal.
6. multi-cast terminal according to claim 5 reliably leaves the system of multicast group, it is characterized in that, is provided with a plurality of timers in the described multi-cast terminal, respectively the multicast source of the corresponding non-local terminal message that will receive; Multi-cast terminal also is used for judging the situation of receiving corresponding multicast source datagram in timing range.
7. reliably leave the system of multicast group according to claim 5 or 6 described multi-cast terminals, it is characterized in that, described multi-cast terminal judges whether the multicast source datagram that will receive for local terminal according to the multicast source address of multicast datagram.
8. multi-cast terminal according to claim 6 reliably leaves the system of multicast group, it is characterized in that, the timing value of described timer is set to a value between 30 milliseconds-60 milliseconds.
CN 200810141956 2008-08-20 2008-08-20 Method and system for enabling multicast terminal to leave multicast group reliably Expired - Fee Related CN101656614B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200810141956 CN101656614B (en) 2008-08-20 2008-08-20 Method and system for enabling multicast terminal to leave multicast group reliably

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200810141956 CN101656614B (en) 2008-08-20 2008-08-20 Method and system for enabling multicast terminal to leave multicast group reliably

Publications (2)

Publication Number Publication Date
CN101656614A CN101656614A (en) 2010-02-24
CN101656614B true CN101656614B (en) 2013-07-03

Family

ID=41710722

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200810141956 Expired - Fee Related CN101656614B (en) 2008-08-20 2008-08-20 Method and system for enabling multicast terminal to leave multicast group reliably

Country Status (1)

Country Link
CN (1) CN101656614B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102318272B (en) * 2011-06-29 2013-12-18 华为技术有限公司 Method for eliminating abnormal group member in process group
CN102843297B (en) * 2012-08-29 2015-08-19 上海斐讯数据通信技术有限公司 The method of router process query message

Also Published As

Publication number Publication date
CN101656614A (en) 2010-02-24

Similar Documents

Publication Publication Date Title
CN101651553B (en) User side multicast service primary and standby protecting system, method and route devices
EP1909439B1 (en) An implementing method and an apparatus for enhancing the multicast service manageability
WO2016165463A1 (en) Software defined network-based link failure reporting method and forwarding device
CN110022228B (en) Server switching method, device and system and readable storage medium
US8681668B2 (en) Methods and apparatus for transmitting multicast traffic in a data network
CN110138632B (en) Data transmission method and device
WO2018176496A1 (en) Iptv service quality detection method, device and system
WO2006081750A1 (en) A process method for filtering multicast source
CN101674199A (en) Method for realizing switching during network fault and finders
US8724993B2 (en) Station side device and optical communication system
WO2016026299A1 (en) Method and device for retransmitting lost packet
CN101442485A (en) Method, apparatus and system for forwarding multicast
CN101656614B (en) Method and system for enabling multicast terminal to leave multicast group reliably
CN100527680C (en) Method and device for automatically identifying multicast agent device interface types
CN102377584A (en) Method for protecting DR (designated router) redundancy in PIM-SM (protocol independent multicast-sparse mode)
CN101304359B (en) Method and apparatus for RRPP looped network link recuperation
CN101145922B (en) A system and method for realizing reliable exit of multi-cast terminal
CN101166084B (en) Secure method for preventing multicast user from attacking
CN101163002B (en) Highly effective multicast authenticating method
CN111245733B (en) Data transmission method and device
CN101094132B (en) Process method for restarting terminal device of multicast service
CN101060467B (en) A multicast user terminal powered-off fault processing method and system
CN101827036A (en) Method and device for realizing multicast service configuration of home gateway
CN111787368A (en) Server testing method and device
CN111131840A (en) Method and device for switching network of video service system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20191224

Address after: 314411 Jianshe East Road, Guodian, Yanguan Town, Haining City, Jiaxing City, Zhejiang Province

Patentee after: Haining Yanguan Industrial Investment Co., Ltd

Address before: 518057 Zhongxing building, science and technology south road, Nanshan District Science Park, Guangdong, Shenzhen

Patentee before: ZTE Communications Co., Ltd.

TR01 Transfer of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20130703

Termination date: 20200820

CF01 Termination of patent right due to non-payment of annual fee