CN102318290B - Message forward method and device - Google Patents

Message forward method and device Download PDF

Info

Publication number
CN102318290B
CN102318290B CN201180001348.7A CN201180001348A CN102318290B CN 102318290 B CN102318290 B CN 102318290B CN 201180001348 A CN201180001348 A CN 201180001348A CN 102318290 B CN102318290 B CN 102318290B
Authority
CN
China
Prior art keywords
message
mac address
user
virtual mac
address
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.)
Active
Application number
CN201180001348.7A
Other languages
Chinese (zh)
Other versions
CN102318290A (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.)
Huawei 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
Publication of CN102318290A publication Critical patent/CN102318290A/en
Application granted granted Critical
Publication of CN102318290B publication Critical patent/CN102318290B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4604LAN interconnection over a backbone network, e.g. Internet, Frame Relay
    • H04L12/462LAN interconnection over a bridge based backbone
    • H04L12/4625Single bridge functionality, e.g. connection of two networks over a single bridge
    • 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/25Mapping addresses of the same type
    • H04L61/2596Translation of addresses of the same type other than IP, e.g. translation from MAC to MAC addresses
    • 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

Abstract

The invention provides a message forward method and a device, relating to the local network field. The method includes the steps of receiving a message of a user, converting the source MAC of the user message to a virtual MAC address and forwarding the converted message according to a destination MAC address. The device comprises a receiving module, a converting module and a forwarding module. Also provided is a message forwarding method. The method comprises: receiving a message of a user, determining whether the destination MAC address of the user message is a virtual MAC address; if the destination MAC address of the user message is a virtual MAC address, the user message is forward according to the virtual MAC address. According to the invention, when an intermediate device receives the message from a receiving device, only particular bits of the message need to be known, and a message is generated for issue according to the pointed bits, such that the device in the network is not limited to the capacity and capability of hardware devices, storage space of the intermediate device MAC address storage is saved, and thereby the cost of hardware device expanding of the intermediate device can be reduced, and ensure communication efficiency and reduce cost and maintaining cost meanwhile.

Description

Message forwarding method and device
Technical field
The present invention relates to local area network (LAN) field, particularly a kind of message forwarding method and device.
Background technology
VPLS(Virtual Private Lan Service, VPLS) be a kind of based on MPLS(Multi-Protocol Label Switching, multiprotocol label switching) and Layer 2 virtual private network L2VPN(Layer2Virtual Private Network) technology, by VPLS technology, can fictionalize a very large Ethernet switch, based on MAC(Media Access Controll, medium access control) message repeating is carried out in address, thereby can realize how point-to-multipoint VPN networking.The HVPLS(Hierarchical VPLS forwarding based on MAC at present, hierarchical virtual private LAN service) in a lot of places, dispose, increase along with user, mac address table size is also increasing, network needs dilatation, also more and more higher to MAC Address memory span and the performance requirement of equipment.In order to ensure the MAC Address memory span of access device, intermediate equipment and network equipment and the network of performance and constantly dilatation, match, improve the capacity of VPLS Metro Ethernet, common way is exactly the capacity of the MAC Address memory of raising equipment.
In realizing process of the present invention, inventor finds that prior art at least exists following problem:
In order to increase device mac address table capacity, need to redesign or revise hardware and software, increase research and development and manufacturing cost, the network capacity extension not only will be changed or update software, also needs to change or dilatation hardware, and expense is very high.
Summary of the invention
In order to reduce costs and to safeguard when guaranteeing communication efficiency, the embodiment of the present invention provides a kind of message forwarding method and device.Described technical scheme is as follows:
A message forwarding method, comprising:
Receive user's message;
The source MAC of described user's message is converted to virtual mac address, and according to the destination address of described user's message, the user's message after conversion is forwarded, intermediate equipment is received after user's message, the user's message from same access device is generated to a forwarding-table item;
The described source MAC by described user's message is converted to virtual mac address, specifically comprises:
Receive after the user's message from subscriber equipment, read the value of the source MAC field of described user's message, according to described user's message from interface the source MAC of described user's message is converted to virtual mac address, described source MAC is corresponding one by one with virtual mac address.
A message forwarding method, comprising:
Receive user's message, judge whether the destination address of described user's message is virtual mac address;
If the destination address of described user's message is virtual mac address, according to described virtual mac address, corresponding transmitting forwards described user's message;
Described method also comprises:
For the virtual mac address in the source MAC field in the user's message receiving, if while there is no the forwarding-table item of corresponding described virtual mac address in transmitting, learn the designated bit position of the virtual mac address of described user's message, generate the transmitting of designated bit position comprise virtual mac address.
An apparatus for forwarding message, comprising:
Receiver module, for receiving user's message;
Modular converter, for being converted to virtual mac address by the source MAC of described user's message;
Forwarding module, for forwarding the user's message after conversion according to the destination address of described user's message;
Described apparatus for forwarding message is also for receiving after the user's message from subscriber equipment, read the value of the source MAC field of described user's message, according to described user's message from interface the source MAC of described user's message is converted to virtual mac address, intermediate equipment is received after user's message, user's message from same access device is generated to a forwarding-table item, and described source MAC is corresponding one by one with virtual mac address.
An apparatus for forwarding message, comprising:
Receiver module, for receiving user's message;
Judge module, for judging whether the destination address of described user's message is virtual mac address;
Forwarding module, for judging that when described judge module the destination address of described user's message is virtual mac address, according to described virtual mac address, corresponding transmitting forwards described user's message;
Described forwarding module further comprises:
Virtual mac address study submodule, if be used for for the virtual mac address in the source MAC field of the user's message receiving, if while there is no the forwarding-table item of corresponding described virtual mac address in transmitting, learn the forwarding-table item that described virtual mac address generates corresponding described virtual mac address.
The beneficial effect of the technical scheme that the embodiment of the present invention provides is:
By when receiving message, the designated bit position of learned addresses only, and forward according to this designated bit position, while making to carry out message repeating in the more network of subscriber equipment, be not subject to the restriction of hardware device capacity or ability, avoided the dilatation to device mac address table, simplified the learning process to the irregular MAC Address of each subscriber equipment, when guaranteeing communication efficiency, reduced costs and safeguard.
Accompanying drawing explanation
Fig. 1 is the configuration diagram of a kind of simplification of the VPLS metropolitan area network that provides of the embodiment of the present invention;
Fig. 2 is the flow chart of a kind of message forwarding method of providing of the embodiment of the present invention;
Fig. 3 is the exemplary plot of a kind of virtual mac address of providing of the embodiment of the present invention;
Fig. 4 is the flow chart of a kind of message forwarding method of providing of the embodiment of the present invention;
Fig. 5 is the flow chart of a kind of message forwarding method of providing of the embodiment of the present invention;
Fig. 6 is the flow chart of a kind of message forwarding method of providing of the embodiment of the present invention;
Fig. 7 is the structural representation of a kind of apparatus for forwarding message of providing of the embodiment of the present invention;
Fig. 8 is the structural representation of a kind of apparatus for forwarding message of providing of the embodiment of the present invention.
Embodiment
For making the object, technical solutions and advantages of the present invention clearer, below in conjunction with accompanying drawing, embodiment of the present invention is described further in detail.
Embodiment 1
In this embodiment, the HVPLS scene shown in Fig. 1 of take is introduced as a kind of message forwarding method that example provides the embodiment of the present invention, described method executive agent is DSLAM(Digital Subscriber Line Access Multiplexer, Digital Subscriber Line Access Multiplexer).The executive agent that it will be understood by those skilled in the art that the described message forwarding method that the present embodiment provides is not only limited to DSLAM, also can be by other two layers of convergence device, as the switch with aggregation feature is carried out.
Referring to Fig. 2, described message forwarding method comprises:
201, receive user's message;
In the present embodiment, in network, be generally deployed with: access device, intermediate equipment and network equipment, wherein, intermediate equipment is generally the router with VPLS ability.Referring to Fig. 1, access device in the embodiment of the present invention is DSLAM, intermediate equipment is UPE(Underlayer Provider Edge, lower floor's Provider Edge equipment) or SPE(Superstratum Provider Edge, upper layer service provider edge device), network equipment is BRAS(Broadband Remote Access Server, Broadband Remote Access Server).It should be noted that, the user's message described in the present embodiment can be data message or protocol massages.
202, the source MAC of described user's message is converted to virtual mac address, and according to the target MAC (Media Access Control) address of described user's message, by after conversion user's message forward.
For instance, DSLAM receives user's message from the subscriber equipment connecting, and this user's message comprises source mac source MAC Address and object MAC destination address.DSLAM is converted to virtual mac address as shown in Figure 3 by described source mac source MAC Address, and this virtual mac address comprises: VMAC FLAG(virtual mac address sign), the U/L(whole world/this locality) field and I/G(multicast address flag bit) field, access device sign (DSLAM ID) field, slot number (SLOT ID) field, interface number field (PORT ID) and MAC identify (MAC ID) field.This virtual mac address is 48 bits, identical with common MAC Address length.Wherein, the 42-47 bit in described virtual mac address is VMAC FLAG, for identifying this address, is virtual mac address.This sign can be arranged arbitrarily by user, for instance, can be by by the 1st of VMAC FLAG, namely the value of the 47th bit of whole virtual mac address is set to 1 to identify this address is virtual mac address.The 41st bit of described virtual mac address is U/L bit, and it is local management address that this bit is put this address of 1 sign, and this bit sets to 0 and identifies this address is global general-use address.The 40th bit is multicast address flag bit (I/G field), when this bit sets to 0 this address of sign, is unicast address, and it is multicast address that this bit is put this address of 1 sign.Above-mentioned two fields are deferred to IEEE definition, and the present embodiment is not done particular determination.24-39 bit in described virtual mac address is DSLAM ID sign, the value of this sign can dispose and safeguard arbitrarily to arrange arbitrarily according to convenient in real work, be only a name to equipment, if First is 0X0001, second is 0X0002 etc.
0-23 bit in described virtual mac address is groove bit-identify SLOT id field, port-mark PORT id field and MAC id field.Wherein, the value of SLOT id field and port-mark PORT id field can by DSLAM according to the described user's message receiving from interface automatically generate.And the value of user MAC ID can by DSLAM according to described user's message from subscriber equipment determine, for example, for the user's message from subscriber equipment 1 just the value of this field be set to 1, for the user's message from subscriber equipment 2 just the value of this field be set to 2.This MAC ID can also sequentially come to determine according to the access of subscriber equipment, for example, for the subscriber equipment of first access just this field be set to 1, for the subscriber equipment of second access just this field be set to 2, this method to set up is preset in configuration DSLAM by technical staff, the method to set up of this MAC ID can have multiple, and the embodiment of the present invention is not specifically limited.It will be appreciated by those skilled in the art that, the form of above-mentioned virtual mac address is many can realize one of form of the present invention, for any energy and corresponding one by one from the user's of subscriber equipment MAC Address, and the form that can identify to be less than the length of 48 bits the virtual mac address of the DSLAM identity of carrying out this method is all fine.
It should be noted that, at present general deployment way, connects one family gateway (as home router) under interface of DSLAM, then can connect a plurality of subscriber equipmenies with home gateway, as Voip phone, and PC, the subscriber equipmenies such as IPTV Set Top Box.
For instance, in the present embodiment, the source MAC of described user's message is converted to virtual mac address, specifically comprises:
When DSLAM receives after the user's message from subscriber equipment, read the value of the source MAC field of described user's message, then according to the sign of this DSLAM self, and described user's message from interface the source MAC of described user's message is converted to virtual mac address.Because the SLOT ID in described virtual mac address, PORT ID, MAC ID are unique for each DSLAM, the described virtual mac address therefore generating is also unique.Described DSLAM also needs the virtual mac address after the MAC Address of described user's message, conversion and the corresponding relation between the two to store, so that follow-up use.
In addition, it should be noted that, DSLAM can also be when subscriber equipment accesses, for subscriber equipment carries out the mapping of MAC Address and virtual mac address, and the virtual mac address after the MAC Address of described user's message, conversion and the corresponding relation between the two are stored, so that follow-up use.
Due to for same DSLAM, the value of VMAC FLAG, the U/L of described virtual mac address, I/G field and DSLAM id field is all identical, and therefore front 24 bits (the 24-47 position of virtual mac address) of the virtual mac address of the user's message after same DSLAM conversion are all identical.Like this, for the intermediate equipment in VPLS network, the for example UPE in the present embodiment and SPE only need front 24 bits of the source MAC field of the user's message that study receives, and generate the addresses forwarding table that comprises this 24 bit in the process of carrying out address learning.The user's message that just can identify uniquely described reception due to this 24 bit from DSLAM, thereby when described intermediate equipment is from network equipment is received user's message, just can user's message be forwarded to corresponding DSLAM according to front 24 bits of the virtual mac address in the destination address field (DAF) of described user's message.Due to each intermediate equipment, for example UPE and SPE only need to learn the address of 24 bits for each DSLAM, thereby only need to generate a forwarding-table item for the user's message from same DSLAM, MAC Address with respect to each subscriber equipment that same DSLAM is connected generates a forwarding-table item, the message forwarding method that the present embodiment provides has been saved the memory space of intermediate equipment MAC Address memory, saved the required expense of intermediate equipment hardware dilatation, when guaranteeing communication efficiency, reduced costs and maintenance cost.
The described message forwarding method that the embodiment of the present invention provides further comprises:
203, when the destination address of the user's message of receiving is virtual mac address, the virtual mac address in described destination address is converted to corresponding MAC Address, and according to described MAC Address, described user's message is forwarded.
In the present embodiment, because each DSLAM in network connects a plurality of subscriber equipmenies, when described DSLAM is from intermediate equipment, for example UPE receives after user's message, whether the destination address that judges described user's message is virtual mac address, for example, can be by judging whether first of destination address field (DAF) of described user's message is 1, and 1 shows that destination address field (DAF) is virtual mac address if.When described destination address field (DAF) is virtual mac address, the virtual mac address of the local storage of DSLAM inquiry and the corresponding relation of MAC Address, obtain the MAC Address of the subscriber equipment that described virtual mac address is corresponding, and according to this MAC Address, described user's message is transmitted to corresponding subscriber equipment.
In the present embodiment, because each DSLAM in network connects a plurality of subscriber equipmenies, on intermediate equipment UPE and SPE only to the designated bit position of source MAC for example, in the present embodiment, for front 24 bits, learn, and generation is transmitted, when follow-up E-Packeting, only according to transmitting in message destination address, specify the indicated address of bit to forward, just can directly message be sent on the DSLAM under subscriber equipment, and further forwarded by DSLAM, the forwarding of DSLAM can comprise: inquire about local virtual mac address and the corresponding relation of MAC Address, obtain subscriber equipment MAC Address corresponding to virtual mac address in the destination address of active user's message, and according to this MAC Address, this message is forwarded,
Embodiment 2
The embodiment of the present invention 2 provides a kind of message forwarding method.In this embodiment, executive agent is intermediate equipment, and described intermediate equipment is for example the UPE shown in Fig. 1 and SPE.
Referring to Fig. 4, the message forwarding method that the present embodiment provides comprises:
401, receive user's message, judge whether the destination address of described user's message is virtual mac address;
This message can be from the data message of subscriber equipment or protocol massages, can also be the message from network side.
In the present embodiment, when UPE or SPE are from DSLAM receives user's message, whether the destination address field (DAF) that judges described user's message is virtual mac address, for example can be by judging that whether first of destination address of described user's message be 1 to judge, 1 shows that destination address field (DAF) is virtual mac address if.
If the destination address of 402 described user's messages is virtual mac address, according to described virtual mac address, corresponding transmitting forwards described user's message;
If the destination address of described user's message is virtual mac address, receive that the UPE of described user's message or SPE search local addresses forwarding table.For instance, if found the forwarding-table item of front 24 bits of corresponding described virtual address in addresses forwarding table, according to described forwarding-table item, described user's message is forwarded.If do not find the forwarding-table item of front 24 bits of corresponding described virtual address in local addresses forwarding table, described UPE or SPE go out described user's message broadcast transmission, the DSLAM that receives so described user's message can be converted to the virtual mac address in institute's user's message corresponding normal MAC Address, then according to described MAC Address, is transmitted to corresponding subscriber equipment.If the destination address of described user's message is normal MAC Address, receive that the UPE of described user's message or SPE carry out normal user's message forwarding, do not repeat them here.
The message forwarding method that the present embodiment provides may further include:
403, for the virtual mac address in the source MAC field in the user's message receiving, if while there is no the forwarding-table item of corresponding described virtual mac address in transmitting, learn the forwarding-table item that described virtual mac address generates corresponding described virtual mac address.
Specifically, described learning process is identical with normal MAC address learning process, and it is just passable that difference is exactly front 24 bit that need to learn described virtual mac address, thereby in this locality, generates the forwarding-table item of front 24 bits of corresponding described virtual address.Like this, when described UPE or SPE again receive destination address field (DAF) and be the user's message of described virtual mac address, the forwarding-table item of front 24 bits of the described virtual mac address of correspondence that just can generate according to above-mentioned study forward described user's message.It will be appreciated by those skilled in the art that, which bit that carries out virtual mac address learning process learning MAC Address in the present embodiment is relevant with the mode that on DSLAM, the source MAC of user's message is converted to virtual mac address, if the virtual mac address after the upper conversion of DSLAM is used more than or is less than 24 bits, carry out corresponding described DSLAM, in this enforcement, also learn corresponding bit.
The method that the embodiment of the present invention provides, by intermediate equipment when the message receiving from access device, only learn the specific bit position of this message, and generate message repeating table according to this designated bit position, make equipment in network not be subject to the restriction of hardware device capacity or ability, saved the memory space of intermediate equipment MAC Address memory, thereby reduced the required expense of intermediate equipment hardware dilatation, when guaranteeing communication efficiency, reduced costs and maintenance cost.
Embodiment 3
Fig. 5 is the flow chart of a kind of message forwarding method of providing of the embodiment of the present invention.In this embodiment, the process that message is sent, forwarded is described in detail, message is data message, with further reference to Fig. 5, mutual equipment occurs in this process to be comprised: the affiliated DSLAM of subscriber equipment, subscriber equipment that sends message, intermediate equipment UPE, SPE and BRAS, referring to Fig. 5, the method for this embodiment comprises:
501, subscriber equipment sends user's message;
Specifically, the MAC Address that the source MAC that this user's message comprises is subscriber equipment, the MAC Address that destination address is Correspondent Node.It should be noted that, in the present embodiment, be to take MAC Address that subscriber equipment known Correspondent Node to be described as prerequisite, and the situation while not knowing the MAC Address of Correspondent Node for family equipment describes in subsequent embodiment.
In the present embodiment, this virtual mac address form example as shown in Figure 3.Identical in the implication of this each field of virtual mac address and enforcement 1, do not repeat them here.
502, DSLAM receives the user's message that subscriber equipment sends, and the source MAC in described user's message is converted to virtual mac address, and the user's message after conversion is forwarded to UPE;
For instance, DSLAM is when subscriber equipment networks, source MAC to this subscriber equipment is learnt, and according to preset rules, user's source MAC is mapped as to virtual mac address, wherein said virtual mac address with actual MAC Address for corresponding one to one.For example described default rule can embody to preserve the correspondence table of source MAC and virtual mac address one-to-one relationship.Like this, when DSLAM receives the user's message from this subscriber equipment, just can according to the corresponding relation of the source MAC in the correspondence table of this preservation and virtual mac address by described user's message from source MAC Mapping and Converting, be virtual mac address, then the described user's message that completes Mapping and Converting is forwarded.Identical in the form of the virtual mac address after above-mentioned Mapping and Converting process and conversion and above-described embodiment 1 and 2, do not repeat them here.It should be noted that, DSLAM does not need to shine upon to the source MAC of the user's message of sending from network equipment.
503, UPE receives the described user's message after conversion, judge whether the source MAC comprising in this user's message comprises virtual mac address, if, this source MAC is virtual mac address, execution step 504, if not, this source MAC is not virtual mac address, execution step 505;
It should be noted that, for the DSLAM in network or other two layers of convergence device, all support the situation of virtual mac address, the step that can not need judgement, and the situation of not supporting MAC mapping having in DSLAM in the network or other two layers of convergence device, the method need comprise the step of judgement.
504, UPE learns the designated bit position of the virtual mac address of described user's message, generates the transmitting of designated bit position comprise virtual mac address, and continues to forward described user's message to SPE, carries out 506;
Particularly, UPE searches the list item of corresponding described virtual mac address designated bit position in comprising the transmitting of virtual mac address designated bit position, if find corresponding list item, according to the list item of described correspondence, described user's message is forwarded; If do not find corresponding list item, learn the designated bit position of the virtual mac address of described user's message, generate the transmitting of designated bit position comprise virtual mac address, and continue to forward described user's message to SPE, carry out 506;
Wherein, this transmit the forwarding-table item that comprises preserve the described user's message that receives from the interface of UPE and the corresponding relation of described virtual mac address designated bit position, when follow-up, when receiving destination address and comprising the user's message of this designated bit position, the described interface by this user's message by this designated bit position correspondence forwards.
505, described in UPE, the destination address of user's message normally forwards this user's message to SPE, execution step 506;
Due to process judgement, the destination address of described user's message is normal MAC Address rather than virtual mac address, according to MAC Address, forwards described user's message.
506; SPE receives described user's message, judges whether the source MAC comprising in described user's message is virtual mac address, if so, carries out 507, if not, performs step 508;
507, the designated bit position of SPE study virtual mac address, generation is transmitted, and to BRAS, forwards this user's message according to the destination address of described user's message, finishes;
Network side BRAS receives after the user's message after this conversion, by routing table, carries out IP forwarding.
508, SPE forwards described user's message according to the destination address of described user's message to BRAS.
When user's message forwards from BRAS to subscriber equipment, receive the intermediate equipment of user's message, whether the destination address of the described user's message that judgement receives is virtual mac address, if, transmitting that basis is learnt in above-mentioned steps 504 forwards described user's message, when DSLAM receives described user's message, virtual mac address in described user's message is converted to corresponding MAC Address, and according to mac address forwarding table, described user's message is transmitted to the subscriber equipment of this MAC Address indication.When the destination address of the user's message receiving for intermediate equipment is not virtual mac address, according to normal forwarding process, forward, do not repeat them here.Each node (or intermediate equipment) in VPLS metropolitan area network in the embodiment of the present invention only learns to specify in virtual mac address bit, generate a forwarding-table item, namely MAC Address is carried out to polymerization, the designated bit position of each virtual mac address represents a Provider Edge access device (DSLAM), and when forwarding user's message, according to this forwarding-table item, user's message is forwarded to respective operator edge access equipment (DSLAM), greatly reduces mac address table capacity simultaneously.
The method that the embodiment of the present invention provides, by intermediate equipment when the user's message receiving from access device, only learn the specific bit position of source MAC in this user's message, and transmit according to this designated bit position generation user's message, make equipment in network not be subject to the restriction of hardware device capacity or ability, saved the memory space of intermediate equipment MAC Address memory, avoided the dilatation to device mac address table, when guaranteeing communication efficiency, reduced costs and safeguard.
Fig. 6 is the flow chart of a kind of message forwarding method of providing of the embodiment of the present invention.In this embodiment, user's message is protocol massages, take this protocol massages as ARP(Address Resolution Protocol, address resolution protocol) protocol massages is that example is described, also need the source MAC field in message to be converted to virtual mac address, thus the normal work of assurance ARP agreement.In when communication, when subscriber equipment, only know and need to obtain the IP address of Correspondent Node by ARP agreement the MAC Address of opposite end, and the MAC Address of opposite end is included in message as destination address.Under this kind of scene, referring to Fig. 6, this embodiment comprises:
601, subscriber equipment sends user's message;
For instance, the MAC Address that the source MAC that this user's message comprises is subscriber equipment, the IP address that destination address is Correspondent Node.In this embodiment, subscriber equipment is not also known the MAC Address of Correspondent Node, therefore need to obtain MAC Address by ARP protocol massages.
602, DSLAM receives the user's message that subscriber equipment sends, and the source MAC in described user's message is converted to corresponding virtual mac address, and the user's message after conversion is forwarded to UPE;
It should be noted that, due to the particularity of protocol massages, the data content that need to carry user's message detects, and the source MAC in user's message bag is changed.
603, UPE receives the user's message after described conversion, judges whether the source MAC comprising in this user's message after changing is virtual mac address, if so, performs step 604, and if not, source MAC execution step 605;
In the present embodiment, judge whether the source MAC comprising in the user's message after this conversion comprises in the method for virtual mac address and embodiment 1-3 identical, do not repeat them here.
604, UPE learns the designated bit position of the user's message source MAC after described conversion, and generation is transmitted, and forwards the user's message after this conversion to SPE, execution step 606;
Wherein, this transmits the corresponding relation that comprises user's message entrance and designated bit position, and when follow-up, when receiving destination address and comprising the user's message of this designated bit position, the user's message entrance by this user's message by this designated bit position correspondence forwards.The designated bit position of UPE study source MAC generates the method transmitted with 2 identical with the method in 3 the preceding embodiment, does not repeat them here.
605, UPE normally forwards this user's message according to the target MAC (Media Access Control) address of the user's message after described conversion to SPE, execution step 606;
606; SPE receives the user's message after conversion, judges whether the source MAC comprising in this user's message after changing is virtual mac address, if so, performs step 607, if not, performs step 608;
607, SPE learns the designated bit position of described virtual mac address, and generation is transmitted, and to BRAS, forwards this user's message according to the destination address of the user's message after this conversion, finishes;
608, SPE normally forwards the user's message after this conversion according to the target MAC (Media Access Control) address of the user's message after conversion to BRAS.
This step 604-608 and step 504-508 principle are similar, do not repeat them here.
609: during user's message after network side BRAS receives this conversion, generate response message, and this response message is fed back to subscriber equipment;
Particularly, this user's message is ARP request message, and BRAS generates the arp reply message for this ARP request message, and this arp reply message is fed back to subscriber equipment.
In the present embodiment, arp reply message feeds back to from BRAS the similar process that the process of DSLAM and UPE or SPE are learnt and forwarded, do not repeat them here, it should be noted that, when step 603, DSLAM changes the MAC Address of user's message packet header and Bao Nei, therefore, when DSLAM receives the arp reply message of BRAS feedback, also need the destination address in response message to change, this process is further comprising the steps of:
610: when DSLAM receives response message, the virtual mac address by the virtual mac address in response message packet header in advance and in response message bag is converted to MAC Address, and the response message after conversion is transmitted to this subscriber equipment.
By when receiving message, the designated bit position of learned addresses only, and carry out message repeating according to this designated bit position, while making to carry out message repeating in the more network of subscriber equipment, be not subject to the restriction of hardware device capacity or ability, avoided the dilatation to device mac address table, simplified the learning process to the irregular MAC Address of each subscriber equipment, when guaranteeing communication efficiency, reduced costs and safeguard.
Fig. 7 is the structure chart of a kind of apparatus for forwarding message of providing of the embodiment of the present invention, and described apparatus for forwarding message can be for example DSLAM, can be also other two layers of convergence devices, as have the switch of aggregation feature.
Referring to Fig. 7, this apparatus for forwarding message comprises:
Receiver module 701, for receiving user's message;
Modular converter 702, for being converted to virtual mac address by the source MAC of described user's message;
Forwarding module 703, for forwarding the user's message after conversion according to the order MAC Address of described user's message.Lift
Example, described modular converter 702 can specifically comprise:
The first judgement submodule, for judging whether the source MAC of described user's message is virtual mac address;
The first conversion submodule, while being normal MAC Address for the source MAC of judging described user's message when described the first judgement submodule, is converted to virtual mac address by the source MAC of described user's message.
For instance, described modular converter 702 can specifically comprise:
The second judgement submodule, for judging whether the target MAC (Media Access Control) address that described user's message comprises is virtual mac address;
The second conversion submodule, while being virtual mac address for the target MAC (Media Access Control) address of judging described user's message at described the second judgement submodule, is converted to normal MAC Address according to default Mapping and Converting rule by described virtual mac address.
For instance, described modular converter 702 may further include:
The 3rd conversion submodule, while being protocol massages for described user's message, when if the source MAC in described protocol massages is normal MAC Address, source MAC in described protocol massages packet header is converted to virtual mac address, and the source MAC in described protocol massages bag is converted to described virtual mac address; When if the source MAC in described protocol massages is virtual mac address, the virtual mac address in described protocol massages packet header is converted to normal MAC Address, and the virtual mac address in described protocol massages bag is converted to normal MAC Address.
The present embodiment is the retransmission unit of the described message forwarding method in corresponding embodiment 1, and the reference example 1 of description can to(for) the form of the idiographic flow in the process of E-Packeting and step and virtual mac address, does not repeat them here.
Fig. 8 is the structure chart of a kind of apparatus for forwarding message of providing of the embodiment of the present invention, and described apparatus for forwarding message is such as thinking intermediate equipment or the routers such as the UPE shown in Fig. 1 and SPE, and the present invention is not specifically limited.
Referring to Fig. 8, this apparatus for forwarding message comprises:
Receiver module 801, for receiving user's message;
Judge module 802, for judging whether the target MAC (Media Access Control) address of described user's message is virtual mac address;
Forwarding module 803, while being virtual mac address for the target MAC (Media Access Control) address when the described user's message of described judge module 802 judgement, according to described virtual mac address, corresponding transmitting forwards described user's message.
Further, when described forwarding module 803 is also normal MAC Address for the target MAC (Media Access Control) address when the described user's message of described judge module 802 judgement, according to described normal MAC Address, corresponding transmitting forwards described user's message.
For instance, described forwarding module 803 can specifically comprise:
Forward submodule, while being virtual mac address for the target MAC (Media Access Control) address when the described user's message of described judge module 802 judgement, searching virtual mac address transmits, if find the forwarding-table item of corresponding described virtual mac address in virtual mac address is transmitted, according to the forwarding-table item of described virtual mac address, described user's message is forwarded, if do not find the forwarding-table item of corresponding described virtual mac address, described user's message is carried out to broadcast transmission.
Virtual mac address study submodule, if be used for for the virtual mac address in the source MAC field of the user's message receiving, if while there is no the forwarding-table item of corresponding described virtual mac address in transmitting, learn the forwarding-table item that described virtual mac address generates corresponding described virtual mac address.
For instance, the described virtual mac address in the present embodiment comprises: virtual mac address field, access device identification field, slot number field, interface number field and MAC identification field.Due to for same DSLAM, the value of VMAC FLAG, the U/L of described virtual mac address, I/G field and DSLAM id field is all identical, and therefore front 24 bits (the 24-47 position of virtual mac address) of the virtual mac address of the user's message after same DSLAM conversion are all identical.Like this, for the intermediate equipment in VPLS network, the for example UPE in the present embodiment and SPE only need front 24 bits of the source MAC field of the user's message that study receives, and generate the addresses forwarding table that comprises this 24 bit in the process of carrying out address learning.The user's message that just can identify uniquely described reception due to this 24 bit from DSLAM, thereby when described intermediate equipment is from network equipment is received user's message, just can user's message be forwarded to corresponding DSLAM according to front 24 bits of the virtual mac address in the destination address field (DAF) of described user's message.Due to each intermediate equipment, for example UPE and SPE only need to learn the address of 24 bits for each DSLAM, thereby only need to generate a forwarding-table item for the user's message from same DSLAM, MAC Address with respect to each subscriber equipment that same DSLAM is connected generates a forwarding-table item, the message forwarding method that the present embodiment provides has been saved the memory space of intermediate equipment MAC Address memory, saved the required expense of intermediate equipment hardware dilatation, when guaranteeing communication efficiency, reduced costs and maintenance cost.
Retransmission unit in this embodiment is the retransmission unit of the described message forwarding method in corresponding embodiment 1, and the reference example 1 of description can to(for) the form of the idiographic flow in the process of E-Packeting and step and virtual mac address, does not repeat them here.
Subscriber equipment of the present invention can be the PC PC in network, GPRS(General Packet Radio Service, general packet radio service technology) serving GPRS support node, mobile terminal etc., the embodiment of the present invention is not specifically limited.
One of ordinary skill in the art will appreciate that all or part of step that realizes above-described embodiment can complete by hardware, also can come the hardware that instruction is relevant to complete by program, described program can be stored in a kind of computer-readable recording medium, the above-mentioned storage medium of mentioning can be read-only memory, disk or CD etc.
The foregoing is only preferred embodiment of the present invention, in order to limit the present invention, within the spirit and principles in the present invention not all, any modification of doing, be equal to conversion, improvement etc., within all should being included in protection scope of the present invention.

Claims (16)

1. a message forwarding method, is characterized in that, comprising:
Receive user's message;
The source MAC of described user's message is converted to virtual mac address, and according to the destination address of described user's message, the user's message after conversion is forwarded, intermediate equipment is received after user's message, the user's message from same access device is generated to a forwarding-table item;
The described source MAC by described user's message is converted to virtual mac address, specifically comprises:
Receive after the user's message from subscriber equipment, read the value of the source MAC field of described user's message, according to described user's message from interface the source MAC of described user's message is converted to virtual mac address, described source MAC is corresponding one by one with virtual mac address.
2. method according to claim 1, is characterized in that, when described message is protocol massages, the source MAC of described user's message is converted to virtual mac address, specifically comprises:
The source MAC in described protocol massages packet header is converted to virtual mac address, and the source MAC in described protocol massages bag is converted to described virtual mac address.
3. according to the method described in claim 1-2 any one, it is characterized in that, after described reception user's message, also comprise:
When the target MAC (Media Access Control) address of described user's message is virtual mac address, the virtual mac address in described user's message is converted to corresponding MAC Address, and according to the MAC Address of described correspondence, described user's message is forwarded.
4. method according to claim 1, it is characterized in that, described virtual mac address comprises: virtual mac address sign, the U/L whole world/local field and I/G multicast address flag bit field, access device identification field, slot number field, interface number field and MAC identification field.
5. a message forwarding method, is characterized in that, comprising:
Receive user's message, judge whether the target MAC (Media Access Control) address of described user's message is virtual mac address;
If the target MAC (Media Access Control) address of described user's message is virtual mac address, according to described virtual mac address, corresponding transmitting forwards described user's message;
Described method also comprises:
For the virtual mac address in the source MAC field in the user's message receiving, if while there is no the forwarding-table item of corresponding described virtual mac address in transmitting, learn the designated bit position of the virtual mac address of described user's message, generate the transmitting of designated bit position comprise virtual mac address.
6. method according to claim 5, it is characterized in that, described virtual mac address comprises: virtual mac address sign, the U/L whole world/local field and I/G multicast address flag bit field, access device identification field, slot number field, interface number field and MAC identification field.
7. according to the method described in claim 5 or 6, it is characterized in that, the described virtual mac address of described study generates transmitting of corresponding described virtual mac address and is specially:
Learn virtual mac address sign, the U/L whole world/local field and the I/G multicast address flag bit field of virtual mac address in the source MAC field of described user's message.
8. method according to claim 7, it is characterized in that, the user's message that virtual mac address sign, the U/L whole world/local field and the I/G multicast address flag bit field of described virtual mac address are transformed into Virtual MAC ground for same access device by source MAC is all identical.
9. method according to claim 6, is characterized in that, wherein said virtual mac address sign, the U/L whole world/local field and I/G multicast address flag bit field total length are less than 48 bits.
10. method according to claim 6, is characterized in that, wherein said virtual mac address sign, the U/L whole world/local field and I/G multicast address flag bit field total length are 24 bits.
11. 1 kinds of apparatus for forwarding message, is characterized in that, comprising:
Receiver module, for receiving user's message;
Modular converter, for being converted to virtual mac address by the source MAC of described user's message;
Forwarding module, for forwarding the user's message after conversion according to the target MAC (Media Access Control) address of described user's message;
Described apparatus for forwarding message is also for receiving after the user's message from subscriber equipment, read the value of the source MAC field of described user's message, according to described user's message from interface the source MAC of described user's message is converted to virtual mac address, intermediate equipment is received after user's message, user's message from same access device is generated to a forwarding-table item, and described source MAC is corresponding one by one with virtual mac address.
12. apparatus for forwarding message according to claim 11, is characterized in that, described modular converter comprises:
The first judgement submodule, for judging whether the source MAC of described user's message is virtual mac address;
The first conversion submodule, while being normal MAC Address for judge the source MAC of described user's message when described the first judge module, is converted to virtual mac address by the source MAC of described user's message.
13. according to the apparatus for forwarding message described in claim 11 or 12, it is characterized in that, described modular converter comprises:
The second judgement submodule, for judging whether the target MAC (Media Access Control) address that described user's message comprises is virtual mac address;
The second conversion submodule, while being virtual mac address for the target MAC (Media Access Control) address of judging described user's message at described the second judgement submodule, is converted to normal MAC Address according to default Mapping and Converting rule by described virtual mac address.
14. apparatus for forwarding message according to claim 11, is characterized in that, when described message is protocol massages, described modular converter further comprises:
The 3rd conversion submodule, while being protocol massages for described user's message, when if the source MAC in described protocol massages is normal MAC Address, source MAC in described protocol massages packet header is converted to virtual mac address, and the source MAC in described protocol massages bag is converted to described virtual mac address; When if the source MAC in described protocol massages is virtual mac address, the virtual mac address in described protocol massages packet header is converted to normal MAC Address, and the virtual mac address in described protocol massages bag is converted to normal MAC Address.
15. 1 kinds of apparatus for forwarding message, is characterized in that, comprising:
Receiver module, for receiving user's message;
Judge module, for judging whether the target MAC (Media Access Control) address of described user's message is virtual mac address;
Forwarding module, for judging that when described judge module the target MAC (Media Access Control) address of described user's message is virtual mac address, according to described virtual mac address, corresponding transmitting forwards described user's message;
If described apparatus for forwarding message is also for the virtual mac address in the source MAC field of the user's message for receiving, if while there is no the forwarding-table item of corresponding described virtual mac address in transmitting, learn the designated bit position of the virtual mac address of described user's message, generate the transmitting of designated bit position comprise virtual mac address.
16. apparatus for forwarding message according to claim 15, it is characterized in that, described forwarding module is when judging that when described judge module the target MAC (Media Access Control) address of described user's message is virtual mac address, searching virtual mac address transmits, if find the forwarding-table item of corresponding described virtual mac address in virtual mac address is transmitted, according to the forwarding-table item of described virtual mac address, described user's message is forwarded, if do not find the forwarding-table item of corresponding described virtual mac address, described user's message is carried out to broadcast transmission.
CN201180001348.7A 2011-07-29 2011-07-29 Message forward method and device Active CN102318290B (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2011/077818 WO2012109864A1 (en) 2011-07-29 2011-07-29 Message forwarding method and device

Publications (2)

Publication Number Publication Date
CN102318290A CN102318290A (en) 2012-01-11
CN102318290B true CN102318290B (en) 2014-12-10

Family

ID=45429438

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201180001348.7A Active CN102318290B (en) 2011-07-29 2011-07-29 Message forward method and device

Country Status (2)

Country Link
CN (1) CN102318290B (en)
WO (1) WO2012109864A1 (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103428091A (en) * 2012-05-15 2013-12-04 中兴通讯股份有限公司 Control method of MAC address study and forwarding equipment
CN103944826B (en) * 2013-01-22 2017-03-15 杭州华三通信技术有限公司 List item polymerization and equipment in SPBM network
US9350607B2 (en) * 2013-09-25 2016-05-24 International Business Machines Corporation Scalable network configuration with consistent updates in software defined networks
US9112794B2 (en) 2013-11-05 2015-08-18 International Business Machines Corporation Dynamic multipath forwarding in software defined data center networks
CN104660509B (en) * 2013-11-19 2017-11-21 中国科学院声学研究所 The method for processing forwarding of data message in a kind of access gateway
US9930009B2 (en) * 2015-03-13 2018-03-27 Intel IP Corporation Systems and methods to enable network coordinated MAC randomization for wi-fi privacy
CN109636256B (en) * 2019-01-30 2022-04-12 四川长虹电器股份有限公司 MAC address management method of MES system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1578252A (en) * 2003-06-25 2005-02-09 阿尔卡特公司 Architecture for bridged Ethernet residential access networks
CN1968184A (en) * 2005-11-18 2007-05-23 杭州华为三康技术有限公司 Link layer communication method in LAN and network device thereof
CN101645904A (en) * 2009-09-09 2010-02-10 中兴通讯股份有限公司 Method and device for reducing utilization rate of central processing unit of switch

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1545265A (en) * 2003-11-25 2004-11-10 港湾网络有限公司 Method for implementing virtual MAC address in digital subscriber line access server equipment

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1578252A (en) * 2003-06-25 2005-02-09 阿尔卡特公司 Architecture for bridged Ethernet residential access networks
CN1968184A (en) * 2005-11-18 2007-05-23 杭州华为三康技术有限公司 Link layer communication method in LAN and network device thereof
CN101645904A (en) * 2009-09-09 2010-02-10 中兴通讯股份有限公司 Method and device for reducing utilization rate of central processing unit of switch

Also Published As

Publication number Publication date
WO2012109864A1 (en) 2012-08-23
CN102318290A (en) 2012-01-11

Similar Documents

Publication Publication Date Title
CN102318290B (en) Message forward method and device
CN108476160B (en) switch interconnect based on layered overlay tunneling
US9525563B2 (en) Forwarding packets in an edge device
US8848609B2 (en) Forwarding internet protocol version 6 link-local multicast to support roaming of wireless mobile client devices
US9270572B2 (en) Layer-3 support in TRILL networks
CN105450437B (en) SID distribution method and SR node
CN102971992B (en) Virtual special local area network equipment, networking component and data frame forwarding method
US7483439B2 (en) VPN services using address translation over an IPv6 network
CN100596094C (en) Implementation method and switching device of multi-point to multi-point service
CN100596358C (en) Link layer communication method in LAN and network device thereof
US20020052972A1 (en) Communication method among a plurality of virtual LANs in an IP subnet
CN104935516A (en) Communication system based on software defined network and communication method
EP3113427B1 (en) Method for sending multicast packet and switch
CN102859973A (en) Method, apparatus and system for address resolution
CN102404181A (en) Address corresponding relationship sending method of layer 2 protocol utilizing link state routing
CN101577722A (en) Method for realizing MAC forced forwarding function and device
CN105812259A (en) Packet forwarding method and device
CN102957589A (en) Method, network node and system for service data transmission
CN103220215B (en) The retransmission method of FCoE message and device in TRILL network
JP2012156656A (en) Network address translation method, network address translation proxy response method, network address translation device, and network address translation proxy response device
CN102123106A (en) MAC (Multi-Access Computer) addresses learning method and device in virtual private local area network service (VPLS) network
CN102984070B (en) A kind of Ethernet is without the method for numbering Interface realization data retransmission
CN100364289C (en) Method for implementing layer-2 equipment interconnection in resilient packet ring (RPR) based network
CN101114973A (en) Packet forwarding method, system and verge equipment in virtual private network
CN107547404A (en) Flow table generation method and device and message forwarding method and device

Legal Events

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