Movatterモバイル変換


[0]ホーム

URL:


CN103490968B - Method and device for interconnecting across data centers in FCoE network - Google Patents

Method and device for interconnecting across data centers in FCoE network
Download PDF

Info

Publication number
CN103490968B
CN103490968BCN201310421655.1ACN201310421655ACN103490968BCN 103490968 BCN103490968 BCN 103490968BCN 201310421655 ACN201310421655 ACN 201310421655ACN 103490968 BCN103490968 BCN 103490968B
Authority
CN
China
Prior art keywords
fcf
message
fcoe
fcf device
tunnel
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201310421655.1A
Other languages
Chinese (zh)
Other versions
CN103490968A (en
Inventor
宋小恒
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
New H3C Technologies Co Ltd
Original Assignee
Hangzhou H3C Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou H3C Technologies Co LtdfiledCriticalHangzhou H3C Technologies Co Ltd
Priority to CN201310421655.1ApriorityCriticalpatent/CN103490968B/en
Publication of CN103490968ApublicationCriticalpatent/CN103490968A/en
Application grantedgrantedCritical
Publication of CN103490968BpublicationCriticalpatent/CN103490968B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Landscapes

Abstract

Translated fromChinese

本发明公开了一种FCoE网络中跨数据中心互联的方法和设备,该方法包括:本端FCF设备建立本端FCF设备与对端FCF设备之间的VFC虚连接;所述本端FCF设备在收到存储网络报文后,通过所述存储网络报文中携带的目的FC ID查询FC路由表;如果查询结果为所述存储网络报文的下一跳为对端FCF设备,所述本端FCF设备确定所述存储网络报文的出接口为所述VFC虚连接,并对所述存储网络报文进行隧道封装,并将隧道封装后的存储网络报文发送给所述对端FCF设备。本发明实施例中,可以支持多个数据中心之间的SAN网络和LAN网络的直接互联,实现不同数据中心内部的FCoE网络虚拟化互联,使数据中心之间获取更大的访问带宽,提升网络稳定性。

The invention discloses a method and equipment for cross-data center interconnection in an FCoE network. The method includes: a local FCF device establishes a VFC virtual connection between the local FCF device and a peer FCF device; After receiving the storage network message, query the FC routing table through the destination FC ID carried in the storage network message; if the query result shows that the next hop of the storage network message is the peer FCF device, the local end The FCF device determines that the outbound interface of the storage network message is the VFC virtual connection, performs tunnel encapsulation on the storage network message, and sends the tunnel-encapsulated storage network message to the peer FCF device. In the embodiment of the present invention, it can support the direct interconnection of SAN networks and LAN networks between multiple data centers, and realize the virtualized interconnection of FCoE networks in different data centers, so that data centers can obtain greater access bandwidth and improve network connectivity. stability.

Description

Translated fromChinese
一种FCoE网络中跨数据中心互联的方法和设备A method and device for cross-data center interconnection in an FCoE network

技术领域technical field

本发明涉及通信技术领域,尤其是涉及了一种FCoE(Fibre Channel overEthernet,基于以太网的光纤通道)网络中跨数据中心互联的方法和设备。The present invention relates to the field of communication technologies, and in particular to a method and equipment for cross-data center interconnection in an FCoE (Fibre Channel over Ethernet, Fiber Channel over Ethernet) network.

背景技术Background technique

FC(Fibre Channel,光纤通道)是存储网络中应用比较广泛的一种协议,目的是提供比以太网和TCP(Transmission Control Protocol,传输控制协议)/IP(InternetProtocol,网络之间互连的协议)协议更高速、高效的大数据传输性能。FC将传统的通道技术与网络技术结合在一起,继承了通道技术的大数据量高速传输,低延迟,超强错误检测能力等优势,同时发挥网络技术的路由,可扩展性,管理能力等优势,成为了存储局域网中的主流协议。FC (Fibre Channel, Fiber Channel) is a protocol that is widely used in storage networks. The protocol has higher speed and efficient big data transmission performance. FC combines traditional channel technology with network technology, inherits the advantages of channel technology such as large data volume, high-speed transmission, low latency, and super error detection capabilities, and at the same time takes advantage of network technology's routing, scalability, and management capabilities. , has become the mainstream protocol in the storage area network.

为了同时为LAN(Local Area Network,局域网)网络提供服务,并通过SAN(Storage Area Network,存储区域网络)网络完成存储功能,业界引入了FCoE技术。FCoE是将FC协议承载在以太网上的一种协议,在FCoE解决方案中,服务器只需要使用支持FCoE协议的以太网卡即可,而支持FCoE协议的FCF(Fibre Channel over Ethernet Forwarder,基于以太网的光纤通道代理)设备可以同时替换传统以太网交换机和FC交换机,使网卡、交换机和连接线缆的数量大为减少,同时减轻网络运行的维护工作量。In order to provide services for a LAN (Local Area Network, local area network) network and complete storage functions through a SAN (Storage Area Network, storage area network) network at the same time, the industry has introduced the FCoE technology. FCoE is a protocol that carries the FC protocol on the Ethernet. In the FCoE solution, the server only needs to use an Ethernet card that supports the FCoE protocol, and the FCF (Fibre Channel over Ethernet Forwarder, Ethernet-based Fiber Channel agent) equipment can replace traditional Ethernet switches and FC switches at the same time, greatly reducing the number of network cards, switches and connecting cables, and reducing the maintenance workload of network operation.

如图1所示,为FCoE网络的组网示意图,目前FCoE比较典型的运用是在数据中心内部实现I/O整合,FCF设备和ENode设备之间的以太网链路可以同时收发以太网报文和FC报文,LAN网络和SAN网络可以通过FCF设备互访,且二者可以同时访问ENode设备。其中,FCF设备可以为FCF交换机,ENode为支持在以太网上传输FC协议的节点设备,包括服务器、磁盘设备等。As shown in Figure 1, it is a schematic diagram of the FCoE network. At present, the typical application of FCoE is to realize I/O integration in the data center. The Ethernet link between the FCF device and the ENode device can send and receive Ethernet packets at the same time. and FC packets, the LAN network and the SAN network can communicate with each other through the FCF device, and both can access the ENode device at the same time. Wherein, the FCF device may be an FCF switch, and the ENode is a node device supporting the transmission of the FC protocol on the Ethernet, including a server, a disk device, and the like.

现有技术中,FCoE网络只支持一个数据中心内部的SAN网络和LAN网络的直接互联,而不支持多个数据中心之间的SAN网络和LAN网络的直接互联。In the prior art, the FCoE network only supports the direct interconnection between the SAN network and the LAN network within one data center, but does not support the direct interconnection between the SAN network and the LAN network among multiple data centers.

发明内容Contents of the invention

本发明实施例提供一种FCoE网络中跨数据中心互联的方法和设备,以支持多个数据中心之间的SAN网络和LAN网络的直接互联。Embodiments of the present invention provide a method and device for cross-data center interconnection in an FCoE network, so as to support direct interconnection of SAN networks and LAN networks among multiple data centers.

为了达到上述目的,本发明实施例提供一种基于以太网的光纤通道FCoE网络中跨数据中心互联的方法,该方法应用于包括本端基于以太网的光纤通道代理FCF设备和对端FCF设备的FCoE网络中,所述本端FCF设备和所述对端FCF设备位于不同的数据中心,所述方法包括以下步骤:In order to achieve the above purpose, an embodiment of the present invention provides a method for inter-data center interconnection in an Ethernet-based Fiber Channel FCoE network, which is applied to a network including a local Ethernet-based Fiber Channel proxy FCF device and a peer FCF device In the FCoE network, the local FCF device and the peer FCF device are located in different data centers, and the method includes the following steps:

所述本端FCF设备建立本端FCF设备与对端FCF设备之间的虚拟光纤通道VFC虚连接,所述VFC虚连接的介质访问控制MAC地址为所述对端FCF设备的FCoE MAC地址;The local FCF device establishes a virtual fiber channel VFC virtual connection between the local FCF device and the peer FCF device, and the media access control MAC address of the VFC virtual connection is the FCoE MAC address of the peer FCF device;

所述本端FCF设备在收到存储网络报文后,通过所述存储网络报文中携带的目的光纤通道标识FC ID查询FC路由表;如果查询结果为所述存储网络报文的下一跳为所述对端FCF设备,所述本端FCF设备确定所述存储网络报文的出接口为所述VFC虚连接,并对所述存储网络报文进行隧道封装,并将隧道封装后的存储网络报文发送给所述对端FCF设备;由所述对端FCF设备在收到所述隧道封装后的存储网络报文后,对所述隧道封装后的存储网络报文进行隧道解封装,并通过隧道解封装后的存储网络报文中携带的目的FC ID查询FC路由表,并利用查询到的出接口发送隧道解封装后的存储网络报文。After the local FCF device receives the storage network message, it queries the FC routing table through the destination fiber channel identification FC ID carried in the storage network message; if the query result is the next hop of the storage network message is the peer FCF device, the local FCF device determines that the outbound interface of the storage network message is the VFC virtual connection, and performs tunnel encapsulation on the storage network message, and tunnel-encapsulates the storage network message sending the network message to the peer FCF device; after receiving the tunnel-encapsulated storage network message, the peer FCF device performs tunnel decapsulation on the tunnel-encapsulated storage network message, The FC routing table is queried through the destination FC ID carried in the tunnel decapsulated storage network message, and the tunnel decapsulated storage network message is sent using the queried outbound interface.

本发明实施例提供一种基于以太网的光纤通道代理FCF设备,作为本端FCF设备应用于包括所述本端FCF设备和对端FCF设备的基于以太网的光纤通道FCoE网络中,所述本端FCF设备和所述对端FCF设备位于不同的数据中心,所述本端FCF设备具体包括:An embodiment of the present invention provides an Ethernet-based Fiber Channel proxy FCF device, which is used as a local FCF device in an Ethernet-based Fiber Channel FCoE network including the local FCF device and the peer FCF device. The end FCF device and the peer FCF device are located in different data centers, and the local FCF device specifically includes:

建立模块,用于建立本端FCF设备与对端FCF设备之间的虚拟光纤通道VFC虚连接,且所述VFC虚连接的介质访问控制MAC地址为所述对端FCF设备的FCoE MAC地址;An establishment module, configured to establish a virtual Fiber Channel VFC virtual connection between the local FCF device and the peer FCF device, and the media access control MAC address of the VFC virtual connection is the FCoE MAC address of the peer FCF device;

处理模块,用于在收到存储网络报文后,通过所述存储网络报文中携带的目的光纤通道标识FC ID查询FC路由表;如果查询结果为所述存储网络报文的下一跳为所述对端FCF设备,则确定所述存储网络报文的出接口为所述VFC虚连接,并对所述存储网络报文进行隧道封装;The processing module is used to query the FC routing table through the target fiber channel identification FC ID carried in the storage network message after receiving the storage network message; if the query result is that the next hop of the storage network message is The peer FCF device determines that the outbound interface of the storage network message is the VFC virtual connection, and performs tunnel encapsulation on the storage network message;

发送模块,用于将隧道封装后的存储网络报文发送给所述对端FCF设备;由所述对端FCF设备在收到所述隧道封装后的存储网络报文后,对所述隧道封装后的存储网络报文进行隧道解封装,并通过隧道解封装后的存储网络报文中携带的目的FC ID查询FC路由表,并利用查询到的出接口发送隧道解封装后的存储网络报文。A sending module, configured to send the tunnel-encapsulated storage network message to the peer FCF device; after receiving the tunnel-encapsulated storage network message, the peer FCF device encapsulates the tunnel The decapsulated storage network packets are decapsulated through the tunnel, and the FC routing table is queried through the destination FC ID carried in the decapsulated storage network packets through the tunnel, and the decapsulated storage network packets are sent using the queried outbound interface. .

与现有技术相比,本发明实施例至少具有以下优点:本发明实施例中,在包含多个数据中心的网络中,多个数据中心之间通过EVI(Ethernet Virtual Interconnection,以太网连接虚拟化)网络或者MPLS(Multi Protocol Label Switching,多协议标签交换)网络互联,以基于EVI网络的EVI LINK(链路)建立VFC(Virtual Fibre Channel,虚拟光纤通道)虚连接或者基于MPLS网络的PW(Pseudowire,伪线)虚链路建立VFC虚连接,从而支持多个数据中心之间的SAN网络和LAN网络的直接互联,实现不同数据中心内部的FCoE网络虚拟化互联,使数据中心之间获取更大的访问带宽,提升网络稳定性。Compared with the prior art, the embodiment of the present invention has at least the following advantages: In the embodiment of the present invention, in a network including multiple data centers, multiple data centers are virtualized through EVI (Ethernet Virtual Interconnection, Ethernet connection virtualization) ) network or MPLS (Multi Protocol Label Switching, multi-protocol label switching) network interconnection, establish a VFC (Virtual Fiber Channel, virtual Fiber Channel) virtual connection or a PW (Pseudowire , Pseudo-wire) virtual link to establish a VFC virtual connection, thereby supporting the direct interconnection of SAN networks and LAN networks between multiple data centers, realizing the virtualized interconnection of FCoE networks within different data centers, and enabling data centers to obtain greater access bandwidth and improve network stability.

附图说明Description of drawings

图1是现有技术中的FCoE网络的组网示意图;FIG. 1 is a schematic diagram of networking of an FCoE network in the prior art;

图2是本发明实施例提供的FCoE网络中跨数据中心互联的方法流程图;FIG. 2 is a flowchart of a method for cross-data center interconnection in an FCoE network provided by an embodiment of the present invention;

图3是本发明实施例中不同数据中心之间通过EVI网络互联的组网图;Fig. 3 is a networking diagram of interconnection through the EVI network between different data centers in the embodiment of the present invention;

图4是本发明实施例中不同数据中心之间通过MPLS网络互联的组网图;FIG. 4 is a networking diagram of interconnection between different data centers through an MPLS network in an embodiment of the present invention;

图5是本发明实施例提供的一种FCF设备的结构示意图。Fig. 5 is a schematic structural diagram of an FCF device provided by an embodiment of the present invention.

具体实施方式detailed description

本发明实施例提供一种FCoE网络中跨数据中心互联的方法,该方法应用于包括本端FCF设备和对端FCF设备的FCoE网络中,且本端FCF设备和对端FCF设备位于不同的数据中心,如图2所示,该方法包括以下步骤:An embodiment of the present invention provides a method for cross-data center interconnection in an FCoE network. The method is applied to an FCoE network including a local FCF device and a peer FCF device, and the local FCF device and the peer FCF device are located in different data centers. Center, as shown in Figure 2, the method includes the following steps:

步骤201,本端FCF设备建立本端FCF设备与对端FCF设备之间的VFC虚连接,该VFC虚连接的MAC地址为对端FCF设备的FCoE MAC地址。进一步的,对端FCF设备建立对端FCF设备与本端FCF设备之间的VFC虚连接,该VFC虚连接的MAC地址为本端FCF设备的FCoE MAC地址。In step 201, the local FCF device establishes a VFC virtual connection between the local FCF device and the peer FCF device, and the MAC address of the VFC virtual connection is the FCoE MAC address of the peer FCF device. Further, the peer FCF device establishes a VFC virtual connection between the peer FCF device and the local FCF device, and the MAC address of the VFC virtual connection is the FCoE MAC address of the local FCF device.

本发明实施例中,当数据中心之间通过EVI网络互联时,本端FCF设备与对端FCF设备之间存在EVI LINK;本端FCF设备建立本端FCF设备与对端FCF设备之间的VFC虚连接,具体包括:本端FCF设备通过EVI LINK向对端FCF设备发送携带本端FCF设备的FCoE MAC地址的发现请求报文;当本端FCF设备接收到对端FCF设备针对发现请求报文回应的发现通告报文后,利用发现通告报文中携带的对端FCF设备的FCoE MAC地址建立本端FCF设备与对端FCF设备之间的VFC虚连接,且VFC虚连接的MAC地址为对端FCF设备的FCoE MAC地址;或者,本端FCF设备通过EVI LINK接收来自对端FCF设备的携带对端FCF设备的FCoE MAC地址的发现请求报文;本端FCF设备利用发现请求报文中携带的对端FCF设备的FCoE MAC地址建立本端FCF设备与对端FCF设备之间的VFC虚连接,且VFC虚连接的MAC地址为对端FCF设备的FCoEMAC地址;本端FCF设备通过EVI LINK向对端FCF设备发送携带本端FCF设备的FCoE MAC地址的针对发现请求报文回应的发现通告报文。其中,发现请求报文和发现通告报文的GRE隧道封装的头部中的协议类型标识当前报文用于建立VFC虚连接。In the embodiment of the present invention, when the data centers are interconnected through the EVI network, there is an EVI LINK between the local FCF device and the peer FCF device; the local FCF device establishes a VFC between the local FCF device and the peer FCF device. Virtual connection, specifically includes: the local FCF device sends a discovery request message carrying the FCoE MAC address of the local FCF device to the peer FCF device through the EVI LINK; when the local FCF device receives the peer FCF device for the discovery request message After responding to the Discovery Advertisement message, use the FCoE MAC address of the peer FCF device carried in the Discovery Advertisement message to establish a VFC virtual connection between the local FCF device and the peer FCF device. FCoE MAC address of the end FCF device; or, the local FCF device receives the discovery request message carrying the FCoE MAC address of the peer FCF device from the peer FCF device through EVI LINK; the local FCF device uses the discovery request message carried in the discovery request message The FCoE MAC address of the peer FCF device to establish a VFC virtual connection between the local FCF device and the peer FCF device, and the MAC address of the VFC virtual connection is the FCoEM MAC address of the peer FCF device; The peer FCF device sends a Discovery Advertisement packet carrying the FCoE MAC address of the local FCF device in response to the Discovery Request packet. Wherein, the protocol type in the header of the GRE tunnel encapsulation of the discovery request message and the discovery notification message identifies that the current message is used to establish the VFC virtual connection.

本发明实施例中,当数据中心之间通过MPLS网络互联时,本端FCF设备与对端FCF设备之间存在PW虚链路;本端FCF设备建立本端FCF设备与对端FCF设备之间的VFC虚连接,具体包括:本端FCF设备通过PW虚链路向对端FCF设备发送携带本端FCF设备的FCoE MAC地址的发现请求报文;当本端FCF设备接收到对端FCF设备针对发现请求报文回应的发现通告报文后,利用发现通告报文中携带的对端FCF设备的FCoE MAC地址建立本端FCF设备与对端FCF设备之间的VFC虚连接,且VFC虚连接的MAC地址为对端FCF设备的FCoE MAC地址;或者,本端FCF设备通过PW虚链路接收来自对端FCF设备的携带对端FCF设备的FCoE MAC地址的发现请求报文;本端FCF设备利用发现请求报文中携带的对端FCF设备的FCoE MAC地址建立本端FCF设备与对端FCF设备之间的VFC虚连接,且VFC虚连接的MAC地址为对端FCF设备的FCoEMAC地址;本端FCF设备通过PW虚链路向对端FCF设备发送携带本端FCF设备的FCoE MAC地址的针对发现请求报文回应的发现通告报文。其中,发现请求报文和发现通告报文的MPLS隧道封装的头部中包括Flow Label标签或者Control Word标签,且Flow Label标签或者Control Word标签标识当前报文用于建立VFC虚连接。In the embodiment of the present invention, when the data centers are interconnected through the MPLS network, there is a PW virtual link between the local FCF device and the peer FCF device; the local FCF device establishes a link between the local FCF device and the peer FCF device. Specifically, the local FCF device sends a discovery request packet carrying the FCoE MAC address of the local FCF device to the peer FCF device through the PW virtual link; when the local FCF device receives the After the discovery notification message responded by the discovery request message, use the FCoE MAC address of the peer FCF device carried in the discovery notification message to establish a VFC virtual connection between the local FCF device and the peer FCF device, and the VFC virtual connection The MAC address is the FCoE MAC address of the peer FCF device; or, the local FCF device receives a discovery request message carrying the FCoE MAC address of the peer FCF device from the peer FCF device through the PW virtual link; the local FCF device uses The FCoE MAC address of the peer FCF device carried in the discovery request message establishes a VFC virtual connection between the local FCF device and the peer FCF device, and the MAC address of the VFC virtual connection is the FCoEMAC address of the peer FCF device; The FCF device sends a Discovery Advertisement message in response to the Discovery Request message carrying the FCoE MAC address of the local FCF device to the peer FCF device through the PW virtual link. Wherein, the head of the MPLS tunnel encapsulation of the discovery request message and the discovery notification message includes a Flow Label label or a Control Word label, and the Flow Label label or the Control Word label identifies that the current message is used to establish a VFC virtual connection.

步骤202,本端FCF设备在收到存储网络报文后,通过存储网络报文中携带的目的FC ID查询FC路由表。如果查询结果为存储网络报文的下一跳为对端FCF设备,则确定存储网络报文的出接口为VFC虚连接,并对存储网络报文进行隧道封装,并将隧道封装后的存储网络报文发送给对端FCF设备。Step 202: After receiving the storage network message, the local FCF device queries the FC routing table through the destination FC ID carried in the storage network message. If the query result shows that the next hop of the storage network packet is the peer FCF device, then determine that the outbound interface of the storage network packet is a VFC virtual connection, perform tunnel encapsulation on the storage network The packet is sent to the peer FCF device.

步骤203,对端FCF设备在收到隧道封装后的存储网络报文后,对隧道封装后的存储网络报文进行隧道解封装,并通过隧道解封装后的存储网络报文中携带的目的FC ID查询FC路由表,并利用查询到的出接口发送隧道解封装后的存储网络报文。存储网络报文的隧道解封装方式与其隧道封装相对应。Step 203: After receiving the tunnel-encapsulated storage network message, the peer FCF device performs tunnel decapsulation on the tunnel-encapsulated storage network message, and uses the destination FC carried in the tunnel-decapsulated storage network message. The ID queries the FC routing table, and uses the queried outbound interface to send the tunnel decapsulated storage network packets. The tunnel decapsulation method of storage network packets corresponds to the tunnel encapsulation method.

本发明实施例中,当数据中心之间通过EVI网络互联时,本端FCF设备与对端FCF设备之间存在EVI LINK;本端FCF设备对存储网络报文进行隧道封装,并将隧道封装后的存储网络报文发送给对端FCF设备的过程,包括:In the embodiment of the present invention, when the data centers are interconnected through the EVI network, there is an EVI LINK between the local FCF device and the peer FCF device; the local FCF device performs tunnel encapsulation on the storage network message, and the tunnel The process of sending storage network packets to the peer FCF device, including:

当存储网络报文为FC报文时,本端FCF设备对FC报文进行GRE隧道封装;其中,GRE隧道头中的目的IP地址为对端FCF设备的IP地址,GRE隧道头中的源IP地址为本端FCF设备的IP地址,且GRE隧道头中的协议类型用于标识GRE隧道头之后的载荷为FC报文;之后,本端FCF设备通过本端FCF设备与对端FCF设备之间的EVI LINK将GRE隧道封装后的FC报文发送给对端FCF设备;由对端FCF设备在收到GRE隧道封装后的FC报文后,对GRE隧道封装后的FC报文进行GRE隧道解封装,并通过GRE隧道解封装后的FC报文中携带的目的FC ID查询FC路由表,并利用查询到的出接口发送GRE隧道解封装后的FC报文;或者,当存储网络报文为FCoE报文时,本端FCF设备利用VFC虚连接的MAC地址设置FCoE报文的目的MAC地址为对端FCF设备的FCoE MAC地址,并对FCoE报文进行GRE隧道封装;其中,GRE隧道头中的目的IP地址为对端FCF设备的IP地址,GRE隧道头中的源IP地址为本端FCF设备的IP地址,且GRE隧道头中的协议类型用于标识GRE隧道头之后的载荷为FCoE报文;本端FCF设备通过本端FCF设备与对端FCF设备之间的EVI LINK将GRE隧道封装后的FCoE报文发送给对端FCF设备;由对端FCF设备在收到GRE隧道封装后的FCoE报文后,对GRE隧道封装后的FCoE报文进行GRE隧道解封装,并在确定GRE隧道解封装后的FCoE报文的目的MAC地址为对端FCF设备的FCoE MAC地址时,通过GRE隧道解封装后的FCoE报文中携带的目的FC ID查询FC路由表,并利用查询到的出接口发送GRE隧道解封装后的FCoE报文。When the storage network packet is an FC packet, the local FCF device encapsulates the FC packet with a GRE tunnel; the destination IP address in the GRE tunnel header is the IP address of the peer FCF device, and the source IP address in the GRE tunnel header The address is the IP address of the local FCF device, and the protocol type in the GRE tunnel header is used to identify that the payload after the GRE tunnel header is an FC packet; after that, the local FCF device communicates with the remote FCF device The EVI LINK of the GRE tunnel sends the FC packet encapsulated by the GRE tunnel to the peer FCF device; after receiving the FC packet encapsulated by the GRE tunnel, the peer FCF device performs GRE tunnel decompression on the FC packet encapsulated by the GRE tunnel. Encapsulate, and query the FC routing table through the destination FC ID carried in the FC packet decapsulated by the GRE tunnel, and use the queried outbound interface to send the FC packet decapsulated by the GRE tunnel; or, when the stored network packet is For FCoE packets, the local FCF device uses the MAC address of the VFC virtual connection to set the destination MAC address of the FCoE packet to the FCoE MAC address of the remote FCF device, and encapsulates the FCoE packet with a GRE tunnel; among them, the GRE tunnel header The destination IP address of the GRE tunnel header is the IP address of the remote FCF device, the source IP address in the GRE tunnel header is the IP address of the local FCF device, and the protocol type in the GRE tunnel header is used to identify that the payload behind the GRE tunnel header is an FCoE packet. Text; the local FCF device sends the FCoE packet encapsulated by the GRE tunnel to the peer FCF device through the EVI LINK between the local FCF device and the peer FCF device; the peer FCF device receives the GRE tunnel encapsulated After the FCoE packet, decapsulate the FCoE packet encapsulated by the GRE tunnel through the GRE tunnel, and when the destination MAC address of the FCoE packet decapsulated by the GRE tunnel is determined to be the FCoE MAC address of the peer FCF device, the GRE tunnel The destination FC ID carried in the decapsulated FCoE packet queries the FC routing table, and uses the queried outbound interface to send the decapsulated FCoE packet of the GRE tunnel.

本发明实施例中,当数据中心之间通过MPLS网络互联时,本端FCF设备与对端FCF设备之间存在PW虚链路;本端FCF设备对存储网络报文进行隧道封装,将隧道封装后的存储网络报文发送给对端FCF设备的过程,包括:In the embodiment of the present invention, when the data centers are interconnected through the MPLS network, there is a PW virtual link between the local FCF device and the peer FCF device; the local FCF device performs tunnel encapsulation on the storage network The process of sending the subsequent storage network packets to the peer FCF device, including:

当存储网络报文为FC报文时,本端FCF设备对FC报文进行MPLS隧道封装;其中,MPLS隧道头中包括公网Tunnel标签、PW VC标签、Flow Label标签或者Control Word标签,且Flow Label标签或者Control Word标签用于标识MPLS隧道头之后的载荷为FC报文;本端FCF设备通过本端FCF设备与对端FCF设备之间的PW虚链路将MPLS隧道封装后的FC报文发送给对端FCF设备;由对端FCF设备在收到MPLS隧道封装后的FC报文后,对MPLS隧道封装后的FC报文进行MPLS隧道解封装,并通过MPLS隧道解封装后的FC报文中携带的目的FC ID查询FC路由表,并利用查询到的出接口发送MPLS隧道解封装后的FC报文;或者,当存储网络报文为FCoE报文时,本端FCF设备利用VFC虚连接的MAC地址设置FCoE报文的目的MAC地址为对端FCF设备的FCoE MAC地址,并对FCoE报文进行MPLS隧道封装;其中,MPLS隧道头中包括公网Tunnel标签、PW VC标签、Flow Label标签或者Control Word标签,且Flow Label标签或者Control Word标签用于标识MPLS隧道头之后的载荷为FCoE报文;本端FCF设备通过本端FCF设备与对端FCF设备之间的PW虚链路将MPLS隧道封装后的FCoE报文发送给对端FCF设备;由对端FCF设备在收到MPLS隧道封装后的FCoE报文后,对MPLS隧道封装后的FCoE报文进行GRE隧道解封装,并在确定MPLS隧道解封装后的FCoE报文的目的MAC地址为对端FCF设备的FCoEMAC地址时,通过MPLS隧道解封装后的FCoE报文中携带的目的FC ID查询FC路由表,并利用查询到的出接口发送MPLS隧道解封装后的FCoE报文。When the storage network packets are FC packets, the local FCF device performs MPLS tunnel encapsulation on the FC packets; the MPLS tunnel header includes the public network Tunnel label, PW VC label, Flow Label label, or Control Word label, and the Flow Label The Label label or the Control Word label is used to identify the payload after the MPLS tunnel header as an FC packet; the local FCF device encapsulates the MPLS tunnel FC packet through the PW virtual link between the local FCF device and the peer FCF device After receiving the FC packet encapsulated by the MPLS tunnel, the peer FCF device performs MPLS tunnel decapsulation on the FC packet encapsulated by the MPLS tunnel, and decapsulates the FC packet through the MPLS tunnel. The destination FC ID carried in the document queries the FC routing table, and uses the queried outbound interface to send the FC packet decapsulated by the MPLS tunnel; or, when the storage network packet is an FCoE packet, the local FCF device uses the VFC virtual The MAC address of the connection sets the destination MAC address of the FCoE packet to the FCoE MAC address of the peer FCF device, and performs MPLS tunnel encapsulation on the FCoE packet; where the MPLS tunnel header includes the public network Tunnel label, PW VC label, and Flow Label label or Control Word label, and the Flow Label label or Control Word label is used to identify the payload behind the MPLS tunnel header as an FCoE packet; the local FCF uses the PW virtual link between the local FCF and the peer FCF to The FCoE packet encapsulated by the MPLS tunnel is sent to the peer FCF device; after receiving the FCoE packet encapsulated by the MPLS tunnel, the peer FCF device performs GRE tunnel decapsulation on the FCoE packet encapsulated by the MPLS tunnel, and When it is determined that the destination MAC address of the FCoE packet decapsulated from the MPLS tunnel is the FCoEMAC address of the peer FCF device, use the destination FC ID carried in the FCoE packet decapsulated from the MPLS tunnel to query the FC routing table, and use the queried The outbound interface sends FCoE packets decapsulated from the MPLS tunnel.

本发明实施例中,本端FCF设备和对端FCF设备位于不同的数据中心,且不同的数据中心之间可以通过EVI网络互联或者通过MPLS网络互联。其中,在不同的数据中心之间通过EVI网络互联时,本端FCF设备和对端FCF设备在作为FCoE网络的边缘设备的基础上,还作为EVI网络的ED(Edge Device,边缘设备)设备,且本端FCF设备与对端FCF设备之间存在EVILINK。在不同的数据中心之间通过MPLS网络互联时,本端FCF设备和对端FCF设备在作为FCoE网络的边缘设备的基础上,还作为MPLS网络的运营商边缘设备,且本端FCF设备与对端FCF设备之间存在PW虚链路。In the embodiment of the present invention, the local FCF device and the peer FCF device are located in different data centers, and different data centers may be interconnected through an EVI network or through an MPLS network. Among them, when different data centers are interconnected through the EVI network, the local FCF device and the peer FCF device are not only edge devices of the FCoE network, but also ED (Edge Device, edge device) devices of the EVI network. In addition, an EVILINK exists between the local FCF device and the remote FCF device. When different data centers are interconnected through the MPLS network, the local FCF device and the peer FCF device are not only the edge devices of the FCoE network, but also the carrier edge devices of the MPLS network. PW virtual links exist between end FCF devices.

情况一、如图3所示,为不同数据中心之间通过EVI网络互联的组网示意图,每个FCF设备作为FCoE网络的边缘设备,同时也作为EVI网络的ED设备,且FCF设备之间存在EVILINK连接。以两个FCF设备为例进行说明,两个FCF设备分别为FCF1和FCF2。FCF1为本端FCF设备,FCF2为对端FCF设备,或者,FCF2为本端FCF设备,FCF1为对端FCF设备。为了方便描述,以FCF1为本端FCF设备,FCF2为对端FCF设备为例进行说明。Situation 1. As shown in Figure 3, it is a schematic diagram of networking between different data centers through the EVI network. Each FCF device serves as the edge device of the FCoE network and also serves as the ED device of the EVI network, and there is a network between the FCF devices. EVILINK connection. Two FCF devices are used as an example for illustration. The two FCF devices are FCF1 and FCF2. FCF1 is the local FCF device, FCF2 is the peer FCF device, or FCF2 is the local FCF device, and FCF1 is the peer FCF device. For convenience of description, take FCF1 as the local FCF device and FCF2 as the remote FCF device as an example for illustration.

在此组网情况下,针对步骤201,本端FCF设备建立本端FCF设备与对端FCF设备之间的VFC虚连接的过程,具体包括但不限于如下方式:In this networking situation, for step 201, the local FCF device establishes a VFC virtual connection process between the local FCF device and the peer FCF device, specifically including but not limited to the following methods:

方式一、由本端FCF设备(FCF1)触发建立本端FCF设备与对端FCF设备(FCF2)之间的VFC虚连接,该方式具体包括如下步骤:Method 1. The local FCF device (FCF1) triggers the establishment of a VFC virtual connection between the local FCF device and the remote FCF device (FCF2). This method specifically includes the following steps:

步骤1、FCF1生成用于建立VFC虚连接的发现请求报文,该发现请求报文中携带本FCF1的FCoE MAC地址,且该发现请求报文为基于FIP(FCoE Initialization Protocol,基于以太网的光纤通道初始化协议)的发现请求报文。Step 1. FCF1 generates a discovery request message for establishing a VFC virtual connection. The discovery request message carries the FCoE MAC address of the FCF1, and the discovery request message is based on FIP (FCoE Initialization Protocol, Ethernet-based optical fiber Channel Initiation Protocol) discovery request message.

步骤2、FCF1对发现请求报文进行GRE(Generic Route Encapsulation,通用路由封装)隧道封装。其中,在GRE隧道封装后的发现请求报文中,GRE隧道头中的目的IP地址为FCF2的IP地址,GRE隧道头中的源IP地址为FCF1的IP地址,GRE隧道头中的协议类型标识当前报文用于建立VFC虚连接。Step 2: FCF1 performs GRE (Generic Route Encapsulation, generic route encapsulation) tunnel encapsulation on the discovery request message. Among them, in the discovery request message encapsulated by the GRE tunnel, the destination IP address in the GRE tunnel header is the IP address of FCF2, the source IP address in the GRE tunnel header is the IP address of FCF1, and the protocol type identifier in the GRE tunnel header is The current packet is used to establish a VFC virtual connection.

步骤3、FCF1通过EVI LINK将GRE隧道封装之后的发现请求报文发送给FCF2。其中,该EVI LINK为FCF1与FCF2之间的EVI LINK。Step 3: FCF1 sends the discovery request message encapsulated by the GRE tunnel to FCF2 through the EVI LINK. Wherein, the EVI LINK is the EVI LINK between FCF1 and FCF2.

具体的,在FCoE网络中,各FCF设备之间需要使用FIP进行远程的VFC虚连接的创建。基于此,FCF1会生成用于建立VFC虚连接的发现请求报文,对该发现请求报文进行GRE隧道封装,并向EVI LINK对端的FCF2发送GRE隧道封装之后的发现请求报文,以开始建立VFC虚连接。其中,该发现请求报文中携带本FCF1的FCoE MAC地址,GRE隧道头中的目的IP地址为FCF2的IP地址,GRE隧道头中的源IP地址为FCF1的IP地址;此外,为了和现有EVI数据报文区分开,GRE隧道头中的协议类型可以设置为0x8914,用以标识当前报文为FIP协议报文,并标识当前报文用于建立VFC虚连接。Specifically, in an FCoE network, FIP needs to be used between FCF devices to establish a remote VFC virtual connection. Based on this, FCF1 will generate a discovery request message for establishing a VFC virtual connection, perform GRE tunnel encapsulation on the discovery request message, and send the GRE tunnel-encapsulated discovery request message to FCF2 at the peer end of the EVI LINK to start the establishment VFC virtual connection. Wherein, the discovery request message carries the FCoE MAC address of this FCF1, the destination IP address in the GRE tunnel header is the IP address of FCF2, and the source IP address in the GRE tunnel header is the IP address of FCF1; EVI data packets are distinguished. The protocol type in the GRE tunnel header can be set to 0x8914 to identify the current packet as a FIP protocol packet and to identify that the current packet is used to establish a VFC virtual connection.

进一步的,FCF1通过EVI LINK向FCF2发送GRE隧道封装之后的发现请求报文后,该GRE隧道封装之后的发现请求报文将在EVI网络上进行IP转发,且由于GRE隧道头中的目的IP地址为FCF2的IP地址,因此该GRE隧道封装之后的发现请求报文最终会被转发给FCF2。Furthermore, after FCF1 sends the discovery request message encapsulated by the GRE tunnel to FCF2 through the EVI LINK, the discovery request message encapsulated by the GRE tunnel will be IP forwarded on the EVI network, and because the destination IP address in the GRE tunnel header is the IP address of FCF2, so the discovery request packet encapsulated by the GRE tunnel will eventually be forwarded to FCF2.

步骤4、FCF2在收到GRE隧道封装之后的发现请求报文后,如果识别协议类型标识当前报文用于建立VFC虚连接,则FCF2对GRE隧道封装之后的发现请求报文进行隧道解封装,以得到发现请求报文,并利用该发现请求报文中携带的FCF1的FCoE MAC地址建立FCF2与FCF1之间的VFC虚连接,且该VFC虚连接的MAC地址为FCF1的FCoE MAC地址。Step 4. After FCF2 receives the discovery request message encapsulated by the GRE tunnel, if the identified protocol type identifies the current message as being used to establish a VFC virtual connection, FCF2 performs tunnel decapsulation on the discovery request message encapsulated by the GRE tunnel. To obtain a discovery request message, and use the FCoE MAC address of FCF1 carried in the discovery request message to establish a VFC virtual connection between FCF2 and FCF1, and the MAC address of the VFC virtual connection is the FCoE MAC address of FCF1.

步骤5、FCF2生成用于建立VFC虚连接的发现通告报文,该发现通告报文中携带本FCF2的FCoE MAC地址,且该发现通告报文为发现请求报文的响应报文,且该发现通告报文为基于FIP的发现通告报文。Step 5, FCF2 generates a discovery notification message for establishing a VFC virtual connection, the discovery notification message carries the FCoE MAC address of the FCF2, and the discovery notification message is a response message to the discovery request message, and the discovery notification message The notification message is a FIP-based discovery notification message.

步骤6、FCF2对该发现通告报文进行GRE隧道封装。Step 6: FCF2 performs GRE tunnel encapsulation on the discovery notification message.

其中,在GRE隧道封装后的发现通告报文中,GRE隧道头中的目的IP地址为FCF1的IP地址,GRE隧道头中的源IP地址为FCF2的IP地址,且GRE隧道头中的协议类型标识当前报文用于建立VFC虚连接。Among them, in the Discovery Advertisement message encapsulated by the GRE tunnel, the destination IP address in the GRE tunnel header is the IP address of FCF1, the source IP address in the GRE tunnel header is the IP address of FCF2, and the protocol type in the GRE tunnel header is Identifies that the current packet is used to establish a VFC virtual connection.

步骤7、FCF2通过EVI LINK将GRE隧道封装之后的发现通告报文发送给FCF1。其中,该EVI LINK为FCF2与FCF1之间的EVI LINK。Step 7. FCF2 sends the discovery notification message encapsulated by the GRE tunnel to FCF1 through the EVI LINK. Wherein, the EVI LINK is the EVI LINK between FCF2 and FCF1.

具体的,在FCoE网络中,各FCF设备之间需要使用FIP进行远程的VFC虚连接的创建。基于此,FCF2在收到GRE隧道封装之后的发现请求报文后,如果识别协议类型标识当前报文用于建立VFC虚连接,则先弹掉GRE隧道头并解析出发现请求报文,获取并学习FCF1的FCoE MAC地址,并建立FCF2与FCF1之间的VFC虚连接,且该VFC虚连接的MAC地址为FCF1的FCoE MAC地址。进一步的,FCF2生成用于建立VFC虚连接的发现通告报文,对该发现通告报文进行GRE隧道封装,并向EVI LINK对端的FCF1发送GRE隧道封装之后的发现通告报文,以建立VFC虚连接。其中,该发现通告报文中携带本FCF2的FCoE MAC地址,GRE隧道头中的目的IP地址为FCF1的IP地址,GRE隧道头中的源IP地址为FCF2的IP地址;此外,为了和现有EVI数据报文区分开,GRE隧道头中的协议类型可以设置为0x8914,用以标识当前报文为FIP协议报文,并标识当前报文用于建立VFC虚连接。Specifically, in an FCoE network, FIP needs to be used between FCF devices to establish a remote VFC virtual connection. Based on this, after FCF2 receives the discovery request message encapsulated by the GRE tunnel, if it identifies the protocol type and identifies the current message as being used to establish a VFC virtual connection, it first pops off the GRE tunnel header and parses out the discovery request message, obtains and Learn the FCoE MAC address of FCF1, and establish a VFC virtual connection between FCF2 and FCF1, and the MAC address of the VFC virtual connection is the FCoE MAC address of FCF1. Further, FCF2 generates a discovery notification message for establishing a VFC virtual connection, performs GRE tunnel encapsulation on the discovery notification message, and sends the discovery notification message after GRE tunnel encapsulation to the FCF1 at the opposite end of the EVI LINK to establish a VFC virtual connection. connect. Wherein, the FCoE MAC address of this FCF2 is carried in the discovery notification message, the destination IP address in the GRE tunnel header is the IP address of FCF1, and the source IP address in the GRE tunnel header is the IP address of FCF2; in addition, in order to be compatible with the existing EVI data packets are distinguished. The protocol type in the GRE tunnel header can be set to 0x8914 to identify the current packet as a FIP protocol packet and to identify that the current packet is used to establish a VFC virtual connection.

进一步的,FCF2通过EVI LINK向FCF1发送GRE隧道封装之后的发现通告报文后,该GRE隧道封装之后的发现通告报文将在EVI网络上进行IP转发,且由于GRE隧道头中的目的IP地址为FCF1的IP地址,因此该GRE隧道封装之后的发现通告报文最终会被转发给FCF1。Furthermore, after FCF2 sends the discovery notification message encapsulated by the GRE tunnel to FCF1 through the EVI LINK, the discovery notification message encapsulated by the GRE tunnel will be IP forwarded on the EVI network, and because the destination IP address in the GRE tunnel header is the IP address of FCF1, so the Discovery Advertisement packet encapsulated by the GRE tunnel will eventually be forwarded to FCF1.

步骤8、FCF1在收到FCF2返回的GRE隧道封装后的发现通告报文后,如果识别协议类型标识当前报文用于建立VFC虚连接,则FCF1对GRE隧道封装后的发现通告报文进行隧道解封装,以得到发现通告报文,并利用该发现通告报文中携带的FCF2的FCoE MAC地址建立FCF1与FCF2之间的VFC虚连接,且VFC虚连接的MAC地址为FCF2的FCoE MAC地址。Step 8. After FCF1 receives the GRE tunnel-encapsulated discovery advertisement message returned by FCF2, if the identification protocol type identifies the current message as used to establish a VFC virtual connection, FCF1 tunnels the GRE tunnel-encapsulated discovery advertisement message Decapsulate to obtain the discovery notification message, and use the FCoE MAC address of FCF2 carried in the discovery notification message to establish a VFC virtual connection between FCF1 and FCF2, and the MAC address of the VFC virtual connection is the FCoE MAC address of FCF2.

本发明实施例中,FCF1利用发现通告报文中携带的FCF2的FCoE MAC地址建立FCF1与FCF2之间的VFC虚连接的过程中,FCF2周期性向FCF1发送非请求发现通告报文,该非请求发现通告报文的GRE隧道封装方式与发现通告报文的GRE隧道封装方式相同,在此不再赘述;FCF1在收到FCF2发送的非请求发现通告报文后,利用发现通告报文中携带的FCF2的FCoE MAC地址建立FCF1与FCF2间的VFC虚连接。FCF2利用发现请求报文中携带的FCF1的FCoE MAC地址建立FCF2与FCF1之间的VFC虚连接的过程中,FCF1周期性向FCF2发送非请求发现通告报文,该非请求发现通告报文的GRE隧道封装方式与发现请求报文的GRE隧道封装方式相同,在此不再赘述;FCF2在收到FCF1发送的非请求发现通告报文后,利用发现请求报文中携带的FCF1的FCoE MAC地址建立FCF2与FCF1间的VFC虚连接。In the embodiment of the present invention, when FCF1 uses the FCoE MAC address of FCF2 carried in the discovery notification message to establish a VFC virtual connection between FCF1 and FCF2, FCF2 periodically sends an unsolicited discovery notification message to FCF1. The GRE tunnel encapsulation method of the advertisement message is the same as the GRE tunnel encapsulation method of the discovery advertisement message, and will not be repeated here; after receiving the unsolicited discovery advertisement message sent by FCF2, FCF1 uses the FCF2 FCoE MAC address to establish a VFC virtual connection between FCF1 and FCF2. When FCF2 uses the FCoE MAC address of FCF1 carried in the discovery request message to establish a VFC virtual connection between FCF2 and FCF1, FCF1 periodically sends an unsolicited discovery report message to FCF2. The GRE tunnel of the unsolicited discovery report message The encapsulation method is the same as the GRE tunnel encapsulation method of the discovery request message, and will not be repeated here; after receiving the unsolicited discovery notification message sent by FCF1, FCF2 uses the FCoE MAC address of FCF1 carried in the discovery request message to establish FCF2 VFC virtual connection with FCF1.

本发明实施例中,FCF1和FCF2还需要通过周期性发送非请求发现通告报文来维护建立的VFC虚连接。具体的,FCF2周期性向FCF1发送非请求发现通告报文,如果FCF1在指定时间间隔内没有接收到来自FCF2的非请求发现通告报文,则删除FCF1与FCF2之间的VFC虚连接。FCF1周期性向FCF2发送非请求发现通告报文,如果FCF2在指定时间间隔内没有接收到来自FCF1的非请求发现通告报文,则删除FCF2与FCF1之间的VFC虚连接。In the embodiment of the present invention, FCF1 and FCF2 also need to periodically send unsolicited discovery notification messages to maintain the established VFC virtual connection. Specifically, FCF2 periodically sends an Unsolicited Discovery Advertisement message to FCF1, and if FCF1 does not receive an Unsolicited Discovery Advertisement message from FCF2 within a specified time interval, the VFC virtual connection between FCF1 and FCF2 is deleted. FCF1 periodically sends an Unsolicited Discovery Advertisement message to FCF2. If FCF2 does not receive an Unsolicited Discovery Advertisement message from FCF1 within a specified time interval, the VFC virtual connection between FCF2 and FCF1 is deleted.

方式二、由对端FCF设备(FCF2)触发建立对端FCF设备与本端FCF设备(FCF1)之间的VFC虚连接,该方式具体包括如下步骤:Method 2. The peer FCF device (FCF2) triggers the establishment of a VFC virtual connection between the peer FCF device and the local FCF device (FCF1). This method specifically includes the following steps:

步骤1、FCF2生成用于建立VFC虚连接的发现请求报文,对该发现请求报文进行GRE隧道封装,并通过EVI LINK将GRE隧道封装之后的发现请求报文发送给FCF1。其中,该EVILINK为FCF2与FCF1之间的EVI LINK;该发现请求报文中携带本FCF2的FCoE MAC地址,该发现请求报文为基于FIP的发现请求报文;在GRE隧道封装后的发现请求报文中,GRE隧道头中的目的IP地址为FCF1的IP地址,GRE隧道头中的源IP地址为FCF2的IP地址,且GRE隧道头中的协议类型标识当前报文用于建立VFC虚连接。Step 1. FCF2 generates a discovery request message for establishing a VFC virtual connection, performs GRE tunnel encapsulation on the discovery request message, and sends the GRE tunnel-encapsulated discovery request message to FCF1 through the EVI LINK. Among them, the EVILINK is the EVI LINK between FCF2 and FCF1; the discovery request message carries the FCoE MAC address of this FCF2, and the discovery request message is a discovery request message based on FIP; the discovery request message encapsulated in the GRE tunnel In the packet, the destination IP address in the GRE tunnel header is the IP address of FCF1, the source IP address in the GRE tunnel header is the IP address of FCF2, and the protocol type in the GRE tunnel header identifies that the current packet is used to establish a VFC virtual connection .

具体的,在FCoE网络中,各FCF设备之间需要使用FIP进行远程的VFC虚连接的创建。基于此,FCF2会生成用于建立VFC虚连接的发现请求报文,对该发现请求报文进行GRE隧道封装,并向EVI LINK对端的FCF1发送GRE隧道封装之后的发现请求报文,以开始建立VFC虚连接。其中,该发现请求报文中携带本FCF2的FCoE MAC地址,GRE隧道头中的目的IP地址为FCF1的IP地址,GRE隧道头中的源IP地址为FCF2的IP地址;此外,为了和现有EVI数据报文区分开,GRE隧道头中的协议类型可以设置为0x8914,用以标识当前报文为FIP协议报文,并标识当前报文用于建立VFC虚连接。Specifically, in an FCoE network, FIP needs to be used between FCF devices to establish a remote VFC virtual connection. Based on this, FCF2 will generate a discovery request message for establishing a VFC virtual connection, perform GRE tunnel encapsulation on the discovery request message, and send the GRE tunnel-encapsulated discovery request message to FCF1 at the peer end of the EVI LINK to start the establishment VFC virtual connection. Wherein, the discovery request message carries the FCoE MAC address of this FCF2, the destination IP address in the GRE tunnel header is the IP address of FCF1, and the source IP address in the GRE tunnel header is the IP address of FCF2; EVI data packets are distinguished. The protocol type in the GRE tunnel header can be set to 0x8914 to identify the current packet as a FIP protocol packet and to identify that the current packet is used to establish a VFC virtual connection.

进一步的,FCF2通过EVI LINK向FCF1发送GRE隧道封装之后的发现请求报文后,该GRE隧道封装之后的发现请求报文将在EVI网络上进行IP转发,且由于GRE隧道头中的目的IP地址为FCF1的IP地址,因此该GRE隧道封装之后的发现请求报文最终会被转发给FCF1。Furthermore, after FCF2 sends the discovery request message encapsulated by the GRE tunnel to FCF1 through the EVI LINK, the discovery request message encapsulated by the GRE tunnel will be IP forwarded on the EVI network, and because the destination IP address in the GRE tunnel header is the IP address of FCF1, so the discovery request packet encapsulated by the GRE tunnel will eventually be forwarded to FCF1.

步骤2、FCF1在收到GRE隧道封装之后的发现请求报文后,如果识别协议类型标识当前报文用于建立VFC虚连接,则FCF1对GRE隧道封装之后的发现请求报文进行隧道解封装,以得到发现请求报文,并利用该发现请求报文中携带的FCF2的FCoE MAC地址建立FCF1与FCF2之间的VFC虚连接,且该VFC虚连接的MAC地址为FCF2的FCoE MAC地址。Step 2. After FCF1 receives the discovery request message encapsulated by the GRE tunnel, if the identified protocol type identifies the current message as being used to establish a VFC virtual connection, FCF1 performs tunnel decapsulation on the discovery request message encapsulated by the GRE tunnel. To obtain a discovery request message, and use the FCoE MAC address of FCF2 carried in the discovery request message to establish a VFC virtual connection between FCF1 and FCF2, and the MAC address of the VFC virtual connection is the FCoE MAC address of FCF2.

步骤3、FCF1生成用于建立VFC虚连接的发现通告报文,对该发现通告报文进行GRE隧道封装,并通过EVI LINK将GRE隧道封装之后的发现通告报文发送给FCF2。其中,该发现通告报文中携带本FCF1的FCoE MAC地址,且该发现通告报文为发现请求报文的响应报文,且该发现通告报文为基于FIP的发现通告报文;在GRE隧道封装后的发现通告报文中,GRE隧道头中的目的IP地址为FCF2的IP地址,GRE隧道头中的源IP地址为FCF1的IP地址,且GRE隧道头中的协议类型标识当前报文用于建立VFC虚连接。Step 3: FCF1 generates a discovery advertisement message for establishing a VFC virtual connection, performs GRE tunnel encapsulation on the discovery advertisement message, and sends the discovery advertisement message encapsulated by the GRE tunnel to FCF2 through the EVI LINK. Wherein, the FCoE MAC address of the FCF1 is carried in the discovery notification message, and the discovery notification message is a response message of the discovery request message, and the discovery notification message is a discovery notification message based on FIP; in the GRE tunnel In the encapsulated Discovery Advertisement message, the destination IP address in the GRE tunnel header is the IP address of FCF2, the source IP address in the GRE tunnel header is the IP address of FCF1, and the protocol type in the GRE tunnel header identifies the current packet. To establish a VFC virtual connection.

具体的,FCF1在收到GRE隧道封装之后的发现请求报文后,如果识别协议类型标识当前报文用于建立VFC虚连接,则先弹掉GRE隧道头并解析出发现请求报文,获取并学习FCF2的FCoE MAC地址,并建立FCF1与FCF2之间的VFC虚连接,且该VFC虚连接的MAC地址为FCF2的FCoE MAC地址。进一步的,FCF1生成用于建立VFC虚连接的发现通告报文,对该发现通告报文进行GRE隧道封装,并向EVI LINK对端的FCF2发送GRE隧道封装之后的发现通告报文,以建立VFC虚连接。其中,该发现通告报文中携带本FCF1的FCoE MAC地址,GRE隧道头中的目的IP地址为FCF2的IP地址,GRE隧道头中的源IP地址为FCF1的IP地址;此外,为了和现有EVI数据报文区分开,GRE隧道头中的协议类型可以设置为0x8914,用以标识当前报文为FIP协议报文,并标识当前报文用于建立VFC虚连接。Specifically, after FCF1 receives the discovery request message encapsulated by the GRE tunnel, if it identifies the protocol type and identifies the current message as being used to establish a VFC virtual connection, it first pops off the GRE tunnel header and parses the discovery request message, obtains and Learn the FCoE MAC address of FCF2, and establish a VFC virtual connection between FCF1 and FCF2, and the MAC address of the VFC virtual connection is the FCoE MAC address of FCF2. Further, FCF1 generates a discovery notification message for establishing a VFC virtual connection, performs GRE tunnel encapsulation on the discovery notification message, and sends the discovery notification message after GRE tunnel encapsulation to FCF2 at the opposite end of the EVI LINK to establish a VFC virtual connection. connect. Wherein, the discovery notification message carries the FCoE MAC address of this FCF1, the destination IP address in the GRE tunnel header is the IP address of FCF2, and the source IP address in the GRE tunnel header is the IP address of FCF1; in addition, in order to be compatible with the existing EVI data packets are distinguished. The protocol type in the GRE tunnel header can be set to 0x8914 to identify the current packet as a FIP protocol packet and to identify that the current packet is used to establish a VFC virtual connection.

进一步的,FCF1通过EVI LINK向FCF2发送GRE隧道封装之后的发现通告报文后,该GRE隧道封装之后的发现通告报文将在EVI网络上进行IP转发,且由于GRE隧道头中的目的IP地址为FCF2的IP地址,因此该GRE隧道封装之后的发现通告报文最终会被转发给FCF2。Furthermore, after FCF1 sends the discovery notification message encapsulated by the GRE tunnel to FCF2 through the EVI LINK, the discovery notification message encapsulated by the GRE tunnel will be IP forwarded on the EVI network, and because the destination IP address in the GRE tunnel header is the IP address of FCF2, so the Discovery Advertisement packet encapsulated by the GRE tunnel will eventually be forwarded to FCF2.

步骤4、FCF2在收到FCF1返回的GRE隧道封装后的发现通告报文后,如果识别协议类型标识当前报文用于建立VFC虚连接,则FCF2对GRE隧道封装后的发现通告报文进行隧道解封装,以得到发现通告报文,并利用该发现通告报文中携带的FCF1的FCoE MAC地址建立FCF2与FCF1之间的VFC虚连接,且VFC虚连接的MAC地址为FCF1的FCoE MAC地址。Step 4. After FCF2 receives the GRE tunnel-encapsulated discovery advertisement message returned by FCF1, if the identification protocol type identifies the current message as being used to establish a VFC virtual connection, FCF2 tunnels the GRE tunnel-encapsulated discovery advertisement message Decapsulate to obtain the discovery notification message, and use the FCoE MAC address of FCF1 carried in the discovery notification message to establish a VFC virtual connection between FCF2 and FCF1, and the MAC address of the VFC virtual connection is the FCoE MAC address of FCF1.

本发明实施例中,FCF1利用发现请求报文中携带的FCF2的FCoE MAC地址建立FCF1与FCF2之间的VFC虚连接的过程中,FCF2周期性向FCF1发送非请求发现通告报文,该非请求发现通告报文的GRE隧道封装方式与发现通告报文的GRE隧道封装方式相同,在此不再赘述;FCF1在收到FCF2发送的非请求发现通告报文后,利用发现请求报文中携带的FCF2的FCoE MAC地址建立FCF1与FCF2间的VFC虚连接。FCF2利用发现通告报文中携带的FCF1的FCoE MAC地址建立FCF2与FCF1之间的VFC虚连接的过程中,FCF1周期性向FCF2发送非请求发现通告报文,该非请求发现通告报文的GRE隧道封装方式与发现请求报文的GRE隧道封装方式相同,在此不再赘述;FCF2在收到FCF1发送的非请求发现通告报文后,利用发现通告报文中携带的FCF1的FCoE MAC地址建立FCF2与FCF1间的VFC虚连接。In the embodiment of the present invention, when FCF1 uses the FCoE MAC address of FCF2 carried in the discovery request message to establish a VFC virtual connection between FCF1 and FCF2, FCF2 periodically sends an unsolicited discovery notification message to FCF1. The GRE tunnel encapsulation method of the notification message is the same as the GRE tunnel encapsulation method of the discovery notification message, and will not be described here; FCoE MAC address to establish a VFC virtual connection between FCF1 and FCF2. When FCF2 uses the FCoE MAC address of FCF1 carried in the Discovery Advertisement message to establish a VFC virtual connection between FCF2 and FCF1, FCF1 periodically sends an unsolicited Discovery Advertisement message to FCF2. The GRE tunnel of the unsolicited Discovery Advertisement message The encapsulation method is the same as the GRE tunnel encapsulation method of the discovery request message, and will not be repeated here; after receiving the unsolicited discovery notification message sent by FCF1, FCF2 uses the FCoE MAC address of FCF1 carried in the discovery notification message to establish FCF2 VFC virtual connection with FCF1.

本发明实施例中,FCF1和FCF2还需要通过周期性发送非请求发现通告报文来维护建立的VFC虚连接。具体的,FCF2周期性向FCF1发送非请求发现通告报文,如果FCF1在指定时间间隔内没有接收到来自FCF2的非请求发现通告报文,则删除FCF1与FCF2之间的VFC虚连接。FCF1周期性向FCF2发送非请求发现通告报文,如果FCF2在指定时间间隔内没有接收到来自FCF1的非请求发现通告报文,则删除FCF2与FCF1之间的VFC虚连接。In the embodiment of the present invention, FCF1 and FCF2 also need to periodically send unsolicited discovery notification messages to maintain the established VFC virtual connection. Specifically, FCF2 periodically sends an Unsolicited Discovery Advertisement message to FCF1, and if FCF1 does not receive an Unsolicited Discovery Advertisement message from FCF2 within a specified time interval, the VFC virtual connection between FCF1 and FCF2 is deleted. FCF1 periodically sends an Unsolicited Discovery Advertisement message to FCF2. If FCF2 does not receive an Unsolicited Discovery Advertisement message from FCF1 within a specified time interval, the VFC virtual connection between FCF2 and FCF1 is deleted.

基于上述处理,FCF1与FCF2之间在建立了VFC虚连接之后,VFC虚连接相当于FCF1或者FCF2在本地维护的一个VFC接口,且FCF1或者FCF2可以将数据中心内的FC报文或者FCoE报文向另一数据中心发送。Based on the above processing, after the VFC virtual connection is established between FCF1 and FCF2, the VFC virtual connection is equivalent to a VFC interface maintained locally by FCF1 or FCF2, and FCF1 or FCF2 can transmit FC packets or FCoE packets in the data center Send to another data center.

如图3所示,FCF1和FCF2在不同的数据中心。FCF1在数据中心1内部与LAN1、SAN1、ENODE1分别连接;LAN1为以太网,FCF1和CE1之间的报文为二层以太网报文;SAN1为存储光纤网,FCF1和FC1之间的报文为FC报文;ENODE1为支持FCoE的设备,FCF1和ENDOE1之间的报文为二层以太报文和FCoE报文。FCF2在数据中心2内部与LAN2、SAN2、ENODE2分别连接;LAN2为以太网,FCF2和CE2之间的报文为二层以太网报文;SAN2为存储光纤网,FCF2和FC2之间的报文为FC报文;ENODE2为支持FCoE的点设备,FCF2和ENDOE2之间的报文为二层以太报文和FCoE报文。As shown in Figure 3, FCF1 and FCF2 are in different data centers. FCF1 is connected to LAN1, SAN1, and ENODE1 in data center 1 respectively; LAN1 is Ethernet, and the packets between FCF1 and CE1 are Layer 2 Ethernet packets; SAN1 is the storage optical network, and the packets between FCF1 and FC1 FC packets; ENODE1 is a device supporting FCoE, and the packets between FCF1 and ENDOE1 are Layer 2 Ethernet packets and FCoE packets. FCF2 is connected to LAN2, SAN2, and ENODE2 in data center 2 respectively; LAN2 is Ethernet, and the packets between FCF2 and CE2 are Layer 2 Ethernet packets; SAN2 is the storage optical network, and the packets between FCF2 and FC2 FC packets; ENODE2 is a point device supporting FCoE, and the packets between FCF2 and ENDOE2 are Layer 2 Ethernet packets and FCoE packets.

本发明实施例中,FCF1上建立了FCF1与FCF2之间的VFC虚连接,且FCF2上建立了FCF2与FCF1之间的VFC虚连接之后,两个数据中心之间的MAC地址和FC路由将进行同步和学习过程。进一步的,两个数据中心之间的MAC地址同步需要由EVI ISIS(IntermediateSystem to Intermediate System,中间系统到中间系统)协议完成;两个数据中心之间的FC路由信息将直接由FSPF(Fabric Shortest Path First,光纤最短路径优先)协议完成,且EVI网络会透传FSPF协议报文以实现不同数据中心的FC路由学习。基于此,FCF1上有数据中心2中的LAN2网络中的MAC地址,FCF1上有数据中心2中的SAN2中的FC路由信息。此外,FCF2上有数据中心1中的LAN1网络中的MAC地址,FCF2上有数据中心1中的SAN1中的FC路由信息。In the embodiment of the present invention, after the VFC virtual connection between FCF1 and FCF2 is established on FCF1, and the VFC virtual connection between FCF2 and FCF1 is established on FCF2, the MAC address and FC route between the two data centers will be Synchronization and learning process. Furthermore, the MAC address synchronization between the two data centers needs to be completed by the EVI ISIS (Intermediate System to Intermediate System) protocol; the FC routing information between the two data centers will be directly provided by the FSPF (Fabric Shortest Path First, the optical fiber shortest path first) protocol is completed, and the EVI network will transparently transmit FSPF protocol packets to realize FC route learning in different data centers. Based on this, FCF1 has the MAC address of the LAN2 network in data center 2, and FCF1 has the FC routing information of SAN2 in data center 2. In addition, FCF2 has the MAC address in the LAN1 network in data center 1, and FCF2 has the FC routing information in SAN1 in data center 1.

需要说明的是,LAN1与LAN2之间的跨数据中心访问,LAN1与ENDOE2之间的跨数据中心访问为普通二层以太网之间的访问,在此不再赘述。It should be noted that the inter-data center access between LAN1 and LAN2, and the inter-data center access between LAN1 and ENDOE2 are accesses between ordinary Layer 2 Ethernets, which will not be repeated here.

针对SAN1与ENODE2之间的跨数据中心访问,其过程包括以下步骤:For cross-data center access between SAN1 and ENODE2, the process includes the following steps:

步骤1、FC1接收来自SAN1网络中主机的FC报文,利用该FC报文中携带的目的FC ID查询本地FC路由表,如果其出接口为FC1与FCF1连接的VFC接口,则通过该VFC接口将该FC报文转发给FCF1。Step 1. FC1 receives the FC packet from the host on the SAN1 network, uses the destination FC ID carried in the FC packet to query the local FC routing table, and if its outbound interface is the VFC interface connected to FC1 and FCF1, it passes through the VFC interface Forward the FC message to FCF1.

步骤2、FCF1接收来自FC1的FC报文,利用该FC报文中携带的目的FC ID查询本地FC路由表,如果查询结果为FC报文的下一跳为FCF2,则FCF1确定FC报文的出接口为VFC虚连接。Step 2. FCF1 receives the FC message from FC1, and uses the destination FC ID carried in the FC message to query the local FC routing table. If the query result shows that the next hop of the FC message is FCF2, then FCF1 determines the FC message's The outgoing interface is a VFC virtual connection.

步骤3、FCF1对FC报文进行GRE隧道封装,并通过FCF1与FCF2之间的EVI LINK将GRE隧道封装后的FC报文发送给FCF2。Step 3: FCF1 performs GRE tunnel encapsulation on the FC message, and sends the FC message encapsulated by the GRE tunnel to FCF2 through the EVI LINK between FCF1 and FCF2.

本发明实施例中,GRE隧道头中的目的IP地址为FCF2的IP地址,GRE隧道头中的源IP地址为FCF1的IP地址,且GRE隧道头中的协议类型用于标识GRE隧道头之后的载荷为FC报文,如通过将GRE隧道头中的协议类型设置为0x8906,以用于标识GRE隧道头之后的载荷为FC报文。进一步的,FCF1通过EVI LINK向FCF2发送GRE隧道封装后的FC报文后,该GRE隧道封装后的FC报文将在EVI网络上进行IP转发;由于GRE隧道头中的目的IP地址为FCF2的IP地址,因此GRE隧道封装后的FC报文会转发给FCF2。In the embodiment of the present invention, the destination IP address in the GRE tunnel header is the IP address of FCF2, the source IP address in the GRE tunnel header is the IP address of FCF1, and the protocol type in the GRE tunnel header is used to identify the GRE tunnel header. The payload is an FC packet. For example, by setting the protocol type in the GRE tunnel header to 0x8906, it is used to identify that the payload after the GRE tunnel header is an FC packet. Furthermore, after FCF1 sends the FC message encapsulated by the GRE tunnel to FCF2 through the EVI LINK, the FC message encapsulated by the GRE tunnel will be IP forwarded on the EVI network; since the destination IP address in the GRE tunnel header is FCF2's Therefore, the FC packet encapsulated by the GRE tunnel will be forwarded to FCF2.

步骤4、FCF2在收到GRE隧道封装后的FC报文后,如果识别协议类型用于标识GRE隧道头之后的载荷为FC报文,则对GRE隧道封装后的FC报文进行GRE隧道解封装,即弹掉GRE隧道头,并触发FCoE查找。Step 4. After FCF2 receives the FC packet encapsulated by the GRE tunnel, if the identification protocol type is used to identify the payload after the GRE tunnel header is an FC packet, then perform GRE tunnel decapsulation on the FC packet encapsulated by the GRE tunnel , that is, to pop off the GRE tunnel header and trigger an FCoE lookup.

步骤5、FCF2通过GRE隧道解封装后的FC报文中携带的目的FC ID查询本地FC路由表;如果查询结果为FC报文的出接口为FCF2与ENODE2的接口,则FCF2将FC报文封装成FCoE格式后转发给ENODE2。Step 5. FCF2 queries the local FC routing table for the destination FC ID carried in the FC message decapsulated through the GRE tunnel; if the query result shows that the outbound interface of the FC message is the interface between FCF2 and ENODE2, FCF2 encapsulates the FC message After being converted into FCoE format, it is forwarded to ENODE2.

步骤6、ENODE2收到FCoE格式的报文之后,如果需要向SAN1网络中主机回应报文,则向FCF2发送FCoE报文。其中,该FCoE报文的目的MAC地址为FCF2的FCoE MAC地址,源MAC为ENODE2的MAC地址。Step 6. After ENODE2 receives the message in FCoE format, if it needs to respond to the message to the host in the SAN1 network, it sends the FCoE message to FCF2. Wherein, the destination MAC address of the FCoE message is the FCoE MAC address of FCF2, and the source MAC is the MAC address of ENODE2.

步骤7、FCF2接收来自ENODE2的FCoE报文,且目的MAC地址为本FCF2的FCoE MAC地址,则触发FCoE查找,并利用该FCoE报文中携带的目的FC ID查询本地FC路由表;如果查询结果为FCoE报文的下一跳为FCF1,则FCF2确定FCoE报文的出接口为VFC虚连接,并利用VFC虚连接的MAC地址设置FCoE报文的目的MAC地址为FCF1的FCoE MAC地址。Step 7, FCF2 receives the FCoE message from ENODE2, and the destination MAC address is the FCoE MAC address of this FCF2, then triggers the FCoE search, and uses the destination FC ID carried in the FCoE message to query the local FC routing table; if the query result If the next hop of the FCoE packet is FCF1, FCF2 determines that the outbound interface of the FCoE packet is the VFC virtual connection, and uses the MAC address of the VFC virtual connection to set the destination MAC address of the FCoE packet to the FCoE MAC address of FCF1.

步骤8、FCF2对FCoE报文进行GRE隧道封装,并通过FCF2与FCF1之间的EVI LINK将GRE隧道封装后的FCoE报文发送给FCF1。Step 8: FCF2 performs GRE tunnel encapsulation on the FCoE message, and sends the FCoE message encapsulated by the GRE tunnel to FCF1 through the EVI LINK between FCF2 and FCF1.

本发明实施例中,GRE隧道头中的目的IP地址为FCF1的IP地址,GRE隧道头中的源IP地址为FCF2的IP地址,且GRE隧道头中的协议类型用于标识GRE隧道头之后的载荷为FCoE报文,如通过将GRE隧道头中的协议类型设置为0x8907,以用于标识GRE隧道头之后的载荷为FCoE报文。FCF2通过EVI LINK向FCF1发送GRE隧道封装后的FCoE报文后,该GRE隧道封装后的FCoE报文将在EVI网络上进行IP转发;由于GRE隧道头中的目的IP地址为FCF1的IP地址,因此GRE隧道封装后的FCoE报文会转发给FCF1。In the embodiment of the present invention, the destination IP address in the GRE tunnel header is the IP address of FCF1, the source IP address in the GRE tunnel header is the IP address of FCF2, and the protocol type in the GRE tunnel header is used to identify the GRE tunnel header. The payload is an FCoE packet. For example, by setting the protocol type in the GRE tunnel header to 0x8907, it is used to identify that the payload after the GRE tunnel header is an FCoE packet. After FCF2 sends the FCoE packet encapsulated by the GRE tunnel to FCF1 through the EVI LINK, the FCoE packet encapsulated by the GRE tunnel will be IP forwarded on the EVI network; since the destination IP address in the GRE tunnel header is the IP address of FCF1, Therefore, the FCoE packets encapsulated by the GRE tunnel will be forwarded to FCF1.

步骤9、FCF1在收到GRE隧道封装后的FCoE报文后,如果识别协议类型用于标识GRE隧道头之后的载荷为FCoE报文,则对GRE隧道封装后的FCoE报文进行GRE隧道解封装,即弹掉GRE隧道头,并触发FCoE查找。Step 9. After FCF1 receives the FCoE packet encapsulated by the GRE tunnel, if the identification protocol type is used to identify the payload after the GRE tunnel header is an FCoE packet, perform GRE tunnel decapsulation on the FCoE packet encapsulated by the GRE tunnel , that is, to pop off the GRE tunnel header and trigger an FCoE lookup.

步骤10、FCF1在确定GRE隧道解封装后的FCoE报文的目的MAC地址为本FCF1的FCoEMAC地址时,通过GRE隧道解封装后的FCoE报文中携带的目的FC ID查询本地FC路由表;如果查询结果为FCoE报文的出接口为FCF1与FC1的接口,则FCF1将FCoE报文封装成FC格式后转发给FC1。Step 10, when FCF1 determines that the destination MAC address of the FCoE message decapsulated by the GRE tunnel is the FCoEMAC address of this FCF1, it queries the local FC routing table through the destination FC ID carried in the FCoE message decapsulated by the GRE tunnel; if If the query result shows that the outbound interface of the FCoE packet is the interface between FCF1 and FC1, FCF1 encapsulates the FCoE packet into FC format and forwards it to FC1.

步骤11、FC1在收到来自FCF1的FC报文后,利用该FC报文中携带的目的FC ID查询本地FC路由表,如果其出接口为FC1与SAN1网络中主机连接的接口,则通过该接口将该FC报文转发给SAN1网络中主机。Step 11. After receiving the FC packet from FCF1, FC1 uses the destination FC ID carried in the FC packet to query the local FC routing table. The interface forwards the FC packet to the hosts on the SAN1 network.

针对SAN1与SAN2之间的跨数据中心访问,其过程包括以下步骤:For cross-data center access between SAN1 and SAN2, the process includes the following steps:

步骤1、FC1接收来自SAN1网络中主机的FC报文,利用该FC报文中携带的目的FC ID查询本地FC路由表,如果其出接口为FC1与FCF1连接的VFC接口,则通过该VFC接口将该FC报文转发给FCF1。Step 1. FC1 receives the FC packet from the host on the SAN1 network, uses the destination FC ID carried in the FC packet to query the local FC routing table, and if its outbound interface is the VFC interface connected to FC1 and FCF1, it passes through the VFC interface Forward the FC message to FCF1.

步骤2、FCF1接收来自FC1的FC报文,利用该FC报文中携带的目的FC ID查询本地FC路由表,如果查询结果为FC报文的下一跳为FCF2,则FCF1确定FC报文的出接口为VFC虚连接。Step 2. FCF1 receives the FC message from FC1, and uses the destination FC ID carried in the FC message to query the local FC routing table. If the query result shows that the next hop of the FC message is FCF2, then FCF1 determines the FC message's The outgoing interface is a VFC virtual connection.

步骤3、FCF1对FC报文进行GRE隧道封装,并通过FCF1与FCF2之间的EVI LINK将GRE隧道封装后的FC报文发送给FCF2。Step 3: FCF1 performs GRE tunnel encapsulation on the FC message, and sends the FC message encapsulated by the GRE tunnel to FCF2 through the EVI LINK between FCF1 and FCF2.

本发明实施例中,GRE隧道头中的目的IP地址为FCF2的IP地址,GRE隧道头中的源IP地址为FCF1的IP地址,且GRE隧道头中的协议类型用于标识GRE隧道头之后的载荷为FC报文,如通过将GRE隧道头中的协议类型设置为0x8906,以用于标识GRE隧道头之后的载荷为FC报文。进一步的,FCF1通过EVI LINK向FCF2发送GRE隧道封装后的FC报文后,该GRE隧道封装后的FC报文将在EVI网络上进行IP转发;由于GRE隧道头中的目的IP地址为FCF2的IP地址,因此GRE隧道封装后的FC报文会转发给FCF2。In the embodiment of the present invention, the destination IP address in the GRE tunnel header is the IP address of FCF2, the source IP address in the GRE tunnel header is the IP address of FCF1, and the protocol type in the GRE tunnel header is used to identify the GRE tunnel header. The payload is an FC packet. For example, by setting the protocol type in the GRE tunnel header to 0x8906, it is used to identify that the payload after the GRE tunnel header is an FC packet. Furthermore, after FCF1 sends the FC message encapsulated by the GRE tunnel to FCF2 through the EVI LINK, the FC message encapsulated by the GRE tunnel will be IP forwarded on the EVI network; since the destination IP address in the GRE tunnel header is FCF2's Therefore, the FC packet encapsulated by the GRE tunnel will be forwarded to FCF2.

步骤4、FCF2在收到GRE隧道封装后的FC报文后,如果识别协议类型用于标识GRE隧道头之后的载荷为FC报文,则对GRE隧道封装后的FC报文进行GRE隧道解封装,即弹掉GRE隧道头,并触发FCoE查找。Step 4. After FCF2 receives the FC packet encapsulated by the GRE tunnel, if the identification protocol type is used to identify the payload after the GRE tunnel header is an FC packet, then perform GRE tunnel decapsulation on the FC packet encapsulated by the GRE tunnel , that is, to pop off the GRE tunnel header and trigger an FCoE lookup.

步骤5、FCF2通过GRE隧道解封装后的FC报文中携带的目的FC ID查询本地FC路由表;如果查询结果为FC报文的出接口为FCF2与FC2的接口,则FCF2将FC报文封装成FC格式后转发给FC2。Step 5. FCF2 queries the local FC routing table for the destination FC ID carried in the FC message decapsulated by the GRE tunnel; if the query result shows that the outbound interface of the FC message is the interface between FCF2 and FC2, FCF2 encapsulates the FC message After being converted into FC format, it is forwarded to FC2.

步骤6、FC2在收到来自FCF2的FC报文后,利用该FC报文中携带的目的FC ID查询本地FC路由表,如果其出接口为FC2与SAN2网络中主机连接的接口,则通过该接口将该FC报文转发给SAN2网络中主机。Step 6. After receiving the FC packet from FCF2, FC2 uses the destination FC ID carried in the FC packet to query the local FC routing table. The interface forwards the FC packet to the hosts on the SAN2 network.

进一步的,FC2接收来自SAN2网络中主机的FC报文,利用该FC报文中携带的目的FCID查询本地FC路由表,如果其出接口为FC2与FCF2连接的VFC接口,则通过该VFC接口将该FC报文转发给FCF2。Further, FC2 receives the FC message from the host in the SAN2 network, uses the destination FCID carried in the FC message to query the local FC routing table, and if its outbound interface is the VFC interface connected to FC2 and FCF2, then the The FC packet is forwarded to FCF2.

步骤7、FCF2接收来自FCF2的FC报文,利用该FC报文中携带的目的FC ID查询本地FC路由表,如果查询结果为FC报文的下一跳为FCF1,则FCF2确定FC报文的出接口为VFC虚连接。Step 7. FCF2 receives the FC message from FCF2, and uses the destination FC ID carried in the FC message to query the local FC routing table. If the query result shows that the next hop of the FC message is FCF1, then FCF2 determines the address of the FC message. The outgoing interface is a VFC virtual connection.

步骤8、FCF2对FC报文进行GRE隧道封装,并通过FCF2与FCF1之间的EVI LINK将GRE隧道封装后的FC报文发送给FCF1。Step 8: FCF2 performs GRE tunnel encapsulation on the FC message, and sends the FC message encapsulated by the GRE tunnel to FCF1 through the EVI LINK between FCF2 and FCF1.

本发明实施例中,GRE隧道头中的目的IP地址为FCF1的IP地址,GRE隧道头中的源IP地址为FCF2的IP地址,且GRE隧道头中的协议类型用于标识GRE隧道头之后的载荷为FC报文,如通过将GRE隧道头中的协议类型设置为0x8906,以用于标识GRE隧道头之后的载荷为FC报文。进一步的,FCF2通过EVI LINK向FCF1发送GRE隧道封装后的FC报文后,该GRE隧道封装后的FC报文将在EVI网络上进行IP转发;由于GRE隧道头中的目的IP地址为FCF1的IP地址,因此GRE隧道封装后的FC报文会转发给FCF1。In the embodiment of the present invention, the destination IP address in the GRE tunnel header is the IP address of FCF1, the source IP address in the GRE tunnel header is the IP address of FCF2, and the protocol type in the GRE tunnel header is used to identify the GRE tunnel header. The payload is an FC packet. For example, by setting the protocol type in the GRE tunnel header to 0x8906, it is used to identify that the payload after the GRE tunnel header is an FC packet. Furthermore, after FCF2 sends the FC message encapsulated by the GRE tunnel to FCF1 through the EVI LINK, the FC message encapsulated by the GRE tunnel will be IP forwarded on the EVI network; since the destination IP address in the GRE tunnel header is FCF1's Therefore, the FC packet encapsulated by the GRE tunnel will be forwarded to FCF1.

步骤9、FCF1在收到GRE隧道封装后的FC报文后,如果识别协议类型用于标识GRE隧道头之后的载荷为FC报文,则对GRE隧道封装后的FC报文进行GRE隧道解封装,即弹掉GRE隧道头,并触发FCoE查找。Step 9. After FCF1 receives the FC packet encapsulated by the GRE tunnel, if the identification protocol type is used to identify the payload after the GRE tunnel header is an FC packet, then perform GRE tunnel decapsulation on the FC packet encapsulated by the GRE tunnel , that is, to pop off the GRE tunnel header and trigger an FCoE lookup.

步骤10、FCF1通过GRE隧道解封装后的FC报文中携带的目的FC ID查询本地FC路由表;如果查询结果为FC报文的出接口为FCF1与FC1的接口,则FCF1将FC报文封装成FC格式后转发给FC1。Step 10: FCF1 queries the local FC routing table for the destination FC ID carried in the FC packet decapsulated by the GRE tunnel; if the query result shows that the outbound interface of the FC packet is the interface between FCF1 and FC1, then FCF1 encapsulates the FC packet After being converted into FC format, it is forwarded to FC1.

步骤11、FC1在收到来自FCF1的FC报文后,利用该FC报文中携带的目的FC ID查询本地FC路由表,如果其出接口为FC1与SAN1网络中主机连接的接口,则通过该接口将该FC报文转发给SAN1网络中主机。Step 11. After receiving the FC packet from FCF1, FC1 uses the destination FC ID carried in the FC packet to query the local FC routing table. The interface forwards the FC packet to the hosts on the SAN1 network.

情况二、如图4所示,为不同数据中心之间通过MPLS网络互联的组网示意图,每个FCF设备作为FCoE网络的边缘设备,同时也作为MPLS网络的运营商边缘设备,即FCF设备支持MPLS业务和FCoE业务。本端FCF设备与对端FCF设备之间存在PW虚链路,该PW虚链路为Layer2VPN(Layer2Virtual Private Network,二层虚拟专用网络)的PW。以两个FCF设备为例进行说明,两个FCF设备分别为FCF1和FCF2。FCF1为本端FCF设备,FCF2为对端FCF设备,或者,FCF2为本端FCF设备,FCF1为对端FCF设备。为了方便描述,以FCF1为本端FCF设备,FCF2为对端FCF设备为例进行说明。Situation 2: As shown in Figure 4, it is a schematic diagram of a network interconnection between different data centers through an MPLS network. Each FCF device is used as an edge device of the FCoE network and also as an operator's edge device of the MPLS network, that is, the FCF device supports MPLS service and FCoE service. There is a PW virtual link between the local FCF device and the remote FCF device, and the PW virtual link is a Layer2VPN (Layer2Virtual Private Network, Layer 2 virtual private network) PW. Two FCF devices are used as an example for illustration. The two FCF devices are FCF1 and FCF2. FCF1 is the local FCF device, FCF2 is the peer FCF device, or FCF2 is the local FCF device, and FCF1 is the peer FCF device. For convenience of description, take FCF1 as the local FCF device and FCF2 as the remote FCF device as an example for illustration.

在此组网情况下,针对步骤201,本端FCF设备建立本端FCF设备与对端FCF设备之间的VFC虚连接的过程,具体包括但不限于如下方式:In this networking situation, for step 201, the local FCF device establishes a VFC virtual connection process between the local FCF device and the peer FCF device, specifically including but not limited to the following methods:

方式一、由本端FCF设备(FCF1)触发建立本端FCF设备与对端FCF设备(FCF2)之间的VFC虚连接,该方式具体包括如下步骤:Method 1. The local FCF device (FCF1) triggers the establishment of a VFC virtual connection between the local FCF device and the remote FCF device (FCF2). This method specifically includes the following steps:

步骤1、FCF1生成用于建立VFC虚连接的基于FIP协议的发现请求报文,且该发现请求报文中携带本FCF1的FCoE MAC地址。Step 1. FCF1 generates a discovery request packet based on the FIP protocol for establishing a VFC virtual connection, and the discovery request packet carries the FCoE MAC address of the FCF1.

步骤2、FCF1对该发现请求报文进行MPLS隧道封装。其中,在MPLS隧道封装之后的发现请求报文中,MPLS隧道头中包括公网Tunnel(隧道)标签(即外层标签)、PW VC标签(即内层标签)、Flow Label(流标签)标签或者Control Word(控制字)标签;进一步的,上述Flow Label标签或者Control Word标签标识当前报文用于建立VFC虚连接。Step 2, FCF1 performs MPLS tunnel encapsulation on the discovery request message. Among them, in the discovery request message after MPLS tunnel encapsulation, the MPLS tunnel header includes the public network Tunnel (tunnel) label (that is, the outer layer label), the PW VC label (that is, the inner layer label), and the Flow Label (flow label) label or a Control Word (control word) label; further, the above-mentioned Flow Label label or Control Word label identifies that the current message is used to establish a VFC virtual connection.

本发明实施例中,对当前PW虚链路所采用的标签技术进行了扩展,在当前PW虚链路采用的公网Tunnel标签和PW VC标签的基础上,为PW虚链路配置Control Word标签或者Flowe Label标签,以通过Flow Label标签或者Control Word标签标识当前报文用于建立VFC虚连接。In the embodiment of the present invention, the label technology adopted by the current PW virtual link is extended, and the Control Word label is configured for the PW virtual link on the basis of the public network Tunnel label and the PW VC label adopted by the current PW virtual link Or the Flow Label tag, to use the Flow Label tag or the Control Word tag to identify the current packet for establishing a VFC virtual connection.

步骤3、FCF1通过PW虚链路将MPLS隧道封装之后的发现请求报文发送给FCF2。其中,该PW虚链路为FCF1与FCF2之间的PW虚链路。Step 3: FCF1 sends the MPLS tunnel-encapsulated discovery request message to FCF2 through the PW virtual link. Wherein, the PW virtual link is a PW virtual link between FCF1 and FCF2.

具体的,在FCoE网络中,各FCF设备之间需要使用FIP进行远程的VFC虚连接的创建。基于此,FCF1会生成用于建立VFC虚连接的发现请求报文,对该发现请求报文进行MPLS隧道封装,并向PW虚链路对端的FCF2发送MPLS隧道封装之后的发现请求报文,以开始建立VFC虚连接。其中,该发现请求报文中携带本FCF1的FCoE MAC地址,MPLS隧道头中包括公网Tunnel标签、PW VC标签、Flow Label标签或者Control Word标签,且Flow Label标签或者Control Word标签标识当前报文用于建立VFC虚连接。Specifically, in an FCoE network, FIP needs to be used between FCF devices to establish a remote VFC virtual connection. Based on this, FCF1 will generate a discovery request packet for establishing a VFC virtual connection, perform MPLS tunnel encapsulation on the discovery request packet, and send the MPLS tunnel-encapsulated discovery request packet to FCF2 at the opposite end of the PW virtual link to Start to establish the VFC virtual connection. Among them, the discovery request message carries the FCoE MAC address of this FCF1, and the MPLS tunnel header includes the public network Tunnel label, PW VC label, Flow Label label or Control Word label, and the Flow Label label or Control Word label identifies the current message It is used to establish a VFC virtual connection.

进一步的,FCF1通过PW虚链路向FCF2发送MPLS隧道封装后的发现请求报文后,该MPLS隧道封装后的发现请求报文将在MPLS网络进行标签转发;MPLS隧道封装后的发现请求报文在MPLS网络中以公网Tunnel标签进行标签转发,且MPLS隧道封装后的发现请求报文最终会被转发给FCF2。Further, after FCF1 sends the MPLS tunnel-encapsulated discovery request message to FCF2 through the PW virtual link, the MPLS tunnel-encapsulated discovery request message will be forwarded with a label on the MPLS network; the MPLS tunnel-encapsulated discovery request message On the MPLS network, the public network tunnel label is used for label forwarding, and the discovery request packet encapsulated by the MPLS tunnel will be forwarded to FCF2.

步骤4、FCF2在收到MPLS隧道封装后的发现请求报文后,如果识别Flow Label标签或者Control Word标签标识当前报文用于建立VFC虚连接,则对MPLS隧道封装后的发现请求报文进行隧道解封装,以得到发现请求报文,并利用发现请求报文中携带的FCF1的FCoEMAC地址建立FCF2与FCF1之间的VFC虚连接,且该VFC虚连接的MAC地址为FCF1的FCoE MAC地址。Step 4. After FCF2 receives the discovery request message encapsulated by the MPLS tunnel, if it recognizes the Flow Label label or the Control Word label to identify the current message as being used to establish a VFC virtual connection, it will perform a check on the discovery request message encapsulated by the MPLS tunnel Tunnel decapsulation to obtain the discovery request message, and use the FCoEMAC address of FCF1 carried in the discovery request message to establish a VFC virtual connection between FCF2 and FCF1, and the MAC address of the VFC virtual connection is the FCoE MAC address of FCF1.

本发明实施例中,需要预先在FCF1和FCF2上配置Flow Label标签或者ControlWord标签,包括发送Flow Label标签和接收Flow Lable标签、或者发送Control Word标签和接收Control Word标签。其中,FCF1的发送Flow Lable标签等于FCF2的接收Flow Label标签,FCF1的接收Flow Lable标签等于FCF2的发送Flow Label标签;或者,FCF1的发送Control Word标签等于FCF2的接收Control Word标签,FCF1的接收Control Word标签等于FCF2的发送Control Word标签。基于此,FCF2收到MPLS隧道封装后的发现请求报文后,MPLS隧道头中包括PW VC标签、Flow Label标签或者Control Word标签,且FCF2能够根据PW VC标签、Flow Label标签或者Control Word标签识别Flow Label标签或者Control Word标签标识当前报文用于建立VFC虚连接。In the embodiment of the present invention, it is necessary to pre-configure Flow Label tags or ControlWord tags on FCF1 and FCF2, including sending Flow Label tags and receiving Flow Label tags, or sending Control Word tags and receiving Control Word tags. Among them, the sending Flow Label of FCF1 is equal to the receiving Flow Label of FCF2, and the receiving Flow Label of FCF1 is equal to the sending Flow Label of FCF2; or, the sending Control Word of FCF1 is equal to the receiving Control Word of FCF2, and the receiving Control of FCF1 The Word tag is equal to the Send Control Word tag of FCF2. Based on this, after FCF2 receives the discovery request packet encapsulated by the MPLS tunnel, the MPLS tunnel header includes the PW VC label, Flow Label label, or Control Word label, and FCF2 can identify it based on the PW VC label, Flow Label label, or Control Word label. The Flow Label or Control Word label indicates that the current packet is used to establish a VFC virtual connection.

步骤5、FCF2生成用于建立VFC虚连接的发现通告报文,该发现通告报文中携带本FCF2的FCoE MAC地址,且该发现通告报文为发现请求报文的响应报文,且该发现通告报文为基于FIP的发现通告报文。Step 5, FCF2 generates a discovery notification message for establishing a VFC virtual connection, the discovery notification message carries the FCoE MAC address of the FCF2, and the discovery notification message is a response message to the discovery request message, and the discovery notification message The notification message is a FIP-based discovery notification message.

步骤6、FCF2对该发现通告报文进行MPLS隧道封装。其中,在MPLS隧道封装之后的发现通告报文中,MPLS隧道头中包括公网Tunnel标签、PW VC标签、Flow Label标签或者Control Word标签;进一步的,上述Flow Label标签或者Control Word标签标识当前报文用于建立VFC虚连接。Step 6: FCF2 performs MPLS tunnel encapsulation on the discovery notification message. Wherein, in the discovery notification message after the MPLS tunnel encapsulation, the MPLS tunnel header includes the public network Tunnel label, the PW VC label, the Flow Label label or the Control Word label; further, the above Flow Label label or the Control Word label identifies the current report The file is used to establish a VFC virtual connection.

步骤7、FCF2通过PW虚链路将MPLS隧道封装之后的发现通告报文发送给FCF1。其中,该PW虚链路为FCF2与FCF1之间的PW虚链路。Step 7: FCF2 sends the MPLS tunnel-encapsulated discovery notification message to FCF1 through the PW virtual link. Wherein, the PW virtual link is a PW virtual link between FCF2 and FCF1.

具体的,在FCoE网络中,各FCF设备之间需要使用FIP进行远程的VFC虚连接的创建。基于此,FCF1会生成用于建立VFC虚连接的发现通告报文,对该发现通告报文进行MPLS隧道封装,并向PW虚链路对端的FCF1发送MPLS隧道封装之后的发现通告报文,以建立VFC虚连接。其中,该发现通告报文中携带本FCF2的FCoE MAC地址,MPLS隧道头中包括公网Tunnel标签、PW VC标签、Flow Label标签或者Control Word标签,且Flow Label标签或者ControlWord标签标识当前报文用于建立VFC虚连接。Specifically, in an FCoE network, FIP needs to be used between FCF devices to establish a remote VFC virtual connection. Based on this, FCF1 will generate a Discovery Advertisement message for establishing a VFC virtual connection, encapsulate the Discovery Advertisement message with an MPLS tunnel, and send the MPLS tunnel-encapsulated Discovery Advertisement message to FCF1 at the peer end of the PW virtual link, to Create a VFC virtual connection. Among them, the FCoE MAC address of the FCF2 is carried in the discovery notification message, and the MPLS tunnel header includes the public network Tunnel label, PW VC label, Flow Label label or Control Word label, and the Flow Label label or ControlWord label identifies the current message. To establish a VFC virtual connection.

进一步的,FCF2通过PW虚链路向FCF1发送MPLS隧道封装后的发现通告报文后,该MPLS隧道封装后的发现通告报文将在MPLS网络进行标签转发;MPLS隧道封装后的发现通告报文在MPLS网络中以公网Tunnel标签进行标签转发,且MPLS隧道封装后的发现通告报文最终会被转发给FCF1。Further, after FCF2 sends the MPLS tunnel-encapsulated discovery notification message to FCF1 through the PW virtual link, the MPLS tunnel-encapsulated discovery notification message will be forwarded with labels on the MPLS network; the MPLS tunnel-encapsulated discovery notification message On the MPLS network, the public network tunnel label is used for label forwarding, and the MPLS tunnel-encapsulated Discovery Advertisement packet will eventually be forwarded to FCF1.

步骤8、FCF1在收到MPLS隧道封装后的发现通告报文后,如果识别Flow Label标签或者Control Word标签标识当前报文用于建立VFC虚连接,则对MPLS隧道封装后的发现通告报文进行隧道解封装,以得到发现通告报文,并利用发现通告报文中携带的FCF2的FCoEMAC地址建立FCF1与FCF2之间的VFC虚连接,且VFC虚连接的MAC地址为FCF2的FCoE MAC地址。Step 8. After FCF1 receives the MPLS tunnel-encapsulated discovery notification message, if it recognizes the Flow Label label or the Control Word label to identify the current message as being used to establish a VFC virtual connection, it will perform a check on the MPLS tunnel-encapsulated discovery notification message. Tunnel decapsulation to obtain the discovery notification message, and use the FCoEMAC address of FCF2 carried in the discovery notification message to establish a VFC virtual connection between FCF1 and FCF2, and the MAC address of the VFC virtual connection is the FCoE MAC address of FCF2.

本发明实施例中,FCF1利用发现通告报文中携带的FCF2的FCoE MAC地址建立FCF1与FCF2之间的VFC虚连接的过程中,FCF2周期性向FCF1发送非请求发现通告报文,该非请求发现通告报文的MPLS隧道封装方式与发现通告报文的MPLS隧道封装方式相同,在此不再赘述;FCF1在收到FCF2发送的非请求发现通告报文后,利用发现通告报文中携带的FCF2的FCoE MAC地址建立FCF1与FCF2间的VFC虚连接。FCF2利用发现请求报文中携带的FCF1的FCoE MAC地址建立FCF2与FCF1之间的VFC虚连接的过程中,FCF1周期性向FCF2发送非请求发现通告报文,该非请求发现通告报文的MPLS隧道封装方式与发现请求报文的MPLS隧道封装方式相同,在此不再赘述;FCF2在收到FCF1发送的非请求发现通告报文后,利用发现请求报文中携带的FCF1的FCoE MAC地址建立FCF2与FCF1间的VFC虚连接。In the embodiment of the present invention, when FCF1 uses the FCoE MAC address of FCF2 carried in the discovery notification message to establish a VFC virtual connection between FCF1 and FCF2, FCF2 periodically sends an unsolicited discovery notification message to FCF1. The MPLS tunnel encapsulation method of the advertisement message is the same as the MPLS tunnel encapsulation method of the discovery advertisement message, and will not be repeated here; after receiving the unsolicited discovery advertisement message sent by FCF2, FCF1 uses the FCF2 FCoE MAC address to establish a VFC virtual connection between FCF1 and FCF2. When FCF2 uses the FCoE MAC address of FCF1 carried in the discovery request message to establish the VFC virtual connection between FCF2 and FCF1, FCF1 periodically sends an unsolicited discovery advertisement message to FCF2. The MPLS tunnel of the unsolicited discovery advertisement message The encapsulation method is the same as the MPLS tunnel encapsulation method of the discovery request message, and will not be repeated here; after receiving the unsolicited discovery notification message sent by FCF1, FCF2 uses the FCoE MAC address of FCF1 carried in the discovery request message to establish FCF2 VFC virtual connection with FCF1.

本发明实施例中,FCF1和FCF2还需要通过周期性发送非请求发现通告报文来维护建立的VFC虚连接。具体的,FCF2周期性向FCF1发送非请求发现通告报文,如果FCF1在指定时间间隔内没有接收到来自FCF2的非请求发现通告报文,则删除FCF1与FCF2之间的VFC虚连接。FCF1周期性向FCF2发送非请求发现通告报文,如果FCF2在指定时间间隔内没有接收到来自FCF1的非请求发现通告报文,则删除FCF2与FCF1之间的VFC虚连接。In the embodiment of the present invention, FCF1 and FCF2 also need to periodically send unsolicited discovery notification messages to maintain the established VFC virtual connection. Specifically, FCF2 periodically sends an Unsolicited Discovery Advertisement message to FCF1, and if FCF1 does not receive an Unsolicited Discovery Advertisement message from FCF2 within a specified time interval, the VFC virtual connection between FCF1 and FCF2 is deleted. FCF1 periodically sends an Unsolicited Discovery Advertisement message to FCF2. If FCF2 does not receive an Unsolicited Discovery Advertisement message from FCF1 within a specified time interval, the VFC virtual connection between FCF2 and FCF1 is deleted.

方式二、由对端FCF设备(FCF2)触发建立对端FCF设备与本端FCF设备(FCF1)之间的VFC虚连接,该方式具体包括如下步骤:Method 2. The peer FCF device (FCF2) triggers the establishment of a VFC virtual connection between the peer FCF device and the local FCF device (FCF1). This method specifically includes the following steps:

步骤1、FCF2生成用于建立VFC虚连接的基于FIP协议的发现请求报文,且该发现请求报文中携带本FCF2的FCoE MAC地址。Step 1. FCF2 generates a discovery request message based on the FIP protocol for establishing a VFC virtual connection, and the discovery request message carries the FCoE MAC address of the FCF2.

步骤2、FCF2对该发现请求报文进行MPLS隧道封装。其中,在MPLS隧道封装之后的发现请求报文中,MPLS隧道头中包括公网Tunnel标签、PW VC标签、Flow Label标签或者Control Word标签;进一步的,上述Flow Label标签或者Control Word标签标识当前报文用于建立VFC虚连接。Step 2, FCF2 performs MPLS tunnel encapsulation on the discovery request message. Wherein, in the discovery request message after MPLS tunnel encapsulation, include public network Tunnel label, PW VC label, Flow Label label or Control Word label in MPLS tunnel header; Further, above-mentioned Flow Label label or Control Word label identify current report The file is used to establish a VFC virtual connection.

步骤3、FCF2通过PW虚链路将MPLS隧道封装之后的发现请求报文发送给FCF1。其中,该PW虚链路为FCF2与FCF1之间的PW虚链路。Step 3: FCF2 sends the MPLS tunnel-encapsulated discovery request message to FCF1 through the PW virtual link. Wherein, the PW virtual link is a PW virtual link between FCF2 and FCF1.

步骤4、FCF1在收到MPLS隧道封装后的发现请求报文后,如果识别Flow Label标签或者Control Word标签标识当前报文用于建立VFC虚连接,则对MPLS隧道封装后的发现请求报文进行隧道解封装,以得到发现请求报文,并利用发现请求报文中携带的FCF2的FCoEMAC地址建立FCF1与FCF2之间的VFC虚连接,且该VFC虚连接的MAC地址为FCF2的FCoE MAC地址。Step 4. After FCF1 receives the discovery request message encapsulated by the MPLS tunnel, if it recognizes that the Flow Label label or the Control Word label identifies the current message as being used to establish a VFC virtual connection, it will perform a check on the discovery request message encapsulated by the MPLS tunnel. Tunnel decapsulation to obtain the discovery request message, and use the FCoEMAC address of FCF2 carried in the discovery request message to establish a VFC virtual connection between FCF1 and FCF2, and the MAC address of the VFC virtual connection is the FCoE MAC address of FCF2.

步骤5、FCF1生成用于建立VFC虚连接的发现通告报文,该发现通告报文中携带本FCF1的FCoE MAC地址,且该发现通告报文为发现请求报文的响应报文,且该发现通告报文为基于FIP的发现通告报文。Step 5, FCF1 generates a discovery notification message for establishing a VFC virtual connection, the discovery notification message carries the FCoE MAC address of the FCF1, and the discovery notification message is a response message to the discovery request message, and the discovery notification message The notification message is a FIP-based discovery notification message.

步骤6、FCF1对该发现通告报文进行MPLS隧道封装。其中,在MPLS隧道封装之后的发现通告报文中,MPLS隧道头中包括公网Tunnel标签、PW VC标签、Flow Label标签或者Control Word标签;进一步的,上述Flow Label标签或者Control Word标签标识当前报文用于建立VFC虚连接。Step 6: FCF1 performs MPLS tunnel encapsulation on the discovery notification message. Wherein, in the discovery notification message after the MPLS tunnel encapsulation, the MPLS tunnel header includes the public network Tunnel label, the PW VC label, the Flow Label label or the Control Word label; further, the above Flow Label label or the Control Word label identifies the current report The file is used to establish a VFC virtual connection.

步骤7、FCF1通过PW虚链路将MPLS隧道封装之后的发现通告报文发送给FCF2。其中,该PW虚链路为FCF1与FCF2之间的PW虚链路。Step 7. FCF1 sends the MPLS tunnel-encapsulated discovery advertisement message to FCF2 through the PW virtual link. Wherein, the PW virtual link is a PW virtual link between FCF1 and FCF2.

步骤8、FCF2在收到MPLS隧道封装后的发现通告报文后,如果识别Flow Label标签或者Control Word标签标识当前报文用于建立VFC虚连接,则对MPLS隧道封装后的发现通告报文进行隧道解封装,以得到发现通告报文,并利用发现通告报文中携带的FCF1的FCoEMAC地址建立FCF2与FCF1之间的VFC虚连接,且VFC虚连接的MAC地址为FCF1的FCoE MAC地址。Step 8. After FCF2 receives the Discovery Advertisement message encapsulated by the MPLS tunnel, if it recognizes the Flow Label label or the Control Word label to identify the current message as being used to establish a VFC virtual connection, then perform Tunnel decapsulation to obtain the discovery notification message, and use the FCoEMAC address of FCF1 carried in the discovery notification message to establish a VFC virtual connection between FCF2 and FCF1, and the MAC address of the VFC virtual connection is the FCoE MAC address of FCF1.

本发明实施例中,FCF1利用发现请求报文中携带的FCF2的FCoE MAC地址建立FCF1与FCF2之间的VFC虚连接的过程中,FCF2周期性向FCF1发送非请求发现通告报文,该非请求发现通告报文的MPLS隧道封装方式与发现通告报文的MPLS隧道封装方式相同,在此不再赘述;FCF1在收到FCF2发送的非请求发现通告报文后,利用发现请求报文中携带的FCF2的FCoE MAC地址建立FCF1与FCF2间的VFC虚连接。FCF2利用发现通告报文中携带的FCF1的FCoE MAC地址建立FCF2与FCF1之间的VFC虚连接的过程中,FCF1周期性向FCF2发送非请求发现通告报文,该非请求发现通告报文的MPLS隧道封装方式与发现请求报文的MPLS隧道封装方式相同,在此不再赘述;FCF2在收到FCF1发送的非请求发现通告报文后,利用发现通告报文中携带的FCF1的FCoE MAC地址建立FCF2与FCF1间的VFC虚连接。In the embodiment of the present invention, when FCF1 uses the FCoE MAC address of FCF2 carried in the discovery request message to establish a VFC virtual connection between FCF1 and FCF2, FCF2 periodically sends an unsolicited discovery notification message to FCF1. The MPLS tunnel encapsulation method of the advertisement message is the same as the MPLS tunnel encapsulation method of the discovery advertisement message, so it will not be repeated here; FCoE MAC address to establish a VFC virtual connection between FCF1 and FCF2. When FCF2 uses the FCoE MAC address of FCF1 carried in the Discovery Advertisement message to establish a VFC virtual connection between FCF2 and FCF1, FCF1 periodically sends an unsolicited Discovery Advertisement message to FCF2. The encapsulation method is the same as the MPLS tunnel encapsulation method of the discovery request message, and will not be repeated here; after receiving the unsolicited discovery notification message sent by FCF1, FCF2 uses the FCoE MAC address of FCF1 carried in the discovery notification message to establish FCF2 VFC virtual connection with FCF1.

本发明实施例中,FCF1和FCF2还需要通过周期性发送非请求发现通告报文来维护建立的VFC虚连接。具体的,FCF2周期性向FCF1发送非请求发现通告报文,如果FCF1在指定时间间隔内没有接收到来自FCF2的非请求发现通告报文,则删除FCF1与FCF2之间的VFC虚连接。FCF1周期性向FCF2发送非请求发现通告报文,如果FCF2在指定时间间隔内没有接收到来自FCF1的非请求发现通告报文,则删除FCF2与FCF1之间的VFC虚连接。In the embodiment of the present invention, FCF1 and FCF2 also need to periodically send unsolicited discovery notification messages to maintain the established VFC virtual connection. Specifically, FCF2 periodically sends an Unsolicited Discovery Advertisement message to FCF1, and if FCF1 does not receive an Unsolicited Discovery Advertisement message from FCF2 within a specified time interval, the VFC virtual connection between FCF1 and FCF2 is deleted. FCF1 periodically sends an Unsolicited Discovery Advertisement message to FCF2. If FCF2 does not receive an Unsolicited Discovery Advertisement message from FCF1 within a specified time interval, the VFC virtual connection between FCF2 and FCF1 is deleted.

基于上述处理,FCF1与FCF2之间在建立了VFC虚连接之后,VFC虚连接相当于FCF1或者FCF2在本地维护的一个VFC接口,且FCF1或者FCF2可以将数据中心内的FC报文或者FCoE报文向另一数据中心发送。Based on the above processing, after the VFC virtual connection is established between FCF1 and FCF2, the VFC virtual connection is equivalent to a VFC interface maintained locally by FCF1 or FCF2, and FCF1 or FCF2 can transmit FC packets or FCoE packets in the data center Send to another data center.

需要说明的是,上述过程详细阐述了FCF1与FCF2之间建立VFC虚连接的过程,与此对应的,对于FCF1与FCF3之间建立VFC虚连接的过程、FCF2与FCF3之间建立VFC虚连接的过程,本发明实施例中不再赘述。It should be noted that the above process describes in detail the process of establishing a VFC virtual connection between FCF1 and FCF2. Correspondingly, for the process of establishing a VFC virtual connection between FCF1 and FCF3, and the process of establishing a VFC virtual connection between The process will not be repeated in the embodiment of the present invention.

如图4所示,FCF1、FCF2和FCF3在不同的数据中心。其中,FCF1在数据中心1内部与LAN1、SAN1、ENODE1分别连接;LAN1为以太网,FCF1和CE1之间的报文为二层以太网报文;SAN1为存储光纤网,FCF1和FC1之间的报文为FC报文;ENODE1为支持FCoE的设备,FCF1和ENDOE1之间的报文为二层以太报文和FCoE报文。FCF2在数据中心2内部与SAN2、ENODE2分别连接;SAN2为存储光纤网,FCF2和FC2之间的报文为FC报文;ENODE2为支持FCoE的点设备,FCF2和ENDOE2之间的报文为二层以太报文和FCoE报文。FCF3在数据中心3内部与LAN3、SAN3、ENODE3分别连接;LAN3为以太网,FCF3和CE3之间的报文为二层以太网报文;SAN3为存储光纤网,FCF3和FC3之间的报文为FC报文;ENODE3为支持FCoE的点设备,FCF3和ENDOE3之间的报文为二层以太报文和FCoE报文。As shown in Figure 4, FCF1, FCF2, and FCF3 are in different data centers. Among them, FCF1 is connected to LAN1, SAN1, and ENODE1 in data center 1 respectively; LAN1 is Ethernet, and the packets between FCF1 and CE1 are Layer 2 Ethernet packets; SAN1 is the storage optical network, and the packets between FCF1 and FC1 The packets are FC packets; ENODE1 is a device supporting FCoE, and the packets between FCF1 and ENDOE1 are Layer 2 Ethernet packets and FCoE packets. FCF2 is connected to SAN2 and ENODE2 in data center 2 respectively; SAN2 is the storage optical network, and the packets between FCF2 and FC2 are FC packets; ENODE2 is a point device supporting FCoE, and the packets between FCF2 and ENDOE2 are two Layer Ethernet packets and FCoE packets. FCF3 is connected to LAN3, SAN3, and ENODE3 in data center 3 respectively; LAN3 is Ethernet, and packets between FCF3 and CE3 are Layer 2 Ethernet packets; SAN3 is a storage optical network, and packets between FCF3 and FC3 FC packets; ENODE3 is a point device supporting FCoE, and the packets between FCF3 and ENDOE3 are Layer 2 Ethernet packets and FCoE packets.

以FCF1和FCF2的处理为例,本发明实施例中,FCF1上建立了FCF1与FCF2之间的VFC虚连接,且FCF2上建立了FCF2与FCF1之间的VFC虚连接后,两个数据中心之间的MAC地址和FC路由将进行同步和学习过程。进一步的,两个数据中心之间的MAC地址同步需要由EVIISIS协议完成;两个数据中心之间的FC路由信息将直接由FSPF协议完成,且EVI网络透传FSPF协议报文以实现不同数据中心的FC路由学习。基于此,FCF1上有数据中心2中的SAN2中的FC路由信息。此外,FCF2上有数据中心1中的LAN1网络中的MAC地址,FCF2上有数据中心1中的SAN1中的FC路由信息。Taking the processing of FCF1 and FCF2 as an example, in the embodiment of the present invention, after the VFC virtual connection between FCF1 and FCF2 is established on FCF1, and the VFC virtual connection between FCF2 and FCF1 is established on FCF2, the connection between the two data centers The MAC addresses and FC routes between them will be synchronized and learned. Further, the MAC address synchronization between the two data centers needs to be completed by the EVISIS protocol; the FC routing information between the two data centers will be directly completed by the FSPF protocol, and the EVI network transparently transmits the FSPF protocol packets to realize the different data centers. FC routing learning. Based on this, there is FC routing information in SAN2 in data center 2 on FCF1. In addition, FCF2 has the MAC address in the LAN1 network in data center 1, and FCF2 has the FC routing information in SAN1 in data center 1.

针对SAN1与ENODE2之间的跨数据中心访问,其过程包括以下步骤:For cross-data center access between SAN1 and ENODE2, the process includes the following steps:

步骤1、FC1接收来自SAN1网络中主机的FC报文,利用该FC报文中携带的目的FC ID查询本地FC路由表,如果其出接口为FC1与FCF1连接的VFC接口,则通过该VFC接口将该FC报文转发给FCF1。Step 1. FC1 receives the FC packet from the host on the SAN1 network, uses the destination FC ID carried in the FC packet to query the local FC routing table, and if its outbound interface is the VFC interface connected to FC1 and FCF1, it passes through the VFC interface Forward the FC packet to FCF1.

步骤2、FCF1接收来自FC1的FC报文,利用该FC报文中携带的目的FC ID查询本地FC路由表,如果查询结果为FC报文的下一跳为FCF2,则FCF1确定FC报文的出接口为VFC虚连接。Step 2. FCF1 receives the FC message from FC1, and uses the destination FC ID carried in the FC message to query the local FC routing table. If the query result shows that the next hop of the FC message is FCF2, then FCF1 determines the FC message's The outgoing interface is a VFC virtual connection.

步骤3、FCF1对FC报文进行MPLS隧道封装,并通过FCF1与FCF2之间的PW虚链路将MPLS隧道封装后的FC报文发送给FCF2。Step 3: FCF1 performs MPLS tunnel encapsulation on the FC message, and sends the MPLS tunnel-encapsulated FC message to FCF2 through the PW virtual link between FCF1 and FCF2.

本发明实施例中,MPLS隧道头中包括公网Tunnel标签、PW VC标签、Flow Label标签或者Control Word标签,且Flow Label标签或者Control Word标签用于标识MPLS隧道头之后的载荷为FC报文或者FCoE报文。In the embodiment of the present invention, the MPLS tunnel header includes a public network Tunnel label, a PW VC label, a Flow Label label or a Control Word label, and the Flow Label label or the Control Word label is used to identify that the load after the MPLS tunnel header is an FC message or FCoE packets.

本发明实施例中,为了在PW虚链路上承载FC报文和FCoE报文,对当前PW虚链路所采用的标签技术进行了扩展,在当前PW虚链路采用的公网Tunnel标签和PW VC标签的基础上,可以在PW VC标签后面增加一个Control Word标签或者Flowe Label标签,用于标识MPLS隧道头之后的载荷为FC报文或者FCoE报文。其中,FC报文和FCoE报文所采用的ControlWord标签不同,或者FC报文和FCoE报文所采用的Flowe Label标签不同。In the embodiment of the present invention, in order to carry FC packets and FCoE packets on the PW virtual link, the label technology adopted by the current PW virtual link is extended, and the public network Tunnel label and Based on the PW VC label, a Control Word label or Flow Label label can be added after the PW VC label to identify the payload after the MPLS tunnel header as an FC packet or an FCoE packet. Wherein, the ControlWord used by the FC message and the FCoE message are different, or the Flow Label used by the FC message and the FCoE message are different.

进一步的,为了在PW虚链路上承载FC报文和FCoE报文,需要对当前PW虚链路所采用的标签技术进行扩展,并为PW虚链路配置Flowe Label标签或者Control Word标签。基于此,需要将PW虚链路与所有VSAN(虚拟存储局域网)实例进行关联,允许所有VSAN实例内的VLAN ID通过。Further, in order to carry FC packets and FCoE packets on the PW virtual link, it is necessary to extend the label technology adopted by the current PW virtual link, and configure Flowe Label or Control Word labels for the PW virtual link. Based on this, it is necessary to associate the PW virtual link with all VSAN (Virtual Storage Area Network) instances, and allow the VLAN IDs in all VSAN instances to pass through.

本发明实施例中,FCF1通过PW虚链路向FCF2发送MPLS隧道封装后的FC报文后,该MPLS隧道封装后的FC报文将在MPLS网络进行标签转发;MPLS隧道封装后的FC报文在MPLS网络中以公网Tunnel标签进行标签转发,且MPLS隧道封装后的FC报文最终会被转发给FCF2。In the embodiment of the present invention, after FCF1 sends the FC message encapsulated by the MPLS tunnel to FCF2 through the PW virtual link, the FC message encapsulated by the MPLS tunnel will be forwarded with a label on the MPLS network; the FC message encapsulated by the MPLS tunnel On the MPLS network, the public network tunnel label is used for label forwarding, and the FC packets encapsulated by the MPLS tunnel are finally forwarded to FCF2.

步骤4、FCF2在收到MPLS隧道封装之后的FC报文后,如果识别Flow Label标签或者Control Word标签用于标识MPLS隧道头之后的载荷为FC报文,则FCF2对MPLS隧道封装之后的FC报文进行MPLS隧道解封装,即FCF2弹掉MPLS隧道头,并触发FCoE查找。Step 4. After FCF2 receives the FC packet encapsulated by the MPLS tunnel, if it recognizes that the Flow Label label or the Control Word label is used to identify the payload after the MPLS tunnel header as an FC packet, then FCF2 encapsulates the FC packet over the MPLS tunnel. The file is decapsulated from the MPLS tunnel, that is, FCF2 pops off the MPLS tunnel header and triggers an FCoE search.

步骤5、FCF2通过MPLS隧道解封装后的FC报文中携带的目的FC ID查询本地FC路由表;如果查询结果为FC报文的出接口为FCF2与ENODE2的接口,则FCF2将FC报文封装成FCoE格式后转发给ENODE2。Step 5. FCF2 queries the local FC routing table with the destination FC ID carried in the FC message decapsulated by the MPLS tunnel; if the query result shows that the outbound interface of the FC message is the interface between FCF2 and ENODE2, FCF2 encapsulates the FC message After being converted into FCoE format, it is forwarded to ENODE2.

步骤6、ENODE2收到FCoE格式的报文之后,如果需要向SAN1网络中主机回应报文,则向FCF2发送FCoE报文。其中,该FCoE报文的目的MAC地址为FCF2的FCoE MAC地址,源MAC为ENODE2的MAC地址。Step 6. After ENODE2 receives the message in FCoE format, if it needs to respond to the message to the host in the SAN1 network, it sends the FCoE message to FCF2. Wherein, the destination MAC address of the FCoE message is the FCoE MAC address of FCF2, and the source MAC is the MAC address of ENODE2.

步骤7、FCF2接收来自ENODE2的FCoE报文,且目的MAC地址为本FCF2的FCoE MAC地址,则触发FCoE查找,并利用该FCoE报文中携带的目的FC ID查询本地FC路由表;如果查询结果为FCoE报文的下一跳为FCF1,则FCF2确定FCoE报文的出接口为VFC虚连接,并利用VFC虚连接的MAC地址设置FCoE报文的目的MAC地址为FCF1的FCoE MAC地址。Step 7, FCF2 receives the FCoE message from ENODE2, and the destination MAC address is the FCoE MAC address of this FCF2, then triggers the FCoE search, and uses the destination FC ID carried in the FCoE message to query the local FC routing table; if the query result If the next hop of the FCoE packet is FCF1, FCF2 determines that the outbound interface of the FCoE packet is the VFC virtual connection, and uses the MAC address of the VFC virtual connection to set the destination MAC address of the FCoE packet to the FCoE MAC address of FCF1.

步骤8、FCF2对FCoE报文进行MPLS隧道封装,并通过FCF2与FCF1之间的PW虚链路将MPLS隧道封装后的FCoE报文发送给FCF1。Step 8: FCF2 performs MPLS tunnel encapsulation on the FCoE message, and sends the MPLS tunnel-encapsulated FCoE message to FCF1 through the PW virtual link between FCF2 and FCF1.

本发明实施例中,MPLS隧道头中包括公网Tunnel标签、PW VC标签、Flow Label标签或者Control Word标签,且Flow Label标签或者Control Word标签用于标识MPLS隧道头之后的载荷为FC报文或者FCoE报文。其中,为了在PW虚链路上承载FC报文和FCoE报文,对当前PW虚链路所采用的标签技术进行了扩展,在当前PW虚链路采用的公网Tunnel标签和PWVC标签的基础上,可以在PW VC标签后面增加一个Control Word标签或者Flowe Label标签,用于标识MPLS隧道头之后的载荷为FC报文或者FCoE报文。In the embodiment of the present invention, the MPLS tunnel header includes a public network Tunnel label, a PW VC label, a Flow Label label or a Control Word label, and the Flow Label label or the Control Word label is used to identify that the load after the MPLS tunnel header is an FC message or FCoE packets. Among them, in order to carry FC packets and FCoE packets on the PW virtual link, the label technology adopted by the current PW virtual link is extended. Based on the public network Tunnel label and PWVC label used by the current PW virtual link In addition, you can add a Control Word label or a Flow Label label after the PW VC label to identify the payload after the MPLS tunnel header as an FC packet or an FCoE packet.

进一步的,FCF2通过PW虚链路向FCF1发送MPLS隧道封装后的FCoE报文后,该MPLS隧道封装后的FCoE报文将在MPLS网络进行标签转发;MPLS隧道封装后的FCoE报文在MPLS网络中以公网Tunnel标签进行标签转发,且MPLS隧道封装后的FCoE报文最终会被转发给FCF1。Furthermore, after FCF2 sends the FCoE packet encapsulated by the MPLS tunnel to FCF1 through the PW virtual link, the FCoE packet encapsulated by the MPLS tunnel will be forwarded with a label on the MPLS network; Label forwarding is performed using the public network tunnel label, and the FCoE packets encapsulated by the MPLS tunnel are finally forwarded to FCF1.

步骤9、FCF1在收到MPLS隧道封装后的FCoE报文后,如果如果识别Flow Label标签或者Control Word标签用于标识MPLS隧道头之后的载荷为FCoE报文,则FCF1对MPLS隧道封装后的FCoE报文进行MPLS隧道解封装,即FCF1弹掉MPLS隧道头,并触发FCoE查找。Step 9: After FCF1 receives the FCoE packet encapsulated by the MPLS tunnel, if it recognizes that the Flow Label label or the Control Word label is used to identify the payload behind the MPLS tunnel header as an FCoE packet, then FCF1 encapsulates the FCoE packet over the MPLS tunnel. The packet is decapsulated through the MPLS tunnel, that is, FCF1 pops off the MPLS tunnel header and triggers an FCoE search.

步骤10、FCF1在确定MPLS隧道解封装后的FCoE报文的目的MAC地址为本FCF1的FCoE MAC地址时,通过MPLS隧道解封装后的FCoE报文中携带的目的FC ID查询本地FC路由表;如果查询结果为FCoE报文的出接口为FCF1与FC1的接口,则FCF1将FCoE报文封装成FC格式后转发给FC1。Step 10, when FCF1 determines that the destination MAC address of the FCoE message after MPLS tunnel decapsulation is the FCoE MAC address of this FCF1, query the local FC routing table through the destination FC ID carried in the FCoE message after MPLS tunnel decapsulation; If the query result shows that the outbound interface of the FCoE packet is the interface between FCF1 and FC1, FCF1 encapsulates the FCoE packet into FC format and forwards it to FC1.

步骤11、FC1在收到来自FCF1的FC报文后,利用该FC报文中携带的目的FC ID查询本地FC路由表,如果其出接口为FC1与SAN1网络中主机连接的接口,则通过该接口将该FC报文转发给SAN1网络中主机。Step 11. After receiving the FC packet from FCF1, FC1 uses the destination FC ID carried in the FC packet to query the local FC routing table. The interface forwards the FC packet to the hosts on the SAN1 network.

基于与上述方法同样的发明构思,本发明实施例中还提供了一种FCF设备,作为本端FCF设备应用于包括所述本端FCF设备和对端FCF设备的基于以太网的光纤通道FCoE网络中,所述本端FCF设备和所述对端FCF设备位于不同的数据中心,如图5所示,所述本端FCF设备具体包括:Based on the same inventive concept as the above method, the embodiment of the present invention also provides an FCF device, which is used as a local FCF device and applied to an Ethernet-based Fiber Channel FCoE network including the local FCF device and the peer FCF device Wherein, the local FCF device and the peer FCF device are located in different data centers, as shown in FIG. 5 , the local FCF device specifically includes:

建立模块11,用于建立本端FCF设备与对端FCF设备之间的虚拟光纤通道VFC虚连接,且所述VFC虚连接的介质访问控制MAC地址为所述对端FCF设备的FCoE MAC地址;处理模块12,用于在收到存储网络报文后,通过所述存储网络报文中携带的目的光纤通道标识FCID查询FC路由表;如果查询结果为所述存储网络报文的下一跳为所述对端FCF设备,则确定所述存储网络报文的出接口为所述VFC虚连接,并对所述存储网络报文进行隧道封装;发送模块13,用于将隧道封装后的存储网络报文发送给所述对端FCF设备;由所述对端FCF设备在收到所述隧道封装后的存储网络报文后,对所述隧道封装后的存储网络报文进行隧道解封装,并通过隧道解封装后的存储网络报文中携带的目的FC ID查询FC路由表,并利用查询到的出接口发送隧道解封装后的存储网络报文。The establishment module 11 is used to establish a virtual fiber channel VFC virtual connection between the local FCF device and the peer FCF device, and the media access control MAC address of the VFC virtual connection is the FCoE MAC address of the peer FCF device; The processing module 12 is used to query the FC routing table through the destination fiber channel identifier FCID carried in the storage network message after receiving the storage network message; if the query result is that the next hop of the storage network message is The opposite FCF device determines that the outbound interface of the storage network message is the VFC virtual connection, and performs tunnel encapsulation on the storage network message; the sending module 13 is used to encapsulate the storage network after the tunnel The message is sent to the peer FCF device; after receiving the tunnel-encapsulated storage network message, the peer FCF device performs tunnel decapsulation on the tunnel-encapsulated storage network message, and Query the FC routing table through the destination FC ID carried in the tunnel decapsulated storage network packet, and use the queried outbound interface to send the tunnel decapsulated storage network packet.

当数据中心之间通过以太网连接虚拟化EVI网络互联时,本端FCF设备与对端FCF设备之间存在EVI链路LINK;所述建立模块11,具体用于通过EVI LINK向对端FCF设备发送携带本端FCF设备的FCoE MAC地址的发现请求报文;当接收到对端FCF设备针对所述发现请求报文回应的发现通告报文后,利用所述发现通告报文中携带的对端FCF设备的FCoE MAC地址建立本端FCF设备与对端FCF设备之间的VFC虚连接,且所述VFC虚连接的MAC地址为所述对端FCF设备的FCoE MAC地址;其中,所述发现请求报文和所述发现通告报文的通用路由封装GRE隧道封装的头部中的协议类型标识当前报文用于建立VFC虚连接;或者,通过EVILINK接收来自对端FCF设备的携带对端FCF设备的FCoE MAC地址的发现请求报文;利用发现请求报文中携带的对端FCF设备的FCoE MAC地址建立本端FCF设备与对端FCF设备之间的VFC虚连接,且VFC虚连接的MAC地址为所述对端FCF设备的FCoE MAC地址;通过EVI LINK向对端FCF设备发送携带本端FCF设备的FCoE MAC地址的针对所述发现请求报文回应的发现通告报文;其中,所述发现请求报文和所述发现通告报文的GRE隧道封装的头部中的协议类型标识当前报文用于建立VFC虚连接。When the virtualization EVI network is interconnected between the data centers through Ethernet, there is an EVI link LINK between the local FCF equipment and the opposite FCF equipment; Send a discovery request message carrying the FCoE MAC address of the local FCF device; after receiving the discovery notification message in response to the discovery request message from the peer FCF device, use the peer terminal carried in the discovery notification message to The FCoE MAC address of the FCF device establishes a VFC virtual connection between the local FCF device and the peer FCF device, and the MAC address of the VFC virtual connection is the FCoE MAC address of the peer FCF device; wherein the discovery request The protocol type in the header of the general routing encapsulation GRE tunnel encapsulation of the message and the discovery notification message identifies the current message as used to establish a VFC virtual connection; or, receive the carrying peer FCF device from the peer FCF device through EVILINK The discovery request message of the FCoE MAC address of the local FCF device; use the FCoE MAC address of the peer FCF device carried in the discovery request message to establish a VFC virtual connection between the local FCF device and the peer FCF device, and the MAC address of the VFC virtual connection is the FCoE MAC address of the peer FCF device; sends a discovery notification message in response to the discovery request message carrying the FCoE MAC address of the local FCF device to the peer FCF device through EVI LINK; wherein, the discovery The protocol type in the header of the GRE tunnel encapsulation of the request message and the discovery notification message identifies that the current message is used to establish the VFC virtual connection.

当数据中心之间通过EVI网络互联时,本端FCF设备与对端FCF设备之间存在EVILINK;所述处理模块12,具体用于当所述存储网络报文为FC报文时,对所述FC报文进行GRE隧道封装,且GRE隧道头中的协议类型用于标识GRE隧道头之后的载荷为FC报文;所述发送模块13,具体用于通过本端FCF设备与对端FCF设备之间的EVI LINK将GRE隧道封装后的FC报文发送给所述对端FCF设备;或者,所述处理模块12,具体用于当所述存储网络报文为FCoE报文时,利用所述VFC虚连接的MAC地址设置所述FCoE报文的目的MAC地址为所述对端FCF设备的FCoE MAC地址,并对所述FCoE报文进行GRE隧道封装,且GRE隧道头中的协议类型用于标识GRE隧道头之后的载荷为FCoE报文;所述发送模块13,具体用于通过本端FCF设备与对端FCF设备之间的EVI LINK将GRE隧道封装后的FCoE报文发送给所述对端FCF设备。When the data centers are interconnected through the EVI network, there is an EVILINK between the local FCF device and the peer FCF device; the processing module 12 is specifically used to process the The FC message is encapsulated by the GRE tunnel, and the protocol type in the GRE tunnel header is used to identify the load after the GRE tunnel header as an FC message; The EVI LINK between sends the FC message encapsulated by the GRE tunnel to the peer FCF device; or, the processing module 12 is specifically configured to use the VFC when the storage network message is an FCoE message. The MAC address of the virtual connection sets the destination MAC address of the FCoE message to the FCoE MAC address of the peer FCF device, and performs GRE tunnel encapsulation on the FCoE message, and the protocol type in the GRE tunnel header is used to identify The load after the GRE tunnel header is an FCoE message; the sending module 13 is specifically used to send the FCoE message encapsulated by the GRE tunnel to the opposite end through the EVI LINK between the local FCF device and the opposite end FCF device FCF equipment.

当数据中心之间通过EVI网络互联时,本端FCF设备与对端FCF设备之间存在EVILINK;所述FCF设备还包括:接收模块14,用于接收对端FCF设备通过EVI LINK发送的GRE隧道封装后的FC报文,且GRE隧道头中的协议类型用于标识GRE隧道头后的载荷为FC报文;所述处理模块12,还用于在收到GRE隧道封装后的FC报文后,如果识别协议类型用于标识GRE隧道头之后的载荷为FC报文,则对GRE隧道封装后的FC报文进行GRE隧道解封装,并通过GRE隧道解封装后的FC报文中携带的目的FC ID查询FC路由表;所述发送模块13,还用于利用查询到的出接口发送GRE隧道解封装后的FC报文;或者,所述FCF设备还包括:接收模块14,用于接收对端FCF设备通过EVI LINK发送的GRE隧道封装后的FCoE报文,且GRE隧道头中的协议类型用于标识GRE隧道头后的载荷为FCoE报文;所述处理模块12,还用于在收到GRE隧道封装后的FCoE报文后,如果识别协议类型用于标识GRE隧道头后的载荷为FCoE报文,则对GRE隧道封装后的FCoE报文进行GRE隧道解封装,并在确定GRE隧道解封装后的FCoE报文的目的MAC地址为本端FCF设备的FCoE MAC地址时,通过GRE隧道解封装后的FCoE报文中携带的目的FC ID查询FC路由表;所述发送模块13,还用于利用查询到的出接口发送GRE隧道解封装后的FCoE报文。When the data centers are interconnected through the EVI network, there is an EVILINK between the local FCF device and the peer FCF device; the FCF device also includes: a receiving module 14 for receiving the GRE tunnel sent by the peer FCF device through the EVI LINK FC message after encapsulation, and the protocol type in the GRE tunnel header is used to identify the load after the GRE tunnel header is an FC message; the processing module 12 is also used to receive the FC message after the GRE tunnel encapsulation , if the identification protocol type is used to identify the payload after the GRE tunnel header as an FC packet, perform GRE tunnel decapsulation on the FC packet encapsulated by the GRE tunnel, and use the purpose carried in the FC packet decapsulated by the GRE tunnel The FC ID queries the FC routing table; the sending module 13 is also used to send the FC message after decapsulating the GRE tunnel by using the inquired out interface; or, the FCF device also includes: a receiving module 14, which is used to receive the The FCoE message after the GRE tunnel encapsulation sent by the end FCF device through the EVI LINK, and the protocol type in the GRE tunnel header is used to identify the load after the GRE tunnel header is an FCoE message; the processing module 12 is also used for receiving After receiving the FCoE packet encapsulated by the GRE tunnel, if the identification protocol type is used to identify the payload behind the GRE tunnel header as an FCoE packet, perform GRE tunnel decapsulation on the FCoE packet encapsulated by the GRE tunnel, and determine the GRE tunnel When the destination MAC address of the decapsulated FCoE message is the FCoE MAC address of the local FCF device, the FC routing table is queried by the destination FC ID carried in the decapsulated FCoE message through the GRE tunnel; the sending module 13 also It is used to use the queried outbound interface to send FCoE packets decapsulated by the GRE tunnel.

当数据中心之间通过多协议标签交换MPLS网络互联时,本端FCF设备与对端FCF设备之间存在伪线PW虚链路;所述建立模块11,具体用于通过PW虚链路向对端FCF设备发送携带本端FCF设备的FCoE MAC地址的发现请求报文;当接收到对端FCF设备针对所述发现请求报文回应的发现通告报文后,利用所述发现通告报文中携带的对端FCF设备的FCoE MAC地址建立本端FCF设备与对端FCF设备之间的VFC虚连接,且VFC虚连接的MAC地址为所述对端FCF设备的FCoE MAC地址;其中,所述发现请求报文和所述发现通告报文的MPLS隧道封装的头部中包括流标签Flow Label标签或者控制字Control Word标签,且所述Flow Label标签或者Control Word标签标识当前报文用于建立VFC虚连接;或者,通过PW虚链路接收来自对端FCF设备的携带对端FCF设备的FCoE MAC地址的发现请求报文;利用发现请求报文中携带的对端FCF设备的FCoE MAC地址建立本端FCF设备与对端FCF设备之间的VFC虚连接,且VFC虚连接的MAC地址为对端FCF设备的FCoE MAC地址;通过PW虚链路向对端FCF设备发送携带本端FCF设备的FCoE MAC地址的针对所述发现请求报文回应的发现通告报文;其中,所述发现请求报文和所述发现通告报文的MPLS隧道封装的头部中包括Flow Label标签或者Control Word标签,且Flow Label标签或者Control Word标签标识当前报文用于建立VFC虚连接。When data centers are interconnected through a multi-protocol label switching MPLS network, there is a pseudowire PW virtual link between the local FCF device and the peer FCF device; The end FCF device sends a discovery request message carrying the FCoE MAC address of the local FCF device; after receiving the discovery report message in response to the discovery request message from the peer FCF device, use the discovery report message carried in the discovery report message The FCoE MAC address of the peer FCF device establishes a VFC virtual connection between the local FCF device and the peer FCF device, and the MAC address of the VFC virtual connection is the FCoE MAC address of the peer FCF device; wherein, the discovery The header of the MPLS tunnel encapsulation of the request message and the discovery notification message includes a flow label Flow Label label or a control word Control Word label, and the Flow Label label or the Control Word label identifies that the current message is used to establish a VFC virtual connection; or, receive a discovery request packet carrying the FCoE MAC address of the peer FCF device from the peer FCF device through the PW virtual link; use the FCoE MAC address of the peer FCF device carried in the discovery request message to establish the local end The VFC virtual connection between the FCF device and the peer FCF device, and the MAC address of the VFC virtual connection is the FCoE MAC address of the peer FCF device; send the FCoE MAC address of the local FCF device to the peer FCF device through the PW virtual link A discovery notification message in response to the discovery request message of the address; wherein, the head of the MPLS tunnel encapsulation of the discovery request message and the discovery notification message includes a Flow Label label or a Control Word label, and Flow The Label label or the Control Word label identifies the current packet used to establish a VFC virtual connection.

当数据中心之间通过MPLS网络互联时,本端FCF设备与对端FCF设备之间存在PW虚链路;所述处理模块12,具体用于当所述存储网络报文为FC报文时,对所述FC报文进行MPLS隧道封装,且MPLS隧道头中包括用于标识MPLS隧道头之后的载荷为FC报文的Flow Label标签或者Control Word标签;所述发送模块13,具体用于通过本端FCF设备与对端FCF设备之间的PW虚链路将MPLS隧道封装后的FC报文发送给所述对端FCF设备;或者,所述处理模块12,具体用于当所述存储网络报文为FCoE报文时,利用所述VFC虚连接的MAC地址设置所述FCoE报文的目的MAC地址为所述对端FCF设备的FCoE MAC地址,并对所述FCoE报文进行MPLS隧道封装,且MPLS隧道头中包括用于标识MPLS隧道头之后的载荷为FCoE报文的Flow Label标签或者Control Word标签;所述发送模块13,具体用于通过本端FCF设备与对端FCF设备之间的PW虚链路将MPLS隧道封装后的FCoE报文发送给所述对端FCF设备。When the data centers are interconnected through the MPLS network, there is a PW virtual link between the local FCF device and the peer FCF device; the processing module 12 is specifically used to, when the storage network message is an FC message, Carry out MPLS tunnel encapsulation to described FC message, and include in the MPLS tunnel header and be used to identify the Flow Label label or the Control Word label that the load after the MPLS tunnel header is FC message; The PW virtual link between the end FCF device and the opposite end FCF device sends the FC message encapsulated by the MPLS tunnel to the opposite end FCF device; or, the processing module 12 is specifically used for when the storage network report When the text is an FCoE message, use the MAC address of the VFC virtual connection to set the destination MAC address of the FCoE message to be the FCoE MAC address of the peer FCF device, and perform MPLS tunnel encapsulation on the FCoE message, And the MPLS tunnel header includes a Flow Label label or a Control Word label for identifying that the load after the MPLS tunnel header is an FCoE message; the sending module 13 is specifically used to pass the communication between the local FCF device and the opposite end FCF device. The PW virtual link sends the FCoE packet encapsulated by the MPLS tunnel to the peer FCF device.

当数据中心之间通过MPLS网络互联时,本端FCF设备与对端FCF设备之间存在PW虚链路;所述FCF设备还包括:接收模块14,用于接收对端FCF设备通过PW虚链路发送的MPLS隧道封装后的FC报文,且MPLS隧道头中包括用于标识MPLS隧道头之后的载荷为FC报文的FlowLabel标签或者Control Word标签;所述处理模块12,还用于在收到MPLS隧道封装后的FC报文后,如果识别Flow Label标签或者Control Word标签用于标识MPLS隧道头后的载荷为FC报文,则对MPLS隧道封装后的FC报文进行MPLS隧道解封装,并通过MPLS隧道解封装后的FC报文中携带的目的FC ID查询FC路由表;所述发送模块13,还用于利用查询到的出接口发送MPLS隧道解封装后的FC报文;或者,所述FCF设备还包括接收模块14,用于接收对端FCF设备通过PW虚链路发送的MPLS隧道封装后的FCoE报文,MPLS隧道头中包括用于标识MPLS隧道头之后的载荷为FCoE报文的Flow Label标签或者Control Word标签;所述处理模块12,还用于在收到MPLS隧道封装后的FCoE报文后,如果识别Flow Label标签或者Control Word标签用于标识MPLS隧道头之后的载荷为FCoE报文,则对MPLS隧道封装后的FCoE报文进行MPLS隧道解封装,并在确定MPLS隧道解封装后的FCoE报文的目的MAC地址为本端FCF设备的FCoEMAC地址时,通过MPLS隧道解封装后的FCoE报文中携带的目的FC ID查询FC路由表;所述发送模块13,还用于利用查询到的出接口发送MPLS隧道解封装后的FCoE报文。When the data centers are interconnected through the MPLS network, there is a PW virtual link between the local FCF device and the opposite end FCF device; the FCF device also includes: a receiving module 14 for receiving the opposite end FCF device through the PW virtual link The FC message after the MPLS tunnel encapsulation sent by the MPLS tunnel, and the MPLS tunnel header includes the FlowLabel label or the Control Word label used to identify the load after the MPLS tunnel header as the FC message; the processing module 12 is also used for receiving After the FC packet encapsulated by the MPLS tunnel, if the Flow Label label or the Control Word label is used to identify the payload behind the MPLS tunnel header as an FC packet, the MPLS tunnel decapsulates the FC packet encapsulated by the MPLS tunnel. And query the FC routing table through the destination FC ID carried in the FC message after the MPLS tunnel decapsulation; the sending module 13 is also used to send the FC message after the MPLS tunnel decapsulation by using the inquired out interface; or, The FCF device also includes a receiving module 14, configured to receive an FCoE message encapsulated by the MPLS tunnel sent by the peer FCF device through the PW virtual link, and the MPLS tunnel header includes an FCoE message for identifying the load after the MPLS tunnel header. The Flow Label label or the Control Word label of the text; the processing module 12 is also used to identify the Flow Label label or the Control Word label after receiving the FCoE message encapsulated by the MPLS tunnel, if it is used to identify the load after the MPLS tunnel header If it is an FCoE packet, decapsulate the FCoE packet encapsulated by the MPLS tunnel through the MPLS tunnel, and when the destination MAC address of the FCoE packet decapsulated by the MPLS tunnel is determined to be the FCoEMAC address of the local FCF device, the MPLS tunnel The destination FC ID carried in the decapsulated FCoE message queries the FC routing table; the sending module 13 is further configured to use the queried outbound interface to send the MPLS tunnel decapsulated FCoE message.

其中,本发明装置的各个模块可以集成于一体,也可以分离部署。上述模块可以合并为一个模块,也可以进一步拆分成多个子模块。Wherein, each module of the device of the present invention can be integrated into one body, or can be deployed separately. The above modules can be combined into one module, or can be further split into multiple sub-modules.

通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到本发明可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the present invention can be implemented by means of software plus a necessary general-purpose hardware platform, and of course also by hardware, but in many cases the former is a better implementation Way. Based on this understanding, the essence of the technical solution of the present invention or the part that contributes to the prior art can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions to make a A computer device (which may be a personal computer, a server, or a network device, etc.) executes the methods described in various embodiments of the present invention.

本领域技术人员可以理解附图只是一个优选实施例的示意图,附图中的模块或流程并不一定是实施本发明所必须的。Those skilled in the art can understand that the drawing is only a schematic diagram of a preferred embodiment, and the modules or processes in the drawing are not necessarily necessary for implementing the present invention.

本领域技术人员可以理解实施例中的装置中的模块可以按照实施例描述进行分布于实施例的装置中,也可以进行相应变化位于不同于本实施例的一个或多个装置中。上述实施例的模块可以合并为一个模块,也可以进一步拆分成多个子模块。Those skilled in the art can understand that the modules in the device in the embodiment can be distributed in the device in the embodiment according to the description in the embodiment, or can be located in one or more devices different from the embodiment according to corresponding changes. The modules in the above embodiments can be combined into one module, and can also be further split into multiple sub-modules.

上述本发明实施例序号仅仅为了描述,不代表实施例的优劣。The serial numbers of the above embodiments of the present invention are for description only, and do not represent the advantages and disadvantages of the embodiments.

以上公开的仅为本发明的几个具体实施例,但是,本发明并非局限于此,任何本领域的技术人员能思之的变化都应落入本发明的保护范围。The above disclosures are only a few specific embodiments of the present invention, however, the present invention is not limited thereto, and any changes conceivable by those skilled in the art shall fall within the protection scope of the present invention.

Claims (14)

after receiving the storage network message, the home terminal FCF device queries an FC routing table through a destination fiber channel identifier (FC ID) carried in the storage network message; if the query result is that the next hop of the storage network message is the opposite-end FCF device, the local-end FCF device determines that an output interface of the storage network message is the VFC virtual connection, performs tunnel encapsulation on the storage network message, and sends the storage network message after tunnel encapsulation to the opposite-end FCF device; and after receiving the storage network message after tunnel encapsulation, the opposite-end FCF device decapsulates the tunnel encapsulation storage network message, queries an FC routing table through a target FC ID carried in the storage network message after tunnel decapsulation, and sends the storage network message after tunnel decapsulation by using the queried output interface.
the home terminal FCF equipment sends a discovery request message carrying the FCoE MAC address of the home terminal FCF equipment to the opposite terminal FCF equipment through the EVI LINK; after receiving a discovery announcement message responded by opposite-end FCF equipment aiming at the discovery request message, the local-end FCF equipment establishes VFC virtual connection between the local-end FCF equipment and the opposite-end FCF equipment by using an FCoE MAC address of the opposite-end FCF equipment carried in the discovery announcement message, wherein the MAC address of the VFC virtual connection is the FCoE MAC address of the opposite-end FCF equipment; wherein, the protocol type identifier in the header of generic routing encapsulation GRE tunnel encapsulation of the discovery request message and the discovery notification message is used for establishing VFC virtual connection; or,
the home terminal FCF equipment receives a discovery request message carrying an FCoE MAC address of opposite terminal FCF equipment from the opposite terminal FCF equipment through an EVI LINK; the home terminal FCF device establishes VFC virtual connection between the home terminal FCF device and the opposite terminal FCF device by using the FCoE MAC address of the opposite terminal FCF device carried in the discovery request message, wherein the MAC address of the VFC virtual connection is the FCoE MAC address of the opposite terminal FCF device; the home terminal FCF equipment sends a discovery notification message which carries the FCoE MAC address of the home terminal FCF equipment and responds to the discovery request message to the opposite terminal FCF equipment through the EVI LINK; wherein, the protocol type identifier in the header of GRE tunnel encapsulation of the discovery request message and the discovery notification message is used for establishing VFC virtual connection.
the home terminal FCF equipment receives an FCoE message which is sent by opposite terminal FCF equipment through EVI LINK and is packaged by a GRE tunnel, and the protocol type in the GRE tunnel header is used for marking the load behind the GRE tunnel header as the FCoE message; after the local-end FCF equipment receives the FCoE message encapsulated by the GRE tunnel, if the protocol type is identified to identify that the load behind the GRE tunnel header is the FCoE message, the FCoE message encapsulated by the GRE tunnel is decapsulated by the GRE tunnel, and when the target MAC address of the FCoE message decapsulated by the GRE tunnel is determined to be the FCoE MAC address of the local-end FCF equipment, the local-end FCF equipment queries an FC routing table through the target FC ID carried in the FCoE message decapsulated by the GRE tunnel, and sends the FCoE message decapsulated by the GRE tunnel by using the queried output interface.
the home terminal FCF equipment sends a discovery request message carrying an FCoE MAC address of the home terminal FCF equipment to an opposite terminal FCF equipment through a PW virtual link; after receiving a discovery announcement message responded by opposite-end FCF equipment aiming at the discovery request message, the local-end FCF equipment establishes VFC virtual connection between the local-end FCF equipment and the opposite-end FCF equipment by using an FCoE MAC address of the opposite-end FCF equipment carried in the discovery announcement message, wherein the MAC address of the VFC virtual connection is the FCoE MAC address of the opposite-end FCF equipment; wherein, the headers of the MPLS tunnel encapsulation of the discovery request packet and the discovery notification packet include a Flow Label or a Control Word Label, and the Flow Label or the Control Word Label identifies the current packet for establishing the VFC virtual connection;
the home terminal FCF equipment receives a discovery request message carrying an FCoE MAC address of opposite terminal FCF equipment from the opposite terminal FCF equipment through a PW virtual link; the home terminal FCF device establishes VFC virtual connection between the home terminal FCF device and the opposite terminal FCF device by using the FCoE MAC address of the opposite terminal FCF device carried in the discovery request message, wherein the MAC address of the VFC virtual connection is the FCoE MAC address of the opposite terminal FCF device; the home terminal FCF equipment sends a discovery notification message which carries the FCoE MAC address of the home terminal FCF equipment and responds to the discovery request message to the opposite terminal FCF equipment through the PW virtual link; wherein, the headers of the MPLS tunnel encapsulation of the discovery request packet and the discovery notification packet include a Flow Label or a Control Word Label, and the Flow Label or the Control Word Label identifies the current packet for establishing the VFC virtual connection.
the home terminal FCF equipment receives an FC message which is sent by an opposite terminal FCF equipment through a PW virtual link and is encapsulated by an MPLS tunnel, and an MPLS tunnel head comprises a Flow Label Label or a Control Word Label which is used for identifying the load behind the MPLS tunnel head as the FC message; after receiving the FC message encapsulated by the MPLS tunnel, if the local end FCF equipment identifies a FlowLabel label or a Control Word label to identify the load behind the MPLS tunnel header as the FC message, the local end FCF equipment decapsulates the MPLS tunnel of the FC message encapsulated by the MPLS tunnel, queries an FC routing table through a target FCID carried in the FC message decapsulated by the MPLS tunnel, and sends the FC message decapsulated by the MPLS tunnel by using the queried output interface; or,
the home terminal FCF equipment receives an FCoE message which is sent by an opposite terminal FCF equipment through a PW virtual link and is encapsulated by an MPLS tunnel, and an MPLS tunnel head comprises a Flow Label Label or a Control Word Label which is used for identifying that a load behind the MPLS tunnel head is the FCoE message; after receiving the FCoE message encapsulated by the MPLS tunnel, if the FlowLabel label or Control Word label is identified to identify that the load behind the MPLS tunnel header is the FCoE message, the local FCF device decapsulates the MPLS tunnel of the FCoE message encapsulated by the MPLS tunnel, queries an FC routing table through a target FC ID carried in the FCoE message decapsulated by the MPLS tunnel when determining that the target MAC address of the FCoE message decapsulated by the MPLS tunnel is the FCoE MAC address of the local FCF device, and sends the FCoE message decapsulated by the MPLS tunnel by using the queried output interface.
the establishing module is specifically configured to send a discovery request message carrying an FCoEMAC address of the local FCF device to the opposite FCF device through the EVI LINK; after receiving a discovery announcement message responded by opposite-end FCF equipment aiming at the discovery request message, establishing VFC virtual connection between local-end FCF equipment and opposite-end FCF equipment by using an FCoE MAC address of the opposite-end FCF equipment carried in the discovery announcement message, wherein the MAC address of the VFC virtual connection is the FCoE MAC address of the opposite-end FCF equipment; wherein, the protocol type identifier in the header of generic routing encapsulation GRE tunnel encapsulation of the discovery request message and the discovery notification message is used for establishing VFC virtual connection; or,
receiving a discovery request message carrying an FCoE MAC address of opposite-end FCF equipment from the opposite-end FCF equipment through an EVI LINK; establishing VFC virtual connection between the local terminal FCF equipment and the opposite terminal FCF equipment by using the FCoE MAC address of the opposite terminal FCF equipment carried in the discovery request message, wherein the MAC address of the VFC virtual connection is the FCoE MAC address of the opposite terminal FCF equipment; sending a discovery notification message carrying the FCoE MAC address of the FCF device of the local terminal and responding to the discovery request message to the FCF device of the opposite terminal through the EVI LINK; wherein, the protocol type identifier in the header of GRE tunnel encapsulation of the discovery request message and the discovery notification message is used for establishing VFC virtual connection.
the establishing module is specifically configured to send a discovery request packet carrying an FCoEMAC address of the local FCF device to the opposite FCF device through the PW virtual link; after receiving a discovery announcement message responded by opposite-end FCF equipment aiming at the discovery request message, establishing VFC virtual connection between the local-end FCF equipment and the opposite-end FCF equipment by using an FCoE MAC address of the opposite-end FCF equipment carried in the discovery announcement message, wherein the MAC address of the VFC virtual connection is the FCoE MAC address of the opposite-end FCF equipment; wherein, the headers of the MPLS tunnel encapsulation of the discovery request packet and the discovery notification packet include a Flow Label FlowLabel or a Control Word Label, and the Flow Label or the Control Word Label identifies the current packet for establishing the VFC virtual connection; or,
receiving a discovery request message carrying an FCoE MAC address of opposite-end FCF equipment from the opposite-end FCF equipment through a PW virtual link; establishing VFC virtual connection between the local terminal FCF equipment and the opposite terminal FCF equipment by using the FCoE MAC address of the opposite terminal FCF equipment carried in the discovery request message, wherein the MAC address of the VFC virtual connection is the FCoE MAC address of the opposite terminal FCF equipment; sending a discovery notification message carrying the FCoE MAC address of the FCF device of the home terminal and responding to the discovery request message to the FCF device of the opposite terminal through a PW virtual link; wherein, the headers of the MPLS tunnel encapsulation of the discovery request packet and the discovery notification packet include a Flow Label or a Control Word Label, and the Flow Label or the Control Word Label identifies the current packet for establishing the VFC virtual connection.
CN201310421655.1A2013-09-162013-09-16Method and device for interconnecting across data centers in FCoE networkActiveCN103490968B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201310421655.1ACN103490968B (en)2013-09-162013-09-16Method and device for interconnecting across data centers in FCoE network

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201310421655.1ACN103490968B (en)2013-09-162013-09-16Method and device for interconnecting across data centers in FCoE network

Publications (2)

Publication NumberPublication Date
CN103490968A CN103490968A (en)2014-01-01
CN103490968Btrue CN103490968B (en)2017-02-15

Family

ID=49830940

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201310421655.1AActiveCN103490968B (en)2013-09-162013-09-16Method and device for interconnecting across data centers in FCoE network

Country Status (1)

CountryLink
CN (1)CN103490968B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN105162705B (en)*2015-06-092018-09-21华为技术有限公司Method, device and system for notifying UNI tunnel state
CN106100960B (en)*2016-07-062020-03-24新华三技术有限公司Method, device and system for Fabric intercommunication of cross-storage area network
CN108270653A (en)*2016-12-302018-07-10中兴通讯股份有限公司Message transmitting method and device
CN110418218B (en)*2019-07-262021-06-29新华三技术有限公司成都分公司Message processing method and device and FCF switching equipment
CN110768888A (en)*2019-10-122020-02-07苏州浪潮智能科技有限公司Data transmission device and system
CN112333074B (en)*2020-10-302023-04-18新华三信息技术有限公司Fiber channel message processing method, device, equipment and machine readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN101631076A (en)*2009-08-212010-01-20杭州华三通信技术有限公司Message transmission control method and fiber channel over Ethernet protocol system
CN101640819A (en)*2009-09-032010-02-03杭州华三通信技术有限公司Port initialization control method and fiber channel over Ethernet switch
CN101656721A (en)*2009-08-272010-02-24杭州华三通信技术有限公司Method for controlling virtual link discovering and Ethernet bearing fiber channel protocol system
CN101990663A (en)*2008-04-082011-03-23思科技术公司Discovery for fibre channel over Ethernet devices
CN102111318A (en)*2009-12-232011-06-29杭州华三通信技术有限公司Method for distributing virtual local area network resource and switch

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US8649387B2 (en)*2008-03-282014-02-11Broadcom CorporationMethod and system for fibre channel and ethernet interworking
CN102017542B (en)*2008-05-082014-04-30惠普开发有限公司A method for interfacing a fibre channel network with an Ethernet based network

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN101990663A (en)*2008-04-082011-03-23思科技术公司Discovery for fibre channel over Ethernet devices
CN101631076A (en)*2009-08-212010-01-20杭州华三通信技术有限公司Message transmission control method and fiber channel over Ethernet protocol system
CN101656721A (en)*2009-08-272010-02-24杭州华三通信技术有限公司Method for controlling virtual link discovering and Ethernet bearing fiber channel protocol system
CN101640819A (en)*2009-09-032010-02-03杭州华三通信技术有限公司Port initialization control method and fiber channel over Ethernet switch
CN102111318A (en)*2009-12-232011-06-29杭州华三通信技术有限公司Method for distributing virtual local area network resource and switch

Also Published As

Publication numberPublication date
CN103490968A (en)2014-01-01

Similar Documents

PublicationPublication DateTitle
US11979322B2 (en)Method and apparatus for providing service for traffic flow
CN104580024B (en)The Ethernet interconnection architecture interchanger of extension
US8743731B2 (en)Discovery for fibre channel over ethernet devices
KR101442321B1 (en)Network system with initiator subnetwork communication
CN103685022B (en)Message forwarding method and service provider network edge equipment
CN103944826B (en)List item polymerization and equipment in SPBM network
CN103490968B (en)Method and device for interconnecting across data centers in FCoE network
US20120099602A1 (en)End-to-end virtualization
EP2983331B1 (en)Method and device for storing and sending mac address entry
EP3069471B1 (en)Optimized multicast routing in a clos-like network
WO2019129236A1 (en)Tunnel-based data transmission method and device
WO2011103781A2 (en)Method, device for implementing identifier and locator split, and method for data encapsulating
WO2007009349A1 (en)Method and apparatus for transmitting message
WO2018214809A1 (en)Message transmission method and device, and storage medium
CN105379228A (en)Method, switch, and controller for implementing ARP
CN101286922A (en) A signaling control method, system and device
US9391796B1 (en)Methods and apparatus for using border gateway protocol (BGP) for converged fibre channel (FC) control plane
CN101499951B (en)Tunnel configuration method, virtual access node, virtual edge node and system
CN103220215A (en)Fiber channel over Ethernet (FCoE) message forwarding method and device in TRILL network
CN105553810A (en)Method and device for forwarding special line service packet
CN104219149B (en)A kind of message transmitting method and equipment based on virtual connections
US9699117B2 (en)Integrated fibre channel support in an ethernet fabric switch
CN103095579B (en)TRILL network interconnected method, Apparatus and system
CN101286918A (en) Virtual private network system and its data processing method
CN100550814C (en)A kind of system and method based on two layer VPN foreign medium communication

Legal Events

DateCodeTitleDescription
C06Publication
PB01Publication
C10Entry into substantive examination
SE01Entry into force of request for substantive examination
C14Grant of patent or utility model
GR01Patent grant
CP03Change of name, title or address
CP03Change of name, title or address

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

Patentee after:Xinhua three Technology Co., Ltd.

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

Patentee before:Huasan Communication Technology Co., Ltd.


[8]ページ先頭

©2009-2025 Movatter.jp