CN103607479B - A kind of MAC address learning method and PE equipment - Google Patents

A kind of MAC address learning method and PE equipment Download PDF

Info

Publication number
CN103607479B
CN103607479B CN201310532758.5A CN201310532758A CN103607479B CN 103607479 B CN103607479 B CN 103607479B CN 201310532758 A CN201310532758 A CN 201310532758A CN 103607479 B CN103607479 B CN 103607479B
Authority
CN
China
Prior art keywords
equipment
mac address
message
mac
groups
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
CN201310532758.5A
Other languages
Chinese (zh)
Other versions
CN103607479A (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.)
New H3C Technologies Co Ltd
Original Assignee
New H3C 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 New H3C Technologies Co Ltd filed Critical New H3C Technologies Co Ltd
Priority to CN201310532758.5A priority Critical patent/CN103607479B/en
Publication of CN103607479A publication Critical patent/CN103607479A/en
Application granted granted Critical
Publication of CN103607479B publication Critical patent/CN103607479B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Small-Scale Networks (AREA)

Abstract

The present invention proposes a kind of MAC address learning method and PE equipment.Technical solution of the present invention, the PE groups being made up of two PE being connected with each other by interconnection port equipment are set in VPLS network, wherein one PE equipment is set to be connected with CE, another PE equipment is connected by other PE or PE groups of PW and VPLS network, the source MAC by the interface in addition to interconnection port to ARP messages is learnt by each PE equipment, so as to expand open ended MAC Address quantity in network, the stability and sustainability of network are improved.

Description

A kind of MAC address learning method and PE equipment
Technical field
The present invention relates to communication technical field, more particularly to a kind of MAC address learning method.The present invention also relates to one Plant edge router PE equipment.
Background technology
VPLS(Virtual Private Lan Service, Virtual Private LAN Service)It is MPLS(Multi- Protocol Label Switching, multiprotocol label switching)The L2VPN technologies in field, service provider passes through in backbone The online virtual switch for one multiple strange land website of connection of a user network simulation provides VPLS services for user network. In backbone network, each website is transparent for user network, and each website of user network is just as being operated in an office It is the same in the net of domain.
In L2VPN(Virtual Private Network, VPN)In, VPLS passes through source MAC(Media Access Control, medium education)Address learning provides accessibility, PE(Provider Edge, edge router) Can be each VSI(Virtual Switch Instance, virtual switch instance)Safeguard a mac address table.Wherein, VSI is The virtual instance of Layer2 switching service is provided in PE equipment for a VPLS example.VSI can regard one in PE equipment as Virtual switch, it has the institute of traditional ethernet interchanger functional, including source MAC study, MAC address aging, general Flood etc..VPLS is realized by VSI forwards Layer 2 data message in VPLS examples.
As shown in figure 1, the VSI list items in PE1 are VPN1, correspondence MAC A and MAC two MAC Address of B, port is right respectively Should(Vlan10, port 1)And PW1;VSI list items in PE2 are VPN1, correspondence MAC A and MAC two MAC Address of B, port Respectively correspond to PW1 and(Vlan10, port 1);VSI list items in PE3 are VPN1, and corresponding MAC Address is MACA, port pair Answer PW3.In VPLS, study of each PE to source MAC includes following two parts:
(1)Learn with the source MAC of the PE site-locals being joined directly together
The source MAC study of site-local is identical with traditional ethernet interchanger.PE from(Provider Edge, user Edge)CE is received after message, if message source MAC is not present in mac address table, by the source MAC of the message Learn onto PE connections CE AC links.
(2)Pass through PW(Pseudo wire, virtual link)The source MAC study of the remote station of connection
VSI regards PW as logic Ethernet interfaces.PE is received after message from PW, if do not deposited in mac address table In message source MAC, then by the source MAC study of the message to VSI PW logic Ethernet interfaces.
PE equipment carries out source MAC study by both the above mode, when VSI MAC Address list item is full, PE equipment no longer carries out the study of MAC Address, until there is MAC Address list item aging to fall, can just proceed by new MAC Address Study.
In the VPLS network shown in Fig. 1, VPLS flows will be forwarded, it is necessary to carry out opposite end CE device mac address Study.Due to can configure multiple VSI in VPLS network, and each VSI can bind multiple private networks mouthful, and so, each PE is just needed Learn many MAC Address, and the hardware resource of PE equipment is limited, after PE learning equipments are full, can not just learn again new MAC, for example, when VPLS configures 4K VSI, and each VSI binds 8 private networks mouthful, PE equipment needs to learn to 65536 MAC Address, therefore when more VSI is configured in VPLS, the hardware resource of PE equipment possibly can not meet all MAC Address Study, after MAC address learning is full, can not just carry out new MAC address learning, and causing can between the part CE equipment in VPLS It is able to not can communicate.
As can be seen here, after the MAC Address specification for needing to learn reaches the full specification of existing PE equipment, nothing inside VPLS Method carries out not communicating between the study of MAC Address, such CE again, until there is MAC Address to be aging, at this time can just enter The study of the new MAC Address of row.This stability and sustainability to network generates larger limitation.
The content of the invention
For above technical problem, the invention provides a kind of MAC address learning method, methods described Connected applied in the MAC address learning including Virtual Private LAN Service VPLS network, in the VPLS network private network and The equipment of public network is edge router PE groups, and the PE groups are made up of two PE being connected with each other by interconnection port equipment, wherein One PE equipment is connected with customer edge CE equipment, and another PE equipment passes through PW and other PE or PE groups of the VPLS network Connection, methods described includes:
When the PE equipment by the interface in addition to the interconnection port to ARP message when, It whether there is the source MAC of the ARP messages in the mac address table of the PE equipment queries itself;
If being not present, the source MAC is added in the mac address table by the PE equipment, and the ARP is reported Text sends another PE equipment into the PE groups by the interconnection port, so that another PE device forwards or broadcast institute State ARP messages.
The invention also provides a kind of edge router PE equipment, the PE equipment applications are in including virtual special local area network In the MAC address study for servicing VPLS network, for the edge router PE groups of composition connection private network and public network In a PE equipment, wherein, the PE groups include two PE equipment being connected with each other by interconnection port and constituted, wherein one PE equipment is connected with customer edge CE equipment, and another PE equipment passes through PW and other PE equipment or PE groups of the VPLS network Connection, the PE equipment includes:
Enquiry module, during for by the interface in addition to the interconnection port to ARP message, Inquire about in the mac address table of itself and whether there is the source MAC of the ARP messages;
Processing module, the source for the ARP messages to be not present in the mac address table that the enquiry module inquires about itself During MAC Address, the source MAC is added in the mac address table, and the ARP messages are passed through into the interconnection end Mouth sends another PE equipment into the PE groups, so that another PE device forwards or the broadcast ARP messages.
By applying above technical scheme, set and set by two PE being connected with each other by interconnection port in VPLS network The standby PE groups constituted, make wherein one PE equipment be connected with CE, other PE that another PE equipment passes through PW and VPLS network Or PE groups are connected, two PE equipment in PE groups can learn to the MAC Address of private network side and public network side site apparatus respectively, And can the MAC Address based on each self study, carry out the forwarding of data, so as to expand open ended MAC Address quantity in network, Existing single PE equipment is avoided because of the problems of MAC Address list item specification deficiency, improve network stability and can Continuation.
Brief description of the drawings
Fig. 1 is the MAC address learning list item schematic diagram of VPLS network in the prior art;
Fig. 2 is the application scenarios schematic diagram for the MAC address learning method that the embodiment of the present invention is proposed;
Fig. 3 is a kind of MAC address learning method flow schematic diagram that the embodiment of the present invention is proposed;
Fig. 4 is a kind of structural representation for PE equipment that the embodiment of the present invention is proposed.
Embodiment
The problem of to solve the MAC Address specification Shortcomings that can learn in prior art device, the present invention proposes one MAC address learning method is planted, sets what is be made up of two PE being connected with each other by interconnection port equipment in VPLS network PE groups, make wherein one PE equipment be connected with CE, and another PE equipment is connected by other PE or PE groups of PW and VPLS network, The station for the public network side that PE equipment in PE groups can be connected to the site apparatus of private network side that is directly connected to and by public network respectively Two PE equipment that point device is carried out in MAC address learning, i.e. PE groups can share the MAC Address of heterogeneous networks side apparatus Practise, so as to expand open ended MAC Address quantity in network, improve the stability and sustainability of network.
For existing VPLS network, the present invention replaces with the PE equipment for connecting private network and public network by two by port The PE groups that the PE equipment of interconnection is constituted, make a PE equipment therein be connected with CE equipment, another PE equipment passes through Other PE or PE groups connection of PW and VPLS network.Afterwards, the port binding two PE equipment being connected with each other is interconnection port, By way of static entry is set in PE equipment, PE equipment is set to pass through the message that the port in addition to interconnection port is received Interconnection port is transmitted to another PE equipment in PE groups.
As shown in Fig. 2 wherein, CE equipment is client router, provides the user the connection of pe router;PE is route Device is provider edge router, will be carried out according to the routing iinformation of storage after the data processing from ce router or PW links Forwarding, while being responsible for and other pe routers exchange routing iinformation.In the present embodiment, in Fig. 1 original PE1 be replaced by by The PE groups that PE1_1 and PE1_2 are constituted, PE1_1 and PE_2 are connected with each other by respective port 2 and port 1, then by PE1_ 1 port 2 and PE1_2 port 1 are bound, and form interconnection port:A static entry is respectively configured in two equipment, Make the message on PE1_1 private networks to be transmitted to PE1_2 equipment by port 2 to be handled, the report come of making a slip of the tongue from PE1_1 public networks Text also can be transmitted to PE1_1 equipment by port 1 and be handled.So, PE1_1 and PE_2 can be by from interconnection port(For For PE1_1, port 2 is exactly interconnection port, for PE1_2, and port 1 is exactly interconnection port)Outside port receive Message, the processing such as forwarding that message is carried out in another PE equipment can be forwarded to by interconnection port respectively.
In above equipment after setting completed, the PE equipment in PE groups just can be to receiving from the port in addition to interconnection port To data handled, such as carry out MAC address learning.Specifically, as shown in figure 3, MAC Address proposed by the invention Learning method may include following steps:
S301, when PE equipment by the interface in addition to the interconnection port to ARP messages when, the PE equipment is looked into Ask the source MAC that whether there is the ARP messages in the mac address table of itself.
S302, if being not present, the source MAC is added in the mac address table by the PE equipment, and will be described ARP messages send another PE equipment into the PE groups by the interconnection port so that another PE device forwards or Broadcast the ARP messages.
The PE equipment of above-mentioned steps S301 and step S302 executive agent, can be that the PE1_1 in the PE groups in Fig. 2 is set Standby or PE1_2 equipment.Because the PE equipment in PE groups connects private network side and public network side respectively, if its by except interconnection port with When outer interface is to ARP messages, PE equipment is made whether to need MAC Address according to normal process to the ARP messages The judgement of habit, and carry out the study of MAC Address.A PE equipment direct-connected with private network can be exclusively used in learning private network so in PE groups The MAC Address of side, and another PE equipment direct-connected with public network can be exclusively used in learning the MAC Address of public network side so that in PE groups Two PE equipment can be in sharing data repeating process MAC Address study, it is to avoid because of single PE device mac address learning table Specification is not enough and the problem of exist.
In the present embodiment, PE equipment by the interface in addition to interconnection port to data message when, that is, represent relevant Source MAC entrained by the message has learnt to finish, and now the PE equipment can be sent data message by interconnection port To another PE equipment, message is carried out the processing such as to forward by another PE equipment.
Correspondingly, when the PE equipment receives message by interconnection port, because the message is probably in PE groups The data message that another PE is sent, or for asking the ARP request message of MAC Address, or it is whole by other private network sides The arp response message replied according to ARP request message is held, therefore for ARP request message, due to can not find purpose equipment MAC Address, PE equipment will broadcast the message;And for the message in addition to ARP request message, due to having been carried in message Target MAC (Media Access Control) address, PE equipment is by the target MAC (Media Access Control) address in the message, and the mac address table pair itself learnt The message is forwarded.
In addition, two PE equipment of the PE groups in technical solution of the present invention can just be set in netinit Put or constituted during subsequently using network by increasing new PE equipment, specific set-up mode is in this hair Within bright protection domain.If new PE equipment is added in original networking, it is necessary to carry out the VPLS configurations of correlation. Because some PE equipment in PE groups is received after data message from another equipment, it is necessary to be looked into the VSI associated with AC Mac address table is looked for, thereby determines how to E-Packet.Although two PE device configurations are consistent in the network after updating, its bottom The VSI_ID of layer is but likely to inconsistent, in order to be able to be associated with consistent VSI, so that it is guaranteed that forwarding does not malfunction, it is necessary to be PE groups In each PE device configurations VSI_TAG corresponding with the VSI in VPLS network, for this VSI of unique mark.Then encapsulated message When take double layer VLAN TAG, inner VLAN TAG is the VSI_TAG of configuration, and equipment is only forwarded according to outside VLAN Tag and reported Text, and the data division for being taken as message is transmitted by inner VLAN Tag.Data above message is arrived by interconnection port Up to after another PE equipment in PE groups, the PE equipment parses and obtained the VSI_TAG carried in message, is closed according to VSI_TAG The VSI of connection inquires about corresponding mac address table to forward the data message.
In the present embodiment, because PE groups can be set during Web vector graphic, therefore, for PE equipment in network Can be not enough, such as when can not meet MAC address learning function, it is possible to network need are met by way of increasing PE equipment Ask;In addition, by technical solution of the present invention, network can be improved to meet the mode of PE equipment by way of increasing PE Performance.
In the present embodiment, PE equipment can be managed to the MAC Address learnt, and long-time is not used MAC Address carries out the processing operation such as deleting.Specifically, PE equipment can will in mac address table beyond preset time threshold not by The list item that the source MAC of data message is matched is deleted;Or, the address received is reclaimed entrained in message by PE equipment The specified MAC Address in VSI is specified to be deleted from the mac address table;Wherein, it is the CE or institute that message is reclaimed in the address State PW and each PE equipment into the PE groups is being sent after breaking down.
In the present embodiment, the study of above-mentioned PE to MAC Address can be specifically PE_1 direct-connected with private network in PE groups, Can also be the PE_2 direct-connected with public network, if PE_1, its MAC Address learnt is exactly the MAC Address of the client of private network side And corresponding interface, i.e. port 1;If PE_2, its MAC Address learnt is exactly the MAC of the client that is connected by public network Location and corresponding interface, i.e. PW1.
For ease of the understanding to scheme of the embodiment of the present invention, below by by taking the concrete application scene shown in Fig. 2 as an example, to end The flow that implements that end A initiates when Ping is asked to terminal B is illustrated, and in this process, the PE equipment in PE groups can divide Other learning terminal A and terminal B MAC Address, i.e., PE_1 and PE_2 in PE groups can carry out the study of MAC Address, including with The terminal A of site-local direct-connected PE_1 MAC address learning, and with terminal Bs of the PE_2 by the PW remote stations being connected MAC address learning.Idiographic flow includes as follows:
One, the study with the source MAC, i.e. terminal A MAC Address of the PE1_1 site-locals being joined directly together
(1)Terminal A checks the purpose IP address of message, finds and oneself is forwarded in the same network segment, it is necessary to carry out two layers, then Terminal A will check the ARP table of oneself, find terminal B MAC Address not in the ARP table of oneself.Terminal A needs to know terminal B MAC Address, then terminal A send ARP request message, to obtain terminal B MAC Address.
(2)After PE1_1 is from received at terminal A to ARP messages, the report is not present in the mac address table for finding itself storage The MAC Address of the MAC Address, then learning terminal A of the source MAC, i.e. terminal A of text, terminal A source MAC is learnt Onto PE1_1 connections A AC links.
(3)PE1_1 study is arrived after terminal A MAC Address, and the ARP request message is sent out by interconnection port, i.e. port 2 See off, be transmitted to PE1_2.
(4)Because PE1_1 from interconnection port, i.e. port 1 receives the ARP request message, then it will not learn the message In terminal A MAC Address, can be forwarded, continue to broadcast the ARP request message that terminal A is sent.
Two, with source MACs of the PE1_2 by the PW remote stations being connected, the i.e. study of terminal B MAC Address
(1)After the ARP request message that the terminal A that PE2 receives PE1_2 broadcast from PW is sent, with finding the MAC of itself The ARP request message source MAC is not present in the table of location, then by the MAC address learning of the source MAC of the message, i.e. terminal A Onto VSI PW logic Ethernet interfaces.Meanwhile, the ARP request message is sent to terminal B.
(2)Terminal B receives the ARP request message, and meeting learning terminal A MAC Address is sent to the ARP table of oneself ARP back messages, ARP back messages meeting carried terminal B MAC Address;
(3)PE2 is received after the ARP back messages that terminal B is sent, by terminal B MAC address learning to PE2 connection terminals B AC links on, and send the ARP back messages to PE1_1;
(4)PE1_2 is received after the ARP back messages, by the MAC address learning of the source MAC of the message, i.e. terminal B Onto VSI PW logic Ethernet interfaces, such PE_2 just learns the MAC Address to terminal B, and with recording in the MAC of itself In the table of location.
(5)PE1_2 study is arrived after terminal B MAC Address, while can be transmitted to the ARP back messages by interconnection port PE1_1, due to PE1_1 be from interconnection port on receive the ARP back messages, therefore PE1_1 will not learning terminal B MAC Address.And PE1_1 is received after the ARP back messages, due to having learnt terminal A MAC Address, therefore can be according to study The MAC Address list item arrived, terminal A is forwarded to by the ARP back messages.
(6)Terminal A is received after terminal B ARP back messages, you can the MAC of study to its terminal B to be asked Location, and record in the ARP table of itself.
Two PE equipment in by above step PE groups can realize the MAC Address to private network side and public network side respectively After habit, PE groups equipment can carry out the forwarding of data message according to the MAC Address of study.Specifically, the PE1_1 in PE groups and PE1_2 is determined how according to mac address table and E-Packeted, message repeating process specifically may include after study MAC Address terminates Following steps:
(1)Terminal A sends ICMP request messages, is forwarded the packet by looking into MAC table and gives PW1_1;
(2)Message is added last layer VSI_TAG by PW1_1, and PW1_2 is given to by port2;
(3)PW1_2 analytic messages obtain VSI_TAG, then find associated VSI, and MAC table is then searched in VSI Message is passed into PE2 along PW1;
(4)PE2 is transmitted to terminal B by looking into MAC table by message by AC links;
(5)Terminal B is received after ICMP request messages, is sent icmp echo message, is forwarded the packet and give PE2
(6)Message is transmitted to PW1_2 by PE2 along PW1
(7)Message is added last layer VSI_TAG by PW1_2, and PW1_1 is given to by port1
(8)PW1_1 analytic messages obtain VSI_TAG, then find associated VSI, and MAC table is then searched in VSI Message is transmitted to terminal A by AC links.
It is pointed out that based on implementation above flow, the invention also proposes for MAC address aging and recovery The step of, it can will exceed preset time threshold in mac address table by PE equipment not by the source MAC institute of data message The list item matched somebody with somebody is deleted;Either CE or PW are being received in the address recovery report that each PE equipment into PE groups is sent after breaking down Wen Hou, specified MAC Address location reclaimed in specified VSI entrained in message is deleted from the mac address table.
Specifically, by taking scene shown in Fig. 2 as an example, if PE1_2 and PE1_1 is when the ageing timer of MAC Address is overtime, It is not received by message and refreshes the MAC Address list item, then delete the MAC Address list item, reduces the MAC Address of occupancy as far as possible Table resource.Or, when AC or PW states are changed into down, that is, send all distal ends in address recovery message informing VPLS examples PE deletes the specified MAC Address specified in VSI, to accelerate the convergence rate of mac address table.
In addition, the embodiment of the present invention also provides a kind of PE equipment, the PE equipment applications take in including virtual special local area network In the MAC address study for VPLS network of being engaged in, in the edge router PE groups for composition connection private network and public network A PE equipment, wherein, the PE groups include two PE equipment being connected with each other by interconnection port and constituted, wherein a PE Equipment is connected with customer edge CE equipment, and another PE equipment is connected by other PE equipment or PE groups of PW and the VPLS network Connect, specifically, as shown in figure 4, the present embodiment PE equipment may include enquiry module 1 and processing module 2, wherein:
Enquiry module 1, for passing through the interface in addition to the interconnection port to ARP message When, inquire about in the mac address table of itself and whether there is the source MAC of the ARP messages;
Processing module 2, for the ARP messages to be not present in the mac address table that the enquiry module inquires about itself During source MAC, the source MAC is added in the mac address table, and the ARP messages are passed through into the interconnection Port sends another PE equipment into the PE groups, so that another PE device forwards or the broadcast ARP messages.
The PE equipment that the present embodiment is provided can be specifically PE1_1 or PE_2 in networking shown in Fig. 2, and it can be used as PE An equipment in group, only can learn, it implements process to the source MAC of its direct-connected private network side or public network side Reference can be made to the explanation of the invention described above embodiment of the method, will not be repeated here.
In PE equipment shown in above-mentioned Fig. 4, the processing module 2, it may also be used for report is being received by the interconnection port Wen Shi, broadcasts the message, or the target MAC (Media Access Control) address in the message, and the mac address table itself learnt is to institute Message is stated to be forwarded.
In PE equipment shown in above-mentioned Fig. 4, the processing module 2, it may also be used for by addition to the interconnection port When interface is to data message, the data message is sent to another PE equipment by the interconnection port.
In PE equipment shown in above-mentioned Fig. 4, the PE device configurations have and the virtual switch instance VSI in the VPLS network Corresponding VSI_TAG, the processing module 2 is particularly used in and carries the VSI_TAG of the PE device configurations in the data In message, and send by the interconnection port another PE equipment into the PE groups.
In PE equipment shown in above-mentioned Fig. 4, the processing module 2, it may also be used for data are received by the interconnection port During message, the VSI_TAG carried in the message is parsed and obtains, according to corresponding with the VSI inquiries that the VSI_TAG is associated Mac address table is to forward the data message.
In PE equipment shown in above-mentioned Fig. 4, the processing module 2, it may also be used for during by exceeding default in the mac address table Between the list item that is not matched by the source MAC of data message of threshold value delete;
Or, for the address received to be reclaimed to the specified MAC Address in specified VSI entrained in message from described Deleted in mac address table;Wherein, it is that the CE or described PW are sent after breaking down to the PE that message is reclaimed in the address Each PE equipment in group.
The present embodiment PE equipment can constitute the PE groups shown in Fig. 2 with other PE equipment, and realization shares to MAC Address Practise, and can the MAC Address based on study carry out message forwarding, it, which is implemented, can be found in the invention described above embodiment of the method and says It is bright, it will not be repeated here.
By applying above technical scheme, set and set by two PE being connected with each other by interconnection port in VPLS network The standby PE groups constituted, make wherein one PE equipment be connected with CE, other PE that another PE equipment passes through PW and VPLS network Or PE groups are connected, two PE equipment in PE groups can learn to the MAC Address of private network side and public network side site apparatus respectively, And can the MAC Address based on each self study, carry out the forwarding of data, so as to expand open ended MAC Address quantity in network, Improve the stability and sustainability of network.
Through the above description of the embodiments, those skilled in the art can be understood that the present invention can lead to Hardware realization is crossed, the mode of necessary general hardware platform can also be added to realize by software.Understood based on such, this hair Bright technical scheme can be embodied in the form of software product, and the software product can be stored in a non-volatile memories Medium(Can be CD-ROM, USB flash disk, mobile hard disk etc.)In, including some instructions are to cause a computer equipment(Can be Personal computer, server, or network equipment etc.)Perform the method described in each implement scene of the invention.
It will be appreciated by those skilled in the art that accompanying drawing is a schematic diagram for being preferable to carry out scene, module in accompanying drawing or Flow is not necessarily implemented necessary to the present invention.
It will be appreciated by those skilled in the art that the module in device in implement scene can be described according to implement scene into Row is distributed in the device of implement scene, can also carry out one or more dresses that respective change is disposed other than this implement scene In putting.The module of above-mentioned implement scene can be merged into a module, can also be further split into multiple submodule.
The invention described above sequence number is for illustration only, and the quality of implement scene is not represented.
Disclosed above is only several specific implementation scenes of the present invention, and still, the present invention is not limited to this, Ren Heben What the technical staff in field can think change should all fall into protection scope of the present invention.

Claims (8)

1. a kind of MAC address learning method, it is characterised in that methods described is applied to include virtual private office In the MAC address learning of domain net service VPLS network, the equipment of private network and public network is connected in the VPLS network and is route for edge Device PE groups, the PE groups are made up of two PE being connected with each other by interconnection port equipment, wherein a PE equipment and customer edge CE equipment is connected, and the MAC Address for learning private network side apparatus, another PE equipment passes through virtual link PW and the VPLS network The connection of other PE or PE groups, the MAC Address for learning public network side apparatus, methods described includes:
When the PE equipment by the interface in addition to the interconnection port to ARP message when, it is described It whether there is the source MAC of the ARP messages in the PE equipment queries mac address table of itself;
If being not present, the source MAC is added in the mac address table by the PE equipment, and the ARP messages are led to Cross the interconnection port and send another PE equipment into the PE groups, so that another PE device forwards or broadcast are described ARP messages;
Wherein, when the PE equipment by the interface in addition to the interconnection port to data message when, by the data Message is sent to another PE equipment by the interconnection port;
Each PE device configurations in the PE groups have VSI_TAG corresponding with the virtual switch instance VSI in the VPLS network, It is described to send the data message to another PE equipment by the interconnection port, including:
The VSI_TAG itself configured is carried and sent in the data message, and by the interconnection port by the PE equipment Another PE equipment into the PE groups.
2. the method as described in claim 1, it is characterised in that also include:
When the PE equipment receives message by the interconnection port, message described in the PE device broadcasts, or according to institute The target MAC (Media Access Control) address in message is stated, and the mac address table itself learnt is forwarded to the message.
3. the method as described in claim 1, it is characterised in that also include:
When the PE equipment receives data message by the interconnection port, the PE equipment parses and obtains the data The VSI_TAG carried in message, according to the VSI corresponding mac address tables of inquiry associated with the VSI_TAG to forward the number According to message.
4. the method as described in claim 1, it is characterised in that be added to the source MAC in the PE equipment described In mac address table, and after the ARP messages to be sent to another PE equipment into the PE groups by the interconnection port, Also include:
The PE equipment will exceed preset time threshold not by the source MAC institute of data message in the mac address table The list item matched somebody with somebody is deleted;
Or, the PE equipment reclaims the address received specified MAC Address in specified VSI entrained in message from described Deleted in mac address table;
Wherein, it is that the CE or described PW are set in each PE sent after breaking down into the PE groups that message is reclaimed in the address It is standby.
5. a kind of edge router PE equipment, it is characterised in that the PE equipment applications are in including Virtual Private LAN Service In the MAC address study of VPLS network, in the edge router PE groups for composition connection private network and public network One PE equipment, wherein, the PE groups include two PE equipment being connected with each other by interconnection port and constituted, wherein a PE is set It is standby to be connected with customer edge CE equipment, the MAC Address for learning private network side apparatus, another PE equipment by PW with it is described Other PE equipment or PE groups connection of VPLS network, the MAC Address for learning public network side apparatus, the PE equipment include:
Enquiry module, during for by the interface in addition to the interconnection port to ARP message, inquiry It whether there is the source MAC of the ARP messages in the mac address table of itself;
Processing module, the source MAC for the ARP messages to be not present in the mac address table that the enquiry module inquires about itself During address, the source MAC is added in the mac address table, and the ARP messages are sent out by the interconnection port Another PE equipment delivered in the PE groups, so that another PE device forwards or the broadcast ARP messages;
Wherein, the processing module, is additionally operable to when by the interface in addition to the interconnection port to data message, will The data message is sent to another PE equipment by the interconnection port;
The PE device configurations have VSI_TAG corresponding with the virtual switch instance VSI in the VPLS network, the processing mould Block, sends out specifically for the VSI_TAG of the PE device configurations is carried in the data message, and by the interconnection port Another PE equipment delivered in the PE groups.
6. PE equipment as claimed in claim 5, it is characterised in that the processing module, is additionally operable to by the interconnection end When mouth receives message, the message, or the target MAC (Media Access Control) address in the message, and the MAC itself learnt are broadcasted Address table is forwarded to the message.
7. PE equipment as claimed in claim 5, it is characterised in that the processing module, is additionally operable to by the interconnection port When receiving data message, the VSI_TAG carried in the message is parsed and obtains, according to the VSI associated with the VSI_TAG Corresponding mac address table is inquired about to forward the data message.
8. PE equipment as claimed in claim 5, it is characterised in that the processing module, is additionally operable in the mac address table The list item not matched beyond preset time threshold by the source MAC of data message is deleted;
Or, for the address received to be reclaimed to the specified MAC Address in specified VSI entrained in message from the MAC Deleted in the table of location;
Wherein, it is that the CE or described PW are set in each PE sent after breaking down into the PE groups that message is reclaimed in the address It is standby.
CN201310532758.5A 2013-10-31 2013-10-31 A kind of MAC address learning method and PE equipment Active CN103607479B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310532758.5A CN103607479B (en) 2013-10-31 2013-10-31 A kind of MAC address learning method and PE equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310532758.5A CN103607479B (en) 2013-10-31 2013-10-31 A kind of MAC address learning method and PE equipment

Publications (2)

Publication Number Publication Date
CN103607479A CN103607479A (en) 2014-02-26
CN103607479B true CN103607479B (en) 2017-10-17

Family

ID=50125679

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310532758.5A Active CN103607479B (en) 2013-10-31 2013-10-31 A kind of MAC address learning method and PE equipment

Country Status (1)

Country Link
CN (1) CN103607479B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104954259B (en) * 2015-04-28 2019-04-02 瑞斯康达科技发展股份有限公司 A kind of method that realizing PTN business convergence and PE

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2190148A1 (en) * 2007-09-12 2010-05-26 Huawei Technologies Co., Ltd. Method, system and device for removing media access control address
CN102123106A (en) * 2011-04-21 2011-07-13 杭州华三通信技术有限公司 MAC (Multi-Access Computer) addresses learning method and device in virtual private local area network service (VPLS) network
CN102932499A (en) * 2012-11-01 2013-02-13 杭州华三通信技术有限公司 Method and device for learning media access control (MAC) addresses in virtual private lan service (VPLS) networks

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102347889B (en) * 2010-08-04 2014-08-13 杭州华三通信技术有限公司 Message forwarding method, system and device in H-VPLS (Hierarchical Virtual Private local area network service)

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2190148A1 (en) * 2007-09-12 2010-05-26 Huawei Technologies Co., Ltd. Method, system and device for removing media access control address
CN102123106A (en) * 2011-04-21 2011-07-13 杭州华三通信技术有限公司 MAC (Multi-Access Computer) addresses learning method and device in virtual private local area network service (VPLS) network
CN102932499A (en) * 2012-11-01 2013-02-13 杭州华三通信技术有限公司 Method and device for learning media access control (MAC) addresses in virtual private lan service (VPLS) networks

Also Published As

Publication number Publication date
CN103607479A (en) 2014-02-26

Similar Documents

Publication Publication Date Title
CN104660508B (en) A kind of message forwarding method and device
CN103685022B (en) Message forwarding method and service provider network edge equipment
US8098656B2 (en) Method and apparatus for implementing L2 VPNs on an IP network
EP2600573B1 (en) Method for transmitting addresses correspondence relationship in second-layer protocol using link status routing
CN104378296B (en) A kind of message forwarding method and equipment
CN105099846B (en) The method and supplier edge device of data message transmission
CN102801625B (en) A kind of method of heterogeneous network double layer intercommunication and equipment
CN107040469A (en) The network equipment and method
CN107547335A (en) The method and the network equipment of signal notice IP address movement in EVPN
CN106209643B (en) Message forwarding method and device
CN102739501B (en) Message forwarding method and system in two three layer virtual private networks
EP3528441B1 (en) Message forwarding
CN104518940A (en) Communication method and device for NVO3 (network virtualization over layer 3) network and MPLS (multi-protocol label switching) network
CN104219147A (en) Implementation method and device of VPN (virtual private network) for edge equipment
CN107124347A (en) A kind of optimization method and device of the VXLAN control planes based on BGP EVPN
CN103546374A (en) Message forwarding method and device in two-layered edge network
CN103166858A (en) Message transmission method and device
CN107342941A (en) A kind of optimization method and device of VXLAN control planes
CN105187311B (en) A kind of message forwarding method and device
CN102413060A (en) User private line communication method and equipment used in VPLS (Virtual Private LAN (Local Area Network) Service) network
CN105453513A (en) Packet forwarding method, forwarding entry delivery method, and network device
CN102571375B (en) Multicast forwarding method and device as well as network device
CN103685007B (en) A kind of mac learning method when edge device message forwards and edge device
CN104219149B (en) A kind of message transmitting method and equipment based on virtual connections
CN103795630A (en) Message transmitting method and device of label switching network

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 310052 Binjiang District Changhe Road, Zhejiang, China, No. 466, No.

Applicant after: Xinhua three Technology Co., Ltd.

Address before: 310053 Hangzhou hi tech Industrial Development Zone, Zhejiang province science and Technology Industrial Park, No. 310 and No. six road, HUAWEI, Hangzhou production base

Applicant before: Huasan Communication Technology Co., Ltd.

GR01 Patent grant
GR01 Patent grant