CN106850388A - The method and device that VPLS network E-Packets - Google Patents
The method and device that VPLS network E-Packets Download PDFInfo
- Publication number
- CN106850388A CN106850388A CN201710106980.7A CN201710106980A CN106850388A CN 106850388 A CN106850388 A CN 106850388A CN 201710106980 A CN201710106980 A CN 201710106980A CN 106850388 A CN106850388 A CN 106850388A
- Authority
- CN
- China
- Prior art keywords
- message
- mac
- index information
- address
- source
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/46—Interconnection of networks
- H04L12/4641—Virtual LANs, VLANs, e.g. virtual private networks [VPN]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/74—Address processing for routing
- H04L45/745—Address table lookup; Address filtering
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L2101/00—Indexing scheme associated with group H04L61/00
- H04L2101/60—Types of network addresses
- H04L2101/618—Details of network addresses
- H04L2101/622—Layer-2 addresses, e.g. medium access control [MAC] addresses
Abstract
The invention provides the method and device that a kind of VPLS network E-Packets, it is related to data communication field.Wherein, methods described includes:Receive message;Source MAC in the message for receiving carries out the study of source MAC;When purposeful index information is carried in the message for receiving, corresponding target MAC (Media Access Control) address forward table is searched according to the purpose index information, the purpose index information is the index information of the corresponding mac address forwarding table of purpose MAC Address;Message is sent according to the target MAC (Media Access Control) address forward table.In this programme, when purpose index information is carried in message, mac address forwarding table is searched for sending message according to purpose index information, reduce and mac address forwarding table is once inquired about according to MAC Address, improve forward efficiency.
Description
Technical field
The present invention relates to data communication field, in particular to the method and device that a kind of VPLS network E-Packets.
Background technology
VPLS (Virtual Private LAN Service, abbreviation VPLS) is Metro Ethernet
One kind in technology, the technology can effectively connect each access point, and realize that point-to-point, point arrive many in the network topology
Point, how point-to-multipoint Ethernet service.From connected mode, VPLS is use using the wide area backbone network of IP/MPLS
The LAN that family provides a kind of emulation is connected.It is LAN provides convenients that VPLS is emulated, flexible from business presentation mode
Ethernet service, and this emulation LAN connection to be across each user branch LAN of wide area network it is transparent, each point
Branch LAN just looks like all to be connected on an identical interchanger.Because VPLS has simple configuration, networking flexibility, construction
It is widely used the advantages of relatively low with maintenance cost.
In the repeating process to message, Provider Edge (Provider Edge, abbreviation PE) sets existing VPLS network
It is standby to need to perform the message for receiving source MAC study and according to target MAC (Media Access Control) address routing.Due in PE equipment, MAC
Addresses forwarding table preserves the MAC Address forwarding information of VPLS broadcast domains where it, searches radix greatly, and MAC Address feature is led
Cause MAC Address search efficiency relatively low, therefore PE equipment requires to look up mac address forwarding table twice in each message repeating process
In the case of, forward efficiency is relatively low.
The content of the invention
In view of this, the method and device that a kind of VPLS network E-Packets is the embodiment of the invention provides, by purpose
Index information searches the corresponding addresses forwarding table of target MAC (Media Access Control) address, reduces and once searches ground according to MAC Address in repeating process
Location forward table, improves forward efficiency, to solve the above problems.
To achieve these goals, the technical solution adopted by the present invention is as follows:
A kind of method that VPLS network E-Packets, is applied to forwarding of the PE equipment to message, and methods described includes:Receive
Message;Source MAC in the message for receiving carries out the study of source MAC;Carried when in the message for receiving
Purpose index information, corresponding target MAC (Media Access Control) address forward table, the purpose index information are searched according to the purpose index information
It is the index information of the corresponding mac address forwarding table of purpose MAC Address;Message is sent according to the target MAC (Media Access Control) address forward table.
The device that a kind of VPLS network E-Packets, is applied to forwarding of the PE equipment to message, and described device includes:Receive
Module, for receiving message;Study module, of source MAC is carried out for the source MAC in the message for receiving
Practise;Searching modul, for when purposeful index information is carried in the message for receiving, it to be right to be searched according to the purpose index information
The target MAC (Media Access Control) address forward table answered, the purpose index information is the index of the corresponding mac address forwarding table of purpose MAC Address
Information;Sending module, for sending message according to the target MAC (Media Access Control) address forward table.
The method and device that VPLS network provided in an embodiment of the present invention E-Packets, carries when in the message for receiving
Purpose index information, the purpose index information is the index information of the corresponding mac address forwarding table of purpose MAC Address, PE equipment
Corresponding target MAC (Media Access Control) address forward table is searched according to purpose index information, with according to the purpose index information correspondence for finding
Target MAC (Media Access Control) address forward table send message, so as in repeating process reduction once according to MAC Address search MAC Address
Forward table, improves forward efficiency.
To enable the above objects, features and advantages of the present invention to become apparent, preferred embodiment cited below particularly, and coordinate
Appended accompanying drawing, is described in detail below.
Brief description of the drawings
To make the purpose, technical scheme and advantage of the embodiment of the present invention clearer, below in conjunction with the embodiment of the present invention
In accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is
A part of embodiment of the present invention, rather than whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art
The every other embodiment obtained under the premise of creative work is not made, belongs to the scope of protection of the invention.
Fig. 1 shows the block diagram of the PE equipment that present pre-ferred embodiments are provided;
Fig. 2 shows the flow chart of the method that the VPLS network that first embodiment of the invention is provided E-Packets;
Fig. 3 shows a kind of repeating process schematic diagram that the VPLS network that second embodiment of the invention is provided E-Packets;
Fig. 4 shows that another repeating process that the VPLS network that second embodiment of the invention is provided E-Packets is illustrated
Figure;
Fig. 5 shows the functional block diagram of the device that the VPLS network that second embodiment of the invention is provided E-Packets.
Specific embodiment
Below in conjunction with accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Ground description, it is clear that described embodiment is only a part of embodiment of the invention, rather than whole embodiments.Generally exist
The component of the embodiment of the present invention described and illustrated in accompanying drawing can be arranged and designed with a variety of configurations herein.Cause
This, the detailed description of the embodiments of the invention to providing in the accompanying drawings is not intended to limit claimed invention below
Scope, but it is merely representative of selected embodiment of the invention.Based on embodiments of the invention, those skilled in the art are not doing
The every other embodiment obtained on the premise of going out creative work, belongs to the scope of protection of the invention.
It should be noted that:Similar label and letter represents similar terms in following accompanying drawing, therefore, once a certain Xiang Yi
It is defined in individual accompanying drawing, then it need not be further defined and explained in subsequent accompanying drawing.Meanwhile, of the invention
In description, term " first ", " second " etc. are only used for distinguishing description, and it is not intended that indicating or implying relative importance.
Fig. 1 shows a kind of structured flowchart of the PE equipment 100 that can be applied in the embodiment of the present invention.As shown in figure 1, PE
Equipment 100 includes memory 102, storage control 104, and one or more (one is only shown in figure) processors 106, network connect
Mouth 108 etc..These components are mutually communicated by one or more communication bus/holding wire 116.
Memory 102 can be used to store software program and module, the VPLS network forwarding report such as in the embodiment of the present invention
Corresponding programmed instruction/the module of method and device of text, processor 106 is by running software journey of the storage in memory 102
Sequence and module, so that various function application and data processing are performed, such as VPLS network provided in an embodiment of the present invention forwarding
The method of message.
Memory 102 may include high speed random access memory, may also include nonvolatile memory, such as one or more magnetic
Property storage device, flash memory or other non-volatile solid state memories.Processor 106 and other possible components are to storage
The access of device 102 can be carried out under the control of storage control 104.
Network interface 108 connects processor 106 and memory 102.In certain embodiments, network interface 108, treatment
Device 106 and storage control 104 can be realized in one single chip.In some other example, they can respectively by only
Vertical chip is realized.Network interface 108 can be used for the PE equipment and is connected with CE equipment or other PE device signals, realize number
According to interaction.
It is appreciated that the structure shown in Fig. 1 is only to illustrate, PE equipment 100 may also include more more than shown in Fig. 1 or more
Few component, or with the configuration different from shown in Fig. 1.Each component shown in Fig. 1 can use hardware, software or its group
Close and realize.
In the embodiment of the present invention, PE equipment 100 can be router or other network equipments.
First embodiment
Fig. 2 shows the method that the VPLS network that first embodiment of the invention is provided E-Packets, and is applied to PE equipment pair
The forwarding of message, as shown in Fig. 2 the method includes:
Step S110:Receive message.
PE equipment receives the message that other equipment sends.The message that PE equipment is received may be from other PE equipment,
It is likely to come from CE equipment.When PE equipment receives message from AC directions, then the message is sent by CE equipment, when PE equipment from
PW directions receive message, then the message is sent by other PE equipment.
In this example, the information encapsulated in the message that PE equipment sends is different with what CE equipment sent, is set in PE
In the message that preparation is sent, in addition to source MAC, target MAC (Media Access Control) address and message text content, it is also possible to encapsulate active index letter
Breath and purpose index information.Wherein, in message encapsulate source index information send the message PE equipment in source MAC ground
The corresponding mac address forwarding table in location is corresponding, and purpose index information is corresponding with target MAC (Media Access Control) address in the PE equipment for receiving the message
Mac address forwarding table it is corresponding.Therefore, what PE equipment was received comes from the message of CE equipment or other PE equipment, its
Processing mode may correspond to difference, and PE equipment can be determined to message by judging that the message comes from AC directions or PW directions
Processing mode.
After message is received, PE equipment judges that the message comes from PW directions or AC directions, if message comes from PW
Direction, then perform following steps:
Step S120:Source MAC in the message for receiving carries out the study of source MAC.
Specifically, the learning process can be, PE equipment searches mac address forwarding table according to source MAC, when basis connects
Source MAC in the message for receiving does not find mac address forwarding table, is created and source MAC ground according to the source MAC
The corresponding mac address forwarding table in location.
In the present embodiment, the mac address forwarding table that PE equipment is created is extended on the basis of existing technology, wherein
Except MAC Address and the corresponding routing information of MAC Address, the also index information including the mac address forwarding table and opposite end
Index information.Wherein, the index information of mac address forwarding table is the rope corresponding with the mac address forwarding table in the PE equipment
Fuse ceases, and is the mac address forwarding table distribution index information for creating, the index information and wound when mac address forwarding table is created
The mac address forwarding table built has unique corresponding relation, represents that the corresponding MAC Address of source MAC turns in the PE equipment
The unique identity information delivered.The opposite end index information of mac address forwarding table is the MAC ground for creating mac address forwarding table
When location is as target MAC (Media Access Control) address, the index letter of corresponding mac address forwarding table in the purpose PE equipment that message will be sent to
Breath.In the present embodiment, index information has certain data form, but its specific data form is not intended as limiting, such as
Can be one or more letters, or numeral.In the present embodiment, the data form of index information is made to compare MAC Address
Data form it is simple, can specifically be presented as, the data bits of index information is less than MAC Address.
In the present embodiment, the opposite end index information of mac address forwarding table is by the source index information in the message that receives
Determine and record.
Therefore, when active index information is not carried in the message that PE equipment receives the transmission of PE equipment from PW directions, create
Mac address forwarding table in opposite end index information it is invalid, the form of expression can be that its corresponding field is in reserved state, can be with
For empty or be specific retention data etc..Active rope is carried in PE equipment receives the message that PE equipment sends from PW directions
Fuse ceases, and the source index information in the message sets the opposite end index information in the mac address forwarding table for creating, that is,
Say that the opposite end index information in the mac address forwarding table by establishment is equal to the source index information in the message for receiving.
It should be understood that the source index information in the message for receiving is source MAC in the PE equipment for send the message for receiving
The index information of the corresponding mac address forwarding table in address.
If in addition, PE equipment receives the message of the carrying source index information for coming from PW directions and according to source MAC
Mac address forwarding table is found, PE equipment can also update the corresponding MAC Address of source MAC using the source index information
Opposite end index information in forward table, that is to say, that if the source index information in message differs with corresponding opposite end index information
Cause, then the corresponding opposite end index information is equal to the index information in message, if index information and phase in message
The opposite end index information answered is consistent, then the opposite end index information keeps constant.
Step S130:When purposeful index information is carried in the message for receiving, searched according to the purpose index information
Corresponding target MAC (Media Access Control) address forward table, the purpose index information is the rope of the corresponding mac address forwarding table of purpose MAC Address
Fuse ceases.
When PE equipment receives message from PW directions, illustrate that the message for receiving is the transmission of other PE equipment, judge
Whether purposeful index information is carried in the message, and the purpose index information is the purpose MAC in the PE equipment of the reception message
The index information of the corresponding mac address forwarding table in address.When the word that purpose index information is encapsulated in the message that PE equipment is received
Duan Buwei is empty, and the data form of the data of encapsulation purpose index information encapsulation is corresponding with mac address forwarding table in PE equipment
Index information data form is consistent, is judged to carry purposeful index information in message.
Purposeful index information is carried in judged result is the message for receiving, PE equipment then can be according to the purpose rope
Draw the information searching corresponding mac address forwarding table of purpose index information, it is possible to understand that, the corresponding MAC of purpose index information
Addresses forwarding table is the index information mac address forwarding table consistent with purpose index information.When finding mac address forwarding table,
Judge that the mac address forwarding table for finding is purpose mac address forwarding table, MAC Address therein is purpose MAC Address.
Further, after mac address forwarding table is found according to purpose index information, the also mesh including finding
Mac address forwarding table in target MAC (Media Access Control) address and the message for receiving in the target MAC (Media Access Control) address that carries it is whether identical.If inspection
The fruit that comes to an end is difference, that is to say, that the purpose in the corresponding target MAC (Media Access Control) address forward table of purpose index information in the PE equipment
MAC Address is different from the target MAC (Media Access Control) address carried in the message for receiving, then may the purpose index information be wrong purpose
Index information, target MAC (Media Access Control) address of the PE equipment in the message for receiving searches corresponding target MAC (Media Access Control) address forward table, with
The mac address forwarding table found according to target MAC (Media Access Control) address is used as correct target MAC (Media Access Control) address forward table.
If in addition, according to purpose index information search mac address forwarding table failure, according to the purpose in the message for receiving
MAC Address searches corresponding mac address forwarding table as target MAC (Media Access Control) address forward table.
Further, in the present embodiment, can also include, when receiving message from PW directions, and be indexed according to purpose
Information searching to mac address forwarding table in MAC Address from the message for receiving carry target MAC (Media Access Control) address it is different, or
Person searches mac address forwarding table failure according to purpose index information, is returned to the PE equipment for sending the message and updates message, institute
State update the source index information carried in message be it is invalid or according to target MAC (Media Access Control) address in the message that receives find
Mac address forwarding table index information so that receive update message PE equipment according to update message carry source index
Information correspondence updates the opposite end index information in the corresponding mac address forwarding table of source MAC.It should be understood that invalid source
Index information can be that index information corresponding field in source is index information empty or corresponding with mac address forwarding table in message
Data form is inconsistent.If the source index information in message is invalid, it is right that source index information of the PE equipment in message is carried out
When holding the renewal of index information, it is invalid that corresponding opposite end index information is updated to.
Purposeful rope is not carried in being the message for receiving when the judged result that message and PE equipment are received from PW directions
Fuse ceases, it is also possible to search corresponding mac address forwarding table by the target MAC (Media Access Control) address in the message for receiving.
Step S140:Message is sent according to the target MAC (Media Access Control) address forward table.
When PE equipment receives message from PW directions, and found according to the purpose index information carried in message corresponding
Target MAC (Media Access Control) address forward table, then send message according to the target MAC (Media Access Control) address forward table.
In the present embodiment, according to target MAC (Media Access Control) address forward table send message detailed process include, first will be in the PE
The opposite end index information in the target MAC (Media Access Control) address forward table in equipment is encapsulated as the purpose index letter in message to be sent
Breath, the index information of the corresponding mac address forwarding table of source MAC is encapsulated as the source index information in message to be sent, then
Message after encapsulation is sent.
In addition, not carrying purposeful index letter in the message that PE equipment receives the transmission of other PE equipment from PW directions
MAC Address and the message for receiving in the message for cease, receiving in the corresponding target MAC (Media Access Control) address forward table of purpose index information
The target MAC (Media Access Control) address of middle carrying is different, search target MAC (Media Access Control) address forward table according to the purpose index information situations such as fail
Under, mac address forwarding table is found according to the target MAC (Media Access Control) address carried in message, basis should after being still packaged to message
Target MAC (Media Access Control) address forward table sends message.
Certainly, if opposite end index information is invalid in the target MAC (Media Access Control) address forward table of PE equipment or indexes letter according to purpose
Breath and target MAC (Media Access Control) address do not find target MAC (Media Access Control) address forward table, then opposite end index information is corresponding in the message for encapsulating
Field is invalid.
When PE equipment sends message, according to the corresponding routing information of MAC Address in target MAC (Media Access Control) address forward table, by message
It is transmitted.When PE equipment does not find target MAC (Media Access Control) address, message can be transmitted from all possible transmitting path.
If the message that PE equipment is received comes from AC directions, source MAC of the PE equipment first in the message for receiving
Address carries out the study of source MAC, and the learning process receives message with PE equipment in above-mentioned steps S120 from PW directions
Learning process is compared, and source index information is not carried in the message sent due to CE equipment, is not found when according to source MAC
Mac address forwarding table, opposite end index information is invalid in the mac address forwarding table corresponding with source MAC of establishment, its performance shape
Formula can also be correspondence opposite end index information field be in reserved state, for empty or be specific retention data etc..In addition,
If PE equipment finds mac address forwarding table according to source MAC, next step can be directly performed.
PE equipment is after MAC address learning, then searches target MAC (Media Access Control) address forward table.Because the CE equipment for receiving sends
Message in do not carry index information, then the target MAC (Media Access Control) address in message directly searches mac address forwarding table, with search
The mac address forwarding table for arriving is used as target MAC (Media Access Control) address forward table.Certainly, in the present embodiment, PE equipment carries out source MAC
Study does not do successively restriction with target MAC (Media Access Control) address two execution sequences of step of forward table are searched.
PE equipment sends message further according to mac address forwarding table.Specifically, the message received from AC directions is not carry
The message of purpose index information, target MAC (Media Access Control) address forward table is searched according to the target MAC (Media Access Control) address carried in message, then to message
Message is sent according to the target MAC (Media Access Control) address forward table after being packaged.PE equipment is to the packaged type of message, what is received
On the basis of message content, the field of addition correspondence purpose index information and source index information, by the corresponding MAC of source MAC
Index information in addresses forwarding table is encapsulated as the source index information in message, by the opposite end rope in target MAC (Media Access Control) address forward table
Fuse breath encapsulation is purpose index information.If it should be understood that the opposite end index letter in PE equipment in target MAC (Media Access Control) address forward table
Breath is invalid, then the purpose index information in the message for encapsulating is invalid.
Second embodiment
The present embodiment carries out VPLS network forwarding as a example by including two PE equipment and two VPLS networks of CE equipment
The detailed description of the method for message.Fig. 3 is referred to, in the VPLS network, including a CE equipment, the of signal connection successively
One PE equipment, the 2nd CE equipment and the 2nd PE equipment, wherein, the MAC Address of a CE equipment is MAC-A, the 2nd CE equipment
MAC Address be MAC-B.
As shown in figure 3, it is MAC-A that a CE equipment sends source MAC to a PE equipment, target MAC (Media Access Control) address is
The message of MAC-B.
First PE equipment receives the message from AC directions by path 1, and performs source MAC study.In a PE
It is in equipment and in the absence of the corresponding mac address forwarding tables of source MAC MAC-A, therefore PE equipment establishment MAC Address
The mac address forwarding table of MAC-A.Mac address forwarding table pipe of the mac address forwarding table that first PE equipment is created in prior art
It is extended on the basis of reason structure, increased index information and opposite end index information.As shown in figure 3, a PE equipment roots
The mac address forwarding table created according to MAC-A includes ID and opposite end forwarding table index, wherein, outbound path information correspondence first
PE equipment receives the path of message from a CE equipment, is in the present embodiment path 1, and ID is that the corresponding addresses of the MAC-A turn
The index information delivered, a PE equipment is that the ID of mac address forwarding table distribution is " x ", and opposite end forwarding table index is MAC-A
Corresponding opposite end index information, refers to Fig. 3, is not wrapped in the message sent due to the CE equipment that a PE equipment is received
Include any index information, therefore in the mac address forwarding table created according to source MAC MAC-A, opposite end forwarding table index correspondence
Field without effective information, represented with "None" in figure 3.
The message that first PE equipment interconnections are received is packaged, as shown in figure 3, increasing label letter in the message of encapsulation
Breath, for recording source index information and purpose index information.Fig. 3 is referred to, D-ID represents purpose index information, now,
In first PE equipment, the corresponding mac address forwarding tables of target MAC (Media Access Control) address MAC-B do not exist or the mac address forwarding table in do not have
There is effective opposite end index information, in the present embodiment, the purpose index information in message is encapsulated as "None" by a PE equipment,
Represent that purpose index information is invalid.S-ID represents source index information, by the index letter in the corresponding mac address forwarding tables of MAC-A
Breath " x " is encapsulated as source index information.
As shown in figure 3, packaged message is transmitted to the 2nd PE equipment by a PE equipment by path 2, the 2nd PE sets
It is standby that the message is received by path 3 from PW directions.
After 2nd PE equipment receives message, the study of source MAC is first carried out.2nd PE equipment is according to source MAC
MAC-A does not find mac address forwarding table, and mac address forwarding table is created according to MAC-A.As shown in figure 3, MAC-A pairs created
In the mac address forwarding table answered, distribution index information " n ", outbound path information is path 3, and opposite end forwarding table index is equal to and receives
To message in source index information S-ID, be " x ".
Message is sent to the 2nd CE equipment by the 2nd PE equipment by path 4.
During the 2nd CE equipment returned packets, source MAC is MAC-B in the message of return, and target MAC (Media Access Control) address is MAC-A,
As shown in Figure 4.2nd PE equipment receives the message by path 4, first carries out the study of source MAC.2nd PE equipment according to
Source MAC MAC-B does not find mac address forwarding table, and mac address forwarding table is created according to MAC-B.As shown in figure 4, creating
The corresponding mac address forwarding tables of MAC-B in, distribution index information " m ", outbound path information be path 4, due to the 2nd CE equipment
Index information is not carried in the message of transmission, opposite end forwarding table index is "None" in the corresponding forward tables of MAC-B of establishment.
Target MAC (Media Access Control) address is MAC-A in the message that 2nd PE equipment is received from AC paths, and the 2nd PE equipment is according to MAC-
A finds the corresponding outbound path information of target MAC (Media Access Control) address forward table for path 3, and opposite end index information is " x ", the 2nd PE equipment
The index information " m " of the corresponding mac address forwarding tables of source MAC MAC-B is encapsulated as the source index information in message, by mesh
The corresponding opposite end index informations " x " of the MAC Address MAC-A purpose index information that is encapsulated as in message, by packaged message
First PE equipment is sent to by path 3.
First PE equipment receives the message that the 2nd PE equipment is returned from PW directions by path 2, performs source MAC
Practise.First PE equipment does not find mac address forwarding table according to source MAC MAC-B, and MAC Address forwarding is created according to MAC-B
Table.As shown in figure 4, in the corresponding mac address forwarding tables of MAC-B for creating, distribution index information " y ", outbound path information is road
Footpath 2, opposite end forwarding table index is equal to the source index information S-ID in the message for receiving, and is " m ".
Purpose index information " x " of the first PE equipment in the message for receiving finds target MAC (Media Access Control) address MAC-A pairs
The mac address forwarding table answered, the outbound path information path 1 in the corresponding mac address forwarding tables of the MAC-A is determined to first
The path of CE equipment returned packets, then a PE equipment message is returned to by a CE equipment by path 1.
When a CE equipment sends source MAC for MAC-A again, when target MAC (Media Access Control) address is the message of MAC-B, first
PE equipment receives the message from AC directions by path 1, and mac address forwarding table is found according to source MAC MAC-A.Again
Target MAC (Media Access Control) address forward table is found according to target MAC (Media Access Control) address MAC-B, a PE equipment turns the corresponding MAC Address of MAC-A
The ID for delivering is encapsulated as the source index information " x " in message, by the opposite end forwarding in the corresponding mac address forwarding tables of MAC-B
Table index is encapsulated as the purpose index information in message, is " m ", by message by the corresponding mac address forwarding tables of MAC-B
Outbound path information path 2 is sent to the 2nd PE equipment.
2nd PE equipment receives message from PW directions by path 3, and the source MAC MAC-A in message is carried out
MAC address learning, finds the mac address forwarding table of correspondence MAC-A.In addition, the 2nd PE equipment can also be using in message
Source index information " x " is updated to the opposite end index information in the corresponding mac address forwarding tables of MAC-A.In the present embodiment,
Opposite end in source index information " x " mac address forwarding table corresponding with MAC-A in message forwards table index " x " consistent, this pair
End forwarding table index keeps constant.
Target MAC (Media Access Control) address forward table is searched further according to the purpose index information " m " in the message for receiving.As shown in figure 4,
The corresponding target MAC (Media Access Control) address forward tables of MAC-B can be found according to purpose index information " m ".Further, the 2nd PE equipment
In can also comparing target MAC (Media Access Control) address in message and the target MAC (Media Access Control) address forward table found according to purpose index information
Whether MAC Address is consistent, if inconsistent, then it is assumed that according to the target MAC (Media Access Control) address forward table mistake that purpose index information finds,
The target MAC (Media Access Control) address in message is needed to search correct target MAC (Media Access Control) address forward table.In the present embodiment, according to purpose
MAC Address in the mac address forwarding table that index information finds is MAC-B with the target MAC (Media Access Control) address of carrying in message, can
It is correct to judge the mac address forwarding table for finding.
2nd PE equipment is path 4 according to outbound path information in the target MAC (Media Access Control) address forward table for finding, and then passes through road
Footpath 4 is forwarded the message, and the 2nd CE equipment can obtain the message of the 2nd PE device forwards.
In sum, in the method that VPLS network provided in an embodiment of the present invention E-Packets, when in the message for receiving
Purposeful index information is carried, PE equipment searches corresponding mac address forwarding table according to purpose index information, when finding MAC
Addresses forwarding table, then the mac address forwarding table for being found according to purpose index information using this as target MAC (Media Access Control) address forward table,
Message transmission is carried out according to target MAC (Media Access Control) address forward table.In the present embodiment, the data form of index information is made to compare MAC Address
Data form it is simple, then target MAC (Media Access Control) address forward table is searched compared to according to target MAC (Media Access Control) address, according to purpose index information
Search target MAC (Media Access Control) address forward table speed faster, search efficiency can be effectively improved.
3rd embodiment
The device 300 that a kind of VPLS network E-Packets is present embodiments provided, forwarding of the PE equipment to message is applied to,
Fig. 5 is referred to, described device includes:
Receiver module 310, for receiving message;Study module 320, for the source MAC ground in the message for receiving
Location carries out the study of source MAC;Searching modul 330, for when carrying purposeful index information in the message that receive, according to
The purpose index information searches corresponding target MAC (Media Access Control) address forward table, and the purpose index information is purpose MAC Address correspondence
Mac address forwarding table index information;Sending module 340, for sending message according to the target MAC (Media Access Control) address forward table.
Specifically, in the present embodiment, turning when the source MAC in the message for receiving does not find MAC Address
Deliver, the study module is used to create mac address forwarding table and for the MAC Address for creating is forwarded according to the source MAC
Table distribution index information and record opposite end index information.
Further, in the present embodiment, also including update module 350, when carrying active index in the message for receiving
Information, the update module 350 is used for using in the corresponding mac address forwarding table of source index information renewal source MAC
Opposite end index information, the source index information be send described in the corresponding MAC of source MAC in the PE equipment of message that receives
The index information of addresses forwarding table.
In addition, sending module 340 is pending for the opposite end index information in the target MAC (Media Access Control) address forward table to be encapsulated as
The purpose index information delivered newspaper in text, pending delivering newspaper is encapsulated as by the index information of the corresponding mac address forwarding table of source MAC
Source index information in text, then the message after encapsulation is sent.
In the present embodiment, when not carrying purpose index information in the message for receiving, when the purpose index information pair
MAC Address in the target MAC (Media Access Control) address forward table answered is different from the target MAC (Media Access Control) address carried in the message for receiving or root
Target MAC (Media Access Control) address forward table is searched according to the purpose index information to fail, searching modul 330 is used for according in the message for receiving
Target MAC (Media Access Control) address search corresponding mac address forwarding table.Further, in the case, when the message for receiving is other
The message that PE equipment sends, sending module 340 is additionally operable to be returned to the PE equipment for sending the message and updates message, the renewal
The source index information carried in message be it is invalid or according to the MAC that finds of target MAC (Media Access Control) address in the message that receives
The index information of addresses forwarding table, so as to receive the PE equipment for updating message according to the source index information pair for updating message carrying
The opposite end index information in the corresponding mac address forwarding table of source MAC should be updated.
It should be noted that each embodiment in this specification is described by the way of progressive, each embodiment weight
Point explanation is all difference with other embodiment, identical similar between each embodiment and in same embodiment
Part mutually referring to.For device class embodiment, because it is substantially similar to embodiment of the method, so the ratio of description
Relatively simple, the relevent part can refer to the partial explaination of embodiments of method.
In several embodiments provided herein, it should be understood that disclosed apparatus and method, it is also possible to pass through
Other modes are realized.Device embodiment described above is only schematical, for example, flow chart and block diagram in accompanying drawing
Show the device of multiple embodiments of the invention, the architectural framework in the cards of method and computer program product,
Function and operation.At this point, each square frame in flow chart or block diagram can represent one the one of module, program segment or code
Part a, part for the module, program segment or code is used to realize holding for the logic function for specifying comprising one or more
Row instruction.It should also be noted that at some as in the implementation replaced, the function of being marked in square frame can also be being different from
The order marked in accompanying drawing occurs.For example, two continuous square frames can essentially be performed substantially in parallel, they are sometimes
Can perform in the opposite order, this is depending on involved function.It is also noted that every in block diagram and/or flow chart
The combination of the square frame in individual square frame and block diagram and/or flow chart, can use the function or the special base of action for performing regulation
Realized in the system of hardware, or can be realized with the combination of computer instruction with specialized hardware.
In addition, each functional module in each embodiment of the invention can integrate to form an independent portion
Divide, or modules individualism, it is also possible to which two or more modules are integrated to form an independent part.
If the function is to realize in the form of software function module and as independent production marketing or when using, can be with
Storage is in a computer read/write memory medium.Based on such understanding, technical scheme is substantially in other words
The part contributed to prior art or the part of the technical scheme can be embodied in the form of software product, the meter
Calculation machine software product is stored in a storage medium, including some instructions are used to so that a computer equipment (can be individual
People's computer, server, or network equipment etc.) perform all or part of step of each embodiment methods described of the invention.
And foregoing storage medium includes:USB flash disk, mobile hard disk, read-only storage (ROM, Read-Only Memory), arbitrary access are deposited
Reservoir (RAM, Random Access Memory), magnetic disc or CD etc. are various can be with the medium of store program codes.Need
Illustrate, herein, such as first and second or the like relational terms be used merely to by an entity or operation with
Another entity or operation make a distinction, and not necessarily require or imply these entities or there is any this reality between operating
The relation or order on border.And, term " including ", "comprising" or its any other variant be intended to the bag of nonexcludability
Contain, so that process, method, article or equipment including a series of key elements are not only including those key elements, but also including
Other key elements being not expressly set out, or it is this process, method, article or the intrinsic key element of equipment also to include.
In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that including the key element
Process, method, article or equipment in also there is other identical element.
The preferred embodiments of the present invention are the foregoing is only, is not intended to limit the invention, for the skill of this area
For art personnel, the present invention can have various modifications and variations.It is all within the spirit and principles in the present invention, made any repair
Change, equivalent, improvement etc., should be included within the scope of the present invention.It should be noted that:Similar label and letter exists
Similar terms is represented in following accompanying drawing, therefore, once being defined in a certain Xiang Yi accompanying drawing, then it is not required in subsequent accompanying drawing
It is further defined and is explained.
The above, specific embodiment only of the invention, but protection scope of the present invention is not limited thereto, and it is any
Those familiar with the art the invention discloses technical scope in, change or replacement can be readily occurred in, should all contain
Cover within protection scope of the present invention.Therefore, protection scope of the present invention described should be defined by scope of the claims.
Claims (10)
1. a kind of method that VPLS network E-Packets, it is characterised in that be applied to forwarding of the PE equipment to message, methods described
Including:
Receive message;
Source MAC in the message for receiving carries out the study of source MAC;
When purposeful index information is carried in the message for receiving, corresponding purpose MAC is searched according to the purpose index information
Addresses forwarding table, the purpose index information is the index information of the corresponding mac address forwarding table of purpose MAC Address;
Message is sent according to the target MAC (Media Access Control) address forward table.
2. method according to claim 1, it is characterised in that the source MAC in the message that the basis is received enters
The study of row source MAC, including:
When the source MAC in the message for receiving does not find mac address forwarding table, created according to the source MAC
Build mac address forwarding table and the mac address forwarding table distribution index information to create and record opposite end index information.
3. method according to claim 1, it is characterised in that when carrying active index information, institute in the message for receiving
State before sending message according to the target MAC (Media Access Control) address forward table, also include:Source MAC ground is updated using the source index information
Opposite end index information in the corresponding mac address forwarding table in location, the source index information is the message received described in transmission
The index information of the corresponding mac address forwarding table of source MAC in PE equipment.
4. method according to claim 1, it is characterised in that described transmission according to the target MAC (Media Access Control) address forward table is reported
Text includes:
Opposite end index information in the target MAC (Media Access Control) address forward table is encapsulated as the purpose index information in message to be sent,
The index information of the corresponding mac address forwarding table of source MAC is encapsulated as the source index information in message to be sent, will be encapsulated
Message afterwards sends.
5. method according to claim 1, it is characterised in that described transmission according to the target MAC (Media Access Control) address forward table is reported
Before text, also include:
When not carrying purpose index information in the message for receiving, when the corresponding target MAC (Media Access Control) address of the purpose index information turns
The MAC Address delivered is different from the target MAC (Media Access Control) address carried in the message for receiving or according to the purpose index information
The failure of target MAC (Media Access Control) address forward table is searched, the target MAC (Media Access Control) address in the message for receiving is searched corresponding MAC Address and turned
Deliver.
6. method according to claim 5, it is characterised in that when the message for receiving is the report that other PE equipment send
Text, returns to the PE equipment for sending the message and updates message, the source index information carried in the renewal message for invalid or
The index information of the mac address forwarding table that the target MAC (Media Access Control) address in the message received according to person finds, so as to receive
The PE equipment for updating message turns according to the corresponding MAC Address of source index information correspondence renewal source MAC for updating message carrying
Opposite end index information in delivering.
7. the device that a kind of VPLS network E-Packets, it is characterised in that be applied to forwarding of the PE equipment to message, described device
Including:
Receiver module, for receiving message;
Study module, the study of source MAC is carried out for the source MAC in the message for receiving;
Searching modul, for when purposeful index information is carried in the message for receiving, being searched according to the purpose index information
Corresponding target MAC (Media Access Control) address forward table, the purpose index information is the rope of the corresponding mac address forwarding table of purpose MAC Address
Fuse ceases;
Sending module, for sending message according to the target MAC (Media Access Control) address forward table.
8. device according to claim 7, it is characterised in that when the source MAC in the message for receiving is not looked into
Mac address forwarding table is found, the study module is used to create mac address forwarding table and to create according to the source MAC
Mac address forwarding table distribution index information and record opposite end index information.
9. device according to claim 7, it is characterised in that also including update module, when being carried in the message for receiving
Active index information, the update module is used to update the corresponding MAC Address forwarding of source MAC using the source index information
Opposite end index information in table, the source index information be send described in source MAC pair in the PE equipment of message that receives
The index information of the mac address forwarding table answered.
10. device according to claim 7, it is characterised in that the sending module is used to turn the target MAC (Media Access Control) address
The opposite end index information delivered is encapsulated as the purpose index information in message to be sent, by the corresponding MAC Address of source MAC
The index information of forward table is encapsulated as the source index information in message to be sent, and the message after encapsulation is sent.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710106980.7A CN106850388B (en) | 2017-02-27 | 2017-02-27 | Method and device for forwarding message by VPLS network |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710106980.7A CN106850388B (en) | 2017-02-27 | 2017-02-27 | Method and device for forwarding message by VPLS network |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106850388A true CN106850388A (en) | 2017-06-13 |
CN106850388B CN106850388B (en) | 2020-04-03 |
Family
ID=59133690
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710106980.7A Active CN106850388B (en) | 2017-02-27 | 2017-02-27 | Method and device for forwarding message by VPLS network |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106850388B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113726633A (en) * | 2021-08-12 | 2021-11-30 | 中国联合网络通信集团有限公司 | Forwarding method and forwarding device |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101217463A (en) * | 2007-12-27 | 2008-07-09 | 华为技术有限公司 | Method and device for controlling message forwarding |
CN102148745A (en) * | 2010-02-08 | 2011-08-10 | 中兴通讯股份有限公司 | Method and system for increasing forwarding efficiency of virtual private LAN service network |
CN102821052A (en) * | 2012-08-22 | 2012-12-12 | 迈普通信技术股份有限公司 | Method and device for searching forwarding information in virtual special local area network service network |
US20130077630A1 (en) * | 2011-09-28 | 2013-03-28 | Yigal Bejerano | Energy efficient connectionless routing with simple lookup |
CN103428067A (en) * | 2013-08-14 | 2013-12-04 | 杭州华三通信技术有限公司 | Message forwarding method and device based on two-layer virtual private network |
CN105634942A (en) * | 2014-10-31 | 2016-06-01 | 华为技术有限公司 | Method and switch for forwarding message |
-
2017
- 2017-02-27 CN CN201710106980.7A patent/CN106850388B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101217463A (en) * | 2007-12-27 | 2008-07-09 | 华为技术有限公司 | Method and device for controlling message forwarding |
CN102148745A (en) * | 2010-02-08 | 2011-08-10 | 中兴通讯股份有限公司 | Method and system for increasing forwarding efficiency of virtual private LAN service network |
US20130077630A1 (en) * | 2011-09-28 | 2013-03-28 | Yigal Bejerano | Energy efficient connectionless routing with simple lookup |
CN102821052A (en) * | 2012-08-22 | 2012-12-12 | 迈普通信技术股份有限公司 | Method and device for searching forwarding information in virtual special local area network service network |
CN103428067A (en) * | 2013-08-14 | 2013-12-04 | 杭州华三通信技术有限公司 | Message forwarding method and device based on two-layer virtual private network |
CN105634942A (en) * | 2014-10-31 | 2016-06-01 | 华为技术有限公司 | Method and switch for forwarding message |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113726633A (en) * | 2021-08-12 | 2021-11-30 | 中国联合网络通信集团有限公司 | Forwarding method and forwarding device |
CN113726633B (en) * | 2021-08-12 | 2023-04-07 | 中国联合网络通信集团有限公司 | Forwarding method and forwarding device |
Also Published As
Publication number | Publication date |
---|---|
CN106850388B (en) | 2020-04-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103023827B (en) | Data forwarding method for virtualized data centre and realization equipment of data forwarding method | |
CN101667970B (en) | Protection switching method and equipment thereof | |
CN101155130B (en) | Method for learning MAC address and system and equipment for conveying VPLS client data | |
CN102857414B (en) | A kind of forwarding table write-in, message forwarding method and device | |
CN107222449A (en) | Communication means, equipment and system based on the regular agreement of stream | |
CN101924699B (en) | Message forwarding method, system and provider edge equipment | |
CN103685006A (en) | Packet forwarding method for edge device and edge device | |
CN107645431B (en) | Message forwarding method and device | |
CN102238083A (en) | System and method for adapting a packet processing pipeline | |
CN105991433B (en) | The method and apparatus of Layer3 Virtual Private Network access Layer 2 virtual private network | |
CN105591868A (en) | Virtual private network VPN access method and device | |
CN102368726B (en) | Forwarding method and device applied to L2VPN (layer 2 virtual private network) | |
CN107968749A (en) | Realize method, exchange chip and the interchanger of QinQ route terminations | |
CN103326915A (en) | Method, device and system for achieving three-layer VPN | |
CN103746914A (en) | Method, device and system for building corresponding relationship between private network label and primary VRF (VPN (virtual private network) routing and forwarding table) | |
CN104579973B (en) | Message forwarding method and device in a kind of Virtual Cluster | |
CN106713130A (en) | Routing table updating method, EVPN control equipment and EVPN system | |
CN109756411B (en) | Message forwarding method and device, first VTEP device and storage medium | |
CN103095579B (en) | TRILL network interconnected method, Apparatus and system | |
CN107896188A (en) | Data forwarding method and device | |
CN107086960B (en) | Message transmission method and device | |
CN106850388A (en) | The method and device that VPLS network E-Packets | |
CN102882761B (en) | VPLS realization method | |
CN108183858A (en) | A kind of routing introducing method and device | |
CN105763411A (en) | Method and device for establishing multicast tunnel |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |