CN105577542B - A kind of message forwarding method and routing bridge based on TRILL network - Google Patents

A kind of message forwarding method and routing bridge based on TRILL network Download PDF

Info

Publication number
CN105577542B
CN105577542B CN201510990503.2A CN201510990503A CN105577542B CN 105577542 B CN105577542 B CN 105577542B CN 201510990503 A CN201510990503 A CN 201510990503A CN 105577542 B CN105577542 B CN 105577542B
Authority
CN
China
Prior art keywords
address
mac
trill
routing bridge
frame message
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201510990503.2A
Other languages
Chinese (zh)
Other versions
CN105577542A (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.)
Maipu Communication Technology Co Ltd
Original Assignee
Maipu Communication Technology 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 Maipu Communication Technology Co Ltd filed Critical Maipu Communication Technology Co Ltd
Priority to CN201510990503.2A priority Critical patent/CN105577542B/en
Publication of CN105577542A publication Critical patent/CN105577542A/en
Application granted granted Critical
Publication of CN105577542B publication Critical patent/CN105577542B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/66Layer 2 routing, e.g. in Ethernet based MAN's
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4641Virtual LANs, VLANs, e.g. virtual private networks [VPN]

Landscapes

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

Abstract

The embodiment of the present invention provides a kind of message forwarding method and routing bridge based on TRILL network, is related to data communication field, can realize in decapsulation TRILL frame message in the case where not increasing gateway and then carry out three layers of forwarding to ethernet frame message.First RB receives the first TRILL frame message, the first TRILL frame message includes the first ethernet frame message and first outlet routing bridge, first ethernet frame message includes source MAC, target MAC (Media Access Control) address, source IP address and purpose IP address, target MAC (Media Access Control) address is gateway MAC address, and the first RB is the previous dive routing bridge of the corresponding routing bridge of gateway MAC address;When first outlet routing bridge is identical as the first RB, the first ethernet frame message is obtained;Forward the first ethernet frame message to the 3rd RB according to target MAC (Media Access Control) address and static mac address list item, for E-Packeting.

Description

A kind of message forwarding method and routing bridge based on TRILL network
Technical field
The present invention relates to data communication field more particularly to a kind of message forwarding methods and routing based on TRILL network Bridge.
Background technique
Transparent interconnection of lots of links interconnection (full name in English: Transparent Interconnection of Lots of Links, English abbreviation: TRILL) agreement be Internet Engineering Task group (English: Internet Engineering Task Force, contracting Write: IETF) a kind of Routing Protocol calculated on double layer network based on link state for recommending, for establish one it is flexible, Expansible, high performance double layer network, i.e. TRILL network.Inside TRILL network, the switch device of TRILL protocol is run It may be simply referred to as routing bridge (full name in English: Route Bridge, English abbreviation: RB), interconnected between routing bridge and establish neighbour Occupy relationship.The routing bridge at TRILL network edge is connect with user equipment, to receive the ethernet frame message of user equipment transmission, Ethernet frame message is encapsulated as TRILL frame message again, is forwarded in TRILL network, when routing bridge is needed TRILL frame message When being transmitted to user equipment, TRILL frame message is first decapsulated, ethernet frame message is obtained, ethernet frame message is transmitted to use Family equipment.To realize that each user equipment directly carries out message forwarding interaction by TRILL network with two layers of link interconnection.
When user equipment needs to access the user equipment of other networks, due to the Internet protocol (English of the user equipment Full name: Internet Protocol, English abbreviation: IP) address and the user equipment of other networks IP address not same In one subnet, need individually to dispose a gateway except TRILL network.It, can be by gateway for save the cost Function distributing on routing bridge in TRILL network, after gateway receives TRILL frame message, decapsulate TRILL frame report Text obtains ethernet frame message, and gateway forwards ethernet frame message again, realizes the forwarding of cross-network segment three-layer routing.But by In the function restriction of the exchange chip of routing bridge, routing bridge be cannot achieve in decapsulation TRILL frame message and then to Ethernet Frame message carries out three layers of forwarding.
Summary of the invention
The embodiment of the present invention provides a kind of message forwarding method and routing bridge based on TRILL network, can not increase In the case where adding gateway, realizes in decapsulation TRILL frame message and then three layers of forwarding are carried out to ethernet frame message.
In order to achieve the above objectives, the embodiment of the present invention adopts the following technical scheme that
In a first aspect, providing a kind of message forwarding method based on TRILL network, comprising:
First routing bridge RB receives the first transparent interconnection of lots of links and interconnects TRILL frame message, and the first TRILL frame message includes the One ethernet frame message and first outlet routing bridge, the first ethernet frame message include source MAC, target MAC (Media Access Control) address, Source IP address and purpose IP address, the source MAC are the first MAC, and the target MAC (Media Access Control) address is gateway MAC address, described Not in same network segment, the first outlet routing bridge is the first RB for source IP address and the destination IP address, described the One RB is the previous dive routing bridge of the 3rd RB;
When determining that the first outlet routing bridge is identical as the first RB, the first RB decapsulation described first TRILL frame message obtains the first ethernet frame message;
First RB forwards the first ethernet frame report according to the target MAC (Media Access Control) address and static mac address list item Text is the corresponding gateway of the gateway MAC address to the 3rd RB, the 3rd RB, and the static mac address list item includes The gateway MAC address, VLAN ID VLAN ID and first interface.
The message forwarding method based on TRILL network that above-mentioned first aspect provides, gets in the first routing bridge After TRILL frame message, it is found that the outlet routing bridge in TRILL frame message is set as first routing bridge, the first via by Bridge is the previous dive routing bridge of the corresponding routing bridge of gateway MAC address, and first routing bridge decapsulates TRILL frame message, obtains To ethernet frame message, then ethernet frame message is sent to the routing bridge for being deployed with gateway function, so that being deployed with gateway function The routing bridge of energy carries out three layers of forwarding to ethernet frame message again, so that realization is solving in the case where not increasing gateway It encapsulates TRILL frame message and then three layers of forwarding is carried out to ethernet frame message.
Second aspect provides a kind of message forwarding method based on TRILL network, comprising:
Secondary route bridge RB receives the first ethernet frame message, and the first ethernet frame message includes source MAC, mesh MAC Address, source IP address and purpose IP address, the source MAC be the first MAC, the target MAC (Media Access Control) address be gateway MAC Address, the source IP address and the destination IP address be not in same network segment;
2nd RB inquires the second transparent interconnection of lots of links and interconnects TRILL MAC address entries, the 2nd TRILL MAC address entries packet The gateway MAC address, VLAN ID VLAN ID and the first RB are included, the first RB is the previous of the 3rd RB Jump routing bridge;
2nd RB encapsulates the first ethernet frame message and generates the first TRILL frame message, the first TRILL frame Message includes the first ethernet frame message and first outlet routing bridge, and the first outlet routing bridge is the first RB;
2nd RB forwards the first TRILL frame message.
The message forwarding method based on TRILL network that above-mentioned second aspect provides, the purpose in ethernet frame message When MAC Address is gateway MAC address, when ethernet frame message is encapsulated as TRILL frame message by routing bridge, by TRILL frame message In outlet routing bridge be set as the previous dive routing bridge of the corresponding routing bridge of gateway MAC address, send TRILL frame message, make It obtains and decapsulates TRILL frame message in outlet routing bridge, obtain ethernet frame message, outlet routing bridge again sends out ethernet frame message It is sent to the routing bridge for being deployed with gateway function, so that the routing bridge for being deployed with gateway function carries out three layers to ethernet frame message again Forwarding, to realize in the case where not increasing gateway in decapsulation TRILL frame message and then to ethernet frame report Text carries out three layers of forwarding.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with It obtains other drawings based on these drawings.
Fig. 1 is a kind of message forwarding method flow chart based on TRILL network provided in an embodiment of the present invention;
Fig. 2 is a kind of TRILL network schematic diagram provided in an embodiment of the present invention;
Fig. 3 is another message forwarding method flow chart based on TRILL network provided in an embodiment of the present invention;
Fig. 4 is another message forwarding method flow chart based on TRILL network provided in an embodiment of the present invention;
Fig. 5 is another message forwarding method flow chart based on TRILL network provided in an embodiment of the present invention;
Fig. 6 is a kind of routing bridge structural schematic diagram provided in an embodiment of the present invention;
Fig. 7 is another routing bridge structural schematic diagram provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall within the protection scope of the present invention.
Basic principle of the invention is: gateway IP, gateway media intervention are controlled (full name in English: Media by gateway Access Control, English abbreviation: MAC) address and VLAN ID (full name in English: virtual local area Network identifier, English abbreviation: VLAN ID) addition TRILL frame message relevant to TRILL protocol extension In field, proxy gateway equipment, the i.e. routing bridge adjacent with gateway are advertised to by relevant TRILL frame message.Entrance Routing bridge is requested by address resolution protocol (full name in English: Address Resolution Protocol, English abbreviation: ARP) Outlet routing bridge of the message from proxy gateway learning equipment to gateway MAC is proxy gateway equipment, rather than gateway itself, that , when the ethernet frame message for being sent to gateway is encapsulated as TRILL frame message by entrance routing bridge, by TRILL frame message Outlet routing bridge is set as proxy gateway equipment, and proxy gateway equipment receives the TRILL frame message that outlet routing bridge is itself When, decapsulation TRILL frame message obtains as ethernet frame message, then forwards ethernet frame message to gateway, gateway Three layers of forwarding are carried out to ethernet frame message again, so that gateway is deployed on routing bridge.
Wherein, entrance routing bridge is the routing bridge that ethernet frame message is encapsulated as to TRILL frame message.Exporting routing bridge is TRILL frame message is descapsulated into ethernet frame message.Entrance routing bridge and outlet routing bridge can use the pet name of routing bridge (Nickname) it identifies, i.e. RB.
Gateway is the equipment with gateway function, and gateway of the present invention refers to being deployed with gateway function Routing bridge, i.e., the equipment when realizing gateway function be gateway, realize forward TRILL frame message when be routing bridge.
The embodiment of the present invention provides a kind of message forwarding method based on TRILL network, as shown in Figure 1, comprising:
Step 101, secondary route bridge RB receive the first ethernet frame message.
First ethernet frame message includes source MAC, target MAC (Media Access Control) address, source IP address and purpose IP address, source MAC Address is the first MAC, and target MAC (Media Access Control) address is gateway MAC address, and the source IP address and the destination IP address be not in same net In section.
Step 102, the 2nd RB inquire the second transparent interconnection of lots of links and interconnect TRILL MAC address entries.
2nd TRILL MAC address entries include gateway MAC address, VLAN ID and the first RB, and the first RB is the third The previous dive routing bridge of RB, the 3rd RB are the corresponding gateway of the gateway MAC address.
Step 103, the 2nd RB encapsulate the first ethernet frame message and generate the first TRILL frame message.
First TRILL frame message includes the first ethernet frame message and first outlet routing bridge, and first outlet routing bridge is First RB.
Step 104, the 2nd RB forward the first TRILL frame message.
Step 105, the first routing bridge RB receive the first TRILL frame message.
First TRILL frame message includes the first ethernet frame message and first outlet routing bridge, the first ethernet frame message Including source MAC, target MAC (Media Access Control) address, source IP address and purpose IP address, source MAC is the first MAC, target MAC (Media Access Control) address For gateway MAC address, the source IP address and the destination IP address be not in same network segment.
Step 106, when determining that first outlet routing bridge is identical as the first RB, the first RB decapsulate the first TRILL frame report Text obtains the first ethernet frame message.
First RB is the previous dive routing bridge of the 3rd RB, and the 3rd RB is the corresponding net of the gateway MAC address Close equipment.
Step 107, the first RB forward the first ethernet frame message to arrive according to target MAC (Media Access Control) address and static mac address list item 3rd RB.
Static mac address list item includes gateway MAC address, VLAN ID and first interface.
Message forwarding method provided by the invention based on TRILL network, the target MAC (Media Access Control) address in ethernet frame message When for gateway MAC address, when ethernet frame message is encapsulated as TRILL frame message by routing bridge, by the outlet in TRILL frame message Routing bridge is set as the previous dive routing bridge of the corresponding routing bridge of gateway MAC address, TRILL frame message is sent, so that exporting Routing bridge decapsulates TRILL frame message, obtains ethernet frame message, and outlet routing bridge sends deployment for ethernet frame message again There is the routing bridge of gateway function, so that the routing bridge for being deployed with gateway function carries out three layers of forwarding to ethernet frame message again, from And in the case where not increasing gateway, it realizes in decapsulation TRILL frame message and then three is carried out to ethernet frame message Layer forwarding.
The embodiment of the present invention provides a kind of TRILL network configuration diagram, as shown in Figure 2, comprising: routing bridge 1, routing bridge 2, routing bridge 3 and routing bridge 4.Wherein, routing bridge 3 is connect with routing bridge 2, and routing bridge 4 is connect with routing bridge 2, routing bridge 2 and road It is connected by bridge 1.Gateway function is disposed on routing bridge 1, routing bridge 1 is gateway when realizing gateway function, to ethernet frame Message carries out three layers of forwarding, is routing bridge realizing when forwarding TRILL frame message.
Routing bridge 3 can also connect user equipment 1, routing bridge of the routing bridge 3 as TRILL network edge.Routing bridge 4 is also It can connect user equipment 2, routing bridge of the routing bridge 4 as TRILL network edge.Routing bridge 3 and routing bridge 4 are also entrance road By bridge or outlet routing bridge.
When user equipment 1 sends ethernet frame message to user equipment 2, which includes source MAC And target MAC (Media Access Control) address, source MAC are the MAC Address of user equipment 1, target MAC (Media Access Control) address is the MAC Address of user equipment 2.
Routing bridge 3 receives the ethernet frame message of the transmission of user equipment 1, inquiry mac address table discovery user equipment 2 The corresponding outlet routing bridge of MAC Address is routing bridge 4, and ethernet frame message is encapsulated as TRILL frame message.In general, TRILL frame Message includes internal layer ethernet frame, the head TRILL and outer layer Ethernet frame head three parts.Internal layer ethernet frame includes user equipment The initial data frame of sending is ethernet frame.The head TRILL include entrance routing bridge the pet name (Nickname) and Exit Road by The pet name of bridge.Outer layer Ethernet frame head includes the source MAC and target MAC (Media Access Control) address of routing bridge, for inside TRILL network Realize Layer 2 data forwarding, source MAC and target MAC (Media Access Control) address can be reset in hop-by-hop routing bridge repeating process.
When ethernet frame message is encapsulated as TRILL frame message by routing bridge 3, the entrance routing bridge that the head TRILL includes is RB3, outlet routing bridge are RB4, and source MAC that outer layer Ethernet frame head includes is the MAC Address of routing bridge 3, purpose MAC Location is the MAC Address of routing bridge 2.TRILL frame message is sent to routing bridge 2.
After routing bridge 2 receives TRILL frame message, TRILL forwarding is inquired according to the outlet routing bridge RB4 on the head TRILL Table, obtains the outlet of TRILL frame message, and the source MAC that replacement outer layer Ethernet frame head includes is the MAC Address of routing bridge 2, mesh MAC Address be routing bridge 4 MAC Address, TRILL frame message is sent to routing bridge 4.
After routing bridge 4 receives TRILL frame message, checks that discovery outlet routing bridge is itself RB4, then peel TRILL head off Portion obtains original Ethernet frame, then checks original Ethernet frame head, is forwarded original Ethernet frame according to target MAC (Media Access Control) address To user equipment 2.
User equipment 2 receives the ethernet frame message of the transmission of user equipment 1.
Routing bridge 1 can also connect user equipment 3, routing bridge and entrance of the routing bridge 1 as TRILL network edge Routing bridge or outlet routing bridge.
Assuming that the MAC Address of user equipment 1 is MAC1, IP address 10.1.1.251;The MAC Address of user equipment 3 is MAC3, IP address 20.1.1.253.When user equipment 1 sends ethernet frame message to user equipment 3, as shown in figure 3, root According to the message forwarding method provided by the invention based on TRILL network, following steps are executed:
Step 201, user equipment 1 send ethernet frame message to user equipment 3.
Ethernet frame message includes source MAC, target MAC (Media Access Control) address, source IP address and purpose IP address, source MAC For the MAC Address of user equipment 1, i.e. MAC1, target MAC (Media Access Control) address is gateway MAC address, and source IP address is the IP of user equipment 1 Address, i.e. 10.1.1.251, purpose IP address are the IP address of user equipment 3, i.e. 20.1.1.253.
Step 202, routing bridge 3 receive the ethernet frame message that user equipment 1 is sent.
Step 203, routing bridge 3 inquire the 2nd TRILL MAC address entries.
After routing bridge 3 receives the ethernet frame message of the transmission of user equipment 1, for gateway MAC according to target MAC (Media Access Control) address The 2nd TRILL MAC address entries are inquired in location, and the 2nd TRILL MAC address entries include gateway MAC address, VLAN ID and routing bridge 2.Routing bridge 2 is the previous dive routing bridge of the corresponding routing bridge of gateway MAC address.
Step 204, routing bridge 3 encapsulate ethernet frame message and generate the first TRILL frame message.
Ethernet frame message is encapsulated as the first TRILL frame message by routing bridge 3.
Internal layer ethernet frame in first TRILL frame message includes the ethernet frame message that user equipment 1 is sent.
The entrance routing bridge that the head TRILL includes is routing bridge 3, and outlet routing bridge is routing bridge 2.
Outer layer in TRILL frame head portion also encapsulates one layer of Ethernet frame head, and Ethernet frame head includes source MAC and mesh MAC Address, source MAC be routing bridge 3 MAC Address, target MAC (Media Access Control) address be routing bridge 2 MAC Address.
Step 205, routing bridge 3 send the first TRILL frame message to routing bridge 2.
Step 206, routing bridge 2 receive the first TRILL frame message that routing bridge 3 is sent.
Step 207, routing bridge 2 judge to export routing bridge and whether routing bridge 2 is identical.
If exporting routing bridge and routing bridge 2 not being identical, step 208 is executed.If it is identical as routing bridge 2 to export routing bridge, hold Row step 209.
Step 208, routing bridge 2 continue to forward the first TRILL frame message.
Step 209, routing bridge 2 decapsulate the first TRILL frame message, obtain ethernet frame message.
After routing bridge 2 receives the first TRILL frame message of the transmission of routing bridge 3, find outlet routing bridge for routing bridge 2 certainly Oneself obtains ethernet frame message after removing TRILL frame head portion.
Step 210, routing bridge 2 send ethernet frame message to routing bridge 1.
The target MAC (Media Access Control) address that routing bridge 2 includes according to internal layer ethernet frame, looks into mac address table, finds static mac address List item, the static mac address list item include gateway MAC address, VLAN ID and interface 1, routing bridge 2 directly by interface 1 to Routing bridge 1 sends ethernet frame message, and learns the MAC Address of user equipment 1.Routing bridge 1 is the net for being deployed with gateway function Equipment is closed, the MAC Address of routing bridge 1 is gateway MAC address.
Step 211, routing bridge 1 receive the ethernet frame message that routing bridge 2 is sent.
Routing bridge 1 is after the ethernet frame message that local interface 2 receives that routing bridge 2 is sent, according to ethernet frame message packet The source MAC included learns the MAC Address of user equipment 1, generation dynamic MAC address list item, including MAC1, VLAN ID and connects Mouth 2.
Step 212, routing bridge 1 send ethernet frame message to user equipment 3.
According to purpose IP address in the IP of ethernet frame message head, determines three-layer routing forwarding, first learn user equipment 1 ARP entry, user equipment 3 is being transmitted to according to three-layer routing checking result.
Before step 201, as shown in figure 4, the method also includes following steps:
Step 213,1 broadcast ARP request message of user equipment.
Since user equipment 1 and user equipment 3 be not in the same network segment, user equipment 1 sends ether to user equipment 3 When net frame message, the forwarding by gateway is needed, user equipment 3 can just receive the ethernet frame of the transmission of user equipment 1 Message.User equipment 1 finds the ARP entry of the local not IP address 10.1.1.1 of gateway, and user equipment 1 sends ARP Request message, ARP request message are ethernet frame message.
It include source MAC and target MAC (Media Access Control) address in the Ethernet frame head of ARP request message, source MAC sets for user Standby 1 MAC Address, i.e. MAC1, target MAC (Media Access Control) address are broadcast address FFFF:FFFF:FFFF.
The load of ARP request message includes transmitting terminal source MAC, transmitting terminal source IP address, destination-mac address and target IP address, transmitting terminal source MAC are the MAC Address of user equipment 1, i.e. MAC1, transmitting terminal source IP address is user equipment 1 IP address, i.e. 10.1.1.251, destination-mac address 0, target ip address are the gateway ip address of gateway, i.e., 10.1.1.1。
Step 214, routing bridge 3 receive the ARP request message that user equipment 1 is broadcasted.
Step 215, routing bridge 3 encapsulate ARP request message and generate the 3rd TRILL frame message.
After routing bridge 3 receives the ARP request message of the transmission of user equipment 1, learn the MAC Address of user equipment 1, i.e., MAC1 is broadcast address further according to target MAC (Media Access Control) address, ARP request message is encapsulated as the 3rd TRILL frame message, entire It is broadcasted in TRILL network.
Internal layer ethernet frame in 3rd TRILL frame message includes ARP request message.
The entrance routing bridge that the head TRILL includes is routing bridge 3, and outlet routing bridge is the tree root of TRILL distribution tree.
Outer layer in TRILL frame head portion also encapsulates one layer of Ethernet frame head, and Ethernet frame head includes source MAC and mesh MAC Address, source MAC be routing bridge 3 MAC Address, target MAC (Media Access Control) address be routing bridge 2 MAC Address.
Step 216, routing bridge 3 send the 3rd TRILL frame message to routing bridge 2.
Step 217, routing bridge 2 receive the 3rd TRILL frame message that routing bridge 3 is sent.
Step 218, routing bridge 2 decapsulate the 3rd TRILL frame message, obtain target ip address and MAC1.
After routing bridge 2 receives the 3rd TRILL frame message of the transmission of routing bridge 3, ARP is found after removing TRILL frame head portion The Target IP of request message be gateway gateway ip address, i.e. 10.1.1.1, then no longer down hop routing bridge 1 or routing Bridge 4 forwards ARP request message, and arp reply message is replied in the processing of 2 local agent of routing bridge.Routing bridge 2 terminates the 3rd TRILL frame The forwarding of message.
Step 219, routing bridge 2 generate the first TRILL MAC address entries according to MAC1.
Routing bridge 2 first learns the MAC Address of user equipment 1, i.e. MAC1 generates the first TRILL MAC address entries, including MAC1, VLAN ID and outlet routing bridge are routing bridge 3.
It should be noted that information needed for agency sends arp reply message, including gateway IP is stored in advance in routing bridge 2 Address, gateway MAC address and vlan information.Before the 3rd TRILL frame message that routing bridge 2 receives that routing bridge 3 is sent, routing Bridge 1, i.e. gateway dose gateway ip address, gateway MAC address and VLAN ID in TRILL frame relevant to TRILL protocol In the extended field of message, proxy gateway equipment, i.e. routing bridge 2 are advertised to by relevant TRILL frame message, routing bridge 2 from It is local to generate static mac address list item, including gateway MAC address, VLAN ID and interface after interface 1 receives TRILL frame message 1, and locally open the ARP proxy of gateway ip address.
The embodiment of the present invention do not limit TRILL protocol message extension mode, such as can to TRILL hello packet into Row extension increases new message field (MFLD), and gateway ip address, gateway MAC address, VLAN ID encapsulation is entered.
Step 220, routing bridge 2 generate arp reply message.
It include source MAC and target MAC (Media Access Control) address in the Ethernet frame head of arp reply message, source MAC is gateway MAC Address, target MAC (Media Access Control) address are the MAC Address of user equipment 1, i.e. MAC1.
The load of arp reply message includes transmitting terminal source MAC, transmitting terminal source IP address, destination-mac address and target IP address, transmitting terminal source MAC are gateway MAC address, and transmitting terminal source IP address is gateway ip address, i.e. 10.1.1.1, mesh The MAC Address that MAC Address is user equipment 1, i.e. MAC1 are marked, target ip address is the IP address of user equipment 1, i.e., 10.1.1.251。
Step 221, routing bridge 2 encapsulate arp reply message and generate the 4th TRILL frame message.
Routing bridge 2 inquires first generated in step 219 according to the target MAC (Media Access Control) address of arp reply message, i.e. MAC1 TRILL MAC address entries, including MAC1, VLAN ID and outlet routing bridge are routing bridge 3, and arp reply message is encapsulated as the 4th TRILL frame message is sent.
Internal layer ethernet frame in 4th TRILL frame message includes arp reply message.
The entrance routing bridge that the head TRILL includes is routing bridge 2, and outlet routing bridge is routing bridge 3.
Outer layer in TRILL frame head portion also encapsulates one layer of Ethernet frame head, and Ethernet frame head includes source MAC and mesh MAC Address, source MAC be routing bridge 2 MAC Address, target MAC (Media Access Control) address be routing bridge 3 MAC Address.
Step 222, routing bridge 2 send the 4th TRILL frame message to routing bridge 3.
Step 223, routing bridge 3 receive the 4th TRILL frame message that routing bridge 2 is sent.
Step 224, routing bridge 3 judge to export routing bridge and whether routing bridge 3 is identical.
If exporting routing bridge and routing bridge 3 not being identical, step 225 is executed;If it is identical as routing bridge 3 to export routing bridge, hold Row step 226.
Step 225, routing bridge 3 continue to forward the 4th TRILL frame message.
Step 226, routing bridge 3 decapsulate the 4th TRILL frame Receive message arp reply message.
Routing bridge 3 receives the 4th TRILL frame message that routing bridge 2 is sent, and discovery outlet routing bridge is routing bridge 3 oneself, Firstly, removal TRILL frame head portion, is reduced to ethernet frame message, i.e. arp reply message for the 4th TRILL frame message.
Step 227, routing bridge 3 generate the 2nd TRILL MAC address entries.
Routing bridge 3 learns gateway MAC address, generates the 2nd TRILL MAC address entries, including gateway MAC address, VLAN ID It is routing bridge 2 with outlet routing bridge.
Step 228, routing bridge 3 send arp reply message to user equipment 1.
Step 229, user equipment 1 receive the arp reply message that routing bridge 3 is sent.
User equipment 1 receives the arp reply message of ethernet frame format, and the ARP entry of gateway ip address, i.e. net are arrived in study Close the corresponding gateway MAC address of IP address.
When user equipment 3 sends ethernet frame message to user equipment 1, as shown in figure 5, the base provided according to the present invention In the message forwarding method of TRILL network, following steps are executed:
Step 301, user equipment 3 send ethernet frame message to user equipment 1.
Step 302, routing bridge 1 receive the ethernet frame message that user equipment 3 is sent.
Routing bridge 1 inquires the ARP entry of user equipment 1, ethernet frame head is arranged, ethernet frame message includes source MAC Address, target MAC (Media Access Control) address, source IP address and purpose IP address, source MAC are gateway MAC address, and target MAC (Media Access Control) address is The MAC Address of user equipment 1, i.e. MAC1, source IP address are the IP address of user equipment 3, i.e. 20.1.1.253, purpose IP address For the IP address of user equipment 1, i.e. 10.1.1.251.The target MAC (Media Access Control) address is what user equipment 1 was sent to user equipment 3 Source MAC in ethernet frame message.
Step 303, routing bridge 1 forward ethernet frame message to routing bridge 2.
Step 304, routing bridge 2 receive the ethernet frame message that routing bridge 1 forwards.
Step 305, routing bridge 2 inquire the first TRILL MAC address entries.
Routing bridge 2 receives ethernet frame message from interface 1, inquires the first TRILL MAC table according to target MAC (Media Access Control) address , including MAC1, VLAN ID and outlet routing bridge are routing bridge 3, and ethernet frame message is encapsulated as the 2nd TRILL frame message.
Step 306, routing bridge 2 encapsulate ethernet frame message and generate the 2nd TRILL frame message.
Internal layer ethernet frame in 2nd TRILL frame message includes the ethernet frame message that user equipment 3 is sent.
The entrance routing bridge that the head TRILL includes is routing bridge 2, and outlet routing bridge is routing bridge 3.
Outer layer in TRILL frame head portion also encapsulates one layer of Ethernet frame head, and Ethernet frame head includes source MAC and mesh MAC Address, source MAC be routing bridge 2 MAC Address, target MAC (Media Access Control) address be routing bridge 3 MAC Address.
Step 307, routing bridge 2 send the 2nd TRILL frame message to routing bridge 3.
Step 308, routing bridge 3 receive the 2nd TRILL frame message that routing bridge 2 is sent.
Step 309, routing bridge 3 judge to export routing bridge and whether routing bridge 3 is identical.
If exporting routing bridge and routing bridge 3 not being identical, step 310 is executed.If it is identical as routing bridge 3 to export routing bridge, hold Row step 311.
Step 310, routing bridge 3 continue to forward the 2nd TRILL frame message.
Step 311, routing bridge 3 decapsulate the 2nd TRILL frame message, obtain ethernet frame message.
After routing bridge 3 receives the 2nd TRILL frame message of the transmission of routing bridge 2, find outlet routing bridge for routing bridge 3 certainly Oneself obtains ethernet frame message after removing TRILL frame head portion.
Step 312, routing bridge 3 forward ethernet frame message to user equipment 1.
It should be noted that it is the ethernet frame of user equipment 1 that routing bridge 1, which forwards purpose IP address, before step 301 When message, if searching the ARP entry less than user equipment 1, temporary cache message first sends ARP request.
Routing bridge 1 sends ARP request message, and ARP request message includes target MAC (Media Access Control) address and source MAC, purpose MAC Address is broadcast address FFFF:FFFF:FFFF, and source MAC is gateway MAC address.ARP request message is ethernet frame report Text.
After routing bridge 2 receives ARP request message, according to target MAC (Media Access Control) address, it is encapsulated as TRILL frame in entire TRILL It is broadcasted in net, wherein the internal layer ethernet frame in TRILL frame message includes ARP request message, and entrance routing bridge is routing bridge 2, The tree root that routing bridge is multicast distribution tree is exported, the outer layer in TRILL frame head portion also encapsulates one layer of Ethernet frame head, Ethernet Frame head includes source MAC and target MAC (Media Access Control) address, and source MAC is the MAC Address of routing bridge 2, and target MAC (Media Access Control) address is routing The MAC Address of bridge 3.
After the reception of routing bridge 3 is packaged with the TRILL frame of ARP request message, after removing the head TRILL, according to internal layer ether The source MAC learned addresses of net frame, generate the 2nd TRILLMAC list item, including gateway MAC address, VLAN ID, Exit Road by Bridge is routing bridge 2.The broadcast of internal layer ethernet frame is transmitted to user equipment 1 by routing bridge 3.
User equipment 1 receives ARP request, sends arp reply message, wherein target MAC (Media Access Control) address is gateway MAC address, source MAC Address is the MAC Address of user equipment 1, i.e. MAC1.
After routing bridge 3 receives arp reply, the 2nd TRILLMAC list item, including gateway MAC are found according to target MAC (Media Access Control) address Address, VLAN ID, outlet routing bridge are routing bridge 2, are encapsulated as TRILL frame, wherein the internal layer Ethernet in TRILL frame message Frame includes arp reply message, and entrance routing bridge is routing bridge 3, and outlet routing bridge is routing bridge 2, in the outer of TRILL frame head portion Layer also encapsulates one layer of Ethernet frame head, and Ethernet frame head includes source MAC and target MAC (Media Access Control) address, and source MAC is routing The MAC Address of bridge 3, target MAC (Media Access Control) address are the MAC Address of routing bridge 2.
Routing bridge 2 receives TRILL frame, after removing the head TRILL, finds corresponding gateway MAC table according to target MAC (Media Access Control) address , internal layer Ether frame is directly forwarded to routing bridge 1.
Routing bridge 1 receives arp reply message, and the ARP entry of user equipment 1 is arrived in study.
The embodiment of the present invention provides a kind of first routing bridge 40, as shown in Figure 6, comprising:
Receiving unit 401 interconnects TRILL frame message, the first TRILL frame message for receiving the first transparent interconnection of lots of links Including the first ethernet frame message and first outlet routing bridge, the first ethernet frame message includes the intervention control of source media MAC Address, target MAC (Media Access Control) address, source Internet protocol IP address and purpose IP address, the source MAC is the first MAC, described Target MAC (Media Access Control) address is gateway MAC address, and the source IP address and the destination IP address be not in same network segment;
Processing unit 402, for when determining that the first outlet routing bridge is identical as the first RB, described in decapsulation First TRILL frame message, obtains the first ethernet frame message, and the first RB is the previous dive routing bridge of the 3rd RB, institute Stating the 3rd RB is the corresponding gateway of the gateway MAC address;
Transmission unit 403, for forwarding first ether according to the target MAC (Media Access Control) address and static mac address list item For net frame message to the 3rd RB, the static mac address list item includes the gateway MAC address, VLAN ID VLAN ID And first interface.
Message forwarding method provided in an embodiment of the present invention based on TRILL network, gets in the first routing bridge After TRILL frame message, it is found that the outlet routing bridge in TRILL frame message is set as first routing bridge, the first via by Bridge is the previous dive routing bridge of the corresponding routing bridge of gateway MAC address, and first routing bridge decapsulates TRILL frame message, obtains To ethernet frame message, then ethernet frame message is sent to the routing bridge for being deployed with gateway function, so that being deployed with gateway function The routing bridge of energy carries out three layers of forwarding to ethernet frame message again, so that realization is solving in the case where not increasing gateway It encapsulates TRILL frame message and then three layers of forwarding is carried out to ethernet frame message.
The receiving unit 401 is also used to receive the second ethernet frame message, second ether from the first interface Net frame message includes source MAC, target MAC (Media Access Control) address, source IP address and purpose IP address, and the source MAC is gateway MAC Address, the target MAC (Media Access Control) address are the first MAC, and the source IP address and the destination IP address be not in same network segment;
The processing unit 402, is also used to inquire the first TRILL MAC address entries, and the first TRILL MAC address entries include First MAC, VLAN ID and the 2nd RB;
The processing unit 402 is also used to encapsulate the second ethernet frame message and generates the 2nd TRILL frame message, institute Stating the 2nd TRILL frame message includes the second ethernet frame message and second outlet routing bridge, the second outlet routing bridge For the 2nd RB;
The transmission unit 403 is also used to forward the 2nd TRILL frame message.
The receiving unit 401, is also used to receive the 3rd TRILL frame message, and the 3rd TRILL frame message includes The tree root of ARP request message, first entrance routing bridge and TRILL distribution tree, the first entrance routing bridge are the 2nd RB, The ARP request message includes source MAC, target MAC (Media Access Control) address, transmitting terminal source MAC, transmitting terminal source IP address, target MAC Address and target ip address, the source MAC are the first MAC, and the target MAC (Media Access Control) address is broadcast address, the transmission End source MAC is the first MAC, and the transmitting terminal source IP address is the first IP address, and the destination-mac address is 0, the Target IP Address is gateway ip address;
The processing unit 402 is also used to decapsulate the 3rd TRILL frame message, obtain the target ip address and First MAC;
The processing unit 402, is also used to generate the first TRILL MAC address entries according to the first MAC, and described the One TRILL MAC address entries include the first MAC, VLANID and the 2nd RB;
The processing unit 402, is also used to generate arp reply message, and the arp reply message includes source MAC, mesh MAC Address, transmitting terminal source MAC, transmitting terminal source IP address, destination-mac address and target ip address, the source MAC Location is gateway MAC address, and the target MAC (Media Access Control) address is the first MAC, and the transmitting terminal source MAC is gateway MAC address, institute Stating transmitting terminal source IP address is gateway ip address, and the destination-mac address is the first MAC, and the target ip address is the first IP;
The processing unit 402 is also used to that it is raw to encapsulate the arp reply message according to the first TRILL MAC address entries At the 4th TRILL frame message, the 4th TRILL frame message includes the arp reply message, second entrance routing bridge and third Routing bridge is exported, second entrance routing bridge is the first RB, and third outlet routing bridge is the 2nd RB;
The transmission unit 403 is also used to forward the 4th TRILL frame message.
The receiving unit 401 is also used to receive the TRILL message that the 3rd RB is sent from the first interface, described TRILL message includes gateway MAC address, gateway ip address and VLAN ID;
The processing unit 402, is also used to generate local static mac address list item, and the static mac address list item includes Gateway MAC address, VLAN ID and the first interface.
The embodiment of the present invention provides a kind of secondary route bridge 50, as shown in fig. 7, comprises:
Receiving unit 501, for receiving the first ethernet frame message, the first ethernet frame message includes source MAC Location, target MAC (Media Access Control) address, source IP address and purpose IP address, the source MAC are the first MAC, and the target MAC (Media Access Control) address is Gateway MAC address, the source IP address and the destination IP address be not in same network segment;
Processing unit 502 interconnects TRILL MAC address entries, the 2nd TRILL MAC for inquiring the second transparent interconnection of lots of links List item includes the gateway MAC address, VLAN ID VLAN ID and the first RB, before the first RB is the 3rd RB One jumps routing bridge, and the 3rd RB is the corresponding gateway of the gateway MAC address;
The processing unit 502 is also used to encapsulate the first ethernet frame message and generates the first TRILL frame message, institute Stating the first TRILL frame message includes the first ethernet frame message and first outlet routing bridge, the first outlet routing bridge For the first RB;
Transmission unit 503, for forwarding the first TRILL frame message.
Message forwarding method provided in an embodiment of the present invention based on TRILL network, the purpose in ethernet frame message When MAC Address is gateway MAC address, when ethernet frame message is encapsulated as TRILL frame message by routing bridge, by TRILL frame message In outlet routing bridge be set as the previous dive routing bridge of the corresponding routing bridge of gateway MAC address, send TRILL frame message, make It obtains and decapsulates TRILL frame message in outlet routing bridge, obtain ethernet frame message, outlet routing bridge again sends out ethernet frame message It is sent to the routing bridge for being deployed with gateway function, so that the routing bridge for being deployed with gateway function carries out three layers to ethernet frame message again Forwarding, to realize in the case where not increasing gateway in decapsulation TRILL frame message and then to ethernet frame report Text carries out three layers of forwarding.
The receiving unit 501, is also used to receive the 2nd TRILL frame message, and the 2nd TRILL frame message includes second Ethernet frame message and second outlet routing bridge, the second ethernet frame message include source MAC, target MAC (Media Access Control) address, source IP address and purpose IP address, the source MAC are gateway MAC address, and the target MAC (Media Access Control) address is the first MAC, the mesh IP address be the first IP, the source IP address and the destination IP address be not in same network segment, second outlet routing Bridge is the 2nd RB;
The processing unit 502 is also used to when determining that the second outlet routing bridge is identical as the 2nd RB, deblocking The 2nd TRILL frame message is filled, the second ethernet frame message is obtained;
The transmission unit 503 is also used to the 2nd RB according to the target MAC (Media Access Control) address and forwards second Ethernet Frame message.
The receiving unit 501, is also used to receive ARP request message, and the ARP request message includes source MAC, mesh MAC Address, transmitting terminal source MAC, transmitting terminal source IP address, destination-mac address and target ip address, the source MAC Location is the first MAC, and the target MAC (Media Access Control) address is broadcast address, and the transmitting terminal source MAC is the first MAC, the transmitting terminal source IP For the first IP, the destination-mac address is 0, and the target ip address is gateway ip address;
The processing unit 502 is also used to encapsulate the ARP request message and generates the 3rd TRILL frame message, the third TRILL frame message includes the tree root of the ARP request message, first entrance routing bridge and TRILL distribution tree, the first entrance Routing bridge is the 2nd RB;
The transmission unit 503 is also used to forward the 3rd TRILL frame message;
The receiving unit 501 is also used to receive the 4th TRILL frame message, and the 4th TRILL frame message includes ARP Response message, second entrance routing bridge and third export routing bridge, and second entrance routing bridge is the first RB, the third Exit Road It is the 2nd RB by bridge, the arp reply message includes source MAC, target MAC (Media Access Control) address, transmitting terminal source MAC, hair Sending end source IP address, destination-mac address and target ip address, the source MAC are gateway MAC address, the purpose MAC Location is the first MAC, and the transmitting terminal source MAC is gateway MAC address, and the transmitting terminal source IP address is gateway ip address, The destination-mac address is the first MAC, and the target ip address is the first IP;
The processing unit 502 is also used to the deblocking when determining that third outlet routing bridge is identical as the 2nd RB The 4th TRILL frame message is filled, the arp reply message is obtained;
The processing unit 502 is also used to generate the 2nd TRILL MAC address entries, the 2nd TRILL MAC address entries It is the previous dive routing bridge of the 3rd RB including the gateway MAC address, VLAN ID and the first RB, the first RB, it is described 3rd RB is the corresponding gateway of the gateway MAC address;
The transmission unit 503 is also used to send the arp reply message to the corresponding equipment of the first IP.
It is apparent to those skilled in the art that for convenience and simplicity of description, the device of foregoing description It with the specific work process of unit, can refer to corresponding processes in the foregoing method embodiment, details are not described herein.
Those of ordinary skill in the art will appreciate that: realize that all or part of the steps of above method embodiment can pass through The relevant hardware of program instruction is completed, and program above-mentioned can be stored in a computer readable storage medium, the program When being executed, step including the steps of the foregoing method embodiments is executed;And storage medium above-mentioned includes: ROM, RAM, magnetic disk or light The various media that can store program code such as disk.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any Those familiar with the art in the technical scope disclosed by the present invention, can easily think of the change or the replacement, and should all contain Lid is within protection scope of the present invention.Therefore, protection scope of the present invention should be based on the protection scope of the described claims.

Claims (12)

1. a kind of message forwarding method based on TRILL network characterized by comprising
First routing bridge RB receives the first transparent interconnection of lots of links and interconnects TRILL frame message, and the first TRILL frame message includes first Ethernet frame message and first outlet routing bridge, the first ethernet frame message include source media intervention control MAC Address, mesh MAC Address, source Internet protocol IP address and purpose IP address, the source MAC be the first MAC, the target MAC (Media Access Control) address For gateway MAC address, the source IP address and the destination IP address be not in same network segment;
When determining that the first outlet routing bridge is identical as the first RB, the first RB decapsulates the first TRILL Frame message obtains the first ethernet frame message, and the first RB is the previous dive routing bridge of the 3rd RB, and the 3rd RB is The corresponding gateway of the gateway MAC address;
First RB forwards the first ethernet frame message to arrive according to the target MAC (Media Access Control) address and static mac address list item 3rd RB, the static mac address list item include the gateway MAC address, VLAN ID VLAN ID and first Interface.
2. the method according to claim 1, wherein in the first RB according to the target MAC (Media Access Control) address and quiet After state MAC Address list item forwards the first ethernet frame message, the method also includes:
First RB receives the second ethernet frame message from the first interface, and the second ethernet frame message includes source MAC Address, target MAC (Media Access Control) address, source IP address and purpose IP address, the source MAC are gateway MAC address, the purpose MAC Address is the first MAC, and the source IP address and the destination IP address be not in same network segment;
First RB inquires the first TRILL MAC address entries, and the first TRILL MAC address entries include the first MAC, VLAN ID With the 2nd RB;
First RB encapsulates the second ethernet frame message and generates the 2nd TRILL frame message, the 2nd TRILL frame message Including the second ethernet frame message and second outlet routing bridge, the second outlet routing bridge is the 2nd RB;
First RB forwards the 2nd TRILL frame message.
3. according to the method described in claim 2, it is characterized in that, receiving the first TRILL frame report in the first routing bridge RB Before text, the method also includes:
First RB receives the 3rd TRILL frame message, and the 3rd TRILL frame message includes Address Resolution Protocol ARP request The tree root of message, first entrance routing bridge and TRILL distribution tree, the first entrance routing bridge are the 2nd RB, the ARP Request message includes source MAC, target MAC (Media Access Control) address, transmitting terminal source MAC, transmitting terminal source IP address, destination-mac address And target ip address, the source MAC are the first MAC, the target MAC (Media Access Control) address is broadcast address, the transmitting terminal source MAC For the first MAC, the transmitting terminal source IP address is the first IP address, and the destination-mac address is 0, and the target ip address is Gateway ip address;
First RB decapsulates the 3rd TRILL frame message, obtains the target ip address and the first MAC;
First RB generates the first TRILL MAC address entries, the first TRILL MAC address entries according to the first MAC Including the first MAC, VLAN ID and the 2nd RB;
First RB generates arp reply message, and the arp reply message includes source MAC, target MAC (Media Access Control) address, transmitting terminal Source MAC, transmitting terminal source IP address, destination-mac address and target ip address, the source MAC are gateway MAC address, The target MAC (Media Access Control) address is the first MAC, and the transmitting terminal source MAC is gateway MAC address, the transmitting terminal source IP address For gateway ip address, the destination-mac address is the first MAC, and the target ip address is the first IP;
First RB encapsulates the arp reply message and generates the 4th TRILL frame report according to the first TRILL MAC address entries Text, the 4th TRILL frame message include the arp reply message, second entrance routing bridge and third outlet routing bridge, second Entrance routing bridge is the first RB, and third outlet routing bridge is the 2nd RB;
First RB forwards the 4th TRILL frame message.
4. method described in any one of -3 claims according to claim 1, which is characterized in that receive third in the first RB Before TRILL frame message, the method also includes:
First RB receives the TRILL message that the 3rd RB is sent from the first interface, and the TRILL message includes gateway MAC Address, gateway ip address and VLAN ID;
First RB generates local static mac address list item, and the static mac address list item includes gateway MAC address, VLAN ID and the first interface.
5. a kind of message forwarding method based on TRILL network characterized by comprising
Secondary route bridge RB receives the first ethernet frame message, and the first ethernet frame message includes the intervention control of source media MAC Address, target MAC (Media Access Control) address, source Internet protocol IP address and purpose IP address, the source MAC is the first MAC, described Target MAC (Media Access Control) address is gateway MAC address, and the source IP address and the destination IP address be not in same network segment;
2nd RB inquires the second transparent interconnection of lots of links and interconnects TRILL MAC address entries, and the 2nd TRILL MAC address entries include institute Gateway MAC address, VLAN ID VLAN ID and the first RB are stated, the first RB is the previous dive routing bridge of the 3rd RB, 3rd RB is the corresponding gateway of the gateway MAC address;
2nd RB encapsulates the first ethernet frame message and generates the first TRILL frame message, the first TRILL frame message Including the first ethernet frame message and first outlet routing bridge, the first outlet routing bridge is the first RB;
2nd RB forwards the first TRILL frame message.
6. according to the method described in claim 5, it is characterized in that, forwarding the first TRILL frame message in the 2nd RB Later, the method also includes:
2nd RB receives the 2nd TRILL frame message, and the 2nd TRILL frame message includes the second ethernet frame message and the Two outlet routing bridges, the second ethernet frame message includes source MAC, target MAC (Media Access Control) address, source IP address and destination IP Location, the source MAC are gateway MAC address, and the target MAC (Media Access Control) address is the first MAC, the source IP address and the purpose For IP address not in same network segment, the second outlet routing bridge is the previous dive of the corresponding routing bridge of the gateway MAC address Routing bridge;
When determining that the second outlet routing bridge is identical as the 2nd RB, the 2nd RB decapsulates the 2nd TRILL Frame message obtains the second ethernet frame message;
2nd RB forwards the second ethernet frame message according to the target MAC (Media Access Control) address.
7. according to the method described in claim 6, it is characterized in that, receiving the first ethernet frame report in the secondary route bridge RB Before text, the method also includes:
2nd RB receives Address Resolution Protocol ARP request message, and the ARP request message includes source MAC, purpose MAC Address, transmitting terminal source MAC, transmitting terminal source IP address, destination-mac address and target ip address, the source MAC For the first MAC, the target MAC (Media Access Control) address is broadcast address, and the transmitting terminal source MAC is the first MAC, and the transmitting terminal source IP is First IP, the destination-mac address are 0, and the target ip address is gateway ip address;
2nd RB encapsulates the ARP request message and generates the 3rd TRILL frame message, and the 3rd TRILL frame message includes The tree root of the ARP request message, first entrance routing bridge and TRILL distribution tree, the first entrance routing bridge are described the Two RB;
2nd RB forwards the 3rd TRILL frame message;
2nd RB receives the 4th TRILL frame message, and the 4th TRILL frame message includes arp reply message, second entrance Routing bridge and third export routing bridge, and second entrance routing bridge is the first RB, and the arp reply message includes source MAC, mesh MAC Address, transmitting terminal source MAC, transmitting terminal source IP address, destination-mac address and target ip address, the source MAC Location is gateway MAC address, and the target MAC (Media Access Control) address is the first MAC, and the transmitting terminal source MAC is gateway MAC, the hair Sending end source IP address is gateway ip address, and the destination-mac address is the first MAC, and the target ip address is the first IP, described Third exports the previous dive routing bridge that routing bridge is the corresponding routing bridge of the gateway MAC address;
When determining that third outlet routing bridge is identical as the 2nd RB, the 2nd RB decapsulates the 4th TRILL Frame message obtains the arp reply message;
2nd RB generates the 2nd TRILL MAC address entries, and the 2nd TRILLMAC list item includes the gateway MAC Location, VLAN ID and the first RB;
2nd RB sends the arp reply message to the corresponding equipment of the first IP.
8. a kind of first routing bridge characterized by comprising
Receiving unit interconnects TRILL frame message for receiving the first transparent interconnection of lots of links, and the first TRILL frame message includes the One ethernet frame message and first outlet routing bridge, the first ethernet frame message include source media intervention control MAC Address, Target MAC (Media Access Control) address, source Internet protocol IP address and purpose IP address, the source MAC are the first MAC, the purpose MAC Location is gateway MAC address, and the source IP address and the destination IP address be not in same network segment;
Processing unit, for decapsulating described first when determining that the first outlet routing bridge is identical as the first RB TRILL frame message obtains the first ethernet frame message, and the first RB is the previous dive routing bridge of the 3rd RB, and described the Three RB are the corresponding gateway of the gateway MAC address;
Transmission unit, for forwarding the first ethernet frame message according to the target MAC (Media Access Control) address and static mac address list item To the 3rd RB, the static mac address list item includes the gateway MAC address, VLAN ID VLAN ID and One interface.
9. the first routing bridge according to claim 8, which is characterized in that
The receiving unit is also used to receive the 3rd TRILL frame message, and the 3rd TRILL frame message includes ARP request report The tree root of text, first entrance routing bridge and TRILL distribution tree, the first entrance routing bridge are the 2nd RB, the ARP request report Text include source MAC, target MAC (Media Access Control) address, transmitting terminal source MAC, transmitting terminal source IP address, destination-mac address and Target IP Address, the source MAC are the first MAC, and the target MAC (Media Access Control) address is broadcast address, and the transmitting terminal source MAC is first MAC, the transmitting terminal source IP address are the first IP address, and the destination-mac address is 0, and the target ip address is gateway IP Address;
The processing unit is also used to decapsulate the 3rd TRILL frame message, obtains the target ip address and described first MAC;
The processing unit is also used to generate the first TRILLMAC list item, the first TRILL according to the first MAC MAC address entries include the first MAC, VLAN ID and the 2nd RB;
The processing unit, be also used to generate arp reply message, and the arp reply message includes source MAC, purpose MAC Location, transmitting terminal source MAC, transmitting terminal source IP address, destination-mac address and target ip address, the source MAC are gateway MAC Address, the target MAC (Media Access Control) address are the first MAC, and the transmitting terminal source MAC is gateway MAC address, the transmitting terminal Source IP address is gateway ip address, and the destination-mac address is the first MAC, and the target ip address is the first IP;
The processing unit is also used to encapsulate the arp reply message according to the first TRILL MAC address entries and generate the 4th TRILL frame message, the 4th TRILL frame message include the arp reply message, second entrance routing bridge and third Exit Road By bridge, second entrance routing bridge is the first RB, and third outlet routing bridge is the 2nd RB;
The transmission unit is also used to forward the 4th TRILL frame message.
10. according to the first routing bridge described in any one of claim 8-9 claim, which is characterized in that
The receiving unit is also used to receive the TRILL message that the 3rd RB is sent, the TRILL message from the first interface Including gateway MAC address, gateway ip address and VLAN ID;
The processing unit, is also used to generate local static mac address list item, and the static mac address list item includes gateway MAC Address, VLAN ID and the first interface.
11. a kind of secondary route bridge characterized by comprising
Receiving unit, for receiving the first ethernet frame message, the first ethernet frame message includes the intervention control of source media MAC Address, target MAC (Media Access Control) address, source Internet protocol IP address and purpose IP address, the source MAC is the first MAC, described Target MAC (Media Access Control) address is gateway MAC address, and the source IP address and the destination IP address be not in same network segment;
Processing unit interconnects TRILL MAC address entries, the 2nd TRILL MAC address entries packet for inquiring the second transparent interconnection of lots of links The gateway MAC address, VLAN ID VLANID and the first RB are included, the previous dive that the first RB is the 3rd RB routes Bridge, the 3rd RB are the corresponding gateway of the gateway MAC address;
The processing unit is also used to encapsulate the first ethernet frame message and generates the first TRILL frame message, and described first TRILL frame message includes the first ethernet frame message and first outlet routing bridge, and the first outlet routing bridge is described First RB;
Transmission unit, for forwarding the first TRILL frame message.
12. secondary route bridge according to claim 11, which is characterized in that
The receiving unit, be also used to receive ARP request message, and the ARP request message includes source MAC, purpose MAC Location, transmitting terminal source MAC, transmitting terminal source IP address, destination-mac address and target ip address, the source MAC are first MAC, the target MAC (Media Access Control) address are broadcast address, and the transmitting terminal source MAC is the first MAC, the transmitting terminal source IP address For the first IP, the destination-mac address is 0, and the target ip address is gateway ip address;
The processing unit is also used to encapsulate the ARP request message and generates the 3rd TRILL frame message, the 3rd TRILL frame Message includes the tree root of the ARP request message, first entrance routing bridge and TRILL distribution tree, the first entrance routing bridge For the 2nd RB;
The transmission unit is also used to forward the 3rd TRILL frame message;
The receiving unit is also used to receive the 4th TRILL frame message, and the 4th TRILL frame message includes arp reply report Text, second entrance routing bridge and third export routing bridge, and the second entrance routing bridge is the first RB, the arp reply message Including source MAC, target MAC (Media Access Control) address, transmitting terminal source MAC, transmitting terminal source IP address, destination-mac address and Target IP Address, the source MAC are gateway MAC address, and the target MAC (Media Access Control) address is the first MAC, the transmitting terminal source MAC For gateway MAC address, the transmitting terminal source IP address is gateway ip address, and the destination-mac address is the first MAC, the mesh Mark IP address is the first IP, and third outlet routing bridge is that the previous dive of the corresponding routing bridge of the gateway MAC address routes Bridge;
The processing unit is also used to when determining that third outlet routing bridge is identical as the 2nd RB, described in decapsulation 4th TRILL frame message obtains the arp reply message;
The processing unit is also used to generate the 2nd TRILL MAC address entries, and the 2nd TRILL MAC address entries include institute Gateway MAC address, VLAN ID and the first RB are stated, the first RB is the previous dive routing bridge of the 3rd RB, the 3rd RB For the corresponding gateway of the gateway MAC address;
The transmission unit is also used to send the arp reply message to the corresponding equipment of the first IP.
CN201510990503.2A 2015-12-25 2015-12-25 A kind of message forwarding method and routing bridge based on TRILL network Active CN105577542B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510990503.2A CN105577542B (en) 2015-12-25 2015-12-25 A kind of message forwarding method and routing bridge based on TRILL network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510990503.2A CN105577542B (en) 2015-12-25 2015-12-25 A kind of message forwarding method and routing bridge based on TRILL network

Publications (2)

Publication Number Publication Date
CN105577542A CN105577542A (en) 2016-05-11
CN105577542B true CN105577542B (en) 2019-05-14

Family

ID=55887230

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510990503.2A Active CN105577542B (en) 2015-12-25 2015-12-25 A kind of message forwarding method and routing bridge based on TRILL network

Country Status (1)

Country Link
CN (1) CN105577542B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102185782A (en) * 2011-05-17 2011-09-14 福建星网锐捷网络有限公司 Data transmission method and device of multilink transparent transmission interconnection network
CN102868614A (en) * 2012-09-13 2013-01-09 杭州华三通信技术有限公司 Packet forwarding method in TRILL (transparent interconnection of lots of links) network and routing bridge
CN103532858A (en) * 2013-10-31 2014-01-22 福建星网锐捷网络有限公司 TRILL (transparent interconnection of lots of links) network based data message processing method and device
CN104683230A (en) * 2013-11-28 2015-06-03 华为技术有限公司 Method and device for processing TRILL (Transparent Interconnection of Lots of Links) message

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150023352A1 (en) * 2012-02-08 2015-01-22 Hangzhou H3C Technologies Co., Ltd. Implement equal cost multiple path of trill network

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102185782A (en) * 2011-05-17 2011-09-14 福建星网锐捷网络有限公司 Data transmission method and device of multilink transparent transmission interconnection network
CN102868614A (en) * 2012-09-13 2013-01-09 杭州华三通信技术有限公司 Packet forwarding method in TRILL (transparent interconnection of lots of links) network and routing bridge
CN103532858A (en) * 2013-10-31 2014-01-22 福建星网锐捷网络有限公司 TRILL (transparent interconnection of lots of links) network based data message processing method and device
CN104683230A (en) * 2013-11-28 2015-06-03 华为技术有限公司 Method and device for processing TRILL (Transparent Interconnection of Lots of Links) message

Also Published As

Publication number Publication date
CN105577542A (en) 2016-05-11

Similar Documents

Publication Publication Date Title
CN102804693B (en) For realizing the method and apparatus of L2 VPN on ip networks
CN102971992B (en) Virtual special local area network equipment, networking component and data frame forwarding method
EP3065358B1 (en) Method and device for message forwarding
US8995444B2 (en) Method and system for extending routing domain to non-routing end stations
CN102413060B (en) User private line communication method and equipment used in VPLS (Virtual Private LAN (Local Area Network) Service) network
CN102957589B (en) Method, network node and system for service data transmission
CN102368727B (en) Crossed IP network TRILL network communication method, system thereof and devices
CN104518940A (en) Communication method and device for NVO3 (network virtualization over layer 3) network and MPLS (multi-protocol label switching) network
CN102273177B (en) Neighbour discovery protocol mediation
CN104935516A (en) Communication system based on software defined network and communication method
CN104243270A (en) Tunnel setup method and tunnel setup device
CN107070789A (en) The flow black hole of active active PBB EVPN redundancies is avoided and rapid fusion
CN102137024A (en) Message processing method, exit routing device and border routing device
CN105591927B (en) A kind of message forwarding method and routing bridge based on TRILL network
CN104079466B (en) A kind of message processing method and equipment
WO2012122844A1 (en) Method and system for domain-based interconnection of transparent interconnection over lots of links network
CN102891903A (en) NAT (Network Address Translation) converting method and equipment
CN102291305A (en) Method and device for implementing 6 to 4 relay routing, and message forwarding method
CN103152265B (en) Message forwarding method and equipment in SPB (Shortest Path Bridge) network
CN110752989A (en) Method and device for forwarding east-west traffic
CN1960325B (en) Data process method in a bridging network, and a bridging network
JP5818272B2 (en) Home gateway apparatus and packet transfer method
CN105577542B (en) A kind of message forwarding method and routing bridge based on TRILL network
EP3941006A1 (en) System and method for carrying and optimizing internet traffic over a source-selected path routing network
CN103200106A (en) Message transmitting method and message transmitting equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant