CN104601476A - Multicast data message forwarding method and device and switch - Google Patents

Multicast data message forwarding method and device and switch Download PDF

Info

Publication number
CN104601476A
CN104601476A CN201310532656.3A CN201310532656A CN104601476A CN 104601476 A CN104601476 A CN 104601476A CN 201310532656 A CN201310532656 A CN 201310532656A CN 104601476 A CN104601476 A CN 104601476A
Authority
CN
China
Prior art keywords
forwarding
multicast
address
table item
message
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.)
Granted
Application number
CN201310532656.3A
Other languages
Chinese (zh)
Other versions
CN104601476B (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.)
XFusion Digital Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201310532656.3A priority Critical patent/CN104601476B/en
Publication of CN104601476A publication Critical patent/CN104601476A/en
Application granted granted Critical
Publication of CN104601476B publication Critical patent/CN104601476B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The embodiment of the invention provides a multicast data message forwarding method and device and a switch, and relates to the field of network security. The multicast data message forwarding method comprises the following steps: when a DHCP (Dynamic Host Configuration Protocol) release message exists, acquiring an IP (Internet Protocol) address carried in the DHCP release message; deleting a forwarding table entry having the IP address from a pre-stored multicast forwarding table; and forwarding a received multicast data message according to the multicast forwarding table from which the forwarding table entry is deleted. The forwarding table entry having the IP address needing to be released is deleted, and the received multicast data message is forwarded according to the multicast forwarding table from which the forwarding table entry is deleted, so that the problem of bandwidth waste caused by continuous sending of the multicast data message to a user side according to the forwarding table entry by an access switch after the user side releases the IP address in the prior art is solved, and the effects of rapidly interrupting multicast data streams transmitted to the user side and saving the bandwidth are achieved.

Description

Multicast data packet forwarding method, device and switch
Technical field
The present invention relates to network safety filed, particularly a kind of multicast data packet forwarding method, device and switch.
Background technology
IP(Internet Protocol, Internet protocol) cast communication refers to IP multicast data message and sends from a source, and be forwarded to one group of specific receiving terminal, IP multicast effectively can be saved the network bandwidth, reduce offered load, so at IPTV(IP TV), all many-sides such as real time data transmission and multimedia conferencing are all widely used.
User side is when needs network service, can first to DHCP(Dynamic Host ConfigurationProtocol, DHCP) server application dynamic IP addressing, in the process of application dynamic IP addressing, the access switch of process can enables dynamic host configuration snoopy protocol DHCPSnooping, with listen for user end and the DHCP protocol massages communicated between Dynamic Host Configuration Protocol server, the dynamic IP addressing of this user side can be known according to DHCP protocol massages.
After this user side obtains dynamic IP addressing, user side can ask network service, such as, when the multicast traffic stream of the multicast group A that this user side needs on-demand multicasting source server to send, IGMP(Internet Group Management Protocol can be sent to couple in router, igmpinternet) join message, to tell that couple in router downstream has user to need the multicast traffic stream of multicast group A; Access switch can multicast enabled snoopy protocol IGMP Snooping, join message with the IGMP intercepted between this user side and couple in router, access switch know the port that access switch uses when being truncated to this IGMP and joining message and IGMP join message in the multicast group address of entrained multicast group A, the multicast group address of this port and multicast group A is recorded in multicast forward table as a forwarding-table item by access switch; Couple in router and multicast source server by PIM(Protocol Independent Multicast, Protocol Independent Multicast) after protocol interaction, obtain the multicast traffic stream of multicast group A, and send the multicast traffic stream obtained to access switch; The multicast traffic stream of multicast group A, according to the forwarding-table item finding the multicast group address with multicast group A, is sent to user side according to the port in this forwarding-table item by access switch.
Realizing in process of the present invention, inventor finds that prior art at least exists following problem: when user side is without any need for network service, if when not leaving multicast group A just to the dynamic IP addressing of Dynamic Host Configuration Protocol server release application, the forwarding-table item produced when applying for multicast traffic stream before now access switch still existing this user side, the transmission multicast traffic stream that still can continue to this user side, causes bandwidth waste.
Summary of the invention
In order to solve in prior art after user side releasing IP addresses, the problem of the bandwidth waste that access switch still continues to send multicast data message to this user side according to forwarding-table item and causes, embodiments provides a kind of multicast data packet forwarding method, device and switch.Described technical scheme is as follows:
First aspect, provide a kind of multicast data packet forwarding method, it is characterized in that, described method comprises:
When exist be used to indicate user side request discharge the dynamic host configuration protocol DHCP release message of the Internet protocol IP address of described user side time, obtain described DHCP and discharge in message the described IP address of carrying;
The forwarding-table item with described IP address is deleted in the multicast forward table prestored;
Described multicast forward table according to deleting after described forwarding-table item forwards the multicast data message received.
In the first possible execution mode of first aspect, before discharging the described IP address of carrying in message at the described DHCP of described acquisition, also comprise:
Receive and be used to indicate the igmpinternet IGMP that described user side request adds multicast group and join message;
Obtain described IGMP to join message the IP address, the multicast group address that carry and receive the port that described IGMP joins message;
Described IP address, described multicast group address and described port are defined as a forwarding-table item;
Described forwarding-table item is put into described multicast forward table, the multicast forward table prestored described in being defined as by described multicast forward table.
In conjunction with the first possible execution mode of first aspect or first aspect, in the execution mode that the second is possible, described described IP address, described multicast group address and described port be defined as a forwarding-table item before, also comprise:
Detect described multicast group address and whether described port has been present in an existing forwarding-table item of described multicast forward table simultaneously;
Be present in an existing forwarding-table item of described multicast forward table if testing result is described multicast group address and described port simultaneously, then described IP be added in described forwarding-table item;
Also be not present in any one existing forwarding-table item of described multicast forward table if testing result is described multicast group address and described port simultaneously, then perform the step described IP address, described multicast group address and described port being defined as a forwarding-table item.
In conjunction with the first possible execution mode of first aspect, first aspect or the possible execution mode of the second of first aspect, in the execution mode that the third is possible, described in the multicast forward table prestored delete there is the forwarding-table item of described IP address before, also comprise:
The forwarding-table item with described IP address is searched in the described multicast forward table prestored;
Detect in described forwarding-table item and whether also there are other IP addresses;
If testing result is described forwarding-table item also there is other IP addresses, then the described DHCP deleted in described forwarding-table item discharges the described IP address that message carries;
If testing result is described forwarding-table item there is not other IP addresses, then perform the step of deleting in the multicast forward table prestored and there is the forwarding-table item of described IP address.
The execution mode possible in conjunction with the second of the first possible execution mode of first aspect, first aspect, first aspect or the third possible execution mode of first aspect, in the 4th kind of possible execution mode, the described described multicast forward table according to deleting after described forwarding-table item forwards the multicast data message received, and comprising:
When receiving multicast data message, obtain the multicast group address carried in described multicast data message;
The forwarding-table item in the described multicast forward table after described forwarding-table item with described multicast group address is deleted in inquiry;
Described multicast data message is sent by the port in described forwarding-table item.
Second aspect, provide a kind of multicast data packet forwarding device, it is characterized in that, described device comprises:
First acquisition module, for when exist be used to indicate user side request discharge the dynamic host configuration protocol DHCP release message of the Internet protocol IP address of described user side time, obtain described DHCP and discharge in message the described IP address of carrying;
First removing module, for deleting the forwarding-table item with described IP address in the multicast forward table prestored;
Forwarding module, for forwarding according to the described multicast forward table deleted after described forwarding-table item the multicast data message received.
In the first possible execution mode of second aspect, described device also comprises:
Receiver module, is used to indicate the igmpinternet IGMP that described user side request adds multicast group joins message for receiving;
Second acquisition module, to join message the IP address, the multicast group address that carry and receive the port that described IGMP joins message for obtaining described IGMP;
Determination module, for being defined as a forwarding-table item by described IP address, described multicast group address and described port;
Put into module, for described forwarding-table item is put into described multicast forward table, the multicast forward table prestored described in described multicast forward table is defined as.
In conjunction with the first possible execution mode of second aspect or second aspect, in the execution mode that the second is possible, described device also comprises:
First detection module, for detecting described multicast group address and whether described port has been present in an existing forwarding-table item of described multicast forward table simultaneously;
Add module, in the testing result of described first detection module be described multicast group address and described port be present in an existing forwarding-table item of described multicast forward table simultaneously time, described IP is added in described forwarding-table item;
Determination module, also in the testing result of described first detection module be described multicast group address and described port be not also present in any one existing forwarding-table item of described multicast forward table simultaneously time, described IP address, described multicast group address and described port are defined as a forwarding-table item.
In conjunction with the first possible execution mode of second aspect, second aspect or the possible execution mode of the second of second aspect, in the execution mode that the third is possible, described device also comprises:
Search module, for searching the forwarding-table item with described IP address in the described multicast forward table prestored;
Second detection module, for detecting in described forwarding-table item whether also there are other IP addresses;
Second removing module, in the testing result of described second detection module be described forwarding-table item also there are other IP addresses time, the described DHCP deleted in described forwarding-table item discharges the described IP address that message carries;
First removing module, also in the testing result of described second detection module be described forwarding-table item there are not other IP addresses time, delete in the multicast forward table prestored and there is the forwarding-table item of described IP address.
The execution mode possible in conjunction with the second of the first possible execution mode of second aspect, second aspect, second aspect or the third possible execution mode of second aspect, in the 4th kind of possible execution mode, described forwarding module, comprising:
Acquiring unit, for when receiving multicast data message, obtains the multicast group address carried in described multicast data message;
Query unit, for inquiring about the forwarding-table item in the described multicast forward table after the described forwarding-table item of deletion with described multicast group address;
Transmitting element, for sending described multicast data message by the port in described forwarding-table item.
The third aspect, provides a kind of switch, it is characterized in that, described switch comprises the multicast data packet forwarding device described in the possible execution mode of second aspect and second aspect.
Fourth aspect, additionally provides a kind of switch, and this switch comprises processor and transmitter, described processor and the coupling of described transmitter;
Described processor, for when exist be used to indicate user side request discharge the dynamic host configuration protocol DHCP release message of the Internet protocol IP address of described user side time, obtain described DHCP and discharge in message the described IP address of carrying;
Described processor, also for deleting the forwarding-table item with described IP address in the multicast forward table prestored;
Described transmitter, forwards for the described multicast forward table deleted according to described processor after described forwarding-table item the multicast data message received.
In the first possible implementation of fourth aspect, described switch also comprises receiver, and described processor is also coupled with receiver;
Described receiver, is used to indicate the igmpinternet IGMP that described user side request adds multicast group joins message for receiving;
Described processor, the described IGMP also received for obtaining described receiver joins message the IP address, the multicast group address that carry and receive the port that described IGMP joins message;
Described processor, also for described IP address, described multicast group address and described port are defined as a forwarding-table item;
Described processor, also for described forwarding-table item is put into described multicast forward table, the multicast forward table prestored described in described multicast forward table is defined as.
In conjunction with the first possible implementation of fourth aspect, in the implementation that the second is possible,
Described processor, also for detecting described multicast group address and whether described port has been present in an existing forwarding-table item of described multicast forward table simultaneously;
Described processor, also in testing result be described multicast group address and described port be present in an existing forwarding-table item of described multicast forward table simultaneously time, described IP is added in described forwarding-table item;
Described processor, also in testing result be described multicast group address and described port be not also present in any one existing forwarding-table item of described multicast forward table simultaneously time, described IP address, described multicast group address and described port are defined as a forwarding-table item.
In conjunction with the first possible implementation of fourth aspect or the possible implementation of the second of fourth aspect, in the implementation that the third is possible,
Described processor, also for searching the forwarding-table item with described IP address in the described multicast forward table prestored;
Described processor, also for detecting in described forwarding-table item whether also there are other IP addresses;
Described processor, also in testing result be described forwarding-table item also there are other IP addresses time, the described DHCP deleted in described forwarding-table item discharges the described IP address that message carries;
Described processor, also in testing result be described forwarding-table item there are not other IP addresses time, delete in the multicast forward table prestored and there is the forwarding-table item of described IP address.
The implementation possible in conjunction with the second of the first possible implementation of fourth aspect, fourth aspect or the third possible implementation of fourth aspect, in the 4th kind of possible implementation,
Described processor, also for when receiving multicast data message, obtains the multicast group address carried in described multicast data message;
Described processor, also for inquiring about the forwarding-table item in the described multicast forward table after the described forwarding-table item of deletion with described multicast group address;
Described transmitter, also sends described multicast data message for the port in the described forwarding-table item that inquired by described processor.
The beneficial effect that the technical scheme that the embodiment of the present invention provides is brought is:
By the IP address that increase by forwarding-table item is corresponding with port, when the some user side releasing IP addresses of perception, in the multicast forward table prestored, delete the forwarding-table item with this IP address, the multicast forward table according to deleting after this forwarding-table item forwards the multicast data message received; Solve in prior art after user side releasing IP addresses, the problem of the bandwidth waste that access switch still continues to send multicast data message to this user side according to forwarding-table item and causes; When determining that user side releases IP address, then delete the forwarding-table item with this IP address, like this when again getting the multicast data message relevant to this IP address, because the forwarding-table item relevant to this IP address is deleted, therefore according to the port in original forwarding-table item, multicast data message can not be handed down to this user side again, reach and can disconnect the multicast traffic stream sent to this user side fast, save the effect of bandwidth.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, below the accompanying drawing used required in describing embodiment is briefly described, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the schematic diagram of the implementation environment involved by multicast data packet forwarding method provided in the present invention's part embodiment;
Fig. 2 is the method flow diagram of the multicast data packet forwarding method provided in one embodiment of the invention;
Fig. 3 is the method flow diagram of the multicast data packet forwarding method provided in another embodiment of the present invention;
Fig. 4 A is the schematic diagram of the implementation environment involved by multicast data packet forwarding method provided in another part embodiment of the present invention;
Fig. 4 B is the method flow diagram of the multicast data packet forwarding method provided in another embodiment of the present invention;
Fig. 5 is the structural representation of the multicast data packet forwarding device provided in one embodiment of the invention;
Fig. 6 is the structural representation of the multicast data packet forwarding device provided in another embodiment of the present invention;
Fig. 7 is the structural representation of the switch provided in one embodiment of the invention;
Fig. 8 is the structural representation of the switch provided in another embodiment of the present invention.
Embodiment
For making the object, technical solutions and advantages of the present invention clearly, below in conjunction with accompanying drawing, embodiment of the present invention is described further in detail.
Shown in Figure 1, the schematic diagram of the implementation environment involved by multicast data packet forwarding method provided in section Example of the present invention is provided, this implementation environment can comprise: multicast source server 102, Dynamic Host Configuration Protocol server 104, couple in router 106, access switch 108 and user side 110, access switch 108 is connected with user side 110 and couple in router 106 respectively, and couple in router 106 is connected with multicast source server 102, Dynamic Host Configuration Protocol server 104 respectively.User side 110, when needs network service, needs to send one for obtaining message, to obtain a dynamic IP addressing to Dynamic Host Configuration Protocol server 104 request dispatching dynamic IP addressing DHCP to this Dynamic Host Configuration Protocol server 104; When user side 110 no longer needs network service, then send to Dynamic Host Configuration Protocol server 104 DHCP being used for discharging to Dynamic Host Configuration Protocol server 104 this dynamic IP addressing and discharge message.
User side 110 is when needing the multicast packet obtaining the transmission of multicast source server 102, first need to send IGMP to couple in router 106 to join message, to inform the multicast traffic stream that this couple in router 106 downstream has user to need multicast source server 102 to send, after couple in router 106 and multicast source server 102 pass through PIM protocol interaction, the multicast traffic stream that multicast source server 102 sends by couple in router 106 sends access switch 108, by adding switch 108, multicast traffic stream is sent to user side 110.
Access switch 108 can be intercepted and captured by enable DHCP Snooping and analyze DHCP and obtain message, DHCP release message and other messages protocol-dependent with DHCP, and access switch 108 can also be intercepted and captured by enable IGMP Snooping and analyze IGMP and join message and other messages protocol-dependent with IGMP.
Shown in Figure 2, the method flow diagram of the multicast data packet forwarding method provided in one embodiment of the invention is provided.The present embodiment is mainly applied to this multicast data packet forwarding method and is illustrated in the access switch 108 in Fig. 1.This multicast data packet forwarding method can comprise:
201, when there is the DHCP being used to indicate the Internet protocol IP address of user side request releasing user end and discharging message, obtain DHCP and discharge the IP address of carrying in message;
Enable DHCP Snooping message through all DHCP types of access switch 108 can be intercepted in access switch 108, such as asking the DHCP assignment message of Dynamic Host Configuration Protocol server distributing IP address, or for asking the DHCP of Dynamic Host Configuration Protocol server releasing IP addresses to discharge message etc.
DHCP Snooping can also resolve the DHCP message intercepted, and such as can discharge message to DHCP and resolve, and discharges the IP address of carrying in message to obtain DHCp.Also namely, when a user side request releasing IP addresses, access switch 108 can or that user side want releasing IP addresses.
202, in the multicast forward table prestored, delete the forwarding-table item with IP address;
Under normal circumstances, add switch 108 to forward multicast data message according to forwarding-table item.Usually, forwarding-table item comprises multicast group address and port, add switch first according to multicast group address entrained in multicast data message, find the forwarding-table item with this multicast group address, then this multicast data message is sent from the port this forwarding-table item.
203, the multicast forward table according to deleting after forwarding-table item forwards the multicast data message received.
In sum, the multicast data packet forwarding method provided in the embodiment of the present invention, by the IP address that increase by forwarding-table item is corresponding with port, when the some user side releasing IP addresses of perception, in the multicast forward table prestored, delete the forwarding-table item with this IP address, the multicast forward table according to deleting after this forwarding-table item forwards the multicast data message received; Solve in prior art after user side releasing IP addresses, the problem of the bandwidth waste that access switch still continues to send multicast data message to this user side according to forwarding-table item and causes; When getting the multicast data message relevant to this IP address, because the forwarding-table item relevant to this IP address is deleted, therefore according to the port in forwarding-table item, multicast data message can not be handed down to this user side again, reach and can disconnect the multicast traffic stream sent to this user side fast, save the effect of bandwidth.
Shown in Figure 3, it illustrates the method flow diagram of the multicast data packet forwarding method provided in another embodiment of the present invention, the present embodiment is mainly applied to this multicast data packet forwarding method and is illustrated in the access switch 108 in Fig. 1.This multicast data packet forwarding method can comprise:
301, receive and be used to indicate user side request and add IGMP and join message;
When user side is wanted to obtain multicast packet, first need to send IGMP to the couple in router be connected with the server sending this multicast packet to join message, in the process, access switch can enable IGMPSnooping, joins message through the IGMP of access switch to intercept.
The port that the IP address that 302, acquisition IGMP join message carries, multicast group address and reception IGMP join message;
Access switch is after being truncated to IGMP and joining message, can join message to IGMP and carry out, generally, IGMP joins message and can comprise source IP address, target ip address, corresponding, this access switch then can obtain IP address that IGMP joins message entrained (namely IGMP join message in source IP address), multicast group address (namely IGMP join message in target ip address) and the port of access switch when receiving IGMP and joining message.
303, IP address, multicast group address and port are defined as a forwarding-table item;
Joined message by each IGMP IP address of middle acquisition, multicast group address and port is defined as a forwarding-table item.
304, forwarding-table item is put into multicast forward table, this multicast forward table is defined as the multicast forward table prestored;
Include three forwarding-table items in this multicast forward table, wherein all can comprise multicast group address, IP address and port in each forwarding-table item, its middle port is the address joined message for obtaining IGMP.Refer to shown in table 1:
Multicast group address IP address Port
GROUP1 IP1 PORT1
GROUP2 IP2 PORT2
GROUP3 IP1 PORT1
Table 1
The forwarding-table item that in table 1, each behavior is determined, multicast group address and port is included in each list item, when access switch gets the multicast data message with multicast group address, according to the port corresponding with this multicast group address, multicast data message can be sent.
It should be noted that, in actual applications, this forwarding-table item also may comprise other content, such as VLAN(Virtual Local Area Network, VLAN) network mark knowledge etc.
305, when there is the DHCP being used to indicate the IP address of user side request releasing user end and discharging message, obtain DHCP and discharge the IP address of carrying in message;
When a user side no longer needs network service, the dynamic IP addressing that this user side has can be discharged to Dynamic Host Configuration Protocol server, now, user side can send a DHCP being used to indicate the IP address of user side request releasing user end to Dynamic Host Configuration Protocol server and discharge message, to discharge this IP to Dynamic Host Configuration Protocol server.In this process, access switch can enable DHCP Snooping, discharges message to intercept and capture this DHCP, and resolves this DHCP and discharge message and discharge IP address entrained in message to obtain this DHCP, and the user side namely with this IP address wants releasing IP addresses.
306, in the multicast forward table prestored, delete the forwarding-table item with IP address;
When a user side wants releasing IP addresses, then show that this user side does not rethink acquisition network service, therefore in order to avoid again sending multicast packet to this user side, now access switch can delete the forwarding-table item with this IP address.For example, can join and be shown in Table 2:
Table 2
When the IP address of carrying in the DHCP release message parsed is IP1, then according to deleting the forwarding-table item with this IP1 in the multicast forward table prestored, namely the forwarding-table item of the first row and the forwarding-table item of the third line is deleted, like this when access switch receives the multicast data message with multicast group address GROUP1 or GROUP3 again, owing to searching the forwarding-table item less than having this PORT1, the multicast data message therefore this with multicast group address GROUP1 or GROUP3 sends to the user side with IP1 address.
307, when receiving multicast data message, obtain the multicast group address carried in multicast data message;
When access switch is when receiving multicast data message, obtain the multicast group address carried in this multicast data message.
308, the forwarding-table item in the multicast forward table after forwarding-table item with multicast group address is deleted in inquiry;
There is in the multicast forward table that inquiry is preserved after step 306 forwarding-table item of this multicast group address, for example, still see table 2, such as this multicast group address is GROUP2, then obtain the forwarding-table item with this GROUP2, the port PO RT2 of this forwarding-table item information.
309, send multicast data message by the port in forwarding-table item.
Still see table 2, when the forwarding-table item of forwarding-table item corresponding to the second row obtained, the multicast data message that can be GROUP2 by multicast group address according to this port PO RT2 sends the user side corresponding with this port PO RT2.
In sum, the multicast data packet forwarding method provided in the embodiment of the present invention, by the IP address that increase by forwarding-table item is corresponding with port, when the some user side releasing IP addresses of perception, in the multicast forward table prestored, delete the forwarding-table item with this IP address, the multicast forward table according to deleting after this forwarding-table item forwards the multicast data message received; Solve in prior art after user side releasing IP addresses, the problem of the bandwidth waste that access switch still continues to send multicast data message to this user side according to forwarding-table item and causes; When getting the multicast data message relevant to this IP address, because the forwarding-table item relevant to this IP address is deleted, therefore according to the port in forwarding-table item, multicast data message can not be handed down to this user side again, reach and can disconnect the multicast traffic stream sent to this user side fast, save the effect of bandwidth.
In actual applications, refer to shown in Fig. 4 A, the schematic diagram of the implementation environment involved by multicast data packet forwarding method provided in another part embodiment of the present invention is provided, in implementation environment shown in Fig. 4 A compared with the implementation environment shown in Fig. 1, except multicast source server 102 can be comprised, Dynamic Host Configuration Protocol server 104, couple in router 106, outside access switch 108 and user side 110, also may comprise hub (HUB) 112, hub is used at least two user sides 110 to be connected in a port of access switch 108, also be, multiple user sides that hub connects can obtain the identical data issued from this port switch simultaneously.Now, when being connected to the multiple user sides on same hub when applying for having the multicast data message of same multicast group address, in forwarding-table item, the IP address corresponding with this multicast group data address and port is then multiple simultaneously.In this case, when the IP address of in forwarding-table item is released, in order to ensure that other user sides still can receive multicast data message normally, when also there is other IP address, only delete d/d IP address in this forwarding-table item, specifically see the description to Fig. 4 B.
Refer to shown in Fig. 4 B, it illustrates the method flow diagram of the multicast data packet forwarding method provided in another embodiment of the present invention, the present embodiment is mainly applied to this multicast data packet forwarding method and is illustrated in the access switch 108 in Fig. 1.This multicast data packet forwarding method can comprise:
401, receive and be used to indicate the IGMP that user side request adds multicast group and join message;
When user side is wanted to obtain multicast packet, first need to send IGMP to the couple in router be connected with the server sending this multicast packet to join message, in the process, access switch can enable IGMPSnooping, joins message through the IGMP of access switch to intercept.
The port that the IP address that 402, acquisition IGMP join message carries, multicast group address and reception IGMP join message;
Access switch is after being truncated to IGMP and joining message, can join message to IGMP and carry out, generally, IGMP joins message and can comprise source IP address, target ip address, corresponding, this access switch then can obtain IP address that IGMP joins message entrained (namely IGMP join message in source IP address), multicast group address (namely IGMP join message in target ip address) and the port of access switch when receiving IGMP and joining message.
403, detect this multicast group address and whether this port has been present in an existing forwarding-table item of multicast forward table simultaneously, be present in an existing forwarding-table item of multicast forward table if testing result is multicast group address and port simultaneously, then perform 404, also be not present in any one existing forwarding-table item of multicast forward table if testing result is multicast group address and port simultaneously, then perform 405;
If when one of them user side connecting multiple user sides of same hub has applied for the multicast traffic stream with some multicast group address, then access switch can set up the forwarding-table item that has this multicast group address and the port corresponding with this hub; When connecting another user side of this hub and also applying for the multicast traffic stream with this multicast group address, then need to detect this multicast group address and whether this port has been present in an existing forwarding-table item of multicast forward table simultaneously.
404, be present in an existing forwarding-table item of multicast forward table if testing result is multicast group address and port simultaneously, then IP be added in forwarding-table item;
For example, when the user side A with IP1 is connected in a hub with the user side B with IP2 simultaneously, this hub is connected with access switch by port one, when user side A has applied for the multicast data message of multicast group address P, access switch can set up a forwarding-table item for user side A, has multicast group address P, port one and IP1 in this forwarding-table item; And when user side B also wants the multicast data message obtaining multicast group address P transmission, then can send an IGMP to join message, access switch is after this IGMP of acquisition joins message, resolving IP address entrained in this IGMP message is IP1, now can detect that this multicast group address P and port a has been present in this forwarding-table item existing of multicast forwarding simultaneously, at this moment then need the IP address ip 2 of this user side B to add in this forwarding-table item.That is, when being connected to the multicast data message that the same multicast group address of multiple user side acquisition request on same hub sends, corresponding in the forwarding-table item of this port and this multicast group address simultaneously and can have multiple IP address.Refer to shown in table 3:
Multicast group address IP address Port
GROUP1 IP1、IP4 PORT1
GROUP2 IP2 PORT2
GROUP3 IP1 PORT1
Table 3
The user side 1 in table 3 with IP1 and the user side 4 with IP2 connect on one hub simultaneously, switch is connected with this hub by port PO RT1, user side 1 and user side 4 all request and obtain multicast group address is the multicast data message that GROUP1 sends, and the IP address now comprised in first forwarding-table item is then IP1 and IP2.
405, be not also present in any one existing forwarding-table item of multicast forward table if testing result is multicast group address and port simultaneously, then IP address, multicast group address and port be defined as a forwarding-table item;
When multicast group address and port are not also present in any one existing forwarding-table item of multicast forward table simultaneously, then show to need to set up a new forwarding-table item.For example, when the multicast data message that the user side B acquisition request multicast group address GROUP2 with IP2 sends, the GROUP1 then detected and port PO RT2 is not also present in forwarding data table simultaneously, now can set up the forwarding-table item that has this GROUP1, port PO RT2 and IP2, refer to shown in table 3.
406, forwarding-table item is put into multicast forward table, multicast forward table is defined as the multicast forward table prestored;
407, when there is the DHCP being used to indicate the IP address of user side request releasing user end and discharging message, obtain DHCP and discharge the IP address of carrying in message;
When a user side no longer needs network service, can discharge the dynamic IP addressing that this user side has to Dynamic Host Configuration Protocol server, now, user side can send a DHCP to Dynamic Host Configuration Protocol server and discharge message, to discharge this IP to Dynamic Host Configuration Protocol server.In this process, access switch can enable DHCPSnooping, discharges message to intercept and capture this DHCP, and resolves this DHCP and discharge message and discharge IP address entrained in message to obtain this DHCP, and the user side namely with this IP address wants releasing IP addresses.
408, in the multicast forward table prestored, search the forwarding-table item with IP address;
When a user side wants releasing IP addresses, then show that this user side does not rethink acquisition network service, therefore in order to avoid again sending multicast packet to this user side, now access switch can delete the forwarding-table item with this IP address.For example, can join and be shown in Table 3, when this IP address is IP1, then the forwarding-table item with this IP1 comprises forwarding-table item corresponding to the first row and forwarding-table item corresponding to the third line.
409, detect in forwarding-table item whether also there are other IP addresses, if testing result is forwarding-table item also there is other IP addresses, then perform 410, if testing result is forwarding-table item there is not other IP addresses, then perform 411;
As from the foregoing, an IP address not only may be there is in some forwarding-table item, therefore in order to ensure that the user side corresponding to other IP addresses still normally can receive multicast data message, before deleting the forwarding-table item corresponding to this IP address, also need to detect in forwarding-table item whether also there are other IP addresses.
410, if testing result is forwarding-table item also there is other IP addresses, then the DHCP deleted in forwarding-table item discharges the IP address that message carries;
When testing result is that forwarding-table item also exists other IP addresses, then show to also have other user side needs to continue according to the multicast group address in this forwarding-table item and port accepts multicast data message at present, now only need the DHCP determined in delete step 407 to discharge IP address entrained in message.Refer to shown in table 3, when the DHCP IP address discharged in message is IP1, the forwarding-table item with IP1 then got is the first row forwarding-table item and the third line forwarding-table item, owing to detecting that the first row forwarding-table item also has other IP address ip 4, therefore only need to delete this IP1 in the first row forwarding-table item.
411, if testing result is forwarding-table item there is not other IP addresses, then in the multicast forward table prestored, delete the forwarding-table item with IP address;
When testing result is that forwarding-table item does not exist other IP addresses, then show that the user side needs corresponding to IP address only having this DHCP to discharge entrained by message at present continue according to the multicast group address in this forwarding-table item and port accepts multicast data message, therefore in order to ensure that this user side no longer receives the multicast data message of this multicast group address transmission, the DHCP determined in delete step 407 is now then needed to discharge IP address entrained in message.Refer to shown in table 3, when the DHCP IP address discharged in message is IP1, the forwarding-table item with IP1 then got is the first row forwarding-table item and the third line forwarding-table item, owing to detecting that the third line forwarding-table item does not have other IP address, therefore directly deletes the third line forwarding-table item.
For example, when the IP address ip 1 had in his-and-hers watches 3 is deleted, the forwarding data table after deletion can specifically can see Fig. 4:
Table 4
412, the multicast forward table according to deleting after forwarding-table item forwards the multicast data message received.
Access switch forwards according to the multicast forward table deleted after forwarding-table item the multicast data message received, and can comprise:
The first, when receiving multicast data message, obtain the multicast group address carried in multicast data message;
The second, the forwarding-table item in the multicast forward table after forwarding-table item with multicast group address is deleted in inquiry;
There is in the multicast forward table that inquiry is preserved after step 410 and 411 forwarding-table item of this multicast group address, for example, still see table 4, such as this multicast group address is GROUP2, then obtain the forwarding-table item with this GROUP2, the port PO RT2 of this forwarding-table item information.
3rd, send multicast data message by the port in forwarding-table item.
Still see table 4, when the forwarding-table item of forwarding-table item corresponding to the second row obtained, the multicast data message that can be GROUP2 by multicast group address according to this port PO RT2 sends the user side corresponding with this port PO RT2.
In sum, the multicast data packet forwarding method provided in the embodiment of the present invention, by the IP address that increase by forwarding-table item is corresponding with port, when the some user side releasing IP addresses of perception, in the multicast forward table prestored, delete the forwarding-table item with this IP address, the multicast forward table according to deleting after this forwarding-table item forwards the multicast data message received; Solve in prior art after user side releasing IP addresses, the problem of the bandwidth waste that access switch still continues to send multicast data message to this user side according to forwarding-table item and causes; When getting the multicast data message relevant to this IP address, because the forwarding-table item relevant to this IP address is deleted, therefore according to the port in forwarding-table item, multicast data message can not be handed down to this user side again, reach and can disconnect the multicast traffic stream sent to this user side fast, save the effect of bandwidth.
It should be added that, access switch is when the DHCP for acquisition request IP address detecting that user side sends obtains message, a binding list item can be set up for this user side, the MAC Address of this user side, IP address can be comprised in this binding list item, receive port etc. when this DHCP obtains message, and this binding list item be put into binding table; When access switch detect that user side sends for asking the DHCP of releasing IP addresses to discharge message time, then access switch can delete the binding list item with this IP address from binding table.Meanwhile, according to above-mentioned step, access switch also can delete in forwarding-table item the IP address had in the forwarding-table item or deletion forwarding-table item with this IP address.
Shown in Figure 5, it illustrates the structural representation of the multicast data packet forwarding device provided in one embodiment of the invention, the present embodiment is mainly to be illustrated in the access switch 108 of this multicast data packet forwarding application of installation in Fig. 1.This multicast data packet forwarding device can include but not limited to: the first acquisition module 502, first removing module 504 and forwarding module 506.
First acquisition module 502, may be used for, when there is the dynamic host configuration protocol DHCP release message being used to indicate the Internet protocol IP address of user side request releasing user end, obtaining DHCP and discharging the IP address of carrying in message;
First removing module 504, may be used in the multicast forward table prestored, delete the forwarding-table item with IP address;
Forwarding module 506, the multicast forward table that may be used for according to deleting after forwarding-table item forwards the multicast data message received.
In sum, the multicast data packet forwarding device provided in the embodiment of the present invention, by the IP address that increase by forwarding-table item is corresponding with port, when the some user side releasing IP addresses of perception, in the multicast forward table prestored, delete the forwarding-table item with this IP address, the multicast forward table according to deleting after this forwarding-table item forwards the multicast data message received; Solve in prior art after user side releasing IP addresses, the problem of the bandwidth waste that access switch still continues to send multicast data message to this user side according to forwarding-table item and causes; When getting the multicast data message relevant to this IP address, because the forwarding-table item relevant to this IP address is deleted, therefore according to the port in forwarding-table item, multicast data message can not be handed down to this user side again, reach and can disconnect the multicast traffic stream sent to this user side fast, save the effect of bandwidth.
Shown in Figure 6, it illustrates the structural representation of the multicast data packet forwarding device provided in one embodiment of the invention, the present embodiment is mainly to be illustrated in the access switch 108 of this multicast data packet forwarding application of installation in Fig. 1.This multicast data packet forwarding device can include but not limited to: the first acquisition module 601, first removing module 602 and forwarding module 603.
First acquisition module 601, may be used for, when there is the dynamic host configuration protocol DHCP release message being used to indicate the Internet protocol IP address of user side request releasing user end, obtaining DHCP and discharging the IP address of carrying in message;
First removing module 602, may be used in the multicast forward table prestored, delete the forwarding-table item with IP address;
Forwarding module 603, the multicast forward table that may be used for according to deleting after forwarding-table item forwards the multicast data message received.
In the first possible implementation in the present embodiment, this multicast data packet forwarding device can also comprise receiver module 604, second acquisition module 605, determination module 606 and put into module 607.
Receiver module 604, may be used for receiving and is used to indicate the igmpinternet IGMP that user side request adds multicast group and joins message;
Second acquisition module 605, may be used for obtaining IGMP and to join message the IP address, the multicast group address that carry and receive the port that joins message of IGMP;
Determination module 606, may be used for IP address, multicast group address and port to be defined as a forwarding-table item;
Put into module 607, may be used for forwarding-table item to put into multicast forward table, multicast forward table is defined as the multicast forward table prestored.
In the implementation that the second is in the present embodiment possible, this multicast data packet forwarding device can also comprise first detection module 608 and add module 609.
First detection module 608, may be used for detection multicast group address and whether port has been present in an existing forwarding-table item of multicast forward table simultaneously;
Add module 609, may be used for the testing result of first detection module 608 be multicast group address and port be present in an existing forwarding-table item of multicast forward table simultaneously time, IP is added in forwarding-table item;
Determination module 606, can also be used for, when the testing result of first detection module 608 is multicast group address and port is not also present in any one existing forwarding-table item of multicast forward table simultaneously, IP address, multicast group address and port being defined as a forwarding-table item.
In the third possible implementation in the present embodiment, this multicast data packet forwarding device can also comprise searches module 610, second detection module 611, second removing module 612.
Search module 610, may be used in the multicast forward table prestored, search the forwarding-table item with IP address;
Second detection module 611, may be used for detecting in forwarding-table item whether also there are other IP addresses;
Second removing module 612, may be used for the testing result of the second detection module 611 be forwarding-table item also there are other IP addresses time, the DHCP deleted in forwarding-table item discharges the IP address that message carries;
First removing module 602, can also be used for the testing result of the second detection module 611 be forwarding-table item there are not other IP addresses time, delete in the multicast forward table prestored and there is the forwarding-table item of IP address.
In the 4th kind of possible implementation in the present embodiment, forwarding module 603, comprising: acquiring unit 603a, query unit 603b and transmitting element 603c.
Acquiring unit 603a, may be used for when receiving multicast data message, obtains the multicast group address carried in multicast data message;
Query unit 603b, may be used for inquiring about the forwarding-table item in the multicast forward table after deletion forwarding-table item with multicast group address;
Transmitting element 603c, may be used for sending multicast data message by the port in forwarding-table item.
In sum, the multicast data packet forwarding device provided in the embodiment of the present invention, by the IP address that increase by forwarding-table item is corresponding with port, when the some user side releasing IP addresses of perception, in the multicast forward table prestored, delete the forwarding-table item with this IP address, the multicast forward table according to deleting after this forwarding-table item forwards the multicast data message received; Solve in prior art after user side releasing IP addresses, the problem of the bandwidth waste that access switch still continues to send multicast data message to this user side according to forwarding-table item and causes; When getting the multicast data message relevant to this IP address, because the forwarding-table item relevant to this IP address is deleted, therefore according to the port in forwarding-table item, multicast data message can not be handed down to this user side again, reach and can disconnect the multicast traffic stream sent to this user side fast, save the effect of bandwidth.
It should be noted that: the multicast data packet forwarding device that above-described embodiment provides is when multicast data forwarding message, only be illustrated with the division of above-mentioned each functional module, in practical application, can distribute as required and by above-mentioned functions and be completed by different functional modules, internal structure by switch is divided into different functional modules, to complete all or part of function described above.In addition, the multicast data packet forwarding device that above-described embodiment provides and multicast data packet forwarding embodiment of the method belong to its specific implementation process of same design and refer to embodiment of the method, repeat no more here.
Shown in Figure 7, it illustrates the structural representation of the switch provided in one embodiment of the invention, the present embodiment mainly can be illustrated for the access switch 108 in Fig. 1 with this switch.This switch can include but not limited to: processor 702, transmitter 704 and memory 706, processor 702 is coupled with transmitter 704 and memory 706 respectively, include at least one computer applied algorithm in memory 706, processor 702 can carry out the operation of being correlated with according to these computer applied algorithms.
Processor 702, may be used for, when there is the dynamic host configuration protocol DHCP release message being used to indicate the Internet protocol IP address of user side request releasing user end, obtaining DHCP and discharging the IP address of carrying in message;
Processor 702, can also be used in the multicast forward table prestored, delete the forwarding-table item with IP address;
Transmitter 704, the multicast forward table after may be used for deleting forwarding-table item according to processor 702 forwards the multicast data message received.
In sum, the switch provided in the embodiment of the present invention, by the IP address that increase by forwarding-table item is corresponding with port, when the some user side releasing IP addresses of perception, in the multicast forward table prestored, delete the forwarding-table item with this IP address, the multicast forward table according to deleting after this forwarding-table item forwards the multicast data message received; Solve in prior art after user side releasing IP addresses, the problem of the bandwidth waste that access switch still continues to send multicast data message to this user side according to forwarding-table item and causes; When getting the multicast data message relevant to this IP address, because the forwarding-table item relevant to this IP address is deleted, therefore according to the port in forwarding-table item, multicast data message can not be handed down to this user side again, reach and can disconnect the multicast traffic stream sent to this user side fast, save the effect of bandwidth.
Shown in Figure 8, it illustrates the switch architecture schematic diagram provided in another embodiment of the present invention, the present embodiment mainly can be illustrated for the access switch 108 in Fig. 1 with this switch.This switch can include but not limited to: processor 802, transmitter 804 and memory 806, processor 802 is coupled with transmitter 804 and memory 806 respectively, store at least one computer software in memory 806, processor 802 can carry out the operation of being correlated with according to these computer softwares.
Processor 802, may be used for, when there is the dynamic host configuration protocol DHCP release message being used to indicate the Internet protocol IP address of user side request releasing user end, obtaining DHCP and discharging the IP address of carrying in message;
Processor 802, can also be used in the multicast forward table prestored, delete the forwarding-table item with IP address;
Transmitter 804, the multicast forward table after may be used for deleting forwarding-table item according to processor 802 forwards the multicast data message received.
In the first possible implementation in the present embodiment, this switch can also comprise receiver 808, and receiver 808 and processor 802 are coupled;
Receiver 808, may be used for receiving and is used to indicate the igmpinternet IGMP that user side request adds multicast group and joins message;
Processor 802, can also be used for obtaining IGMP that receiver 808 receives and to join message the IP address, the multicast group address that carry and receive the port that IGMP joins message;
Processor 802, can also be used for IP address, multicast group address and port to be defined as a forwarding-table item;
Processor 802, can also be used for forwarding-table item to put into multicast forward table, multicast forward table is defined as the multicast forward table prestored.
In the implementation that the second is in the present embodiment possible,
Processor 802, can also be used for detecting multicast group address and whether port has been present in an existing forwarding-table item of multicast forward table simultaneously;
Processor 802, can also be used for testing result be multicast group address and port be present in an existing forwarding-table item of multicast forward table simultaneously time, IP is added in forwarding-table item;
Processor 802, can also be used for, when testing result is multicast group address and port is not also present in any one existing forwarding-table item of multicast forward table simultaneously, IP address, multicast group address and port being defined as a forwarding-table item.
In the third possible implementation in the present embodiment,
Processor 802, can also be used in the multicast forward table prestored, search the forwarding-table item with IP address;
Processor 802, can also be used for detecting in forwarding-table item whether also there are other IP addresses;
Processor 802, can also be used for testing result be forwarding-table item also there are other IP addresses time, the DHCP deleted in forwarding-table item discharges the IP address that message carries;
Processor 802, can also be used for testing result be forwarding-table item there are not other IP addresses time, delete in the multicast forward table prestored and there is the forwarding-table item of IP address.
In the 4th kind of possible implementation in the present embodiment,
Processor 802, can also be used for when receiving multicast data message, obtains the multicast group address carried in multicast data message;
Processor 802, can also be used for inquiring about the forwarding-table item in the multicast forward table after deletion forwarding-table item with multicast group address;
Transmitter 804, the port that can also be used in the forwarding-table item inquired about by processor 802 sends multicast data message.
In sum, the switch provided in the embodiment of the present invention, by the IP address that increase by forwarding-table item is corresponding with port, when the some user side releasing IP addresses of perception, in the multicast forward table prestored, delete the forwarding-table item with this IP address, the multicast forward table according to deleting after this forwarding-table item forwards the multicast data message received; Solve in prior art after user side releasing IP addresses, the problem of the bandwidth waste that access switch still continues to send multicast data message to this user side according to forwarding-table item and causes; When getting the multicast data message relevant to this IP address, because the forwarding-table item relevant to this IP address is deleted, therefore according to the port in forwarding-table item, multicast data message can not be handed down to this user side again, reach and can disconnect the multicast traffic stream sent to this user side fast, save the effect of bandwidth.
Those of ordinary skill in the art can recognize, in conjunction with unit and the algorithm steps of each example of embodiment disclosed herein description, can realize with the combination of electronic hardware or computer software and electronic hardware.These functions perform with hardware or software mode actually, depend on application-specific and the design constraint of technical scheme.Professional and technical personnel can use distinct methods to realize described function to each specifically should being used for, but this realization should not thought and exceeds scope of the present invention.
Those skilled in the art can be well understood to, and for convenience and simplicity of description, the specific works process of the system of foregoing description, device and unit, with reference to the corresponding process in preceding method embodiment, can not repeat them here.
In several embodiments that the application provides, should be understood that disclosed system, apparatus and method can realize by another way.Such as, device embodiment described above is only schematic, such as, the division of described unit, can be only a kind of logic function to divide, actual can have other dividing mode when realizing, such as multiple unit or assembly can in conjunction with or another system can be integrated into, or some features can be ignored, or do not perform.Another point, shown or discussed coupling each other or direct-coupling or communication connection can be by some interfaces, and the indirect coupling of device or unit or communication connection can be electrical, machinery or other form.
The described unit illustrated as separating component or can may not be and physically separates, and the parts as unit display can be or may not be physical location, namely can be positioned at a place, or also can be distributed in multiple network element.Some or all of unit wherein can be selected according to the actual needs to realize the object of the present embodiment scheme.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, also can be that the independent physics of unit exists, also can two or more unit in a unit integrated.
If described function using the form of SFU software functional unit realize and as independently production marketing or use time, can be stored in a computer read/write memory medium.Based on such understanding, the part of the part that technical scheme of the present invention contributes to prior art in essence in other words or this technical scheme can embody with the form of software product, this computer software product is stored in a storage medium, comprising some instructions in order to make a computer equipment (can be personal computer, server, or the network equipment etc.) perform all or part of step of method described in each embodiment of the present invention.And aforesaid storage medium comprises: USB flash disk, portable hard drive, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disc or CD etc. various can be program code stored medium.
The above; be only the specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, is anyly familiar with those skilled in the art in the technical scope that the present invention discloses; change can be expected easily or replace, all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should described be as the criterion with the protection range of claim.

Claims (11)

1. a multicast data packet forwarding method, is characterized in that, described method comprises:
When exist be used to indicate user side request discharge the dynamic host configuration protocol DHCP release message of the Internet protocol IP address of described user side time, obtain described DHCP and discharge in message the described IP address of carrying;
The forwarding-table item with described IP address is deleted in the multicast forward table prestored;
Described multicast forward table according to deleting after described forwarding-table item forwards the multicast data message received.
2. method according to claim 1, is characterized in that, before discharging the described IP address of carrying in message, also comprises at the described DHCP of described acquisition:
Receive and be used to indicate the igmpinternet IGMP that described user side request adds multicast group and join message;
Obtain described IGMP to join message the IP address, the multicast group address that carry and receive the port that described IGMP joins message;
Described IP address, described multicast group address and described port are defined as a forwarding-table item;
Described forwarding-table item is put into described multicast forward table, the multicast forward table prestored described in being defined as by described multicast forward table.
3. method according to claim 2, is characterized in that, described described IP address, described multicast group address and described port be defined as a forwarding-table item before, also comprise:
Detect described multicast group address and whether described port has been present in an existing forwarding-table item of described multicast forward table simultaneously;
Be present in an existing forwarding-table item of described multicast forward table if testing result is described multicast group address and described port simultaneously, then described IP be added in described forwarding-table item;
Also be not present in any one existing forwarding-table item of described multicast forward table if testing result is described multicast group address and described port simultaneously, then perform the step described IP address, described multicast group address and described port being defined as a forwarding-table item.
4. method according to claim 3, is characterized in that, described in the multicast forward table prestored delete there is the forwarding-table item of described IP address before, also comprise:
The forwarding-table item with described IP address is searched in the described multicast forward table prestored;
Detect in described forwarding-table item and whether also there are other IP addresses;
If testing result is described forwarding-table item also there is other IP addresses, then the described DHCP deleted in described forwarding-table item discharges the described IP address that message carries;
If testing result is described forwarding-table item there is not other IP addresses, then perform the step of deleting in the multicast forward table prestored and there is the forwarding-table item of described IP address.
5. according to described method arbitrary in claim 1-4, it is characterized in that, the described described multicast forward table according to deleting after described forwarding-table item forwards the multicast data message received, and comprising:
When receiving multicast data message, obtain the multicast group address carried in described multicast data message;
The forwarding-table item in the described multicast forward table after described forwarding-table item with described multicast group address is deleted in inquiry;
Described multicast data message is sent by the port in described forwarding-table item.
6. a multicast data packet forwarding device, is characterized in that, described device comprises:
First acquisition module, for when exist be used to indicate user side request discharge the dynamic host configuration protocol DHCP release message of the Internet protocol IP address of described user side time, obtain described DHCP and discharge in message the described IP address of carrying;
First removing module, for deleting the forwarding-table item with described IP address in the multicast forward table prestored;
Forwarding module, for forwarding according to the described multicast forward table deleted after described forwarding-table item the multicast data message received.
7. device according to claim 6, is characterized in that, described device also comprises:
Receiver module, is used to indicate the igmpinternet IGMP that described user side request adds multicast group joins message for receiving;
Second acquisition module, to join message the IP address, the multicast group address that carry and receive the port that described IGMP joins message for obtaining described IGMP;
Determination module, for being defined as a forwarding-table item by described IP address, described multicast group address and described port;
Put into module, for described forwarding-table item is put into described multicast forward table, the multicast forward table prestored described in described multicast forward table is defined as.
8. device according to claim 7, is characterized in that, described device also comprises:
First detection module, for detecting described multicast group address and whether described port has been present in an existing forwarding-table item of described multicast forward table simultaneously;
Add module, in the testing result of described first detection module be described multicast group address and described port be present in an existing forwarding-table item of described multicast forward table simultaneously time, described IP is added in described forwarding-table item;
Described determination module, also in the testing result of described first detection module be described multicast group address and described port be not also present in any one existing forwarding-table item of described multicast forward table simultaneously time, described IP address, described multicast group address and described port are defined as a forwarding-table item.
9. device according to claim 8, is characterized in that, described device also comprises:
Search module, for searching the forwarding-table item with described IP address in the described multicast forward table prestored;
Second detection module, for detecting in described forwarding-table item whether also there are other IP addresses;
Second removing module, in the testing result of described second detection module be described forwarding-table item also there are other IP addresses time, the described DHCP deleted in described forwarding-table item discharges the described IP address that message carries;
Described first removing module, also in the testing result of described second detection module be described forwarding-table item there are not other IP addresses time, delete in the multicast forward table prestored and there is the forwarding-table item of described IP address.
10., according to described device arbitrary in claim 6-9, it is characterized in that, described forwarding module, comprising:
Acquiring unit, for when receiving multicast data message, obtains the multicast group address carried in described multicast data message;
Query unit, for inquiring about the forwarding-table item in the described multicast forward table after the described forwarding-table item of deletion with described multicast group address;
Transmitting element, for sending described multicast data message by the port in described forwarding-table item.
11. 1 kinds of switches, is characterized in that, described switch comprises as the multicast data packet forwarding device as described in arbitrary in claim 6 to 10.
CN201310532656.3A 2013-10-31 2013-10-31 Multicast data packet forwarding method, apparatus and interchanger Active CN104601476B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310532656.3A CN104601476B (en) 2013-10-31 2013-10-31 Multicast data packet forwarding method, apparatus and interchanger

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310532656.3A CN104601476B (en) 2013-10-31 2013-10-31 Multicast data packet forwarding method, apparatus and interchanger

Publications (2)

Publication Number Publication Date
CN104601476A true CN104601476A (en) 2015-05-06
CN104601476B CN104601476B (en) 2018-07-13

Family

ID=53126994

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310532656.3A Active CN104601476B (en) 2013-10-31 2013-10-31 Multicast data packet forwarding method, apparatus and interchanger

Country Status (1)

Country Link
CN (1) CN104601476B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115242708A (en) * 2022-07-21 2022-10-25 迈普通信技术股份有限公司 Multicast table item processing method and device, electronic equipment and storage medium
CN115766565A (en) * 2022-12-28 2023-03-07 深圳市鸿升光通讯设备有限公司 Multicast group maintenance method based on MAC address

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1741492A (en) * 2005-08-31 2006-03-01 杭州华为三康技术有限公司 Equiment and method for controlling group transmitting data retransmission
CN1905530A (en) * 2006-08-08 2007-01-31 杭州华为三康技术有限公司 Method and system of multicast and video-on-demand
CN101222414A (en) * 2007-01-11 2008-07-16 华为技术有限公司 Device, system and method for implementing multicast communication
CN101572712A (en) * 2009-06-09 2009-11-04 杭州华三通信技术有限公司 Method for preventing attack of counterfeit message and repeater equipment thereof
CN102170364A (en) * 2011-05-26 2011-08-31 华为技术有限公司 Multicast communication method and device for broadband remote access server

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1741492A (en) * 2005-08-31 2006-03-01 杭州华为三康技术有限公司 Equiment and method for controlling group transmitting data retransmission
CN1905530A (en) * 2006-08-08 2007-01-31 杭州华为三康技术有限公司 Method and system of multicast and video-on-demand
CN101222414A (en) * 2007-01-11 2008-07-16 华为技术有限公司 Device, system and method for implementing multicast communication
CN101572712A (en) * 2009-06-09 2009-11-04 杭州华三通信技术有限公司 Method for preventing attack of counterfeit message and repeater equipment thereof
CN102170364A (en) * 2011-05-26 2011-08-31 华为技术有限公司 Multicast communication method and device for broadband remote access server

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115242708A (en) * 2022-07-21 2022-10-25 迈普通信技术股份有限公司 Multicast table item processing method and device, electronic equipment and storage medium
CN115242708B (en) * 2022-07-21 2023-10-20 迈普通信技术股份有限公司 Multicast table item processing method and device, electronic equipment and storage medium
CN115766565A (en) * 2022-12-28 2023-03-07 深圳市鸿升光通讯设备有限公司 Multicast group maintenance method based on MAC address

Also Published As

Publication number Publication date
CN104601476B (en) 2018-07-13

Similar Documents

Publication Publication Date Title
US8971324B2 (en) Method, device and system for implementing multicast
CN101938532B (en) UDP-based method and system for penetrating through NAT equipment
US9237025B2 (en) Source routing in multicast transmissions
CN101534209B (en) A method and device for sending multicast messages
CN109981323B (en) Method and network equipment for detecting multicast path state of data link layer
CN100456684C (en) Method for realizing multicast business and network equipment
CN102075422A (en) Multicast management method and two-layer equipment
CN101800746A (en) Method, device and system for detecting domain name of control host machine in botnets
CN103841037A (en) Multicast packet forwarding method and devices
US20210274022A1 (en) Address Translation
CN104168317A (en) Cached content hitting method and communication system
CN104660597A (en) Three-layer authentication method and device as well as three-layer authentication exchanger
CN104601476A (en) Multicast data message forwarding method and device and switch
CN108667735B (en) Method and device for forwarding multicast data
CN105450686A (en) Method and device for establishing server cluster
JP2014506765A (en) Efficient multicast in distributed systems architecture
CN111327584A (en) Video monitoring method, device, system, equipment and storage medium
CN107483970A (en) A kind of method and apparatus for determining popular live video
CN102984026A (en) Test method for exchange unit multicast listener protocol snooping discovering function
CN103036789B (en) File transmitting method, device and network gateway devices
CN105591961A (en) Method and device for selecting rendezvous point RP for multicast group
WO2013107340A1 (en) Maintaining a multicast forwarding table and a pim router
CN104486226A (en) Message processing method and device
CN110868353B (en) Message processing method and device
CN108111323B (en) Realization system of igmpsnooping protocol under vxworks 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
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20211221

Address after: 450046 Floor 9, building 1, Zhengshang Boya Plaza, Longzihu wisdom Island, Zhengdong New Area, Zhengzhou City, Henan Province

Patentee after: Super fusion Digital Technology Co.,Ltd.

Address before: 518129 Bantian HUAWEI headquarters office building, Longgang District, Guangdong, Shenzhen

Patentee before: HUAWEI TECHNOLOGIES Co.,Ltd.

TR01 Transfer of patent right