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
mac address
address
trill
mac
rb
Prior art date
Application number
CN201510990503.2A
Other languages
Chinese (zh)
Other versions
CN105577542B (en
Inventor
王孟
Original Assignee
迈普通信技术股份有限公司
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 迈普通信技术股份有限公司 filed Critical 迈普通信技术股份有限公司
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

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. local area networks [LAN], wide area networks [WAN]
    • H04L12/46Interconnection of networks
    • H04L12/4641Virtual LANs, VLANs, e.g. virtual private networks [VPN]
    • 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

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

一种基于TRILL网络的报文转发方法及路由桥 And a method for forwarding packets based on TRILL routing bridge network

技术领域 FIELD

[0001]本发明涉及数据通信领域,尤其涉及一种基于TRILL网络的报文转发方法及路由桥。 [0001] The present invention relates to data communications, and more particularly to a method for forwarding packets based on routing bridge in the TRILL network.

背景技术 Background technique

[0002]多链路透明互连(英文全称:Transparent Interconnect1n of Lots of Links,英文简称:TRILL)协议是互联网工程任务组(英文:Internet Engineering Task Force,缩写:IETF)推荐的一种在二层网络上基于链路状态计算的路由协议,用于建立一个灵活的、可扩展、高性能的二层网络,即TRILL网络。 [0002] Multi-Link Transparent Interconnection (English name: Transparent Interconnect1n of Lots of Links, English abbreviation: TRILL) protocol is the Internet Engineering Task Force (English: Internet Engineering Task Force, abbreviation: IETF) recommended in a two-story based on the network link state routing protocol computing for establishing a flexible, scalable, high-performance Layer 2 network, i.e. TRILL network. 在TRILL网络内部,运行TRILL协议的交换机设备可简称为路由桥(英文全称:Route Bridge,英文简称:RB),路由桥之间互相连接并建立邻居关系。 Within the TRILL network, switch devices running the TRILL protocol can be referred to as routing bridge (English name: Route Bridge, English abbreviation: RB), connected to each other and establish a neighbor relationship between routing bridge. TRILL网络边缘的路由桥与用户设备连接,来接收用户设备发送的以太网帧报文,再将以太网帧报文封装为TRILL帧报文,在TRILL网络中转发,当路由桥需要将TRILL帧报文转发给用户设备时,先解封装TRILL帧报文,得到以太网帧报文,将以太网帧报文转发给用户设备。 User equipment connected to a routing bridge edge TRILL network, user equipment receives an Ethernet frame packet and then encapsulated into an Ethernet frame packet TRILL frame message, forwarding the TRILL network, when necessary TRILL routing bridge frame packet forwarding to the user equipment, decapsulates TRILL first frame message, to obtain an Ethernet frame packet, forwarding the Ethernet frame packet to the user equipment. 从而实现各个用户设备通过TRILL网络直接以二层链路互联进行报文转发交互。 Enabling each user equipment to interconnect layer 2 link packet forwarding through direct interaction TRILL network.

[0003]当用户设备需要访问其他网络的用户设备时,由于该用户设备的网际协议(英文全称:Internet Protocol,英文简称:IP)地址与所述其他网络的用户设备的IP地址不在同一个子网中,需要在TRILL网络之外单独部署一台网关设备。 [0003] When the user equipment needs to access other networks the user equipment, since the internet protocol of the user equipment (English name: Internet Protocol, English abbreviation: IP) IP addresses of the other network address of the user equipment is not in the same subnet , the need to deploy a gateway device separately from the TRILL network. 为节约成本,可以将网关设备的功能部署在TRILL网络中的路由桥上,网关设备接收到TRILL帧报文后,解封装TRILL帧报文,得到以太网帧报文,网关设备再转发以太网帧报文,实现跨网段三层路由转发。 To save costs, the gateway device may be deployed in routing bridge in the TRILL network, the gateway device receives the TRILL frame packet, decapsulates TRILL frame packet, to obtain an Ethernet frame packet, then the gateway device forwards the Ethernet frame packets, cross-network routing Layer forwarding. 但是,由于路由桥的交换芯片的功能限制,路由桥无法实现在解封装TRILL帧报文之后,再对以太网帧报文进行三层转发。 However, due to the exchange of routing bridge chip functional limitations, routing bridge can not be achieved after de-encapsulated TRILL frame message, and then the Ethernet frame packet Layer 3 forwarding.

发明内容 SUMMARY

[0004]本发明的实施例提供一种基于TRILL网络的报文转发方法及路由桥,能够在不增加网关设备的情况下,实现在解封装TRILL帧报文之后,再对以太网帧报文进行三层转发。 [0004] Embodiments of the present invention there is provided a method of forwarding packets based on routing bridge and the TRILL network, it is possible without increasing the gateway device, implemented after decapsulation TRILL frame message, and then the Ethernet frame packets Layer 3 packet forwarding.

[0005]为达到上述目的,本发明的实施例采用如下技术方案: [0005] To achieve the above object, embodiments of the present invention adopts the following technical solutions:

[0006]第一方面,提供一种基于TRILL网络的报文转发方法,包括: [0006] In a first aspect, there is provided a packet forwarding method based on TRILL network, comprising:

[0007] 第一路由桥RB接收第一多链路透明互连TRILL帧报文,该第一TRILL帧报文包括第一以太网帧报文和第一出口路由桥,所述第一以太网帧报文包括源MAC地址、目的MAC地址、源IP地址和目的IP地址,所述源MAC地址为第一MAC,所述目的MAC地址为网关MAC地址,所述源IP地址和所述目的IP地址不在同一网段内,所述第一出口路由桥为所述第一RB,所述第一RB为所述第三RB的前一跳路由桥; [0007] receiving a first first routing bridge RB Transparent Interconnection of the multi-link TRILL frame message, the first message includes a first TRILL frame is an Ethernet frame packet routing bridge and the first outlet, the first Ethernet frame packet includes a source MAC address, destination MAC address, source IP address and destination IP address, source MAC address is the first MAC, the destination MAC address is the MAC address of the gateway, the source IP address and the destination IP address is not in the same network segment, the first outlet of the first routing bridge RB, RB is the first third of the previous hop routing bridge RB;

[0008]当确定所述第一出口路由桥与所述第一RB相同时,所述第一RB解封装所述第一TRILL帧报文,获取所述第一以太网帧报文; [0008] When determining that the first outlet of the first routing bridge RB are the same, the first RB TRILL frame decapsulating the first packet, obtaining the first Ethernet frame packet;

[0009]所述第一RB根据所述目的MAC地址和静态MAC地址表项转发所述第一以太网帧报文到第三RB,所述第三RB为所述网关MAC地址对应的网关设备,所述静态MAC地址表项包括所述网关MAC地址、虚拟局域网标识VLAN ID和第一接口。 [0009] According to the first RB and the destination MAC address of the static MAC address entry to forward the first packet to a third Ethernet frame RB, the RB is said third gateway MAC address of the gateway device the static MAC address entry includes the gateway MAC address, a VLAN ID and a virtual first interface.

[0010]上述第一方面提供的基于TRILL网络的报文转发方法,在第一路由桥获取到的TRILL帧报文后,发现TRILL帧报文中的出口路由桥设置为所述第一路由桥,所述第一路由桥为网关MAC地址对应的路由桥的前一跳路由桥,所述第一路由桥解封装TRILL帧报文,得到以太网帧报文,再将以太网帧报文发送到部署有网关功能的路由桥,使得部署有网关功能的路由桥再对以太网帧报文进行三层转发,从而在不增加网关设备的情况下,实现在解封装TRILL帧报文之后,再对以太网帧报文进行三层转发。 [0010] The first aspect of the method for forwarding packets based on TRILL network, after obtaining the first frame message TRILL routing bridge, found outlet TRILL routing bridge frame message is set to the first routing bridge front axle hop routing bridge the first routing bridge MAC address of the gateway, the first routing bridge TRILL frame decapsulated packet to obtain the Ethernet frame packets, Ethernet frames and then transmits the message routing bridge deployment to have a gateway function, so that the bridge has run the routing function of the gateway and then the Ethernet frame packet Layer 3 forwarding, without thereby increasing the gateway device, implemented after decapsulation TRILL frame message, and then Ethernet frame packet Layer 3 forwarding.

[0011]第二方面,提供一种基于TRILL网络的报文转发方法,包括: [0011] In a second aspect, there is provided a packet forwarding method based on TRILL network, comprising:

[0012]第二路由桥RB接收第一以太网帧报文,所述第一以太网帧报文包括源MAC地址、目的MAC地址、源IP地址和目的IP地址,所述源MAC地址为第一MAC,所述目的MAC地址为网关MAC地址,所述源IP地址和所述目的IP地址不在同一网段内; [0012] The second routing bridge RB first receives an Ethernet frame packet, the first packet Ethernet frame includes a source MAC address, destination MAC address, source IP address and destination IP address, source MAC address of the a MAC, the destination MAC address is the MAC address of the gateway, the source IP address and the destination IP address is not in the same network segment;

[0013] 所述第二RB查询第二多链路透明互连TRILL MAC表项,所述第二TRILL MAC表项包括所述网关MAC地址、虚拟局域网标识VLAN ID和第一RB,所述第一RB为所述第三RB的前一跳路由桥; [0013] The second transparent RB query links interconnecting a second plurality the TRILL MAC entries, the second entry comprises the TRILL the gateway MAC MAC address, a VLAN ID and a virtual first RB, the first RB is a third of the previous hop routing bridge RB;

[0014]所述第二 RB封装所述第一以太网帧报文生成第一TRILL帧报文,所述第一TRILL帧报文包括所述第一以太网帧报文和第一出口路由桥,所述第一出口路由桥为所述第一RB; [0014] The second package of the first RB Ethernet frame to generate a first packet TRILL frame message, the first message frame TRILL Ethernet frame including the first packet routing bridge and the first outlet a first outlet for said first routing bridge the RB;

[0015]所述第二 RB转发所述第一TRILL帧报文。 [0015] The second RB TRILL frame forwarding the first packet.

[0016]上述第二方面提供的基于TRILL网络的报文转发方法,当以太网帧报文中的目的MAC地址为网关MAC地址时,路由桥将以太网帧报文封装为TRILL帧报文时,将TRILL帧报文中的出口路由桥设置为网关MAC地址对应的路由桥的前一跳路由桥,发送TRILL帧报文,使得在出口路由桥解封装TRILL帧报文,得到以太网帧报文,出口路由桥再将以太网帧报文发送到部署有网关功能的路由桥,使得部署有网关功能的路由桥再对以太网帧报文进行三层转发,从而在不增加网关设备的情况下,实现在解封装TRILL帧报文之后,再对以太网帧报文进行三层转发。 [0016] Based on the above-described second aspect provides a method of packet forwarding TRILL network, an Ethernet frame packet when the destination MAC address is the MAC address of the gateway, routing bridge Ethernet frame encapsulated packet when the packet is a TRILL frame , the front axle hop routing bridge outlet disposed TRILL routing bridge frame packets the MAC address of the gateway corresponding TRILL frame message transmission, so that the outlet TRILL routing bridge frame decapsulated packet to obtain the Ethernet frame header case file, and then export routing bridge Ethernet frame packets to deploy routing bridge has a gateway function, making the routing bridge gateway function re-deployed Ethernet frame packet Layer 3 forwarding, so as not to increase the gateway device under achieved after decapsulation TRILL frame message, and then the Ethernet frame packet Layer 3 forwarding.

附图说明 BRIEF DESCRIPTION

[0017]为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。 [0017] In order to more clearly illustrate the technical solutions in the embodiments or the prior art embodiment of the present invention, briefly introduced hereinafter, embodiments are described below in the accompanying drawings or described in the prior art needed to be used in describing the embodiments the drawings are only some embodiments of the present invention, those of ordinary skill in the art is concerned, without creative efforts, can derive from these drawings other drawings.

[0018]图1为本发明实施例提供的一种基于TRILL网络的报文转发方法流程图; [0018] FIG. 1. An embodiment based on a flowchart of packet forwarding method embodiment of the present invention, the TRILL network;

[0019]图2为本发明实施例提供的一种TRILL网络示意图; [0019] FIG 2 one kind TRILL network diagram according to an embodiment of the present invention;

[0020]图3为本发明实施例提供的另一种基于TRILL网络的报文转发方法流程图; [0020] FIG. 3 provides another method for packet forwarding TRILL network-based embodiment of the present invention, a flow chart;

[0021 ]图4为本发明实施例提供的又一种基于TRILL网络的报文转发方法流程图; [0021] FIG 4 yet another flowchart of a method for forwarding packets based on TRILL network according to an embodiment of the present invention;

[0022]图5为本发明实施例提供的再一种基于TRILL网络的报文转发方法流程图; [0022] Fig 5 still another flowchart illustrating a method for forwarding packets based on TRILL network according to an embodiment of the present invention;

[0023]图6为本发明实施例提供的一种路由桥结构示意图; [0023] Fig 6 a schematic view of one kind of routing bridge structure according to an embodiment of the present invention;

[0024]图7为本发明实施例提供的另一种路由桥结构示意图。 [0024] Figure 7 a schematic view of another routing bridge structure according to an embodiment of the present invention.

具体实施方式 Detailed ways

[0025]下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。 [0025] below in conjunction with the present invention in the accompanying drawings, technical solutions of embodiments of the present invention are clearly and completely described, obviously, the described embodiments are merely part of embodiments of the present invention, but not all embodiments example. 基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。 Based on the embodiments of the present invention, all other embodiments of ordinary skill in the art without any creative effort shall fall within the scope of the present invention.

[0026]本发明的基本原理在于:网关设备将网关IP、网关媒体介入控制(英文全称:MediaAccess Control,英文简称:MAC)地址和虚拟局域网标识(英文全称:virtual local areanetwork identifier,英文简称:VLAN ID)添加在与TRILL协议相关的TRILL帧报文的扩展字段中,通过相关的TRILL帧报文通告给代理网关设备,即与网关设备相邻的路由桥。 [0026] The basic principle of the present invention is that: the gateway device to the gateway IP, Gateway Media Access Control (English name: MediaAccess Control, English abbreviation: the MAC) address and a virtual local area network identifier (English name: virtual local areanetwork identifier, English abbreviation: the VLAN ID) associated with the extended field is added in the TRILL protocol, the TRILL frame message by the associated TRILL frame message to notify the proxy gateway, i.e. the gateway device and the adjacent routing bridge. 入口路由桥通过地址解析协议(英文全称:Address Resolut1n Protocol,英文简称:ARP)请求消息从代理网关设备学习到网关MAC的出口路由桥为代理网关设备,而非网关设备自身,那么,入口路由桥将发往网关设备的以太网帧报文封装为TRILL帧报文时,将TRILL帧报文的出口路由桥设置为代理网关设备,代理网关设备接收到出口路由桥为自身的TRILL帧报文时,解封装TRILL帧报文得到为以太网帧报文,再转发以太网帧报文至网关设备,网关设备再对以太网帧报文进行三层转发,从而能够使得网关设备部署在路由桥上。 Inlet through ARP routing bridge (English name: ARP: Address Resolut1n Protocol, abbreviated English) bridge request message from the egress routes to the gateway proxy gateway device learns the MAC proxy gateway device, the gateway device itself and not, then routing bridge inlet will be sent to the gateway device to the Ethernet frame encapsulated packet TRILL frame message, the outlet TRILL routing bridge frame packets to a proxy gateway device, the gateway device receives the proxy outlet TRILL routing bridge itself as the packet time frame , TRILL frame decapsulated Ethernet frame packet to give the packet, and then forwards the Ethernet frame packet to the gateway device, the gateway device and then the Ethernet frame packet Layer 3 forwarding, so that the gateway device can be deployed routing bridge .

[0027]其中,入口路由桥为将以太网帧报文封装为TRILL帧报文的路由桥。 [0027] wherein the inlet bridge routing Ethernet frames encapsulating packet routing bridge TRILL frame packets. 出口路由桥为将TRILL帧报文解封装为以太网帧报文。 The TRILL routing bridge to outlet frame packets are decapsulated Ethernet frames for the packet. 入口路由桥和出口路由桥可以采用路由桥的昵称(Nickname)标识,即RB。 Inlet and outlet routing bridge routing bridge routing bridge nickname may be employed (the Nickname) identification, i.e. RB.

[0028]网关设备为具有网关功能的设备,本发明所述的网关设备指的是部署有网关功能的路由桥,即该设备在实现网关功能时为网关设备,在实现转发TRILL帧报文时为路由桥。 [0028] The gateway device having a gateway function for the device, the gateway device according to the present invention refers to a routing bridge deployed gateway function, i.e., the gateway device implementing the gateway device as a function, in achieving frame message when forwarding TRILL routing bridge.

[0029]本发明实施例提供一种基于TRILL网络的报文转发方法,如图1所示,包括: [0029] The embodiments of the present invention provides a method for forwarding packets based on TRILL network shown in Figure 1, comprising:

[0030]步骤101、第二路由桥RB接收第一以太网帧报文。 [0030] Step 101, the second routing bridge RB first receives an Ethernet frame packet.

[0031] 第一以太网帧报文包括源MAC地址、目的MAC地址、源IP地址和目的IP地址,源MAC地址为第一MAC,目的MAC地址为网关MAC地址,所述源IP地址和所述目的IP地址不在同一网段内。 [0031] The first Ethernet frame packet includes a source MAC address, destination MAC address, source IP address and destination IP address, source MAC address is a first MAC, the destination MAC address is the MAC address of the gateway, the IP address and the source said destination IP address is not the same network segment.

[0032] 步骤102、第二RB查询第二多链路透明互连TRILL MAC表项。 [0032] Step 102, a second transparent RB query links interconnecting a second plurality TRILL MAC entries.

[0033] 第二TRILL MAC表项包括网关MAC地址、VLAN ID和第一RB,所述第一RB为所述第三RB的前一跳路由桥,所述第三RB为所述网关MAC地址对应的网关设备。 [0033] The second entry comprises the TRILL MAC gateway MAC address, VLAN ID, and a first RB, the RB is said first front third hop routing bridge RB, the RB is said third gateway MAC address the corresponding gateway device.

[0034] 步骤103、第二RB封装第一以太网帧报文生成第一TRILL帧报文。 [0034] Step 103, a first Ethernet frame encapsulating a second RB generates a first message packet TRILL frame.

[0035]第一 TRILL帧报文包括第一以太网帧报文和第一出口路由桥,第一出口路由桥为第一RB。 [0035] The first message includes a first TRILL frame Ethernet frame packet routing bridge and a first outlet, a first outlet for the first routing bridge RB.

[0036] 步骤104、第二RB转发第一TRILL帧报文。 [0036] Step 104, the first second RB TRILL frame forwarding packets.

[0037]步骤105、第一路由桥RB接收第一 TRILL帧报文。 [0037] Step 105, the first routing bridge RB TRILL frame receiving the first packet.

[0038]第一TRILL帧报文包括第一以太网帧报文和第一出口路由桥,第一以太网帧报文包括源MAC地址、目的MAC地址、源IP地址和目的IP地址,源MAC地址为第一MAC,目的MAC地址为网关MAC地址,所述源IP地址和所述目的IP地址不在同一网段内。 [0038] The first message includes a first TRILL frame Ethernet frame packet routing bridge and a first outlet, a first Ethernet frame packet includes a source MAC address, destination MAC address, source IP address and destination IP address, source MAC a first MAC address, destination MAC address is the MAC address of the gateway, the source IP address and the destination IP address is not in the same network segment.

[0039] 步骤106、当确定第一出口路由桥与第一RB相同时,第一RB解封装第一TRILL帧报文,获取第一以太网帧报文。 [0039] Step 106, when it is determined the first outlet and the first routing bridge RB are the same, the first RB TRILL decapsulating the first frame message, acquiring a first Ethernet frame packet.

[0040] 所述第一RB为第三RB的前一跳路由桥,所述第三RB为所述网关MAC地址对应的网关设备。 [0040] The first front-hop routing bridge RB RB third, the third RB is a gateway device corresponding to the MAC address of the gateway. [0041 ]步骤107、第一RB根据目的MAC地址和静态MAC地址表项转发第一以太网帧报文到第三RB。 [0041] Step 107, the first RB forward the first packet to the Ethernet frame destination MAC address according to the third RB and static MAC address entries.

[0042] 静态MAC地址表项包括网关MAC地址、VLAN ID和第一接口。 [0042] static MAC address entry includes a gateway MAC address, VLAN ID, and the first interface.

[0043]本发明提供的基于TRILL网络的报文转发方法,当以太网帧报文中的目的MAC地址为网关MAC地址时,路由桥将以太网帧报文封装为TRILL帧报文时,将TRILL帧报文中的出口路由桥设置为网关MAC地址对应的路由桥的前一跳路由桥,发送TRILL帧报文,使得在出口路由桥解封装TRILL帧报文,得到以太网帧报文,出口路由桥再将以太网帧报文发送到部署有网关功能的路由桥,使得部署有网关功能的路由桥再对以太网帧报文进行三层转发,从而在不增加网关设备的情况下,实现在解封装TRILL帧报文之后,再对以太网帧报文进行三层转发。 [0043] The present invention provides a method for forwarding packets based on TRILL network, an Ethernet frame packet when the destination MAC address is the MAC address of the gateway, routing bridge Ethernet frame encapsulated packet when TRILL frame packet, TRILL frame packet routing bridge disposed outlet previous hop routing bridge routing bridge MAC address of the gateway transmits TRILL frame message, so that the frame packet decapsulates TRILL routing bridge at the outlet, to obtain an Ethernet frame packet, export routing Ethernet frames bridge and then send the message to the routing bridge has deployed a gateway function, making the routing bridge gateway function re-deployed Ethernet frame packet Layer 3 forwarding, so without increasing gateway device, achieved after de-encapsulated TRILL frame message, and then the Ethernet frame packet Layer 3 forwarding.

[0044]本发明实施例提供一种TRILL网络架构示意图,如图2所示,包括:路由桥1、路由桥 The embodiment provides a TRILL network architecture diagram shown in Figure 2 [0044] of the present invention, comprising: a routing bridge, routing bridge

2、路由桥3和路由桥4。 2, 3 and routing bridge routing bridge 4. 其中,路由桥3与路由桥2连接,路由桥4与路由桥2连接,路由桥2与路由桥I连接。 Wherein the routing bridge 32 is connected to the routing bridge, the bridge routing bridge 4 and the second connection routing, routing bridge 2 is connected to a routing bridge I. 路由桥I上部署网关功能,路由桥I在实现网关功能时为网关设备,对以太网帧报文进行三层转发,在实现转发TRILL帧报文时为路由桥。 I deployed routing bridge gateway function, routing bridge I was a gateway device, Ethernet frame packets at Layer 3 forwarding implementing gateway functions in the realization of TRILL frame forwarding packets as routing bridge.

[0045]路由桥3还可以连接用户设备I,路由桥3作为TRILL网络边缘的路由桥。 [0045] The routing bridge 3 may also be connected to user devices I, routing bridge 3 as the edge of the TRILL network routing bridge. 路由桥4还可以连接用户设备2,路由桥4作为TRILL网络边缘的路由桥。 Routing bridge 4 may also be connected user equipment 2, 4 as a network routing bridge edge TRILL routing bridge. 路由桥3和路由桥4也是入口路由桥或出口路由桥。 3 routing bridge and routing bridge 4 is an inlet or outlet routing bridge routing bridge.

[0046]当用户设备I向用户设备2发送以太网帧报文时,该以太网帧报文包括源MAC地址和目的MAC地址,源MAC地址为用户设备I的MAC地址,目的MAC地址为用户设备2的MAC地址。 [0046] When a user sends an Ethernet frame packet to the user equipment device I 2, the packet includes Ethernet frame source MAC address and destination MAC address, source MAC address is the MAC address of the user device I, the destination MAC address for the user 2 MAC address.

[0047]路由桥3接收到用户设备I发送的以太网帧报文,查询MAC地址表发现用户设备2的MAC地址对应的出口路由桥为路由桥4,将以太网帧报文封装为TRILL帧报文。 [0047] routing bridge 3 receives an Ethernet frame packet transmitted by the user device I, discovered MAC address table query routing bridge outlet user device MAC addresses corresponding to 2 to 4 routing bridge, Ethernet packets encapsulated into frames TRILL frame message. 通常,TRILL帧报文包括内层以太网帧、TRILL头部和外层以太网帧头三部分。 Typically, TRILL frame message comprises an inner layer Ethernet frame, TRILL header Ethernet header and an outer layer of three parts. 内层以太网帧包括用户设备发出的原始数据帧,是以太网帧。 Inner layer includes an original Ethernet frame a data frame sent by the user equipment, is an Ethernet frame. TRILL头部包括入口路由桥的昵称(Nickname)和出口路由桥的昵称。 TRILL nicknames head comprising an inlet routing bridge (the Nickname) and an outlet routing bridge nickname. 外层以太网帧头包括路由桥的源MAC地址和目的MAC地址,用于在TRILL网络内部实现二层数据转发,其源MAC地址和目的MAC地址会在逐跳路由桥转发过程中被重新设置。 Layer the Ethernet frame header includes a source MAC address and destination MAC address routing bridges, forwarding data for implementing Layer inside the TRILL network, the source MAC address and destination MAC address will be reset by-hop routing bridge forwarding process .

[0048]路由桥3将以太网帧报文封装为TRILL帧报文时,TRILL头部包括的入口路由桥为RB3,出口路由桥为RB4,外层以太网帧头包括的源MAC地址为路由桥3的MAC地址,目的MAC地址为路由桥2的MAC地址。 [0048] 3 routing bridge Ethernet packets encapsulated into frames TRILL frame message, the TRILL routing bridge head comprises an inlet for the RB3, the RB4 egress routing bridge, the outer header comprises a source Ethernet MAC address of the routing 3 the bridge MAC address, destination MAC address is the MAC address of a routing bridge 2. 将TRILL帧报文发送给路由桥2。 The TRILL frame packet to the routing bridge 2.

[0049] 路由桥2接收到TRILL帧报文后,根据TRILL头部的出口路由桥RB4查询TRILL转发表,得到TRILL帧报文出口,替换外层以太网帧头包括的源MAC地址为路由桥2的MAC地址,目的MAC地址为路由桥4的MAC地址,将TRILL帧报文发送给路由桥4。 After [0049] TRILL routing bridge 2 receives a frame packet according to the RB4 TRILL routing bridge outlet head TRILL forwarding queries to obtain export TRILL frame message, replacing the source MAC address of the Ethernet frame header comprises an outer layer of routing bridge MAC address, destination MAC address as the MAC address of a routing bridge 4, a TRILL frame packet to the routing bridge 4.

[0050]路由桥4接收到TRILL帧报文后,查看发现出口路由桥为自身RB4,则剥掉TRILL头部,得到原始以太网帧,再查看原始以太网帧头部,根据目的MAC地址将原始以太网帧转发给用户设备2。 After [0050] TRILL routing bridge 4 receives the frame message, view export routes found the RB4 bridge itself, the TRILL header stripped, to give the original Ethernet frame, and then view the original Ethernet frame header, according to the destination MAC address original Ethernet frame is forwarded to the user equipment 2.

[0051]用户设备2接收到用户设备I发送的以太网帧报文。 [0051] The user equipment 2 receives an Ethernet frame packet transmitted to a user device I.

[0052]路由桥I还可以连接用户设备3,路由桥I作为TRILL网络边缘的路由桥,也是入口路由桥或出口路由桥。 [0052] The routing bridge may also be connected to user devices I 3, I routing bridge as the edge of the TRILL network routing bridge, the bridge is the inlet or outlet route routing bridge.

[0053] 假设用户设备I的MAC地址为MACl,IP地址为10.1.1.251;用户设备3的MAC地址为MAC3,IP地址为20.1.1.253。 [0053] MAC address of the user equipment is assumed that I is MACl, IP address 10.1.1.251; MAC address of the user equipment 3 is MAC3, IP address 20.1.1.253. 当用户设备I向用户设备3发送以太网帧报文时,如图3所示,根据本发明提供的基于TRILL网络的报文转发方法,执行以下步骤: When the user sends an Ethernet frame packet to the user equipment device I 3, shown in Figure 3, message forwarding method according to the present invention is provided based on TRILL network, perform the following steps:

[0054] 步骤201、用户设备I向用户设备3发送以太网帧报文。 [0054] Step 201, the user device I sends an Ethernet frame packet to the user equipment 3.

[0055] 以太网帧报文包括源MAC地址、目的MAC地址、源IP地址和目的IP地址,源MAC地址为用户设备I的MAC地址,即MACl,目的MAC地址为网关MAC地址,源IP地址为用户设备I的IP地址,即10.II251,目的IP地址为用户设备3的IP地址,即20.II253。 [0055] Ethernet frame packet includes a source MAC address, destination MAC address, source IP address and destination IP address, source MAC address is the MAC address of the user device I, MACl i.e., destination MAC address of the gateway MAC address, source IP address the IP address of user device I, i.e. 10.II251, destination IP address is the IP address of the user equipment 3, i.e. 20.II253.

[0056]步骤202、路由桥3接收用户设备I发送的以太网帧报文。 [0056] Step 202, the user equipment 3 receives routing bridge Ethernet frame I transmits the message.

[0057] 步骤203、路由桥3查询第二TRILL MAC表项。 [0057] Step 203, the second query routing bridge 3 TRILL MAC entries.

[0058]路由桥3接收到用户设备I发送的以太网帧报文后,根据目的MAC地址为网关MAC地址,查询第二TRILL MAC表项,所述第二TRILL MAC表项包括网关MAC地址、VLAN ID和路由桥 After the [0058] routing bridge 3 receives an Ethernet frame packet transmitted to a user device I, according to the destination MAC address is the MAC address of the gateway, the TRILL second MAC query entry and the second entry comprises the TRILL MAC MAC address of gateway, VLAN ID and routing bridge

2。 2. 路由桥2为网关MAC地址对应的路由桥的前一跳路由桥。 2 is a routing bridge routing bridge previous hop routing bridge MAC address of the gateway.

[0059]步骤204、路由桥3封装以太网帧报文生成第一 TRILL帧报文。 [0059] Step 204, the bridge 3 routing packets encapsulated Ethernet frames to generate a first packet TRILL frame.

[0060]路由桥3将以太网帧报文封装为第一 TRILL帧报文。 [0060] 3 routing bridge Ethernet frame encapsulated packet is a first packet TRILL frame.

[0061]第一 TRILL帧报文中的内层以太网帧包括用户设备I发送的以太网帧报文。 [0061] The inner frame packet Ethernet frame comprises a first user equipment TRILL I transmitted Ethernet frame packets.

[0062] TRILL头部包括的入口路由桥为路由桥3,出口路由桥为路由桥2。 [0062] TRILL routing bridge comprises an inlet header for routing bridge 3, of the outlet routing bridge routing bridge 2.

[0063] 在TRILL帧头部的外层,还封装一层以太网帧头,以太网帧头包括源MAC地址和目的MAC地址,源MAC地址为路由桥3的MAC地址,目的MAC地址为路由桥2的MAC地址。 [0063] In the outer frame TRILL header, further encapsulating an Ethernet header, the Ethernet frame header includes a source MAC address and destination MAC address, source MAC address is the MAC address of a routing bridge 3, the routing destination MAC address 2 the bridge MAC address.

[0064]步骤205、路由桥3向路由桥2发送第一TRILL帧报文。 [0064] Step 205, the routing bridge 3 TRILL routing bridge 2 transmits a first frame message.

[0065]步骤206、路由桥2接收路由桥3发送的第一 TRILL帧报文。 [0065] Step 206, the first frame message 3 sent TRILL routing bridge 2 receives the routing bridge.

[0066]步骤207、路由桥2判断出口路由桥与路由桥2是否相同。 [0066] Step 207, determining routing bridge 2 and the outlet routing bridge routing bridge 2 is the same.

[0067]若出口路由桥与路由桥2不相同,执行步骤208。 [0067] When the outlet routing bridge and routing bridge 2 are not the same, step 208 is executed. 若出口路由桥与路由桥2相同,执行步骤209。 If the same routing bridge the outlet routing bridge 2, step 209 is executed.

[0068]步骤208、路由桥2继续转发第一TRILL帧报文。 [0068] Step 208, the first routing bridge TRILL frame 2 continues to forward packets.

[0069]步骤209、路由桥2解封装第一 TRILL帧报文,获取以太网帧报文。 [0069] Step 209, the first routing bridge 2 TRILL frame decapsulated packet, obtaining the Ethernet frame packets.

[0070]路由桥2接收到路由桥3发送的第一TRILL帧报文后,发现出口路由桥为路由桥2自己,去除TRILL帧头部后,得到以太网帧报文。 After [0070] receiving a first routing bridge 2 TRILL routing bridge frame packet 3 transmitted routing bridge is found export their routing bridge 2, after removing the TRILL header frame, to obtain an Ethernet frame packet.

[0071]步骤210、路由桥2向路由桥I发送以太网帧报文。 [0071] Step 210, routing bridge 2 sends an Ethernet frame packet to the routing bridge I.

[0072]路由桥2根据内层以太网帧包括的目的MAC地址,查MAC地址表,找到静态MAC地址表项,所述静态MAC地址表项包括网关MAC地址、VLAN ID和接口I,路由桥2直接通过接口I向路由桥I发送以太网帧报文,并学习用户设备I的MAC地址。 [0072] The routing bridge 2 Ethernet frame destination MAC address included in the inner layer, MAC address table lookup, to find the static MAC address entry, the static MAC address entry includes a gateway MAC address, VLAN ID, and interface I, routing bridge direct I 2 sends an Ethernet frame packet, and to learn the MAC address to the user device I through the interface I routing bridge. 路由桥I为部署有网关功能的网关设备,路由桥I的MAC地址为网关MAC地址。 I is deployed routing bridge gateway function of the gateway device, MAC address routing bridge I is the MAC address of the gateway.

[0073]步骤211、路由桥I接收路由桥2发送的以太网帧报文。 [0073] Step 211, routing bridge I routing bridge receives an Ethernet frame packet 2 transmitted.

[0074]路由桥I从本地接口 2接收路由桥2发送的以太网帧报文后,根据以太网帧报文包括的源MAC地址学习用户设备I的MAC地址,生成动态MAC地址表项,包括MACl、VLAN ID和接 [0074] I routing bridge packet from the Ethernet frame transmitted from the local interface 2 receives routing bridge 2, the learning of the MAC address of the user device I according to the source MAC address of the Ethernet frame including the packet, generating a dynamic MAC address entries, comprising MACl, VLAN ID, and then

P2o P2o

[0075]步骤212、路由桥I向用户设备3发送以太网帧报文。 [0075] Step 212, I routing bridge sends an Ethernet frame packet to the user equipment 3.

[0076]根据以太网帧报文的IP头中目的IP地址,确定走三层路由转发,先学习用户设备I的ARP表项,在根据三层路由查表结果转发给用户设备3。 [0076] According to an Ethernet frame IP packet header destination IP address, go to determine the three-tier routing and forwarding, first learn the ARP entry for the user device I, and forwarded to the user equipment 3 in the look-up table based on the results of a three-layer routing.

[0077 ] 在步骤201之前,如图4所示,所述方法还包括以下步骤: [0077] Prior to step 201, shown in Figure 4, the method further comprising the steps of:

[0078]步骤213、用户设备I广播ARP请求报文。 [0078] Step 213, the user device I broadcast ARP request packets.

[0079]由于用户设备I与用户设备3不在同一个网段内,用户设备I向用户设备3发送以太网帧报文时,需要经过网关设备的转发,用户设备3才能接收到用户设备I发送的以太网帧报文。 [0079] Since the user equipment when the user equipment 3 I sends an Ethernet frame packet is not the same network segment, a user equipment to user equipment 3 I, need to go through the forwarding gateway device, the user device 3 can receive the transmitted user device I Ethernet frame packets. 用户设备I发现本地没有网关设备的IP地址10.1.1.1的ARP表项,用户设备I发送ARP请求报文,ARP请求报文为以太网帧报文。 I did not find a local user equipment gateway IP address 10.1.1.1 ARP entry, the user device I sends an ARP request packet, an ARP request packet is an Ethernet frame packet.

[0080] ARP请求报文的以太网帧头中包括源MAC地址和目的MAC地址,源MAC地址为用户设备I的MAC地址,即MACl,目的MAC地址为广播地址FFFF: FFFF: FFFF。 [0080] ARP request packet, the Ethernet frame is the MAC address of the user device I includes a source MAC address and destination MAC address, source MAC address, i.e. MACl, destination MAC address is a broadcast address FFFF: FFFF: FFFF.

[0081 ] ARP请求报文的载荷包括发送端源MAC地址、发送端源IP地址、目标MAC地址和目标IP地址,发送端源MAC地址为用户设备I的MAC地址,即MACl,发送端源IP地址为用户设备I的IP地址,8卩10.1.1.251,目标MAC地址为O,目标IP地址为网关设备的网关IP地址,即 [0081] ARP request packet payload comprises a transmitting end source MAC address, the transmitting end source IP address, destination MAC address and destination IP address, the transmitting end source MAC address of the user device I a MAC address, i.e. MACl, the transmitting end source IP address is the IP address of the user device I, Jie 10.1.1.251 8, the destination MAC address is O, destination IP address for the gateway IP address of the gateway device, i.e.,

10.1.1.1ο 10.1.1.1ο

[0082 ]步骤214、路由桥3接收用户设备I广播的ARP请求报文。 [0082] Step 214, the user apparatus 3 receives routing bridge I broadcasted ARP request packet.

[0083] 步骤215、路由桥3封装ARP请求报文生成第三TRILL帧报文。 [0083] Step 215, routing bridge 3 generates an ARP request packet encapsulation third TRILL frame message.

[0084]路由桥3接收到用户设备I发送的ARP请求报文后,学习用户设备I的MAC地址,SPMACl,再根据目的MAC地址为广播地址,将ARP请求报文封装为第三TRILL帧报文,在整个TRILL网络中广播。 After the [0084] routing bridge 3 receives the ARP request sent by a user device I packet, the MAC address learning user device I, SPMACl, again according to the destination MAC address is a broadcast address, the ARP request packet is encapsulated third TRILL frame header Wen, broadcast throughout the TRILL network.

[0085] 第三TRILL帧报文中的内层以太网帧包括ARP请求报文。 [0085] The third frame packet TRILL inner frame comprises an Ethernet ARP request packet.

[0086] TRILL头部包括的入口路由桥为路由桥3,出口路由桥为TRILL分发树的树根。 [0086] TRILL routing bridge comprises an inlet header for routing bridge 3, an outlet for distribution tree routing bridge TRILL root.

[0087] 在TRILL帧头部的外层,还封装一层以太网帧头,以太网帧头包括源MAC地址和目的MAC地址,源MAC地址为路由桥3的MAC地址,目的MAC地址为路由桥2的MAC地址。 [0087] In the outer frame TRILL header, further encapsulating an Ethernet header, the Ethernet frame header includes a source MAC address and destination MAC address, source MAC address is the MAC address of a routing bridge 3, the routing destination MAC address 2 the bridge MAC address.

[0088]步骤216、路由桥3向路由桥2发送第三TRILL帧报文。 [0088] Step 216, TRILL routing bridge 3 transmits the third packet to a routing bridge frame 2.

[0089]步骤217、路由桥2接收路由桥3发送的第三TRILL帧报文。 [0089] Step 217, the third frame TRILL routing bridge 2 receives packet 3 transmitted routing bridge.

[0090] 步骤218、路由桥2解封装第三TRILL帧报文,获取目标IP地址和MACl。 [0090] Step 218, the third routing bridge 2 TRILL frame decapsulated packet, and obtaining the destination IP address MACl.

[0091]路由桥2接收到路由桥3发送的第三TRILL帧报文后,去除TRILL帧头部后发现ARP请求报文的目标IP为网关设备的网关IP地址,即10.1.1.1,则不再向下一跳路由桥I或路由桥4转发ARP请求报文,路由桥2本地代理处理回复ARP应答报文。 After the [0091] routing bridge 2 receives the third frame TRILL routing bridge 3 packets transmitted, found after removing the TRILL header frame ARP request packet for the destination IP address of the gateway device IP gateway, i.e. 10.1.1.1, not then the next-hop routing bridge 4 I or routing bridge forwards the ARP request packet, routing bridge 2 local proxy reply processing ARP replies. 路由桥2终止第三TRILL帧报文的转发。 2 TRILL routing bridge terminate the third frame packet forwarding.

[0092] 步骤219、路由桥2根据MACl生成第一TRILL MAC表项。 [0092] Step 219, generates a routing bridge 2 according to a first TRILL MAC entry MACl.

[0093] 路由桥2先学习用户设备I的MAC地址,S卩MAC1,生成第一TRILL MAC表项,包括MACl、VLAN ID和出口路由桥为路由桥3。 [0093] 2 routing bridge to learn the MAC address of the user device I, S Jie MACl, the TRILL generate a first MAC entry, including MACl, VLAN ID, and an outlet for the routing bridge 3 routing bridge.

[0094]需要说明的是,路由桥2预先存储代理发送ARP应答报文所需的信息,包括网关IP地址、网关MAC地址和VLAN信息。 [0094] Note that, previously stored routing bridge proxy 2 sends an ARP reply packet information required, including the IP address of the gateway, the gateway MAC address and VLAN information. 在路由桥2接收路由桥3发送的第三TRILL帧报文之前,路由桥I,即网关设备将网关IP地址、网关MAC地址和VLAN ID填加在与TRILL协议相关的TRILL帧报文的扩展字段中,通过相关的TRILL帧报文通告给代理网关设备,即路由桥2,路由桥2从接口I接收TRILL帧报文后,本地生成静态MAC地址表项,包括网关MAC地址、VLAN ID和接口I,并本地开启网关IP地址的ARP代理。 TRILL frame before the third packet 3 transmitted routing bridge 2 receives routing bridge, the bridge route I, i.e., the gateway device gateway IP address, the gateway MAC address and VLAN ID associated with the filling in the TRILL protocol packets TRILL frame extension after field through relevant TRILL frame message to notify the proxy gateway device, i.e. routing bridge 2, routing bridge 2 receives the TRILL frame packets from interface I, the locally generated static MAC address entries, including the gateway MAC address, VLAN ID, and Interface I, and open the local ARP proxy gateway IP address.

[0095] 本发明实施例不限定TRILL协议报文扩展的方式,比如可以对TRILL Hello报文进行扩展,增加新的报文字段,并将网关IP地址、网关MAC地址、VLAN ID封装进去。 Embodiment [0095] The present invention is not limited to the TRILL protocol packets extended manner, such as TRILL the Hello packets may be expanded to include new packet field, and the IP address of the gateway, the gateway MAC address, VLAN ID into the package.

[0096] 步骤220、路由桥2生成ARP应答报文。 [0096] Step 220, routing bridge 2 generates an ARP response packet.

[0097] ARP应答报文的以太网帧头中包括源MAC地址和目的MAC地址,源MAC地址为网关MAC地址,目的MAC地址为用户设备I的MAC地址,即MACl。 [0097] ARP response packet, the Ethernet frame includes a source MAC address and destination MAC address, source MAC address is the MAC address of the gateway, destination MAC address is the MAC address of the user device I, i.e. MACl.

[0098] ARP应答报文的载荷包括发送端源MAC地址、发送端源IP地址、目标MAC地址和目标IP地址,发送端源MAC地址为网关MAC地址,发送端源IP地址为网关IP地址,S卩10.1.1.1,目标MAC地址为用户设备I的MAC地址,S卩MACl,目标IP地址为用户设备I的IP地址,SP10.1.1.251ο [0098] ARP response packet payload comprises a transmitting end source MAC address, the transmitting end source IP address, destination MAC address and destination IP address, the transmitting end source MAC address of the MAC address of gateway, the transmitting end source IP address for the gateway IP address, S Jie 10.1.1.1, the destination MAC address is the MAC address of the user device I, S Jie MACl, the destination IP address is the IP address of the user device I, SP10.1.1.251ο

[0099] 步骤221、路由桥2封装ARP应答报文生成第四TRILL帧报文。 [0099] Step 221, the package routing bridge 2 ARP reply packet to generate a fourth TRILL frame.

[0100] 路由桥2根据ARP应答报文的目的MAC地址,S卩MACI,查询在步骤219生成的第一TRILL MAC表项,包括MACl、VLAN ID和出口路由桥为路由桥3,将ARP应答报文封装为第四TRILL帧报文发送。 [0100] routing bridge 2 according to the destination MAC address in the ARP response packet, S Jie MACI, the TRILL first query at step 219 MAC entries generated, including MACl, VLAN ID, and an outlet for the routing bridge routing bridge 3, the ARP response a fourth packet encapsulation packets TRILL frame.

[0101 ] 第四TRILL帧报文中的内层以太网帧包括ARP应答报文。 [0101] TRILL frame packet fourth inner frame comprises an Ethernet ARP response message.

[0102] TRILL头部包括的入口路由桥为路由桥2,出口路由桥为路由桥3。 [0102] TRILL routing bridge comprises an inlet header for routing bridge 2, an outlet for the routing bridge 3 routing bridge.

[0103] 在TRILL帧头部的外层,还封装一层以太网帧头,以太网帧头包括源MAC地址和目的MAC地址,源MAC地址为路由桥2的MAC地址,目的MAC地址为路由桥3的MAC地址。 [0103] In the outer frame TRILL header, further encapsulating an Ethernet header, the Ethernet frame header includes a source MAC address and destination MAC address, source MAC address is the MAC address of a routing bridge 2, the destination MAC address routing 3 the bridge MAC address.

[0104]步骤222、路由桥2向路由桥3发送第四TRILL帧报文。 [0104] Step 222, TRILL routing bridge 2 sends a fourth message to the routing bridge frame 3.

[0105]步骤223、路由桥3接收路由桥2发送的第四TRILL帧报文。 [0105] Step 223, the fourth frame message 2 TRILL routing bridge 3 receives transmitted routing bridge.

[0106]步骤224、路由桥3判断出口路由桥与路由桥3是否相同。 [0106] step 224, determines a routing bridge 3 and the outlet routing bridge routing bridge 3 are the same.

[0107]若出口路由桥与路由桥3不相同,执行步骤225 ;若出口路由桥与路由桥3相同,执行步骤226。 [0107] When the outlet routing bridge and routing bridge 3 are not the same, step 225; if the same bridge and routing bridge egress route 3, step 226.

[0108]步骤225、路由桥3继续转发第四TRILL帧报文。 [0108] Step 225, a fourth routing bridge 3 continues to forward packets TRILL frame.

[0109]步骤226、路由桥3解封装第四TRILL帧报文获取ARP应答报文。 [0109] Step 226, a fourth routing bridge 3 TRILL frame decapsulated packet acquired ARP reply packets.

[0110]路由桥3接收路由桥2发送的第四TRILL帧报文,发现出口路由桥为路由桥3自己,首先,去除TRILL帧头部,将第四TRILL帧报文还原为以太网帧报文,即ARP应答报文。 [0110] 3 routing bridge routing bridge receiving a fourth message sent TRILL frame 2, to find an outlet routing bridge own routing bridge 3, first, the frame is removed TRILL header, the TRILL frame message fourth reduction Ethernet frame packets Wen, namely ARP response packet.

[0111] 步骤227、路由桥3生成第二TRILL MAC表项。 [0111] Step 227, the second routing bridge 3 generates TRILL MAC entries.

[0112] 路由桥3学习网关MAC地址,生成第二TRILL MAC表项,包括网关MAC地址、VLAN ID和出口路由桥为路由桥2。 [0112] Route 3 learning bridge MAC address of gateway, the TRILL MAC generate a second entry comprising a gateway MAC address, VLAN ID, and an outlet for the routing bridge routing bridge 2.

[0113]步骤228、路由桥3向用户设备I发送ARP应答报文。 [0113] Step 228, routing bridge 3 transmits the ARP response packet to the user equipment I.

[0114]步骤229、用户设备I接收路由桥3发送的ARP应答报文。 [0114] Step 229, the user equipment receives the ARP I 3 transmitted the response packet routing bridge.

[0115]用户设备I接收以太网帧格式的ARP应答报文,学习到网关IP地址的ARP表项,即网关IP地址对应的网关MAC地址。 [0115] The user equipment receives the I frame format Ethernet ARP response packet to the ARP entry learning gateway IP address, i.e. the IP address of the gateway corresponding to the MAC address of the gateway.

[0116]当用户设备3向用户设备I发送以太网帧报文时,如图5所示,根据本发明提供的基于TRILL网络的报文转发方法,执行以下步骤: [0116] When the user equipment 3 sends an Ethernet frame packet to the user device I, shown in Figure 5, message forwarding method according to the present invention is provided based on TRILL network, perform the following steps:

[0117]步骤301、用户设备3向用户设备I发送以太网帧报文。 [0117] Step 301, the user equipment 3 sends an Ethernet frame packet to the user equipment I.

[0118]步骤302、路由桥I接收用户设备3发送的以太网帧报文。 [0118] Step 302, the user equipment receiving a routing bridge I 3 Ethernet frame packet transmitted.

[0119]路由桥I查询到用户设备I的ARP表项,设置以太网帧头部,以太网帧报文包括源MAC地址、目的MAC地址、源IP地址和目的IP地址,源MAC地址为网关MAC地址,目的MAC地址为用户设备I的MAC地址,即MACl,源IP地址为用户设备3的IP地址,S卩20.1.1.253,目的IP地址为用户设备I的IP地址,即10.1.1.251。 [0119] I routing bridge queries the ARP entry user device I, set the Ethernet frame header, the packet includes an Ethernet frame source MAC address, destination MAC address, source IP address and destination IP address, source MAC address of the gateway MAC address, destination MAC address is a MAC address of the user devices I, MACl i.e., the source IP address is the IP address of the user equipment 3, S Jie 20.1.1.253, destination IP address is the IP address of user device I, i.e. 10.1.1.251. 所述目的MAC地址为用户设备I向用户设备3发送的以太网帧报文中源MAC地址。 MAC address of the destination user equipment to the I-frame packets the Ethernet source MAC address of the user equipment 3.

[0120]步骤303、路由桥I向路由桥2转发以太网帧报文。 [0120] Step 303, forwarding the Ethernet frame I routing bridge packet to a routing bridge 2.

[0121]步骤304、路由桥2接收路由桥I转发的以太网帧报文。 [0121] Step 304, routing bridge routing bridge 2 receives Ethernet frames I forwarded packets.

[0122] 步骤305、路由桥2查询第一TRILL MAC表项。 [0122] Step 305, the first query routing bridge 2 TRILL MAC entries.

[0123]路由桥2从接口 I接收以太网帧报文,根据目的MAC地址查询到第一TRILL MAC表项,包括MACl、VLAN ID和出口路由桥为路由桥3,将以太网帧报文封装为第二TRILL帧报文。 [0123] routing bridge 2 receives an Ethernet frame packet from the interface I, according to the MAC address of the first query to the TRILL MAC entry, including MACl, VLAN ID, and an outlet for the routing bridge 3 routing bridge, Ethernet frame encapsulated packet the second TRILL frame message.

[0124] 步骤306、路由桥2封装以太网帧报文生成第二TRILL帧报文。 [0124] Step 306, the Ethernet frames encapsulated routing bridge 2 generates a second message packet TRILL frame.

[0125]第二 TRILL帧报文中的内层以太网帧包括用户设备3发送的以太网帧报文。 [0125] TRILL second inner frame packet Ethernet frame includes an Ethernet frame packet 3 transmitted from the user equipment.

[0126] TRILL头部包括的入口路由桥为路由桥2,出口路由桥为路由桥3。 [0126] TRILL routing bridge comprises an inlet header for routing bridge 2, an outlet for the routing bridge 3 routing bridge.

[0127] 在TRILL帧头部的外层,还封装一层以太网帧头,以太网帧头包括源MAC地址和目的MAC地址,源MAC地址为路由桥2的MAC地址,目的MAC地址为路由桥3的MAC地址。 [0127] In the outer frame TRILL header, further encapsulating an Ethernet header, the Ethernet frame header includes a source MAC address and destination MAC address, source MAC address is the MAC address of a routing bridge 2, the destination MAC address routing 3 the bridge MAC address.

[0128]步骤307、路由桥2向路由桥3发送第二TRILL帧报文。 [0128] Step 307, the second TRILL routing bridge frame 2 transmits the packet routing bridge 3.

[0129]步骤308、路由桥3接收路由桥2发送的第二 TRILL帧报文。 [0129] Step 308, the second frame message 2 TRILL routing bridge 3 receives transmitted routing bridge.

[0130]步骤309、路由桥3判断出口路由桥与路由桥3是否相同。 [0130] Step 309, determining routing bridge 3 and the outlet routing bridge routing bridge 3 are the same.

[0131 ]若出口路由桥与路由桥3不相同,执行步骤310。 [0131] When the outlet routing bridge and routing bridge 3 are not the same, step 310 is performed. 若出口路由桥与路由桥3相同,执行步骤311。 If the same routing bridge the outlet routing bridge 3, step 311 is executed.

[0132]步骤310、路由桥3继续转发第二 TRILL帧报文。 [0132] Step 310, the second routing bridge 3 continues to forward packets TRILL frame.

[0133]步骤311、路由桥3解封装第二 TRILL帧报文,获取以太网帧报文。 [0133] Step 311, the second routing bridge 3 TRILL frame decapsulated packet, obtaining the Ethernet frame packets.

[0134]路由桥3接收到路由桥2发送的第二TRILL帧报文后,发现出口路由桥为路由桥3自己,去除TRILL帧头部后,得到以太网帧报文。 After the [0134] routing bridge routing bridge 3 receives a second packet sent TRILL frame 2, to find an outlet routing bridge own routing bridge 3, after removing the TRILL header frame, to obtain an Ethernet frame packet.

[0135]步骤312、路由桥3向用户设备I转发以太网帧报文。 [0135] Step 312, forwarding the Ethernet frame 3 routing bridge packet to the user equipment I.

[0136]需要说明的是,在步骤301之前,路由桥I转发目的IP地址为用户设备I的以太网帧报文时,如果查找不到用户设备I的ARP表项,则暂时缓存报文,先发送ARP请求。 [0136] It should be noted that, before step 301, routing bridge I forwarded the destination IP address Ethernet frame message when the user device I was, if not look ARP entry of user device I, then temporarily cache message, first sends an ARP request.

[0137] 路由桥I发送ARP请求报文,ARP请求报文包括目的MAC地址和源MAC地址,目的MAC地址为广播地址FFFF: FFFF: FFFF,源MAC地址为网关MAC地址。 [0137] I routing bridge sends an ARP request packet, an ARP request packet including a destination MAC address and source MAC address, destination MAC address is a broadcast address FFFF: FFFF: FFFF, the source MAC address is the MAC address of the gateway. ARP请求报文为以太网帧报文。 ARP request packet Ethernet frame packets.

[0138]路由桥2接收ARP请求报文后,根据目的MAC地址,将其封装为TRILL帧在整个TREL网中广播,其中,TRILL帧报文中的内层以太网帧包括ARP请求报文,入口路由桥为路由桥2,出口路由桥为组播分发树的树根,在TRILL帧头部的外层,还封装一层以太网帧头,以太网帧头包括源MAC地址和目的MAC地址,源MAC地址为路由桥2的MAC地址,目的MAC地址为路由桥3的MAC地址。 [0138] After routing bridge 2 receives the ARP request packet, according to the destination MAC address, packaged as TREL TRILL frame broadcast throughout the network, wherein, in a TRILL frame message frame comprising an inner layer Ethernet ARP request packet, routing bridge routing bridge to the inlet 2, outlet routing bridge multicast distribution tree roots, the outer frame TRILL header, further encapsulating an Ethernet header, the Ethernet frame header includes a source MAC address and destination MAC address , source MAC address is the MAC address of a routing bridge 2, the destination MAC address is the MAC address of a routing bridge 3.

[0139]路由桥3接收封装有ARP请求报文的TRILL帧后,剥离TRILL头部后,根据内层以太网帧的源MAC地址学习地址,生成第二TRILLMAC表项,包括网关MAC地址、VLAN ID、出口路由桥为路由桥2。 [0139] encapsulated routing bridge 3 receives the ARP request packet TRILL frame, after peeling TRILL header, to learn the source MAC address of the Ethernet address of the inner frame, generating a second TRILLMAC entry, including the gateway MAC address, VLAN ID, the export route for the bridge routing bridge 2. 路由桥3将内层以太网帧广播转发给用户设备I。 The inner layer 3 routing bridge broadcasts the Ethernet frame to a user equipment I.

[0140]用户设备I接收ARP请求,发送ARP应答报文,其中,目的MAC地址为网关MAC地址,源MAC地址为用户设备I的MAC地址,即MACl。 [0140] User device I receives the ARP request, the ARP response packet transmitted, wherein the destination MAC address for the gateway MAC address, source MAC address is the MAC address of the user device I, i.e. MACl.

[0141] 路由桥3接收ARP应答后,根据目的MAC地址查到第二TRILLMAC表项,包括网关MAC地址、VLAN ID、出口路由桥为路由桥2,封装为TRILL帧,其中,TRILL帧报文中的内层以太网帧包括ARP应答报文,入口路由桥为路由桥3,出口路由桥为路由桥2,在TRILL帧头部的外层,还封装一层以太网帧头,以太网帧头包括源MAC地址和目的MAC地址,源MAC地址为路由桥3的MAC地址,目的MAC地址为路由桥2的MAC地址。 [0141] After receiving the ARP reply routing bridge 3, a second TRILLMAC found entry according to the destination MAC address, the MAC address includes a gateway, VLAN ID, routing bridge egress routing bridge 2, the package is a TRILL frame, wherein, TRILL frame message the inner frame comprises an Ethernet ARP response packet, routing bridge routing bridge inlet 3, an outlet for the routing bridge routing bridge 2, the outer frame TRILL header, further encapsulating an Ethernet header, the Ethernet frame MAC header includes a source address and a destination MAC address, source MAC address is the MAC address of a routing bridge 3, the destination MAC address is the MAC address of a routing bridge 2.

[0142] 路由桥2接收TRILL帧,剥离TRILL头部后,根据目的MAC地址查到对应网关MAC表项,将内层以太帧直接转发给路由桥I。 [0142] TRILL routing bridge 2 receives a frame, after peeling TRILL header, the MAC entry found in the corresponding gateway according to the destination MAC address, the Ethernet frame will be forwarded directly to the inner layer routing bridge I.

[0143]路由桥I接收ARP应答报文,学习到用户设备I的ARP表项。 [0143] I routing bridge receives the ARP response packet to the ARP entry learning user device I.

[0Ί44]本发明实施例提供一种第一路由桥40,如图6所不,包括: [0Ί44] embodiment of the present invention provides a first routing bridge 40, not shown in FIG 6, comprising:

[0145]接收单元401,用于接收第一多链路透明互连TRILL帧报文,所述第一 TRILL帧报文包括第一以太网帧报文和第一出口路由桥,所述第一以太网帧报文包括源媒体介入控制MAC地址、目的MAC地址、源网际协议IP地址和目的IP地址,所述源MAC地址为第一MAC,所述目的MAC地址为网关MAC地址,所述源IP地址和所述目的IP地址不在同一网段内; [0145] The receiving unit 401 for receiving a first transparent multi-link interconnection TRILL frame message, the first message includes a first TRILL frame Ethernet frame packet routing bridge and the first outlet, the first Ethernet frame packet includes a source media Access control (MAC) address, destination MAC address, a source internet protocol IP address and destination IP address, source MAC address is the first MAC, the destination MAC address is the MAC address of the gateway, the source IP address and the destination IP address is not in the same network segment;

[0146]处理单元402,用于当确定所述第一出口路由桥与所述第一RB相同时,解封装所述第一TRILL帧报文,获取所述第一以太网帧报文,所述第一RB为第三RB的前一跳路由桥,所述第三RB为所述网关MAC地址对应的网关设备; [0146] processing unit 402, for determining when the first outlet of the first routing bridge RB are the same, the first TRILL frame decapsulated packet to obtain the Ethernet frame packet first, the RB is said first front third hop routing bridge RB, the third RB is a gateway device corresponding to the MAC address of the gateway;

[0147]发送单元403,用于根据所述目的MAC地址和静态MAC地址表项转发所述第一以太网帧报文到第三RB,所述静态MAC地址表项包括所述网关MAC地址、虚拟局域网标识VLAN ID和第一接口。 [0147] transmitting unit 403, according to the destination MAC address of the static MAC address entry and forwards the first packet to a third Ethernet frame the RB, the static MAC address entry includes the MAC address of gateway, VID VLAN ID and a first interface.

[0148]本发明实施例提供的基于T RIL L网络的报文转发方法,在第一路由桥获取到的TRILL帧报文后,发现TRILL帧报文中的出口路由桥设置为所述第一路由桥,所述第一路由桥为网关MAC地址对应的路由桥的前一跳路由桥,所述第一路由桥解封装TRILL帧报文,得到以太网帧报文,再将以太网帧报文发送到部署有网关功能的路由桥,使得部署有网关功能的路由桥再对以太网帧报文进行三层转发,从而在不增加网关设备的情况下,实现在解封装TRILL帧报文之后,再对以太网帧报文进行三层转发。 [0148] The present invention provides a method for forwarding packets based on network T RIL L, after obtaining the first frame message TRILL routing bridge, the bridge disposed found TRILL frame egress routing packets to the first routing bridge, the front axle hop routing bridge the first routing bridge MAC address of the gateway, the first routing bridge TRILL frame decapsulated packet to obtain the Ethernet frame packet, then the Ethernet frame header sending to the case where the bridge has deployed routing gateway function, so that the deployed bridge routing gateway function and then the Ethernet frame packet Layer 3 forwarding, without thereby increasing the gateway device to achieve frame after packet decapsulation TRILL , and then the Ethernet frame packet Layer 3 forwarding.

[0149]所述接收单元401,还用于从所述第一接口接收第二以太网帧报文,所述第二以太网帧报文包括源MAC地址、目的MAC地址、源IP地址和目的IP地址,所述源MAC地址为网关MAC地址,所述目的MAC地址为第一MAC,所述源IP地址和所述目的IP地址不在同一网段内; [0149] The receiving unit 401 is further from said first interface for receiving Ethernet frames a second packet, the second packet Ethernet frame includes a source MAC address, destination MAC address, source IP address and destination IP address, the source MAC address is the MAC address of the gateway, the destination MAC address is a first MAC, the source IP address and the destination IP address is not in the same network segment;

[0150] 所述处理单元402,还用于查询第一TRILL MAC表项,所述第一TRILL MAC表项包括第一MAC、VLAN ID和第二RB; [0150] The processing unit 402 is further configured to query the first TRILL MAC table entry, the first entry comprises a first TRILL MAC MAC, VLAN ID and the RB of the second;

[0151]所述处理单元402,还用于封装所述第二以太网帧报文生成第二 TRILL帧报文,所述第二TRILL帧报文包括所述第二以太网帧报文和第二出口路由桥,所述第二出口路由桥为所述第二RB; [0151] The processing unit 402 is further configured to encapsulate the second Ethernet frame packet generating second TRILL frame packet, the second packet comprising a TRILL frame of the second frame message and Ethernet two routing bridge outlet, the second outlet to the second routing bridge the RB;

[0152]所述发送单元403,还用于转发所述第二 TRILL帧报文。 The [0152] transmitting unit 403 is further configured to forward the second packet TRILL frame.

[0153]所述接收单元401,还用于接收到第三TRILL帧报文,所述第三TRILL帧报文包括ARP请求报文、第一入口路由桥和TRILL分发树的树根,所述第一入口路由桥为所述第二RB,所述ARP请求报文包括源MAC地址、目的MAC地址、发送端源MAC地址、发送端源IP地址、目标MAC地址和目标IP地址,所述源MAC地址为第一MAC,所述目的MAC地址为广播地址,所述发送端源MAC为第一MAC,所述发送端源IP地址为第一IP地址,所述目标MAC地址为O,所述目标IP地址为网关IP地址; [0153] The receiving unit 401 is further configured to receive a third TRILL frame message, the third message comprising a TRILL frame ARP request packet, the root bridge and the first inlet TRILL routing distribution tree, the the first inlet to the second routing bridge the RB, the ARP request packet includes a source MAC address, destination MAC address, source MAC address of the transmitting end, the transmitting end source IP address, destination MAC address and destination IP address, the source a first MAC address is MAC, the destination MAC address is a broadcast address, the sending end as a first source MAC MAC, the source IP address of the sending end of a first IP address, the destination MAC address is O, the destination IP address as the gateway IP address;

[0154] 所述处理单元402,还用于解封装所述第三TRILL帧报文,获取所述目标IP地址和所述第一MAC; [0154] The processing unit 402, for decapsulating said further third TRILL frame packet, obtains the destination IP address and the MAC to the first;

[0155] 所述处理单元402,还用于根据所述第一MAC生成所述第一TRILL MAC表项,所述第一TRILL MAC表项包括第一MAC、VLANID和第二RB; [0155] The processing unit 402 is further configured to generate the first TRILL MAC the MAC according to the first entry, the first entry comprises a first TRILL MAC MAC, VLANID second and the RB;

[0156] 所述处理单元402,还用于生成ARP应答报文,所述ARP应答报文包括源MAC地址、目的MAC地址、发送端源MAC地址、发送端源IP地址、目标MAC地址和目标IP地址,所述源MAC地址为网关MAC地址,所述目的MAC地址为第一MAC,所述发送端源MAC地址为网关MAC地址,所述发送端源IP地址为网关IP地址,所述目标MAC地址为第一MAC,所述目标IP地址为第一IP; [0156] The processing unit 402 is further configured to generate an ARP response packet, the ARP response packet includes a source MAC address, destination MAC address, source MAC address of the transmitting end, the transmitting end source IP address, destination MAC address and destination IP address, the source MAC address is the MAC address of the gateway, the destination MAC address is a first MAC, the MAC address of the transmitting end gateway MAC source address, the source IP address of sending end gateway IP address, the target a first MAC address is MAC, the destination IP address of a first IP;

[0157] 所述处理单元402,还用于根据所述第一TRILL MAC表项,封装所述ARP应答报文生成第四TRILL帧报文,所述第四TRILL帧报文包括所述ARP应答报文、第二入口路由桥和第三出口路由桥,第二入口路由桥为所述第一RB,所述第三出口路由桥为所述第二RB; [0157] The processing unit 402 is further configured TRILL the MAC according to the first entry, encapsulate the ARP response packet to generate a fourth TRILL frame, the fourth frame TRILL the ARP reply packet comprising message, the second inlet and the third outlet routing bridge routing bridge, a second inlet to the first routing bridge the RB, the third outlet to the second routing bridge the RB;

[0158]所述发送单元403,还用于转发所述第四TRILL帧报文。 [0158] The sending unit 403 is further configured to forward the packet fourth TRILL frame.

[0159]所述接收单元401,还用于从所述第一接口接收第三RB发送的TRILL报文,所述TRILL报文包括网关MAC地址、网关IP地址和VLAN ID; [0159] The receiving unit 401 is further configured TRILL packet transmitted from the first interface receiving the RB third, the TRILL packet includes the MAC address of the gateway, the gateway IP address, and VLAN ID;

[0160] 所述处理单元402,还用于生成本地静态MAC地址表项,所述静态MAC地址表项包括网关MAC地址、VLAN ID和所述第一接口。 [0160] The processing unit 402 is further configured to generate local static MAC address entry, the static MAC address entry includes a gateway MAC address, VLAN ID, and the first interface.

[0161]本发明实施例提供一种第二路由桥50,如图7所示,包括: [0161] The present invention provides a second routing bridge 50, shown in Figure 7, comprising:

[0162]接收单元501,用于接收第一以太网帧报文,所述第一以太网帧报文包括源MAC地址、目的MAC地址、源IP地址和目的IP地址,所述源MAC地址为第一MAC,所述目的MAC地址为网关MAC地址,所述源IP地址和所述目的IP地址不在同一网段内; [0162] The receiving unit 501 for receiving a first frame of the Ethernet packet, the first packet Ethernet frame includes a source MAC address, destination MAC address, source IP address and destination IP address, the source MAC address a first MAC, the destination MAC address is the MAC address of the gateway, the source IP address and the destination IP address is not in the same network segment;

[0163] 处理单元502,用于查询第二多链路透明互连TRILL MAC表项,所述第二TRILL MAC表项包括所述网关MAC地址、虚拟局域网标识VLAN ID和第一RB,所述第一RB为第三RB的前一跳路由桥,所述第三RB为所述网关MAC地址对应的网关设备; [0163] processing unit 502, a query for the second multi-link interconnecting the TRILL transparent MAC entries, the second entry comprises the TRILL the gateway MAC MAC address, a VLAN ID and a virtual first the RB, the the first RB for the first hop routing bridge RB to the third, the third RB is a gateway device corresponding to the MAC address of the gateway;

[0164]所述处理单元502,还用于封装所述第一以太网帧报文生成第一 TRILL帧报文,所述第一TRILL帧报文包括所述第一以太网帧报文和第一出口路由桥,所述第一出口路由桥为所述第一RB; [0164] The processing unit 502 is further configured to encapsulate the first Ethernet frame to generate a first packet TRILL frame message, the first message comprising a TRILL frame of the first packet and the Ethernet frame a routing bridge outlet, the first outlet of the first routing bridge the RB;

[0165]发送单元503,用于转发所述第一 TRILL帧报文。 [0165] transmitting unit 503 is configured to forward the first packet TRILL frame.

[0166]本发明实施例提供的基于TRILL网络的报文转发方法,当以太网帧报文中的目的MAC地址为网关MAC地址时,路由桥将以太网帧报文封装为TRILL帧报文时,将TRILL帧报文中的出口路由桥设置为网关MAC地址对应的路由桥的前一跳路由桥,发送TRILL帧报文,使得在出口路由桥解封装TRILL帧报文,得到以太网帧报文,出口路由桥再将以太网帧报文发送到部署有网关功能的路由桥,使得部署有网关功能的路由桥再对以太网帧报文进行三层转发,从而在不增加网关设备的情况下,实现在解封装TRILL帧报文之后,再对以太网帧报文进行三层转发。 [0166] The present invention provides a method of packet forwarding based on TRILL network, an Ethernet frame packet when the destination MAC address is the MAC address of the gateway, routing bridge Ethernet frame encapsulated packet when the packet is a TRILL frame , the front axle hop routing bridge outlet disposed TRILL routing bridge frame packets the MAC address of the gateway corresponding TRILL frame message transmission, so that the outlet TRILL routing bridge frame decapsulated packet to obtain the Ethernet frame header case file, and then export routing bridge Ethernet frame packets to deploy routing bridge has a gateway function, making the routing bridge gateway function re-deployed Ethernet frame packet Layer 3 forwarding, so as not to increase the gateway device under achieved after decapsulation TRILL frame message, and then the Ethernet frame packet Layer 3 forwarding.

[0167]所述接收单元501,还用于接收第二 TRILL帧报文,所述第二TRILL帧报文包括第二以太网帧报文和第二出口路由桥,所述第二以太网帧报文包括源MAC地址、目的MAC地址、源IP地址和目的IP地址,所述源MAC地址为网关MAC地址,所述目的MAC地址为第一MAC,所述目的IP地址为第一IP,所述源IP地址和所述目的IP地址不在同一网段内,所述第二出口路由桥为所述第二RB ; [0167] The receiving unit 501 is further configured to receive a second TRILL frame packet, the second packet comprising a second TRILL frame Ethernet frame packet routing bridge and a second outlet, the second Ethernet frame packet includes a source MAC address, destination MAC address, source IP address and destination IP address, source MAC address is the MAC address of the gateway, the destination MAC address is a first MAC, the destination IP address is the first IP, the said source IP address and the destination IP address is not the same network segment, a second outlet for said second routing bridge the RB;

[0168] 所述处理单元502,还用于当确定所述第二出口路由桥与所述第二RB相同时,解封装所述第二TRILL帧报文,获取所述第二以太网帧报文; [0168] The processing unit 502 is further configured to determine when said second outlet and said second routing bridge RB are the same, the second TRILL frame decapsulated packet, acquiring the second Ethernet frame header Wen;

[0169]所述发送单元503,还用于所述第二 RB根据所述目的MAC地址转发所述第二以太网帧报文。 [0169] The transmitting unit 503, further for the second RB second Ethernet frame packet according to the destination MAC address of the forwarding.

[0170] 所述接收单元501,还用于接收ARP请求报文,所述ARP请求报文包括源MAC地址、目的MAC地址、发送端源MAC地址、发送端源IP地址、目标MAC地址和目标IP地址,所述源MAC地址为第一MAC,所述目的MAC地址为广播地址,所述发送端源MAC为第一MAC,所述发送端源IP为第一IP,所述目标MAC地址为O,所述目标IP地址为网关IP地址; [0170] The receiving unit 501 further receives the ARP request packet to the ARP request packet includes a source MAC address, destination MAC address, source MAC address of the transmitting end, the transmitting end source IP address, destination MAC address and destination IP address, the source MAC address is a first MAC, the destination MAC address is a broadcast address, the sending end as a first source MAC MAC, the sending end of a first IP source IP, a destination MAC address O, the destination IP address is the IP address of the gateway;

[0171] 所述处理单元502,还用于封装所述ARP请求报文生成第三TRILL帧报文,所述第三TRILL帧报文包括所述ARP请求报文、第一入口路由桥和TRILL分发树的树根,所述第一入口路由桥为所述第二RB; [0171] The processing unit 502 is further configured to encapsulate the ARP request packet TRILL frame to generate a third message, said third message comprises the TRILL frame ARP request packet, and the first inlet TRILL routing bridge distribution tree roots, the first inlet to the second routing bridge the RB;

[0172]所述发送单元503,还用于转发所述第三TRILL帧报文; [0172] The sending unit 503 is further configured to forward the third TRILL frame message;

[0173]所述接收单元501,还用于接收第四TRILL帧报文,所述第四TRILL帧报文包括ARP应答报文、第二入口路由桥和第三出口路由桥,第二入口路由桥为第一RB,所述第三出口路由桥为所述第二RB,所述ARP应答报文包括源MAC地址、目的MAC地址、发送端源MAC地址、发送端源IP地址、目标MAC地址和目标IP地址,所述源MAC地址为网关MAC地址,所述目的MAC地址为第一MAC,所述发送端源MAC地址为网关MAC地址,所述发送端源IP地址为网关IP地址,所述目标MAC地址为第一MAC,所述目标IP地址为第一IP; [0173] The receiving unit 501 is further configured to receive a fourth TRILL frame message, the fourth message comprises a TRILL frame ARP response packet, the second inlet and the third outlet routing bridge routing bridge, routing a second inlet the RB is a first bridge, the third bridge to the second outlet of the RB route, the ARP response packet includes a source MAC address, destination MAC address, source MAC address of the transmitting end, the transmitting end source IP address, destination MAC address and the destination IP address, source MAC address is the MAC address of the gateway, the destination MAC address is a first MAC, the MAC address of the transmitting end gateway MAC source address, the source IP address of the sending end gateway IP address, the said first MAC destination MAC address, the destination IP address of a first IP;

[0174] 所述处理单元502,还用于当确定所述第三出口路由桥与所述第二RB相同时,解封装所述第四TRILL帧报文,获取所述ARP应答报文; [0174] The processing unit 502 is further configured to determine the third outlet when the second routing bridge RB are the same, the fourth TRILL frame decapsulating packets, acquires the ARP response packet;

[0175] 所述处理单元502,还用于生成所述第二TRILL MAC表项,所述第二TRILL MAC表项包括所述网关MAC地址、VLAN ID和所述第一RB,所述第一RB为第三RB的前一跳路由桥,所述第三RB为所述网关MAC地址对应的网关设备; [0175] The processing unit 502 is further configured to generate the second entry the TRILL MAC, the second entry comprises the TRILL the gateway MAC MAC address, VLAN ID and the RB of the first, the first RB is the third previous hop routing bridge RB, the third RB is a gateway device corresponding to the MAC address of the gateway;

[0176] 所述发送单元503,还用于向所述第一IP对应的设备发送所述ARP应答报文。 The [0176] transmitting unit 503, for further corresponding to the first IP device transmits the ARP response packet.

[0177]所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。 [0177] Those skilled in the art may clearly understand that, for convenience and brevity of description, detailed working process and apparatus elements described above, can refer to the corresponding process in the foregoing method embodiments, not described herein again.

[0178]本领域普通技术人员可以理解:实现上述方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成,前述的程序可以存储于一计算机可读取存储介质中,该程序在执行时,执行包括上述方法实施例的步骤;而前述的存储介质包括:ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。 [0178] Those of ordinary skill in the art can be appreciated: realize all or part of the steps of the method described above may be implemented by a program instructing relevant hardware to complete, the program may be stored in a computer readable storage medium, the program execution when, comprising the step of performing the above-described embodiment of the method; and the storage medium comprising: a variety of medium may store program code ROM, RAM, magnetic disk, or optical disk.

[0179]以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。 [0179] The above are only specific embodiments of the present invention, but the scope of the present invention is not limited thereto, any skilled in the art in the art within the technical scope of the present invention is disclosed, variations may readily occur or Alternatively, it shall fall within the protection scope of the present invention. 因此,本发明的保护范围应以所述权利要求的保护范围为准。 Accordingly, the scope of the present invention should be defined by the scope of the claims.

Claims (12)

1.一种基于TRILL网络的报文转发方法,其特征在于,包括: 第一路由桥RB接收第一多链路透明互连TRILL帧报文,所述第一TRILL帧报文包括第一以太网帧报文和第一出口路由桥,所述第一以太网帧报文包括源媒体介入控制MAC地址、目的MAC地址、源网际协议IP地址和目的IP地址,所述源MAC地址为第一MAC,所述目的MAC地址为网关MAC地址,所述源IP地址和所述目的IP地址不在同一网段内; 当确定所述第一出口路由桥与所述第一RB相同时,所述第一RB解封装所述第一TRILL帧报文,获取所述第一以太网帧报文,所述第一RB为第三RB的前一跳路由桥,所述第三RB为所述网关MAC地址对应的网关设备; 所述第一RB根据所述目的MAC地址和静态MAC地址表项转发所述第一以太网帧报文到所述第三RB,所述静态MAC地址表项包括所述网关MAC地址、虚拟局域网标识VLAN ID和第一接口。 CLAIMS 1. A method for forwarding packets based on TRILL network, characterized by comprising: a first routing bridge RB receiving a first transparent multi-link interconnection TRILL frame message, the first message includes a first frame TRILL Ether network frame message routing bridge and the first outlet, the first Ethernet frame packet includes a source media Access control (MAC) address, destination MAC address, a source internet protocol IP address and destination IP address, source MAC address is the first MAC, the destination MAC address is the MAC address of the gateway, the source IP address and the destination IP address is not in the same network segment; determining when the first outlet of the first routing bridge RB are the same, the first a first RB TRILL frame decapsulating the packet, obtaining the Ethernet frame of the first packet, the first-hop routing bridge RB is a front third of the RB, the RB is said third gateway MAC address of the corresponding gateway device; RB of the first first Ethernet frame packet to the destination according to the third RB static MAC address and the MAC address forwarding table entry, the static MAC address entry includes the gateway MAC address, a VLAN ID and a virtual first interface.
2.根据权利要求1所述的方法,其特征在于,在所述第一RB根据所述目的MAC地址和静态MAC地址表项转发所述第一以太网帧报文之后,所述方法还包括: 所述第一RB从所述第一接口接收第二以太网帧报文,所述第二以太网帧报文包括源MAC地址、目的MAC地址、源IP地址和目的IP地址,所述源MAC地址为网关MAC地址,所述目的MAC地址为第一MAC,所述源IP地址和所述目的IP地址不在同一网段内; 所述第一RB查询第一TRILL MAC表项,所述第一TRILL MAC表项包括第一MAC、VLAN ID和第二RB; 所述第一RB封装所述第二以太网帧报文生成第二TRILL帧报文,所述第二TRILL帧报文包括所述第二以太网帧报文和第二出口路由桥,所述第二出口路由桥为所述第二RB; 所述第一RB转发所述第二TRILL帧报文。 After 2. The method according to claim 1, wherein, in the first RB forwarded according to the destination MAC address of the static MAC address entry of the first frame of the Ethernet packet, said method further comprising : the first RB from the first interface to receive a second Ethernet frame packet, the second packet including the Ethernet frame source MAC address, destination MAC address, source IP address and destination IP address, the source MAC address is the MAC address of the gateway, the destination MAC address is a first MAC, the source IP address and the destination IP address is not in the same network segment; the first first query the TRILL MAC RB entry, the second a TRILL the MAC entry includes a first MAC, VLAN ID and a second RB; RB encapsulating the first frame of the second Ethernet packet generating second TRILL frame packet, the second packet including the TRILL frame said second Ethernet frame packet routing bridge and a second outlet, the second outlet of the second routing bridge RB; RB forwarding the first message to the second TRILL frame.
3.根据权利要求2所述的方法,其特征在于,在所述第一路由桥RB接收第一 TRILL帧报文之前,所述方法还包括: 所述第一RB接收第三TRILL帧报文,所述第三TRILL帧报文包括地址解析协议ARP请求报文、第一入口路由桥和TRILL分发树的树根,所述第一入口路由桥为所述第二RB,所述ARP请求报文包括源MAC地址、目的MAC地址、发送端源MAC地址、发送端源IP地址、目标MAC地址和目标IP地址,所述源MAC地址为第一MAC,所述目的MAC地址为广播地址,所述发送端源MAC为第一MAC,所述发送端源IP地址为第一IP地址,所述目标MAC地址为O,所述目标IP地址为网关IP地址; 所述第一RB解封装所述第三TRILL帧报文,获取所述目标IP地址和所述第一MAC; 所述第一RB根据所述第一MAC生成所述第一TRILL MAC表项,所述第一TRILL MAC表项包括第一MAC、VLAN ID和第二RB; 所述第一RB生成ARP应答报文,所述ARP应 3. The method according to previous claim 2, characterized in that the frame receiving the first packet in the TRILL first routing bridge RB, the method further comprising: receiving a third of the first RB TRILL frame message the third message includes a TRILL frame ARP address Resolution protocol request packet, the root bridge and the first inlet TRILL routing distribution tree, the first inlet to the second routing bridge the RB, the ARP request packet message includes the source MAC address, destination MAC address, source MAC address of the transmitting end, the transmitting end source IP address, destination MAC address and destination IP address, source MAC address is the first MAC, the destination MAC address is a broadcast address, the said transmitting side is a first source MAC MAC, the source IP address of the sending end of a first IP address, the destination MAC address is O, the destination IP address is the IP address of the gateway; decapsulating the first RB the third TRILL frame message, obtains the destination IP address and the MAC to the first; the first RB TRILL the MAC generates the first entry the MAC according to the first, the first entry comprises the MAC TRILL the first MAC, VLAN ID and a second RB; RB generating the first ARP response packet, the ARP should 报文包括源MAC地址、目的MAC地址、发送端源MAC地址、发送端源IP地址、目标MAC地址和目标IP地址,所述源MAC地址为网关MAC地址,所述目的MAC地址为第一MAC,所述发送端源MAC地址为网关MAC地址,所述发送端源IP地址为网关IP地址,所述目标MAC地址为第一MAC,所述目标IP地址为第一IP; 所述第一RB根据所述第一TRILL MAC表项,封装所述ARP应答报文生成第四TRILL帧报文,所述第四TRILL帧报文包括所述ARP应答报文、第二入口路由桥和第三出口路由桥,第二入口路由桥为所述第一RB,所述第三出口路由桥为所述第二RB; 所述第一RB转发所述第四TRILL帧报文。 Packet includes a source MAC address, destination MAC address, source MAC address of the transmitting end, the transmitting end source IP address, destination MAC address and destination IP address, source MAC address is the MAC address of the gateway, the destination MAC address is a first MAC the transmitting end gateway MAC address of the source MAC address, source IP address of the sending end as a gateway IP address, the destination MAC address is a first MAC, the destination IP address of a first IP; said first RB the TRILL the MAC to the first entry, encapsulate the ARP response packet to generate a fourth TRILL frame message, the fourth message comprises a TRILL frame ARP response packet, the second inlet and the third outlet routing bridge routing bridge, a second inlet to the first routing bridge RB, the third outlet to the second routing bridge RB; RB forwarding the first packet of the fourth TRILL frame.
4.根据权利要求1-3任一项权利要求所述的方法,其特征在于,在所述第一 RB接收第三TRILL帧报文之前,所述方法还包括: 所述第一RB从所述第一接口接收第三RB发送的TRILL报文,所述TRILL报文包括网关MAC地址、网关IP地址和VLAN ID; 所述第一RB生成本地静态MAC地址表项,所述静态MAC地址表项包括网关MAC地址、VLANID和所述第一接口。 4. The method according to claim any one of claims 1-3, characterized in that, before the first RB TRILL frame receiving a third message, said method further comprising: the first from the RB TRILL said first interface receiving a third message sent by the RB, the TRILL packet includes the MAC address of the gateway, the gateway IP address, and VLAN ID; RB generating said first local static MAC address entry, the static MAC address table gateway entry includes the MAC address, VLANID and the first interface.
5.一种基于TRILL网络的报文转发方法,其特征在于,包括: 第二路由桥RB接收第一以太网帧报文,所述第一以太网帧报文包括源媒体介入控制MAC地址、目的MAC地址、源网际协议IP地址和目的IP地址,所述源MAC地址为第一MAC,所述目的MAC地址为网关MAC地址,所述源IP地址和所述目的IP地址不在同一网段内; 所述第二RB查询第二多链路透明互连TRILL MAC表项,所述第二TRILL MAC表项包括所述网关MAC地址、虚拟局域网标识VLAN ID和第一RB,所述第一RB为所述第三RB的前一跳路由桥,所述第三RB为所述网关MAC地址对应的网关设备; 所述第二RB封装所述第一以太网帧报文生成第一TRILL帧报文,所述第一TRILL帧报文包括所述第一以太网帧报文和第一出口路由桥,所述第一出口路由桥为所述第一RB; 所述第二RB转发所述第一TRILL帧报文。 A method for forwarding packets based on TRILL network, characterized by comprising: a second routing bridge RB first receives an Ethernet frame packet, the first packet Ethernet frame includes a source Media Access Control (MAC) address, destination MAC address, a source internet protocol IP address and destination IP address, source MAC address is the first MAC, the destination MAC address is the MAC address of the gateway, the source IP address and the destination IP address is not the same network segment ; second plurality of the second RB query link interconnecting the TRILL transparent MAC entries, the second entry comprises the TRILL the gateway MAC MAC address, a VLAN ID and a virtual first RB, the first RB a front-hop routing bridge RB to the third, the third RB is the MAC address of the gateway corresponding to the gateway device; the second RB Ethernet frame encapsulating the first packet to generate a first frame message TRILL described, the first frame message TRILL Ethernet frame including the first packet routing bridge and the first outlet, the first outlet of the first routing bridge RB; RB forwarding the first and the second a TRILL frame message.
6.根据权利要求5所述的方法,其特征在于,在所述第二 RB转发所述第一TRILL帧报文之后,所述方法还包括: 所述第二RB接收第二TRILL帧报文,所述第二TRILL帧报文包括第二以太网帧报文和第二出口路由桥,所述第二以太网帧报文包括源MAC地址、目的MAC地址、源IP地址和目的IP地址,所述源MAC地址为网关MAC地址,所述目的MAC地址为第一MAC,所述源IP地址和所述目的IP地址不在同一网段内; 当确定所述第二出口路由桥与所述第二RB相同时,所述第二RB解封装所述第二TRILL帧报文,获取所述第二以太网帧报文; 所述第二RB根据所述目的MAC地址转发所述第二以太网帧报文。 6. After the method according to claim 5, wherein, in the second RB TRILL frame forwarding said first packet, said method further comprising: receiving a second RB said second frame message TRILL , the second TRILL frame packet includes a second Ethernet frame packet routing bridge and a second outlet, the second packet including the Ethernet frame source MAC address, destination MAC address, source IP address and destination IP address, the source MAC address is the MAC address of the gateway, the destination MAC address is a first MAC, the source IP address and the destination IP address is not in the same network segment; determining when the outlet of the second routing bridge two RB are the same, the second RB TRILL frame decapsulating said second packet, acquiring the second Ethernet frame packet; said second RB said destination MAC address forwarding according to the second Ethernet frame message.
7.根据权利要求6所述的方法,其特征在于,在所述第二路由桥RB接收第一以太网帧报文之前,所述方法还包括: 所述第二RB接收地址解析协议ARP请求报文,所述ARP请求报文包括源MAC地址、目的MAC地址、发送端源MAC地址、发送端源IP地址、目标MAC地址和目标IP地址,所述源MAC地址为第一MAC,所述目的MAC地址为广播地址,所述发送端源MAC为第一MAC,所述发送端源IP为第一IP,所述目标MAC地址为O,所述目标IP地址为网关IP地址; 所述第二RB封装所述ARP请求报文生成第三TRILL帧报文,所述第三TRILL帧报文包括所述ARP请求报文、第一入口路由桥和TRILL分发树的树根,所述第一入口路由桥为所述第二RB; 所述第二RB转发所述第三TRILL帧报文; 所述第二RB接收第四TRILL帧报文,所述第四TRILL帧报文包括ARP应答报文、第二入口路由桥和第三出口路由桥,第二入口路由桥为第一RB 7. The method according to claim 6, characterized in that, prior to the second routing bridge RB first receives an Ethernet frame packet, the method further comprises: receiving the second RB Address Resolution Protocol ARP request packet, the ARP request packet includes a source MAC address, destination MAC address, source MAC address of the transmitting end, the transmitting end source IP address, destination MAC address and destination IP address, the source MAC address is a first MAC, said destination MAC address is a broadcast address, the sending end as a first source MAC MAC, the sending end of a first IP source IP, the destination MAC address is O, the destination IP address as the gateway IP address; the first two RB ARP request packet encapsulating the TRILL frame to generate a third message, said third message comprises the TRILL frame ARP request packet, the root bridge and the first inlet TRILL routing distribution tree, the first an inlet for said second routing bridge RB; RB forwarding the second packet to the third TRILL frame; TRILL the second RB receives the fourth frame message, the fourth message comprises a TRILL frame ARP replies Wen, the second inlet and the third outlet routing bridge routing bridge, a second inlet to the first routing bridge RB 所述ARP应答报文包括源MAC地址、目的MAC地址、发送端源MAC地址,发送端源IP地址、目标MAC地址和目标IP地址,所述源MAC地址为网关MAC地址,所述目的MAC地址为第一MAC,所述发送端源MAC地址为网关MAC,所述发送端源IP地址为网关IP地址,所述目标MAC地址为第一MAC,所述目标IP地址为第一IP; 当确定所述第三出口路由桥与所述第二RB相同时,所述第二RB解封装所述第四TRILL帧报文,获取所述ARP应答报文; 所述第二RB生成所述第二TRILL MAC表项,所述第二TRILL MAC表项包括所述网关MAC地址、VLAN ID和所述第一RB; 所述第二RB向所述第一IP对应的设备发送所述ARP应答报文。 The ARP reply packet includes a source MAC address, destination MAC address, source MAC address of the transmitting end, the transmitting end source IP address, destination MAC address and destination IP address, source MAC address is the MAC address of the gateway, the destination MAC address the first MAC, the source MAC address of the transmitting end gateway MAC, the source IP address of the transmitting end gateway IP address, the destination MAC address is a first MAC, the destination IP address of a first IP; when it is determined said third outlet of said second routing bridge RB are the same, the second and the fourth RB TRILL frame decapsulating packets, acquires the ARP response packet; said second generating the second RB the TRILL MAC entries, the second entry comprises the TRILL the gateway MAC MAC address, VLAN ID, and the first RB; RB of the second device transmits the response to the ARP packet corresponding to a first IP .
8.一种第一路由桥,其特征在于,包括: 接收单元,用于接收第一多链路透明互连TRILL帧报文,所述第一TRILL帧报文包括第一以太网帧报文和第一出口路由桥,所述第一以太网帧报文包括源媒体介入控制MAC地址、目的MAC地址、源网际协议IP地址和目的IP地址,所述源MAC地址为第一MAC,所述目的MAC地址为网关MAC地址,所述源IP地址和所述目的IP地址不在同一网段内; 处理单元,用于当确定所述第一出口路由桥与所述第一RB相同时,解封装所述第一TRILL帧报文,获取所述第一以太网帧报文,所述第一RB为第三RB的前一跳路由桥,所述第三RB为所述网关MAC地址对应的网关设备; 发送单元,用于根据所述目的MAC地址和静态MAC地址表项转发所述第一以太网帧报文到所述第三RB,所述静态MAC地址表项包括所述网关MAC地址、虚拟局域网标识VLAN ID和第一接口。 A first routing bridge, characterized by comprising: receiving means for receiving a first transparent multi-link interconnection TRILL frame message, the first message includes a first TRILL frame Ethernet frame packet routing bridge and the first outlet, the first Ethernet frame packet includes a source media Access control (MAC) address, destination MAC address, a source internet protocol IP address and destination IP address, the source MAC address is a first MAC, said destination MAC address is the MAC address of the gateway, the source IP address and the destination IP address is not in the same network segment; a processing unit for determining when the first outlet of the first routing bridge RB are the same, decapsulation TRILL frame of the first packet, acquiring the first packet Ethernet frame, the first front-hop routing bridge RB RB third of the third RB is the gateway MAC address to the gateway device; sending unit, according to the destination MAC address for the static MAC address entry and forward the first Ethernet frame packet to the third the RB, the static MAC address entry includes the MAC address of gateway, VID VLAN ID and a first interface.
9.根据权利要求8所述的第一路由桥,其特征在于, 所述接收单元,还用于接收到第三TRILL帧报文,所述第三TRILL帧报文包括ARP请求报文、第一入口路由桥和TRILL分发树的树根,所述第一入口路由桥为所述第二RB,所述ARP请求报文包括源MAC地址、目的MAC地址、发送端源MAC地、发送端源IP地址、目标MAC地址和目标IP地址,所述源MAC地址为第一MAC,所述目的MAC地址为广播地址,所述发送端源MAC为第一MAC,所述发送端源IP地址为第一IP地址,所述目标MAC地址为O,所述目标IP地址为网关IP地址; 所述处理单元,还用于解封装所述第三TRILL帧报文,获取所述目标IP地址和所述第一MAC; 所述处理单元,还用于根据所述第一MAC生成所述第一TRILL MAC表项,所述第一TRILLMAC表项包括第一MAC、VLAN ID和第二RB; 所述处理单元,还用于生成ARP应答报文,所述ARP应答报文包括源MAC地址 9. The first routing bridge according to claim 8, wherein the receiving unit is further configured to receive a third TRILL frame message, the third message comprising a TRILL frame ARP request packet, the TRILL routing bridge and an inlet distribution tree roots, the first inlet to the second routing bridge the RB, the ARP request packet includes a source MAC address, destination MAC address, source MAC transmitting end, the transmitting end source IP address, destination MAC address and destination IP address, source MAC address is the first MAC, the destination MAC address is a broadcast address, the sending end as a first source MAC MAC, the transmission source IP address for the first end an IP address, the destination MAC address is O, the destination IP address is the IP address of the gateway; the processing unit is further configured TRILL frame decapsulating said third packet to obtain the destination IP address and the the processing unit is further configured to generate the TRILL the first MAC based on the first MAC entry, the first entry comprises a first TRILLMAC MAC, VLAN ID and the RB second;; the first MAC processing unit is further configured to generate an ARP response packet, the ARP response packet includes a source MAC address 目的MAC地址、发送端源MAC地址、发送端源IP地址、目标MAC地址和目标IP地址,所述源MAC地址为网关MAC地址,所述目的MAC地址为第一MAC,所述发送端源MAC地址为网关MAC地址,所述发送端源IP地址为网关IP地址,所述目标MAC地址为第一MAC,所述目标IP地址为第一IP; 所述处理单元,还用于根据所述第一TRILL MAC表项,封装所述ARP应答报文生成第四TRILL帧报文,所述第四TRILL帧报文包括所述ARP应答报文、第二入口路由桥和第三出口路由桥,第二入口路由桥为所述第一RB,所述第三出口路由桥为所述第二RB; 所述发送单元,还用于转发所述第四TRILL帧报文。 Destination MAC address, source MAC address of the transmitting end, the transmitting end source IP address, destination MAC address and destination IP address, source MAC address is the MAC address of the gateway, the destination MAC address is a first MAC, MAC source the sending end MAC address is the gateway address, the source IP address of sending end gateway IP address, the destination MAC address is a first MAC, the destination IP address of a first IP; said processing unit is further configured based on the first a TRILL the MAC entry, encapsulate the ARP response packet to generate a fourth TRILL frame message, the fourth message comprises a TRILL frame ARP response packet, the second inlet and the third outlet routing bridge routing bridge, the first two of the first inlet to the RB routing bridge, the third bridge to the second outlet the RB route; the sending unit is further configured to forward the packet fourth TRILL frame.
10.根据权利要求8-9任一项权利要求所述的第一路由桥,其特征在于, 所述接收单元,还用于从所述第一接口接收第三RB发送的TRILL报文,所述TRILL报文包括网关MAC地址、网关IP地址和VLAN ID; 所述处理单元,还用于生成本地静态MAC地址表项,所述静态MAC地址表项包括网关MAC地址、VLAN ID和所述第一接口。 Claim 10. The first routing bridge according to any one of claims 8-9, wherein the receiving unit is further configured TRILL packet transmitted from the first interface receiving the RB third, the said TRILL packet comprises the MAC address of the gateway, the gateway IP address, and VLAN ID; the processing unit is further configured to generate local static MAC address entry, the static MAC address entry includes a gateway MAC address, VLAN ID, and the second an interface.
11.一种第二路由桥,其特征在于,包括: 接收单元,用于接收第一以太网帧报文,所述第一以太网帧报文包括源媒体介入控制MAC地址、目的MAC地址、源网际协议IP地址和目的IP地址,所述源MAC地址为第一MAC,所述目的MAC地址为网关MAC地址,所述源IP地址和所述目的IP地址不在同一网段内; 处理单元,用于查询第二多链路透明互连TRILL MAC表项,所述第二TRILL MAC表项包括所述网关MAC地址、虚拟局域网标识VLAN ID和第一RB,所述第一RB为所述第三RB的前一跳路由桥,所述第三RB为所述网关MAC地址对应的网关设备; 所述处理单元,还用于封装所述第一以太网帧报文生成第一TRILL帧报文,所述第一TRILL帧报文包括所述第一以太网帧报文和第一出口路由桥,所述第一出口路由桥为所述第一RB; 发送单元,用于转发所述第一TRILL帧报文。 A second routing bridge, characterized by comprising: receiving means for receiving a first frame of the Ethernet packet, the first packet Ethernet frame includes a source Media Access Control (MAC) address, destination MAC address, a source internet protocol IP address and destination IP address, source MAC address is the first MAC, the destination MAC address is the MAC address of the gateway, the source IP address and the destination IP address is not in the same network segment; a processing unit, a second multi-query link interconnecting the TRILL transparent MAC entries, the second entry comprises the TRILL the gateway MAC MAC address, a VLAN ID and a virtual first RB, the RB is said first section three previous hop routing bridge RB, the third RB is the MAC address of the gateway corresponding to the gateway device; the processing unit is further configured to encapsulate the first Ethernet frame packet to generate a first frame message TRILL the first TRILL frame including the first packet Ethernet frame packet routing bridge and the first outlet, the first outlet of the first routing bridge the RB; sending unit, configured to forward the first TRILL frame message.
12.根据权利要求11所述的第二路由桥,其特征在于, 所述接收单元,还用于接收ARP请求报文,所述ARP请求报文包括源MAC地址、目的MAC地址、发送端源MAC地址、发送端源IP地址、目标MAC地址和目标IP地址,所述源MAC地址为第一MAC,所述目的MAC地址为广播地址,所述发送端源MAC地址为第一MAC,所述发送端源IP地址为第一IP,所述目标MAC地址为O,所述目标IP地址为网关IP地址; 所述处理单元,还用于封装所述ARP请求报文生成第三TRILL帧报文,所述第三TRILL帧报文包括所述ARP请求报文、第一入口路由桥和TRILL分发树的树根,所述第一入口路由桥为所述第二RB; 所述发送单元,还用于转发所述第三TRILL帧报文; 所述接收单元,还用于接收第四TRILL帧报文,所述第四TRILL帧报文包括ARP应答报文、第二入口路由桥和第三出口路由桥,所述第二入口路由桥为第一RB,所述ARP 12. The second routing bridge according to claim 11, wherein the receiving unit further receives the ARP request packet to the ARP request packet includes a source MAC address, destination MAC address, a transmission source terminal MAC address, a source IP address of the sending end, destination MAC address and destination IP address, source MAC address is the first MAC, the destination MAC address is a broadcast address, source MAC address of the sending end as a first MAC, said the transmitting end a first IP source IP address, the destination MAC address is O, the destination IP address is the IP address of the gateway; the processing unit is further configured to encapsulate the ARP request packet to generate a third frame message TRILL said third message comprises the TRILL frame ARP request packet, the root bridge and the first inlet TRILL routing distribution tree, the first inlet to the second routing bridge the RB; the sending unit, further TRILL frame for forwarding the third packet; the receiving unit is further configured to receive a fourth TRILL frame message, the fourth message comprises a TRILL frame ARP response packet, the second and third inlet routing bridge routing bridge outlet, said second inlet to a first routing bridge the RB, the ARP 答报文包括源MAC地址、目的MAC地址、发送端源MAC地址、发送端源IP地址、目标MAC地址和目标IP地址,所述源MAC地址为网关MAC地址,所述目的MAC地址为第一MAC,所述发送端源MAC地址为网关MAC地址,所述发送端源IP地址为网关IP地址,所述目标MAC地址为第一MAC,所述目标IP地址为第一IP; 所述处理单元,还用于当确定所述第三出口路由桥与所述第二RB相同时,解封装所述第四TRILL帧报文,获取所述ARP应答报文; 所述处理单元,还用于生成所述第二TRILL MAC表项,所述第二TRILL MAC表项包括所述网关MAC地址、VLAN ID和所述第一RB,所述第一RB为第三RB的前一跳路由桥,所述第三RB为所述网关MAC地址对应的网关设备; 所述发送单元,还用于向所述第一IP对应的设备发送所述ARP应答报文。 A packet includes a source MAC address, destination MAC address, source MAC address of the transmitting end, the transmitting end source IP address, destination MAC address and destination IP address, source MAC address is the MAC address of the gateway, the destination MAC address is a first MAC, the MAC address of the transmitting end gateway MAC source address, the source IP address of sending end gateway IP address, the destination MAC address is a first MAC, the destination IP address of a first IP; the processing unit further for determining when said third outlet and said second routing bridge RB are the same, the fourth TRILL frame decapsulating packets, acquires the ARP response packet; the processing unit is further configured to generate the second entry the TRILL MAC, the second entry comprises the TRILL the gateway MAC MAC address, VLAN ID, and the first RB, the RB is a front first hop routing bridge RB to the third, the RB is said third gateway device corresponding to the MAC address of the gateway; the sending unit is further configured to send the ARP response packet corresponding to the first IP device.
CN201510990503.2A 2015-12-25 2015-12-25 A kind of message forwarding method and routing bridge based on TRILL network 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 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
Wu et al. Transition from IPv4 to IPv6: A state-of-the-art survey
US8811409B2 (en) Routing VLAN tagged packets to far end addresses of virtual forwarding instances using separate administrations
US9444642B2 (en) LAN multiplexing apparatus
CN104580024B (en) Extended Ethernet interconnect fabric switch
EP2101447B1 (en) Communication device having VPN accomodation function
CN103259727B (en) OSPF packets forwarding method and apparatus
JP5291122B2 (en) Ethernet network that is controlled by the ip forward by the link-state protocol
JP4511532B2 (en) Apparatus for the transfer of connection-oriented in a packet-switched communication network
EP1713197A1 (en) A method for implementing the virtual leased line
US8369335B2 (en) Method and system for extending routing domain to non-routing end stations
US7386605B2 (en) Methods and apparatus for automated edge device configuration in a heterogeneous network
US9178831B2 (en) Methods and apparatus for RBridge hop-by-hop compression and frame aggregation
EP2891277B1 (en) Overlay virtual gateway for overlay networks
CN102859973B (en) Method, apparatus and system for address resolution
US8098656B2 (en) Method and apparatus for implementing L2 VPNs on an IP network
CN102404181B (en) Application Layer link state routing protocol address correspondence transmission method
US7009983B2 (en) Methods and apparatus for broadcast domain interworking
CN102970227B (en) Vxlan implemented method and apparatus for packet forwarding in asic in
CN104350714B (en) Seed packet forwarding method and VxLAN Gateway
CN103841028B (en) OSPF packets forwarding method and apparatus
JP2013158034A (en) Implementation of vpns over link state protocol controlled ethernet network
JP2004534431A (en) Network tunneling
CN102301663A (en) OSPF packets processing method and related equipment
CN103036809B (en) A method and apparatus for use with an active link of scalable network
CN1625176A (en) Realization method of edge to edge pseudo-line simulation protocol

Legal Events

Date Code Title Description
C06 Publication
C10 Entry into substantive examination
GR01 Patent grant