patents.google.com

CN102025796A - MAC (media access control) address updating method and device - Google Patents

  • ️Wed Apr 20 2011

CN102025796A - MAC (media access control) address updating method and device - Google Patents

MAC (media access control) address updating method and device Download PDF

Info

Publication number
CN102025796A
CN102025796A CN2010105572526A CN201010557252A CN102025796A CN 102025796 A CN102025796 A CN 102025796A CN 2010105572526 A CN2010105572526 A CN 2010105572526A CN 201010557252 A CN201010557252 A CN 201010557252A CN 102025796 A CN102025796 A CN 102025796A Authority
CN
China
Prior art keywords
list item
address
multicast
port numbers
multicast group
Prior art date
2010-11-23
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
CN2010105572526A
Other languages
Chinese (zh)
Other versions
CN102025796B (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.)
ZTE Corp
Original Assignee
ZTE Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
2010-11-23
Filing date
2010-11-23
Publication date
2011-04-20
2010-11-23 Application filed by ZTE Corp filed Critical ZTE Corp
2010-11-23 Priority to CN201010557252.6A priority Critical patent/CN102025796B/en
2011-04-20 Publication of CN102025796A publication Critical patent/CN102025796A/en
2011-05-31 Priority to PCT/CN2011/075002 priority patent/WO2012068854A1/en
2014-06-11 Application granted granted Critical
2014-06-11 Publication of CN102025796B publication Critical patent/CN102025796B/en
Status Active legal-status Critical Current
2030-11-23 Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/10Mapping addresses of different types
    • H04L61/103Mapping addresses of different types across network layers, e.g. resolution of network layer into physical layer addresses or address resolution protocol [ARP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5069Address allocation for group communication, multicast communication or broadcast communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2101/00Indexing scheme associated with group H04L61/00
    • H04L2101/60Types of network addresses
    • H04L2101/618Details of network addresses
    • H04L2101/622Layer-2 addresses, e.g. medium access control [MAC] addresses

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Small-Scale Networks (AREA)

Abstract

The invention discloses an MAC (media access control) address updating method which is used for realizing unified update and maintenance of an MAC address. The method comprises the following steps: getting an IP (Internet protocol) address of a multicast group of the Internet protocol version 4 (IPv4) or an IP address of a multicast group of the Internet protocol version 6 (IPv6) according to a received message; mapping the got IP address of the multicast group of the IPv4 as the multicast MAC address when getting the IP address of the multicast group of the IPv4; mapping the got IP address of the multicast group of the IPv6 as the multicast MAC address when getting the IP address of the multicast group of the IPv6; and updating a public MAC address table according to the got multicast MAC address. The invention further discloses a device for implementing the method.

Description

A kind of MAC Address update method and device

Technical field

The present invention relates to the communications field, particularly a kind of MAC Address update method and device.

Background technology

Because present IPv4 (Internet Protocol version 4, Internet Protocol Version 4) there is the problem of this address space deficiency in network, so with IPv6 (Internet Protocol version 6, IPv6) is that the Next Generation Internet agreement of core moves towards practical from conceptual phase.Compare with the 32 bit address length of IPv4, the 128 bit address length of IPv6 not only can satisfy the demand of global user to the IP address, can also provide better support in each side such as fail safe, mobility, service quality, so IPv6 replaces the inexorable trend that IPv4 has become network development.But because present the Internet also belongs to the initial stage of IPv6 development; existing IPv4 network possesses suitable scale; in order to protect existing equipment and investment, network can not the disposable IPv6 that substitutes, but the process that will face long-term IPv4, an IPv6 and deposit.Only carry out at present the fusion of IPV4 and IPV6 network, just can realize a smooth transition.

The basic principle of multicasting technology is to utilize IGMP (Internet Group Management Protocol, Internet group management protocol of the multicast group) or MLD (Multicast Listener Discovery, multicast listener discovery) to safeguard the multicast group relation.IGMP (IPv4) or MLD (among the IPv6) run on the three-layer equipment, add or leave multicast group and carry out dynamic management for the multicast recipient, and set up three layers of multicast forwarding list item.Simultaneously, operation IGMP Snooping (Internet Group Management Protocol Snooping on the two-layer equipment, Internet group management protocol of the multicast group is spied upon) or MLD Snooping (Multicast Listener DiscoverySnooping, multicast listener discovery is spied upon), disposed three-layer equipment and the IGMP message between the multicast recipient or the MLD message of IGMP agreement or MLD agreement respectively, on two-layer equipment, set up and safeguarded the MAC multicast address according to message.The multicast data message that later two-layer equipment is received is just transmitted according to this MAC multicast address, realizes the Layer 2 Multicast of multicast data message.

In the prior art, support at the same time on the dual stack two-layer equipment of IPv4 and IPv6, IPV4 protocol stack and IPv6 protocol stack may be distinguished independent maintenance MAC multicast address separately, so not only can cause the waste of hardware resource, software also can increase complexity on realizing, and is not easy to MAC Address is carried out safety management.

Summary of the invention

The embodiment of the invention provides a kind of MAC Address update method, is used to realize the unified of MAC Address upgraded and maintenance, and a kind of method of multicasting, be used for realizing data being carried out multicast according to the unified MAC address.

A kind of MAC Address update method may further comprise the steps:

Obtain the multicast group IP address of Internet Protocol Version 4 IPv4 version or the multicast group IP address of IPv6 IPv6 version according to the message of receiving;

When obtaining the multicast group IP address of IPv4 version, be multicast media access control MAC address with the multicast group IP map addresses of the IPv4 version that obtains; When obtaining the multicast group IP address of IPv6 version, be multicast mac address with the multicast group IP map addresses of the IPv6 version that obtains;

Upgrade public mac address table according to the multicast mac address that obtains.

A kind of method of multicasting may further comprise the steps:

Obtain the multicast group IP address of IPv4 version or the multicast group IP address of IPv6 version according to the message of receiving;

When obtaining the multicast group IP address of IPv4 version, be multicast media access control MAC address with the multicast group IP map addresses of the IPv4 version that obtains; When obtaining the multicast group IP address of IPv6 version, be multicast mac address with the multicast group IP map addresses of the IPv6 version that obtains;

In public mac address table, inquire about and described multicast mac address corresponding port number according to described multicast mac address, carry out data forwarding according to described port numbers.

A kind of MAC Address updating device comprises:

Processing module is used for obtaining the multicast group IP address of IPv4 version or the multicast group IP address of IPv6 version according to the message of receiving;

Modular converter is used for when obtaining the multicast group IP address of IPv4 version, is multicast media access control MAC address with the multicast group IP map addresses of the IPv4 version that obtains; When obtaining the multicast group IP address of IPv6 version, be multicast mac address with the multicast group IP map addresses of the IPv6 version that obtains;

Executive Module is used for upgrading public mac address table according to the multicast mac address that obtains.

A kind of multicast apparatus comprises:

Processing module is used for obtaining the multicast group IP address of IPv4 version or the multicast group IP address of IPv6 version according to the message of receiving;

Modular converter is used for when obtaining the multicast group IP address of IPv4 version, is multicast media access control MAC address with the multicast group IP map addresses of the IPv4 version that obtains; When obtaining the multicast group IP address of IPv6 version, be multicast mac address with the multicast group IP map addresses of the IPv6 version that obtains;

Executive Module is used for according to described multicast mac address carrying out data forwarding in the inquiry of public mac address table and described multicast mac address corresponding port number according to described port numbers.

The embodiment of the invention obtains the multicast group IP address of Internet Protocol Version 4 IPv4 version or the multicast group IP address of IPv6 IPv6 version according to the message of receiving; When obtaining the multicast group IP address of IPv4 version, be multicast media access control MAC address with the multicast group IP map addresses of the IPv4 version that obtains; When obtaining the multicast group IP address of IPv6 version, be multicast mac address with the multicast group IP map addresses of the IPv6 version that obtains; Upgrade public mac address table according to the multicast mac address that obtains.IPv4 and IPv6 use same public mac address table, have realized the unified of MAC Address upgraded and maintenance, have saved memory source.

Description of drawings

Fig. 1 is the primary structure figure of MAC Address updating device in the embodiment of the invention;

Fig. 2 is the detailed structure view of MAC Address updating device in the embodiment of the invention;

Fig. 3 A is the detailed structure view of processing module in the MAC Address updating device in the embodiment of the invention;

Fig. 3 B is the detailed structure view of Executive Module in the MAC Address updating device in the embodiment of the invention;

Fig. 4 is the main flow chart of MAC Address update method in the embodiment of the invention;

Receive in Fig. 5 embodiment of the invention join message to the IPv4 version time, obtain the detail flowchart of IGMP Snooping list item;

Fig. 6 is the IPv6 version for joining message of receiving in the embodiment of the invention, obtains the detail flowchart of MAC Address;

When Fig. 7 is the IPv4 version for the leave message of receiving in the embodiment of the invention, to the detail flowchart of the processing of IGMP Snooping list item;

Fig. 8 in the embodiment of the invention when the leave message of receiving is the IPv6 version, to the detail flowchart of the processing of MLDSnooping list item.

Embodiment

The embodiment of the invention obtains the multicast group IP address of Internet Protocol Version 4 IPv4 version or the multicast group IP address of IPv6 IPv6 version according to the message of receiving; When obtaining the multicast group IP address of IPv4 version, be multicast media access control MAC address with the multicast group IP map addresses of the IPv4 version that obtains; When obtaining the multicast group IP address of IPv6 version, be multicast mac address with the multicast group IP map addresses of the IPv6 version that obtains; Upgrade public mac address table according to the multicast mac address that obtains.IPv4 and IPv6 use same public mac address table, have realized the unified of MAC Address upgraded and maintenance, have saved memory source.

Referring to Fig. 1, the MAC Address updating device comprises

processing module

101,

Executive Module

102 and

modular converter

103 in the embodiment of the invention.

Processing module

101 is used for obtaining the multicast group IP address of IPv4 version or the multicast group IP address of IPv6 version according to the message of receiving.Multicast group IP address is multicast group IP (Internet Protocol, Internet protocol) address, refers to the group IP address of

multicast.Processing module

101 receives message, and wherein, message can be to join message or leave message, and described message is sent by IPv4 multicast recipient or IPv6 multicast recipient.It is to have IPv4 multicast recipient or request to add multicast group that transmission joins message, and sending leave message is to have IPv4 multicast recipient or IPv6 multicast recipient request to leave multicast

group.Processing module

101 also can receiving data packets, is sent by IPv4 multicast sender or IPv6 multicast sender, is used for sending data to IPv4 multicast recipient or IPv6 multicast recipient.Receive and join message or 101 pairs of messages of leave message post-processing module are resolved, obtain the parameter information in the message, wherein, parameter information comprises IPv4 multicast group IP address or IPv6 multicast group IP address and VLAN (Virtual Local AreaNetwork at least, VLAN) ID (identifier), and can be according to receiving described join message or the port of leave message obtains this and receives described joining message or the port numbers of the port of leave message.VLAN ID is the ID of the VLAN at port numbers place, has a plurality of VLAN on the two-layer equipment, can distinguish by VLANID.Behind the analytic message,

processing module

101 is searched the set of first list item or search the set of second list item in MLD Snooping according to the multicast group IP address that parses in the message in IGMP Snooping, the set of first list item is corresponding to IPv4, and second list item is gathered corresponding to IPv6.Preferable, first list item can be an IGMP Snooping list item in the embodiment of the invention, second list item can be a MLD Snooping list item.Every IGMP Snooping list item comprises multicast group IP address, VLAN ID that parses in the message and the port numbers of receiving the port of described message, and three's corresponding relation, every MLD Snooping list item comprises multicast group IP address, VLAN ID that parses in the message and the port numbers that receives the port of described message, and three's corresponding relation.Form the set of first list item corresponding to all first list items of a multicast group IP address, or be called IGMP Snooping list item set, form the set of second list item corresponding to all second list items of a multicast group IP address, or be called the set of MLD Snooping list item.Each IGMP Snooping list item during an IGMPSnooping list item is gathered, can be between each MLD Snooping list item during perhaps a MLDSnooping list item is gathered to linking relationship should be arranged, when inquiring about according to a multicast group IP address, can inquire the set of IGMP Snooping list item or the set of MLDSnooping list item that comprise this multicast group IP address, wherein comprise all and comprised the IGMPSnooping list item or the MLDSnooping list item of this multicast group IP address.If set of IGMPSnooping list item or the set of MLD Snooping list item corresponding to this multicast group IP address are sky, then

processing module

101 is according to this multicast group IP address creation IGMP Snooping list item or MLD Snooping list item, if do not receive the pairing IGMP Snooping of the port numbers list item of the port of described message in the IGMP Snooping list item set corresponding to this multicast group IP address, then

processing module

101 is created an IGMPSnooping list item according to this multicast group IP address and the port numbers that receives the port of described message in the set of this IGMP Snooping list item, if corresponding to the pairing MLD Snooping of the port numbers list item that does not receive the port of described message in the set of the MLD Snooping list item of this multicast group IP address, then

processing module

101 is created a MLD Snooping list item according to this multicast group IP address and the port numbers that receives the port of described message in this MLD Snooping list item set.Wherein,

processing module

101 safeguards that all IGMP Snooping list items set among the IGMP Snooping and all the MLD Snooping list items among the MLD Snooping gather.

Executive Module

102 is used for upgrading public mac address table according to the multicast mac address that obtains.The multicast mac address storage and uniform that multicast mac address that

Executive Module

102 obtains the multicast group IP map addresses in the IGMP Snooping list item and the multicast group IP map addresses in the MLD Snooping list item obtain is in a public mac address table, and in public mac address table, set up the MAC forwarding entry according to each MAC Address, each multicast mac address can corresponding a plurality of MAC forwarding entrys, can form a multicast MAC forwarding entry set corresponding to all MAC forwarding entrys of a multicast mac address.Comprise MAC Address and port numbers in each MAC forwarding entry.Port numbers is the port numbers that receives the port of the message of IPv4 multicast recipient transmission or the message that IPv6 multicast recipient sends.Described port numbers is to add in the MAC forwarding entry according to VLAN ID in IGMP Snooping list item or the MLD Snooping list item and port numbers, can know IPv4 multicast recipient or IPv6 multicast recipient's accurate position according to the multicast mac address in the MAC forwarding entry and port numbers.After this, if

processing module

101 is received data message, the multicast group IP address that parses in the data message to be comprised,

Executive Module

102 is a multicast mac address with this multicast group IP map addresses, and inquire about in the public mac address table corresponding multicast MAC forwarding entry set according to the MAC Address that mapping obtains, carry out data forwarding, the set of corresponding multicast MAC forwarding entry be meant that the MAC Address that comprised in this MAC forwarding entry and described mapping obtain MAC Address identical.

Modular converter

103 is used for when obtaining the multicast group IP address of IPv4 version, is multicast media access control MAC address with the multicast group IP map addresses of the IPv4 version that obtains; When obtaining the multicast group IP address of IPv6 version, be multicast mac address with the multicast group IP map addresses of the IPv6 version that obtains.The IP address is an example with multicast group IP address in the embodiment of the invention.IGMP Snooping list item or MLD Snooping list item that

modular converter

103 obtains in the

processing module

101 have comprised multicast group IP address, VLAN ID and port numbers in this IGMP Snooping list item or the MLD Snooping list item.

Modular converter

103 is multicast mac address according to IP address and the IP address of fixedly mapping relations between the MAC Address or IPv6 version and the fixedly mapping relations between the MAC Address of IPv4 version with the multicast group IP map addresses in multicast group IP address in the IGMP Snooping list item or the MLD Snooping list item.Wherein, mapping relations can be functions, determined a kind of fixing account form,

modular converter

103 will can obtain multicast mac address in the IP address of the IP address substitution IPv4 version of IPv4 version and the fixedly mapping relations between the MAC Address, or will can obtain multicast mac address in the IP address of the IP address substitution IPv6 version of IPv6 version and the fixedly mapping relations between the MAC Address.The VLAN ID that comprises in IGMP Snooping list item or the MLD Snooping list item can be stored in the

Executive Module

102, can determine to receive the port numbers of the port of the message that message that IPv4 multicast recipient sends or IPv6 multicast recipient send according to the port numbers that comprises in this VLAN ID and IGMP Snooping list item or the MLD Snooping list item, therefore in the MAC forwarding entry, not comprise VLAN ID.For example, a MAC forwarding entry is:

(0100.5e01.0101, port one)

Wherein, the MAC Address of 0100.5e01.0101 for obtaining after the multicast group IP address 224.1.1.1 mapping.For example, another MAC forwarding entry is:

(3333.0000.0001, port 2)

Wherein, the multicast mac address of 3333.0000.0001 for obtaining after the multicast group IP address ff4e::1 mapping.Because after the pairing IP map addresses of IPv4 all is to start with 01005e, all be with 3333 beginnings after the pairing IP map addresses of IPv6, therefore the MAC Address that obtains after IPv4 pairing IP address and the pairing IP map addresses of IPv6 can be not identical, can not clash when then the two is stored in

address table unit

1022.

Referring to Fig. 2, described device also comprises

transceiver module

104, and described device can also comprise

memory module

105.

Transceiver module

104 is used to receive message, and transmitting-receiving IGMP Snooping list item or MLD Snooping list

item.Transceiver module

104 is used to receive joining message or leave message of IPv4 multicast recipient or IPv6 multicast recipient transmission.After

transceiver module

104 is received message, judging the protocol type of the message of receiving, is IPv4 agreement or IPv6 agreement, resolves according to the corresponding units in the protocol type

notification handler module

101 again.

Transceiver module

104 is used to receive IGMP Snooping list item or MLD Snooping list

item.Transceiver module

104 also is used for the multicast mac address inquiry existing MAC forwarding entry that the multicast group IP map addresses according to data message goes out, find the multicast MAC forwarding entry set corresponding with this multicast mac address, according to the port numbers in the set of this multicast MAC forwarding entry the data forwarding that the IPv4 multicast sender sends is arrived IPv4 multicast recipient, or the data forwarding that the IPv6 multicast sender sends is arrived IPv6 multicast recipient.

Memory module

105 is used for the Storage Mapping

relation.Memory module

105 is used for IP address and the IP address of fixedly mapping relations between the MAC Address and IPv6 version and the fixedly mapping relations between the MAC Address of storing IP v4 version, these two kinds of mapping relations can be stored respectively.

Executive Module

102 can be a multicast mac address with multicast group IP address in the IGMP Snooping list item or the multicast group IP map addresses in the MLDSnooping list item according to the IP address of the IPv4 version of storage or the IP address and the fixedly mapping relations between the MAC Address of IPv6 version in the

memory module

105.

Referring to Fig. 3 A, described

processing module

101 specifically comprises

first resolution unit

1011,

second resolution unit

1012,

first query unit

1013,

second query unit

1014, first creating

unit

1015 and second creating unit 1016.Wherein,

first resolution unit

1011,

first query unit

1013, and first creating

unit

1015 be equipment corresponding to IPv4, and

second resolution unit

1012,

second query unit

1014 and second creating

unit

1016 are the equipment corresponding to IPv6.In embodiments of the present invention, in the

processing module

101 to IPv4 join message for example all to send the message that adds multicast group 224.1.1.1 with IPv4 multicast recipient be example, the message that all sends adding multicast group ff4e::1 with IPv4 multicast recipient for example that IPv6 is joined message is an example.

First resolution unit

1011 is used for the message that IPv4 multicast recipient sends is resolved.

Transceiver module

104 is after receiving message, and the protocol type of judging this message is IPv4 version or IPv6 version, when the protocol type of determining this message is the IPv4 version, notifies

first resolution unit

1011 to resolve.

First resolution unit

1011 is judged that this message joins message or leave message, and is parsed the parameter information that is comprised in this message after receiving the message that IPv4 multicast recipient sends.Wherein, this parameter information comprises multicast group IP address and VLAN ID at least, can obtain to receive the port numbers of the port of this message when receiving described message.Multicast group IP address can corresponding a plurality of port numbers, and a VLAN ID can corresponding a plurality of port numbers.For example, after

first resolution unit

1011 is received message, determine that the port numbers of the port of this message of reception is a port one, the message parameter information that parses is:

IPv4 multicast group IP address: 224.1.1.1, VLAN ID:100

Second resolution unit

1012 is used for the message that IPv6 multicast recipient sends is resolved.

Transceiver module

104 is after receiving message, and the protocol type of judging this message is IPv4 version or IPv6 version, when the protocol type of determining this message is the IPv6 version, notifies

second resolution unit

1012 to resolve.

Second resolution unit

1012 judges that this message joins message or leave message parses the parameter information that is comprised in this message after receiving the message that IPv6 multicast recipient sends.Wherein, this parameter information comprises that at least multicast group IP address and VLAN ID receive the port numbers of the port of this message.Multicast group IP address can corresponding a plurality of port numbers, and a VLAN ID can corresponding a plurality of port numbers.For example, the message parameter information that parses of

resolution unit

1022 is:

IPv6 multicast group IP address: ff4e::1, VLAN ID:100, port: port 2.

First query unit

1013 is used for according to the multicast group IP address lookup IGMP Snooping list item that parses.

Query unit

1013 is safeguarded all IGMP Snooping list items, all IGMPSnooping list items can be stored for inquiring about and calling.Behind the parameter information that

first resolution unit

1011 parses in the message to be comprised, notify

first query unit

1013 to inquire about.If join message, the multicast group IP address lookup that is comprised in the message information that

first query unit

1013 parses according to

first resolution unit

1011 and judge in the IGMP Snooping list item of storage whether the IGMP Snooping list item set that has comprised this multicast group IP address is arranged, if judged result is for denying, then notify first creating

unit

1015 to create an IGMP Snooping list item according to this multicast group IP address and the port numbers that receives the described port that joins message, this IGMP Snooping list item is promptly formed the IGMP Snooping list item set corresponding to this multicast group IP address, if judged result is for being, judge that then the port numbers that whether has in this IGMP Snooping list item set in the IGMP Snooping list item is for receiving the port numbers of the described port that joins message, if have the port numbers in the IGMP Snooping list item identical in this IGMP Snooping list item set with the port numbers that receives the described port that joins message, then directly this IGMP Snooping list item is sent to

Executive Module

102, if there is not the port numbers in the IGMP Snooping list item identical in the set of this IGMP Snooping list item, then notify first creating

unit

101 according to this multicast group IP address and receive port numbers IGMP Snooping list item of establishment in this IGMPSnooping list item set of the described port that joins message with the port numbers that receives the described port that joins message; If leave message, the multicast group IP address lookup that is comprised in the message information that

first query unit

1013 parses according to

first resolution unit

1011 and judge in the IGMP Snooping list item of storage whether the IGMP Snooping list item set that has comprised this multicast group IP address is arranged, if judged result is for denying, then do not carry out any operation, if judged result is for being, whether then judge in this IGMP Snooping list item set has the port numbers in the IGMP Snooping list item identical with the port numbers of the port that receives described leave message, if do not have the port numbers in the IGMP Snooping list item identical in this IGMP Snooping list item set with the port numbers of the port that receives described leave message, then do not carry out any operation, if there is the port numbers of the port that port numbers and the described adding of reception in the IGMPSnooping list item leave identical in the set of this IGMP Snooping list item, then delete this port numbers, and delete this IGMP Snooping list item.If this IGMP Snooping list item set is then deleted this IGMP Snooping list item set for empty after deleting this IGMP Snooping list item.

Second query unit

1014 is used for according to the multicast group IP address lookup MLD Snooping list item that parses.

Second query unit

1014 is safeguarded all MLD Snooping list items, all MLDSnooping list items can be stored for inquiring about and calling.Behind the parameter information that

second resolution unit

1012 parses in the message to be comprised, notify

second query unit

1014 to inquire about.If join message, the multicast group IP address lookup that is comprised in the message information that

second query unit

1014 parses according to

second resolution unit

1012 and judge in the MLD Snooping list item of storage whether the MLD Snooping list item set that has comprised this multicast group IP address is arranged, if judged result is for denying, then notify second creating

unit

1016 to create a MLDSnooping list item according to this multicast group IP address and the port numbers that receives the described port that joins message, this MLD Snooping list item is promptly formed the MLDSnooping list item set corresponding to this multicast group IP address, if judged result is for being, judge that then the port numbers that whether has MLD Snooping list item to be comprised in this MLD Snooping list item set is identical with the port numbers that receives the described port that joins message, if the port numbers that has MLD Snooping list item to be comprised in this MLD Snooping list item set is identical with the port numbers that receives the described port that joins message, then directly this MLD Snooping list item is sent to

Executive Module

102, if the port numbers that does not have MLD Snooping list item to be comprised in the set of this MLD Snooping list item is identical with the port numbers that receives the described port that joins message, then notify second creating

unit

1016 according to this multicast group IP address and receive port numbers MLD Snooping list item of establishment in this MLD Snooping list item set of the described port that joins message; If leave message, the multicast group IP address lookup that is comprised in the message information that

second query unit

1014 parses according to

second resolution unit

1012 and judge in the MLD Snooping list item of storage whether the MLD Snooping list item set that has comprised this multicast group IP address is arranged, if judged result is for denying, then do not carry out any operation, if judged result is for being, judge that then the port numbers that whether has MLD Snooping list item to be comprised in this MLD Snooping list item set is identical with the port numbers of the port that receives described leave message, if the port numbers that does not have MLD Snooping list item to be comprised in this MLDSnooping list item set is identical with the port numbers of the port that receives described leave message, then do not carry out any operation, if the port numbers that has MLD Snooping list item to be comprised in this MLD Snooping list item set is identical with the port numbers of the port that receives described leave message, then delete this port numbers, and delete this MLD Snooping list item.If after deleting this MLDSnooping list item, this MLD Snooping list item set is then deleted this MLD Snooping list item set for empty.

First creating

unit

1015 is used to create IGMP Snooping list item.If

first query unit

1013 is judged the IGMP Snooping list item set that does not comprise the multicast group IP address that is comprised in the message that parses in the IGMP Snooping list item of storage, the IGMP Snooping list item that does not perhaps comprise the port numbers of the port that receives described message in the IGMP Snooping list item set corresponding to the multicast group IP address that is comprised in the message that parses, then first creating

unit

1015 is created an IGMP Snooping list item according to the port numbers of multicast group IP address that is comprised in this message that parses and the port that receives described message, comprise the multicast group IP address that is comprised in the message that parses in this IGMP Snooping list item, VLAN ID and receive the port numbers port numbers of the port of described message sends to

Executive Module

102 with this IGMP Snooping list item again.For example, the IGMP Snooping list item of this establishment can be as follows:

IGMP Snooping list item: (224.1.1.1,100,1)

Wherein, 224.1.1.1 is multicast group IP address, and 100 is VLAN ID, and 1 is the port numbers port numbers that receives the port of described message.Multicast group IP address can corresponding a plurality of VLAN ID, also can corresponding a plurality of port numbers, but only comprise a multicast group IP address, a VLAN ID and a port numbers in an IGMP Snooping list item.

Second creating

unit

1016 is used to create MLD Snooping list item.If

second query unit

1014 is judged the MLD Snooping list item set that does not comprise the multicast group IP address that is comprised in the message that parses in the MLD Snooping list item of storage, the MLD Snooping list item that does not perhaps comprise the port numbers of the port that receives described message in the MLD Snooping list item set corresponding to the multicast group IP address that is comprised in the message that parses, then second creating

unit

1016 is created a MLD Snooping list item according to the port numbers of multicast group IP address that is comprised in this message that parses and the port that receives described message, comprise the multicast group IP address that is comprised in the message that parses in this MLD Snooping list item, VLANID and port numbers send to

Executive Module

102 with this MLD Snooping list item again.For example, the MLD Snooping list item of this establishment can be as follows:

MLD Snooping list item: (ff4e::1,100,2)

Wherein, ff4e::1 is multicast group IP address, and 100 is VLAN ID, and 2 is the port numbers port numbers that receives the port of described message.Multicast group IP address can corresponding a plurality of VLAN ID, also can corresponding a plurality of port numbers, but only comprise a multicast group IP address, a VLANID and a port numbers in a MLD Snooping list item.

Referring to Fig. 3 B, specifically comprise

operating unit

1021 and

address table unit

1022 in the described Executive Module 102.Wherein,

Executive Module

102 can be realized by function.

Operating unit

1021 is used for adding or deletion MAC forwarding entry.Multicast mac address can corresponding many MAC forwarding entrys, and these many MAC forwarding entrys are formed a multicast MAC forwarding entry set corresponding to this multicast mac address, comprise a MAC Address and a port numbers in the MAC forwarding entry.If the message that

processing module

101 is received is for joining message, after the multicast group IP map addresses that

modular converter

103 carries in message is multicast mac address, whether

operating unit

1021 inquiry in the

Executive Module

102 and judging has the pairing multicast MAC of the multicast mac address forwarding entry after the multicast group IP map addresses in the joining message that this receives to gather in the existing MAC forwarding entry, if judged result is for denying, then create a multicast MAC forwarding entry according to the port numbers of carrying in this multicast mac address and first list item or second list item, this multicast MAC forwarding entry is formed a multicast MAC forwarding entry set corresponding to this multicast mac address, if judged result is for being, judge that then that whether the port numbers of carrying in port numbers that the MAC forwarding entry comprised and first list item or second list item is arranged in this multicast MAC forwarding entry set is identical, the port numbers of carrying in first list item or second list item is the port numbers of the described transmit leg that joins message, if there is the port numbers of carrying in port numbers that the MAC forwarding entry comprised and first list item or second list item identical in this multicast MAC forwarding entry set, then do not carry out any operation, if do not have the port numbers of carrying in port numbers that the MAC forwarding entry comprised and first list item or second list item identical in this multicast MAC forwarding entry set, then according to the port numbers of carrying in this multicast mac address and first list item or second list item MAC forwarding entry of interpolation in the set of this multicast MAC forwarding entry.If the message that

processing module

101 is received is a leave message, whether

operating unit

1021 inquiry and judging has the pairing multicast MAC of the multicast mac address forwarding entry after the multicast group IP map addresses in the joining message that this receives to gather in the existing MAC forwarding entry, if judged result is for denying, then do not do any operation, if judged result is for being, judge then whether this multicast MAC forwarding entry set has the port numbers of carrying in port numbers that the MAC forwarding entry comprised and first list item or second list item identical, the port numbers of carrying in first list item or second list item is the port numbers that transmit leg is left in described adding, if there is the port numbers of carrying in port numbers that the MAC forwarding entry comprised and first list item or second list item identical in this multicast MAC forwarding entry set, then

operating unit

1021 is deleted this port numbers in this multicast MAC forwarding entrys, and delete this MAC forwarding entry, if the set of this multicast MAC forwarding entry is for empty after deleting this MAC forwarding entry, then delete the set of this multicast MAC forwarding entry, if do not have the port numbers of carrying in port numbers that the MAC forwarding entry comprised and first list item or second list item identical in this multicast MAC forwarding entry set, then do not do any operation.

Address table unit

1022 is used for the storage and uniform MAC Address.

Address table unit

1022 comprises a public mac address table, wherein stored MAC Address,

modular converter

103 all is stored in the public mac address table of

address table unit

1022 after included multicast group IP map addresses is multicast mac address in multicast group IP address included in the IGMP Snooping list item or the MLD Snooping list item.All MAC forwarding entrys of creating according to MAC Address and port numbers have also been stored in the public mac address table.The VLAN ID that does not comprise destination interface in this MAC forwarding entry, i.e. the pairing VLAN ID of IPv4 multicast recipient or IPv6 multicast recipient, this VLAN ID can be stored in the address table.

Introduce method of multicasting below by flow process.

Referring to Fig. 4, the main method flow process that MAC Address is upgraded is as follows:

Step 401: obtain the multicast group IP address of IPv4 version or the multicast group IP address of IPv6 version according to the message of receiving.

Step 402: when obtaining the multicast group IP address of IPv4 version, be multicast media access control MAC address with the multicast group IP map addresses of the IPv4 version that obtains; When obtaining the multicast group IP address of IPv6 version, be multicast mac address with the multicast group IP map addresses of the IPv6 version that obtains.

Step 403: upgrade public mac address table according to the multicast mac address that obtains.

Referring to Fig. 5, the embodiment of the invention is example to receive to join message.When joining message to the IPv4 version, the detailed method flow process that obtains IGMP Snooping list item is as follows:

Step 501: receive and join message the port numbers of the described port that joins message of acquisition reception.Wherein, this to join message be that IPv4 multicast recipient sends.

Step 502: resolve this and join message, obtain multicast group IP address, VLAN ID.Judge the protocol type that this joins message, determine IPv4 or IPv6.

Step 503:, judge whether to exist corresponding IGMP Snooping list item set according to this multicast group IP address.When judged result when being, execution in step 504, otherwise execution in step 505.If joining message of receiving in the step 501 is that IPv6 multicast recipient sends, then this step is to judge whether to exist corresponding MLD Snooping list item.

Step 504: judge that the port numbers that whether has IGMP Snooping list item to be comprised in this IGMP Snooping list item set is identical with the port numbers that receives the described port that joins message.When judged result for not the time, continue step 505, otherwise continue step 506.

Step 505: create IGMP Snooping list item according to this multicast group IP address, VLAN ID and port numbers.For example, IGMP Snooping list item can be (224.1.1.1,100,1).Execution in step 507.If joining message of receiving in the step 501 is that IPv6 multicast recipient sends, then this step is to create MLD Snooping list item according to this multicast group IP address, VLAN ID and port numbers.

Step 506: this IGMP Snooping list item is sent to Executive Module 102.Can the interface function that call

Executive Module

102 when specific implementation.If joining message of receiving in the step 501 is that IPv6 multicast recipient sends, then this step is for to send to

Executive Module

102 with this MLD Snooping list item.

Referring to Fig. 6, the embodiment of the invention is example to receive to join message, and when joining message of receiving is the IPv6 version, the detailed method flow process that obtains MAC Address is as follows:

Step 601: receive MLD Snooping list item.If joining message of receiving is the IPv4 version, what then receive in this step is IGMP Snooping list item.

Step 602: the IP address version of determining this MLD Snooping list item is IPv6.If what receive in the

step

601 is IGMP Snooping list item, then this step is IPv4 for the IP address version of determining this IGMP Snooping list item.

Step 603: the multicast group IP map addresses that comprises in the MLD Snooping list item is obtained multicast mac address.Wherein, the multicast group IP address of IPv6 version is 128, and the MAC Address that mapping obtains is 48.For example, the multicast mac address that obtains after the multicast group IP map addresses with ff4e::1 is 3333.0000.0001.If determine in the

step

602 that the IP address version of IGMP Snooping list item is IPv4, then this step is for to obtain multicast mac address with the multicast group IP map addresses that comprises in the IGMP Snooping list item.

Step 604: judge in already present MAC forwarding entry, whether to have and gather with the corresponding multicast MAC of this multicast mac address forwarding entry.Wherein, corresponding referring in the existing MAC forwarding entry has in the multicast MAC forwarding entry set pairing multicast mac address identical with this multicast mac address.When judged result when being, execution in

step

605, otherwise execution in

step

606.

Step 605: judge that whether the port numbers of carrying in port numbers that the MAC forwarding entry comprised and second list item is arranged in this multicast MAC forwarding entry set is identical.When judged result for not the time, continue

step

606, otherwise continue step 607.If what receive in the

step

601 is IGMP Snooping list item, then this step is to judge in this MAC forwarding entry set that multicast whether has the port numbers of carrying in port numbers that the MAC forwarding entry comprised and first list item identical.。

Step 606: add a MAC forwarding entry according to the port numbers of carrying in this multicast mac address and described second list item.

Step 607: this MLD Snooping list item is sent to

Executive Module

102.

Referring to Fig. 7,, when leave message is the IPv4 version, as follows in the embodiment of the invention to the detailed method flow process of the processing of IGMP Snooping list item to receive that leave message is an example:

Step 701: receive leave message, obtain the port numbers of the port of the described leave message of reception.Wherein, this leave message is that IPv4 multicast recipient sends.

Step 702: determine that this leave message is the IPv4 version.Perhaps this leave message also can be the IPv6 version.

Step 703: resolve this leave message, obtain multicast group IP address and VLAN ID.

Step 704:, judge whether to exist corresponding IGMP Snooping list item set according to this multicast group IP address.When judged result when being, execution in step 704, otherwise process ends.If determine in the

step

702 that this leave message is the IPv6 version, then this step is according to this multicast group IP address, judges whether to exist corresponding MLD Snooping list item.

Step 705: judge that the port numbers that whether has IGMP Snooping list item to be comprised in this IGMP Snooping list item set is identical with the port numbers of the port that receives described leave message.When judged result when being, execution in

step

706, otherwise process ends.

Step 706: delete this port numbers in this IGMP Snooping list item, and delete this IGMPSnooping list item.

Step 707: judge whether this IGMP Snooping list item set is empty.When judged result when being, continue

step

708, otherwise process ends.

Step 708: delete this IGMP Snooping list item set.

Referring to Fig. 8,, when leave message is the IPv6 version, as follows in the embodiment of the invention to the detailed method flow process of the processing of MLD Snooping list item to receive that leave message is an example:

Step 801: obtain the multicast group IP address in the MLD Snooping list item.If leave message is the IPv4 version, then this step is for obtaining the multicast group IP address in the IGMP Snooping list item.

Step 802: the IP address version of determining this MLD Snooping list item is IPv6.If

step

801 is for obtaining the multicast group IP address in the IGMP Snooping list item, then this step is IPv4 for the IP address version of determining this IGMPSnooping list item.

Step 803: the multicast group IP map addresses that comprises in the MLD Snooping list item is obtained multicast mac address.Wherein, the multicast group IP address of IPv6 version is 128, and the multicast mac address that mapping obtains is 48.For example, the multicast mac address that obtains after the multicast group IP map addresses with ff4e::1 is 3333.0000.0001.If determine in the

step

602 that the IP address version of IGMP Snooping list item is IPv4, then this step is for to obtain multicast mac address with the multicast group IP map addresses that comprises in the IGMP Snooping list item.

Step 804: judge in already present MAC forwarding entry, whether to have and gather with this multicast group IP address corresponding multicast MAC forwarding entry.Wherein, corresponding referring in the existing MAC forwarding entry has the MAC Address that comprises in the MAC forwarding entry identical with this multicast mac address.When judged result when being, execution in

step

805, otherwise process ends.

Step 805: judge that whether the port numbers of carrying in port numbers that multicast MAC forwarding entry comprised and second list item is arranged in the set of this MAC forwarding entry is identical.When judged result when being, execution in

step

806, otherwise process ends.

Step 806: delete this port numbers in this multicast MAC forwarding entry, and delete this MAC forwarding entry.

Step 807: judge whether the set of this multicast MAC forwarding entry is empty.When judged result when being, execution in

step

808, otherwise process ends.

Step 808: this MAC forwarding entry set of deletion multicast.

The embodiment of the invention obtains the multicast group IP address of Internet Protocol Version 4 IPv4 version or the multicast group IP address of IPv6 IPv6 version according to the message of receiving; When obtaining the multicast group IP address of IPv4 version, be multicast media access control MAC address with the multicast group IP map addresses of the IPv4 version that obtains; When obtaining the multicast group IP address of IPv6 version, be multicast mac address with the multicast group IP map addresses of the IPv6 version that obtains; Upgrade public mac address table according to the multicast mac address that obtains.The MAC Address of IPv4 and IPv6 is carried out storage and uniform, and IPv4 and IPv6 protocol stack no longer need to safeguard respectively public mac address table separately, have saved memory source.And IPv4 and IPv6 dual stack use same Executive Module 102 to manage, reduced the complexity that software is realized, and, when implementing safety management at multicast mac address, can avoid and concrete protocol version coupling, strengthened the MAC transplantability, storage and uniform and maintenance have also been realized to MAC Address, when handling leave message, if delete behind corresponding IGMP Snooping list item or the MLD Snooping list item set of IGMP Snooping list item or the set of MLD Snooping list item for empty, then delete this IGMP Snooping list item set or the set of MLD Snooping list item, if the set of multicast MAC forwarding entry is for empty after deleting corresponding MAC forwarding entry, then deletes this MAC forwarding entry set, thereby effectively saved memory headroom, make in the public mac address table canned data more reasonable, be convenient to utilize.

Those skilled in the art should understand that embodiments of the invention can be provided as method, system or computer program.Therefore, the present invention can adopt complete hardware embodiment, complete software implementation example or in conjunction with the form of the embodiment of software and hardware aspect.And the present invention can adopt the form that goes up the computer program of implementing in one or more computer-usable storage medium (including but not limited to magnetic disc store and optical memory etc.) that wherein include computer usable program code.

The present invention is that reference is described according to the flow chart and/or the block diagram of method, equipment (system) and the computer program of the embodiment of the invention.Should understand can be by the flow process in each flow process in computer program instructions realization flow figure and/or the block diagram and/or square frame and flow chart and/or the block diagram and/or the combination of square frame.Can provide these computer program instructions to the processor of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing device to produce a machine, make the instruction of carrying out by the processor of computer or other programmable data processing device produce to be used for the device of the function that is implemented in flow process of flow chart or a plurality of flow process and/or square frame of block diagram or a plurality of square frame appointments.

These computer program instructions also can be stored in energy vectoring computer or the computer-readable memory of other programmable data processing device with ad hoc fashion work, make the instruction that is stored in this computer-readable memory produce the manufacture that comprises command device, this command device is implemented in the function of appointment in flow process of flow chart or a plurality of flow process and/or square frame of block diagram or a plurality of square frame.

These computer program instructions also can be loaded on computer or other programmable data processing device, make on computer or other programmable devices and to carry out the sequence of operations step producing computer implemented processing, thereby the instruction of carrying out on computer or other programmable devices is provided for being implemented in the step of the function of appointment in flow process of flow chart or a plurality of flow process and/or square frame of block diagram or a plurality of square frame.

Obviously, those skilled in the art can carry out various changes and modification to the present invention and not break away from the spirit and scope of the present invention.Like this, if of the present invention these are revised and modification belongs within the scope of claim of the present invention and equivalent technologies thereof, then the present invention also is intended to comprise these changes and modification interior.

Claims (16)

1. a MAC Address update method is characterized in that, may further comprise the steps:

Obtain the multicast group IP address of Internet Protocol Version 4 IPv4 version or the multicast group IP address of IPv6 IPv6 version according to the message of receiving;

When obtaining the multicast group IP address of IPv4 version, be multicast media access control MAC address with the multicast group IP map addresses of the IPv4 version that obtains; When obtaining the multicast group IP address of IPv6 version, be multicast mac address with the multicast group IP map addresses of the IPv6 version that obtains;

Upgrade public mac address table according to the multicast mac address that obtains.

2. the method for claim 1 is characterized in that, the described message of receiving is for joining message, and when obtaining the multicast group IP address of IPv4 version, is multicast media access control MAC address with the multicast group IP map addresses of the IPv4 version that obtains; When obtaining the multicast group IP address of IPv6 version, be also to comprise step before the multicast mac address with the multicast group IP map addresses of the IPv6 version that obtains:

When the multicast group IP address that obtains the IPv4 version according to the message of receiving, judge first list item set whether Internet group management protocol of the multicast group is spied upon has among the IGMP Snooping corresponding to the multicast group IP address of described IPv4 version, when judged result for not the time, comprise first list item of the port numbers of receiving the described port that joins message according to the multicast group IP address creation of IPv4 version;

When the multicast group IP address that obtains the IPv6 version according to the message of receiving, judge second list item set whether multicast listener discovery is spied upon has among the MLD Snooping corresponding to the multicast group IP address of described IPv6 version, when judged result for not the time, comprise second list item of the port numbers of receiving the described port that joins message according to the multicast group IP address creation of IPv6 version.

3. method as claimed in claim 2 is characterized in that,

When judgement defines first list item set corresponding to the multicast group IP address of described IPv4 version, judge that the port numbers that whether has first list item to be comprised in described first list item set is identical with the port numbers of receiving the described port that joins message, when the port numbers that does not have first list item to be comprised in described first list item set is identical with the port numbers of receiving the described port that joins message, comprise first list item of the port numbers of receiving the described port that joins message according to the multicast group IP address creation of described IPv4 version; Perhaps

When judgement defines second list item set corresponding to the multicast group IP address of described IPv6 version, judge that the port numbers that whether has second list item to be comprised in described second list item set set is identical with the port numbers of receiving the described port that joins message, when the port numbers that does not have first list item to be comprised in described second list item set is identical with the port numbers of receiving the described port that joins message, comprise second list item of the port numbers of receiving the described port that joins message according to the multicast group IP address creation of described IPv6 version.

4. as claim 2 or 3 described methods, it is characterized in that, the described message of receiving is for joining message, the step of upgrading public mac address table according to the multicast mac address that obtains comprises: judge the multicast MAC forwarding entry set that whether has in the public mac address table corresponding to the multicast mac address of described acquisition, when judged result for not the time, create the MAC forwarding entry that comprises the port numbers of carrying in described first list item or second list item according to the multicast mac address that obtains, when judged result when being, judge that whether the port numbers of carrying in port numbers that the MAC forwarding entry comprised and described first list item or second list item is arranged in the set of described multicast MAC forwarding entry is identical, when the port numbers of carrying in the port numbers that does not have the MAC forwarding entry to be comprised in the set of described multicast MAC forwarding entry and described first list item or second list item was identical, interpolation in described multicast MAC forwarding entry set comprised the MAC forwarding entry of the port numbers of carrying in described first list item or second list item according to described multicast mac address.

5. the method for claim 1 is characterized in that, the described message of receiving is a leave message, when obtaining the multicast group IP address of IPv4 version, is multicast media access control MAC address with the multicast group IP map addresses of the IPv4 version that obtains; When obtaining the multicast group IP address of IPv6 version, be also to comprise step before the multicast mac address with the multicast group IP map addresses of the IPv6 version that obtains:

Judge first list item set that whether has among the IGMP Snooping corresponding to the multicast group IP address of described IPv4 version, when judged result when being, judge that the port numbers that whether has first list item to be comprised in described first list item set is identical with the port numbers of the port of receiving described leave message, when the port numbers that first list item port numbers that is comprised and the port of receiving described leave message are arranged in described first list item set is identical, this port numbers of deletion in described first list item, and delete described first list item; Perhaps

Judge second list item set that whether has among the MLD Snooping corresponding to the multicast group IP address of described IPv6 version, when judged result when being, judge that the port numbers that whether has second list item to be comprised in described second list item set is identical with the port numbers of the port of receiving described leave message, when the port numbers that second list item port numbers that is comprised and the port of receiving described leave message are arranged in described second list item set is identical, in this port numbers of middle deletion of described second list item, and delete described second list item.

6. method as claimed in claim 5 is characterized in that, also comprises step:

Judge whether the set of described first list item is empty, when judged result when being, delete described first list item and gather; Perhaps

Judge whether the set of described second list item is empty, when judged result when being, delete described second list item and gather.

7. as claim 5 or 6 described methods, it is characterized in that, the described message of receiving is a leave message, the step of upgrading public mac address table according to the multicast mac address that obtains comprises: judge whether the multicast MAC forwarding entry set corresponding to the multicast mac address of described acquisition, when judged result when being, judge that whether the port numbers of carrying in port numbers that the MAC forwarding entry comprised and described first list item or second list item is arranged in the set of described multicast MAC forwarding entry is identical, when the port numbers of carrying in the port numbers that has the MAC forwarding entry to be comprised in the set of described multicast MAC forwarding entry and described first list item or second list item is identical, this port numbers of deletion in described MAC forwarding entry, and delete described MAC forwarding entry; Continuation judges whether described multicast MAC forwarding entry set is empty, when described multicast MAC forwarding entry set is sky, deletes described multicast MAC forwarding entry set.

8. a method of multicasting is characterized in that, may further comprise the steps:

Obtain the multicast group IP address of IPv4 version or the multicast group IP address of IPv6 version according to the message of receiving;

When obtaining the multicast group IP address of IPv4 version, be multicast media access control MAC address with the multicast group IP map addresses of the IPv4 version that obtains; When obtaining the multicast group IP address of IPv6 version, be multicast mac address with the multicast group IP map addresses of the IPv6 version that obtains;

In public mac address table, inquire about and described multicast mac address corresponding port number according to described multicast mac address, carry out data forwarding according to described port numbers.

9. a MAC Address updating device is characterized in that, comprising:

Processing module is used for obtaining the multicast group IP address of IPv4 version or the multicast group IP address of IPv6 version according to the message of receiving;

Modular converter is used for when obtaining the multicast group IP address of IPv4 version, is multicast media access control MAC address with the multicast group IP map addresses of the IPv4 version that obtains; When obtaining the multicast group IP address of IPv6 version, be multicast mac address with the multicast group IP map addresses of the IPv6 version that obtains;

Executive Module is used for upgrading public mac address table according to the multicast mac address that obtains.

10. device as claimed in claim 9, it is characterized in that, the described message of receiving is for joining message, described processing module also is used for when the multicast group IP address that obtains the IPv4 version according to the message of receiving, judge first list item set whether Internet group management protocol of the multicast group is spied upon has among the IGMP Snooping corresponding to the multicast group IP address of described IPv4 version, when judged result for not the time, comprise first list item of the port numbers of receiving the described port that joins message according to the multicast group IP address creation of IPv4 version; When the multicast group IP address that obtains the IPv6 version according to the message of receiving, judge second list item set whether multicast listener discovery is spied upon has among the MLD Snooping corresponding to the multicast group IP address of described IPv6 version, when judged result for not the time, comprise second list item of the port numbers of receiving the described port that joins message according to the multicast group IP address creation of IPv6 version.

11. device as claimed in claim 10, it is characterized in that, described processing module also is used for when judging first list item set define corresponding to the multicast group IP address of described IPv4 version, judge that the port numbers that whether has first list item to be comprised in described first list item set is identical with the port numbers of receiving the described port that joins message, when the port numbers that does not have first list item to be comprised in described first list item set is identical with the port numbers of receiving the described port that joins message, comprise first list item of the port numbers of receiving the described port that joins message according to the multicast group IP address creation of described IPv4 version; Perhaps when judging second list item set define corresponding to the multicast group IP address of described IPv6 version, judge that the port numbers that whether has second list item to be comprised in described second list item set is identical with the port numbers of receiving the described port that joins message, when the port numbers that does not have first list item to be comprised in described second list item set is identical with the port numbers of receiving the described port that joins message, comprise second list item of the port numbers of receiving the described port that joins message according to the multicast group IP address creation of described IPv6 version.

12. as claim 10 or 11 described devices, it is characterized in that, the described message of receiving is for joining message, described Executive Module is used for judging whether public mac address table has the multicast MAC forwarding entry set corresponding to the multicast mac address of described acquisition, when judged result for not the time, create the MAC forwarding entry that comprises the port numbers of carrying in described first list item or second list item according to the multicast mac address that obtains, when judged result when being, judge that whether the port numbers of carrying in port numbers that the MAC forwarding entry comprised and described first list item or second list item is arranged in the set of described multicast MAC forwarding entry is identical, when the port numbers of carrying in the port numbers that does not have the MAC forwarding entry to be comprised in the set of described multicast MAC forwarding entry and described first list item or second list item was identical, interpolation in described multicast MAC forwarding entry set comprised the MAC forwarding entry of the port numbers of carrying in described first list item or second list item according to described multicast mac address.

13. device as claimed in claim 9, it is characterized in that, the described message of receiving is a leave message, described processing module is used for also judging whether IGMP Snooping has first list item set corresponding to the multicast group IP address of described IPv4 version, when judged result when being, judge that the port numbers that whether has first list item to be comprised in described first list item set is identical with the port numbers of the port of receiving described leave message, when the port numbers that first list item port numbers that is comprised and the port of receiving described leave message are arranged in described first list item set is identical, this port numbers of deletion in described first list item, and delete described first list item; Perhaps judge second list item set that whether has among the MLD Snooping corresponding to the multicast group IP address of described IPv6 version, when judged result when being, judge that the port numbers that whether has second list item to be comprised in described second list item set is identical with the port numbers of the port of receiving described leave message, when the port numbers that second list item port numbers that is comprised and the port of receiving described leave message are arranged in described second list item set is identical, this port numbers of deletion in described second list item, and delete described second list item.

14. device as claimed in claim 13 is characterized in that, described processing module is used to also judge whether the set of described first list item is empty, when judged result when being, delete described first list item and gather; Judge perhaps whether the set of described second list item is empty, when judged result when being, delete described second list item and gather.

15. as claim 13 or 14 described devices, it is characterized in that, the described message of receiving is a leave message, described Executive Module is used to judge whether the multicast MAC forwarding entry set corresponding to the multicast mac address of described acquisition, when judged result when being, judge that whether the port numbers of carrying in port numbers that the MAC forwarding entry comprised and described first list item or second list item is arranged in the set of described multicast MAC forwarding entry is identical, the port numbers of carrying in the port numbers that has the MAC forwarding entry to be comprised in the set of described multicast MAC forwarding entry and described first list item or second list item is identical, this port numbers of deletion in described multicast MAC forwarding entry, and delete described MAC forwarding entry; Continuation judges whether described multicast MAC forwarding entry set is empty, when described multicast MAC forwarding entry set is sky, deletes described multicast MAC forwarding entry set.

16. a multicast apparatus is characterized in that, comprising:

Processing module is used for obtaining the multicast group IP address of IPv4 version or the multicast group IP address of IPv6 version according to the message of receiving;

Modular converter is used for when obtaining the multicast group IP address of IPv4 version, is multicast media access control MAC address with the multicast group IP map addresses of the IPv4 version that obtains; When obtaining the multicast group IP address of IPv6 version, be multicast mac address with the multicast group IP map addresses of the IPv6 version that obtains;

Executive Module is used for according to described multicast mac address carrying out data forwarding in the inquiry of public mac address table and described multicast mac address corresponding port number according to described port numbers.

CN201010557252.6A 2010-11-23 2010-11-23 MAC (media access control) address updating method and device Active CN102025796B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201010557252.6A CN102025796B (en) 2010-11-23 2010-11-23 MAC (media access control) address updating method and device
PCT/CN2011/075002 WO2012068854A1 (en) 2010-11-23 2011-05-31 Method and apparatus for updating media access control (mac) address

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201010557252.6A CN102025796B (en) 2010-11-23 2010-11-23 MAC (media access control) address updating method and device

Publications (2)

Publication Number Publication Date
CN102025796A true CN102025796A (en) 2011-04-20
CN102025796B CN102025796B (en) 2014-06-11

Family

ID=43866638

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201010557252.6A Active CN102025796B (en) 2010-11-23 2010-11-23 MAC (media access control) address updating method and device

Country Status (2)

Country Link
CN (1) CN102025796B (en)
WO (1) WO2012068854A1 (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012068854A1 (en) * 2010-11-23 2012-05-31 中兴通讯股份有限公司 Method and apparatus for updating media access control (mac) address
WO2014089746A1 (en) * 2012-12-10 2014-06-19 华为技术有限公司 Message forwarding method and device
US9397943B2 (en) 2012-08-31 2016-07-19 Hangzhou H3C Technologies Co., Ltd. Configuring virtual media access control addresses for virtual machines
CN107888713A (en) * 2016-09-30 2018-04-06 中兴通讯股份有限公司 A kind of method, apparatus and access device of dynamically distributes MAC Address
CN110830378B (en) * 2018-08-07 2022-05-17 迈普通信技术股份有限公司 Address table item updating method and switching equipment

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11991144B2 (en) 2022-04-28 2024-05-21 Cisco Technology, Inc. Seamless MAC address rotation in multi-link device using multiple IP stacks
CN114979090B (en) * 2022-05-27 2024-07-05 深圳市领创星通科技有限公司 IPv6 data packet processing method, device, computer equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070097971A1 (en) * 2005-11-03 2007-05-03 Samsung Electronics Co., Ltd. Method of generating and managing connection identifiers for supporting multicast for each group in IPv6-based wireless network and network interface using the method
CN1968273A (en) * 2006-10-26 2007-05-23 杭州华为三康技术有限公司 IPv6 service supporting method and its switching device
CN1980246A (en) * 2006-12-07 2007-06-13 杭州华为三康技术有限公司 One-layer multi-casting flow retransmission method and two-layer multi-casting apparatus
CN101291240A (en) * 2008-06-19 2008-10-22 杭州华三通信技术有限公司 Multicast flow transmission method and system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102025796B (en) * 2010-11-23 2014-06-11 中兴通讯股份有限公司 MAC (media access control) address updating method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070097971A1 (en) * 2005-11-03 2007-05-03 Samsung Electronics Co., Ltd. Method of generating and managing connection identifiers for supporting multicast for each group in IPv6-based wireless network and network interface using the method
CN1968273A (en) * 2006-10-26 2007-05-23 杭州华为三康技术有限公司 IPv6 service supporting method and its switching device
CN1980246A (en) * 2006-12-07 2007-06-13 杭州华为三康技术有限公司 One-layer multi-casting flow retransmission method and two-layer multi-casting apparatus
CN101291240A (en) * 2008-06-19 2008-10-22 杭州华三通信技术有限公司 Multicast flow transmission method and system

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012068854A1 (en) * 2010-11-23 2012-05-31 中兴通讯股份有限公司 Method and apparatus for updating media access control (mac) address
US9397943B2 (en) 2012-08-31 2016-07-19 Hangzhou H3C Technologies Co., Ltd. Configuring virtual media access control addresses for virtual machines
US9397942B2 (en) 2012-08-31 2016-07-19 Hangzhou H3C Technologies Co., Ltd. Packet forwarding
US9667541B2 (en) 2012-08-31 2017-05-30 Hewlett Packard Enterprise Development Lp Virtual MAC address, mask-based, packet forwarding
WO2014089746A1 (en) * 2012-12-10 2014-06-19 华为技术有限公司 Message forwarding method and device
CN104040986A (en) * 2012-12-10 2014-09-10 华为技术有限公司 Message forwarding method and device
CN107888713A (en) * 2016-09-30 2018-04-06 中兴通讯股份有限公司 A kind of method, apparatus and access device of dynamically distributes MAC Address
CN110830378B (en) * 2018-08-07 2022-05-17 迈普通信技术股份有限公司 Address table item updating method and switching equipment

Also Published As

Publication number Publication date
WO2012068854A1 (en) 2012-05-31
CN102025796B (en) 2014-06-11

Similar Documents

Publication Publication Date Title
CN102025796B (en) 2014-06-11 MAC (media access control) address updating method and device
CN102571587B (en) 2014-11-12 Method and equipment for forwarding messages
CN101577722B (en) 2012-09-05 Method for realizing MAC forced forwarding function and device
JP5855630B2 (en) 2016-02-09 Management server and management method for managing cloud appliance of virtual local area network
CN102857414A (en) 2013-01-02 Forwarding table writing method and device and message forwarding method and device
US8149840B2 (en) 2012-04-03 Method, system and processor for processing network address translation service
CN103441932A (en) 2013-12-11 Host routing table entry generating method and device
JP6096113B2 (en) 2017-03-15 Apparatus and method for configuring personal area network using PN routing table
CN101964799A (en) 2011-02-02 Solution method of address conflict in point-to-network tunnel mode
CN102075426A (en) 2011-05-25 Message transmission method under MFF manual mode and device
CN103634214A (en) 2014-03-12 Route information generating method and device
WO2009146615A1 (en) 2009-12-10 A processing method, a system and a processor for network address translation service
CN106537955A (en) 2017-03-22 Data transmission method and device
CN101815285B (en) 2014-09-10 Data synchronization method and data synchronization system in internet mobile number application
CN103441931A (en) 2013-12-11 Message sending method and device
CN103209127A (en) 2013-07-17 Method and device for achieving virtual routing and forwarding on basis of Linux system
CN102647334B (en) 2015-07-29 A kind of data routing method and device
CN101997778A (en) 2011-03-30 Method and device for sending messages
CN102843253A (en) 2012-12-26 Multi-sub-rack communication device and method and device of communication of multi-sub-rack communication device
CN106506359A (en) 2017-03-15 A network custom organization middleware for naming centric networks
CN113395206A (en) 2021-09-14 Route determining method, device and network equipment
CN102447724B (en) 2014-12-31 Method, server and system for controlling peer-to-peer (P2P) download
CN101989946B (en) 2012-07-18 Compression method of communication equipment route forwarding table
CN104836678A (en) 2015-08-12 Message transmission method based on network selection and time arrangement, and node equipment
CN104158806A (en) 2014-11-19 Session connection establishing method, session connection establishing device, and session border control (SBC) network element

Legal Events

Date Code Title Description
2011-04-20 C06 Publication
2011-04-20 PB01 Publication
2012-06-27 C10 Entry into substantive examination
2012-06-27 SE01 Entry into force of request for substantive examination
2014-06-11 C14 Grant of patent or utility model
2014-06-11 GR01 Patent grant