Adopt the hardware expanding mode on EPON, to realize the apparatus and method of IPV6 multicast filtering
Technical field
The present invention relates on the EPON network, realize the method and the device of IPV6 multicast filtering.
Background technology
In network transmission process, IP multicast (sending identical packets of information to a plurality of destinations simultaneously) is more much higher than the efficient of clean culture (sending portion separately to each destination).If there is not certain type group Broadcast Control system in the network, network will be handled multicast as broadcasting, this means that the All hosts on the destination network all must be handled all multicasts that send to this network.In the more environment of multicast application type, this may need to grab the performance of cpu cycle of All hosts on the network, influences the transmission performance of network greatly.
IGMP snooping (intercept by the Internet igmpinternet, the technology of IPv4 multicast listener) and MLD snooping (the IPv6 multicast protocol is intercepted) technology on port, filter the unwanted multicast packet of this port in order to solve two-layer equipment exactly, prevent that multicast packets from spreading unchecked, save port effective bandwidth problem and the technology that produces.
IGMP Snooping is a technology that is used for the management and the control of multicast group.It uses the IGMP message.The IGMP agreement operates in network layer, and IGMP Snooping operates in link layer.As shown in Figure 1, IGMP Snooping allows the IGMP session between switch monitoring main frame (main frame 1, main frame 2, main frame 3) and the router four.When switch listens to after main frame 3 mails to the IGMP report (report) of certain group of adding of router four, the port numbering that switch connects this main frame 3 joins the forwarding list of this group, and (switch will be according to the multicast group address of the port correspondence of the switch that comprises in this forwarding list, decide the data of certain certain multicast address of sending from router to forward from which port), equally, when switch uppick IGMP leaves (leave) message, it is just deleted the port numbering that main frame 3 connects from forwarding list.If there is not member's report in a period of time, switch also can be with port deletion from group.After IGMP Snooping starts, multicast router sends the igmp querying message to all VLAN periodically, response of host query message under the VLAN, send to add or report message, so this main frame place port is added in the multicast forward table, its keyword is VLAN label and multicast mac address, when multicast packet, directly transmitting accordingly according to multicast forward table, is not to transmit to all of the port, therefore the bandwidth of having saved switch effectively.
The basic functional principle of MlD snooping is identical with IGMP snooping, and difference only is that MLD Snooping is a multicast packets of intercepting IPv6.And so-called MLD snooping, be meant that ONU equipment is mutual by the IPv6 multicast protocol message of intercepting between STB (set-top box) and the router (MLD agreement), can determine to be connected the multicast group of the current adding of STB of own certain port, thereby only transmit the multicast group data that this STB needs, filter out the function of all the other unwanted multicast group data.
In order in EPON, to realize MlD snooping function, EPON is except specifying the LLID (logical link ID) for the logical links of each point-to-point, also to define a general broadcasting LLID.OLT (optical line terminal) for downlink data packet, if unicast packet, just in address table, search corresponding LLID, if the LLID value of correspondence is inserted in the packet. this bag is a broadcast packet, so just use a general broadcasting LLID value. and ONU is after receiving downstream packets, not one's own Packet Filtering to be fallen. when a new downstream packets arrives, if this bag is a unicast packet, and the LLID of LLID and ONU is complementary, just receive this bag, otherwise just abandon this bag; If this bag is a broadcast packet, and LLID is general broadcasting LLID, just receives this bag.
As shown in Figure 2, the downlink port of ONU (optical network unit) is FE (100,000,000 Ethernet interface) mouthful, and the data rate of EPON mouth reaches 1G, if in the ONU side multicast that does not belong to this ONU subordinate terminal is not filtered, just is easy at this originating port congested.For realizing the multicast filtering function of ONU side, existing technical scheme is as follows:
Has the exchange chip of supporting MLD snooping function, after by hardware the MLD protocol massages in the data channel being caught, the CPU that CPU port from the exchange chip of its appointment delivers to ONU handles, go up the software analysis MLD agreement newspaper of operation by CPU, thereby generate IPv6 multicast filtering table, and control exchange chip according to this filter table and carry out the filtration of descending multicast packet, thereby on ONU, realize the function of MLD Snooping.
Though at present the commercial ONU chip of part is embedded CPU, but because embedded CPU does not provide the MAC network interface, therefore the MLD agreement newspaper that captures of exchange chip can't directly be delivered on the embedded CPU of ONU chip and handle, and therefore increasing a cpu chip with MAC network interface again realizes MLD Snooping function usually.As shown in Figure 3.
Exchange chip (as Marvell6061) carries out packet capturing to all up MLD protocol massages, and the CPU port of these data by it sent to the MAC network interface of the cpu chip that increases.The cpu chip that increases is set up the multicast filtering table according to the MLD protocol massages, and the control exchange chip is realized the IPv6 multicast filtering.
But adopt this method, needing increases a cpu chip, has increased the cost of equipment.
Summary of the invention
The object of the present invention is to provide a kind of method that adopts the hardware expanding mode on EPON, to realize the IPV6 multicast filtering.
For achieving the above object, the present invention adopts following technical scheme:
A kind of method that adopts the hardware expanding mode to realize the IPV6 multicast filtering on EPON is characterized in that may further comprise the steps:
1) after exchange chip is caught MLD protocol massages in the data channel, this message is issued the mac controller chip;
2) the mac controller chip with this message by sending to the built-in with CPU of ONU chip;
3) software on the built-in with CPU is set up IPv6 multicast filtering table by analyzing the MLD protocol massages, realizes the IPV6 multicast filtering.
Wherein, in the described step 1), described exchange chip is issued the mac controller chip by cpu port with this message;
Wherein, described step 2) in, the mac controller chip sends to this message by internal bus the built-in with CPU of ONU chip.
Wherein, IPv6 multicast filtering table is two, and wherein a multicast filtering of showing on the corresponding switching chip port is used to indicate the terminal use under which port to apply for which IPv6 multicast traffic stream; The multicast filtering of the corresponding ONU chip UNI mouth of another table is used to indicate which IPv6 multicast packet of downlink data direction to pass through from the UNI mouth.Built-in with CPU by calling ONU chip itself control interface API and the control interface API of exchange chip, each self-corresponding multicast filtering table information is write the relevant hardware register, reach filtering function to IPv6 multicast data flow on the data passage.
The present invention need not to increase a CPU separately, by the extended MAC controller chip, is implemented in the MLDSnooping function on the ONU chip, greatly reduces cost.In addition, prior art generally can only realize the IPv6 multicast filtering on exchange chip, and the present invention both can realize the IPv6 multicast filtering on exchange chip, can realize the IPv6 multicast filtering again on the ONU chip, thereby saved the UNI mouth downlink data bandwidth from the ONU chip.
Further specify the present invention below in conjunction with the drawings and the specific embodiments.
Description of drawings
Fig. 1 is that MLD and IGMP snooping realize schematic diagram;
Fig. 2 is the structure chart of existing passive optical-fiber network (PON);
Fig. 3 increase has the cpu chip of MAC network interface and realizes MLD snooping;
Fig. 4 the present invention adopts the hardware expanding mode to realize the device embodiment schematic diagram of IPV6 multicast filtering on EPON.
Embodiment
As shown in Figure 4, a kind of device that adopts the hardware expanding mode on EPON, to realize the IPV6 multicast filtering, comprise ONU chip (as PAS6201), support the exchange chip (as Marvell6061) of MLD snooping function and functionality of vlan, the mac controller chip (can be selected the mac controller chip of supporting memory bus (Memory Bus) access mode for use, LAN9115 as SMSC), described ONU chip comprises a built-in with CPU and control interface (management data input/output interface (MDIO)), described exchange chip comprises cpu port and control interface, the cpu port of described exchange chip links to each other with the mac controller chip
Described exchange chip is used for all up MLD protocol massages are carried out packet capturing, and this message data is sent to described mac controller chip by its cpu port (CPU port);
This message that described mac controller chip is used for receiving is sent to the built-in with CPU of ONU chip;
Described built-in with CPU is used to analyze this MLD protocol massages, and sets up the multicast filtering table, realizes the IPV6 multicast filtering.
Wherein, described multicast filtering table is two, correspond respectively to the multicast filtering of switching chip port and the multicast filtering of ONU chip UNI mouth, described built-in with CPU by calling the ONU chip control interface and the control interface of exchange chip, each self-corresponding multicast filtering table information is write respectively in exchange chip and the ONU chip hardware register.
Wherein, described ONU chip links to each other with the mac controller chip by internal bus (Local Bus), and described mac controller chip is delivered to built-in with CPU by internal bus with the MLD protocol massages.
In the said apparatus, the ONU chip can adopt the PAS6201 of Passav é company; Exchange chip can adopt the Marvell6061 of the Marvell company that supports MLD snooping function and functionality of vlan; The mac controller chip can be selected the mac controller chip of supporting memory bus (MemoryBus) access mode for use, as the LAN9115 of SMSC company.The embedded CPU of ONU chip then adopts the mode of visit SRAM to visit the mac controller chip.
A kind of method that adopts the hardware expanding mode to realize the IPV6 multicast filtering on EPON adopts said apparatus, may further comprise the steps:
1) after exchange chip is caught MLD protocol massages in the data channel, this message is issued the mac controller chip;
2) the mac controller chip with this message by sending to the built-in with CPU of ONU chip;
3) software on the built-in with CPU is set up IPv6 multicast filtering table by analyzing the MLD protocol massages, realizes the IPV6 multicast filtering.Built-in with CPU is sent back to the MLD protocol massages of catching in the data channel according to its original data flow.Thereby do not influence in the network original MLD protocol communication between the multicast router and main frame.
Wherein, in the described step 1), described exchange chip is issued the mac controller chip by cpu port with this message;
Wherein, described step 2) in, the mac controller chip sends to this message by internal bus the built-in with CPU of ONU chip.
Wherein, IPv6 multicast filtering table is two, and wherein a multicast filtering of showing on the corresponding switching chip port is used to indicate the terminal use under which port to apply for which IPv6 multicast traffic stream; The multicast filtering of the corresponding ONU chip UNI mouth of another table, be used to indicate which IPv6 multicast packet of downlink data direction to pass through from the UNI mouth. built-in with CPU by calling ONU chip itself control interface API and the control interface API of exchange chip, each self-corresponding multicast filtering table information is write the relevant hardware register, reaches filtering function IPv6 multicast data flow on the data passage.