[go: up one dir, main page]

CN102045603B - Negotiation method of fiber channel (FC) port and FC exchanger system - Google Patents

Negotiation method of fiber channel (FC) port and FC exchanger system Download PDF

Info

Publication number
CN102045603B
CN102045603B CN 200910236060 CN200910236060A CN102045603B CN 102045603 B CN102045603 B CN 102045603B CN 200910236060 CN200910236060 CN 200910236060 CN 200910236060 A CN200910236060 A CN 200910236060A CN 102045603 B CN102045603 B CN 102045603B
Authority
CN
China
Prior art keywords
port
vsan
opposite end
tagging
message
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN 200910236060
Other languages
Chinese (zh)
Other versions
CN102045603A (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.)
Beijing Ziguang Communication Technology Group 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 Ltd filed Critical Hangzhou H3C Technologies Co Ltd
Priority to CN 200910236060 priority Critical patent/CN102045603B/en
Publication of CN102045603A publication Critical patent/CN102045603A/en
Application granted granted Critical
Publication of CN102045603B publication Critical patent/CN102045603B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Small-Scale Networks (AREA)

Abstract

本发明公开了一种光纤通道(FC)端口协商方法以及光纤通道交换机系统。本发明为交换虚拟光纤通道参数(EVFP)协商增设一混合模式的虚拟存储局域网(VSAN)能力,在FC端口本端与对端同时配置有Multi模式时,如果对端VF_ID与本端一致、且与对端存在公共的主干线(Trunk)VSAN,则可得到混合模式的协商结果,并确定在本端VF_ID所属VSAN内以不带有VSAN扩展报文头的方式传输FC报文、在公共Trunk VSAN内以带有VSAN扩展报文头的方式传输FC报文。此时,即可使得FC端口同时支持有标签(Tagging)模式和无标签(Non Tagging)模式,从而能够提高FC端口的通用性。

Figure 200910236060

The invention discloses a fiber channel (FC) port negotiation method and a fiber channel switch system. The present invention adds a mixed-mode virtual storage area network (VSAN) capability for the exchange of virtual fiber channel parameters (EVFP) negotiation. When the FC port local end and the opposite end are configured with Multi mode at the same time, if the opposite end VF_ID is consistent with the local end, and If there is a common trunk (Trunk) VSAN with the remote end, the mixed mode negotiation result can be obtained, and it is determined that the FC packets are transmitted without the VSAN extension header in the VSAN to which the VF_ID of the local end belongs. FC packets are transmitted in the VSAN with VSAN extended packet headers. At this time, the FC port can be made to support both a tagging (Tagging) mode and a non-tagging (Non-Tagging) mode, thereby improving the versatility of the FC port.

Figure 200910236060

Description

光纤通道端口协商方法以及光纤通道交换机系统Fiber channel port negotiation method and fiber channel switch system

技术领域 technical field

本发明涉及光纤通道(Fibre Channel,FC)端口初始化技术,特别涉及一种FC端口协商方法、以及可实现FC端口协商的一种FC交换机系统。The present invention relates to a Fiber Channel (Fibre Channel, FC) port initialization technology, in particular to an FC port negotiation method and an FC switch system capable of realizing FC port negotiation.

背景技术 Background technique

随着Internet应用的不断增长,网络服务器需要存储的信息和数据越来越多,这就导致网络服务器所需的存储容量也不断增长。当网络服务器的内部存储容量无法满足信息增长的需求时,就需要将网络服务器的存储“外部化”。为了解决这一问题,现有技术提出了存储局域网络(Storage AreaNetworks,SAN),SAN能够为网络服务器提供专用的外部存储环境,充分利用新的存储硬件技术和网络技术,满足对大容量高可靠数据的存储、访问和备份等需求。其中,FC协议是SAN中应用最广泛的一种协议。FC协议最初是在90年代出现的,目的是提供比以太网和TCP/IP协议更高速、高效的大数据传输性能。With the continuous growth of Internet applications, the network server needs to store more and more information and data, which leads to the continuous increase of the storage capacity required by the network server. When the internal storage capacity of the web server cannot meet the demand of information growth, it is necessary to "externalize" the storage of the web server. In order to solve this problem, the existing technology proposes storage area network (Storage Area Networks, SAN), SAN can provide a dedicated external storage environment for network servers, make full use of new storage hardware technology and network technology, and meet the needs of large capacity and high reliability. Data storage, access and backup requirements. Among them, the FC protocol is the most widely used protocol in SAN. The FC protocol first appeared in the 1990s, with the purpose of providing higher-speed and more efficient large data transmission performance than the Ethernet and TCP/IP protocols.

进一步地,现有技术为了将SAN进行划分,又提出了虚拟存储局域网络(VSAN)的概念,即将SAN划分为多个VSAN,只有属于同一个VSAN的网络服务器和存储设备之间才能够通过FC交换机进行通信。其中,本文所述的FC交换机是指支持FC协议的交换机,其既可以是FC网络中的交换机,也可以是以太网承载光纤通道协议(Fibre Channel Over Ethernet,FCoE)网络中的交换机,还可以是其它支持FC协议的交换机。Furthermore, in order to divide the SAN, the prior art proposes the concept of a virtual storage area network (VSAN), that is, to divide the SAN into multiple VSANs, and only the network servers and storage devices belonging to the same VSAN can pass through the FC The switch communicates. Wherein, the FC switch described in this article refers to a switch supporting the FC protocol, which can be a switch in a FC network, or a switch in a Fiber Channel Over Ethernet (FCoE) network over Ethernet, or a switch in a Fiber Channel Over Ethernet (FCoE) network. It is another switch that supports the FC protocol.

具体说,为了实现在不同VSAN的FC报文传输,现有技术中提出了如下两种方式:Specifically, in order to realize the transmission of FC packets in different VSANs, the following two methods are proposed in the prior art:

方式一,在FC报文中增加VSAN扩展报文头(Virtual Fabric TaggingHeader,VFT_Header),并在VFT_Header中设置表示FC报文所属VSAN的虚拟存储局域网络标识(Virtual Fabric Identifier,VF_ID)字段,FC交换机在收到FC报文后检查FC报文VFT_Header中的VF_ID字段,即可将该FC报文限制在所属VSAN内传输,从而保证不同VSAN之间不能互通报文,进而达到了网络在物理上连通、但逻辑上隔离的目的。Method 1: Add a VSAN extension header (Virtual Fabric TaggingHeader, VFT_Header) to the FC message, and set the Virtual Fabric Identifier (VF_ID) field indicating the VSAN to which the FC message belongs, in the VFT_Header, the FC switch After receiving the FC message, check the VF_ID field in the VFT_Header of the FC message, and the transmission of the FC message can be limited to the VSAN to which it belongs, so as to ensure that different VSANs cannot communicate with each other, and thus achieve the physical connection of the network , but for logically isolated purposes.

对于该方式,需要在每台FC交换机上配置主干线虚拟存储局域网络(Trunk VSAN)列表、并且Trunk模式配置为开启(On),当FC交换机与对端FC交换机存在公共的Trunk VSAN时,即两端FC端口的Trunk VSAN列表存在交集时,两台FC交换机相连的FC端口可以进行交换虚拟光纤通道参数(Exchange Virtual Fibre Parameters,EVFP)协商、用以协商得到VSAN的支持能力,得到有标签(Tagging)模式的协商结果,在Tagging模式下,分属于不同VSAN的FC报文可在公共Trunk VSAN内以带有VFT_Header的方式传输。For this method, you need to configure the trunk virtual storage area network (Trunk VSAN) list on each FC switch, and configure the trunk mode to be enabled (On). When the FC switch and the peer FC switch have a common Trunk VSAN, that is When the Trunk VSAN lists of the FC ports at both ends overlap, the FC ports connected to the two FC switches can perform Exchange Virtual Fiber Tagging) mode negotiation results, in Tagging mode, FC packets belonging to different VSANs can be transmitted in the common Trunk VSAN with VFT_Header.

参见图1,假设有属于VSAN10的网络服务器1和磁盘1、属于VSAN20的网络服务器2和磁盘2,且网络服务器1和磁盘1之间、网络服务器2和磁盘2之间均顺序通过FC交换机1和FC交换机2连接。Referring to Figure 1, it is assumed that there are network server 1 and disk 1 belonging to VSAN10, and network server 2 and disk 2 belonging to VSAN20, and the connections between network server 1 and disk 1 and between network server 2 and disk 2 pass through FC switch 1 in sequence Connect to FC switch 2.

FC交换机1与FC交换机2具有公共的Trunk VSAN10和VSAN 20,因此,网络服务器1向FC交换机1的VF_ID10的FC端口发送无VFT_Header的FC报文后,FC交换机1为该FC报文添加包含有VF_ID10的VFT_Header,然后再发送到对端的FC交换机2,FC交换机2依据FC报文VFT_Header中的VF_ID10,即可将收到的FC报文转发至与该FC报文同属一个VSAN10的磁盘1,并在发送到磁盘时去除该FC报文的VFT_Header;网络服务器2向FC交换机1的VF_ID20的FC端口发送无VFT_Header的FC报文后,FC交换机2为该FC报文添加包含有VF_ID20的VFT_Header,然后再发送到对端的FC交换机2,FC交换机2依据FC报文VFT_Header中的VF_ID20,即可将收到的FC报文转发至与该FC报文同属一个VSAN20的磁盘2,并在发送到磁盘时去除该FC报文的VFT_Header。同理,从磁盘1和磁盘2向网络服务器1和网络服务器2仅仅是传输方向的不同、FC交换机1和FC交换机2的处理方式对调,而具体处理过程与上述描述的一致。FC switch 1 and FC switch 2 have a common Trunk VSAN10 and VSAN 20, therefore, after network server 1 sends an FC message without VFT_Header to the FC port of VF_ID10 of FC switch 1, FC switch 1 adds the FC message containing The VFT_Header of VF_ID10 is then sent to the peer FC switch 2, and the FC switch 2 can forward the received FC packet to disk 1 belonging to the same VSAN10 as the FC packet according to the VF_ID10 in the VFT_Header of the FC packet, and Remove the VFT_Header of the FC message when sending to the disk; after the network server 2 sends the FC message without VFT_Header to the FC port of the VF_ID20 of the FC switch 1, the FC switch 2 adds the VFT_Header containing VF_ID20 for the FC message, and then Then send it to the peer FC switch 2. According to the VF_ID20 in the VFT_Header of the FC message, the FC switch 2 can forward the received FC message to the disk 2 that belongs to the same VSAN20 as the FC message, and send it to the disk. Remove the VFT_Header of the FC packet. Similarly, only the transmission directions from disk 1 and disk 2 to network server 1 and network server 2 are different, and the processing methods of FC switch 1 and FC switch 2 are reversed, and the specific processing process is consistent with the above description.

方式二,FC报文均不携带VFT_Header,那么就需要所属VSAN内的所有FC交换机之间的互连FC端口均配置该VSAN的VF_ID,相应地,对于每台FC交换机来说,FC报文所属VSAN由接收该FC报文的FC端口所配置的VF_ID来确定。Method 2. If none of the FC packets carries a VFT_Header, the interconnected FC ports of all FC switches in the VSAN must be configured with the VF_ID of the VSAN. Correspondingly, for each FC switch, the FC packets belong to The VSAN is determined by the VF_ID configured on the FC port receiving the FC packet.

对于该方式,属于同一VSAN的每两台FC交换机互连的FC端口在进行EVFP协商时,需要预先被配置为相同的VF_ID才能够协商通过、并得到无标签(Non Tagging)模式的协商结果;如果有FC端口的VF_ID与对端不一致,则协商无法通过、即无法建立链路。For this method, when performing EVFP negotiation, the FC ports interconnected by every two FC switches belonging to the same VSAN need to be pre-configured as the same VF_ID to pass the negotiation and obtain the negotiation result of the non-tagging (Non Tagging) mode; If the VF_ID of an FC port is inconsistent with that of the remote end, the negotiation fails, that is, the link cannot be established.

参见图2,假设有属于VSAN10的网络服务器1和磁盘1,且网络服务器1和磁盘1之间顺序通过FC交换机1和FC交换机2连接,当网络服务器1发送无VFT_Header的FC报文后FC报文后,FC交换机1依据接收该FC报文的FC端口所配置的表示VSAN10的VF_ID10,将该FC报文通过另一侧配置有VF_ID10的FC端口转发至交换机2配置有VF_ID10的对端FC端口;FC交换机2再依据接收该FC报文的FC端口所配置的表示VSAN10的VF_ID10,将该FC报文通过另一侧配置有VF_ID10的FC端口转发至磁盘1。同理,从磁盘1向网络服务器1发送无VFT_Header的FC报文,仅仅是传输方向的不同,而具体处理过程与上述描述的一致。Referring to Figure 2, suppose there is a network server 1 and disk 1 belonging to VSAN10, and the network server 1 and disk 1 are connected through FC switch 1 and FC switch 2 in sequence. When network server 1 sends an FC message without VFT_Header, the FC message After the message, FC switch 1 forwards the FC message through the FC port configured with VF_ID10 on the other side to the opposite FC port of switch 2 configured with VF_ID10 according to the VF_ID10 configured on the FC port receiving the FC message to indicate VSAN10 ; The FC switch 2 forwards the FC message to the disk 1 through the FC port configured with VF_ID10 on the other side according to the VF_ID10 configured on the FC port receiving the FC message and representing the VSAN10. Similarly, the transmission of FC packets without VFT_Header from disk 1 to network server 1 is only different in the transmission direction, and the specific processing process is consistent with the above description.

上述两种方式虽然能够实现不同VSAN的FC报文传输,但FC端口在经过EVFP协商后,或者仅支持带有VFT_Header的FC报文传输、或者仅支持不带VFT_Header的FC报文传输,即无法同时支持两种FC报文传输。而且,如果需要支持多个VSAN,则FC报文必须带有VFT_Header,这种情况下,对于仅支持不带VFT_Header的FC报文传输的FC端口来说,即便是配置相同VF_ID的FC端口间传输的FC报文也必须携带VFT_Header,因而还增加了与网络服务器和磁盘直连的FC端口的添加和去除VFT_Header的处理。Although the above two methods can realize the transmission of FC packets of different VSANs, after EVFP negotiation, the FC ports either only support the transmission of FC packets with VFT_Header, or only support the transmission of FC packets without VFT_Header, that is, they cannot Supports two types of FC packet transmission at the same time. Moreover, if multiple VSANs need to be supported, FC packets must carry a VFT_Header. In this case, for FC ports that only support the transmission of FC packets without VFT_Header, even if the transmission between FC ports with the same VF_ID The FC message must also carry the VFT_Header, so the process of adding and removing the VFT_Header for the FC port directly connected to the network server and disk is also added.

可见,现有FC端口的EVFP协商过程,使得FC端口的通用性不高。It can be seen that the existing EVFP negotiation process of the FC port makes the universality of the FC port not high.

发明内容 Contents of the invention

有鉴于此,本发明提供了一种FC端口协商方法、以及一种FC交换机系统,能够提高FC端口的通用性。In view of this, the present invention provides an FC port negotiation method and an FC switch system, which can improve the versatility of the FC port.

本发明提供的一种FC端口协商方法,为交换虚拟光纤通道参数EVFP协商设置混合Multi模式,所述Multi模式表示可同时支持有标签Tagging模式和无标签Non Tagging模式,且在EVFP协商过程中,本端配置有Multi模式的FC端口获知对端FC端口也配置有Multi模式后:A kind of FC port negotiation method provided by the present invention, set mixed Multi mode for exchanging virtual fiber channel parameter EVFP negotiation, described Multi mode can support label Tagging mode and non-label Non Tagging mode at the same time, and in EVFP negotiation process, After the local FC port configured with Multi mode learns that the remote FC port is also configured with Multi mode:

判断对端FC端口的虚拟存储局域网络标识VF_ID与本端是否一致、以及与对端FC端口是否存在公共的主干线虚拟存储局域网络Trunk VSAN;Determine whether the virtual storage area network identifier VF_ID of the opposite end FC port is consistent with the local end, and whether there is a common trunk virtual storage area network Trunk VSAN with the opposite end FC port;

如果对端FC端口的VF_ID与本端一致、且与对端FC端口存在公共Trunk VSAN,则得到Multi模式的协商结果,并确定在本端VF_ID所属VSAN内以不带有VSAN扩展报文头VFT_Header的方式传输FC报文、在公共Trunk VSAN内以带有VFT_Header的方式传输FC报文;If the VF_ID of the remote FC port is the same as that of the local end, and there is a common Trunk VSAN with the remote FC port, the negotiation result of the Multi mode is obtained, and it is determined that the VF_ID of the local end does not have the extended VFT_Header of the VSAN. FC packets are transmitted in the way of VFT_Header in the public trunk VSAN;

如果对端FC端口的VF_ID与本端不同、但与对端FC端口存在公共Trunk VSAN,则得到Tagging模式的协商结果,并确定仅在公共Trunk VSAN内以带有VFT_Header的方式传输FC报文;If the VF_ID of the remote FC port is different from that of the local end, but there is a common Trunk VSAN with the remote FC port, then the Tagging mode negotiation result is obtained, and it is determined that FC packets are only transmitted in the public Trunk VSAN with VFT_Header;

如果对端FC端口的VF_ID与本端一致、但与对端FC端口不存在公共Trunk VSAN,则得到Non Tagging模式的协商结果,并确定仅在本端VF_ID所属VSAN内以不带有VFT_Header的方式传输FC报文;If the VF_ID of the remote FC port is the same as that of the local end, but there is no common Trunk VSAN with the remote FC port, the negotiation result of the Non Tagging mode is obtained, and it is determined that the VF_ID of the local end does not have a VFT_Header. Transmit FC message;

如果对端FC端口的VF_ID与本端不同、且对端FC端口未配置公共Trunk VSAN列表,则协商失败。If the VF_ID of the remote FC port is different from that of the local end, and the remote FC port is not configured with a public trunk VSAN list, the negotiation fails.

在对端FC端口的VF_ID与本端一致、且与对端FC端口存在公共TrunkVSAN时,如果本端与对端FC端口的VF_ID所属VSAN同时又属于公共Trunk VSAN,则对于本端VF_ID所属VSAN内的FC报文,优先以不带有VSAN扩展报文头VFT_Header的方式传输。When the VF_ID of the remote FC port is the same as that of the local end and there is a common TrunkVSAN with the remote FC port, if the VF_IDs of the local and remote FC ports belong to the VSAN and belong to the common Trunk VSAN, the VF_ID of the local FC packets are preferentially transmitted without VFT_Header.

本端配置有Multi模式的FC端口在EVFP协商过程中接收对端FC端口发送的EVFP报文,该EVFP报文的消息载荷Message Payload中依次携带有表示对端所配置模式的标签管理状态Tagging Adminidstative Status描述符、表示对端VF_ID的端口VF_ID描述符、以及表示对端所配置Trunk VSAN列表的VF_ID列表描述符;The FC port configured with Multi mode on the local end receives the EVFP packet sent by the peer FC port during the EVFP negotiation process. The Message Payload of the EVFP packet sequentially carries the tag management status Tagging Adminidstative indicating the mode configured by the peer end. The Status descriptor, the port VF_ID descriptor representing the peer VF_ID, and the VF_ID list descriptor representing the Trunk VSAN list configured by the peer;

接收到该EVFP报文的FC端口,依据Tagging Adminidstative Status描述符识别对端FC端口是否配置有Multi模式,依据端口VF_ID描述符判断对端VF_ID是否与本端一致,依据VF_ID列表描述符中的Trunk VSAN列表与本端Trunk VSAN列表是否存在交集来判断是否与对端FC端口存在公共Trunk VSAN。The FC port that received the EVFP message identifies whether the peer FC port is configured with Multi mode according to the Tagging Adminidstative Status descriptor, judges whether the peer VF_ID is consistent with the local port according to the port VF_ID descriptor, and judges whether the peer VF_ID is consistent with the local end according to the Trunk in the VF_ID list descriptor. Check whether the VSAN list overlaps with the local Trunk VSAN list to determine whether there is a common Trunk VSAN with the remote FC port.

Tagging Adminidstative Status描述符中包括管理标签模式Administrative Tagging Mode字段;The Tagging Adminidstative Status descriptor includes the Administrative Tagging Mode field;

接收到该EVFP报文的FC端口依据Administrative Tagging Mode字段的取值,判断对端FC端口是否配置有Multi模式;The FC port that receives the EVFP message judges whether the peer FC port is configured with Multi mode according to the value of the Administrative Tagging Mode field;

所述Administrative Tagging Mode字段具有如下的可选取值:The Administrative Tagging Mode field has the following optional values:

表示Non Tagging模式的第一取值;Indicates the first value of the Non Tagging mode;

表示Tagging模式的第二取值;Indicates the second value of the Tagging mode;

表示自动AUTO模式的第三取值,所述AUTO模式表示只要有一端配置有Tagging模式也可随之支持Tagging模式;Indicates the third value of the automatic AUTO mode, and the AUTO mode indicates that as long as one end is configured with the Tagging mode, it can also support the Tagging mode;

表示Multi模式的第四取值。Indicates the fourth value of the Multi mode.

所述第一至第四取值依次为:00000001h、00000002h、00000003h、00000004h。The first to fourth values are sequentially: 00000001h, 00000002h, 00000003h, 00000004h.

本发明提供的一种FC交换机系统,包括若干FC交换机,且每台FC交换机具有FC端口,A FC switch system provided by the present invention includes several FC switches, and each FC switch has an FC port,

任意FC交换机被配置有预设混合Multi模式的FC端口,在交换虚拟光纤通道参数EVFP协商过程中获知对端FC端口也配置有Multi模式后,判断对端FC端口的虚拟存储局域网络标识VF_ID与本端是否一致、以及与对端FC端口是否存在公共的主干线虚拟存储局域网络Trunk VSAN;其中,Multi模式表示可同时支持有标签Tagging模式和无标签Non Tagging模式;Any FC switch is configured with a FC port in the preset hybrid multi mode. After learning that the peer FC port is also configured with the Multi mode during the EVFP negotiation process of exchanging virtual fiber channel parameters, determine the VSAN identifier VF_ID of the peer FC port. Whether the local end is the same, and whether there is a common trunk virtual storage area network Trunk VSAN with the remote FC port; among them, the Multi mode means that the tagging mode and non-tagging mode can be supported at the same time;

如果对端FC端口的VF_ID与本端一致、且与对端FC端口存在公共Trunk VSAN,则得到Multi模式的协商结果,并确定在本端VF_ID所属VSAN内以不带有VSAN扩展报文头VFT_Header的方式传输FC报文、在公共Trunk VSAN内以带有VFT_Header的方式传输FC报文;If the VF_ID of the remote FC port is the same as that of the local end, and there is a common Trunk VSAN with the remote FC port, the negotiation result of the Multi mode is obtained, and it is determined that the VF_ID of the local end does not have the extended VFT_Header of the VSAN. FC packets are transmitted in the way of VFT_Header in the public trunk VSAN;

如果对端FC端口的VF_ID与本端不同、但与对端FC端口存在公共Trunk VSAN,则得到Tagging模式的协商结果,并确定仅在公共Trunk VSAN内以带有VFT_Header的方式传输FC报文;If the VF_ID of the remote FC port is different from that of the local end, but there is a common Trunk VSAN with the remote FC port, then the Tagging mode negotiation result is obtained, and it is determined that FC packets are only transmitted in the public Trunk VSAN with VFT_Header;

如果对端FC端口的VF_ID与本端一致、但与对端FC端口不存在公共Trunk VSAN,则得到Non Tagging模式的协商结果,并确定仅在本端VF_ID所属VSAN内以不带有VFT_Header的方式传输FC报文;If the VF_ID of the remote FC port is the same as that of the local end, but there is no common Trunk VSAN with the remote FC port, the negotiation result of the Non Tagging mode is obtained, and it is determined that the VF_ID of the local end does not have a VFT_Header. Transmit FC message;

如果对端FC端口的VF_ID与本端不同、且对端FC端口未配置公共Trunk VSAN列表,则协商失败。If the VF_ID of the remote FC port is different from that of the local end, and the remote FC port is not configured with a public trunk VSAN list, the negotiation fails.

如果对端FC端口的VF_ID与本端一致、与对端FC端口存在公共TrunkVSAN,且所述一致的VF_ID所属VSAN同时又属于公共Trunk VSAN,则对于本端VF_ID所属VSAN内的FC报文,优先以不带有VSAN扩展报文头VFT_Header的方式传输。If the VF_ID of the remote FC port is the same as that of the local end, and there is a common TrunkVSAN with the remote FC port, and the VSAN to which the same VF_ID belongs also belongs to the common Trunk VSAN, then the FC packets in the VSAN to which the local VF_ID belongs are prioritized. It is transmitted without VFT_Header.

任意FC交换机配置有预设Multi模式的FC端口在EVFP协商过程中接收对端FC端口发送的EVFP报文,该EVFP报文的消息载荷Message Payload中依次携带有表示对端所配置模式的标签管理状态Tagging AdminidstativeStatus描述符、表示对端VF_ID的端口VF_ID描述符、以及表示对端所配置Trunk VSAN列表的VF_ID列表描述符;Any FC switch configured with a preset Multi mode FC port receives an EVFP packet sent by the peer FC port during EVFP negotiation. The state Tagging AdminidstativeStatus descriptor, the port VF_ID descriptor representing the peer VF_ID, and the VF_ID list descriptor representing the Trunk VSAN list configured by the peer;

接收到该EVFP报文的FC端口,依据Tagging Adminidstative Status描述符识别对端FC端口是否配置有Multi模式,依据端口VF_ID描述符判断对端VF_ID是否与本端一致,依据VF_ID列表描述符中的Trunk VSAN列表与本端Trunk VSAN列表是否存在交集来判断是否与对端FC端口存在公共Trunk VSAN。The FC port that received the EVFP message identifies whether the peer FC port is configured with Multi mode according to the Tagging Adminidstative Status descriptor, judges whether the peer VF_ID is consistent with the local port according to the port VF_ID descriptor, and judges whether the peer VF_ID is consistent with the local end according to the Trunk in the VF_ID list descriptor. Check whether the VSAN list overlaps with the local Trunk VSAN list to determine whether there is a common Trunk VSAN with the remote FC port.

Tagging Adminidstative Status描述符中包括管理标签模式Administrative Tagging Mode字段;The Tagging Adminidstative Status descriptor includes the Administrative Tagging Mode field;

接收到该EVFP报文的FC端口依据Administrative Tagging Mode字段的取值,判断对端FC端口是否配置有Multi模式;The FC port that receives the EVFP message judges whether the peer FC port is configured with Multi mode according to the value of the Administrative Tagging Mode field;

所述Administrative Tagging Mode字段具有如下的可选取值:The Administrative Tagging Mode field has the following optional values:

表示Non Tagging模式的第一取值;Indicates the first value of the Non Tagging mode;

表示Tagging模式的第二取值;Indicates the second value of the Tagging mode;

表示自动AUTO模式的第三取值,所述AUTO模式表示只要有一端配置有Tagging模式也可随之支持Tagging模式;Indicates the third value of the automatic AUTO mode, and the AUTO mode indicates that as long as one end is configured with the Tagging mode, it can also support the Tagging mode;

表示Multi模式的第四取值。Indicates the fourth value of the Multi mode.

所述第一至第四取值依次为:00000001h、00000002h、00000003h、00000004h。The first to fourth values are sequentially: 00000001h, 00000002h, 00000003h, 00000004h.

由上述技术方案可见,本发明为EVFP协商增设一Multi模式的VSAN能力,该Multi模式表示可同时支持Tagging模式和Non Tagging模式;在FC端口本端与对端同时配置有Multi模式时,如果对端FC端口的VF_ID与本端一致、且与对端FC端口存在公共Trunk VSAN,则由于对于本端与对端VF_ID所属VSAN内的FC报文、可以利用FC端口的VF_ID予以识别并转发,而且本端与对端存在能够以带有VFT_Header方式传输FC报文的公共Trunk VSAN,因而即可通过EVFP协商得到Multi模式的协商结果,并确定在本端VF_ID所属VSAN内以不带有VFT_Header的方式传输FC报文、在公共Trunk VSAN内以带有VFT_Header的方式传输FC报文。此时,即可使得FC端口同时支持Tagging模式和Non Tagging模式,从而能够提高FC端口的通用性。It can be seen from the above technical solution that the present invention adds a Multi mode VSAN capability for EVFP negotiation, and the Multi mode indicates that it can support Tagging mode and Non Tagging mode at the same time; If the VF_ID of the FC port on the local end is the same as that of the local end, and there is a common Trunk VSAN with the FC port on the remote end, the FC packets in the VSAN to which the VF_ID of the local end and the remote end belong can be identified and forwarded by using the VF_ID of the FC port, and The local end and the remote end have a common Trunk VSAN that can transmit FC packets with VFT_Header, so the negotiation result of the Multi mode can be obtained through EVFP negotiation, and the VF_ID of the local end belongs to the VSAN without VFT_Header. Transmit FC packets, and transmit FC packets with VFT_Header in the public trunk VSAN. At this point, the FC port can support both the Tagging mode and the Non-Tagging mode, thereby improving the versatility of the FC port.

进一步地,本发明可通过改进EVFP协议报文的结构来实现上述方案,由于对EVFP协议报文的改进可以利用现有EVFP协议报文的部分资源、且无需对EVFP协商过程进行过多改进,因而使得本发明的技术方案易于实现。Further, the present invention can realize above-mentioned scheme by improving the structure of EVFP protocol message, because the improvement to EVFP protocol message can utilize the part resource of existing EVFP protocol message, and need not carry out too much improvement to EVFP negotiation process, Therefore, the technical solution of the present invention is easy to realize.

附图说明 Description of drawings

图1为现有FC交换机在无标签模式下传输报文的示意图;FIG. 1 is a schematic diagram of an existing FC switch transmitting packets in an unlabeled mode;

图2为现有FC交换机在有标签模式下传输报文的示意图;Fig. 2 is the schematic diagram that existing FC switchboard transmits message in label mode;

图3为本发明实施例中FC端口协商方法的示例性流程图;Fig. 3 is the exemplary flowchart of FC port negotiation method in the embodiment of the present invention;

图4为本发明实施例中FC交换机在混合模式下传输报文的示意图;Fig. 4 is the schematic diagram that FC switch transmits message in mixed mode in the embodiment of the present invention;

图5为本发明实施例中EVFP协议报文的消息载荷结构示意图;Fig. 5 is a schematic diagram of a message load structure of an EVFP protocol message in an embodiment of the present invention;

图6为如图5所示消息载荷中的标签管理状态描述符结构示意图;FIG. 6 is a schematic structural diagram of a label management status descriptor in the message load shown in FIG. 5;

图7为如图6所示描述符中管理标签模式字段可选取值的实例示意图。FIG. 7 is a schematic diagram of examples of values that can be selected for the management tag mode field in the descriptor shown in FIG. 6 .

具体实施方式 Detailed ways

为使本发明的目的、技术方案及优点更加清楚明白,以下参照附图并举实施例,对本发明进一步详细说明。In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings and examples.

本实施例中,为EVFP协商增设一混合(Multi)模式的VSAN能力,该Multi模式表示可同时支持Tagging模式和Non Tagging模式。当然,本实施例并不是简单地在两端FC端口同时配置有Multi模式后即得到Multi模式的EVFP协商结果,而是需要执行一系列的条件判断后才可确定是否得到Multi模式的EVFP协商结果。In this embodiment, a hybrid (Multi) mode VSAN capability is added for EVFP negotiation, and the Multi mode indicates that the Tagging mode and the Non-Tagging mode can be supported at the same time. Of course, this embodiment does not simply obtain the EVFP negotiation result of the Multi mode after the FC ports at both ends are configured with the Multi mode at the same time, but needs to perform a series of conditional judgments before determining whether to obtain the EVFP negotiation result of the Multi mode .

图3为本发明实施例中FC端口协商方法的示例性流程图。如图3所示,本实施例中的FC端口协商方法在EVFP协商过程中包括如下步骤:Fig. 3 is an exemplary flow chart of the FC port negotiation method in the embodiment of the present invention. As shown in Figure 3, the FC port negotiation method in this embodiment includes the following steps in the EVFP negotiation process:

步骤301,FC端口与对端FC端口交互各自的VF_ID、Trunk VSAN列表、以及所配置的模式。In step 301, the FC port and the peer FC port exchange their respective VF_IDs, Trunk VSAN lists, and configured modes.

步骤302,FC端口判断本端与对端FC端口是否均配置有Multi模式,如果是,则执行步骤303,否则执行步骤307。In step 302 , the FC port judges whether the local FC port and the remote FC port are configured with Multi mode, and if so, executes step 303 , otherwise executes step 307 .

步骤303,本端配置有Multi模式的FC端口获知对端FC端口也配置有Multi模式后,判断对端FC端口的VF_ID与本端是否一致、以及与对端FC端口是否存在公共的Trunk VSAN,其中,本步骤中判断本端与对端FC端口是否存在公共的Trunk VSAN,可以通过比较本端Trunk VSAN列表与对端Trunk VSAN列表是否存在交集来实现;Step 303, after the FC port configured with Multi mode on the local end learns that the FC port at the opposite end is also configured with Multi mode, determine whether the VF_ID of the FC port at the opposite end is consistent with the local end, and whether there is a common Trunk VSAN with the FC port at the opposite end. Wherein, in this step, it is judged whether there is a common Trunk VSAN between the local end and the opposite end FC port, which can be realized by comparing whether there is an intersection between the local end Trunk VSAN list and the opposite end Trunk VSAN list;

如果对端FC端口的VF_ID与本端一致、且与对端FC端口存在公共Trunk VSAN,则表示对于本端与对端VF_ID所属VSAN内的FC报文,可以利用FC端口的VF_ID予以识别并转发,而且本端与对端存在能够以带有VFT_Header方式传输FC报文的公共Trunk VSAN,因而可以实现Multi模式、并执行步骤304;If the VF_ID of the remote FC port is the same as that of the local end, and there is a common Trunk VSAN with the remote FC port, it means that the FC packets in the VSAN to which the VF_ID of the local end and the remote end belong can be identified and forwarded by using the VF_ID of the FC port , and there is a public Trunk VSAN capable of transmitting FC packets with VFT_Header between the local end and the opposite end, so the Multi mode can be implemented and step 304 is executed;

如果对端FC端口的VF_ID与本端不同、但与对端FC端口存在公共Trunk VSAN,则表示对于本端与对端VF_ID不一致,无法利用FC端口的VF_ID予以识别并转发,但本端与对端存在能够以带有VFT_Header方式传输FC报文的公共Trunk VSAN,因而需要将Multi模式退化为Tagging模式、并执行步骤305;If the VF_ID of the remote FC port is different from that of the local end, but there is a common Trunk VSAN with the remote FC port, it means that the local and remote VF_IDs are inconsistent and cannot be identified and forwarded by the VF_ID of the FC port. There is a public Trunk VSAN that can transmit FC packets with VFT_Header, so it is necessary to degenerate the Multi mode to the Tagging mode, and perform step 305;

如果对端FC端口的VF_ID与本端一致、但与对端FC端口不存在公共Trunk VSAN,则表示对于本端与对端VF_ID所属VSAN内的FC报文,可以利用FC端口的VF_ID予以识别并转发,但本端与对端存在能够以带有VFT_Header方式传输FC报文的公共Trunk VSAN,因而需要将Multi模式退化为Non Tagging模式、并执行步骤306;If the VF_ID of the remote FC port is the same as that of the local end, but there is no common Trunk VSAN with the remote FC port, it means that the VF_ID of the FC port can be used to identify and Forwarding, but there is a public Trunk VSAN that can transmit FC packets with VFT_Header between the local end and the peer end, so it is necessary to degenerate the Multi mode to the Non Tagging mode and perform step 306;

如果对端FC端口的VF_ID与本端不同、且对端FC端口未配置公共Trunk VSAN列表,则协商失败、并直接结束本流程(图3中未示出)。If the VF_ID of the opposite end FC port is different from that of the local end, and the opposite end FC port is not configured with a public Trunk VSAN list, then the negotiation fails and directly ends this process (not shown in Figure 3).

步骤304,通过EVFP协商得到Multi模式的协商结果,且配置有Multi模式的本端FC端口和对端FC端口确定在本端和对端VF_ID所属VSAN内以不带有VFT_Header的方式传输FC报文、在公共Trunk VSAN内以带有VFT_Header的方式传输FC报文,然后结束本流程。Step 304: Obtain the negotiation result of the Multi mode through EVFP negotiation, and the local FC port and the remote FC port configured with the Multi mode determine to transmit the FC message without VFT_Header in the VSAN to which the local and remote VF_IDs belong 1. Transmit the FC message with the VFT_Header in the public Trunk VSAN, and then end this process.

本步骤中,存在一种特例,即本端与对端FC端口相一致的VF_ID所属VSAN,同时又属于公共Trunk VSAN,此时,对于本端VF_ID所属VSAN内的FC报文,优先以不带有VSAN扩展报文头VFT_Header的方式传输。In this step, there is a special case, that is, the VF_ID of the local end and the remote end belong to the VSAN, and at the same time belong to the public trunk VSAN. In this case, for the FC packets in the VSAN to which the local VF_ID It is transmitted in the form of the VSAN extended header VFT_Header.

步骤305,通过EVFP协商得到Tagging模式的协商结果,且配置有Multi模式的本端FC端口和对端FC端口确定仅在公共Trunk VSAN内以带有VFT_Header的方式传输FC报文,然后结束本流程。Step 305: Obtain the negotiation result of the Tagging mode through EVFP negotiation, and determine that the local FC port and the remote FC port configured with Multi mode only transmit FC packets with VFT_Header in the public trunk VSAN, and then end this process .

步骤306,通过EVFP协商得到Non Tagging模式的协商结果,且配置有Multi模式的本端FC端口和对端FC端口确定仅在本端和对端VF_ID所属VSAN内以不带有VFT_Header的方式传输FC报文,然后结束本流程。Step 306: Obtain the negotiation result of the Non Tagging mode through EVFP negotiation, and determine that the local FC port and the remote FC port configured with the Multi mode only transmit the FC in the VSAN to which the VF_ID of the local end and the remote end belong without VFT_Header message, and then end this process.

步骤307,按照现有方式得到Tagging模式或Non Tagging模式的协商结果,即如果本端和对端均配置有Tagging模式时得到Tagging模式的协商结果、配置有Tagging模式的本端FC端口和对端FC端口确定仅在公共TrunkVSAN内以带有VFT_Header的方式传输FC报文,即如果本端和对端均配置有Non Tagging模式时得到Non Tagging模式的协商结果、配置有NonTagging模式的本端FC端口和对端FC端口确定仅在一致的VF_ID所属VSAN内以不带有VSAN扩展报文头VFT_Header的方式传输FC报文,然后结束本流程。Step 307, obtain the negotiation result of the Tagging mode or the Non-Tagging mode according to the existing method, that is, if both the local end and the opposite end are configured with the Tagging mode, obtain the negotiation result of the Tagging mode, the local FC port and the opposite end configured with the Tagging mode The FC port is determined to only transmit FC packets with VFT_Header in the public TrunkVSAN, that is, if both the local end and the remote end are configured with Non Tagging mode, the negotiation result of the Non Tagging mode is obtained, and the local FC port configured with the Non Tagging mode The FC port at the opposite end determines to transmit FC packets only in the VSAN to which the consistent VF_ID belongs without VFT_Header, and then ends this process.

至此,本流程结束。So far, this process ends.

基于上述方法,本实施例中的一种光纤通道FC交换机系统包括若干FC交换机,且每台FC交换机具有FC端口,其中,Based on the above method, a Fiber Channel FC switch system in this embodiment includes several FC switches, and each FC switch has an FC port, wherein,

若任意FC交换机的FC端口本端未配置前述Multi模式、或对端FC端口未配置前述Multi模式,则可按照现有方式进行处理,即如果本端和对端均配置有Tagging模式时得到Tagging模式的协商结果、配置有Tagging模式的本端FC端口和对端FC端口确定仅在公共Trunk VSAN内以带有VFT_Header的方式传输FC报文,即如果本端和对端均配置有Non Tagging模式时得到Non Tagging模式的协商结果、配置有Non Tagging模式的本端FC端口和对端FC端口确定仅在一致的VF_ID所属VSAN内以不带有VSAN扩展报文头VFT_Header的方式传输FC报文。If the local FC port of any FC switch is not configured with the aforementioned Multi mode, or the remote FC port is not configured with the aforementioned Multi mode, it can be processed according to the existing method, that is, if both the local end and the remote end are configured with Tagging Mode negotiation results, the local FC port configured with Tagging mode and the remote FC port are determined to only transmit FC packets with VFT_Header in the public trunk VSAN, that is, if both the local end and the remote end are configured with Non Tagging mode When the negotiation result of the Non-Tagging mode is obtained, the local FC port configured with the Non-Tagging mode and the remote FC port are determined to only transmit FC packets in the VSAN to which the VF_ID belongs without the VFT_Header extension of the VSAN.

但与现有技术不同之处在于,任意FC交换机配置有前述Multi模式的FC端口,在EVFP协商过程中获知对端FC端口也配置有Multi模式后,判断对端FC端口的VF_ID与本端是否一致、以及与对端FC端口是否存在公共的Trunk VSAN;However, the difference from the existing technology is that any FC switch is configured with the FC port in the aforementioned Multi mode. After learning that the peer FC port is also configured with the Multi mode during the EVFP negotiation process, it is determined whether the VF_ID of the peer FC port is consistent with that of the local end. Consistent, and whether there is a common Trunk VSAN with the peer FC port;

如果对端FC端口的VF_ID与本端一致、且与对端FC端口存在公共Trunk VSAN,则得到Multi模式的协商结果,并确定在本端VF_ID所属VSAN内以不带有VFT_Header的方式传输FC报文、在公共Trunk VSAN内以带有VFT_Header的方式传输FC报文;此时可能存在一种特例,即一致的VF_ID所属VSAN同时又属于公共Trunk VSAN,则对于本端VF_ID所属VSAN内的FC报文,优先以不带有VSAN扩展报文头VFT_Header的方式传输。If the VF_ID of the remote FC port is the same as that of the local end, and there is a common Trunk VSAN with the remote FC port, the negotiation result of the Multi mode is obtained, and it is determined that the VF_ID of the local end belongs to the VSAN without VFT_Header. In this case, there may be a special case, that is, if the same VF_ID belongs to the VSAN and also belongs to the public Trunk VSAN, then the FC packet in the VSAN to which the local VF_ID belongs Files are preferentially transmitted without the VFT_Header extended VSAN header.

如果对端FC端口的VF_ID与本端不同、但与对端FC端口存在公共Trunk VSAN,则得到Tagging模式的协商结果、即将Multi模式退化为Tagging模式,并确定仅在公共Trunk VSAN内以带有VFT_Header的方式传输FC报文;If the VF_ID of the remote FC port is different from that of the local end, but there is a common Trunk VSAN with the remote FC port, the negotiation result of the Tagging mode is obtained, that is, the Multi mode is degraded to the Tagging mode, and it is determined that only in the public Trunk VSAN with VFT_Header way to transmit FC message;

如果对端FC端口的VF_ID与本端一致、但与对端FC端口不存在公共Trunk VSAN,则得到Non Tagging模式的协商结果、即将Multi模式退化为Non Tagging模式,并确定仅在本端VF_ID所属VSAN内以不带有VFT_Header的方式传输FC报文;If the VF_ID of the remote FC port is the same as that of the local end, but there is no common Trunk VSAN with the remote FC port, then the negotiation result of the Non Tagging mode is obtained, that is, the Multi mode is reduced to the Non Tagging mode, and only the VF_ID of the local end belongs FC packets are transmitted in VSAN without VFT_Header;

如果对端FC端口的VF_ID与本端不同、且对端FC端口未配置公共Trunk VSAN列表,则协商失败。If the VF_ID of the remote FC port is different from that of the local end, and the remote FC port is not configured with a public trunk VSAN list, the negotiation fails.

这样,基于上述方法和系统即可使FC端口存在同时支持Tagging模式和Non Tagging模式的可能,从而提高了FC端口的通用性。In this way, based on the above method and system, it is possible for the FC port to support both the Tagging mode and the Non-Tagging mode, thereby improving the versatility of the FC port.

参见图4,假设有属于VSAN10的网络服务器1和磁盘1、属于VSAN20的网络服务器2和磁盘2,且网络服务器1和磁盘1之间、网络服务器2和磁盘2之间均顺序通过FC交换机1和FC交换机2连接,FC交换机1和FC交换机2的FC端口的VF_ID均为属于VSAN10的VF_ID10。Referring to Figure 4, it is assumed that there are network server 1 and disk 1 belonging to VSAN10, and network server 2 and disk 2 belonging to VSAN20, and the connections between network server 1 and disk 1 and between network server 2 and disk 2 pass through FC switch 1 in sequence It is connected to FC switch 2. The VF_IDs of the FC ports of FC switch 1 and FC switch 2 belong to VF_ID10 of VSAN10.

网络服务器1向FC交换机1的VF_ID10的FC端口发送无VFT_Header的FC报文后,由于FC交换机1与FC交换机2互连的FC端口的VF_ID均为属于VSAN10的VF_ID10,即属于VSAN10的FC报文可以不带有VFT_Header,因而FC交换机1依据接收该FC报文的FC端口所配置的表示VSAN10的VF_ID10,将该FC报文以不带VFT_Header的方式通过另一侧配置有VF_ID10的FC端口转发至交换机2配置有VF_ID10的对端FC端口;FC交换机2再依据接收该FC报文的FC端口所配置的表示VSAN10的VF_ID10,将该FC报文通过另一侧配置有VF_ID10的FC端口转发至磁盘1。同理,从磁盘1向网络服务器1仅仅是传输方向的不同,而具体处理过程与上述描述的一致。After network server 1 sends an FC packet without VFT_Header to the FC port of VF_ID10 of FC switch 1, since the VF_ID of the FC port interconnected between FC switch 1 and FC switch 2 is VF_ID10 belonging to VSAN10, that is, the FC packet belonging to VSAN10 VFT_Header may not be included, so FC switch 1 forwards the FC message without VFT_Header through the FC port configured with VF_ID10 on the other side to Switch 2 is configured with the peer FC port with VF_ID10; FC switch 2 forwards the FC packet to the disk through the FC port configured with VF_ID10 on the other side according to the VF_ID10 configured on the FC port that receives the FC packet, representing VSAN10 1. Similarly, only the transmission direction is different from the disk 1 to the network server 1, and the specific processing process is consistent with the above description.

网络服务器2向FC交换机1的VF_ID20的FC端口发送无VFT_Header的FC报文后,由于FC交换机1与FC交换机2互连的FC端口的VF_ID均为属于VSAN10的VF_ID10,即属于VSAN20的FC报文必须带有VFT_Header,而且,FC交换机1与FC交换机2具有公共的Trunk VSAN20,因而FC交换机1为该FC报文添加包含有VF_ID20的VFT_Header,然后再发送到对端的FC交换机2,FC交换机2依据FC报文VFT_Header中的VF_ID20,即可将收到的FC报文转发至与该FC报文同属一个VSAN的磁盘2,并在发送到磁盘2时去除该FC报文的VFT_Header。同理,从磁盘2向网络服务器2仅仅是传输方向的不同、FC交换机1和FC交换机2的处理方式对调,而具体处理过程与上述描述的一致。After network server 2 sends the FC packet without VFT_Header to the FC port of VF_ID20 of FC switch 1, since the VF_ID of the FC port interconnected between FC switch 1 and FC switch 2 is VF_ID10 belonging to VSAN10, that is, the FC packet belonging to VSAN20 It must have a VFT_Header, and FC switch 1 and FC switch 2 have a common Trunk VSAN20, so FC switch 1 adds a VFT_Header containing VF_ID20 to the FC message, and then sends it to the peer FC switch 2, and FC switch 2 according to The VF_ID20 in the VFT_Header of the FC packet can forward the received FC packet to Disk 2 that belongs to the same VSAN as the FC packet, and remove the VFT_Header of the FC packet when sending to Disk 2. Similarly, only the transmission direction is different from the disk 2 to the network server 2, the processing methods of the FC switch 1 and the FC switch 2 are reversed, and the specific processing process is consistent with the above description.

上述方法和系统在EVFP协商过程中,本端FC端口与对端FC端口可通过交互EVFP协议报文来交互各自的VF_ID、Trunk VSAN列表、以及所配置的模式。During the EVFP negotiation process of the above method and system, the local FC port and the peer FC port can exchange their respective VF_IDs, Trunk VSAN lists, and configured modes by exchanging EVFP protocol messages.

参见图5,EVFP报文的消息载荷(Message Payload)中可依次携带有表示对端所配置模式的标签管理状态(Tagging Adminidstative Status)描述符、表示对端VF_ID的端口VF_ID(Port VF_ID)描述符、以及表示对端所配置Trunk VSAN列表的VF_ID列表(Locally-Enabled VF_ID List)描述符;Referring to Figure 5, the message payload (Message Payload) of the EVFP message can successively carry the Tagging Adminidstative Status (Tagging Adminidstative Status) descriptor representing the mode configured by the peer, and the Port VF_ID (Port VF_ID) descriptor representing the peer VF_ID , and the VF_ID list (Locally-Enabled VF_ID List) descriptor representing the Trunk VSAN list configured by the peer;

这样,接收到该EVFP报文的FC端口,即可依据Tagging AdminidstativeStatus描述符识别对端FC端口是否配置有Multi模式,依据端口VF_ID描述符判断对端VF_ID是否与本端一致,依据VF_ID列表描述符中的TrunkVSAN列表与本端Trunk VSAN列表是否存在交集来判断是否与对端FC端口存在公共Trunk VSAN。In this way, the FC port that receives the EVFP packet can identify whether the peer FC port is configured with Multi mode according to the Tagging AdminidstativeStatus descriptor, judge whether the peer VF_ID is consistent with the local port according to the port VF_ID descriptor, and judge whether the peer VF_ID is consistent with the local port according to the VF_ID list descriptor. Check whether there is an intersection between the TrunkVSAN list and the local TrunkVSAN list to determine whether there is a common TrunkVSAN with the remote FC port.

进一步参见图6,Tagging Adminidstative Status描述符中包括管理标签模式(Administrative Tagging Mode)字段;Referring further to Fig. 6, the Tagging Adminidstative Status descriptor includes an Administrative Tagging Mode field;

相应地,接收到该EVFP报文的FC端口可依据Administrative TaggingMode字段的取值,即可判断对端FC端口是否配置有Multi模式。Correspondingly, the FC port receiving the EVFP message can judge whether the peer FC port is configured with the Multi mode according to the value of the Administrative TaggingMode field.

其中,Administrative Tagging Mode字段具有如下的可选取值:Among them, the Administrative Tagging Mode field has the following optional values:

表示Non Tagging模式的第一取值;Indicates the first value of the Non Tagging mode;

表示Tagging模式的第二取值;Indicates the second value of the Tagging mode;

表示自动AUTO模式的第三取值,所述AUTO模式表示只要有一端配置有Tagging模式也可随之支持Tagging模式;Indicates the third value of the automatic AUTO mode, and the AUTO mode indicates that as long as one end is configured with the Tagging mode, it can also support the Tagging mode;

表示Multi模式的第四取值。Indicates the fourth value of the Multi mode.

图7中示出了Administrative Tagging Mode字段可选取值的一实例,即第一至第四取值依次为:00000001h、00000002h、00000003h、00000004h。Figure 7 shows an example of values that can be selected for the Administrative Tagging Mode field, that is, the first to fourth values are: 00000001h, 00000002h, 00000003h, 00000004h.

当然,基于本实施例的上述方案,本领域技术人员也能够想到其他方式来实现本端FC端口与对端FC端口交互各自的VF_ID、Trunk VSAN列表、以及所配置的模式实际应用中,本文在此不再一一列举。Of course, based on the above solution of this embodiment, those skilled in the art can also think of other ways to realize the exchange of the respective VF_ID, Trunk VSAN list, and configured modes between the local FC port and the peer FC port. This will not list them one by one.

以上所述仅为本发明的较佳实施例而已,并非用于限定本发明的保护范围。凡在本发明的精神和原则之内,所作的任何修改、等同替换以及改进等,均应包含在本发明的保护范围之内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the protection scope of the present invention. Any modifications, equivalent replacements and improvements made within the spirit and principles of the present invention shall be included within the protection scope of the present invention.

Claims (10)

1. optical-fibre channel FC port negotiation method, it is characterized in that, EVFP consults to arrange mixing Multi pattern for exchange virtual fiber channel parameters, described Multi modal representation can have been supported label Tagging pattern and no label Non Tagging pattern simultaneously, and in the EVFP negotiations process, after the FC port that local terminal disposes the Multi pattern knows that opposite end FC port also disposes the Multi pattern:
Whether the virtual memory LAN sign VF_ID that judges opposite end FC port and local terminal be consistent and whether have public backbone virtual memory LAN Trunk VSAN with opposite end FC port;
If the VF_ID of opposite end FC port is consistent with local terminal and have public Trunk VSAN with opposite end FC port, then obtain the negotiation result of Multi pattern, and determine under local terminal VF_ID, to transmit the FC message, in public Trunk VSAN, transmit the FC message in the mode that has VFT_Header in the mode that does not have VSAN amplifying message head VFT_Header in the VSAN;
There is public Trunk VSAN if the VF_ID of opposite end FC port is different with local terminal with opposite end FC port, then obtains the negotiation result of Tagging pattern, and determine only in public Trunk VSAN, to transmit the FC message in the mode that has VFT_Header;
There is not public Trunk VSAN if the VF_ID of opposite end FC port is consistent with local terminal with opposite end FC port, then obtain the negotiation result of Non Tagging pattern, and determine only under local terminal VF_ID, to transmit the FC message in the mode that does not have VFT_Header in the VSAN;
If the VF_ID of opposite end FC port is different with local terminal and opposite end FC port does not dispose public Trunk VSAN tabulation, then consult failure.
2. machinery of consultation as claimed in claim 1, it is characterized in that, consistent with local terminal and when having public Trunk VSAN with opposite end FC port at the VF_ID of opposite end FC port, if VSAN belongs to public Trunk VSAN simultaneously again under the VF_ID of local terminal and opposite end FC port, then for the FC message in the VSAN under the local terminal VF_ID, preferentially transmit in the mode that does not have VSAN amplifying message head VFT_Header.
3. machinery of consultation as claimed in claim 1 or 2, it is characterized in that, the FC port that local terminal disposes the Multi pattern receives the EVFP message that opposite end FC port sends in the EVFP negotiations process, carry the tag control state Tagging Adminidstative Status descriptor of expression opposite end institute configuration mode, the port VF_ID descriptor of representing opposite end VF_ID and expression opposite end among the message load Message Payload of this EVFP message successively and dispose the VF_ID list descriptor of Trunk VSAN tabulation;
Receive the FC port of this EVFP message, whether dispose the Multi pattern according to Tagging Adminidstative Status descriptor identification opposite end FC port, judge according to port VF_ID descriptor whether opposite end VF_ID is consistent with local terminal, whether exist to occur simultaneously with local terminal Trunk VSAN tabulation according to the tabulation of the Trunk VSAN in the VF_ID list descriptor to judge whether to have public Trunk VSAN with opposite end FC port.
4. machinery of consultation as claimed in claim 3 is characterized in that, comprises Management label Mode A dministrative Tagging Mode field in the Tagging Adminidstative Status descriptor;
Receive the FC port of this EVFP message according to the value of Administrative Tagging Mode field, judge whether opposite end FC port disposes the Multi pattern;
Described Administrative Tagging Mode field has following selected value:
First value of expression Non Tagging pattern;
Second value of expression Tagging pattern;
The 3rd value of representing automatic AUTO pattern is also supported the Tagging pattern as long as described AUTO modal representation has an end to dispose the Tagging pattern thereupon;
The 4th value of expression Multi pattern.
5. machinery of consultation as claimed in claim 4 is characterized in that, described first to fourth value is followed successively by: 00000001h, 00000002h, 00000003h, 00000004h.
6. an optical-fibre channel FC switch system comprises some FC switches, and every FC switch has the FC port, it is characterized in that,
The FC switch is configured with the FC port of the default Multi of mixing pattern arbitrarily, know that opposite end FC port also disposes the Multi pattern in exchange virtual fiber channel parameters EVFP negotiations process after, whether the virtual memory LAN of judging opposite end FC port identifies VF_ID and local terminal consistent and whether have public backbone virtual memory LAN Trunk VSAN with opposite end FC port; Wherein, the Multi modal representation can have been supported label Tagging pattern and no label Non Tagging pattern simultaneously;
If the VF_ID of opposite end FC port is consistent with local terminal and have public Trunk VSAN with opposite end FC port, then obtain the negotiation result of Multi pattern, and determine under local terminal VF_ID, to transmit the FC message, in public Trunk VSAN, transmit the FC message in the mode that has VFT_Header in the mode that does not have VSAN amplifying message head VFT_Header in the VSAN;
There is public Trunk VSAN if the VF_ID of opposite end FC port is different with local terminal with opposite end FC port, then obtains the negotiation result of Tagging pattern, and determine only in public Trunk VSAN, to transmit the FC message in the mode that has VFT_Header;
There is not public Trunk VSAN if the VF_ID of opposite end FC port is consistent with local terminal with opposite end FC port, then obtain the negotiation result of Non Tagging pattern, and determine only under local terminal VF_ID, to transmit the FC message in the mode that does not have VFT_Header in the VSAN;
If the VF_ID of opposite end FC port is different with local terminal and opposite end FC port does not dispose public Trunk VSAN tabulation, then consult failure.
7. system as claimed in claim 6, it is characterized in that, if the VF_ID of opposite end FC port is consistent with local terminal, have public Trunk VSAN with opposite end FC port, and VSAN belongs to public Trunk VSAN simultaneously again under the VF_ID of described unanimity, then for the FC message in the VSAN under the local terminal VF_ID, preferentially transmit in the mode that does not have VSAN amplifying message head VFT_Header.
8. as claim 6 or 7 described systems, it is characterized in that, the FC switch configuration has the FC port of default Multi pattern to receive the EVFP message that opposite end FC port sends in the EVFP negotiations process arbitrarily, carries the tag control state Tagging Adminidstative Status descriptor of expression opposite end institute configuration mode, the port VF_ID descriptor of representing opposite end VF_ID and expression opposite end among the message load Message Payload of this EVFP message successively and disposes the VF_ID list descriptor of Trunk VSAN tabulation;
Receive the FC port of this EVFP message, whether dispose the Multi pattern according to Tagging Adminidstative Status descriptor identification opposite end FC port, judge according to port VF_ID descriptor whether opposite end VF_ID is consistent with local terminal, whether exist to occur simultaneously with local terminal Trunk VSAN tabulation according to the tabulation of the Trunk VSAN in the VF_ID list descriptor to judge whether to have public Trunk VSAN with opposite end FC port.
9. system as claimed in claim 8 is characterized in that, comprises Management label Mode A dministrative Tagging Mode field in the Tagging Adminidstative Status descriptor;
Receive the FC port of this EVFP message according to the value of Administrative Tagging Mode field, judge whether opposite end FC port disposes the Multi pattern;
Described Administrative Tagging Mode field has following selected value:
First value of expression Non Tagging pattern;
Second value of expression Tagging pattern;
The 3rd value of representing automatic AUTO pattern is also supported the Tagging pattern as long as described AUTO modal representation has an end to dispose the Tagging pattern thereupon;
The 4th value of expression Multi pattern.
10. system as claimed in claim 9 is characterized in that, described first to fourth value is followed successively by: 00000001h, 00000002h, 00000003h, 00000004h.
CN 200910236060 2009-10-19 2009-10-19 Negotiation method of fiber channel (FC) port and FC exchanger system Active CN102045603B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200910236060 CN102045603B (en) 2009-10-19 2009-10-19 Negotiation method of fiber channel (FC) port and FC exchanger system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200910236060 CN102045603B (en) 2009-10-19 2009-10-19 Negotiation method of fiber channel (FC) port and FC exchanger system

Publications (2)

Publication Number Publication Date
CN102045603A CN102045603A (en) 2011-05-04
CN102045603B true CN102045603B (en) 2013-09-11

Family

ID=43911295

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200910236060 Active CN102045603B (en) 2009-10-19 2009-10-19 Negotiation method of fiber channel (FC) port and FC exchanger system

Country Status (1)

Country Link
CN (1) CN102045603B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102215067B (en) * 2011-07-11 2014-07-30 福建星网锐捷网络有限公司 Port auto negotiation method and device
CN112311648B (en) * 2020-11-05 2022-03-25 京信网络系统股份有限公司 Multi-optical-port communication method, device, equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2003085900A1 (en) * 2002-04-01 2003-10-16 Cisco Technology, Inc. Label switching in fibre channel networks
CN1623136A (en) * 2002-01-09 2005-06-01 思科技术公司 Methods and apparatus for implementing virtualization of storage within a storage area network through a virtual enclosure
CN1852218A (en) * 2006-04-19 2006-10-25 华为技术有限公司 Method for configurating VLANtag
CN101442484A (en) * 2008-12-05 2009-05-27 杭州华三通信技术有限公司 Method, system and equipment for detecting stacking multi-Active
CN101453673A (en) * 2006-08-21 2009-06-10 华为技术有限公司 Optical network terminal, and packet process method thereof

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1623136A (en) * 2002-01-09 2005-06-01 思科技术公司 Methods and apparatus for implementing virtualization of storage within a storage area network through a virtual enclosure
WO2003085900A1 (en) * 2002-04-01 2003-10-16 Cisco Technology, Inc. Label switching in fibre channel networks
CN1852218A (en) * 2006-04-19 2006-10-25 华为技术有限公司 Method for configurating VLANtag
CN101453673A (en) * 2006-08-21 2009-06-10 华为技术有限公司 Optical network terminal, and packet process method thereof
CN101442484A (en) * 2008-12-05 2009-05-27 杭州华三通信技术有限公司 Method, system and equipment for detecting stacking multi-Active

Also Published As

Publication number Publication date
CN102045603A (en) 2011-05-04

Similar Documents

Publication Publication Date Title
CN104580024B (en) The Ethernet interconnection architecture interchanger of extension
US8108454B2 (en) Address assignment in Fibre Channel over Ethernet environments
EP2226973B1 (en) Routing of frames in a TRILL network using VLAN identifiers
US9036507B2 (en) Discovery for fibre channel over ethernet devices
EP2202923B1 (en) Routing frames in a computer network using bridge identifiers
EP2282453B1 (en) Routing frames in a shortest path computer network for a multi-homed legacy bridge node
EP2493127B1 (en) Method for virtual link discovery control and system for fibre channel over ethernet protocol
CN102006184B (en) Management method, device and network device of stack link
CN102171973B (en) Method and system for detecting and managing Fiber Channel over Ethernet switch failures
EP2618521B1 (en) Method, apparatus and system for link aggregation failure protection
US8713162B2 (en) Direct mode adapter based shortcut for FCoE data transfer
US8767751B2 (en) Unsolicited FIP packet injection by proxy and spoofing and autoconfiguring intermediate bridges using FIP snooping
EP2264949A1 (en) Forwarding frames in a computer network using shortest path bridging
US20120163174A1 (en) Methods and apparatus to reduce forwarding state on an fcoe-to-fc gateway using port-specific mac addresses
US20140359137A1 (en) Method, apparatus, name server and system for establishing fcoe communication connection
US8953605B1 (en) Methods and apparatus for a handshake protocol in a LAG-based multipath switch fabric for multipath OAM
CN115189920A (en) Cross-network domain communication method and related device
CN103490968B (en) Method and device for interconnecting across data centers in FCoE network
CN111585791B (en) Data synchronization configuration method, system and storage medium
CN102239670A (en) A load sharing method and device
CN102045603B (en) Negotiation method of fiber channel (FC) port and FC exchanger system
US8934492B1 (en) Network systems and methods for efficiently dropping packets carried by virtual circuits
CN119743492B (en) Distributed storage-oriented data channel multipath selection method
JP5785906B2 (en) Communications system
CN120111012A (en) Data transmission method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CP03 Change of name, title or address
CP03 Change of name, title or address

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

Patentee after: NEW H3C TECHNOLOGIES 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: HANGZHOU H3C TECHNOLOGIES Co.,Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20250208

Address after: Room 801, 8th Floor, Tsinghua International Science and Technology Exchange Center, East Gate of Tsinghua University, Shuangqing Road, Haidian District, Beijing 100080

Patentee after: Beijing Ziguang Communication Technology Group Co.,Ltd.

Country or region after: China

Address before: 310052 Changhe Road, Binjiang District, Hangzhou, Zhejiang Province, No. 466

Patentee before: NEW H3C TECHNOLOGIES Co.,Ltd.

Country or region before: China