CN105577542A - Packet forwarding method based on TRILL network and route bridge - Google Patents

Packet forwarding method based on TRILL network and route bridge Download PDF

Info

Publication number
CN105577542A
CN105577542A CN201510990503.2A CN201510990503A CN105577542A CN 105577542 A CN105577542 A CN 105577542A CN 201510990503 A CN201510990503 A CN 201510990503A CN 105577542 A CN105577542 A CN 105577542A
Authority
CN
China
Prior art keywords
address
mac
routing bridge
frame message
trill
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
Application number
CN201510990503.2A
Other languages
Chinese (zh)
Other versions
CN105577542B (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]

Abstract

The embodiment of the invention provides a packet forwarding method based on a transparent interconnection of lots of links (TRILL) network and a route bridge, which relates to the field of data communication and can achieve three-layer forwarding of Ethernet frame packets after decapsulating of TRILL frame packets under the condition of not adding a gateway apparatus. A first route bridge (RB) receives a first TRILL frame packet, including a first Ethernet frame packet and a first exit route bridge, wherein the first Ethernet frame packet comprises a source MAC address, a target MAC address, a source IP address and a target IP address, the target MAC address is a gateway MAC address, and the first RB is a previous jump route bridge of a route bridge corresponding to the gateway MAC address; when the first exit route bridge is the same as the first RB, the first Ethernet frame packet is obtained; according to the target MAC address and a static MAC address table option, the first Ethernet frame packet is forwarded to a third RB for packet forwarding.

Description

A kind of message forwarding method based on TRILL network and routing bridge
Technical field
The present invention relates to data communication field, particularly relate to a kind of message forwarding method based on TRILL network and routing bridge.
Background technology
Multilink transparent interconnection (English full name: TransparentInterconnectionofLotsofLinks, English abbreviation: TRILL) agreement is that Internet Engineering Task group is (English: InternetEngineeringTaskForce, abbreviation: IETF) recommend a kind of on double layer network based on Link State calculate Routing Protocol, for set up one flexibly, easily extensible, high performance double layer network, i.e. TRILL network.Inner in TRILL network, the switch device running TRILL protocol referred to as routing bridge (English full name: RouteBridge, English abbreviation: RB), can be connected to each other between routing bridge and sets up neighborhood.The routing bridge at TRILL network edge is connected with subscriber equipment, receive the ethernet frame message that subscriber equipment sends, again ethernet frame message is encapsulated as TRILL frame message, at TRILL network repeating, when routing bridge to need TRILL frame message repeating to subscriber equipment, first decapsulation TRILL frame message, obtains ethernet frame message, by ethernet frame message repeating to subscriber equipment.Thus it is directly mutual with two layers of interconnected message repeating that carries out of link by TRILL network to realize each subscriber equipment.
When subscriber equipment needs the subscriber equipment of accessing other networks, due to Internet protocol (the English full name: InternetProtocol of this subscriber equipment, English abbreviation: IP) the IP address of subscriber equipment of address and other networks described not in same subnet, need to dispose a gateway device separately outside TRILL network.For cost-saving, can by the routing bridge of the function distributing of gateway device in TRILL network, after gateway device receives TRILL frame message, decapsulation TRILL frame message, obtain ethernet frame message, gateway device forwards ethernet frame message again, realizes cross-network segment three layers of routing forwarding.But because the function of the exchange chip of routing bridge limits, routing bridge cannot realize after decapsulation TRILL frame message, then carries out three layers of forwarding to ethernet frame message.
Summary of the invention
Embodiments of the invention provide a kind of message forwarding method based on TRILL network and routing bridge, when not increasing gateway device, can realize after decapsulation TRILL frame message, then carry out three layers of forwarding to ethernet frame message.
For achieving the above object, embodiments of the invention adopt following technical scheme:
First aspect, provides a kind of message forwarding method based on TRILL network, comprising:
First routing bridge RB receives the first multilink transparent interconnection TRILL frame message, one TRILL frame message comprises the first ethernet frame message and the first outlet routing bridge, described first ethernet frame message comprises source MAC, target MAC (Media Access Control) address, source IP address and object IP address, described source MAC is a MAC, described target MAC (Media Access Control) address is gateway MAC address, described source IP address and described object IP address be not in the same network segment, described first outlet routing bridge is a described RB, and a described RB is the previous dive routing bridge of described 3rd RB;
When determining that described first outlet routing bridge is identical with a described RB, a TRILL frame message described in a described RB decapsulation, obtains described first ethernet frame message;
A described RB forwards described first ethernet frame message to the 3rd RB according to described target MAC (Media Access Control) address and static mac address list item, described 3rd RB is the gateway device that described gateway MAC address is corresponding, and described static mac address list item comprises described gateway MAC address, VLAN ID VLANID and first interface.
The message forwarding method based on TRILL network that above-mentioned first aspect provides, after the TRILL frame message that the first routing bridge gets, find that the outlet routing bridge in TRILL frame message is set to described first routing bridge, described first routing bridge is the previous dive routing bridge of the routing bridge that gateway MAC address is corresponding, described first routing bridge decapsulation TRILL frame message, obtain ethernet frame message, again ethernet frame message is sent to the routing bridge being deployed with gateway function, the routing bridge being deployed with gateway function is made to carry out three layers of forwarding to ethernet frame message again, thus when not increasing gateway device, realize after decapsulation TRILL frame message, again three layers of forwarding are 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, described first ethernet frame message comprises source MAC, target MAC (Media Access Control) address, source IP address and object IP address, described source MAC is a MAC, described target MAC (Media Access Control) address is gateway MAC address, and described source IP address and described object IP address be not in the same network segment;
Described 2nd RB inquires about the second multilink transparent interconnection TRILLMAC list item, and described 2nd TRILLMAC list item comprises described gateway MAC address, VLAN ID VLANID and a RB, and a described RB is the previous dive routing bridge of described 3rd RB;
The described first ethernet frame message of described 2nd RB encapsulation generates a TRILL frame message, and a described TRILL frame message comprises described first ethernet frame message and the first outlet routing bridge, and described first outlet routing bridge is a described RB;
Described 2nd RB forwards a described TRILL frame message.
The message forwarding method based on TRILL network that above-mentioned second aspect provides, when the target MAC (Media Access Control) address in ethernet frame message is gateway MAC address, when ethernet frame message is encapsulated as TRILL frame message by routing bridge, outlet routing bridge in TRILL frame message is set to the previous dive routing bridge of routing bridge corresponding to gateway MAC address, send TRILL frame message, make at outlet routing bridge decapsulation TRILL frame message, obtain ethernet frame message, ethernet frame message is sent to the routing bridge being deployed with gateway function by outlet routing bridge again, the routing bridge being deployed with gateway function is made to carry out three layers of forwarding to ethernet frame message again, thus when not increasing gateway device, realize after decapsulation TRILL frame message, again three layers of forwarding are carried out to ethernet frame message.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
A kind of message forwarding method flow chart based on TRILL network that Fig. 1 provides for the embodiment of the present invention;
A kind of TRILL network schematic diagram that Fig. 2 provides for the embodiment of the present invention;
The another kind that Fig. 3 provides for the embodiment of the present invention is based on the message forwarding method flow chart of TRILL network;
Another message forwarding method flow chart based on TRILL network that Fig. 4 provides for the embodiment of the present invention;
Another message forwarding method flow chart based on TRILL network that Fig. 5 provides for the embodiment of the present invention;
A kind of routing bridge structural representation that Fig. 6 provides for the embodiment of the present invention;
The another kind of routing bridge structural representation that Fig. 7 provides for the embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
General principle of the present invention is: gateway IP, gateway media are got involved and controlled (English full name: MediaAccessControl by gateway device, English abbreviation: MAC) address and VLAN ID (English full name: virtuallocalareanetworkidentifier, English abbreviation: VLANID) be added in the extended field of the TRILL frame message relevant to TRILL protocol, proxy gateway equipment is advertised to, namely adjacent with gateway device routing bridge by relevant TRILL frame message.Entrance routing bridge is by address resolution protocol (English full name: AddressResolutionProtocol, English abbreviation: ARP) request message from proxy gateway learning equipment to the outlet routing bridge of gateway MAC be proxy gateway equipment, but not gateway device self, so, when the ethernet frame message mailing to gateway device is encapsulated as TRILL frame message by entrance routing bridge, the outlet routing bridge of TRILL frame message is set to proxy gateway equipment, proxy gateway equipment receives outlet routing bridge when being the TRILL frame message of self, decapsulation TRILL frame message obtains as ethernet frame message, forward ethernet frame message again to gateway device, gateway device carries out three layers of forwarding to ethernet frame message again, thus gateway device can be made to be deployed on routing bridge.
Wherein, entrance routing bridge is routing bridge ethernet frame message being encapsulated as TRILL frame message.Outlet routing bridge is for be descapsulated into ethernet frame message by TRILL frame message.Entrance routing bridge and outlet routing bridge can adopt the pet name (Nickname) of routing bridge to identify, i.e. RB.
Gateway device is the equipment with gateway function, and gateway device of the present invention refers to the routing bridge being deployed with gateway function, and namely this equipment is gateway device when realizing gateway function, is routing bridge realizing when forwarding TRILL frame message.
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 comprises source MAC, target MAC (Media Access Control) address, source IP address and object IP address, and source MAC is a MAC, and target MAC (Media Access Control) address is gateway MAC address, and described source IP address and described object IP address be not in the same network segment.
Step 102, the 2nd RB inquire about the second multilink transparent interconnection TRILLMAC list item.
2nd TRILLMAC list item comprises gateway MAC address, VLANID and a RB, and a described RB is the previous dive routing bridge of described 3rd RB, and described 3rd RB is the gateway device that described gateway MAC address is corresponding.
Step 103, the 2nd RB encapsulate the first ethernet frame message and generate a TRILL frame message.
One TRILL frame message comprises the first ethernet frame message and the first outlet routing bridge, and the first outlet routing bridge is a RB.
Step 104, the 2nd RB forward a TRILL frame message.
Step 105, the first routing bridge RB receive a TRILL frame message.
One TRILL frame message comprises the first ethernet frame message and the first outlet routing bridge, first ethernet frame message comprises source MAC, target MAC (Media Access Control) address, source IP address and object IP address, source MAC is a MAC, target MAC (Media Access Control) address is gateway MAC address, and described source IP address and described object IP address be not in the same network segment.
Step 106, when determining that the first outlet routing bridge is identical with a RB, RB decapsulation an one TRILL frame message, obtains the first ethernet frame message.
A described RB is the previous dive routing bridge of the 3rd RB, and described 3rd RB is the gateway device that described gateway MAC address is corresponding.
Step 107, a RB forward the first ethernet frame message to the 3rd RB according to target MAC (Media Access Control) address and static mac address list item.
Static mac address list item comprises gateway MAC address, VLANID and first interface.
Message forwarding method based on TRILL network provided by the invention, when the target MAC (Media Access Control) address in ethernet frame message is gateway MAC address, when ethernet frame message is encapsulated as TRILL frame message by routing bridge, outlet routing bridge in TRILL frame message is set to the previous dive routing bridge of routing bridge corresponding to gateway MAC address, send TRILL frame message, make at outlet routing bridge decapsulation TRILL frame message, obtain ethernet frame message, ethernet frame message is sent to the routing bridge being deployed with gateway function by outlet routing bridge again, the routing bridge being deployed with gateway function is made to carry out three layers of forwarding to ethernet frame message again, thus when not increasing gateway device, realize after decapsulation TRILL frame message, again three layers of forwarding are carried out to ethernet frame message.
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 connected with routing bridge 2, and routing bridge 4 is connected with routing bridge 2, and routing bridge 2 is connected with routing bridge 1.Routing bridge 1 deploy gateway function, routing bridge 1 is gateway device when realizing gateway function, carries out three layers of forwarding to ethernet frame message, is routing bridge realizing when forwarding TRILL frame message.
Routing bridge 3 can also connect subscriber equipment 1, and routing bridge 3 is as the routing bridge at TRILL network edge.Routing bridge 4 can also connect subscriber equipment 2, and routing bridge 4 is as the routing bridge at TRILL network edge.Routing bridge 3 and routing bridge 4 are also entrance routing bridge or outlet routing bridge.
When subscriber equipment 1 sends ethernet frame message to subscriber equipment 2, this ethernet frame message comprises source MAC and target MAC (Media Access Control) address, and source MAC is the MAC Address of subscriber equipment 1, and target MAC (Media Access Control) address is the MAC Address of subscriber equipment 2.
Routing bridge 3 receives the ethernet frame message that subscriber equipment 1 sends, and the outlet routing bridge that the MAC Address of inquiry mac address table discovery subscriber equipment 2 is corresponding is routing bridge 4, ethernet frame message is encapsulated as TRILL frame message.Usually, TRILL frame message comprises internal layer ethernet frame, TRILL head and outer Ethernet frame head three part.Internal layer ethernet frame comprises the initial data frame that subscriber equipment sends, and is ethernet frame.TRILL head comprises the pet name (Nickname) of entrance routing bridge and the pet name of outlet routing bridge.Outer Ethernet frame head comprises source MAC and the target MAC (Media Access Control) address of routing bridge, and forward for realizing Layer 2 data in TRILL network inside, its 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 TRILL head comprises is RB3, outlet routing bridge is RB4, and the source MAC that outer Ethernet frame head comprises is the MAC Address of routing bridge 3, and target MAC (Media Access Control) address 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, inquire about TRILL according to the outlet routing bridge RB4 of TRILL head to transmit, obtain the outlet of TRILL frame message, replace the MAC Address that source MAC that outer Ethernet frame head comprises is routing bridge 2, target MAC (Media Access Control) address is the MAC Address of routing bridge 4, and TRILL frame message is sent to routing bridge 4.
After routing bridge 4 receives TRILL frame message, check and find that outlet routing bridge is self RB4, then peel TRILL head off, obtain original Ethernet frame, then check original Ethernet frame head, according to target MAC (Media Access Control) address, original Ethernet frame is transmitted to subscriber equipment 2.
Subscriber equipment 2 receives the ethernet frame message that subscriber equipment 1 sends.
Routing bridge 1 can also connect subscriber equipment 3, and routing bridge 1, as the routing bridge at TRILL network edge, is also entrance routing bridge or outlet routing bridge.
Suppose that the MAC Address of subscriber equipment 1 be MAC1, IP address is 10.1.1.251; The MAC Address of subscriber equipment 3 is MAC3, IP address is 20.1.1.253.When subscriber equipment 1 sends ethernet frame message to subscriber equipment 3, as shown in Figure 3, according to the message forwarding method based on TRILL network provided by the invention, perform following steps:
Step 201, subscriber equipment 1 send ethernet frame message to subscriber equipment 3.
Ethernet frame message comprises source MAC, target MAC (Media Access Control) address, source IP address and object IP address, source MAC is the MAC Address of subscriber equipment 1, i.e. MAC1, target MAC (Media Access Control) address is gateway MAC address, source IP address is the IP address of subscriber equipment 1, i.e. 10.1.1.251, object IP address is the IP address of subscriber equipment 3, i.e. 20.1.1.253.
Step 202, routing bridge 3 receive the ethernet frame message that subscriber equipment 1 sends.
Step 203, routing bridge 3 inquire about the 2nd TRILLMAC list item.
Routing bridge 3 is gateway MAC address according to target MAC (Media Access Control) address after receiving the ethernet frame message of subscriber equipment 1 transmission, and inquiry the 2nd TRILLMAC list item, described 2nd TRILLMAC list item comprises gateway MAC address, VLANID and routing bridge 2.Routing bridge 2 is the previous dive routing bridge of the routing bridge that gateway MAC address is corresponding.
Step 204, routing bridge 3 encapsulate ethernet frame message and generate a TRILL frame message.
Ethernet frame message is encapsulated as a TRILL frame message by routing bridge 3.
Internal layer ethernet frame in one TRILL frame message comprises the ethernet frame message that subscriber equipment 1 sends.
The entrance routing bridge that TRILL head comprises is routing bridge 3, and outlet routing bridge is routing bridge 2.
At the skin of TRILL frame header, also encapsulate one deck Ethernet frame head, Ethernet frame head comprises source MAC and target MAC (Media Access Control) address, and source MAC is the MAC Address of routing bridge 3, and target MAC (Media Access Control) address is the MAC Address of routing bridge 2.
Step 205, routing bridge 3 send a TRILL frame message to routing bridge 2.
Step 206, routing bridge 2 receive the TRILL frame message that routing bridge 3 sends.
Step 207, routing bridge 2 judge that whether outlet routing bridge is identical with routing bridge 2.
If outlet routing bridge is not identical with routing bridge 2, perform step 208.If outlet routing bridge is identical with routing bridge 2, perform step 209.
Step 208, routing bridge 2 continue forwarding the one TRILL frame message.
Step 209, routing bridge 2 decapsulation the one TRILL frame message, obtain ethernet frame message.
After routing bridge 2 receives a TRILL frame message of routing bridge 3 transmission, find that outlet routing bridge is routing bridge 2 oneself, after removing TRILL frame header, obtain ethernet frame message.
Step 210, routing bridge 2 send ethernet frame message to routing bridge 1.
The target MAC (Media Access Control) address that routing bridge 2 comprises according to internal layer ethernet frame, look into mac address table, find static mac address list item, described static mac address list item comprises gateway MAC address, VLANID and interface 1, routing bridge 2 directly sends ethernet frame message by interface 1 to routing bridge 1, and learns the MAC Address of subscriber equipment 1.Routing bridge 1 is for being deployed with the gateway device of gateway function, and 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 sends.
After routing bridge 1 receives the ethernet frame message of routing bridge 2 transmission from local interface 2, according to the MAC Address of the source MAC study subscriber equipment 1 that ethernet frame message comprises, generate dynamic MAC address list item, comprise MAC1, VLANID and interface 2.
Step 212, routing bridge 1 send ethernet frame message to subscriber equipment 3.
According to object IP address in the IP head of ethernet frame message, determine to walk three layers of routing forwarding, first learn the ARP of subscriber equipment 1, be transmitted to subscriber equipment 3 according to three layers of routing table look-up result.
Before step 201, as shown in Figure 4, described method is further comprising the steps of:
Step 213, subscriber equipment 1 broadcast ARP request message.
Because subscriber equipment 1 and subscriber equipment 3 be not in the same network segment, when subscriber equipment 1 sends ethernet frame message to subscriber equipment 3, need the forwarding through gateway device, subscriber equipment 3 just can receive the ethernet frame message that subscriber equipment 1 sends.Subscriber equipment 1 finds that this locality does not have the ARP of the IP address 10.1.1.1 of gateway device, and subscriber equipment 1 sends ARP request message, and ARP request message is ethernet frame message.
The Ethernet frame head of ARP request message comprises source MAC and target MAC (Media Access Control) address, and source MAC is the MAC Address of subscriber equipment 1, i.e. MAC1, and target MAC (Media Access Control) address is broadcast address FFFF:FFFF:FFFF.
The load of ARP request message comprises transmitting terminal source MAC, transmitting terminal source IP address, destination-mac address and target ip address, transmitting terminal source MAC is the MAC Address of subscriber equipment 1, i.e. MAC1, transmitting terminal source IP address is the IP address of subscriber equipment 1, i.e. 10.1.1.251, destination-mac address is 0, and target ip address is the gateway ip address of gateway device, i.e. 10.1.1.1.
Step 214, routing bridge 3 receive the ARP request message that subscriber 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 subscriber equipment 1 transmission, the MAC Address of study subscriber equipment 1, i.e. MAC1, then be broadcast address according to target MAC (Media Access Control) address, ARP request message is encapsulated as the 3rd TRILL frame message, broadcasts in whole TRILL network.
Internal layer ethernet frame in 3rd TRILL frame message comprises ARP request message.
The entrance routing bridge that TRILL head comprises is routing bridge 3, and outlet routing bridge is the tree root of TRILL distribution tree.
At the skin of TRILL frame header, also encapsulate one deck Ethernet frame head, Ethernet frame head comprises source MAC and target MAC (Media Access Control) address, and source MAC is the MAC Address of routing bridge 3, and target MAC (Media Access Control) address is the MAC Address of routing bridge 2.
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 sends.
Step 218, routing bridge 2 decapsulation the 3rd TRILL frame message, obtain target ip address and MAC1.
After routing bridge 2 receives the 3rd TRILL frame message of routing bridge 3 transmission, find that the Target IP of ARP request message is the gateway ip address of gateway device after removing TRILL frame header, i.e. 10.1.1.1, then no longer down hop routing bridge 1 or routing bridge 4 forward ARP request message, and arp reply message is replied in the process of routing bridge 2 local agent.Routing bridge 2 stops the forwarding of the 3rd TRILL frame message.
Step 219, routing bridge 2 generate a TRILLMAC list item according to MAC1.
Routing bridge 2 first learns the MAC Address of subscriber equipment 1, i.e. MAC1, and generation the one TRILLMAC list item, comprises MAC1, VLANID and outlet routing bridge is routing bridge 3.
It should be noted that, routing bridge 2 prestores the information needed for agency's transmission arp reply message, comprises gateway ip address, gateway MAC address and vlan information.Receive the 3rd TRILL frame message of routing bridge 3 transmission at routing bridge 2 before, routing bridge 1, namely gateway ip address, gateway MAC address and VLANID dose in the extended field of the TRILL frame message relevant to TRILL protocol by gateway device, proxy gateway equipment is advertised to by relevant TRILL frame message, i.e. routing bridge 2, after routing bridge 2 receives TRILL frame message from interface 1, local generation static mac address list item, comprise gateway MAC address, VLANID and interface 1, and the local ARP proxy opening gateway ip address.
The embodiment of the present invention does not limit the mode of TRILL protocol message expansion, such as can expand TRILLHello message, increase new message field (MFLD), and gateway ip address, gateway MAC address, VLANID encapsulation is entered.
Step 220, routing bridge 2 generate arp reply message.
The Ethernet frame head of arp reply message comprises source MAC and target MAC (Media Access Control) address, and source MAC is gateway MAC address, and target MAC (Media Access Control) address is the MAC Address of subscriber equipment 1, i.e. MAC1.
The load of arp reply message comprises transmitting terminal source MAC, transmitting terminal source IP address, destination-mac address and target ip address, transmitting terminal source MAC is gateway MAC address, transmitting terminal source IP address is gateway ip address, i.e. 10.1.1.1, destination-mac address is the MAC Address of subscriber equipment 1, i.e. MAC1, target ip address is the IP address of subscriber 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, according to the target MAC (Media Access Control) address of arp reply message, i.e. MAC1, is inquired about the TRILLMAC list item generated in step 219, is comprised MAC1, VLANID and outlet routing bridge is routing bridge 3, arp reply message is encapsulated as the 4th TRILL frame message and sends.
Internal layer ethernet frame in 4th TRILL frame message comprises arp reply message.
The entrance routing bridge that TRILL head comprises is routing bridge 2, and outlet routing bridge is routing bridge 3.
At the skin of TRILL frame header, also encapsulate one deck Ethernet frame head, Ethernet frame head comprises 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 the MAC Address of routing bridge 3.
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 sends.
Step 224, routing bridge 3 judge that whether outlet routing bridge is identical with routing bridge 3.
If outlet routing bridge is not identical with routing bridge 3, perform step 225; If outlet routing bridge is identical with routing bridge 3, perform step 226.
Step 225, routing bridge 3 continue forwarding the 4th TRILL frame message.
Step 226, routing bridge 3 decapsulation the 4th TRILL frame Receive message arp reply message.
Routing bridge 3 receives the 4th TRILL frame message that routing bridge 2 sends, and find that outlet routing bridge is routing bridge 3 oneself, first, removing TRILL frame header, is ethernet frame message by the 4th TRILL frame packets restores, i.e. arp reply message.
Step 227, routing bridge 3 generate the 2nd TRILLMAC list item.
Routing bridge 3 learns gateway MAC address, and generate the 2nd TRILLMAC list item, comprising gateway MAC address, VLANID and outlet routing bridge is routing bridge 2.
Step 228, routing bridge 3 send arp reply message to subscriber equipment 1.
Step 229, subscriber equipment 1 receive the arp reply message that routing bridge 3 sends.
Subscriber equipment 1 receives the arp reply message of ethernet frame format, and the ARP of gateway ip address is arrived in study, the gateway MAC address that namely gateway ip address is corresponding.
When subscriber equipment 3 sends ethernet frame message to subscriber equipment 1, as shown in Figure 5, according to the message forwarding method based on TRILL network provided by the invention, perform following steps:
Step 301, subscriber equipment 3 send ethernet frame message to subscriber equipment 1.
Step 302, routing bridge 1 receive the ethernet frame message that subscriber equipment 3 sends.
Routing bridge 1 inquires the ARP of subscriber equipment 1, ethernet frame head is set, ethernet frame message comprises source MAC, target MAC (Media Access Control) address, source IP address and object IP address, source MAC is gateway MAC address, and target MAC (Media Access Control) address is the MAC Address of subscriber equipment 1, i.e. MAC1, source IP address is the IP address of subscriber equipment 3, i.e. 20.1.1.253, object IP address is the IP address of subscriber equipment 1, i.e. 10.1.1.251.Source MAC in the described target MAC (Media Access Control) address ethernet frame message that to be subscriber equipment 1 send to subscriber equipment 3.
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 about a TRILLMAC list item.
Routing bridge 2 receives ethernet frame message from interface 1, inquires a TRILLMAC list item according to target MAC (Media Access Control) address, comprises MAC1, VLANID and outlet routing bridge is routing bridge 3, 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 comprises the ethernet frame message that subscriber equipment 3 sends.
The entrance routing bridge that TRILL head comprises is routing bridge 2, and outlet routing bridge is routing bridge 3.
At the skin of TRILL frame header, also encapsulate one deck Ethernet frame head, Ethernet frame head comprises 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 the MAC Address of routing bridge 3.
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 sends.
Step 309, routing bridge 3 judge that whether outlet routing bridge is identical with routing bridge 3.
If outlet routing bridge is not identical with routing bridge 3, perform step 310.If outlet routing bridge is identical with routing bridge 3, perform step 311.
Step 310, routing bridge 3 continue forwarding the 2nd TRILL frame message.
Step 311, routing bridge 3 decapsulation the 2nd TRILL frame message, obtain ethernet frame message.
After routing bridge 3 receives the 2nd TRILL frame message of routing bridge 2 transmission, find that outlet routing bridge is routing bridge 3 oneself, after removing TRILL frame header, obtain ethernet frame message.
Step 312, routing bridge 3 forward ethernet frame message to subscriber equipment 1.
It should be noted that, before step 301, routing bridge 1 forwards object IP address when being the ethernet frame message of subscriber equipment 1, if search the ARP less than subscriber equipment 1, then temporary cache message, first sends ARP request.
Routing bridge 1 sends ARP request message, and ARP request message comprises target MAC (Media Access Control) address and source MAC, and target MAC (Media Access Control) address is broadcast address FFFF:FFFF:FFFF, and source MAC is gateway MAC address.ARP request message is ethernet frame message.
After routing bridge 2 receives ARP request message, according to target MAC (Media Access Control) address, be encapsulated as the broadcast in whole TRILL net of TRILL frame, wherein, internal layer ethernet frame in TRILL frame message comprises ARP request message, entrance routing bridge is routing bridge 2, outlet routing bridge is the tree root of multicast distribution tree, at the skin of TRILL frame header, also encapsulate one deck Ethernet frame head, Ethernet frame head comprises 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 the MAC Address of routing bridge 3.
After routing bridge 3 receives and is packaged with the TRILL frame of ARP request message, after peeling off TRILL head, according to the source MAC learned addresses of internal layer ethernet frame, generate the 2nd TRILLMAC list item, comprise gateway MAC address, VLANID, outlet routing bridge be routing bridge 2.The broadcast of internal layer ethernet frame is transmitted to subscriber equipment 1 by routing bridge 3.
Subscriber equipment 1 receives ARP request, and send arp reply message, wherein, target MAC (Media Access Control) address is gateway MAC address, and source MAC is the MAC Address of subscriber equipment 1, i.e. MAC1.
After routing bridge 3 receives arp reply, the 2nd TRILLMAC list item is found according to target MAC (Media Access Control) address, comprise gateway MAC address, VLANID, outlet routing bridge is routing bridge 2, be encapsulated as TRILL frame, wherein, internal layer ethernet frame in TRILL frame message comprises arp reply message, entrance routing bridge is routing bridge 3, outlet routing bridge is routing bridge 2, at the skin of TRILL frame header, also encapsulate one deck Ethernet frame head, Ethernet frame head comprises source MAC and target MAC (Media Access Control) address, source MAC is the MAC Address of routing bridge 3, target MAC (Media Access Control) address is the MAC Address of routing bridge 2.
Routing bridge 2 receives TRILL frame, after peeling off TRILL head, finds corresponding gateway MAC address entries, internal layer Ether frame is directly transmitted to routing bridge 1 according to target MAC (Media Access Control) address.
Routing bridge 1 receives arp reply message, and study is to the ARP of subscriber equipment 1.
The embodiment of the present invention provides a kind of first routing bridge 40, as shown in Figure 6, comprising:
Receiving element 401, for receiving the first multilink transparent interconnection TRILL frame message, a described TRILL frame message comprises the first ethernet frame message and the first outlet routing bridge, described first ethernet frame message comprises source media and gets involved control MAC Address, target MAC (Media Access Control) address, Internet protocol IP address, source and object IP address, described source MAC is a MAC, described target MAC (Media Access Control) address is gateway MAC address, and described source IP address and described object IP address be not in the same network segment;
Processing unit 402, for when determining that described first outlet routing bridge is identical with a described RB, a TRILL frame message described in decapsulation, obtain described first ethernet frame message, a described RB is the previous dive routing bridge of the 3rd RB, and described 3rd RB is the gateway device that described gateway MAC address is corresponding;
Transmitting element 403, for forwarding described first ethernet frame message to the 3rd RB according to described target MAC (Media Access Control) address and static mac address list item, described static mac address list item comprises described gateway MAC address, VLAN ID VLANID and first interface.
The message forwarding method based on TRILL network that the embodiment of the present invention provides, after the TRILL frame message that the first routing bridge gets, find that the outlet routing bridge in TRILL frame message is set to described first routing bridge, described first routing bridge is the previous dive routing bridge of the routing bridge that gateway MAC address is corresponding, described first routing bridge decapsulation TRILL frame message, obtain ethernet frame message, again ethernet frame message is sent to the routing bridge being deployed with gateway function, the routing bridge being deployed with gateway function is made to carry out three layers of forwarding to ethernet frame message again, thus when not increasing gateway device, realize after decapsulation TRILL frame message, again three layers of forwarding are carried out to ethernet frame message.
Described receiving element 401, also for receiving the second ethernet frame message from described first interface, described second ethernet frame message comprises source MAC, target MAC (Media Access Control) address, source IP address and object IP address, described source MAC is gateway MAC address, described target MAC (Media Access Control) address is a MAC, and described source IP address and described object IP address be not in the same network segment;
Described processing unit 402, also for inquiring about a TRILLMAC list item, a described TRILLMAC list item comprises MAC, VLANID and the 2nd RB;
Described processing unit 402, also generates the 2nd TRILL frame message for encapsulating described second ethernet frame message, and described 2nd TRILL frame message comprises described second ethernet frame message and the second outlet routing bridge, and described second outlet routing bridge is described 2nd RB;
Described transmitting element 403, also for forwarding described 2nd TRILL frame message.
Described receiving element 401, also for receiving the 3rd TRILL frame message, described 3rd TRILL frame message comprises ARP request message, the tree root of the first entrance routing bridge and TRILL distribution tree, described first entrance routing bridge is described 2nd RB, described ARP request message comprises source MAC, target MAC (Media Access Control) address, transmitting terminal source MAC, transmitting terminal source IP address, destination-mac address and target ip address, described source MAC is a MAC, described target MAC (Media Access Control) address is broadcast address, described transmitting terminal source MAC is a MAC, described transmitting terminal source IP address is an IP address, described destination-mac address is 0, described target ip address is gateway ip address,
Described processing unit 402, also for the 3rd TRILL frame message described in decapsulation, obtains described target ip address and a described MAC;
Described processing unit 402, also for generating a described TRILLMAC list item according to a described MAC, a described TRILLMAC list item comprises MAC, VLANID and the 2nd RB;
Described processing unit 402, also for generating arp reply message, described arp reply message comprises source MAC, target MAC (Media Access Control) address, transmitting terminal source MAC, transmitting terminal source IP address, destination-mac address and target ip address, described source MAC is gateway MAC address, described target MAC (Media Access Control) address is a MAC, described transmitting terminal source MAC is gateway MAC address, described transmitting terminal source IP address is gateway ip address, described destination-mac address is a MAC, and described target ip address is an IP;
Described processing unit 402, also for according to a described TRILLMAC list item, encapsulate described arp reply message and generate the 4th TRILL frame message, described 4th TRILL frame message comprises described arp reply message, the second entrance routing bridge and the 3rd outlet routing bridge, second entrance routing bridge is a described RB, and described 3rd outlet routing bridge is described 2nd RB;
Described transmitting element 403, also for forwarding described 4th TRILL frame message.
Described receiving element 401, also for receiving the TRILL message that the 3rd RB sends from described first interface, described TRILL message comprises gateway MAC address, gateway ip address and VLANID;
Described processing unit 402, also for generating local static mac address list item, described static mac address list item comprises gateway MAC address, VLANID and described first interface.
The embodiment of the present invention provides a kind of secondary route bridge 50, as shown in Figure 7, comprising:
Receiving element 501, for receiving the first ethernet frame message, described first ethernet frame message comprises source MAC, target MAC (Media Access Control) address, source IP address and object IP address, described source MAC is a MAC, described target MAC (Media Access Control) address is gateway MAC address, and described source IP address and described object IP address be not in the same network segment;
Processing unit 502, for inquiring about the second multilink transparent interconnection TRILLMAC list item, described 2nd TRILLMAC list item comprises described gateway MAC address, VLAN ID VLANID and a RB, a described RB is the previous dive routing bridge of the 3rd RB, and described 3rd RB is the gateway device that described gateway MAC address is corresponding;
Described processing unit 502, also generates a TRILL frame message for encapsulating described first ethernet frame message, and a described TRILL frame message comprises described first ethernet frame message and the first outlet routing bridge, and described first outlet routing bridge is a described RB;
Transmitting element 503, for forwarding a described TRILL frame message.
The message forwarding method based on TRILL network that the embodiment of the present invention provides, when the target MAC (Media Access Control) address in ethernet frame message is gateway MAC address, when ethernet frame message is encapsulated as TRILL frame message by routing bridge, outlet routing bridge in TRILL frame message is set to the previous dive routing bridge of routing bridge corresponding to gateway MAC address, send TRILL frame message, make at outlet routing bridge decapsulation TRILL frame message, obtain ethernet frame message, ethernet frame message is sent to the routing bridge being deployed with gateway function by outlet routing bridge again, the routing bridge being deployed with gateway function is made to carry out three layers of forwarding to ethernet frame message again, thus when not increasing gateway device, realize after decapsulation TRILL frame message, again three layers of forwarding are carried out to ethernet frame message.
Described receiving element 501, also for receiving the 2nd TRILL frame message, described 2nd TRILL frame message comprises the second ethernet frame message and the second outlet routing bridge, described second ethernet frame message comprises source MAC, target MAC (Media Access Control) address, source IP address and object IP address, described source MAC is gateway MAC address, described target MAC (Media Access Control) address is a MAC, described object IP address is an IP, described source IP address and described object IP address be not in the same network segment, and described second outlet routing bridge is described 2nd RB;
Described processing unit 502, also for when determining that described second outlet routing bridge is identical with described 2nd RB, the 2nd TRILL frame message described in decapsulation, obtains described second ethernet frame message;
Described transmitting element 503, also forwards described second ethernet frame message for described 2nd RB according to described target MAC (Media Access Control) address.
Described receiving element 501, also for receiving ARP request message, described ARP request message comprises source MAC, target MAC (Media Access Control) address, transmitting terminal source MAC, transmitting terminal source IP address, destination-mac address and target ip address, described source MAC is a MAC, described target MAC (Media Access Control) address is broadcast address, and described transmitting terminal source MAC is a MAC, and described transmitting terminal source IP is an IP, described destination-mac address is 0, and described target ip address is gateway ip address;
Described processing unit 502, also generate the 3rd TRILL frame message for encapsulating described ARP request message, described 3rd TRILL frame message comprises the tree root of described ARP request message, the first entrance routing bridge and TRILL distribution tree, and described first entrance routing bridge is described 2nd RB;
Described transmitting element 503, also for forwarding described 3rd TRILL frame message;
Described receiving element 501, also for receiving the 4th TRILL frame message, described 4th TRILL frame message comprises arp reply message, second entrance routing bridge and the 3rd outlet routing bridge, second entrance routing bridge is a RB, described 3rd outlet routing bridge is described 2nd RB, described arp reply message comprises source MAC, target MAC (Media Access Control) address, transmitting terminal source MAC, transmitting terminal source IP address, destination-mac address and target ip address, described source MAC is gateway MAC address, described target MAC (Media Access Control) address is a MAC, described transmitting terminal source MAC is gateway MAC address, described transmitting terminal source IP address is gateway ip address, described destination-mac address is a MAC, described target ip address is an IP,
Described processing unit 502, also for when determining that described 3rd outlet routing bridge is identical with described 2nd RB, described in decapsulation, the 4th TRILL frame message, obtains described arp reply message;
Described processing unit 502, also for generating described 2nd TRILLMAC list item, described 2nd TRILLMAC list item comprises described gateway MAC address, VLANID and a described RB, a described RB is the previous dive routing bridge of the 3rd RB, and described 3rd RB is the gateway device that described gateway MAC address is corresponding;
Described transmitting element 503, also sends described arp reply message for the equipment corresponding to a described IP.
Those skilled in the art can be well understood to, and for convenience and simplicity of description, the device of foregoing description and the specific works process of unit, with reference to the corresponding process in preceding method embodiment, can not repeat them here.
One of ordinary skill in the art will appreciate that: all or part of step realizing said method embodiment can have been come by the hardware that program command is relevant, aforesaid program can be stored in a computer read/write memory medium, this program, when performing, performs the step comprising said method embodiment; And aforesaid storage medium comprises: ROM, RAM, magnetic disc or CD etc. various can be program code stored medium.
The above; be only the specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, is anyly familiar with those skilled in the art in the technical scope that the present invention discloses; change can be expected easily or replace, all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection range of described claim.

Claims (12)

1. based on a message forwarding method for TRILL network, it is characterized in that, comprising:
First routing bridge RB receives the first multilink transparent interconnection TRILL frame message, a described TRILL frame message comprises the first ethernet frame message and the first outlet routing bridge, described first ethernet frame message comprises source media and gets involved control MAC Address, target MAC (Media Access Control) address, Internet protocol IP address, source and object IP address, described source MAC is a MAC, described target MAC (Media Access Control) address is gateway MAC address, and described source IP address and described object IP address be not in the same network segment;
When determining that described first outlet routing bridge is identical with a described RB, a TRILL frame message described in a described RB decapsulation, obtain described first ethernet frame message, a described RB is the previous dive routing bridge of the 3rd RB, and described 3rd RB is the gateway device that described gateway MAC address is corresponding;
A described RB forwards described first ethernet frame message to described 3rd RB according to described target MAC (Media Access Control) address and static mac address list item, and described static mac address list item comprises described gateway MAC address, VLAN ID VLANID and first interface.
2. method according to claim 1, is characterized in that, after a described RB forwards described first ethernet frame message according to described target MAC (Media Access Control) address and static mac address list item, described method also comprises:
A described RB receives the second ethernet frame message from described first interface, described second ethernet frame message comprises source MAC, target MAC (Media Access Control) address, source IP address and object IP address, described source MAC is gateway MAC address, described target MAC (Media Access Control) address is a MAC, and described source IP address and described object IP address be not in the same network segment;
A described RB inquires about a TRILLMAC list item, and a described TRILLMAC list item comprises MAC, VLANID and the 2nd RB;
The described second ethernet frame message of a described RB encapsulation generates the 2nd TRILL frame message, and described 2nd TRILL frame message comprises described second ethernet frame message and the second outlet routing bridge, and described second outlet routing bridge is described 2nd RB;
A described RB forwards described 2nd TRILL frame message.
3. method according to claim 2, is characterized in that, before described first routing bridge RB receives a TRILL frame message, described method also comprises:
A described RB receives the 3rd TRILL frame message, described 3rd TRILL frame message comprises ARP request message, the tree root of the first entrance routing bridge and TRILL distribution tree, described first entrance routing bridge is described 2nd RB, described ARP request message comprises source MAC, target MAC (Media Access Control) address, transmitting terminal source MAC, transmitting terminal source IP address, destination-mac address and target ip address, described source MAC is a MAC, described target MAC (Media Access Control) address is broadcast address, described transmitting terminal source MAC is a MAC, described transmitting terminal source IP address is an IP address, described destination-mac address is 0, described target ip address is gateway ip address,
3rd TRILL frame message described in a described RB decapsulation, obtains described target ip address and a described MAC;
A described RB generates a described TRILLMAC list item according to a described MAC, and a described TRILLMAC list item comprises MAC, VLANID and the 2nd RB;
A described RB generates arp reply message, described arp reply message comprises source MAC, target MAC (Media Access Control) address, transmitting terminal source MAC, transmitting terminal source IP address, destination-mac address and target ip address, described source MAC is gateway MAC address, described target MAC (Media Access Control) address is a MAC, described transmitting terminal source MAC is gateway MAC address, described transmitting terminal source IP address is gateway ip address, and described destination-mac address is a MAC, and described target ip address is an IP;
A described RB is according to a described TRILLMAC list item, encapsulate described arp reply message and generate the 4th TRILL frame message, described 4th TRILL frame message comprises described arp reply message, the second entrance routing bridge and the 3rd outlet routing bridge, second entrance routing bridge is a described RB, and described 3rd outlet routing bridge is described 2nd RB;
A described RB forwards described 4th TRILL frame message.
4. the method according to any one of claim 1-3 claim, is characterized in that, before a described RB receives the 3rd TRILL frame message, described method also comprises:
A described RB receives the TRILL message of the 3rd RB transmission from described first interface, and described TRILL message comprises gateway MAC address, gateway ip address and VLANID;
A described RB generates local static mac address list item, and described static mac address list item comprises gateway MAC address, VLANID and described first interface.
5. based on a message forwarding method for TRILL network, it is characterized in that, comprising:
Secondary route bridge RB receives the first ethernet frame message, described first ethernet frame message comprises source media and gets involved control MAC Address, target MAC (Media Access Control) address, Internet protocol IP address, source and object IP address, described source MAC is a MAC, described target MAC (Media Access Control) address is gateway MAC address, and described source IP address and described object IP address be not in the same network segment;
Described 2nd RB inquires about the second multilink transparent interconnection TRILLMAC list item, described 2nd TRILLMAC list item comprises described gateway MAC address, VLAN ID VLANID and a RB, a described RB is the previous dive routing bridge of described 3rd RB, and described 3rd RB is the gateway device that described gateway MAC address is corresponding;
The described first ethernet frame message of described 2nd RB encapsulation generates a TRILL frame message, and a described TRILL frame message comprises described first ethernet frame message and the first outlet routing bridge, and described first outlet routing bridge is a described RB;
Described 2nd RB forwards a described TRILL frame message.
6. method according to claim 5, is characterized in that, after described 2nd RB forwards a described TRILL frame message, described method also comprises:
Described 2nd RB receives the 2nd TRILL frame message, described 2nd TRILL frame message comprises the second ethernet frame message and the second outlet routing bridge, described second ethernet frame message comprises source MAC, target MAC (Media Access Control) address, source IP address and object IP address, described source MAC is gateway MAC address, described target MAC (Media Access Control) address is a MAC, and described source IP address and described object IP address be not in the same network segment;
When determining that described second outlet routing bridge is identical with described 2nd RB, the 2nd TRILL frame message described in described 2nd RB decapsulation, obtains described second ethernet frame message;
Described 2nd RB forwards described second ethernet frame message according to described target MAC (Media Access Control) address.
7. method according to claim 6, is characterized in that, before described secondary route bridge RB receives the first ethernet frame message, described method also comprises:
Described 2nd RB receiver address analysis protocol ARP request message, described ARP request message comprises source MAC, target MAC (Media Access Control) address, transmitting terminal source MAC, transmitting terminal source IP address, destination-mac address and target ip address, described source MAC is a MAC, described target MAC (Media Access Control) address is broadcast address, described transmitting terminal source MAC is a MAC, described transmitting terminal source IP is an IP, and described destination-mac address is 0, and described target ip address is gateway ip address;
Described 2nd RB encapsulates described ARP request message and generates the 3rd TRILL frame message, and described 3rd TRILL frame message comprises the tree root of described ARP request message, the first entrance routing bridge and TRILL distribution tree, and described first entrance routing bridge is described 2nd RB;
Described 2nd RB forwards described 3rd TRILL frame message;
Described 2nd RB receives the 4th TRILL frame message, described 4th TRILL frame message comprises arp reply message, second entrance routing bridge and the 3rd outlet routing bridge, second entrance routing bridge is a RB, described arp reply message comprises source MAC, target MAC (Media Access Control) address, transmitting terminal source MAC, transmitting terminal source IP address, destination-mac address and target ip address, described source MAC is gateway MAC address, described target MAC (Media Access Control) address is a MAC, described transmitting terminal source MAC is gateway MAC, described transmitting terminal source IP address is gateway ip address, described destination-mac address is a MAC, described target ip address is an IP,
When determining that described 3rd outlet routing bridge is identical with described 2nd RB, described in described 2nd RB decapsulation, the 4th TRILL frame message, obtains described arp reply message;
Described 2nd RB generates described 2nd TRILLMAC list item, and described 2nd TRILLMAC list item comprises described gateway MAC address, VLANID and a described RB;
Described 2nd RB sends described arp reply message to the equipment that a described IP is corresponding.
8. first routing bridge, is characterized in that, comprising:
Receiving element, for receiving the first multilink transparent interconnection TRILL frame message, a described TRILL frame message comprises the first ethernet frame message and the first outlet routing bridge, described first ethernet frame message comprises source media and gets involved control MAC Address, target MAC (Media Access Control) address, Internet protocol IP address, source and object IP address, described source MAC is a MAC, described target MAC (Media Access Control) address is gateway MAC address, and described source IP address and described object IP address be not in the same network segment;
Processing unit, for when determining that described first outlet routing bridge is identical with a described RB, a TRILL frame message described in decapsulation, obtain described first ethernet frame message, a described RB is the previous dive routing bridge of the 3rd RB, and described 3rd RB is the gateway device that described gateway MAC address is corresponding;
Transmitting element, for forwarding described first ethernet frame message to described 3rd RB according to described target MAC (Media Access Control) address and static mac address list item, described static mac address list item comprises described gateway MAC address, VLAN ID VLANID and first interface.
9. the first routing bridge according to claim 8, is characterized in that,
Described receiving element, also for receiving the 3rd TRILL frame message, described 3rd TRILL frame message comprises ARP request message, the tree root of the first entrance routing bridge and TRILL distribution tree, described first entrance routing bridge is described 2nd RB, described ARP request message comprises source MAC, target MAC (Media Access Control) address, transmitting terminal source MAC ground, transmitting terminal source IP address, destination-mac address and target ip address, described source MAC is a MAC, described target MAC (Media Access Control) address is broadcast address, described transmitting terminal source MAC is a MAC, described transmitting terminal source IP address is an IP address, described destination-mac address is 0, described target ip address is gateway ip address,
Described processing unit, also for the 3rd TRILL frame message described in decapsulation, obtains described target ip address and a described MAC;
Described processing unit, also for generating a described TRILLMAC list item according to a described MAC, a described TRILLMAC list item comprises MAC, VLANID and the 2nd RB;
Described processing unit, also for generating arp reply message, described arp reply message comprises source MAC, target MAC (Media Access Control) address, transmitting terminal source MAC, transmitting terminal source IP address, destination-mac address and target ip address, described source MAC is gateway MAC address, described target MAC (Media Access Control) address is a MAC, described transmitting terminal source MAC is gateway MAC address, described transmitting terminal source IP address is gateway ip address, described destination-mac address is a MAC, and described target ip address is an IP;
Described processing unit, also for according to a described TRILLMAC list item, encapsulate described arp reply message and generate the 4th TRILL frame message, described 4th TRILL frame message comprises described arp reply message, the second entrance routing bridge and the 3rd outlet routing bridge, second entrance routing bridge is a described RB, and described 3rd outlet routing bridge is described 2nd RB;
Described transmitting element, also for forwarding described 4th TRILL frame message.
10. the first routing bridge according to Claim 8 described in-9 any one claims, is characterized in that,
Described receiving element, also for receiving the TRILL message that the 3rd RB sends from described first interface, described TRILL message comprises gateway MAC address, gateway ip address and VLANID;
Described processing unit, also for generating local static mac address list item, described static mac address list item comprises gateway MAC address, VLANID and described first interface.
11. 1 kinds of secondary route bridges, is characterized in that, comprising:
Receiving element, for receiving the first ethernet frame message, described first ethernet frame message comprises source media and gets involved control MAC Address, target MAC (Media Access Control) address, Internet protocol IP address, source and object IP address, described source MAC is a MAC, described target MAC (Media Access Control) address is gateway MAC address, and described source IP address and described object IP address be not in the same network segment;
Processing unit, for inquiring about the second multilink transparent interconnection TRILLMAC list item, described 2nd TRILLMAC list item comprises described gateway MAC address, VLAN ID VLANID and a RB, a described RB is the previous dive routing bridge of described 3rd RB, and described 3rd RB is the gateway device that described gateway MAC address is corresponding;
Described processing unit, also generates a TRILL frame message for encapsulating described first ethernet frame message, and a described TRILL frame message comprises described first ethernet frame message and the first outlet routing bridge, and described first outlet routing bridge is a described RB;
Transmitting element, for forwarding a described TRILL frame message.
12. secondary route bridges according to claim 11, is characterized in that,
Described receiving element, also for receiving ARP request message, described ARP request message comprises source MAC, target MAC (Media Access Control) address, transmitting terminal source MAC, transmitting terminal source IP address, destination-mac address and target ip address, described source MAC is a MAC, described target MAC (Media Access Control) address is broadcast address, and described transmitting terminal source MAC is a MAC, and described transmitting terminal source IP address is an IP, described destination-mac address is 0, and described target ip address is gateway ip address;
Described processing unit, also generate the 3rd TRILL frame message for encapsulating described ARP request message, described 3rd TRILL frame message comprises the tree root of described ARP request message, the first entrance routing bridge and TRILL distribution tree, and described first entrance routing bridge is described 2nd RB;
Described transmitting element, also for forwarding described 3rd TRILL frame message;
Described receiving element, also for receiving the 4th TRILL frame message, described 4th TRILL frame message comprises arp reply message, second entrance routing bridge and the 3rd outlet routing bridge, described second entrance routing bridge is a RB, described arp reply message comprises source MAC, target MAC (Media Access Control) address, transmitting terminal source MAC, transmitting terminal source IP address, destination-mac address and target ip address, described source MAC is gateway MAC address, described target MAC (Media Access Control) address is a MAC, described transmitting terminal source MAC is gateway MAC address, described transmitting terminal source IP address is gateway ip address, described destination-mac address is a MAC, described target ip address is an IP,
Described processing unit, also for when determining that described 3rd outlet routing bridge is identical with described 2nd RB, described in decapsulation, the 4th TRILL frame message, obtains described arp reply message;
Described processing unit, also for generating described 2nd TRILLMAC list item, described 2nd TRILLMAC list item comprises described gateway MAC address, VLANID and a described RB, a described RB is the previous dive routing bridge of the 3rd RB, and described 3rd RB is the gateway device that described gateway MAC address is corresponding;
Described transmitting element, also sends described arp reply message for the equipment corresponding to a described 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 true CN105577542A (en) 2016-05-11
CN105577542B 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 (5)

* 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
CN103248569A (en) * 2012-02-08 2013-08-14 杭州华三通信技术有限公司 Method and device for achieving TRILL network equivalent path
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

Patent Citations (6)

* 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
CN103248569A (en) * 2012-02-08 2013-08-14 杭州华三通信技术有限公司 Method and device for achieving TRILL network equivalent path
US20150023352A1 (en) * 2012-02-08 2015-01-22 Hangzhou H3C Technologies Co., Ltd. Implement equal cost multiple path of trill 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
CN105577542B (en) 2019-05-14

Similar Documents

Publication Publication Date Title
CN102273177B (en) Neighbour discovery protocol mediation
EP2600573B1 (en) Method for transmitting addresses correspondence relationship in second-layer protocol using link status routing
CN102971992B (en) Virtual special local area network equipment, networking component and data frame forwarding method
CN102413061A (en) Message transmission method and equipment
CN102316028B (en) Method and apparatus for sending internet protocol packet
US7760666B2 (en) Method of generating and managing connection identifiers for supporting multicast for each group in IPv6-based wireless network and network interface using the method
CN102413060B (en) User private line communication method and equipment used in VPLS (Virtual Private LAN (Local Area Network) Service) network
CN106559292A (en) A kind of broad band access method and device
JP6722816B2 (en) Packet transfer
CN101511117B (en) Two-layer cross-network segment communicating method, system and equipment
CN104935516A (en) Communication system based on software defined network and communication method
CN103534993A (en) Label switched routing to connect low power network domains
KR101694223B1 (en) Method, routing bridge, and system for sending packet
CN102957589A (en) Method, network node and system for service data transmission
CN105490957A (en) Load sharing method and device
CN103731349A (en) Method for conducting Ethernet virtualized message transmission between interconnection neighbors and edge device
CN105187311A (en) Message forwarding method and message forwarding device
CN102710485A (en) Transparent proxy method and proxy server
CN103026692A (en) PV6 address generation to trigger a virtual leased line service
CN112737954B (en) Message processing method, device, system, equipment and storage medium
CN105591927B (en) A kind of message forwarding method and routing bridge based on TRILL network
CN103152265B (en) Message forwarding method and equipment in SPB (Shortest Path Bridge) network
WO2014156143A1 (en) Home gateway device and packet forwarding method
CN106487677B (en) Provider edge equipment and data forwarding method
CN102957755B (en) A kind of address resolution method, device and information transferring method

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