The implementation method that a kind of interactive network TV service message is isolated between portTechnical field
The present invention relates to the network terminal products such as family gateway equipment, particularly relate to the implementation method that a kind of interactive network TV service message is isolated between port.
Background technology
Along with unification of three nets and IPTV(IPTV) develop rapidly of technology, domestic consumer and the requirement of operator to the IPTV of home gateway product also more and more higher.And in one family, multi-user concurrent carries out video request program has been very general phenomenon simultaneously, the while of how ensureing multiple, program request IPTV service is normally run has been the key index weighing multicast.
At present, in IPTV service realization process, due to IGMP(InternetGroupManagementProtocol, IGMP)/MLD(MulticastListenerDiscover, multicast listener discovery protocol) service message is broadcasting packet, standard protocol stack is broadcast to each physical port for broadcasting packet default treatment, is not carry out isolation processing, can cause the appearance of following bad phenomenon like this:
1) if IGMP/MLD protocol stack does not carry out LAN(LocalAreaNetwork to IGMP/MLDreport message (IGMP/MLD report message), local area network (LAN)) side isolation, cause IPTV2 main frame can receive IPTV1 main frame and send to CPE(CustomerPremiseEquipment, customer terminal equipment) IGMP/MLDv1report, think that host ip TV1 replys, automatic multicast suppresses, initiatively can not send the IGMP/MLDreport of IPTV2 main frame again to CPE, therefore CPE is in snooping(internet group management protocol snooping) situation can aging fall IPTV2 host information, cause CPE can not forwarding multicasting stream to IPTV2 main frame, just there will be IPTV2 cutout phenomenon.
2) if IGMP/MLD protocol stack is not carrying out WAN(WideAreaNetwork to IGMP/MLDquery message (IGMP/MLD query message), wide area network) isolate to LAN side, WAN-side receives a large amount of and that CPE multicast service is irrelevant IGMP/MLDquery message and is forwarded directly on the PC of LAN side, LAN side PC meeting automatic-answering back device IGMP/MLDReport message, causes unnecessary pressure and interference to the IGMP/MLDProxy Business Processing of CPE.
Thus, in order to the interference solved between different IP TV Business Stream or the cutout problem that may occur, the IGMP/MLD service message between physical port is isolated and becomes extremely important.
Summary of the invention
The object of the present invention is to provide the implementation method that a kind of interactive network TV service message is isolated between port, family gateway equipment effectively can be isolated the multicast service message between port, prevent the problems such as multicast service crosstalk between port or cutout, ensure normally carrying out of multicast service.
The object of the invention is to be achieved through the following technical solutions.
The implementation method that interactive network TV service message is isolated between port, be applied to customer terminal equipment, the method specifically comprises:
Before forwarding after the process of multicast service flow process terminates and by multicast message, the type of multicast message to be forwarded is judged according to its target MAC (Media Access Control) address and message format, if multicast message to be forwarded be from WAN mouth be sent to LAN mouth IGMP/MLDQuery service message or from the IGMPReport/Join/Leave(IGMP that LAN mouth is sent to LAN/WAN mouth report/add/leave) or MLDReport/Join/Leave(MLD report/add/leave) service message, then discard processing is carried out to this multicast message.
Wherein, judge that the method for the type of multicast message to be forwarded is:
First judge that multicast message to be forwarded is IGMP service message or MLD service message according to the target MAC (Media Access Control) address of message, then obtain corresponding IGMP service message type or MLD service message type according to IPv4 message format.
Wherein, if first three byte of the target MAC (Media Access Control) address of multicast message to be forwarded respectively correspondence be 0x01,0x00,0x5E, then judge that multicast message to be forwarded is as IGMP service message; If the first two byte of the target MAC (Media Access Control) address of multicast message to be forwarded is 0x33, then judge that multicast message to be forwarded is as MLD service message.
Wherein, if multicast message to be forwarded is not be sent to the IGMP/MLDQuery service message of LAN mouth from WAN mouth, be sent to IGMPReport/Join/Leave or the MLDReport/Join/Leave service message of LAN/WAN mouth from LAN mouth, then normal forward process is carried out to this multicast message.
Compared with prior art, the embodiment of the present invention has following beneficial effect:
1) implementation method is simple, efficient: do not have extra software and hardware specific demand, only needs to revise a little at original basis of software just can realize, and does not affect the original performance of family gateway equipment;
2) the concurrent IPTV service of different port has been ensured: user can be connected into different ports and carry out IPTV service program request, realize effective isolation of multicast service message, effectively avoid interfering with each other of service message between multiple IGMP/MLD Business Stream, thus ensure that the multiple IPTV service stream of program request simultaneously normally works.
Accompanying drawing explanation
Fig. 1 is the use scenes schematic diagram of home gateway interactive network TV service.
Fig. 2 is the implementation method flow chart that interactive network TV service message that the embodiment of the present invention provides is isolated between port.
Embodiment
In order to make object of the present invention, technical scheme and advantage clearly understand, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.
In order to meet the user demand of the multiple IPTV service of multi-user's program request simultaneously in family, ensure that IPTV service normally works, the invention provides the implementation method that a kind of interactive network TV service message is isolated between port, main realization: 1. WAN mouth is to the isolation of the IGMP/MLDQuery message of LAN mouth, when being forwarded directly on the PC of LAN side after solution WAN-side receives a large amount of IGMP/MLDquery message, LAN side PC automatic-answering back device IGMP/MLDReport message, thus to the IGMP/MLDProxy Business Processing build-up of pressure of CPE and the problem of interference.2. LAN mouth is isolated to IGMPReport/Join/Leave and the MLDReport/Join/Leave message of LAN/WAN mouth, when solving the multiple IPTV service of multi-user's program request simultaneously in family, the spontaneous multicast response message of restricting host suppresses, and causes the problem occurring multicast cutoff.IGMP/MLD service message isolation features between opening in default situations port.
In the present embodiment, the use scenes of home gateway interactive network TV service as shown in figure, wherein,
DSLAM, IGMP/MLDProxy, multicast source server, can be understood as operator and provide IPTV access network and multicast services content;
CPE, as IGMP/MLDproxy in interactive television business, carry out the intermediate gateway device of multicast service agency, maintenance and transmitting multicast data process, namely the present invention realizes multicast service isolation features on CPE;
IPTV1/IPTV2, as IGMP/MLDclient, simple understanding is exactly IPTV set top box, carries out single multicast service program request, leaves the playing terminal equipment of process.
The method that in the present embodiment, interactive network TV service report is isolated between port as shown in Figure 2, comprises the following steps:
Step 201: multicast message, after the business flow processing of multicast service module is complete, E-Packets when processing and judges according to the target MAC (Media Access Control) address of message between port.If first three byte of target MAC (Media Access Control) address respectively correspondence is 0x01,0x00,0x5E, be then confirmed to be IGMP service message, if the first two byte of target MAC (Media Access Control) address is 0x33, then confirm MLD service message.
Step 202: if IGMP message, obtains corresponding IGMP type of message according to IPv4 message format, judge message from WAN mouth flow into and type of message is Query message, then carry out packet loss process, reach isolation WAN to LAN Query message.
Step 203: judge message from LAN mouth flow into and type of message is Report/Join/Leave message, then carry out packet loss process, arrive isolation LAN to LAN/WAN Report/Join/Leave message; Message in other situations then walks data retransmission flow process.
Step 204: if MLD message, obtains corresponding MLD type of message according to IPv4 message format, judge message from WA mouth flow into and type of message is Query message, then carry out packet loss process, reach isolation WAN to LAN Query message.
Step 205: judge message from LAN mouth flow into and type of message is Report/Join/Leave message, then carry out packet loss process, arrive isolation LAN to LAN/WAN Report/Join/Leave message; Message in other situations then walks data retransmission flow process.
In said method flow process, because discard processing operation carries out performing in the port repeat process of multicast service message after multicast service Message processing is complete, so under the prerequisite not affecting normal multicast service, meet the demand of multi-user's program request simultaneously IPTV service, the cutout problem solving the interference between different IP TV Business Stream or may occur.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, all any amendments done within the spirit and principles in the present invention, equivalent replacement and improvement etc., all should be included within protection scope of the present invention.