CN103379151B - A kind of flux exchange, Apparatus and system - Google Patents
A kind of flux exchange, Apparatus and system Download PDFInfo
- Publication number
- CN103379151B CN103379151B CN201210118340.5A CN201210118340A CN103379151B CN 103379151 B CN103379151 B CN 103379151B CN 201210118340 A CN201210118340 A CN 201210118340A CN 103379151 B CN103379151 B CN 103379151B
- Authority
- CN
- China
- Prior art keywords
- node
- switch
- new registration
- identification information
- mode
- 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.)
- Expired - Fee Related
Links
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
本发明实施例提供了一种流量转换方法、装置及系统,涉及通信领域,可以减少在标准模式FC交换机的转发流量,提高系统性能。NPV模式FC交换机接收标准模式FC交换机发送的新注册节点和匹配节点的节点标识信息,根据所述节点标识信息生成本地转发表,从而使得NPV模式FC交换机在所述新注册节点和所述匹配节点进行流量交换时根据所述本地转发表直接对交换的流量进行转发。本发明实施例应用于FC SAN中的流量转发。
The embodiment of the present invention provides a traffic conversion method, device and system, which relate to the field of communication, and can reduce the forwarding traffic of an FC switch in a standard mode and improve system performance. The NPV mode FC switch receives the node identification information of the new registration node and the matching node sent by the standard mode FC switch, and generates a local forwarding table according to the node identification information, so that the NPV mode FC switch is between the new registration node and the matching node When performing traffic exchange, the exchanged traffic is directly forwarded according to the local forwarding table. The embodiment of the present invention is applied to traffic forwarding in FC SAN.
Description
技术领域 technical field
本发明涉及通信领域,尤其涉及一种流量交换方法、装置及系统。The present invention relates to the communication field, in particular to a traffic exchange method, device and system.
背景技术 Background technique
光纤通道(Fibre Channel,简称:FC)存储区域网络(Storage AreaNetwork,简称:SAN)主要由带主机总线适配器(Host Bus Adapter,简称:HBA)卡的节点即主机或存储器以及光纤通道网络(FC Fabric)组成,所述FC Fabric包含有若干个标准模式FC交换机,每个标准模式FC交换机都有一个域名标识(domain ID)。所述节点在FC Fabric上注册成功后,所述FC Fabric会给所述节点分配一个节点端口标识(Node Port ID,简称:N_Pord ID),所述N_Port ID由24位组成,其中只有高8位字段为标准FC交换机的domain ID用于区分所述节点归属的标准模式FC交换机,所以一个FC SAN网络中标准模式FC交换机的个数理论上不能超过256个,而且由于路由技术、控制面数据同步等原因标准模式FC交换机的个数一般不超过50个,这限制了FC SAN网络的规模。现有技术引入了节点端口虚拟化NPV(NodePort Virtualization,简称:NPV)模式FC交换机来扩展FC SAN网络的规模。所述NPV模式FC交换机处于节点与标准模式FC交换机之间,相当于代理服务器,没有domain ID,用于透传节点与标准模式FC交换机之间的流量。Fiber Channel (Fibre Channel, referred to as: FC) Storage Area Network (Storage Area Network, referred to as: SAN) is mainly composed of nodes with Host Bus Adapter (Host Bus Adapter, referred to as: HBA) card that is the host or storage and Fiber Channel network (FC Fabric ), the FC Fabric includes several standard-mode FC switches, and each standard-mode FC switch has a domain ID (domain ID). After the node is successfully registered on the FC Fabric, the FC Fabric will assign a node port ID (Node Port ID, N_Pord ID for short) to the node. The N_Port ID consists of 24 bits, of which only the upper 8 bits are The domain ID of the standard FC switch is used to distinguish the standard mode FC switch to which the node belongs. Therefore, the number of standard mode FC switches in an FC SAN network should theoretically not exceed 256, and due to routing technology and control plane data synchronization For other reasons, the number of FC switches in the standard mode generally does not exceed 50, which limits the scale of the FC SAN network. The prior art introduces a node port virtualization NPV (NodePort Virtualization, NPV for short) mode FC switch to expand the scale of the FC SAN network. The NPV mode FC switch is located between the node and the standard mode FC switch, which is equivalent to a proxy server without a domain ID, and is used for transparent transmission of traffic between the node and the standard mode FC switch.
FC SAN网络中所有的节点相互之间进行流量交换都遵循分区(Zone)安全互访机制,即只有在同一个Zone中的节点才可以进行流量交换。每定义一个Zone,管理员都会把Zone信息同步下发给所述FC Fabric中的所有标准模式FC交换机,所述Zone信息包括处于所述Zone中的所有节点的节点标识信息。由于NPV模式FC交换机没有domain ID,而管理员下发Zone信息时是以domain ID为目的地址下发的,所以NPV模式FC交换机接收不到同步下发的Zone信息。All nodes in the FC SAN network exchange traffic with each other in accordance with the Zone (Zone) security mutual access mechanism, that is, only nodes in the same Zone can exchange traffic. Every time a Zone is defined, the administrator will synchronously deliver the Zone information to all standard-mode FC switches in the FC Fabric, and the Zone information includes node identification information of all nodes in the Zone. Since the FC switch in NPV mode does not have a domain ID, and the administrator sends zone information with the domain ID as the destination address, the FC switch in NPV mode cannot receive the zone information delivered synchronously.
处于同一个NPV模式FC交换机下的两个主机之间在进行流量交换时,需要先将流量发送给该NPV模式FC交换机,再由其发送给归属的标准模式FC交换机,由该标准模式FC交换机确认所述两个主机属于同一Zone后,将接收到的流量再通过该NPV模式FC交换机发送给进行流量交换的主机。这样将流量都发送至标准模式FC交换机,再由标准模式FC交换机转发,导致大量流量集中在标准模式FC交换机,造成网络拥堵,降低了网络的系统性能。When traffic is exchanged between two hosts under the same NPV mode FC switch, the traffic needs to be sent to the NPV mode FC switch first, and then sent to the standard mode FC switch to which it belongs, and the standard mode FC switch After confirming that the two hosts belong to the same zone, the received traffic is sent to the host for traffic exchange through the NPV mode FC switch. In this way, all traffic is sent to the standard-mode FC switch and then forwarded by the standard-mode FC switch. As a result, a large amount of traffic is concentrated on the standard-mode FC switch, causing network congestion and reducing network system performance.
发明内容 Contents of the invention
本发明的实施例提供一种流量转发的方法、装置及系统,可以减少在标准模式FC交换机的转发流量,提高系统性能。Embodiments of the present invention provide a traffic forwarding method, device and system, which can reduce the forwarding traffic of an FC switch in a standard mode and improve system performance.
为达到上述目的,本发明的实施例采用如下技术方案:In order to achieve the above object, embodiments of the present invention adopt the following technical solutions:
一种流量交换方法,包括:A method of traffic exchange comprising:
节点端口虚拟化NPV模式光纤通道FC交换机接收标准模式FC交换机发送的新注册节点和匹配节点的节点标识信息;所述匹配节点为与所述新注册节点的注册端口相同且属于同一分区Zone的已注册节点;The node port virtualization NPV mode Fiber Channel FC switch receives the node identification information of the newly registered node and the matching node sent by the standard mode FC switch; register node;
所述NPV模式FC交换机根据所述新注册节点和匹配节点的节点标识信息生成本地转发表,所述本地转发表包括两两进行流量交换的所述新注册节点和所述匹配节点的节点标识信息;The NPV mode FC switch generates a local forwarding table according to the node identification information of the newly registered node and the matching node, and the local forwarding table includes the node identification information of the newly registered node and the matching node for traffic exchange in pairs ;
所述NPV模式FC交换机在所述新注册节点和所述匹配节点进行流量交换时根据所述本地转发表直接对交换的流量进行转发。The FC switch in NPV mode directly forwards the exchanged traffic according to the local forwarding table when the newly registered node exchanges traffic with the matching node.
一种流量转发方法,包括:A traffic forwarding method, comprising:
标准模式光纤通道FC交换机查询与新注册节点的注册端口相同且属于同一分区Zone的匹配节点的节点标识信息;The standard mode Fiber Channel FC switch queries the node identification information of the matching node that has the same registered port as the newly registered node and belongs to the same Zone;
所述标准模式FC交换机通过所述注册端口将所述新注册节点和所述匹配节点的节点标识信息发送给节点端口虚拟化NPV模式FC交换机,以使得所述NPV模式FC交换机生成本地转发表,从而使所述NPV模式FC交换机在所述新注册节点和所述匹配节点进行流量交换时根据所述本地转发表直接对交换的流量进行转发;所述本地转发表包括能够两两进行流量交换的所述新注册节点和所述匹配节点的节点标识信息。The standard mode FC switch sends the node identification information of the newly registered node and the matching node to the node port virtualization NPV mode FC switch through the registration port, so that the NPV mode FC switch generates a local forwarding table, Thus, the NPV mode FC switch directly forwards the exchanged traffic according to the local forwarding table when the newly registered node and the matching node perform traffic exchange; the local forwarding table includes two-by-two traffic exchange Node identification information of the newly registered node and the matching node.
一种NPV模式FC交换机,包括:An NPV mode FC switch, comprising:
接收器,用于接收标准模式FC交换机发送的新注册节点和匹配节点的节点标识信息;所述匹配节点为与新注册节点的注册端口相同且属于同一Zone的节点;The receiver is used to receive the node identification information of the new registration node and the matching node sent by the standard mode FC switch; the matching node is a node that is identical to the registration port of the new registration node and belongs to the same Zone;
生成单元,用于根据所述新注册节点和匹配节点的节点标识信息生成本地转发表,所述本地转发表包括两两进行流量交换的所述新注册节点和所述匹配节点的节点标识信息;A generating unit, configured to generate a local forwarding table according to the node identification information of the newly registered node and the matching node, where the local forwarding table includes the node identification information of the newly registered node and the matching node for traffic exchange in pairs;
处理器,用于在所述新注册节点和所述匹配节点进行流量交换时根据所述本地转发表直接对交换的流量进行转发。A processor, configured to directly forward the exchanged traffic according to the local forwarding table when the newly registered node exchanges traffic with the matching node.
一种标准模式FC交换机,包括:A standard mode FC switch, including:
查询单元,用于查询与新注册节点的注册端口相同且属于同一Zone的匹配节点的节点标识信息;The query unit is used to query the node identification information of the matching node that has the same registration port as the newly registered node and belongs to the same Zone;
发送器,通过所述注册端口将所述新注册节点和所述匹配节点的节点标识信息发送给NPV模式FC交换机;以使得所述NPV模式FC交换机生成本地转发表,从而使所述NPV模式FC交换机在所述新注册节点和所述匹配节点进行流量交换时根据所述本地转发表直接对交换的流量进行转发;所述本地转发表包括两两进行流量交换的所述新注册节点和所述匹配节点的节点标识信息。The sender sends the node identification information of the new registration node and the matching node to the NPV mode FC switch through the registration port; so that the NPV mode FC switch generates a local forwarding table, so that the NPV mode FC When the new registration node and the matching node perform traffic exchange, the switch directly forwards the exchanged traffic according to the local forwarding table; the local forwarding table includes the new registration node and the Node ID information for the matching node.
一种流量交换系统,包括上述的NPV模式FC交换机和标准模式FC交换机。A flow switching system includes the FC switch in NPV mode and the FC switch in standard mode.
上述技术方案提供的一种流量交换方法、装置及系统,可以让在同一NPV模式FC交换机下的同一Zone的节点直接通过所述NPV模式FC交换机进行流量交换,不必再通过标准模式FC交换机进行流量交换,从而可以减少标准模式FC交换机的转发流量,提高系统性能。The traffic exchange method, device and system provided by the above technical solution can allow the nodes in the same zone under the same NPV mode FC switch to directly exchange traffic through the NPV mode FC switch, instead of passing through the standard mode FC switch. switching, thereby reducing the forwarding traffic of the standard-mode FC switch and improving system performance.
附图说明 Description of drawings
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments of the present invention. Those skilled in the art can also obtain other drawings based on these drawings without creative work.
图1为实施例1提供的一种流量交换方法流程示意图;FIG. 1 is a schematic flow chart of a traffic exchange method provided in Embodiment 1;
图2为实施例1提供的另一种流量交换方法流程示意图;FIG. 2 is a schematic flow chart of another traffic exchange method provided in Embodiment 1;
图3为实施例2提供的一种流量交换方法流程示意图;FIG. 3 is a schematic flow chart of a traffic exchange method provided in Embodiment 2;
图4为实施例2提供的一种NPV模式FC交换机的结构框图;Fig. 4 is the structural block diagram of a kind of NPV mode FC switchboard that embodiment 2 provides;
图5为实施例2提供的另一种NPV模式FC交换机的结构框图;Fig. 5 is the structural block diagram of another kind of NPV mode FC switchboard that embodiment 2 provides;
图6为实施例2提供的一种标准模式FC交换机的结构框图;Fig. 6 is the structural block diagram of a kind of standard mode FC switch provided by embodiment 2;
图7为实施例2提供的另一种标准模式FC交换机的结构框图;Fig. 7 is the structural block diagram of another kind of standard mode FC switch provided by embodiment 2;
图8为实施例2提供的一种流量交换系统。FIG. 8 is a traffic switching system provided by Embodiment 2.
具体实施方式 detailed description
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.
实施例1:Example 1:
本发明实施例提供了一种流量交换方法,用于NPV模式FC交换机一侧,如图1所示,所述方法包括以下步骤:The embodiment of the present invention provides a traffic exchange method, which is used on the side of the FC switch in NPV mode. As shown in FIG. 1, the method includes the following steps:
101、NPV模式FC交换机接收标准模式FC交换机发送的新注册节点和匹配节点的节点标识信息。101. The FC switch in the NPV mode receives the node identification information of the newly registered node and the matching node sent by the FC switch in the standard mode.
FC SAN主要由带HBA卡的节点即主机或存储器以及FC Fabric组成,所述FC Fabric中包含有若干个标准模式FC交换机以及NPV模式FC交换机。当有新的节点要接入FC SAN网络时,会通过光纤定向连接的NPV模式FC交换机向所述FC Fabric中的标准模式FC交换机发送注册请求;所述标准模式FC交换机与所述NPV模式FC交换机也有光纤在对应端口定向连接,所述标准模式FC交换机即为新接入节点归属的标准模式FC交换机。所述新接入节点归属的标准模式FC交换机在接收到新接入节点的注册请求后,会向所述新接入节点发送一个N_Port ID,表示所述新接入节点注册成功。其中所述N_Port ID的前8位,为所述归属的标准模式FC交换机的地址标识,后16位为所述归属的标准模式FC交换机为新注册节点即上述新接入节点分配的地址标识,用于表示所述新注册节点的地址。The FC SAN is mainly composed of nodes with HBA cards, that is, hosts or storage devices, and FC Fabric, which includes several standard-mode FC switches and NPV-mode FC switches. When there is a new node to access the FC SAN network, the NPV mode FC switch that is connected through the optical fiber will send a registration request to the standard mode FC switch in the FC Fabric; the standard mode FC switch and the NPV mode FC The switch also has an optical fiber directional connection at the corresponding port, and the standard mode FC switch is the standard mode FC switch to which the new access node belongs. After receiving the registration request of the new access node, the standard-mode FC switch to which the new access node belongs sends an N_Port ID to the new access node, indicating that the registration of the new access node is successful. Wherein, the first 8 bits of the N_Port ID are the address identification of the standard mode FC switch attributable, and the last 16 bits are the address identification assigned by the standard mode FC switch at the attribution to the new registration node, that is, the above-mentioned new access node, Indicates the address of the newly registered node.
所述匹配节点为与新注册节点的注册端口相同且属于同一Zone的已注册节点。这里所述的注册端口为标准FC交换机接收节点发送的注册请求时所用的端口。所述标准模式FC交换机在给所述新注册节点分配了N_Port ID后,所述标准模式FC交换机可以查询所述新注册节点的匹配节点。所述匹配节点与所述新注册节点的注册端口相同,由于每个NPV模式交换机都与标准FC交换机的一个端口通过光纤一一对应连接,故可以确认所述匹配节点与所述新注册节点在同一个NPV模式FC交换机下,是通过同一个NPV模式FC交换机向所述标准模式FC交换机注册的。所述匹配节点与所述新注册节点属于同一Zone,则可以确认所述匹配节点与所述新注册节点可以两两直接进行流量交换。由上可知,所述匹配节点为和所述新注册节点在同一个NPV模式FC交换机下可以直接进行流量交换的节点。所述标准模式FC交换机可以查询到所述匹配节点的节点标识信息。然后,所述标准模式FC交换机会将所述新注册节点的节点标识信息和所述匹配节点的节点标识信息通过上述的注册端口和连接端口的光纤发送给所述NPV模式FC交换机,所述NPV模式FC交换机接收标准模式FC交换机发送的新注册节点和匹配节点的节点标识信息。The matching node is a registered node that has the same registration port as that of the newly registered node and belongs to the same Zone. The registration port described here is a port used by a standard FC switch to receive a registration request sent by a node. After the standard-mode FC switch allocates the N_Port ID to the new registration node, the standard-mode FC switch can query the matching node of the new registration node. The registration ports of the matching node and the new registration node are the same, and since each NPV mode switch is connected to a port of the standard FC switch through an optical fiber one-to-one, it can be confirmed that the matching node and the new registration node are in Under the same FC switch in NPV mode, register with the FC switch in standard mode through the same FC switch in NPV mode. If the matching node and the new registration node belong to the same Zone, it can be confirmed that the matching node and the new registration node can directly exchange traffic in pairs. It can be known from the above that the matching node is a node that can directly exchange traffic under the same NPV mode FC switch as the newly registered node. The standard mode FC switch can query the node identification information of the matching node. Then, the standard mode FC switch will send the node identification information of the newly registered node and the node identification information of the matching node to the NPV mode FC switch through the above-mentioned registration port and the optical fiber connecting the port, and the NPV The mode FC switch receives the node identification information of the newly registered node and the matching node sent by the standard mode FC switch.
102、NPV模式FC交换机根据所述节点标识信息生成本地转发表。102. The FC switch in NPV mode generates a local forwarding table according to the node identification information.
所述NPV模式FC交换机可以根据接收到的新注册节点和匹配节点的节点标识信息生成本地转发表,所述本地转发表包括所述新注册节点的节点标识信息和所述匹配节点的节点标识信息。The NPV mode FC switch can generate a local forwarding table according to the received node identification information of the newly registered node and the matching node, and the local forwarding table includes the node identification information of the newly registered node and the node identification information of the matching node .
103、所述NPV模式FC交换机在所述新注册节点和所述匹配节点进行流量交换时根据所述本地转发表直接对交换的流量进行转发。103. The FC switch in NPV mode directly forwards the exchanged traffic according to the local forwarding table when the newly registered node exchanges traffic with the matching node.
当所述新注册节点需要与某个匹配节点进行流量交换时,所述新注册节点和所述某个匹配节点可以将需要交换的流量发送至所述NPV模式FC交换机,所述NPV模式FC交换机查询所述本地转发表发现所述新注册节点的节点标识信息和所述某个匹配节点的节点标识信息在同一个所述本地转发表中,故判定所述新注册节点与所述某个匹配节点可以进行流量交换,则所述NPV模式FC交换机可以直接将所述流量转发给该流量对应的目标节点。这里说的直接将流量转发给目标节点是指不通过标准模式FC交换机直接将流量转发给目标节点。这样一来所述需要转发的流量不用发送至标准模式FC交换机,再由标准模式FC交换机转发,可以减少标准模式FC交换机的转发流量,提高系统性能。When the newly registered node needs to exchange traffic with a certain matching node, the newly registered node and the certain matching node may send the traffic to be exchanged to the NPV mode FC switch, and the NPV mode FC switch Querying the local forwarding table finds that the node identification information of the newly registered node and the node identification information of the certain matching node are in the same local forwarding table, so it is determined that the newly registered node matches the certain matching node Nodes can exchange traffic, and the FC switch in NPV mode can directly forward the traffic to the target node corresponding to the traffic. Directly forwarding the traffic to the target node mentioned here refers to directly forwarding the traffic to the target node without going through the standard mode FC switch. In this way, the traffic that needs to be forwarded does not need to be sent to the standard mode FC switch, and then forwarded by the standard mode FC switch, which can reduce the forwarding traffic of the standard mode FC switch and improve system performance.
本发明实施例提供的流量交换方法,还用于标准模式FC交换机一侧,如图2所示,所述方法包括以下步骤:The traffic exchange method provided by the embodiment of the present invention is also used on the side of the standard mode FC switch, as shown in Figure 2, the method includes the following steps:
201、标准模式FC交换机查询与新注册节点的注册端口相同且属于同一Zone的匹配节点的节点标识信息。201. The FC switch in standard mode queries node identification information of a matching node that has the same registered port as that of the newly registered node and belongs to the same Zone.
FC SAN主要由带HBA卡的节点即主机或存储器以及FC Fabric组成,所述FC Fabric中包含有若干个标准模式FC交换机以及NPV模式FC交换机。当有新的节点要接入FC SAN网络时,会通过光纤定向连接的NPV模式FC交换机向所述FC Fabric中的标准模式FC交换机发送注册请求;所述标准模式FC交换机与所述NPV模式FC交换机也有光纤在对应端口定向连接,所述标准模式FC交换机即为新接入节点归属的标准模式FC交换机。所述新接入节点归属的标准模式FC交换机在接收到新接入节点的注册请求后,会向所述新接入节点发送一个N_Port ID,表示所述新接入节点注册成功。其中所述N_Port ID的前8位,为所述归属的标准模式FC交换机的地址标识,后16位为所述归属的标准模式FC交换机为新注册节点即上述新接入节点分配的地址标识,用于表示所述新注册节点的地址。The FC SAN is mainly composed of nodes with HBA cards, that is, hosts or storage devices, and FC Fabric, which includes several standard-mode FC switches and NPV-mode FC switches. When there is a new node to access the FC SAN network, the NPV mode FC switch that is connected through the optical fiber will send a registration request to the standard mode FC switch in the FC Fabric; the standard mode FC switch and the NPV mode FC The switch also has an optical fiber directional connection at the corresponding port, and the standard mode FC switch is the standard mode FC switch to which the new access node belongs. After receiving the registration request of the new access node, the standard-mode FC switch to which the new access node belongs sends an N_Port ID to the new access node, indicating that the registration of the new access node is successful. Wherein, the first 8 bits of the N_Port ID are the address identification of the standard mode FC switch attributable, and the last 16 bits are the address identification assigned by the standard mode FC switch at the attribution to the new registration node, that is, the above-mentioned new access node, Indicates the address of the newly registered node.
所述新注册节点归属的标准模式FC交换机可以查询与新注册节点的注册端口相同且属于同一Zone的匹配节点,这里所述的注册端口为标准FC交换机接收节点发送的注册请求时所用的端口。由于每个NPV模式交换机都与标准FC交换机的一个端口通过光纤一一对应连接,若所述注册端口相同则可以确认所述匹配节点与所述新注册节点在同一个NPV模式FC交换机下,是通过同一个NPV模式FC交换机向所述标准模式FC交换机注册的。若所述匹配节点与所述新注册节点属于同一Zone,则所述匹配节点与所述新注册节点可以两两直接进行流量交换。由上可知,所述匹配节点和所述新注册节点为可以两两直接进行流量交换的节点。所述标准模式FC交换机可以查询到所述匹配节点的节点标识信息。The standard mode FC switch to which the new registration node belongs can query a matching node that has the same registration port as the new registration node and belongs to the same Zone. The registration port described here is the port used by the standard FC switch to receive the registration request sent by the node. Since each NPV mode switch is connected to a port of a standard FC switch through an optical fiber one-to-one, if the registered ports are the same, it can be confirmed that the matching node and the newly registered node are under the same NPV mode FC switch, yes registered with the standard mode FC switch through the same NPV mode FC switch. If the matching node and the new registration node belong to the same Zone, the matching node and the new registration node can directly exchange traffic two by two. It can be known from the above that the matching node and the newly registered node are nodes that can directly exchange traffic between two. The standard mode FC switch can query the node identification information of the matching node.
202、标准模式FC交换机通过注册端口将所述新注册节点和所述匹配节点的节点标识信息发送给NPV模式FC交换机;以使得所述NPV模式FC交换机生成本地转发表,从而使所述NPV模式FC交换机在所述新注册节点和所述匹配节点进行流量交换时根据所述本地转发表直接对交换的流量进行转发。202. The standard mode FC switch sends the node identification information of the newly registered node and the matching node to the NPV mode FC switch through the registration port; so that the NPV mode FC switch generates a local forwarding table, so that the NPV mode When the newly registered node exchanges traffic with the matching node, the FC switch directly forwards the exchanged traffic according to the local forwarding table.
所述本地转发表包括能够两两进行流量交换的所述新注册节点和所述匹配节点的节点标识信息。The local forwarding table includes node identification information of the newly registered node and the matching node capable of exchanging traffic two by two.
所述标准模式FC交换机在查询到所述匹配节点的节点标识信息后,会将所述新注册节点的节点标识信息和所述匹配节点的节点标识信息通过上述的注册端口和连接该端口的光纤发送给所述NPV模式FC交换机。所述NPV模式FC交换机可以据此生成本地转发表,所述本地转发表包括所述新注册节点和所述匹配节点的节点标识信息。从而使的当所述新注册节点与某个所述匹配节点需要进行流量交换时,所述新注册节点和所述某个匹配节点可以将需要交换的流量发送至所述NPV模式FC交换机,所述NPV模式FC交换机查询所述本地转发表发现所述新注册节点和所述某个匹配节点可以进行流量交换,则所述NPV模式FC交换机可以直接将所述流量转发给流量对应的目标节点,所述直接将流量转发是指不通过标准模式FC交换机直接将流量转发给目标节点。这样一来所述需要转发的流量不用发送至标准模式FC交换机,再由标准模式FC交换机转发,可以减少在标准模式FC交换机的转发流量,提高系统性能。After the standard mode FC switch inquires the node identification information of the matching node, it will pass the node identification information of the newly registered node and the node identification information of the matching node through the above-mentioned registration port and the optical fiber connected to the port Send to the NPV mode FC switch. The FC switch in NPV mode can generate a local forwarding table accordingly, and the local forwarding table includes node identification information of the newly registered node and the matching node. Therefore, when the newly registered node needs to exchange traffic with a certain matching node, the newly registered node and the certain matching node can send the traffic to be exchanged to the NPV mode FC switch, so The NPV mode FC switch queries the local forwarding table and finds that the newly registered node and the certain matching node can perform traffic exchange, then the NPV mode FC switch can directly forward the traffic to the target node corresponding to the traffic, The directly forwarding the traffic refers to directly forwarding the traffic to the target node without passing through the standard mode FC switch. In this way, the traffic to be forwarded does not need to be sent to the standard-mode FC switch, and then forwarded by the standard-mode FC switch, which can reduce forwarding traffic on the standard-mode FC switch and improve system performance.
本发明实施例提供的流量交换方法,可以让NPV模式FC交换机在所述新注册节点和所述匹配节点进行流量交换时根据所述本地转发表直接对交换的流量进行转发,不必再通过标准模式FC交换机进行流量转发,从而可以减少标准模式FC交换机的转发流量,提高系统性能。The traffic exchange method provided by the embodiment of the present invention can allow the NPV mode FC switch to directly forward the exchanged traffic according to the local forwarding table when the newly registered node and the matching node perform traffic exchange, without having to go through the standard mode FC switches forward traffic, reducing the forwarding traffic of standard-mode FC switches and improving system performance.
实施例2:Example 2:
本发明实施例提供了一种流量交换方法,是对上述实施例1的扩展。如图3所述,所述方法包括以下步骤:The embodiment of the present invention provides a flow switching method, which is an extension of the first embodiment above. As shown in Figure 3, the method comprises the following steps:
301、标准模式FC交换机接收并存储Zone信息;所述Zone信息包括处于同一个Zone中的所有节点的节点标识信息。301. The standard mode FC switch receives and stores Zone information; the Zone information includes node identification information of all nodes in the same Zone.
在FC SAN网络中,管理员会把有流量交换需求的节点事先定义为一个Zone,所述Zone中的所有节点可以进行流量交换,随后管理员会将新定义的Zone做为Zone信息同步下发给所述FC SAN网络中的所有标准模式FC交换机。所述Zone信息包括处于同一个Zone中的所有节点的节点标识信息,即表示所述Zone信息中的所有节点标识信息代表的节点可以相互进行流量交换。其中所述节点标识信息常用的为端口的全球惟一名字(World Wide Port Name,简称:WWPN)或N_Port ID。所述标准模式FC交换机接收到所述Zone信息后存储所述Zone信息。In the FC SAN network, the administrator will pre-define the nodes with traffic exchange requirements as a zone, and all nodes in the zone can perform traffic exchange, and then the administrator will send the newly defined zone as zone information synchronously For all standard mode FC switches in the FC SAN network. The Zone information includes node identification information of all nodes in the same Zone, which means that nodes represented by all node identification information in the Zone information can exchange traffic with each other. The node identification information is commonly used as a World Wide Port Name (WWPN for short) or N_Port ID of a port. The standard mode FC switch stores the Zone information after receiving the Zone information.
302、NPV模式FC交换机在监听到所述新注册节点注册成功的信息后,向所述标准模式FC交换机发送查询请求。302. The FC switch in NPV mode sends a query request to the FC switch in standard mode after listening to the information that the new registration node is successfully registered.
当有新的节点要接入FC SAN网络时,会通过光纤定向连接的NPV模式FC交换机向所述FC Fabric中的标准模式FC交换机发送注册请求;标准模式FC交换机在接收到新注册节点的注册请求后,会通过NPV模式FC交换机向新注册节点发送N_Port ID信息,表示所述新注册节点注册成功。所述NPV模式FC交换机监听到所述N_Port ID信息后,可以认为监听到所述新注册节点注册成功的信息;此时所述NPV模式FC交换机向所述标准模式FC交换机发送查询请求。When a new node is to be connected to the FC SAN network, the NPV mode FC switch connected through the optical fiber will send a registration request to the standard mode FC switch in the FC Fabric; After the request, the N_Port ID information will be sent to the new registration node through the NPV mode FC switch, indicating that the registration of the new registration node is successful. After the NPV mode FC switch monitors the N_Port ID information, it may consider that it has heard the information that the new registration node is successfully registered; at this time, the NPV mode FC switch sends a query request to the standard mode FC switch.
303、所述标准模式FC交换机接收所述查询请求并根据所述查询请求查询与新注册节点的注册端口相同且属于同一Zone的匹配节点的节点标识信息。303. The standard mode FC switch receives the query request and queries node identification information of a matching node that has the same registered port as the newly registered node and belongs to the same Zone according to the query request.
所述新注册节点归属的标准模式FC交换机根据接收到的查询请求可以查询到与新注册节点的注册端口相同且属于同一Zone的匹配节点的节点标识信息,这里所述的注册端口为标准FC交换机接收节点发送的注册请求时所用的端口。由于每个NPV模式交换机都与标准FC交换机的一个端口通过光纤一一对应连接,故所述注册端口相同可以确认所述匹配节点与所述新注册节点在同一个NPV模式FC交换机下,是通过同一个NPV模式FC交换机向所述标准模式FC交换机申请注册成功的。若所述匹配节点与所述新注册节点属于同一Zone,则所述匹配节点与所述新注册节点可以两两直接进行流量交换。The standard mode FC switch that the new registration node belongs to can query the node identification information of the matching node that is the same as the registration port of the new registration node and belongs to the same Zone according to the received query request, and the registration port described here is a standard FC switch The port used to receive registration requests sent by nodes. Since each NPV mode switch is connected to a port of a standard FC switch through an optical fiber one-to-one, so the same registered port can confirm that the matching node and the new registered node are under the same NPV mode FC switch, through The same FC switch in NPV mode successfully applies for registration with the FC switch in standard mode. If the matching node and the new registration node belong to the same Zone, the matching node and the new registration node can directly exchange traffic two by two.
可选的,所述标准模式FC交换机接收到新注册节点的注册请求后会给所述新注册节点发送N_Port ID信息,这表明所述新注册节点注册成功。此时所述标准模式FC交换机会主动查询与新注册节点的注册端口相同且属于同一Zone的匹配节点的节点标识信息。Optionally, the standard mode FC switch will send N_Port ID information to the new registration node after receiving the registration request from the new registration node, which indicates that the registration of the new registration node is successful. At this time, the standard mode FC switch will actively query the node identification information of the matching node that has the same registered port as the newly registered node and belongs to the same Zone.
304、所述标准模式FC交换机通过注册端口将所述新注册节点和所述匹配节点的节点标识信息发送给NPV模式FC交换机。304. The FC switch in standard mode sends the node identification information of the newly registered node and the matching node to the FC switch in NPV mode through a registration port.
所述标准模式FC交换机在查询到所述匹配节点的节点标识信息后,会将所述新注册节点的节点标识信息和所述匹配节点的节点标识信息通过上述的注册端口和连接该端口的光纤发送给所述NPV模式FC交换机。After the standard mode FC switch inquires the node identification information of the matching node, it will pass the node identification information of the newly registered node and the node identification information of the matching node through the above-mentioned registration port and the optical fiber connected to the port Send to the NPV mode FC switch.
305、NPV模式FC交换机接收所述节点标识信息并根据所述节点标识信息生成本地转发表;以使得所述NPV模式FC交换机在所述新注册节点和所述匹配节点进行流量交换时根据所述本地转发表直接对交换的流量进行转发。305. The NPV mode FC switch receives the node identification information and generates a local forwarding table according to the node identification information; so that the NPV mode FC switch performs traffic exchange with the matching node according to the The local forwarding table directly forwards the exchanged traffic.
所述NPV模式FC交换机可以根据接收到的新注册节点和匹配节点的节点标识信息生成本地转发表,所述本地转发表包括能够两两进行流量交换的所述新注册节点和所述匹配节点的节点标识信息。。当所述新注册节点与某个所述匹配节点需要进行流量交换时,所述新注册节点和所述某个匹配节点可以将需要交换的流量发送至所述NPV模式FC交换机,所述NPV模式FC交换机根据所述本地转发表查询发现所述新注册节点的节点标识信息和所述某个匹配节点的节点标识信息在同一个所述本地转发表中,故判定所述新注册节点与所述某个匹配节点可以直接进行流量交换,则所述NPV模式FC交换机可以直接将所述流量转发给流量对应的目标节点,所述直接将流量转发是指不通过标准模式FC交换机直接将流量转发给目标节点。这样一来所述需要转发的流量不用发送至标准模式FC交换机,再由标准模式FC交换机转发,可以减少在标准模式FC交换机的转发流量,提高系统性能。The NPV mode FC switch can generate a local forwarding table according to the received node identification information of the newly registered node and the matching node, and the local forwarding table includes the information of the newly registered node and the matching node that can exchange traffic two by two. Node identification information. . When the newly registered node needs to exchange traffic with a certain matching node, the newly registered node and the certain matching node can send the traffic to be exchanged to the FC switch in NPV mode, and the NPV mode The FC switch discovers that the node identification information of the newly registered node and the node identification information of a certain matching node are in the same local forwarding table according to the local forwarding table query, so it determines that the newly registered node and the A matching node can directly perform traffic exchange, then the NPV mode FC switch can directly forward the traffic to the target node corresponding to the traffic, and the direct traffic forwarding refers to directly forwarding the traffic to target node. In this way, the traffic to be forwarded does not need to be sent to the standard-mode FC switch, and then forwarded by the standard-mode FC switch, which can reduce forwarding traffic on the standard-mode FC switch and improve system performance.
本发明实施例还提供了一种NPV模式FC交换机,用于实现图1所示的方法。如图4所示,所述NPV模式FC交换机包括接收器401,生成单元402,以及处理器403。The embodiment of the present invention also provides an NPV mode FC switch for implementing the method shown in FIG. 1 . As shown in FIG. 4 , the FC switch in NPV mode includes a receiver 401 , a generating unit 402 , and a processor 403 .
接收器401,用于接收标准模式FC交换机发送的新注册节点和匹配节点的节点标识信息。The receiver 401 is configured to receive the node identification information of the newly registered node and the matching node sent by the FC switch in standard mode.
所述匹配节点为与新注册节点的注册端口相同且属于同一Zone的节点。所述新注册节点归属的标准模式FC交换机可以查询与新注册节点的注册端口相同的已注册节点,并查询到所述已注册节点与所述新注册节点属于同一Zone。所述注册端口相同可以确认所述匹配节点与所述新注册节点在同一个NPV模式FC交换机下,是通过同一个NPV模式FC交换机向所述标准模式FC交换机注册成功的。若所述匹配节点与所述新注册节点属于同一Zone,则所述已注册节点与所述新注册节点可以两两直接进行流量交换。所述标准模式FC交换机可以查询到所述匹配节点的节点标识信息。然后,所述标准模式FC交换机会将所述新注册节点的节点标识和所述匹配节点的节点标识信息通过上述的注册端口和连接该端口的光纤发送给所述NPV模式FC交换机,所述NPV模式FC交换机的接收器401接收标准模式FC交换机发送的新注册节点和匹配节点的节点标识信息。The matching node is a node that has the same registration port as the newly registered node and belongs to the same Zone. The standard-mode FC switch to which the newly registered node belongs may query a registered node having the same registration port as the newly registered node, and find out that the registered node and the newly registered node belong to the same Zone. The fact that the registration ports are the same may confirm that the matching node and the new registration node are under the same FC switch in NPV mode, and successfully registered with the FC switch in standard mode through the same NPV mode FC switch. If the matching node and the newly registered node belong to the same Zone, the registered node and the newly registered node can directly perform traffic exchange in pairs. The standard mode FC switch can query the node identification information of the matching node. Then, the standard mode FC switch will send the node identification of the newly registered node and the node identification information of the matching node to the NPV mode FC switch through the above-mentioned registration port and the optical fiber connected to the port, and the NPV The receiver 401 of the mode FC switch receives the node identification information of the newly registered node and the matching node sent by the standard mode FC switch.
生成单元402,用于根据所述节点标识信息生成本地转发表,所述本地转发表包括两两进行流量交换的所述新注册节点和所述匹配节点的节点标识信息。The generating unit 402 is configured to generate a local forwarding table according to the node identification information, where the local forwarding table includes node identification information of the newly registered node and the matching node for traffic exchange in pairs.
处理器403,用于在所述新注册节点和所述匹配节点进行流量交换时根据所述本地转发表直接对交换的流量进行转发。The processor 403 is configured to directly forward the exchanged traffic according to the local forwarding table when the newly registered node exchanges traffic with the matching node.
所述NPV模式FC交换机的生成单元402可以根据所述节点标识信息生成本地转发表,所述本地转发表包括所述新注册节点和所述匹配节点的节点标识信息。当所述新注册节点与某个所述匹配节点需要进行流量交换时,所述新注册节点和所述某个匹配节点可以将需要交换的流量发送至所述NPV模式FC交换机的处理器403,所述处理器403查询所述本地转发表发现所述新注册节点的节点标识信息和所述某个匹配节点的节点标识信息在同一个所述本地转发表中,故判定所述新注册节点与所述某个匹配节点可以进行流量交换,则所述处理器403可以直接将所述流量转发给流量对应的目标节点。这里说的直接将流量转发给目标节点是指不通过标准模式FC交换机直接将流量转发给目标节点。这样一来所述需要转发的流量不用发送至标准模式FC交换机,再由标准模式FC交换机转发,可以减少标准模式FC交换机的转发流量,提高系统性能。The generating unit 402 of the NPV mode FC switch may generate a local forwarding table according to the node identification information, and the local forwarding table includes node identification information of the newly registered node and the matching node. When the newly registered node and a certain matching node need to exchange traffic, the newly registered node and the certain matching node may send the traffic to be exchanged to the processor 403 of the NPV mode FC switch, The processor 403 queries the local forwarding table and finds that the node identification information of the newly registered node and the node identification information of the certain matching node are in the same local forwarding table, so it is determined that the newly registered node and If the certain matching node can perform traffic exchange, the processor 403 can directly forward the traffic to a target node corresponding to the traffic. Directly forwarding the traffic to the target node mentioned here refers to directly forwarding the traffic to the target node without going through the standard mode FC switch. In this way, the traffic that needs to be forwarded does not need to be sent to the standard mode FC switch, and then forwarded by the standard mode FC switch, which can reduce the forwarding traffic of the standard mode FC switch and improve system performance.
进一步的,如图5所示,所述NPV模式FC交换机还包括监听器404。Further, as shown in FIG. 5 , the FC switch in NPV mode further includes a listener 404 .
所述监听器403,用于在监听到所述新注册节点注册成功的信息后,向所述标准模式FC交换机发送查询请求,以使得所述标准模式FC交换机根据所述查询请求查询与新注册节点的注册端口相同且属于同一Zone的所述匹配节点的节点标识信息。The listener 403 is configured to send a query request to the standard mode FC switch after listening to the information that the new registration node is registered successfully, so that the standard mode FC switch can query and newly register according to the query request. The node identification information of the matching nodes whose registered ports are the same and which belong to the same Zone.
当有新的节点要接入FC SAN网络时,会通过光纤定向连接的NPV模式FC交换机向所述FC Fabric中的标准模式FC交换机发送注册请求;所述标准模式FC交换机在接收到新注册节点的注册请求后,会通过NPV模式FC交换机向新注册节点发送N_Port ID信息,表示所述新注册节点注册成功。所述监听器404可以监听到所述N_Port ID信息即监听到所述新注册节点注册成功的信息;此时监听器向所述标准模式FC交换机发送查询请求。从而使得所述标准模式FC交换机查询到所述新注册节点和所述匹配节点的节点标识信息,并将所述节点标识信息发送给所述NPV模式FC交换机,从而使所述NPV模式FC交换机的接收器401接收标准模式FC交换机发送的新注册节点和匹配节点的节点标识信息。When there is a new node to access the FC SAN network, the NPV mode FC switch that is connected through the fiber directionally sends a registration request to the standard mode FC switch in the FC Fabric; the standard mode FC switch receives the new registration node After the registration request, the FC switch in NPV mode will send N_Port ID information to the new registration node, indicating that the registration of the new registration node is successful. The listener 404 may listen to the N_Port ID information, that is, the information that the new registration node is successfully registered; at this time, the listener sends a query request to the standard-mode FC switch. Therefore, the standard mode FC switch queries the node identification information of the newly registered node and the matching node, and sends the node identification information to the NPV mode FC switch, so that the NPV mode FC switch The receiver 401 receives the node identification information of the newly registered node and the matching node sent by the standard mode FC switch.
本发明实施例还提供了一种标准模式FC交换机,如图6所示,所述标准模式FC交换机包括查询单元601,发送器602。The embodiment of the present invention also provides a standard mode FC switch. As shown in FIG. 6 , the standard mode FC switch includes a query unit 601 and a transmitter 602 .
查询单元601,用于查询与新注册节点的注册端口相同且属于同一Zone的匹配节点的节点标识信息。The query unit 601 is configured to query node identification information of a matching node that has the same registration port as that of the newly registered node and belongs to the same Zone.
FC SAN主要由带HBA卡的节点即主机或存储器以及FC Fabric组成,所述FC Fabric中包含有若干个标准模式FC交换机以及NPV模式FC交换机。当有新的节点要接入FC SAN网络时,会通过光纤定向连接的NPV模式FC交换机向所述FC Fabric中的标准模式FC交换机发送注册请求;所述标准模式FC交换机与所述NPV模式FC交换机也有光纤在对应端口定向连接,所述标准模式FC交换机即为新接入节点归属的标准模式FC交换机。所述新接入节点归属的标准模式FC交换机在接收到新接入节点的注册请求后,会向所述新接入节点发送一个N_Port ID,表示所述新接入节点注册成功。其中所述N_Port ID的前8位,为所述归属的标准模式FC交换机的地址标识,后16位为所述归属的标准模式FC交换机为新注册节点即上述新接入节点分配的地址标识,用于表示所述新注册节点的地址。The FC SAN is mainly composed of nodes with HBA cards, that is, hosts or storage devices, and FC Fabric, which includes several standard-mode FC switches and NPV-mode FC switches. When there is a new node to access the FC SAN network, the NPV mode FC switch that is connected through the optical fiber will send a registration request to the standard mode FC switch in the FC Fabric; the standard mode FC switch and the NPV mode FC The switch also has an optical fiber directional connection at the corresponding port, and the standard mode FC switch is the standard mode FC switch to which the new access node belongs. After receiving the registration request of the new access node, the standard-mode FC switch to which the new access node belongs sends an N_Port ID to the new access node, indicating that the registration of the new access node is successful. Wherein, the first 8 bits of the N_Port ID are the address identification of the standard mode FC switch attributable, and the last 16 bits are the address identification assigned by the standard mode FC switch at the attribution to the new registration node, that is, the above-mentioned new access node, Indicates the address of the newly registered node.
所述查询单元601可以具体用于在确认所述新注册节点注册成功后,查询与新注册节点的注册端口相同且属于同一Zone的匹配节点的节点标识信息。The query unit 601 may be specifically configured to query node identification information of a matching node that has the same registration port as the new registration node and belongs to the same Zone after confirming that the registration of the new registration node is successful.
所述新注册节点归属的标准模式FC交换机的查询单元601可以查询与新注册节点的注册端口相同且属于同一Zone的匹配节点的节点标识信息,这里所述的注册端口为标准FC交换机接收节点发送的注册请求时所用的端口。由于每个NPV模式交换机都与标准FC交换机的一个端口通过光纤一一对应连接,故所述注册端口相同可以确认所述匹配节点与所述新注册节点在同一个NPV模式FC交换机下,是通过同一个NPV模式FC交换机向所述标准模式FC交换机注册成功的。若所述匹配节点与所述新注册节点属于同一Zone,则所述匹配节点与所述新注册节点可以两两直接进行流量交换。在所述标准模式FC交换机确认所述新注册节点注册成功即所述标准模式FC交换机向所述新注册节点发送N_Port ID信息后,所述查询单元601可以主动查询与新注册节点的注册端口相同且属于同一Zone的匹配节点的节点标识信息。The query unit 601 of the standard mode FC switch to which the new registered node belongs can query the node identification information of a matching node that is the same as the registered port of the newly registered node and belongs to the same Zone, and the registered port described here is sent by the receiving node of the standard FC switch. The port used for registration requests. Since each NPV mode switch is connected to a port of a standard FC switch through an optical fiber one-to-one, so the same registered port can confirm that the matching node and the new registered node are under the same NPV mode FC switch, through The same FC switch in NPV mode successfully registers with the FC switch in standard mode. If the matching node and the new registration node belong to the same Zone, the matching node and the new registration node can directly exchange traffic two by two. After the standard mode FC switch confirms that the registration of the new registration node is successful, that is, the standard mode FC switch sends N_Port ID information to the new registration node, the query unit 601 can actively query the same registration port as the new registration node. Node ID information of matching nodes belonging to the same Zone.
发送器602,通过注册端口将所述新注册节点和所述匹配节点的节点标识信息发送给NPV模式FC交换机;以使得所述NPV模式FC交换机生成本地转发表,从而使所述NPV模式FC交换机在所述新注册节点和所述匹配节点进行流量交换时根据所述本地转发表直接对交换的流量进行转发;所述本地转发表包括能够两两进行流量交换的所述新注册节点和所述匹配节点的节点标识信息。The sender 602 sends the node identification information of the newly registered node and the matching node to the NPV mode FC switch through the registration port; so that the NPV mode FC switch generates a local forwarding table, so that the NPV mode FC switch When the new registration node and the matching node perform traffic exchange, directly forward the exchanged traffic according to the local forwarding table; the local forwarding table includes the new registration node and the Node ID information for the matching node.
所述标准模式FC交换机在查询单元601查询到所述匹配节点的节点标识信息后,发送器602会将所述新注册节点的节点标识信息和所述匹配节点的节点标识信息通过注册端口和连接该端口的光纤发送给所述NPV模式FC交换机。所述NPV模式FC交换机可以根据这些节点标识信息生成本地转发表,所述本地转发表包括所述新注册节点和所述匹配节点的节点标识信息。当所述新注册节点与某个所述匹配节点需要进行流量交换时,所述新注册节点和所述某个匹配节点可以将需要交换的流量发送至所述NPV模式FC交换机,所述NPV模式FC交换机根据所述本地转发表查询发现所述新注册节点的节点标识信息和所述某个匹配节点的节点标识信息在同一个所述本地转发表中,故判定所述新注册节点与所述某个匹配节点可以直接进行流量交换,则所述NPV模式FC交换机可以直接将所述需要交换的流量转发给流量对应的目标节点。所述直接将流量转发是指不通过标准模式FC交换机直接将流量转发给目标节点。这样一来所述需要转发的流量不用发送至标准模式FC交换机,再由标准模式FC交换机转发,可以减少在标准模式FC交换机的转发流量,提高系统性能。After the standard mode FC switch inquires the node identification information of the matching node in the query unit 601, the transmitter 602 will pass the node identification information of the newly registered node and the node identification information of the matching node through the registration port and the connection The optical fiber of this port is sent to the FC switch in NPV mode. The FC switch in NPV mode may generate a local forwarding table according to these node identification information, and the local forwarding table includes node identification information of the newly registered node and the matching node. When the newly registered node needs to exchange traffic with a certain matching node, the newly registered node and the certain matching node can send the traffic to be exchanged to the FC switch in NPV mode, and the NPV mode The FC switch discovers that the node identification information of the newly registered node and the node identification information of a certain matching node are in the same local forwarding table according to the local forwarding table query, so it determines that the newly registered node and the A certain matching node can directly perform traffic exchange, and the NPV mode FC switch can directly forward the traffic to be exchanged to the target node corresponding to the traffic. The directly forwarding the traffic refers to directly forwarding the traffic to the target node without passing through the standard mode FC switch. In this way, the traffic to be forwarded does not need to be sent to the standard-mode FC switch, and then forwarded by the standard-mode FC switch, which can reduce forwarding traffic on the standard-mode FC switch and improve system performance.
可选的,如图7所示,所述查询单元601具体包括:接收子单元6011和查询子单元6012。Optionally, as shown in FIG. 7 , the query unit 601 specifically includes: a receiving subunit 6011 and a query subunit 6012 .
接收子单元6011,用于接收所述NPV模式FC交换机在监听到所述新注册节点注册成功的信息后发送的查询请求。The receiving subunit 6011 is configured to receive the query request sent by the NPV mode FC switch after listening to the information that the new registration node is successfully registered.
NPV模式FC交换机在监听到所述新注册节点注册成功的信息即标准模式FC交换机向新注册节点发送N_Port ID信息时,会向所述标准模式FC交换机发送查询请求,所述标准模式FC交换机的接收器6011接收所述查询请求。The NPV mode FC switch will send a query request to the standard mode FC switch when listening to the information that the new registration node is successfully registered, that is, the standard mode FC switch sends N_Port ID information to the new registration node, and the standard mode FC switch sends a query request. The receiver 6011 receives the query request.
查询子单元6012,用于根据所述查询请求查询与新注册节点的注册端口相同且属于同一Zone的匹配节点。The query subunit 6012 is configured to query a matching node that has the same registration port as the newly registered node and belongs to the same Zone according to the query request.
所述标准模式FC交换机的查询子单元6012根据接收到的查询请求可以查询到与新注册节点的注册端口相同且属于同一Zone的匹配节点的节点标识信息,这里所述的注册端口为标准FC交换机接收节点发送的注册请求时所用的端口。由于每个NPV模式交换机都与标准FC交换机的一个端口通过光纤一一对应连接,故所述注册端口相同可以确认所述匹配节点与所述新注册节点在同一个NPV模式FC交换机下,是通过同一个NPV模式FC交换机向所述标准模式FC交换机申请注册成功的。若所述匹配节点与所述新注册节点属于同一Zone,则所述已注册节点与所述新注册节点可以两两直接进行流量交换,所述查询子单元6012可以查询到所述匹配节点的节点标识信息。然后所述标准模式FC交换机的发送器602可以将所述匹配节点的节点标识信息和所述新注册节点的节点标识信息发送给NPV模式FC交换机。The query subunit 6012 of the standard mode FC switch can query the node identification information of the matching node that is the same as the registration port of the newly registered node and belongs to the same Zone according to the received query request, and the registration port described here is a standard FC switch The port used to receive registration requests sent by nodes. Since each NPV mode switch is connected to a port of a standard FC switch through an optical fiber one-to-one, so the same registered port can confirm that the matching node and the new registered node are under the same NPV mode FC switch, through The same FC switch in NPV mode successfully applies for registration with the FC switch in standard mode. If the matching node and the newly registered node belong to the same Zone, the registered node and the newly registered node can directly exchange traffic two by two, and the query subunit 6012 can query the node of the matching node Identification information. Then the sender 602 of the standard mode FC switch can send the node identification information of the matching node and the node identification information of the newly registered node to the NPV mode FC switch.
本发明实施例还提供了一种流量交换系统,如图8所示,所述系统包括:NPV模式FC交换机81和标准模式FC交换机82。所述NPV模式FC交换机可以是图4或图5所示的NPV模式FC交换机;所述标准模式FC交换机可以是如图6或7所示的标准模式FC交换机。The embodiment of the present invention also provides a flow switching system. As shown in FIG. 8 , the system includes: an FC switch 81 in NPV mode and an FC switch 82 in standard mode. The FC switch in NPV mode may be the FC switch in NPV mode as shown in FIG. 4 or FIG. 5 ; the FC switch in standard mode may be the FC switch in standard mode as shown in FIG. 6 or 7 .
所述标准模式FC交换机82用于在确认新注册节点注册成功后,主动查询与所述新注册节点的注册端口相同且属于同一Zone的匹配节点的节点标识信息,然后通过所述注册端口将所述新注册节点和所述匹配节点的节点标识信息发送给所述NPV模式FC交换机81。所述NPV模式FC交换机81接收所述节点标识信息,并根据所述节点标识信息生成本地转发表;以使得NPV模式FC交换机在所述新注册节点和所述匹配节点进行流量交换时根据所述本地转发表直接对交换的流量进行转发。The standard mode FC switch 82 is used to actively inquire about the node identification information of a matching node that is the same as the registration port of the new registration node and belongs to the same Zone after confirming that the registration of the new registration node is successful, and then pass the registration port through the registration port. Send the node identification information of the newly registered node and the matching node to the FC switch 81 in NPV mode. The NPV mode FC switch 81 receives the node identification information, and generates a local forwarding table according to the node identification information; so that the NPV mode FC switch performs traffic exchange according to the new registration node and the matching node. The local forwarding table directly forwards the exchanged traffic.
当然,可选的,NPV模式FC交换机81也可以在监听到所述新注册节点注册成功的信息后,向所述标准模式FC交换机发送查询请求;所述标准模式FC交换机根据所述查询请求查询与新注册节点的注册端口相同且属于同一Zone的匹配节点的节点标识信息,然后通过所述注册端口将所述新注册节点和所述匹配节点的节点标识信息发送给NPV模式FC交换机。所述NPV模式FC交换机81接收所述节点标识信息,并根据所述节点标识信息生成本地转发表;以使得NPV模式FC交换机在所述新注册节点和所述匹配节点进行流量交换时根据所述本地转发表直接对交换的流量进行转发。Of course, optionally, the NPV mode FC switch 81 can also send a query request to the standard mode FC switch after listening to the information that the new registration node has successfully registered; the standard mode FC switch can query according to the query request The node identification information of the matching node that is the same as the registration port of the newly registered node and belongs to the same Zone, and then sends the node identification information of the newly registered node and the matching node to the NPV mode FC switch through the registration port. The NPV mode FC switch 81 receives the node identification information, and generates a local forwarding table according to the node identification information; so that the NPV mode FC switch performs traffic exchange according to the new registration node and the matching node. The local forwarding table directly forwards the exchanged traffic.
本发明实施例提供的流量转换方法、装置及系统,让NPV模式FC交换机在所述新注册节点和所述匹配节点进行流量交换时根据所述本地转发表直接对交换的流量进行转发,不必再通过标准模式FC交换机进行流量转发,从而可以减少标准模式FC交换机的转发流量,提高系统性能。The traffic conversion method, device and system provided by the embodiments of the present invention allow the NPV mode FC switch to directly forward the exchanged traffic according to the local forwarding table when the newly registered node and the matching node perform traffic exchange, without further Traffic forwarding is performed through standard mode FC switches, thereby reducing the forwarding traffic of standard mode FC switches and improving system performance.
本领域普通技术人员可以理解:实现上述方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成,前述的程序可以存储于一计算机可读取存储介质中,该程序在执行时,执行包括上述方法实施例的步骤;而前述的存储介质包括:ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。Those of ordinary skill in the art can understand that all or part of the steps for realizing the above-mentioned method embodiments can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, the It includes the steps of the above method embodiments; and the aforementioned storage medium includes: ROM, RAM, magnetic disk or optical disk and other various media that can store program codes.
以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以所述权利要求的保护范围为准。The above is only a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Anyone skilled in the art can easily think of changes or substitutions within the technical scope disclosed in the present invention. Should be covered within the protection scope of the present invention. Therefore, the protection scope of the present invention should be determined by the protection scope of the claims.
Claims (15)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201210118340.5A CN103379151B (en) | 2012-04-19 | 2012-04-19 | A kind of flux exchange, Apparatus and system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201210118340.5A CN103379151B (en) | 2012-04-19 | 2012-04-19 | A kind of flux exchange, Apparatus and system |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN103379151A CN103379151A (en) | 2013-10-30 |
| CN103379151B true CN103379151B (en) | 2016-11-23 |
Family
ID=49463707
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201210118340.5A Expired - Fee Related CN103379151B (en) | 2012-04-19 | 2012-04-19 | A kind of flux exchange, Apparatus and system |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN103379151B (en) |
Families Citing this family (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN105306387B (en) * | 2014-07-31 | 2018-11-13 | 华为技术有限公司 | A kind of partition method and equipment |
| CN104283803B (en) * | 2014-10-11 | 2018-12-11 | 新华三技术有限公司 | A kind of method and apparatus of control message forwarding |
| CN107885491A (en) * | 2017-11-03 | 2018-04-06 | 郑州云海信息技术有限公司 | Simple tool realizes the quick-adjustsing method and system of FC SAN switches |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1943173A (en) * | 2004-04-28 | 2007-04-04 | 思科技术公司 | Intelligent adjunct network device |
| CN101213818A (en) * | 2005-07-01 | 2008-07-02 | 国际商业机器公司 | Method and system for managing virtual instances of a physical port attached to a network |
| WO2011119200A1 (en) * | 2010-03-22 | 2011-09-29 | Cisco Technology, Inc. | N_port id virtualization node redundancy |
Family Cites Families (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US8775580B2 (en) * | 2009-07-22 | 2014-07-08 | Cisco Technology, Inc. | Hard zoning on NPIV proxy/NPV devices |
| US8243746B2 (en) * | 2010-02-01 | 2012-08-14 | Cisco Technology, Inc. | Ethernet node port virtualizer |
-
2012
- 2012-04-19 CN CN201210118340.5A patent/CN103379151B/en not_active Expired - Fee Related
Patent Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1943173A (en) * | 2004-04-28 | 2007-04-04 | 思科技术公司 | Intelligent adjunct network device |
| CN101213818A (en) * | 2005-07-01 | 2008-07-02 | 国际商业机器公司 | Method and system for managing virtual instances of a physical port attached to a network |
| WO2011119200A1 (en) * | 2010-03-22 | 2011-09-29 | Cisco Technology, Inc. | N_port id virtualization node redundancy |
Also Published As
| Publication number | Publication date |
|---|---|
| CN103379151A (en) | 2013-10-30 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN102148749B (en) | Method and device for extending switch port | |
| CN102217253B (en) | Message forwarding method, device and network equipment | |
| CN107342925B (en) | A message transmission method and device | |
| EP3094052B1 (en) | Method and device for forwarding information | |
| CN108768817A (en) | A virtualized network networking system and data packet sending method | |
| JP6740474B2 (en) | Method, device, and system for transmitting end markers | |
| JP6206508B2 (en) | Packet transfer device, control device, communication system, communication method, and program | |
| CN106664235B (en) | Method and device for fusing software defined network and traditional network | |
| WO2021000848A1 (en) | Packet forwarding method and packet processing method and apparatus | |
| JP5935881B2 (en) | COMMUNICATION SYSTEM, CONTROL DEVICE, AND ITS CONTROL METHOD | |
| US9130886B2 (en) | Communication system, controller, switch, storage managing apparatus and communication method | |
| WO2021098727A1 (en) | Network deployment method and system | |
| CN104468371A (en) | Multicast service message processing method and device | |
| CN103379151B (en) | A kind of flux exchange, Apparatus and system | |
| CN103957161A (en) | Packet forwarding method and device | |
| US10574579B2 (en) | End to end quality of service in storage area networks | |
| WO2016019676A1 (en) | Method, apparatus and system for processing data packet in software defined network (sdn) | |
| CN103731817B (en) | Data transmission method and equipment | |
| WO2020011216A1 (en) | Method, apparatus, and device for transmitting message, and storage medium | |
| WO2015188701A1 (en) | Topology discovery in fabric network | |
| CN105247824A (en) | Control device, communication system, relay device control method and program | |
| WO2011072549A1 (en) | Method, apparatus and system for communication between non-lisp sites and lisp sites | |
| CN107733801B (en) | Method and equipment for receiving and sending message | |
| CN104301447B (en) | A kind of software module communication means | |
| JP2015231212A (en) | Data transfer system, data transfer server, data transfer method, and program |
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 | ||
| TR01 | Transfer of patent right | ||
| TR01 | Transfer of patent right |
Effective date of registration: 20211213 Address after: 256599 No. 166, Chemical Road, boxing Economic Development Zone, Boxing County, Binzhou City, Shandong Province Patentee after: Shandong rongzhixin Enterprise Consulting Service Co.,Ltd. Address before: 215010 room 704, building 5, No. 556, Changjiang Road, high tech Zone, Suzhou, Jiangsu Patentee before: SUZHOU YUDESHUI ELECTRICAL TECHNOLOGY Co.,Ltd. Effective date of registration: 20211213 Address after: 215010 room 704, building 5, No. 556, Changjiang Road, high tech Zone, Suzhou, Jiangsu Patentee after: SUZHOU YUDESHUI ELECTRICAL TECHNOLOGY Co.,Ltd. Address before: 518129 Bantian HUAWEI headquarters office building, Longgang District, Guangdong, Shenzhen Patentee before: HUAWEI TECHNOLOGIES Co.,Ltd. |
|
| CF01 | Termination of patent right due to non-payment of annual fee | ||
| CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20161123 |