WO2014059590A1 - Method and device for obtaining virtual link state - Google Patents

Method and device for obtaining virtual link state Download PDF

Info

Publication number
WO2014059590A1
WO2014059590A1 PCT/CN2012/083006 CN2012083006W WO2014059590A1 WO 2014059590 A1 WO2014059590 A1 WO 2014059590A1 CN 2012083006 W CN2012083006 W CN 2012083006W WO 2014059590 A1 WO2014059590 A1 WO 2014059590A1
Authority
WO
WIPO (PCT)
Prior art keywords
link
server
keep
packet
virtual link
Prior art date
Application number
PCT/CN2012/083006
Other languages
French (fr)
Chinese (zh)
Inventor
于来凯
朱筠
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Priority to CN201280002194.8A priority Critical patent/CN103181187B/en
Priority to PCT/CN2012/083006 priority patent/WO2014059590A1/en
Publication of WO2014059590A1 publication Critical patent/WO2014059590A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks

Definitions

  • the present invention relates to the field of network technologies, and in particular, to a method and device for obtaining a virtual link state. Background technique
  • FCOE Fiber Channel over Ethernet
  • FCOE Forwarder, FCOE switch FCOE switch
  • FCF FCOE Forwarder, FCOE switch
  • each virtual link needs to periodically send a keepalive (link keepalive) message to the FCF.
  • the FCF periodically monitors the packet to detect whether the status of the virtual link is normal. If the virtual link status of the virtual link is abnormal, the FCF deletes the virtual link and terminates the connection.
  • each FCF can access thousands of servers, and each server can set dozens or even hundreds of virtual links. If the FCF needs to be processed periodically according to existing standards. The number of keepalive packets is hundreds of thousands. Obviously, such a large number of keepalive messages far exceed the processing power of the FCF's CPU, and it will inevitably affect the stability of the network. Summary of the invention
  • a method and a device for obtaining a virtual link state are provided, which can reduce the number of keepalive packets in a large amount.
  • a method for obtaining a virtual link status including:
  • the Ethernet Fibre Channel switch receives the link keep-alive message sent by the server
  • the Ethernet Fibre Channel switch parses the link keep-alive packet to obtain the identifier information of the normal virtual link included in the link keep-alive packet;
  • the Ethernet Fibre Channel switch determines a normal virtual link according to the identification information of the normal virtual link included in the link keep-alive packet.
  • the Ethernet Fibre Channel switch receives
  • the link keep-alive packet that is sent includes the identifier information of all normal virtual links of the server.
  • Another method for obtaining a virtual link state including:
  • the server generates a link keep-alive packet, where the link keep-alive packet includes the identifier information of the normal virtual link; the server sends the generated link keep-alive packet to the Ethernet Fibre Channel switch, The Ethernet Fibre Channel switch determines a normal virtual link according to the identification information of the normal virtual link included in the link keep-alive packet.
  • the link-preserving packet generated by the server includes identifier information of all normal virtual links of the server.
  • an Ethernet Fibre Channel switch including:
  • a message receiving unit configured to receive a link keep-alive message sent by the server
  • a packet parsing unit configured to parse the link keep-alive packet received by the packet receiving unit, and obtain identifier information of a normal virtual link included in the link keep-alive packet;
  • a state determining unit configured to determine a normal virtual link according to the identifier information of the normal virtual link included in the link keep-alive packet obtained by the packet parsing unit.
  • the link keep-alive packet received by the packet receiving unit includes identifier information of all normal virtual links of the server.
  • Ethernet Fibre Channel switch including:
  • a transceiver configured to receive a link keep-alive message sent by the server
  • a processor configured to parse the link keep-alive packet received by the transceiver, obtain identifier information of a normal virtual link included in the link keep-alive packet, and keep alive according to the link The identification information of the normal virtual link included in the packet determines the normal virtual link.
  • a server including:
  • a message generating unit configured to generate a link keep-alive packet, where the link keep-alive packet includes the identifier information of the normal virtual link;
  • a message sending unit configured to send the link keep-alive message generated by the message generating unit to an Ethernet Fibre Channel switch, so that the Ethernet Fibre Channel switch keeps a message according to the link
  • the identification information of the normal virtual link included in the normal link determines the normal virtual link.
  • the link keep-alive packet generated by the packet generating unit includes identifier information of all normal virtual links of the server.
  • another server including:
  • a processor configured to generate a link keep-alive packet, where the link keep-alive packet includes an identifier of a normal virtual link Interest rate
  • a transceiver configured to send the link keep-alive message generated by the processor to an Ethernet Fibre Channel switch, so that the Ethernet Fibre Channel switch according to the normality included in the link keep-alive message
  • the identification information of the virtual link determines a normal virtual link.
  • the embodiment of the present invention improves the status of the virtual link by using the keepalive packet sent by the existing server, and adds the identifier of the normal virtual link in the packet to enable the FCF to know the status of the virtual link according to the received keepalive packet. Therefore, the keepalive packets sent by the virtual link are greatly reduced, and the impact on network stability is reduced.
  • FIG. 1 is a schematic structural diagram of a keepalive packet sent by a server in the prior art
  • FIG. 2 is a schematic structural diagram of a keepalive packet sent by a virtual link in the prior art
  • FIG. 3 is a flowchart of a method for obtaining a virtual link state according to an embodiment of the present invention
  • FIG. 4 is a schematic structural diagram of a keepalive packet sent by a server according to an embodiment of the present invention.
  • FIG. 5 is a flowchart of another method for obtaining a virtual link state according to an embodiment of the present invention.
  • FIG. 6 is a flowchart of another method for obtaining a virtual link state according to an embodiment of the present invention.
  • FIG. 7 is a schematic diagram of a packet sent by a server and a virtual link in the prior art
  • FIG. 8 is a schematic structural diagram of a message generated by a server in the embodiment shown in FIG. 6;
  • FIG. 9 is a schematic diagram of a server sending a message in the embodiment shown in FIG. 6;
  • FIG. 10 is a schematic structural diagram of an FCF according to an embodiment of the present invention.
  • FIG. 11 is a schematic structural diagram of another FCF according to an embodiment of the present invention.
  • FIG. 12 is a schematic structural diagram of a server according to an embodiment of the present invention.
  • FIG. 13 is a schematic structural diagram of another server according to an embodiment of the present invention. detailed description
  • the packet structure includes FIP (FCOE Initialization Protocol, FCOE). Initialization Protocol) Message type (FIP_Type), version number (Version;), FIP code (FIP Code), sub-code (sub-code), FIP deep list length, FIP deep list length Carrying the MAC address (Medium Access Control) address description field of the server; the other is the keepalive packet sent by the virtual link.
  • FIP FCOE Initialization Protocol
  • FCOE FCOE Initialization Protocol
  • FCOE Initialization Protocol
  • FIP_Type Message type
  • version number Version
  • FIP code FIP code
  • sub-code sub-code
  • FIP deep list length FIP deep list length
  • Carrying the MAC address (Medium Access Control) address description field of the server the other is the keepalive packet sent by the virtual link.
  • the packet structure is as shown in Figure 2, compared with the keepalive packet sent by the server.
  • the keepalive packet sent by the virtual link carries the FIP Vx_Port Identification description field to identify the virtual link.
  • each virtual link set on the server and the server periodically sends its own keepalive packets to the FCF.
  • the FCF periodically monitors two types of keepalive packets to sense the server and its virtual link. If the FCF does not receive a keepalive packet sent by a certain server, the FCF will directly delete the server and terminate the connection. If the FCF exceeds a certain period, the virtual state is not received. If the link status is abnormal, the FCF will delete the virtual link and terminate the connection.
  • the number of virtual links is very large.
  • the packet storms generated by the keepalive packets sent by all the virtual link periods directly affect the stability of the network and are limited by the FCF processing capability. As a result, a single FCF cannot be expanded. If the FC0E switch agent or FCF is added, the network cost will be doubled.
  • the embodiment of the present invention provides a method and a device for obtaining a virtual link state, and the identifier information of the normal virtual link in the server is added to the packet by improving the keepalive packet sent by the server.
  • the FCF can learn the status of the virtual link according to the keepalive packets sent by the server, thereby greatly reducing the number of keepalive packets sent by the virtual link, reducing the impact on the network stability, and the FCF can be easily expanded. .
  • FIG. 3 it is a flowchart of a method for obtaining a virtual link state according to an embodiment of the present invention.
  • the method can include:
  • Step 301 The FCF receives the keepalive packet sent by the server.
  • the virtual link is set by the server, and the number of virtual links that the server needs to be set, so that the server stores the information of each virtual link set by the server.
  • the server is in the FCF.
  • the structure of the keepalive message sent by the server may be as shown in FIG. 4. among them,
  • the identifier information field of the normal virtual link is added after the MAC address description field of the packet, which may be a FIP Vx Port Identification description field.
  • the difference between the packet and the keepalive packet sent by the virtual link in the prior art is that the packet sent by the virtual link in the prior art only includes the identifier information of the virtual link, for example, the FIP Vi_Port Identification description field is included.
  • the keepalive packet sent by the server includes the identifier information of the normal virtual link, for example, the FIP Vi_Port Identification description field and the FIP V 2 _Port Identification description field FIP V n _Port Identification description field.
  • the keepalive packet sent by the server may include the identifier information of multiple normal virtual links, so that the multiple normal virtual links do not need to send keepalive packets to the FCF period, thereby reducing the number of packets received by the FCF.
  • the keepalive packet sent by the server includes the identifier information of all the normal virtual links of the server, so that all normal virtual links under the server do not need to send keepalive packets to the FCF period, and only one server sends one Keepalive messages are fine.
  • the FCF After receiving the keepalive packet sent by the server, the FCF performs the next step.
  • Step 302 The FCF parses the keepalive packet to obtain the identifier information of the normal virtual link included in the keepalive packet.
  • the FCF parses the keepalive packet.
  • the parsing process is the same as the parsing process in the prior art. The only difference is that the information obtained by the FCF parsing has the MAC address description field and the identity information of the normal virtual link.
  • Step 303 The FCF determines a normal virtual link according to the identifier information of the normal virtual link included in the keepalive packet.
  • the FCF After obtaining the identification information of the normal virtual link, the FCF can determine the normal virtual link.
  • the embodiment of the present invention improves the status of the virtual link by using the keepalive packet sent by the existing server, and adds the identifier of the normal virtual link in the packet to enable the FCF to know the status of the virtual link according to the received keepalive packet. Therefore, the keepalive packets sent by the virtual link are greatly reduced, and the impact on the network stability is reduced, and the FCF can be easily expanded.
  • FIG. 5 is a flowchart of another method for obtaining a virtual link state according to an embodiment of the present invention.
  • the peer end of the FCF that is, the server side, is the execution subject, and the method may include:
  • Step 501 The server generates a keepalive packet, where the keepalive packet includes the identifier information of the normal virtual link.
  • the server-generated keepalive packet includes identifier information of all normal virtual links of the server.
  • Step 502 The server sends the generated keepalive packet to the FCF, so that the FCF determines the normal virtual link according to the identifier information of the normal virtual link included in the keepalive packet.
  • the embodiment of the present invention improves the identification information of the normal virtual link in the server by using the keepalive packet sent by the existing server, so that the FCF can obtain the virtual link according to the keepalive packet sent by the server.
  • the state which greatly reduces the keepalive packets sent by the virtual link, reduces the impact on the stability of the network, and the FCF can be easily expanded.
  • FIG. 6 is a flowchart of another method for obtaining a virtual link state according to an embodiment of the present invention.
  • the FCF needs to receive the keepalive message sent by the server, and the keepalive message sent by the virtual link VI, V2, and V3 respectively, for a total of four messages, and the FCF receives the message according to the FCF.
  • the situation determines the state of each virtual link.
  • the method for determining the status of the virtual link may include:
  • Step 601 The server generates a keepalive packet.
  • the server uses the three virtual links VI, V2, and V3. That is, the three virtual links are in the normal state.
  • the server adds the identification information of the virtual links VI, V2, and V3 to the V1_Port Identification descriptor V2_Port Identification.
  • the descriptor V3_Port Identification descriptor generates a final keepalive packet.
  • the structure of the packet can be as shown in Figure 8.
  • Step 602 The server sends the generated keepalive packet to the FCF.
  • Step 603 The FCF parses the received keepalive packet, and obtains the identifier information of the virtual link.
  • the embodiment of the present invention improves the identifier information of all the normal virtual links in the server by modifying the keepalive packets sent by the existing server, so that the FCF can obtain the virtual link according to the keepalive packets sent by the server.
  • the status of the keepalive message is reduced by the FCF, which solves the problem that the massive keepalive packet affects the network stability in the FC0E network.
  • a single FCF can be better expanded without being expanded. Because the number of keepalive packets is too large to be processed, the device must be added, which greatly reduces the network cost.
  • FIG. 10 it is a schematic structural diagram of an FCF according to an embodiment of the present invention.
  • the FCF includes:
  • the message parsing unit 1002 is configured to parse the keepalive packet received by the packet receiving unit 1001, and obtain the identifier information of the normal virtual link included in the keepalive packet;
  • the state determining unit 1003 is configured to determine a normal virtual link according to the identifier information of the normal virtual link included in the keepalive packet obtained by the packet parsing unit 1002.
  • the keepalive packet received by the packet receiving unit 1001 may include identifier information of all normal virtual links of the server.
  • the FCF obtains the identifier information of the normal virtual link in the packet, and the state of the virtual link is obtained, thereby greatly reducing the keepalive packet received by the FCF.
  • the impact on network stability, and thus the FCF can be easily expanded.
  • FIG. 11 a schematic structural diagram of another FCF according to an embodiment of the present invention is shown.
  • the FCF can include:
  • the transceiver 1101 is configured to receive a keepalive packet sent by the server.
  • the processor 1102 is configured to parse the keepalive packet received by the transceiver 1101, obtain the identifier information of the normal virtual link included in the keepalive packet, and obtain the normal virtual content included in the keepalive packet.
  • the identification information of the link determines the normal virtual link.
  • the FCF obtains the identity information of the virtual link in the packet, and the state of the virtual link is obtained, thereby greatly reducing the keepalive packet received by the FCF, and reducing the network.
  • the effect of stability, and thus the FCF can be easily expanded.
  • FIG. 12 it is a schematic structural diagram of a server according to an embodiment of the present invention.
  • the server can include:
  • the message generating unit 1201 is configured to generate a keepalive packet, where the keepalive packet includes the identifier information of the normal virtual link.
  • the message sending unit 1202 is configured to send the keepalive message generated by the message generating unit 1201 to the FCF, so that the FCF determines the normal virtual link according to the identity information of the normal virtual link included in the keepalive message. .
  • the keepalive packet generated by the packet generating unit 1201 includes identifier information of all normal virtual links of the server.
  • the server improves the keepalive message sent by the existing server by using the foregoing unit, and adds the identifier information of the normal virtual link in the server, so that the FCF can be based on the keepalive message sent by the server.
  • the status of the virtual link is known, which greatly reduces the number of keepalive packets sent by the virtual link, and reduces the impact on the stability of the network. Therefore, the FCF can be easily expanded.
  • FIG. 13 is a schematic structural diagram of another server according to an embodiment of the present invention.
  • the server can include:
  • the processor 1301 is configured to generate a keepalive packet, where the keepalive packet includes the identifier information of the normal virtual link.
  • the transceiver 1302 is configured to send the keepalive packet generated by the processor 1301 to the FCF, so that the FCF determines a normal virtual link according to the identifier information of the normal virtual link included in the keepalive packet. .
  • the server improves the identifier information of the normal virtual link in the server by modifying the keepalive packet sent by the existing server, so that the FCF can know according to the keepalive packet sent by the server.
  • the state of the virtual link greatly reduces the number of keepalive packets sent by the virtual link, which reduces the impact on the stability of the network. Therefore, the FCF can be easily expanded.
  • the disclosed systems, devices, and methods may be implemented in other ways.
  • the device embodiments described above are merely illustrative.
  • the division of the unit is only a logical function division.
  • there may be another division manner for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored, or not executed.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form.
  • the units described as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, i.e., may be located in one place, or may be distributed over multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the embodiment.
  • each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the function is implemented in the form of a software functional unit and sold or used as a stand-alone product, Stored in a computer readable storage medium.
  • the technical solution of the present invention which is essential or contributes to the prior art, or a part of the technical solution, may be embodied in the form of a software product, which is stored in a storage medium, including
  • the instructions are used to cause a computer device (which may be a personal computer, server, or network device, etc.) or a processor to perform all or part of the steps of the methods described in various embodiments of the present invention.
  • the foregoing storage medium includes: a U disk, a mobile hard disk, a Read-Only Memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and the like, which can store program codes.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

Disclosed are a method and device for obtaining virtual link state. An Ethernet fiber channel switch receives a link keep-alive message sent by a server. The Ethernet fiber channel switch analyses the link keep-alive message to obtain the identification information of the normal virtual link in the link keep-alive message; the Ethernet fiber channel switch determines the normal virtual link according to the identification information of the normal virtual link in the link keep-alive message. By improving the link keep-alive message sent by the prior server, and adding the identification information of the normal virtual link corresponding to the server in the message, the embodiments of the invention make the Ethernet fiber channel switch obtain the virtual link state according to link keep-alive message received, thus the amount of link keep-alive message sent via the virtual link is greatly reduced and the influence on the stability of the network is reduced.

Description

一种获知虚链路状态的方法及设备  Method and device for knowing virtual link status
技术领域 本发明涉及网络技术领域, 尤其涉及一种获知虚链路状态的方法及设备。 背景技术 The present invention relates to the field of network technologies, and in particular, to a method and device for obtaining a virtual link state. Background technique
FCOE (Fiber Channel over Ethernet, 以太网光纤通道) 网络可以支持多个 FCF FCOE (Fiber Channel over Ethernet) network can support multiple FCFs
(FCOE Forwarder, FCOE交换机) 网元节点, 随着云计算业务的不断扩大, FCF作 为汇聚节点, 至少要支持几千台甚至上万台服务器接入, 每台服务器又可以设置多条 虚链路以满足业务需求。 (FCOE Forwarder, FCOE switch) NE node, with the continuous expansion of cloud computing services, FCF as a sink node, at least support thousands or even tens of thousands of servers to access, each server can set multiple virtual links To meet business needs.
在现有标准中,每个虚链路需要周期性的发送 keepalive (链路保活)报文给 FCF, FCF周期性地监测该报文,来感知此虚链路的状态是否正常, 如果超过一定周期没有 收到某个虚链路的 keepalive报文, 则认为此虚链路状态异常, FCF将删除此虚链路, 终止连接。  In the existing standard, each virtual link needs to periodically send a keepalive (link keepalive) message to the FCF. The FCF periodically monitors the packet to detect whether the status of the virtual link is normal. If the virtual link status of the virtual link is abnormal, the FCF deletes the virtual link and terminates the connection.
然而, 对于云计算业务来说, 每个 FCF可接入几千台服务器, 而每台服务器又 可以设置几十条甚至上百条虚链路, 如果按照现有标准, FCF 需要周期性处理的 keepalive报文为几十万个, 显然如此巨大数量的 keepalive报文远远超过了 FCF 的 CPU的处理能力, 也势必会影响网络的稳定。 发明内容  However, for the cloud computing service, each FCF can access thousands of servers, and each server can set dozens or even hundreds of virtual links. If the FCF needs to be processed periodically according to existing standards. The number of keepalive packets is hundreds of thousands. Obviously, such a large number of keepalive messages far exceed the processing power of the FCF's CPU, and it will inevitably affect the stability of the network. Summary of the invention
本发明实施例中提供了一种获知虚链路状态的方法及设备, 能够大量减少 keepalive报文的数量。  In the embodiment of the present invention, a method and a device for obtaining a virtual link state are provided, which can reduce the number of keepalive packets in a large amount.
为了解决上述技术问题, 本发明实施例公开了如下技术方案:  In order to solve the above technical problem, the embodiment of the present invention discloses the following technical solutions:
第一方面, 提供一种获知虚链路状态的方法, 包括:  In a first aspect, a method for obtaining a virtual link status is provided, including:
以太网光纤通道交换机接收服务器发送的链路保活报文;  The Ethernet Fibre Channel switch receives the link keep-alive message sent by the server;
所述以太网光纤通道交换机解析所述链路保活报文,获得所述链路保活报文中包 含的正常虚链路的标识信息;  The Ethernet Fibre Channel switch parses the link keep-alive packet to obtain the identifier information of the normal virtual link included in the link keep-alive packet;
所述以太网光纤通道交换机根据所述链路保活报文中包含的正常虚链路的标识 信息确定正常的虚链路。  The Ethernet Fibre Channel switch determines a normal virtual link according to the identification information of the normal virtual link included in the link keep-alive packet.
结合上述一方面, 在第一种可能的实现方式中, 所述以太网光纤通道交换机接收 到的所述链路保活报文中包含所述服务器的所有正常虚链路的标识信息。 In combination with the foregoing aspect, in a first possible implementation manner, the Ethernet Fibre Channel switch receives The link keep-alive packet that is sent includes the identifier information of all normal virtual links of the server.
第二方面, 提供另一种获知虚链路状态的方法, 包括:  In a second aspect, another method for obtaining a virtual link state is provided, including:
服务器生成链路保活报文, 所述链路保活报文中包含正常虚链路的标识信息; 所述服务器将生成的所述链路保活报文发送至以太网光纤通道交换机,以使所述 以太网光纤通道交换机根据所述链路保活报文中包含的正常虚链路的标识信息确定 正常的虚链路。  The server generates a link keep-alive packet, where the link keep-alive packet includes the identifier information of the normal virtual link; the server sends the generated link keep-alive packet to the Ethernet Fibre Channel switch, The Ethernet Fibre Channel switch determines a normal virtual link according to the identification information of the normal virtual link included in the link keep-alive packet.
结合上述第二方面, 在第一种可能的实现方式中, 所述服务器生成的所述链路保 活报文中包含所述服务器的所有正常虚链路的标识信息。  With reference to the foregoing second aspect, in a first possible implementation manner, the link-preserving packet generated by the server includes identifier information of all normal virtual links of the server.
第三方面, 提供一种以太网光纤通道交换机, 包括:  In a third aspect, an Ethernet Fibre Channel switch is provided, including:
报文接收单元, 用于接收服务器发送的链路保活报文;  a message receiving unit, configured to receive a link keep-alive message sent by the server;
报文解析单元, 用于解析所述报文接收单元接收到的所述链路保活报文, 获得所 述链路保活报文中包含的正常虚链路的标识信息;  a packet parsing unit, configured to parse the link keep-alive packet received by the packet receiving unit, and obtain identifier information of a normal virtual link included in the link keep-alive packet;
状态确定单元,用于根据所述报文解析单元解析获得的所述链路保活报文中包含 的正常虚链路的标识信息确定正常的虚链路。  And a state determining unit, configured to determine a normal virtual link according to the identifier information of the normal virtual link included in the link keep-alive packet obtained by the packet parsing unit.
结合上述第三方面, 在第一种可能的实现方式中, 所述报文接收单元接收到的所 述链路保活报文中包含所述服务器的所有正常虚链路的标识信息。  With reference to the foregoing third aspect, in a first possible implementation manner, the link keep-alive packet received by the packet receiving unit includes identifier information of all normal virtual links of the server.
第四方面, 提供另一种以太网光纤通道交换机, 包括:  In a fourth aspect, another Ethernet Fibre Channel switch is provided, including:
收发器, 用于接收服务器发送的链路保活报文;  a transceiver, configured to receive a link keep-alive message sent by the server;
处理器, 用于解析所述收发器接收到的所述链路保活报文, 获得所述链路保活报 文中包含的正常虚链路的标识信息;并根据所述链路保活报文中包含的正常虚链路的 标识信息确定正常的虚链路。  a processor, configured to parse the link keep-alive packet received by the transceiver, obtain identifier information of a normal virtual link included in the link keep-alive packet, and keep alive according to the link The identification information of the normal virtual link included in the packet determines the normal virtual link.
第五方面, 提供一种服务器, 包括:  In a fifth aspect, a server is provided, including:
报文生成单元, 用于生成链路保活报文, 所述链路保活报文中包含正常虚链路的 标识信息;  a message generating unit, configured to generate a link keep-alive packet, where the link keep-alive packet includes the identifier information of the normal virtual link;
报文发送单元,用于将所述报文生成单元生成的所述链路保活报文发送至以太网 光纤通道交换机,以使所述以太网光纤通道交换机根据所述链路保活报文中包含的正 常虚链路的标识信息确定正常的虚链路。  a message sending unit, configured to send the link keep-alive message generated by the message generating unit to an Ethernet Fibre Channel switch, so that the Ethernet Fibre Channel switch keeps a message according to the link The identification information of the normal virtual link included in the normal link determines the normal virtual link.
结合上述第五方面, 在第一种可能的实现方式中, 所述报文生成单元生成的所述 链路保活报文中包含所述服务器的所有正常虚链路的标识信息。  With reference to the foregoing fifth aspect, in a first possible implementation manner, the link keep-alive packet generated by the packet generating unit includes identifier information of all normal virtual links of the server.
第六方面, 提供另一种服务器, 包括:  In a sixth aspect, another server is provided, including:
处理器, 用于生成链路保活报文, 所述链路保活报文中包含正常虚链路的标识信 息; a processor, configured to generate a link keep-alive packet, where the link keep-alive packet includes an identifier of a normal virtual link Interest rate
收发器,用于将所述处理器生成的所述链路保活报文发送至以太网光纤通道交换 机,以使所述以太网光纤通道交换机根据所述链路保活报文中包含的正常虚链路的标 识信息确定正常的虚链路。  a transceiver, configured to send the link keep-alive message generated by the processor to an Ethernet Fibre Channel switch, so that the Ethernet Fibre Channel switch according to the normality included in the link keep-alive message The identification information of the virtual link determines a normal virtual link.
本发明实施例通过改进现有的服务器发送的 keepalive报文, 在该报文中增加该 服务器下正常虚链路的标识信息, 使得 FCF根据接收到的 keepalive报文即可获知虚 链路的状态, 从而大大减少了虚链路发送的 keepalive报文, 减小了对网络稳定性的 影响。 附图说明  The embodiment of the present invention improves the status of the virtual link by using the keepalive packet sent by the existing server, and adds the identifier of the normal virtual link in the packet to enable the FCF to know the status of the virtual link according to the received keepalive packet. Therefore, the keepalive packets sent by the virtual link are greatly reduced, and the impact on network stability is reduced. DRAWINGS
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现 有技术描述中所需要使用的附图作简单地介绍, 显而易见地, 下面描述中的附图仅仅 是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前 提下, 还可以根据这些附图获得其他的附图。  In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings to be used in the embodiments or the description of the prior art will be briefly described below. Obviously, the drawings in the following description are only It is a certain embodiment of the present invention, and other drawings can be obtained from those skilled in the art without any inventive labor.
图 1为现有技术中服务器发送的 keepalive报文的结构示意图;  1 is a schematic structural diagram of a keepalive packet sent by a server in the prior art;
图 2为现有技术中虚链路发送的 keepalive报文的结构示意图;  2 is a schematic structural diagram of a keepalive packet sent by a virtual link in the prior art;
图 3为本发明实施例一种获知虚链路状态的方法流程图;  3 is a flowchart of a method for obtaining a virtual link state according to an embodiment of the present invention;
图 4为本发明实施例中服务器发送的 keepalive报文的结构示意图;  4 is a schematic structural diagram of a keepalive packet sent by a server according to an embodiment of the present invention;
图 5为本发明实施例另一种获知虚链路状态的方法流程图;  FIG. 5 is a flowchart of another method for obtaining a virtual link state according to an embodiment of the present invention;
图 6为本发明实施例另一种获知虚链路状态的方法流程图;  FIG. 6 is a flowchart of another method for obtaining a virtual link state according to an embodiment of the present invention;
图 7为现有技术中服务器及虚链路发送报文的示意图;  7 is a schematic diagram of a packet sent by a server and a virtual link in the prior art;
图 8为图 6所示实施例中服务器生成的报文的结构示意图;  8 is a schematic structural diagram of a message generated by a server in the embodiment shown in FIG. 6;
图 9为图 6所示实施例中服务器发送报文的示意图;  9 is a schematic diagram of a server sending a message in the embodiment shown in FIG. 6;
图 10为本发明实施例一种 FCF的结构示意图;  FIG. 10 is a schematic structural diagram of an FCF according to an embodiment of the present invention; FIG.
图 11为本发明实施例另一种 FCF的结构示意图;  11 is a schematic structural diagram of another FCF according to an embodiment of the present invention;
图 12为本发明实施例一种服务器的结构示意图;  FIG. 12 is a schematic structural diagram of a server according to an embodiment of the present invention; FIG.
图 13为本发明实施例另一种服务器的结构示意图。 具体实施方式  FIG. 13 is a schematic structural diagram of another server according to an embodiment of the present invention. detailed description
FCOE网络中, 现有的 keepalive报文有两种, 一种是服务器发送的 keepalive报 文,其报文结构如图 1所示,报文头中包括了 FIP (FCOE Initialization Protocol, FCOE 初始化协议) 报文类型 (FIP_Type), 版本号 (Version;), FIP 协议码 (FIP Code), 子 协议码 (sub Code), FIP描述字段列表长度 (FIP deep list length), 报文负荷中只携 带服务器的 MAC (Medium Access Control, 介质访问控制层)地址描述字段; 另一 种是由虚链路发送的 keepalive报文,报文结构如图 2所示,与服务器发出的 keepalive 报文相比, 虚链路发出的 keepalive报文中通过携带 FIP Vx_Port Identification描述字 段来标识虚链路。现有技术中, 按照标准规定, 服务器和服务器上设置的各虚链路均 会周期性向 FCF发送各自的 keepalive报文, FCF周期性的监测两类 keepalive报文, 来感知此服务器及其虚链路状态是否正常, 如果 FCF超过一定周期没有收到某一服 务器发送的 keepalive报文, 则认为此服务器状态异常, FCF将直接删除该服务器, 终止连接, 若 FCF超过一定周期没有收到某一虚链路发送的 keepalive报文, 则认为 此虚链路状态异常, FCF将删除此虚链路, 终止连接。 In the FCOE network, there are two types of keepalive packets. One is the keepalive packet sent by the server. The packet structure is shown in Figure 1. The packet header includes FIP (FCOE Initialization Protocol, FCOE). Initialization Protocol) Message type (FIP_Type), version number (Version;), FIP code (FIP Code), sub-code (sub-code), FIP deep list length, FIP deep list length Carrying the MAC address (Medium Access Control) address description field of the server; the other is the keepalive packet sent by the virtual link. The packet structure is as shown in Figure 2, compared with the keepalive packet sent by the server. The keepalive packet sent by the virtual link carries the FIP Vx_Port Identification description field to identify the virtual link. In the prior art, according to the standard, each virtual link set on the server and the server periodically sends its own keepalive packets to the FCF. The FCF periodically monitors two types of keepalive packets to sense the server and its virtual link. If the FCF does not receive a keepalive packet sent by a certain server, the FCF will directly delete the server and terminate the connection. If the FCF exceeds a certain period, the virtual state is not received. If the link status is abnormal, the FCF will delete the virtual link and terminate the connection.
由于在云计算业务中, 虚链路的数量非常大, 所有虚链路周期发送的 keepalive 报文所形成的报文风暴直接会影响网络稳定, 同时受 FCF处理能力的局限, 报文风 暴也会直接导致单台 FCF无法扩容, 而若增加 FC0E交换机代理设备或 FCF又会造 成网络成本的成倍增加。  In the cloud computing service, the number of virtual links is very large. The packet storms generated by the keepalive packets sent by all the virtual link periods directly affect the stability of the network and are limited by the FCF processing capability. As a result, a single FCF cannot be expanded. If the FC0E switch agent or FCF is added, the network cost will be doubled.
基于此, 本发明实施例提供了一种获知虚链路状态的方法及设备, 通过改进现有 的服务器发送的 keepalive报文,在该报文中增加该服务器下正常虚链路的标识信息, 使得 FCF根据该服务器发送的 keepalive报文即可获知虚链路的状态, 从而大大减少 了虚链路发送的 keepalive报文, 减小了对网络稳定性的影响, 进而 FCF可以较为容 易地进行扩容。  Based on this, the embodiment of the present invention provides a method and a device for obtaining a virtual link state, and the identifier information of the normal virtual link in the server is added to the packet by improving the keepalive packet sent by the server. The FCF can learn the status of the virtual link according to the keepalive packets sent by the server, thereby greatly reducing the number of keepalive packets sent by the virtual link, reducing the impact on the network stability, and the FCF can be easily expanded. .
为了使本技术领域的人员更好地理解本发明实施例中的技术方案,并使本发明实 施例的上述目的、特征和优点能够更加明显易懂, 下面结合附图对本发明实施例中技 术方案作进一步详细的说明。  The above-mentioned objects, features, and advantages of the embodiments of the present invention will become more apparent and understood. Give further details.
参见图 3, 为本发明实施例一种获知虚链路状态的方法流程图。  Referring to FIG. 3, it is a flowchart of a method for obtaining a virtual link state according to an embodiment of the present invention.
该方法可以包括:  The method can include:
步骤 301, FCF接收服务器发送的 keepalive报文。  Step 301: The FCF receives the keepalive packet sent by the server.
FCOE网络中, 虚链路由服务器设置, 服务器需要多少条虚链路即设置多少条, 因此服务器本地存储有由其设置的各虚链路的信息,在本发明实施例中,服务器在向 FCF发送 keepalive报文时, 在该报文中添加该服务器使用的虚链路的标识信息, 也 即正常虚链路的标识信息。  In the FCOE network, the virtual link is set by the server, and the number of virtual links that the server needs to be set, so that the server stores the information of each virtual link set by the server. In the embodiment of the present invention, the server is in the FCF. When the keepalive packet is sent, the identifier of the virtual link used by the server is added to the packet, that is, the identifier of the normal virtual link.
在一具体实例中, 该服务器发送的 keepalive报文的结构可以如图 4所示。 其中, 在报文的 MAC地址描述字段之后增加多个正常虚链路的标识信息字段, 具体可以是 FIP Vx Port Identification描述字段。 该报文与现有技术中虚链路发送的 keepalive报 文的区别在于,现有技术中的虚链路发送的报文中仅包含该虚链路的标识信息,例如 包含 FIP Vi_Port Identification描述字段, 而本发明实施例中服务器发送的 keepalive 报文中包含多个正常虚链路的标识信息, 例如包含 FIP Vi_Port Identification描述字 段、 FIP V2_Port Identification描述字段 FIP Vn_Port Identification描述字段。 该服 务器发送的 keepalive报文中可以包含多个正常虚链路的标识信息, 这样该多个正常 虚链路即无需向 FCF周期发送 keepalive报文,从而可以减少 FCF接收到的报文数量, 更优选的, 该服务器发送的 keepalive报文中包含该服务器的所有正常虚链路的标识 信息, 这样该服务器下的所有正常虚链路都无需向 FCF周期发送 keepalive报文, 只 有该服务器周期发送一个 keepalive报文即可。 In a specific example, the structure of the keepalive message sent by the server may be as shown in FIG. 4. among them, The identifier information field of the normal virtual link is added after the MAC address description field of the packet, which may be a FIP Vx Port Identification description field. The difference between the packet and the keepalive packet sent by the virtual link in the prior art is that the packet sent by the virtual link in the prior art only includes the identifier information of the virtual link, for example, the FIP Vi_Port Identification description field is included. In the embodiment of the present invention, the keepalive packet sent by the server includes the identifier information of the normal virtual link, for example, the FIP Vi_Port Identification description field and the FIP V 2 _Port Identification description field FIP V n _Port Identification description field. The keepalive packet sent by the server may include the identifier information of multiple normal virtual links, so that the multiple normal virtual links do not need to send keepalive packets to the FCF period, thereby reducing the number of packets received by the FCF. Preferably, the keepalive packet sent by the server includes the identifier information of all the normal virtual links of the server, so that all normal virtual links under the server do not need to send keepalive packets to the FCF period, and only one server sends one Keepalive messages are fine.
FCF在接收到该服务器发送的 keepalive报文后, 执行下一步骤。  After receiving the keepalive packet sent by the server, the FCF performs the next step.
步骤 302, FCF解析该 keepalive报文, 获得 keepalive报文中包含的正常虚链路 的标识信息。  Step 302: The FCF parses the keepalive packet to obtain the identifier information of the normal virtual link included in the keepalive packet.
FCF对该 keepalive报文进行解析, 该解析过程与现有技术中的解析过程相同, 区别仅在于 FCF解析获得的信息中除了 MAC地址描述字段,还有正常虚链路的标识 信息。  The FCF parses the keepalive packet. The parsing process is the same as the parsing process in the prior art. The only difference is that the information obtained by the FCF parsing has the MAC address description field and the identity information of the normal virtual link.
步骤 303,FCF根据该 keepalive报文中包含的正常虚链路的标识信息确定正常的 虚链路。  Step 303: The FCF determines a normal virtual link according to the identifier information of the normal virtual link included in the keepalive packet.
FCF在获得正常虚链路的标识信息后即可确定出正常的虚链路。  After obtaining the identification information of the normal virtual link, the FCF can determine the normal virtual link.
本发明实施例通过改进现有的服务器发送的 keepalive报文, 在该报文中增加该 服务器下正常虚链路的标识信息, 使得 FCF根据接收到的 keepalive报文即可获知虚 链路的状态, 从而大大减少了虚链路发送的 keepalive报文, 减小了对网络稳定性的 影响, 进而 FCF可以较为容易地进行扩容。  The embodiment of the present invention improves the status of the virtual link by using the keepalive packet sent by the existing server, and adds the identifier of the normal virtual link in the packet to enable the FCF to know the status of the virtual link according to the received keepalive packet. Therefore, the keepalive packets sent by the virtual link are greatly reduced, and the impact on the network stability is reduced, and the FCF can be easily expanded.
参见图 5, 为本发明实施例另一种获知虚链路状态的方法流程图。  FIG. 5 is a flowchart of another method for obtaining a virtual link state according to an embodiment of the present invention.
本发明实施例与图 3所示实施例的区别仅在于以 FCF的对端也即服务器侧作为 执行主体, 该方法可以包括:  The difference between the embodiment of the present invention and the embodiment shown in FIG. 3 is that the peer end of the FCF, that is, the server side, is the execution subject, and the method may include:
步骤 501, 服务器生成 keepalive报文, 该 keepalive报文中包含正常虚链路的标 识信息。  Step 501: The server generates a keepalive packet, where the keepalive packet includes the identifier information of the normal virtual link.
优选的, 服务器生成的 keepalive报文中包含服务器的所有正常虚链路的标识信 息。 步骤 502,服务器将生成的 keepalive报文发送至 FCF,以使 FCF根据该 keepalive 报文中包含的正常虚链路的标识信息确定正常的虚链路。 Preferably, the server-generated keepalive packet includes identifier information of all normal virtual links of the server. Step 502: The server sends the generated keepalive packet to the FCF, so that the FCF determines the normal virtual link according to the identifier information of the normal virtual link included in the keepalive packet.
本发明实施例通过改进现有的服务器发送的 keepalive报文, 在该报文中增加该 服务器下正常虚链路的标识信息, 使得 FCF根据该服务器发送的 keepalive报文即可 获知虚链路的状态, 从而大大减少了虚链路发送的 keepalive报文, 减小了对网络稳 定性的影响, 进而 FCF可以较为容易地进行扩容。  The embodiment of the present invention improves the identification information of the normal virtual link in the server by using the keepalive packet sent by the existing server, so that the FCF can obtain the virtual link according to the keepalive packet sent by the server. The state, which greatly reduces the keepalive packets sent by the virtual link, reduces the impact on the stability of the network, and the FCF can be easily expanded.
参见图 6, 为本发明实施例另一种获知虚链路状态的方法流程图。  FIG. 6 is a flowchart of another method for obtaining a virtual link state according to an embodiment of the present invention.
本发明实施例以服务器设置三条虚链路 VI、 V2、 V3 为例进行说明。 按照现有 技术方案,如图 7所示, FCF需要接收服务器发送的 keepalive报文, 以及虚链路 VI、 V2、 V3分别发送的 keepalive报文, 共计 4个报文, FCF根据接收这些报文的情况确 定各虚链路的状态。 而在本实施例中, 确定虚链路状态的方法可以包括:  In the embodiment of the present invention, three virtual links VI, V2, and V3 are set by the server as an example for description. According to the prior art solution, as shown in FIG. 7, the FCF needs to receive the keepalive message sent by the server, and the keepalive message sent by the virtual link VI, V2, and V3 respectively, for a total of four messages, and the FCF receives the message according to the FCF. The situation determines the state of each virtual link. In this embodiment, the method for determining the status of the virtual link may include:
步骤 601, 服务器生成 keepalive报文。  Step 601: The server generates a keepalive packet.
服务器使用该三条虚链路 VI、 V2、 V3 , 也即该三条虚链路状态正常, 服务器在 该报文中增加虚链路 VI、 V2、 V3 各自的标识信息, 分别为 Vl_Port Identification descriptor V2_Port Identification descriptor V3_Port Identification descriptor, 生成最 终的 keepalive报文, 该报文结构具体可以如图 8所示。  The server uses the three virtual links VI, V2, and V3. That is, the three virtual links are in the normal state. The server adds the identification information of the virtual links VI, V2, and V3 to the V1_Port Identification descriptor V2_Port Identification. The descriptor V3_Port Identification descriptor generates a final keepalive packet. The structure of the packet can be as shown in Figure 8.
步骤 602, 服务器将生成的 keepalive报文发送至 FCF。  Step 602: The server sends the generated keepalive packet to the FCF.
在本实施例中,如图 9所示,只是由服务器向 FCF发送一个 keepalive报文即可, 虚链路 VI、 V2、 V3无需再发送报文。  In this embodiment, as shown in FIG. 9, only the server sends a keepalive message to the FCF, and the virtual link VI, V2, and V3 do not need to send a message.
步骤 603, FCF解析接收到的 keepalive报文, 获取其中的虚链路的标识信息。 步骤 604, FCF将获得的标识信息所对应的虚拟链路的状态确定为正常。  Step 603: The FCF parses the received keepalive packet, and obtains the identifier information of the virtual link. Step 604: The FCF determines that the status of the virtual link corresponding to the obtained identification information is normal.
本发明实施例通过改进现有的服务器发送的 keepalive报文, 在该报文中增加该 服务器下所有正常虚链路的标识信息, 使得 FCF根据该服务器发送的 keepalive报文 即可获知虚链路的状态, 从而成倍地减少了 FCF 接收到的 keepalive 报文, 解决了 FC0E网络中, 海量 keepalive报文影响网络稳定的问题, 而且利用该方法, 单台 FCF 可以更好地进行扩容, 不至于因 keepalive报文数量巨大无法处理, 导致必须增加设 备, 大大降低了网络成本。  The embodiment of the present invention improves the identifier information of all the normal virtual links in the server by modifying the keepalive packets sent by the existing server, so that the FCF can obtain the virtual link according to the keepalive packets sent by the server. The status of the keepalive message is reduced by the FCF, which solves the problem that the massive keepalive packet affects the network stability in the FC0E network. With this method, a single FCF can be better expanded without being expanded. Because the number of keepalive packets is too large to be processed, the device must be added, which greatly reduces the network cost.
以上是对本发明方法实施例的描述, 下面对实现上述方法的装置进行介绍。 参见图 10, 为本发明实施例一种 FCF的结构示意图。  The above is a description of the embodiment of the method of the present invention. The apparatus for implementing the above method will be described below. Referring to FIG. 10, it is a schematic structural diagram of an FCF according to an embodiment of the present invention.
该 FCF包括:  The FCF includes:
报文接收单元 1001, 用于接收服务器发送的 keepalive报文; 报文解析单元 1002,用于解析报文接收单元 1001接收到的 keepalive报文,获得 keepalive报文中包含的正常虚链路的标识信息; a message receiving unit 1001, configured to receive a keepalive message sent by the server; The message parsing unit 1002 is configured to parse the keepalive packet received by the packet receiving unit 1001, and obtain the identifier information of the normal virtual link included in the keepalive packet;
状态确定单元 1003,用于根据报文解析单元 1002解析获得的 keepalive报文中包 含的正常虚链路的标识信息确定正常的虚链路。  The state determining unit 1003 is configured to determine a normal virtual link according to the identifier information of the normal virtual link included in the keepalive packet obtained by the packet parsing unit 1002.
其中, 报文接收单元 1001接收到的 keepalive报文中可以包含服务器的所有正常 虚链路的标识信息。  The keepalive packet received by the packet receiving unit 1001 may include identifier information of all normal virtual links of the server.
本发明实施例中 FCF通过上述单元获得报文中增加的该服务器下正常虚链路的 标识信息, 即可获知虚链路的状态, 从而大大减少了 FCF接收到的 keepalive报文, 减小了对网络稳定性的影响, 进而 FCF可以较为容易地进行扩容。  In the embodiment of the present invention, the FCF obtains the identifier information of the normal virtual link in the packet, and the state of the virtual link is obtained, thereby greatly reducing the keepalive packet received by the FCF. The impact on network stability, and thus the FCF can be easily expanded.
参见图 11, 为本发明实施例另一种 FCF的结构示意图。  Referring to FIG. 11, a schematic structural diagram of another FCF according to an embodiment of the present invention is shown.
该 FCF可以包括:  The FCF can include:
收发器 1101, 用于接收服务器发送的 keepalive报文;  The transceiver 1101 is configured to receive a keepalive packet sent by the server.
处理器 1102, 用于解析所述收发器 1101接收到的所述 keepalive报文, 获得所述 keepalive报文中包含的正常虚链路的标识信息; 并根据所述 keepalive报文中包含的 正常虚链路的标识信息确定正常的虚链路。  The processor 1102 is configured to parse the keepalive packet received by the transceiver 1101, obtain the identifier information of the normal virtual link included in the keepalive packet, and obtain the normal virtual content included in the keepalive packet. The identification information of the link determines the normal virtual link.
本发明实施例中 FCF通过获得报文中增加的该服务器下正常虚链路的标识信息, 即可获知虚链路的状态, 从而大大减少了 FCF接收到的 keepalive报文, 减小了对网 络稳定性的影响, 进而 FCF可以较为容易地进行扩容。  In the embodiment of the present invention, the FCF obtains the identity information of the virtual link in the packet, and the state of the virtual link is obtained, thereby greatly reducing the keepalive packet received by the FCF, and reducing the network. The effect of stability, and thus the FCF can be easily expanded.
参见图 12, 为本发明实施例一种服务器的结构示意图。  Referring to FIG. 12, it is a schematic structural diagram of a server according to an embodiment of the present invention.
该服务器可以包括:  The server can include:
报文生成单元 1201, 用于生成 keepalive报文, 所述 keepalive报文中包含正常虚 链路的标识信息;  The message generating unit 1201 is configured to generate a keepalive packet, where the keepalive packet includes the identifier information of the normal virtual link.
报文发送单元 1202,用于将报文生成单元 1201生成的所述 keepalive报文发送至 FCF, 以使 FCF根据所述 keepalive报文中包含的正常虚链路的标识信息确定正常的 虚链路。  The message sending unit 1202 is configured to send the keepalive message generated by the message generating unit 1201 to the FCF, so that the FCF determines the normal virtual link according to the identity information of the normal virtual link included in the keepalive message. .
其中, 报文生成单元 1201生成的所述 keepalive报文中包含所述服务器的所有正 常虚链路的标识信息。  The keepalive packet generated by the packet generating unit 1201 includes identifier information of all normal virtual links of the server.
本发明实施例中, 服务器通过上述单元改进现有的服务器发送的 keepalive报文, 在该报文中增加该服务器下正常虚链路的标识信息, 使得 FCF根据该服务器发送的 keepalive报文即可获知虚链路的状态,从而大大减少了虚链路发送的 keepalive报文, 减小了对网络稳定性的影响, 进而 FCF可以较为容易地进行扩容。 参见图 13, 为本发明实施例另一种服务器的结构示意图。 In the embodiment of the present invention, the server improves the keepalive message sent by the existing server by using the foregoing unit, and adds the identifier information of the normal virtual link in the server, so that the FCF can be based on the keepalive message sent by the server. The status of the virtual link is known, which greatly reduces the number of keepalive packets sent by the virtual link, and reduces the impact on the stability of the network. Therefore, the FCF can be easily expanded. FIG. 13 is a schematic structural diagram of another server according to an embodiment of the present invention.
该服务器可以包括:  The server can include:
处理器 1301, 用于生成 keepalive报文, 所述 keepalive报文中包含正常虚链路的 标识信息;  The processor 1301 is configured to generate a keepalive packet, where the keepalive packet includes the identifier information of the normal virtual link.
收发器 1302,用于将所述处理器 1301生成的所述 keepalive报文发送至 FCF, 以 使所述 FCF根据所述 keepalive报文中包含的正常虚链路的标识信息确定正常的虚链 路。  The transceiver 1302 is configured to send the keepalive packet generated by the processor 1301 to the FCF, so that the FCF determines a normal virtual link according to the identifier information of the normal virtual link included in the keepalive packet. .
本发明实施例中, 该服务器通过改进现有的服务器发送的 keepalive报文, 在该 报文中增加该服务器下正常虚链路的标识信息, 使得 FCF 根据该服务器发送的 keepalive报文即可获知虚链路的状态,从而大大减少了虚链路发送的 keepalive报文, 减小了对网络稳定性的影响, 进而 FCF可以较为容易地进行扩容。  In the embodiment of the present invention, the server improves the identifier information of the normal virtual link in the server by modifying the keepalive packet sent by the existing server, so that the FCF can know according to the keepalive packet sent by the server. The state of the virtual link greatly reduces the number of keepalive packets sent by the virtual link, which reduces the impact on the stability of the network. Therefore, the FCF can be easily expanded.
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单 元及算法步骤, 能够以电子硬件、 或者计算机软件和电子硬件的结合来实现。这些功 能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专 业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实 现不应认为超出本发明的范围。  One of ordinary skill in the art will appreciate that the elements and algorithm steps of the various examples described in connection with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the solution. A person skilled in the art can use different methods for implementing the described functions for each particular application, but such implementation should not be considered to be beyond the scope of the present invention.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、 装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。  A person skilled in the art can clearly understand that for the convenience and brevity of the description, the specific working process of the system, the device and the unit described above can refer to the corresponding process in the foregoing method embodiment, and details are not described herein again.
在本申请所提供的几个实施例中, 应该理解到, 所揭露的系统、 装置和方法, 可 以通过其它的方式实现。 例如, 以上所描述的装置实施例仅仅是示意性的, 例如, 所 述单元的划分, 仅仅为一种逻辑功能划分, 实际实现时可以有另外的划分方式, 例如 多个单元或组件可以结合或者可以集成到另一个系统, 或一些特征可以忽略, 或不执 行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些 接口, 装置或单元的间接耦合或通信连接, 可以是电性, 机械或其它的形式。  In the several embodiments provided herein, it should be understood that the disclosed systems, devices, and methods may be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of the unit is only a logical function division. In actual implementation, there may be another division manner, for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored, or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显 示的部件可以是或者也可以不是物理单元, 即可以位于一个地方, 或者也可以分布到 多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例 方案的目的。  The units described as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, i.e., may be located in one place, or may be distributed over multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the embodiment.
另外, 在本发明各个实施例中的各功能单元可以集成在一个处理单元中, 也可以 是各个单元单独物理存在, 也可以两个或两个以上单元集成在一个单元中。  In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以 存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或 者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现 出来, 该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机 设备 (可以是个人计算机, 服务器, 或者网络设备等) 或处理器 (processor)执行本 发明各个实施例所述方法的全部或部分步骤。 而前述的存储介质包括: U盘、移动硬 盘、只读存储器(ROM, Read-Only Memory ) 随机存取存储器(RAM, Random Access Memory), 磁碟或者光盘等各种可以存储程序代码的介质。 If the function is implemented in the form of a software functional unit and sold or used as a stand-alone product, Stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention, which is essential or contributes to the prior art, or a part of the technical solution, may be embodied in the form of a software product, which is stored in a storage medium, including The instructions are used to cause a computer device (which may be a personal computer, server, or network device, etc.) or a processor to perform all or part of the steps of the methods described in various embodiments of the present invention. The foregoing storage medium includes: a U disk, a mobile hard disk, a Read-Only Memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and the like, which can store program codes.
以上所述, 仅为本发明的具体实施方式, 但本发明的保护范围并不局限于此, 任 何熟悉本技术领域的技术人员在本发明揭露的技术范围内, 可轻易想到变化或替换, 都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应所述以权利要求的保 护范围为准。  The above is only the specific embodiment of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily think of changes or substitutions within the technical scope of the present invention. It should be covered by the scope of the present invention. Therefore, the scope of the invention should be determined by the scope of the claims.

Claims

权 利 要 求 Rights request
1、 一种获知虚链路状态的方法, 其特征在于, 包括:  A method for obtaining a virtual link state, which is characterized by comprising:
以太网光纤通道交换机接收服务器发送的链路保活报文;  The Ethernet Fibre Channel switch receives the link keep-alive message sent by the server;
所述以太网光纤通道交换机解析所述链路保活报文,获得所述链路保活报文 中包含的正常虚链路的标识信息;  The Ethernet Fibre Channel switch parses the link keep-alive packet to obtain the identifier information of the normal virtual link included in the link keep-alive packet;
所述以太网光纤通道交换机根据所述链路保活报文中包含的正常虚链路的 标识信息确定正常的虚链路。  The Ethernet Fibre Channel switch determines a normal virtual link according to the identification information of the normal virtual link included in the link keep-alive packet.
2、 根据权利要求 1所述的方法, 其特征在于, 所述以太网光纤通道交换机 接收到的所述链路保活报文中包含所述服务器的所有正常虚链路的标识信息。 The method according to claim 1, wherein the link keep-alive packet received by the Ethernet Fibre Channel switch includes identification information of all normal virtual links of the server.
3、 一种获知虚链路状态的方法, 其特征在于, 包括: 3. A method for obtaining a virtual link state, the method comprising:
服务器生成链路保活报文, 所述链路保活报文中包含正常虚链路的标识信 息;  The server generates a link keep-alive packet, where the link keep-alive packet includes the identifier information of the normal virtual link.
所述服务器将生成的所述链路保活报文发送至以太网光纤通道交换机,以使 所述以太网光纤通道交换机根据所述链路保活报文中包含的正常虚链路的标识 信息确定正常的虚链路。  Sending, by the server, the generated link keep-alive message to the Ethernet Fibre Channel switch, so that the Ethernet Fibre Channel switch according to the normal virtual link identifier information included in the link keep-alive packet Determine the normal virtual link.
4、 根据权利要求 3所述的方法, 其特征在于, 所述服务器生成的所述链路 保活报文中包含所述服务器的所有正常虚链路的标识信息。 The method according to claim 3, wherein the link keep-alive packet generated by the server includes identification information of all normal virtual links of the server.
5、 一种以太网光纤通道交换机, 其特征在于, 包括: 5. An Ethernet Fibre Channel switch, comprising:
报文接收单元, 用于接收服务器发送的链路保活报文;  a message receiving unit, configured to receive a link keep-alive message sent by the server;
报文解析单元, 用于解析所述报文接收单元接收到的所述链路保活报文, 获 得所述链路保活报文中包含的正常虚链路的标识信息;  a packet parsing unit, configured to parse the link keep-alive packet received by the packet receiving unit, and obtain identifier information of a normal virtual link included in the link keep-alive packet;
状态确定单元,用于根据所述报文解析单元解析获得的所述链路保活报文中 包含的正常虚链路的标识信息确定正常的虚链路。  And a state determining unit, configured to determine a normal virtual link according to the identifier information of the normal virtual link included in the link keep-alive packet obtained by the packet parsing unit.
6、 根据权利要求 5所述的以太网光纤通道交换机, 其特征在于, 所述报文 接收单元接收到的所述链路保活报文中包含所述服务器的所有正常虚链路的标 识信息。 The Ethernet Fibre Channel switch according to claim 5, wherein the link keep-alive packet received by the packet receiving unit includes identification information of all normal virtual links of the server. .
7、 一种以太网光纤通道交换机, 其特征在于, 包括: 7. An Ethernet Fibre Channel switch, comprising:
收发器, 用于接收服务器发送的链路保活报文;  a transceiver, configured to receive a link keep-alive message sent by the server;
处理器, 用于解析所述收发器接收到的所述链路保活报文, 获得所述链路保 活报文中包含的正常虚链路的标识信息;并根据所述链路保活报文中包含的正常 虚链路的标识信息确定正常的虚链路。  a processor, configured to parse the link keep-alive packet received by the transceiver, obtain identifier information of a normal virtual link included in the link keep-alive packet, and keep alive according to the link The identification information of the normal virtual link included in the packet determines the normal virtual link.
8、 一种服务器, 其特征在于, 包括: 8. A server, comprising:
报文生成单元, 用于生成链路保活报文, 所述链路保活报文中包含正常虚链 路的标识信息;  a message generating unit, configured to generate a link keep-alive packet, where the link keep-alive packet includes the identifier information of the normal virtual link;
报文发送单元,用于将所述报文生成单元生成的所述链路保活报文发送至以 太网光纤通道交换机,以使所述以太网光纤通道交换机根据所述链路保活报文中 包含的正常虚链路的标识信息确定正常的虚链路。  a message sending unit, configured to send the link keep-alive message generated by the message generating unit to an Ethernet Fibre Channel switch, so that the Ethernet Fibre Channel switch keeps a message according to the link The identification information of the normal virtual link included in the normal link determines the normal virtual link.
9、 根据权利要求 8所述的服务器, 其特征在于, 所述报文生成单元生成的 所述链路保活报文中包含所述服务器的所有正常虚链路的标识信息。 The server according to claim 8, wherein the link keep-alive packet generated by the packet generating unit includes identification information of all normal virtual links of the server.
10、 一种服务器, 其特征在于, 包括: 10. A server, comprising:
处理器, 用于生成链路保活报文, 所述链路保活报文中包含正常虚链路的标 识信息;  a processor, configured to generate a link keep-alive packet, where the link keep-alive packet includes the identifier information of the normal virtual link;
收发器,用于将所述处理器生成的所述链路保活报文发送至以太网光纤通道 交换机,以使所述以太网光纤通道交换机根据所述链路保活报文中包含的正常虚 链路的标识信息确定正常的虚链路。  a transceiver, configured to send the link keep-alive message generated by the processor to an Ethernet Fibre Channel switch, so that the Ethernet Fibre Channel switch according to the normality included in the link keep-alive message The identification information of the virtual link determines a normal virtual link.
PCT/CN2012/083006 2012-10-16 2012-10-16 Method and device for obtaining virtual link state WO2014059590A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201280002194.8A CN103181187B (en) 2012-10-16 2012-10-16 A kind of method and apparatus knowing virtual link state
PCT/CN2012/083006 WO2014059590A1 (en) 2012-10-16 2012-10-16 Method and device for obtaining virtual link state

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2012/083006 WO2014059590A1 (en) 2012-10-16 2012-10-16 Method and device for obtaining virtual link state

Publications (1)

Publication Number Publication Date
WO2014059590A1 true WO2014059590A1 (en) 2014-04-24

Family

ID=48639404

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2012/083006 WO2014059590A1 (en) 2012-10-16 2012-10-16 Method and device for obtaining virtual link state

Country Status (2)

Country Link
CN (1) CN103181187B (en)
WO (1) WO2014059590A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105634786B (en) * 2014-11-24 2019-12-06 华为技术有限公司 link keep-alive method and device
CN104954165B (en) * 2015-04-20 2018-09-07 华为技术有限公司 A kind of method, equipment and the system of link analysis

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102111306A (en) * 2009-12-23 2011-06-29 杭州华三通信技术有限公司 Method, system and device for detecting virtual link faults based on fiber channel over Ethernet (FCoE)

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102111306A (en) * 2009-12-23 2011-06-29 杭州华三通信技术有限公司 Method, system and device for detecting virtual link faults based on fiber channel over Ethernet (FCoE)

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
LUO, MIN: "Design and Implementation of FCoE Protocol FIP Module", ELECTRONIC TECHNOLOGY & INFORMATION SCIENCE, CHINA MASTER'S THESES FULL-TEXT DATABASE, 15 March 2011 (2011-03-15), pages 7 - 8, 15-16,19 AND 24-25 *

Also Published As

Publication number Publication date
CN103181187B (en) 2016-09-28
CN103181187A (en) 2013-06-26

Similar Documents

Publication Publication Date Title
TWI677222B (en) Connection establishment method and device applied to server load balancing
WO2018058677A1 (en) Message processing method, computing device, and message processing apparatus
US8929368B2 (en) Control method of virtual link discovery and system for fibre channel over ethernet protocol
US9762493B2 (en) Link aggregation (LAG) information exchange protocol
US9883010B2 (en) Method, apparatus, device and system for generating DHCP snooping binding table
CN102752217B (en) Network acceleration system and network accelerating method
EP2681871B1 (en) In-service throughput testing in distributed router/switch architectures
US9973427B2 (en) Method for determining management domain, network device, and virtual cluster
WO2016086755A1 (en) Packet processing method and transparent proxy server
US8156209B1 (en) Aggregation devices processing keep-alive messages of point-to-point sessions
US9641355B2 (en) Communication device, communication method, and program
CN102427452B (en) Synchronize (SYN) message transmitting method and device and network equipment
US10999253B2 (en) Maintaining internet protocol security tunnels
CN112910704B (en) Local area network system, method and device supporting dynamic self-adaptive network configuration
CN112887312B (en) Slow protocol message processing method and related device
WO2014059590A1 (en) Method and device for obtaining virtual link state
US9813159B2 (en) Method for setting maintenance association MA, apparatus, and system
US20180081746A1 (en) Application message processing system, method, and application device
CN105577546A (en) Method for actively requesting access based on QoS
WO2013159492A1 (en) Method and system for reporting and downloading information
US10972442B1 (en) Distributed predictive packet quantity threshold reporting
US20150319074A1 (en) Cluster and Forwarding Method
CN113542395B (en) Message processing method and message processing system
WO2015051696A1 (en) Method and apparatus for transmitting oam packet
CN112769926A (en) Internet of things center, system and communication method

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 12886614

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 12886614

Country of ref document: EP

Kind code of ref document: A1