[go: up one dir, main page]

WO2014169439A1 - Method, device and system for realizing fcoe - Google Patents

Method, device and system for realizing fcoe Download PDF

Info

Publication number
WO2014169439A1
WO2014169439A1 PCT/CN2013/074269 CN2013074269W WO2014169439A1 WO 2014169439 A1 WO2014169439 A1 WO 2014169439A1 CN 2013074269 W CN2013074269 W CN 2013074269W WO 2014169439 A1 WO2014169439 A1 WO 2014169439A1
Authority
WO
WIPO (PCT)
Prior art keywords
fef
fcs
fcoe
mac address
forwarding table
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.)
Ceased
Application number
PCT/CN2013/074269
Other languages
French (fr)
Chinese (zh)
Inventor
厉益舟
宋伟
江兴烽
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to PCT/CN2013/074269 priority Critical patent/WO2014169439A1/en
Priority to CN201380000224.6A priority patent/CN104350710B/en
Publication of WO2014169439A1 publication Critical patent/WO2014169439A1/en
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/02Topology update or discovery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2101/00Indexing scheme associated with group H04L61/00
    • H04L2101/60Types of network addresses
    • H04L2101/618Details of network addresses
    • H04L2101/622Layer-2 addresses, e.g. medium access control [MAC] addresses
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2101/00Indexing scheme associated with group H04L61/00
    • H04L2101/60Types of network addresses
    • H04L2101/618Details of network addresses
    • H04L2101/645Fibre channel identifiers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/10Mapping addresses of different types
    • H04L61/106Mapping addresses of different types across networks, e.g. mapping telephone numbers to data network addresses

Definitions

  • the present invention relates to communications technologies, and in particular, to a method, apparatus, and system for implementing a fiber channel over ethernet (FCoE).
  • FCoE fiber channel over ethernet
  • Fibre Channel can be mapped to Ethernet, Fibre Channel information can be inserted into Ethernet packets, allowing Fibre Channel requests and data from server-SAN storage devices to be transmitted over Ethernet connections without the need for specialized Fibre Channel structure.
  • FCF FCoE forwarder
  • the FCoE packets sent by the source device in the network need to pass the FCF.
  • the FCF is used to forward the packets.
  • the routing table of the text finds the forwarding path of the packet and forwards the packet to the destination device. Since an FCF usually needs to use a separate domain identifier, and the number of domain identifiers (IDs) is limited, the entire network size is also limited by the number of FCFs, resulting in poor scalability of the FCF networking.
  • IDs domain identifiers
  • FCoE data-plane forwarder FCoE FDF
  • FCoE data-plane forwarder FCoE FDF
  • the FCF performs route calculation and sends the related information to the FDF.
  • the FDF forwards the FCoE packets from the source device to the destination device according to the routing table.
  • the present invention provides a method, apparatus and system for implementing FCoE to reduce the implementation complexity of the FCoE control plane.
  • a method for implementing Fibre Channel over Ethernet FCoE includes: a Fibre Channel Control Plane Server FCS and at least one Fibre Channel Edge Forwarder FEF, wherein the at least one FEF includes a first FEF; the method includes: the first FEF receiving the FCS allocation The first Fibre Channel identifies the FC-ID range; and further receives the forwarding information sent by the FCS, where the forwarding information includes: a medium access control MAC address of another FEF and an FC-ID allocated by the FCS to the other FEFs Corresponding relationship of the range; the first FEF, according to the forwarding information, updating a packet forwarding table of the first FEF, where the packet forwarding table includes a correspondence between a MAC address and an FC-ID range;
  • the packet forwarding table of the first FEF according to the forwarding information, specifically: the packet forwarding table of the first FEF according to the forwarding information by the first FEF
  • the correspondence between the MAC address of the other FEF and the FC-ID range is recorded.
  • the method further includes: the first FEF receiving the first local a connection request sent by the node; the first FEF allocates a first node FC-ID to the first local node from the first FC-ID range according to the connection request; the FEF is according to the first And updating, by the node FC-ID, the packet forwarding table of the first FEF, where the FEF updates the packet forwarding table of the first FEF according to the first node FC-ID, specifically: The first FEF records the correspondence between the MAC address of the first local node and the first node FC-ID in the packet forwarding table of the first FEF according to the first node FC-ID.
  • the method further includes: the first FEF receiving the exit information sent by the FCS, the exiting The information includes a MAC address of the second FEF, where the first FEF updates the packet forwarding table of the first FEF according to the exit information, where the first FEF updates the first information according to the exit information.
  • the packet forwarding table of the FEF includes: deleting, by the first FE F, the forwarding entry corresponding to the MAC address of the second FEF from the packet forwarding table of the first FEF according to the exit information.
  • the method further includes: the first FEF establishing a connection with the FCS; the establishing, by the first FEF, the FCS is configured to: the first FEF is statically configured with an FCS address, and according to Establishing a connection between the FCS address and the FCS; or: the first FEF The dynamic discovery mode establishes a connection with the FCS.
  • the method further includes: the first FEF receiving an FCoE report from a local node Obtaining a destination FC-ID from the FCoE packet; the first FEF searches the packet forwarding table of the first FEF according to the destination FC-ID, and obtains a packet corresponding to the destination FC-ID. The MAC address of the destination FEF; the first FEF sets the MAC address of the destination FEF to the destination MAC address of the FCoE packet, and sends the FCoE packet.
  • a method for implementing an Ethernet Fibre Channel FCoE is provided, which is applied to an FCoE network, where the FCoE network includes a Fibre Channel Control Plane Server FCS and at least one Fibre Channel Edge Forwarder FEF, where the at least one FEF includes a An FEF; the method includes: the FCS assigning a first Fibre Channel identification FC-ID range to the first FEF; the FCS transmitting the first FC-ID range, and forwarding information to the first And the FEF is configured to update the packet forwarding table of the first FEF according to the forwarding information, where the forwarding information includes: a media access control MAC address of another FEF, and the FCS is allocated to the other Correspondence of the FC-ID range of the FEF; the correspondence table of the MAC address includes the correspondence between the MAC address and the FC-ID range.
  • the method further includes: the FCS corresponding to the first FEF
  • the first forwarding information is sent to the other FEF, so that the other FEFs update the packet forwarding table of the other FEF according to the first forwarding information, where the first forwarding information includes: the first FEF Correspondence between the MAC address and the first FC-ID range.
  • the method further includes: sending, by the FCS, the exit information to the first FEF, the exit information
  • the MAC address of the second FEF is included in the first FEF, so that the first FEF updates the packet forwarding table of the first FEF according to the exit information.
  • a Fibre Channel edge repeater FEF including:
  • An information receiving unit configured to receive a first Fibre Channel identification FC-ID range allocated by the Fibre Channel control plane server FCS; and further receive forwarding information sent by the FCS, where the forwarding information includes: a medium access control MAC address of another FEF Corresponding relationship between the FC-ID range allocated by the FCS to the other FEFs; a forwarding table update unit, configured to update, according to the forwarding information, a packet forwarding table of the FEF, where the packet forwarding table includes a correspondence between a MAC address and an FC-ID range; Corresponding relationship between the MAC address of the other FEF and the FC-ID range is recorded in the message forwarding table of the FEF.
  • the method further includes: a request receiving unit, configured to receive a connection request sent by the first local node, and an address allocation unit, configured to: according to the connection request, The first local node is allocated a first node FC-ID in an FC-ID range; the forwarding table update unit is further configured to update the FEF packet forwarding table according to the first node FC-ID Specifically, the mapping between the MAC address of the first local node and the first node FC-ID is recorded in the packet forwarding table of the FEF according to the first node FC-ID.
  • the information receiving unit is further configured to receive the exit information sent by the FCS, where the exit information is
  • the forwarding table update unit is further configured to: update the packet forwarding table of the first FEF according to the exit information; specifically, according to the exit information, from the first The forwarding entry corresponding to the MAC address of the second FEF is deleted in the packet forwarding table of the FEF.
  • the method further includes: a connection processing unit, configured to establish a connection with the FCS; And establishing a connection with the FCS according to the statically configured FCS address; or acquiring the FCS address by using a dynamic discovery manner, and establishing a connection with the FCS.
  • the method further includes: a packet forwarding unit, where the packet forwarding unit is configured to receive Obtaining an FCoE packet from the local node, and obtaining a destination FC-ID from the FCoE packet; searching for a packet forwarding table of the FEF according to the destination FC-ID, and obtaining a packet corresponding to the destination FC-ID
  • the MAC address of the destination FEF, the MAC address of the destination FEF is set to the destination MAC address of the FCoE packet, and the FCoE packet is sent.
  • a Fibre Channel control plane server FCS including:
  • An address allocation unit configured to allocate a first Fibre Channel identification FC-ID range to the first FEF
  • an information sending unit configured to send the first FC-ID range, and forwarding information to the first FEF, so that Updating, by the first FEF, the packet of the first FEF according to the forwarding information a forwarding table, where the forwarding information includes: a media access control MAC address of another FEF, and a correspondence between the FC-ID range allocated by the FCS to the other FEF, where the forwarding table includes a MAC address and an FC - The correspondence of the ID range.
  • the information sending unit is further configured to send the first forwarding information corresponding to the first FEF to the other FEF, so that the other FEF is configured according to The first forwarding information is used to update the packet forwarding table of the other FEF, where the first forwarding information includes: a correspondence between the MAC address of the first FEF and the first FC-ID range.
  • the information sending unit is further configured to send the exit information to the first FEF, where the exit information is The MAC address of the second FEF is included in the first FEF, so that the first FEF updates the packet forwarding table of the first FEF according to the exit information.
  • a system for implementing Fibre Channel over Ethernet FCoE comprising at least one Fibre Channel edge repeater FEF of the present invention, and a Fibre Channel Control Plane Server FCS of the present invention.
  • the technical effect of the method, device and system for implementing FCoE provided by the present invention is: a first FEF in at least one FEF in the FCoE network, the first FEF can receive the first FC-ID range allocated by the FCS, and also receive the FCS transmission
  • the forwarding information includes: a MAC address of another FEF and a correspondence between the FCS and the FC-ID range allocated by the FCS; the first FEF can update the packet forwarding table according to which the FCoE packet is forwarded. Recording the correspondence between the MAC address and the FC-ID range in the packet forwarding table; the manner of forming the forwarding table is very simple and fast, compared with the prior art master FCS every network update. To recalculate the entire network route, the formation of the packet forwarding table is simplified, and the implementation of the control plane of the FCoE network is simpler, which reduces the implementation complexity of the FCoE control plane.
  • FIG. 1 is a schematic diagram of a networking architecture of an FCoE network according to an embodiment of the present invention
  • FIG. 2 is a flowchart of a method for implementing FCoE according to an embodiment of the present invention
  • FIG. 3 is a schematic diagram of another networking architecture of an FCoE network according to an embodiment of the present invention
  • FIG. 4 is a flowchart of another method for implementing FCoE according to an embodiment of the present invention
  • FIG. 5 is a flowchart of a method for implementing FCoE according to an embodiment of the present invention
  • FIG. 6 is a schematic diagram of signaling interaction for implementing FCoE according to an embodiment of the present invention
  • FIG. 7 is a schematic diagram of a method for implementing FCoE according to an embodiment of the present invention
  • FIG. 8 is a schematic diagram of packet changes in a method for implementing FCoE according to an embodiment of the present invention
  • FIG. 9 is a schematic structural diagram of an FEF according to an embodiment of the present invention
  • FIG. 10 is another schematic structural diagram of an FEF according to an embodiment of the present disclosure.
  • FIG. 11 is still another schematic structural diagram of an FEF according to an embodiment of the present invention.
  • FIG. 12 is a schematic structural diagram of an FCS according to an embodiment of the present disclosure.
  • FIG. 13 is a schematic structural diagram of an entity structure of an FEF according to an embodiment of the present disclosure.
  • FIG. 14 is a schematic diagram of an entity structure of an FCS according to an embodiment of the present invention. detailed description
  • FIG. 1 is a schematic diagram of a networking architecture of an FCoE network according to an embodiment of the present invention.
  • the embodiment of the present invention provides a method for implementing FCoE, which may be based on the FCoE network networking architecture shown in FIG.
  • the FCoE network includes two functional entities: a Fibre Channel Control Plane Server (FCCS) and an FC Edge Forwarder (FEF).
  • FCCS Fibre Channel Control Plane Server
  • FEF FC Edge Forwarder
  • the FCS participates in the operation of the control plane and the management plane of the FCoE network, and does not participate in the forwarding of the data plane of the FCoE network. It is used to centrally control and manage the FEF, and send relevant signaling and parameters to the FEF.
  • the FEF is used to receive the control and management of the FCS, and receive the relevant signaling and parameters from the FCS. It is also used to generate a packet forwarding table, and forward the FCoE packet according to the packet forwarding table, that is, complete the data plane of the FCoE network. Forward.
  • FCS1 can be connected to each FEF through a common Ethernet switch or other device.
  • Both the server 1 (Server1) and the storage 2 (storage2) are traditional FCoE end nodes (ENodes), and the ENode nodes are node devices in the network that forward FCoE in the FCoE mode, for example, the server controller local area network. (controller area network, abbreviation: CAN) NIC, FCoE switch, FCoE-enabled storage devices, etc.
  • VN port When the ENode node is connected to the FEF, the port of the ENode node is called a VN port (VN port), and the port of the FEF is called a VF port (VF port).
  • VF port VF port
  • FCoE initialization protocol can be adopted between the VN port and the VF port. (FCoE initialization protocol, FIP for short) Initialize the connection.
  • the method for implementing the FCoE according to the embodiment of the present invention includes: Each FEF, specifically FEF1, FEF2, FEF3, and FEF4, establishes a connection with the FCS1 responsible for the main control, and is based on the FCS1.
  • the related information is sent to generate a packet forwarding table for forwarding packets, and then the FCoE packet is forwarded according to the packet forwarding table. Therefore, the FCoE network shown in Figure 1 can perform the function of forwarding FCoE packets.
  • the FEF5 is required to be inbound, and the packet forwarding table of each FEF in the network, specifically FEF1, FEF2, FEF3, and FEF4, is updated; If a new ENode is added, the packet forwarding table of the FEF connected to the new ENode needs to be updated, and the packet is forwarded according to the updated forwarding table.
  • FIG. 1 a schematic diagram of the networking architecture of the FCoE network shown in FIG. 1 is used to describe how to implement FCoE, including a control plane and a data plane; for example, a packet forwarding table of the control plane is generated, and data is generated. Forwarding of flat FCoE packets.
  • FIG. 2 is a flowchart of a method for implementing FCoE according to an embodiment of the present invention. As shown in FIG. 2, the method may include:
  • the first FEF receives the first fiber channel identifier (FC-ID) range allocated by the FCS to the first FEF; and further receives the forwarding information sent by the FCS, where the forwarding information includes: another FEF a media access control (MAC) address and a correspondence between the FCS and the FC-ID range allocated by the FCS to the other FEFs;
  • FC-ID fiber channel identifier
  • MAC media access control
  • any FEF of the FCoE network receives the FC-ID range allocated by the FCS when it newly joins the FCoE network; the FC-ID range obtained by each FEF is mainly used for allocation to the access.
  • the ENode of the FEF; the FC-ID is mainly used for addressing and forwarding FCoE packets in the network.
  • the foregoing FC-ID range may be represented by multiple types, for example, by masking ( 1.1.0/16 ), or by consecutive n starting from a certain FC-ID (n> 0) , for example, ⁇ an FC-ID range is ( 1.1.1 10 ), which means that the FC-ID range is 10 consecutive from the FC-ID of 1.1.1, ie 1.1.1, 1.1 .2, 1.1.3 1.1.10.
  • an FC-ID range is ( 1.1.1 10 )
  • the FC-ID range is 10 consecutive from the FC-ID of 1.1.1, ie 1.1.1, 1.1 .2, 1.1.3 1.1.10.
  • the FCS allocates different FC-ID ranges for each FEF, that is, the FC-ID ranges to which different FEFs are allocated cannot overlap. More specifically, when there is an FCS in the FCoE network, the FC-ID range of each FEF under the FCS cannot be assigned. When there are multiple FCSs in the FCoE network, the FC-ID ranges controlled by different FCSs cannot overlap, that is, the FC-ID ranges assigned to the FEFs belonging to different FCSs cannot be overlapped.
  • the FC-ID The non-overlapping range means that the whole network is unique.
  • FC-ID ranges There are several ways to achieve non-overlapping FC-ID ranges. The following are several examples, but the specific implementation is not limited to this: For example, with an FCS as an example, which FC-ID range can be recorded on the FCS, Then, when the FC-ID range is assigned to other FEFs next time, these used ones will not be allocated again, so a single FCS is still easy to control without overlapping.
  • FCS1 and FCS2 exist, in order to ensure that the FC-ID ranges allocated by the two FCSs do not overlap, the following methods can be used:
  • FC-ID resources that can be controlled by each of them can be pre-configured on the two FCS1 and FCS2.
  • FCS1 can be configured to control the first part of the FC in the resource pool.
  • the subsequent FCS1 allocates the FC-ID range to each of its subordinate FEFs, and selects the allocation from the first part of the FC-ID resource; and the configuration FCS2 is responsible for controlling the second part of the FC-ID in the resource pool.
  • the subsequent FCS2 allocates the FC-ID range for each of its subordinate FEFs, and then selects the allocation from the second part of the FC-ID resource, so that there is no overlap between the two FCSs.
  • the interaction signaling between the FCS1 and the FCS2 may be shared, and the FC-ID range allocation information is shared by the interaction signaling.
  • the FCS1 allocates the FC-ID range to a certain FEF of the subordinate.
  • the first FC-ID range will be notified to FCS2 by interactive signaling, so that FCS2 can know that the first FC-ID range has been used in FCS1, and FCS2 will not use the first one when it is allocated to its subordinate FEF.
  • a range of FC-IDs FCS2 will also notify FCS1 of its assigned FC-ID range, and the information exchange between the two FCSs can avoid the repeated allocation of the FC-ID range.
  • FCS 1 and FCS2 select an FC-ID range allocation from the FC-ID resource pool (for example, an FC-ID database) when allocating FC-ID ranges for their respective FEFs, then FCS1 is allocated.
  • the FC-ID range that has already been assigned can be marked later to indicate that the FC-ID range has been assigned, and FCS2 will view the FC-ID range to be assigned when selecting from the FC-ID resource pool.
  • the tag if it is already marked, will not be used, it will only be allocated using the un-allocated FC-ID range.
  • the FCS when the first FFE is added to the FCoE network, the FCS allocates a first FC-ID range to the first FEF, and the FCS records the first forwarding information corresponding to the first FEF.
  • the first forwarding information includes a correspondence between a MAC address of the first FEF and the first FC-ID range.
  • the first FC-ID range is controlled by the first FEF, and is used to allocate to the local node that accesses the first FEF, that is, the ENode that accesses the first FEF; specifically, the first FEF For each local node accessing the first FEF, an FC-ID is selected from the first FC-ID range and allocated to the local node.
  • the first FC-ID range allocated by the FCS to the first FEF may be randomly selected by the FCS, or may be selected according to a certain rule policy, which is not limited in the embodiment of the present invention.
  • the first FEF further receives the forwarding information sent by the FCS, where the forwarding information includes: a MAC address of another FEF and a correspondence between the FCS and the FC-ID range allocated by the FCS to the other FEF.
  • the first FEF when the first FEF is newly added to the FCoE network, if there are other FEFs in the FCoE network, the first FEF receives the FCS transmission in addition to receiving the first FC-ID range allocated by the FCS.
  • Forwarding information the forwarding information may be stored in the FCS, and the FCS sends the forwarding information to the first FEF when the first FEF newly joins the network; the forwarding information and the first An FC-ID range may be carried in the same message and sent to the first FEF, or may be sent to the first FEF through different messages.
  • the first FEF receives the forwarding information sent by the FCS, that is, receives the forwarding corresponding to the new FEF sent by the FCS.
  • the information includes a MAC address of the new FEF and a correspondence of the FC-ID range allocated by the FCS to the new FEF.
  • H ⁇ FCS1 knows that FEF1 is newly added to the FCoE network, and the FC-ID range allocated for FEF1 is "1.1.0/16", and the FC-ID range allocated to FCS1 for other FEFs is as follows.
  • the forwarding information received by FEF1 includes "FEF2-MAC, 1.2.0/16", “FEF3-MAC, 1.3.0/16” and "FEF4-MAC, 1.4.0/16", that is, FCS1 notifies FEF 1 of the FC-ID range corresponding to other FEFs in the network.
  • the FC-ID range of FEF2 ⁇ FEF4 is also allocated by FCS1 when FEF2 ⁇ FEF4 is added to the network.
  • FCS1 will record the FC-ID range assigned to each FEF, that is, record the MAC address of FEF and FC-. The correspondence between ID ranges is shown in Table 1 below. FEF and its FC-ID range
  • the first FEF updates a packet forwarding table of the first FEF according to the forwarding information, where the packet forwarding table includes a correspondence between a medium access control MAC address and an FC-ID range.
  • the packet forwarding table includes a correspondence between a MAC address and an FC-ID range. Further, the packet forwarding table may further correspond to an egress port. And updating, by the first FEF, the packet forwarding table of the first FEF according to the forwarding information, specifically: the first FEF is in the first FEF according to the forwarding information
  • the correspondence between the MAC address of the other FEF and the FC-ID range is recorded in the publication. Further, an egress port corresponding to the other FEFs may also be included.
  • the FCS will also notify all FEFs in the network. Specifically, when the first FEF is newly added to the FCoE network, the FCS sends the first forwarding information corresponding to the first FEF to other FEFs other than the first FEF in the FCoE network, so that other FEFs are according to the foregoing
  • the forwarding information of the other FEF is updated by the forwarding information, and the first forwarding information includes a correspondence between the MAC address of the first FEF and the first FC-ID range. In this way, each FEF in the entire network can know the FC-ID range that is responsible for each, and this notification is specifically handled by the FCS.
  • FCS1 After FEF1 is added to the network and FCS1 allocates the corresponding FC-ID range for the FEF1, FCS1 also forwards the forwarding information corresponding to FEF1, that is, the MAC address of FEF1 and its FC-ID range. , notify other FEFs, such as FEF2, FEF3, and FEF4, so that each FEF in the entire network knows the FC-ID range that each is responsible for, and this notification is handled by FCS1.
  • the method further includes: the first FEF receiving a connection request sent by a first local node; The connection request, the first node is assigned a first node FC-ID from the first FC-ID range; the FEF updates the first FEF according to the first node FC-ID a packet forwarding table. Specifically, the first FEF records, according to the first node FC-ID, a MAC address of the first local node in the packet forwarding table of the first FEF, and the first Corresponding relationship of a node FC-ID; further, an egress port corresponding to the first local node may also be recorded.
  • the server 1 connected to the FEF1 in FIG. 1 is taken as an example.
  • a connection request is sent to the FEF1, for example, a FIP FLOGI (clothing login) message, and the connection request is received.
  • FEF1 will select an unassigned FC-ID from the FC-ID range allocated by FCS1 to FEF1, and assign it to server 1.
  • the FC-ID assigned to server 1 can be referred to as the node FC-ID.
  • the server 1 has an identifier, which is a world wide name (WWN).
  • the WWN is 64 bits, and its role is for identity and security control, similar to media access control ( Media access control, referred to as MAC), but not for forwarding addressing.
  • the FCS when the second FEF exits the FCoE network, the FCS also notifies the remaining FEFs in the FCoE network, so that the remaining FEFs update the message forwarding table.
  • the method further includes: the first FEF receiving the exit information sent by the FCS, where the exit information includes a MAC address of the second FEF, and the first FEF is updated according to the exit information. Deleting a packet forwarding table of the first FEF; specifically, the first FEF deletes, according to the exit information, a forwarding entry corresponding to the MAC address of the second FEF from the packet forwarding table of the first FEF .
  • the first FEF establishes a connection with the FCS. Since the FCS is responsible for controlling and managing each FEF in the FCoE network, each newly joined FEF must first establish a connection with the FCS. Specifically, if the first FEF is newly added to the FCoE network, the first FEF first establishes a connection with the FCS, and then receives the first FC-ID range that the FCS allocates for the first FEF. Specifically, the first FEF may pass a transmission control protocol.
  • TCP Transmission control protocol
  • UDP user datagram protocol
  • the FCS Obtaining, by the dynamic discovery mode, the address of the FCS, and establishing a connection with the FCS; specifically, sending, by the first FEF, a broadcast or a multicast packet, where the FCS responds; or, the FCS may periodically Sending a multicast/broadcast notification to the network to control the FEF it controls, the FCS Address or logo.
  • connection established between the first FEF and the FCS is usually a logical connection, and may of course be a physical direct connection.
  • the FEF1 new port is added to the FCoE network, and the FCS1 ⁇ 1 other FEFs, such as FEF2, FEF3, and FEF4, are sent to FEF1, so that FEF1 updates the FEF1 message according to the forwarding information of FEF2, FEF3, and FEF4.
  • FEF1 receives the local node, that is, the connection request of Server 1, and FEF 1 assigns the node FC-ID to Server 1 from its FC-ID range, that is, 1.1.0/16, for example, 1.1.1, and then updates the FEF1 message.
  • Table 2 below shows the message forwarding table of FEF1:
  • each of the rows 2 to 5 can be referred to as a forwarding entry.
  • Each forwarding entry includes: MAC address of another FEF, FC-ID range, and correspondence of outgoing ports. For example, in the second line, "1.2.0/16 FEF2-MAC 1", where 1.2.0/16 is
  • the FC-ID range of FEF2, FEF2-MAC is the MAC address of FEF2, and 1 is the outgoing port for outputting the message to FEF2. See circle 1 on FEF1 in Figure 1 for the outgoing port.
  • the forwarding entry in line 5 of Table 2 is generated by FEF1 based on the node FC-ID assigned to the local node, Server1.
  • the forwarding entry includes: the MAC address of the local node, the correspondence between the node FC-ID and the egress port, as shown in the fifth line in Table 2, "1.1.1 Serverl-MAC 100".
  • the output port in the above packet forwarding table is learned by the FEF through the data plane address. If the out port is not learned, it can be empty. In this case, the sent packets will follow the usual Layer 2 forwarding technology and will be treated as unknown unicast, usually using a flooding method.
  • each of the FEFs in the network shown in FIG. 1 generates a respective forwarding table, for example, For the FEF2, when it is newly added to the network, it may receive the forwarding information about the FEF3 and the FEF4 sent by the FCS1. Therefore, the forwarding entry corresponding to FEF3 and FEF4 is generated in the packet forwarding table on the FEF2.
  • FCS1 notifies FEF2 of the forwarding information of FEF1 (including the MAC address of FEF1 and its corresponding FC-ID range).
  • FEF2 adds the forwarding entry corresponding to FEF 1 in its packet forwarding table. can. When there is no local node connected to the FEF2, the forwarding entry corresponding to the local node may not be available in the packet forwarding table.
  • each FEF can forward FCoE packets according to its own packet forwarding table.
  • the method can also include:
  • the first FEF receives the FCoE packet from the local node, and obtains the destination FC-ID from the FCoE packet;
  • the first FEF searches the packet forwarding table of the first FEF according to the destination FC-ID, and obtains a MAC address of the destination FEF corresponding to the destination FC-ID;
  • the first FEF sets the MAC address of the destination FEF to the destination MAC address of the FCoE packet, and sends the FCoE packet.
  • the server 1 sends an FCoE message to the memory 2 as an example to describe how each FEF in the network performs FCoE packet forwarding.
  • the server 1 is a node connected to the FEF1, FEF1.
  • the FC-ID assigned to this server 1 is 1.1.1, as shown in Table 2,
  • the forwarding entry includes "1.1.1 Server 1 - MAC 100; and the memory 2 is a node connected to the FEF4. It is assumed that the FC-ID allocated by the FEF4 to the memory 2 is 1.4.1; In the packet forwarding table on FEF4, its forwarding entries include
  • the server 1 sends the FCoE message to the FEF1, and the FEF 1 obtains the destination MAC address from the FCoE message, and finds that the destination MAC address is the MAC address of the FEF1.
  • the FEF1 decapsulates the FCoE packet, and obtains the destination FC-ID from the FCoE packet.
  • the destination FC-ID is 1.4.1.
  • the FEF1 is based on the destination FC-ID, that is, 1.4.1.
  • the FEF1 packet forwarding table is searched for, and the destination MAC address corresponding to the destination FC-ID is FEF4-MAC, and the corresponding egress port is port 100, and FEF 1 uses FEF4-MAC as the FCoE packet.
  • the MAC address is encapsulated, and then the FCoE packet is sent from the port 1.
  • the FEF4 obtains the destination MAC address of the FCoE packet, and finds that the destination MAC address is the MAC address of the FEF4, and the FEF4 pair
  • the FCoE packet is decapsulated, and the destination FC-ID is obtained from the FCoE packet as 1.4.1; and the FEF4 is configured according to the destination FC-ID.
  • the FEF and the FCS may also pass through some or some of the FEFs, that is, the topology of the FEF cascading may be included in the networking, for example, as shown in FIG. 3, which is another FCoE network provided by the embodiment of the present invention.
  • FIG. 3 is another FCoE network provided by the embodiment of the present invention.
  • FIG. 3 is another FCoE network provided by the embodiment of the present invention.
  • FIG. 3 is another FCoE network provided by the embodiment of the present invention.
  • FIG. 3 is another FCoE network provided by the embodiment of the present invention.
  • FIG. 3 is another FCoE network provided by the embodiment of the present invention.
  • FIG. 3 is another FCoE network provided by the embodiment of the present invention.
  • the FEF5 When the FEF5 receives the FCoE packet, the FEF5 obtains the destination MAC address of the FCoE packet, and is the FEF4-MAC. The FEF5 determines that the destination MAC address of the FCoE packet is not the MAC address of the FEF5, and the FEF5 does not report the FCoE packet. The packet is decapsulated, and the FCoE packet is directly forwarded to FEF4.
  • the first-level cascading structure shown in FIG. 3 is only used as an example. In the actual deployment, a two-level or multi-level cascading structure may be used. The present invention does not limit the number of cascading stages.
  • the first FEF when the first FEF is newly added to the FCoE network, the first FEF only needs to receive the FCS to allocate the FC-ID range for the first FEF, and receive forwarding information of other FEFs in the network, where the first The FEF can establish a packet forwarding table accordingly.
  • the FCS only needs to notify other FEFs of the first FC-ID range allocated to the first FEF newly added to the FCoE network. Other FEFs are added on the forwarding table.
  • the forwarding entry corresponding to the first FEF can be used.
  • the generation of the packet forwarding table is simpler and faster, and the routing efficiency is improved, and the FCoE implementation is simplified.
  • FIG. 4 is a flowchart of another method for implementing FCoE according to an embodiment of the present invention.
  • the method for implementing the FCoE in this embodiment is performed by the FCS, and the embodiment is only briefly described. As shown in FIG. 4, the method may include:
  • the FCS allocates a first FC-ID range to the first FEF.
  • the FCS allocates an FC-ID range, and the FC-ID range obtained by each FEF is mainly used to allocate to the ENode accessing the FEF.
  • the FC-ID is mainly used for addressing and forwarding FCoE messages in the network.
  • the FCS allocates the first number to the first FEF.
  • the FC-ID range is controlled by the first-FEF, and is used for the local node that accesses the first FEF, that is, the ENode that accesses the first FEF.
  • the first The FEF allocates an FC-ID from the first FC-ID range to the local node for each local node accessing the first FEF.
  • the FC-ID range can be expressed in various ways, for example, by masking ( 1.1.0/16 ), or by n consecutive n (n > 0) from a certain FC-ID, for example, assuming An FC-ID range (1.1.10 10), which means that the FC-ID range is 10 consecutive from the FC-ID of 1.1.1, ie 1.1.1, 1.1.2, 1.1.3 1.1 .10. There may be other representations in the specific implementation, and are not limited to the above examples.
  • the FC-ID range allocated by the FCS for each FEF is different, that is, the FC-ID ranges of different FEFs cannot be overlapped. More specifically, when there is an FCS in the FCoE network, the FC-ID ranges allocated by the FEFs under the FCS cannot overlap; when there are multiple FCSs in the FCoE network, the FC-IDs controlled between different FCSs The range cannot overlap, that is, the FC-ID ranges assigned to the FEFs belonging to different FCSs cannot be overlapped, and the FC-ID range not overlapping means that the entire network is unique.
  • FC-ID ranges are not overlapped.
  • the FCS sends the first FC-ID range and the forwarding information to the first FEF, so that the first FEF updates the packet forwarding table of the first FEF according to the forwarding information;
  • the information includes: a correspondence between the MAC address of the other FEF and the FC-ID range allocated by the FCS to the other FEFs; the packet forwarding table includes a correspondence between the medium access control MAC address and the FC-ID range.
  • the FCS when there are other FEFs other than the first FEF in the FCoE network, the FCS sends the forwarding information corresponding to the other FEFs to the first FEF; the forwarding information includes the MAC addresses of other FEFs and Corresponding relationship of the FC-ID range allocated by the FCS to the other FEFs; the forwarding information may be stored in the FCS, and the FCS sends the forwarding information to the first when the first FEF is newly added to the network. An FEF.
  • the other FEF may be an FEF that joins the network before the first FEF, or may be an FEF that joins the network after the first FEF; for example, after the first FEF joins the FCoE network, if a new FEF joins the FCoE
  • the forwarding information sent by the FCS received by the first FEF is the forwarding information newly added to the FEF. For example: Referring to Figure 1, when FCS1 learns that FEF1 is newly added to the FCoE network, it allocates the corresponding FC-ID range of FEF1 to "1.1.0/16" and other FEFs in the FCoE network (such as FEF2, FEF3, and FEF4).
  • the corresponding forwarding information (such as the MAC address and the FC-ID range it is responsible for) is sent to the FEF1, so that the FEF1 generates a packet forwarding table according to the packet, and forwards the FCoE packet according to the packet forwarding table.
  • the FCS also sends the first forwarding information corresponding to the first FEF that is newly added to the network to the other FEF, so that the other FEFs update the packet forwarding table of the other FEF according to the first forwarding information.
  • the first forwarding information includes a correspondence between a MAC address of the first FEF and the first FC-ID range. In this way, each FEF in the entire network can know the FC-ID range that is responsible for each, and this notification is specifically handled by the FCS.
  • FCS1 in Figure 1 also notifies the FEF1's MAC address and its corresponding FC-ID range to other FEFs in the FCoE network, so that other FEFs update their own packet forwarding table, such as in the packet forwarding table. Add a forwarding entry corresponding to FEF1.
  • the FCS establishes a connection with the first FEF
  • the first FEF newly joined to the FCoE network must establish a connection with the FCS responsible for the master. Since the FCS is responsible for controlling and managing each FEF in the FCoE network, each newly joined FEF must first establish a connection with the FCS. When the first FEF joins the FCoE network, it first establishes a connection with the FCS, and then receives the first FC-ID range allocated by the FCS for the first FEF.
  • a connection relationship may be established between the FCS and the first FEF by using TCP or UDP.
  • the connection relationship may be established in a plurality of manners, including but not limited to: the first FEF is statically configured with an FCS address, and a connection is established with the FCS according to the FCS address; or the first FEF is passed. Dynamically discovering the address of the FCS, and establishing a connection with the FCS; for example, sending, by the first FEF, a broadcast or a multicast message, the FCS responding, or at the same time, the FCS may periodically send The multicast/broadcast notification informs the network of the FEF it controls, the address or identity of the FCS.
  • connection established between the first FEF and the FCS is usually a logical connection, and may of course be a physical direct connection.
  • the FCS allocates a first FC-ID range to the first FEF, and notifies the first FEF of the forwarding information of other FEFs in the stored network.
  • the first FEF can establish a message forwarding table according to this, for other FEFs.
  • the FCS only needs to notify other FEFs of the first FC-ID range of the first FEF that is newly added to the FCoE network, and the other FEFs may add the forwarding entry corresponding to the first FEF to the forwarding table.
  • the generation of the packet forwarding table is simpler and faster, which improves the routing efficiency and simplifies the implementation of FCoE.
  • FIG. 5 is a flowchart of another method for implementing FCoE according to the embodiment of the present invention.
  • this embodiment details how to forward FCoE packets in the FCoE network of the present invention. , as shown in Figure 5, including:
  • the first FEF receives an FCoE packet from the local node.
  • the first "FEF” is equivalent to the starting point FEF of the FCoE message.
  • the first FEF obtains a destination FC-ID from the FCoE packet.
  • the FCoE packet includes a source FC-ID, a destination FC-ID, a source MAC address, and a destination MAC address.
  • the source FC-ID is the FC-ID of the local node of the first FEF
  • the source MAC address is the MAC address of the local node of the first FEF
  • the destination FC-ID is the MAC address of the destination ENode
  • the address is the MAC address of the first FEF.
  • the first FEF searches the packet forwarding table of the first FEF according to the destination FC-ID, and obtains a MAC address of the destination FEF corresponding to the destination FC-ID.
  • the starting FEF will find the destination FEF corresponding to the destination FC-ID according to the destination FC-ID. For example, taking FIG. 3 as an example, it is assumed that the destination node for message transmission is memory 2, and the destination FC-ID corresponding to the memory 2 is 1.4.1; the starting point FEF can be found according to the 1.4.1 memory 2 is under FEF4. Node, so the destination FEF is FEF4.
  • the first FEF sets the MAC address of the destination FEF to the destination MAC address of the FCoE packet, and sends the FCoE packet.
  • the starting point FEF has directly set the destination MAC address of the packet to the MAC address of the destination FEF, which is different from the prior art processing.
  • the FEF1 the FCF device in the prior art
  • the MAC address is sent to the FEF5, and then the FEF5 is decapsulated to find the MAC address of the next hop FEF through the destination FC-ID, and the destination MAC address of the FCoE packet is set to the MAC address of the FEF4, and sent to the FEF4; , FCoE message from the entrance FEF, that is, FEF1 to the egress FEF, that is, each hop that the FEF4 passes, that is, each intermediate FEF (the FCF device in the prior art) needs to be decapsulated, routed using the next hop MAC address, and repackaged. Packet forwarding processing is costly and inefficient.
  • the MAC address of the egress FEF can be found by the destination FC-ID, and the destination MAC address of the FCoE packet is directly set as the MAC address of the egress FEF, that is, The MAC address of the FEF4, the intermediate FEF only forwards the packet, does not modify the destination MAC address of the packet, and does not perform packet decapsulation and encapsulation processing.
  • the FEF improves the forwarding processing efficiency of the packet when the FCoE packet is forwarded compared with the prior art.
  • FIG. 3 is a schematic diagram of signaling interaction of a method for implementing FCoE according to an embodiment of the present invention. Since FEF2 and FEF3 are similarly processed, only FEF2 is shown in FIG. 6.
  • FIG. 7 is a schematic diagram of packet forwarding according to a method for implementing FCoE according to an embodiment of the present invention.
  • the signaling interaction process of the FCoE method in this embodiment is as follows:
  • FEF1 establishes a connection with FCS1
  • FEF1 is statically configured with the FCS1 address and establishes a connection with FCS1 accordingly.
  • the FCS1 allocates an FC-ID range to the FEF1.
  • FCS allocates an FC-ID range of 1.1.0/16 for FEF1.
  • the FCS1 sends the FEF forwarding information to the FEF1.
  • the forwarding information of FCS1, FEF2, FEF4, and FEF5 is sent to FEF1, including: the correspondence between the MAC address of FEF2 and the FC-ID range of FEF2, and the correspondence between the MAC address of FEF3 and the FC-ID range of FEF3. Relationship, the correspondence between the MAC address of FEF4 and the FC-ID range of FEF4, and the correspondence between the MAC address of FEF5 and the FC-ID range of FEF5; the FC-ID range of FEF2, FEF3, FEF4, and FEF5 is also allocated by FCS .
  • the FCS1 notifies the FEF1 of the forwarding information of the FEF1.
  • FCS1 notifies FEF1, FEF3, FEF4, and FEF5 of FEF1's MAC address and corresponding FC-ID range, so that FEF2, FEF3, FEF4, and FEF5 update their respective documents.
  • a forwarding table that is, a forwarding entry corresponding to FEF1 is added to the respective packet forwarding table, including the correspondence between the MAC address of FEF1 and the FC-ID range of FEF1.
  • FCS1 is shown to notify the above information to FEF2, but actually FCS1 also notifies FEF3, FEF4 and FEF5.
  • this step may be various. For example, you can unicast each FEF or use a specific multicast address to multicast to all FEFs.
  • the notification of the content can be incremental, that is, only the changed part is notified, or it can be completely typed, that is, all the information is delivered. Different implementation methods may be different in specific steps, which are not listed here.
  • the purpose is to enable each FEF to dynamically obtain the forwarding information of the current network dynamically.
  • the embodiment does not limit the execution order of 603 and 604.
  • the two steps may be performed separately or simultaneously.
  • the FEF1 generates a forwarding entry of the packet forwarding table according to the forwarding information of the other FEFs.
  • the forwarding entry For the content of the specific forwarding entry, refer to the foregoing embodiment, and details are not described herein.
  • the server 1 sends a FIP VLAN discovery to the FEF1.
  • the server 1 sends a FIP FLOGI to the FEF1.
  • 606 ⁇ 608, and the subsequent 609 are the normal processes when the server 1 newly establishes a connection with FEF1, and will not be described in detail.
  • any node needs to send a FIP FLOGI message when establishing a connection with FEF.
  • the method for implementing FCoE in the embodiment of the present invention does not require any improvement at the node (ENode), so the flow of the execution of the server 1 is the same as the prior art.
  • the FEF1 replies to the FIP FLOGI ACC to the server 1 and carries the FC-ID and other information delivered by the server 1;
  • FEF1 will allocate an FC-ID to server 1 from the FC-ID range that FCS1 allocates for itself, that is, 1.1.0/16, assuming that the assigned server 1 has an FC-ID of 1.1.1.
  • FEF1 carries the FC-ID in the FIP FLOGI ACC and sends it to the server 1.
  • the FEF1 generates a forwarding entry in the packet forwarding table according to the FC-ID allocated to the server 1.
  • the forwarding entry includes "1.1.1 - Server 1 -MAC - 100".
  • the above 601 to 610 perform the flow of the control plane and the management plane.
  • the new node (server 1) and the new FEF (FEF1) are added to the network, and the FCS1 assigns the FC-ID to the new FEF1.
  • the FEF1 allocates the FC-ID to the server 1 from the FC-ID range.
  • the packet forwarding table is generated or updated on each FEF, and the FCoE packet is ready to be forwarded.
  • the FCoE packet is forwarded.
  • the packet forwarding process of the FCoE method in this embodiment is as follows:
  • the server 1 sends an FCoE packet to the FEF1.
  • the format and mechanism of the FCoE packet sent by the server 1 are the same as those in the prior art, and are not described in detail.
  • the packet includes: a source MAC address (that is, a MAC address of the server 1) and a destination MAC address (adjacent The FEF is the MAC address of FEF1), the source FC-ID (that is, the FC-ID of the server 1, 1.1.1), and the destination FC-ID (that is, the FC-ID of the memory 2, 1.4.1).
  • FIG. 8 is a schematic diagram of packet changes in a method for implementing FCoE according to an embodiment of the present invention, and FIG. 8 shows a part of content of a header in a FCoE in a forwarding process.
  • the FEF1 re-encapsulates the destination MAC address in the packet to the MAC address of the FEF4.
  • the FEF1 strips the outer Ethernet encapsulation and obtains the destination FC-ID in the packet. , ie 1.4.1; FEF1 looks up its own message forwarding table, and knows that the FC-ID range including 1.4.1 is 1.4.0/16, and the MAC address corresponding to 1.40/16 is
  • FEF4-MAC the purpose of the message is that the destination node corresponding to the FC-ID is located under FEF4. Therefore, FEF1 re-encapsulates the FCoE, sets the FEF4-MAC to the destination MAC address of the packet, and sets the source MAC address of the packet to the MAC address of FEF 1 itself.
  • the FEF1 sends the packet to the FEF4.
  • FEF1 sends the packet from port 1 to FEF4, and may pass other devices, including FEF5.
  • the FEF5 performs normal Layer 2 forwarding and continues to send the packet to FEF4.
  • Figure 3 FEF5 sends the message from port 300 to FEF4. Therefore, from Figure 8, the content of the message header does not change, that is, FEF5 does not make any changes to the message header.
  • the FEF4 changes the destination MAC address of the packet to the MAC address of the memory 2.
  • the FEF4 strips the outer Ethernet encapsulation and obtains the destination FC-ID address of the inner FC packet.
  • FEF4 searches for the forwarding entry in its own packet forwarding table to obtain the MAC address and local output port corresponding to the FC-ID. Take In FIG. 3, for example, FEF4 will obtain the MAC address of the destination MAC which is storage2, and the local output port is port 200, that is, the output of the message from the port 200 will reach the memory 2.
  • FEF4 re-encapsulates the FCoE and changes the source MAC address of the packet to its own MAC address, that is, FEF4-MAC, and changes the destination MAC address of the packet to the MAC address of the memory 2, that is, the memory 2-MAC. See Figure 8.
  • the FEF4 sends the message to the memory 2.
  • FEF4 sends the message to the memory 2 through the port 200. It should be noted that a network composed of multi-hop Ethernet switches can be used between FEF1 and FEF4 in this embodiment.
  • the FCS of the FCoE network may also send the following partition information, where the partition information is mainly used to notify a certain node in the FEF partition to allow communication with a certain node, for example, as shown in FIG. Zone X contains Serverl and storage2, then FCS will issue (1.1.1, 1.4.1, allowed) to FEF1 and FEF4 after the partition is activated.
  • the FEF may generate an access control list (ACL) according to the partition information that is sent.
  • the ACL is used to record the partition information, and is used to view the ACL when the FEF receives the packet.
  • the transmitting node and the receiving node are the nodes that can communicate in the same partition recorded in the ACL, and then continue to forward the packet. Otherwise, the packet cannot be forwarded.
  • FEF1 when FEF1 receives a packet from Server1 and looks up the packet forwarding table for forwarding, it needs to check whether the source and destination of the packet can be communicated according to the ACL generated by the partition information. Only when communication is allowed, Will be forwarded.
  • FIG. 9 is a schematic structural diagram of an FEF according to an embodiment of the present invention, which is used to implement the method for implementing FCoE according to any embodiment of FIG. 2, FIG. 3, FIG. 6, and FIG. The foregoing method embodiments.
  • the first FEF includes: an information receiving unit 91 and a forwarding table updating unit 92;
  • the information receiving unit 91 is configured to receive a first FC-ID range allocated by the FCS, and further receive, by the FCS, the forwarding information, where the forwarding information includes: a MAC address of another FEF, and the FCS is allocated to the other FEF Correspondence of the FC-ID range;
  • the forwarding table updating unit 92 is configured to update the packet forwarding table according to the forwarding information, where the packet forwarding table includes a correspondence between a medium access control MAC address and an FC-ID range; specifically, according to the forwarding information, Recording, in the packet forwarding table of the first FEF, a correspondence between a MAC address of the other FEF and an FC-ID range.
  • the FCS allocates a first FC-ID range for the first FEF when the first FEF is newly added to the FCoE network; the first FC-ID range is controlled by the first FEF, and is used for allocation and connection. a local node that is in the first FEF, that is, an ENode that accesses the first FEF.
  • the first FEF is a local node that accesses the first FEF from the first FC-ID.
  • an FC-ID is selected and assigned to the local node, and the FC-ID is mainly used for addressing and forwarding FCoE packets in the network.
  • the foregoing FC-ID range may be represented by multiple types, for example, by masking (1.1.0/16), or by consecutive n (from a certain FC-ID). 0).
  • the FCS allocates different FC-ID ranges for each FEF, that is, the FC-ID ranges of different FEFs cannot be overlapped; the FC-ID ranges do not overlap. It is the only one in the whole network. For details, see 201, and details are not described here.
  • the first FEF in addition to receiving the first FC-ID range allocated by the FCS, may further receive forwarding information sent by the FCS, where the forwarding information includes other The correspondence between the MAC address of the FEF and the FC-ID range assigned by the FCS to the other FEFs.
  • the forwarding information received by the information receiving unit 91 may be the first
  • the forwarding information of other FEFs that are stored in the FCS and existing in the FCoE network may also be the forwarding information of the new FEF in the FEF when the first FEF joins the FCoE network.
  • FIG. 10 is another schematic structural diagram of an FEF according to an embodiment of the present invention. As shown in FIG. 10, on the basis of the structure of FIG. 9, the first FEF further includes a request receiving unit 93 and an address allocating unit 94;
  • the request receiving unit 93 is configured to receive a connection request sent by the first local node
  • the address allocation unit 94 is configured to allocate, according to the connection request, the first FC-ID of the node from the first FC-ID range to the first local node;
  • the forwarding table update unit 92 is further configured to update the packet forwarding table according to the first node FC-ID, where the FEF updates the first FEF according to the first node FC-ID
  • the packet forwarding table specifically includes: the first FEF records, in the packet forwarding table of the first FEF, a correspondence between a MAC address of the first local node and a first node FC-ID.
  • the correspondence between the MAC address of the first local node and the first node FC-ID is recorded in the packet forwarding table of the first FEF, and may further include the first local node. Corresponding outgoing port.
  • the information receiving unit 91 is further configured to receive the exit information sent by the FCS, where the exit information includes a MAC address of the second FEF;
  • the forwarding table update unit 92 is further configured to: update the packet forwarding table of the first FEF according to the exit information; specifically, according to the exit information, from the packet forwarding table of the first FEF The forwarding entry corresponding to the MAC address of the second FEF is deleted.
  • the FEF may further include: a connection processing unit 95, configured to establish a connection with the FCS before the information receiving unit receives the first FC-ID range of the FCS allocation; specifically, according to the static configuration The address of the FCS is connected to the FCS; or the address of the FCS is obtained through a dynamic discovery manner, and a connection is established with the FCS.
  • a connection processing unit 95 configured to establish a connection with the FCS before the information receiving unit receives the first FC-ID range of the FCS allocation; specifically, according to the static configuration The address of the FCS is connected to the FCS; or the address of the FCS is obtained through a dynamic discovery manner, and a connection is established with the FCS.
  • each FEF newly joined to the network must first establish a connection with the FCS. Specifically, if the first FEF is newly added to the FCoE network, the first FEF first establishes a connection with the FCS, and then receives the first FC-ID range allocated by the FCS for the first “FEF”. Specifically, the first FEF may establish a connection relationship with the FCS by using TCP or UDP.
  • connection relationship may be established in a plurality of manners, including but not limited to: statically configuring the first FEF, where the first FEF establishes a connection with the FCS according to the statically configured address of the FCS; Obtaining an address of the FCS and establishing a connection with the FCS.
  • connection established between the first FEF and the FCS is usually a logical connection relationship, and may also be a physical direct connection.
  • the first FEF obtains the FC-ID range allocated by the FCS, and other
  • a packet forwarding table For the forwarding information of the FEF, a packet forwarding table can be established. For other FEFs, only the first FC-ID range allocated by the FCS to the FEF is obtained, and the corresponding forwarding entry can be added to the forwarding table. Compared with the prior art, it is required to recalculate the entire network route, and the generation of the packet forwarding table is simpler and faster, which improves the routing efficiency and simplifies the implementation of FCoE.
  • FIG. 11 is still another schematic structural diagram of an FEF according to an embodiment of the present invention, which is shown in FIG. 9 or 10.
  • the first FEF may further include: a message forwarding unit 96; the message forwarding unit 96 is configured to receive an FCoE message from the local node, and obtain the destination FC from the FCoE message. -ID; searching the packet forwarding table to obtain a MAC address of the destination FEF corresponding to the FC-ID according to the destination FC-ID; setting the MAC address of the destination FEF as the destination of the FCoE packet MAC address; and sending the FCoE message;
  • FIG. 11 is based on the FEF structure shown in FIG. 10.
  • the packet forwarding unit 96 may specifically include: an address obtaining subunit 961, a destination finding subunit 962, and a message processor. Unit 963 and message transmitting subunit 964; wherein
  • the address obtaining subunit 961 is configured to receive an FCoE packet from the local node, and obtain a destination FC-ID from the FCoE packet.
  • the first "FEF” is equivalent to the starting point FEF of the FCoE message.
  • the destination search sub-unit 962 is configured to search, according to the destination FC-ID, the MAC address of the destination FEF corresponding to the FC-ID by using the "3 ⁇ 4 text forwarding table";
  • the FCoE packet includes a source FC-ID, a destination FC-ID, a source MAC address, and a destination MAC address.
  • the source FC-ID is the FC-ID of the local node of the first FEF
  • the source MAC address is the MAC address of the local node of the first FEF
  • the destination FC-ID is the MAC address of the destination ENode
  • the address is the MAC address of the first FEF.
  • the text processing sub-unit 963 is configured to set a MAC address of the destination FEF as a destination MAC address of the FCoE packet;
  • the message sending subunit 964 is configured to send the FCoE message.
  • the starting point FEF has directly set the destination MAC address of the packet to the MAC address of the destination FEF, which is different from the prior art processing.
  • the FEF1 the FCF device in the prior art
  • the MAC address is sent to the FEF5, and then the FEF5 is decapsulated to find the MAC address of the next hop FEF through the destination FC-ID, and the destination MAC address of the FCoE packet is set to the MAC address of the FEF4, and sent to the FEF4;
  • the FCoE packet needs to be decapsulated from the ingress FEF, that is, the FEF1 to the egress FEF, that is, each hop that the FEF4 passes, that is, each intermediate FEF (the FCF device in the prior art), using the next hop MAC address. Routing, re-encapsulation process, packet forwarding processing is costly and inefficient.
  • the MAC address of the egress FEF can be found by the destination FC-ID, and the destination MAC address of the FCoE packet is directly set as the MAC address of the egress FEF, that is, The MAC address of the FEF4, the intermediate FEF is only forwarded, and the destination MAC address of the packet is not modified.
  • the decapsulation and encapsulation processing of the packet is not performed. For example, in the FEF5, only the destination MAC address in the packet is required.
  • FEF4-MAC directly outputs the packets from the corresponding port 300, so that FCoE packets can be easily and quickly forwarded.
  • the first FEF can obtain the packet forwarding table by acquiring the first FC-ID range allocated by the FCS and the forwarding information of other FEFs in the network. For other FEFs, only the FCS is required to be allocated to the new join. In the first FC-ID range of the first FEF of the FCoE network, the corresponding forwarding entry can be added to the packet forwarding table.
  • the control plane of the FCoE network is implemented more. Fast and simple, reducing the implementation complexity of the control plane.
  • the inbound FEF of the FCoE packet finds the MAC address of the egress FEF according to the destination FC-ID, and directly sets the destination MAC address of the FCoE packet, and the intermediate FEF only forwards the FCoE packet.
  • the packet forwarding processing of the FEF in this embodiment is low in cost and high in efficiency, and is not required to perform de-encapsulation and encapsulation processing on the FCoE packet.
  • FIG. 12 is a schematic structural diagram of an FCS according to an embodiment of the present invention.
  • the method for implementing FCoE according to the embodiment of FIG. 4 is implemented.
  • the FCS includes:
  • the address allocation unit 1201 is configured to allocate a first FC-ID range to the first FEF.
  • the information sending unit 1202 is configured to send the first FC-ID range and the forwarding information to the first FEF, so that the first FEF updates the packet forwarding of the first FEF according to the forwarding information.
  • the forwarding information includes: a MAC address of another FEF and a correspondence between the FCS and the FC-ID range allocated by the FCS to the other FEF, where the forwarding table includes a MAC address and an FC-ID range. Correspondence relationship.
  • the packet forwarding table of the first FEF according to the forwarding information, specifically: the first FEF, according to the forwarding information, in a forwarding table of the first FEF Corresponding relationships between the MAC addresses of the other FEFs and the FC-ID ranges of the other FEFs are recorded.
  • the FCS allocates a first FC-ID range for the first FEF when the first FEF is newly added to the FCoE network; the first FC-ID range is controlled by the first FEF, and is used for allocation and connection.
  • a local node that is in the first FEF that is, an ENode that accesses the first FEF.
  • the first FEF is a local node that accesses the first FEF from the first FC-ID.
  • an FC-ID is selected and assigned to the local node, and the FC-ID is mainly used for addressing and forwarding FCoE packets in the network.
  • the foregoing FC-ID range may be represented by multiple types, for example, to cover The way of the code indicates (1.1.0/16), or consecutive ⁇ ( ⁇ >0) from a certain FC-ID.
  • the FCS allocates different FC-ID ranges for each FEF, that is, the FC-ID ranges of different FEFs cannot be overlapped; the FC-ID ranges do not overlap. It is the only one in the whole network. For details, see 201, and details are not described here.
  • the first FEF in addition to receiving the first FC-ID range allocated by the FCS, may receive the forwarding information sent by the FCS, where the forwarding information includes The correspondence between the MAC address of the other FEF and the FC-ID range assigned by the FCS to the other FEFs.
  • the forwarding information received by the information receiving unit 91 may be forwarding information of other FEFs existing in the FCoE network that are saved by the FCS when the first FEF is newly added to the FCoE network, and may also be the foregoing After an FEF joins the FCoE network, when a new FEF joins, the forwarding information of the new FEF is added.
  • the information sending unit 1202 is further configured to send the first forwarding information corresponding to the first FEF to the other FEF, so that the other FEFs update the other FEF according to the first forwarding information.
  • the packet forwarding table includes: a correspondence between a MAC address of the first FEF and the first FC-ID range. Specifically, after the address allocation unit 1201 allocates the corresponding first Fibre Channel identifier FC-ID range to the first FEF, the information sending unit 1202 sends the first forwarding information corresponding to the first FEF to Said other FEF.
  • the FCS will also notify all FEFs in the network. Specifically, when the first FEF is newly added to the FCoE network, the FCS sends the first forwarding information corresponding to the first FEF to other FEFs other than the first FEF in the FCoE network, so that other FEFs are according to the foregoing
  • the forwarding information of the other FEF is updated by the forwarding information, and the first forwarding information includes a correspondence between the MAC address of the first FEF and the first FC-ID range. In this way, each FEF in the entire network can know the FC-ID range that is responsible for each, and this notification is specifically handled by the FCS.
  • the information sending unit 1202 is further configured to send the exit information to the first FEF, where the exit information includes a MAC address of the second FEF, so that the first FEF updates the location according to the exit information.
  • a packet forwarding table of the first FEF The first FEF, according to the exit information, updating the packet forwarding table of the first FEF, specifically: the first FEF deleting the second packet from the packet forwarding table of the first FEF.
  • the FCS of the embodiment sends a corresponding first FC-ID range to the first FEF, and sends forwarding information of other FEFs in the network to the first FEF, so that the first FEF can update the forwarding table according to the first FEF.
  • the corresponding forwarding entry is added to the packet forwarding table.
  • FIG. 13 is a schematic structural diagram of a hardware structure of an FEF according to an embodiment of the present invention.
  • the method for implementing FCoE according to any of the embodiments of FIG. 2, FIG. 3, FIG. 6 and FIG. 8 is implemented.
  • the first FEF may include a memory 1301, a processor 1302, a bus 1303, and a communication interface 1304.
  • the processor 1302 and the memory 1301 and the communication interface 1304 are connected by a bus 1303 and complete communication with each other.
  • the processor 1302 may be a single-core or multi-core central processing unit (CPU), or an application specific integrated circuit (ASIC), or one configured to implement an embodiment of the present invention. Or multiple integrated circuits.
  • the memory 1301 may be a high speed RAM memory or a non-volatile memory such as at least one disk memory.
  • the memory 1301 is configured to store program code, where the program code includes a computer operation instruction;
  • the processor 1302 executes a computer operation instruction to: receive, by using the communication interface 1304, a first FC-ID range allocated by the FCS and forwarding information sent by the FCS, where the forwarding information includes: a MAC address of another FEF and a Determining, by the FCS, the correspondence between the FC-ID ranges of the other FEFs, and updating the packet forwarding table of the first FEF according to the forwarding information, where the packet forwarding table includes a MAC address and an FC-ID range. Correspondence relationship;
  • the processor 1302 is specifically configured to record, according to the forwarding information, a correspondence between a MAC address of the other FEF and an FC-ID range in a packet forwarding table of the first FEF.
  • the memory 1301 may be further configured to store a packet forwarding table of the first FEF, as shown in Table 2.
  • the FCS allocates a first FC-ID range for the first FEF when the first FEF is newly added to the FCoE network; the first FC-ID range is controlled by the first FEF, and is used for allocation and connection.
  • a local node that is in the first FEF that is, an ENode that accesses the first FEF.
  • the first FEF is a local node that accesses the first FEF from the first FC-ID.
  • the foregoing FC-ID range may be represented by multiple types, for example, by masking (1.1.0/16), or by consecutive n (from a certain FC-ID). 0).
  • the FCS allocates different FC-ID ranges for each FEF, that is, the FC-ID ranges of different FEFs cannot be overlapped; the FC-ID ranges do not overlap. It is the only one in the whole network. For details, see 201, and details are not described here.
  • the first FEF may receive the forwarding information sent by the FCS, where the forwarding information includes the other ones, in the FCoE network, the first FEF, in addition to receiving the first FC-ID range allocated by the FCS.
  • the forwarding information received by the information receiving unit 91 may be forwarding information of other FEFs existing in the FCoE network that are saved by the FCS when the first FEF is newly added to the FCoE network, and may also be the foregoing After a FEF joins the FCoE network, when a new FEF joins, the new FEF forwards information.
  • the FCS will also notify all FEFs in the network. Specifically, when the first FEF is newly added to the FCoE network, the FCS sends the first forwarding information corresponding to the first FEF to other FEFs other than the first FEF in the FCoE network, so that other FEFs are The first forwarding information is used to update the forwarding table of the other FEFs, where the first forwarding information includes a correspondence between a MAC address of the first FEF and the first FC-ID range. In this way, each FEF in the entire network can know the FC-ID range that is responsible for each, and this notification is specifically handled by the FCS.
  • the processor 1302 is further configured to receive, by using the communication interface 1304, a connection request sent by the first local node, and allocate, according to the connection request, the first local node from the first FC-ID range.
  • the node FC-ID is updated according to the first node FC-ID, and the processor 1302 is configured to record the first local in the packet forwarding table of the first FEF. Correspondence between the MAC address of the node and the first node FC-ID.
  • the processor 1302 is further configured to receive, by using the communication interface 1304, the exit information sent by the FCS, where the exit information includes a MAC address of the second FEF, and update the report of the first FEF according to the exit information.
  • the forwarding table of the first FEF is updated according to the exit information, and the first FEF is deleted from the packet forwarding table of the first FEF.
  • the forwarding entry corresponding to the MAC address of the second FEF.
  • the processor 1302 is further configured to acquire the first FC-ID range allocated by the FCS
  • the connection to the FCS is established through the communication interface 1304.
  • the method includes: establishing a connection with the FCS according to the statically configured address of the FCS; or acquiring the address of the FCS by using a dynamic discovery manner, and the FCS establish connection.
  • each FEF newly joined to the network must first establish a connection with the FCS. Specifically, if the first FEF is newly added to the FCoE network, the first FEF first establishes a connection with the FCS, and then receives the first FC-ID range allocated by the FCS for the first “FEF”. Specifically, the first FEF may establish a connection relationship with the FCS by using TCP or UDP.
  • connection relationship may be established in a plurality of manners, including but not limited to: statically configuring the first FEF, where the first FEF establishes a connection with the FCS according to the statically configured address of the FCS; Obtaining an address of the FCS and establishing a connection with the FCS.
  • connection established between the first FEF and the FCS is usually a logical connection relationship, and may also be a physical direct connection.
  • the processor 1302 is further configured to: receive, by the communication interface 1304, an FCoE packet from the local node, and obtain a destination FC-ID from the FCoE packet; and find the 4 ⁇ according to the destination FC-ID.
  • the forwarding table obtains the MAC address of the destination FEF corresponding to the destination FC-ID; sets the MAC address of the destination FEF to the destination MAC address of the FCoE packet, and sends the FCoE packet.
  • processor 1302 can be used to execute the computer instructions in addition to the above-described method flow, so as to implement other steps in the method embodiment of the present invention, and details are not described herein again.
  • the first FEF can obtain the packet forwarding table by acquiring the first FC-ID range allocated by the FCS and the forwarding information of other FEFs in the network. For other FEFs, only the FCS is required to be allocated to the new join. In the first FC-ID range of the first FEF of the FCoE network, the corresponding forwarding entry can be added to the packet forwarding table.
  • the control plane of the FCoE network is implemented more. Fast and simple, reducing the implementation complexity of the control plane.
  • the inbound FEF of the FCoE packet finds the MAC address of the egress FEF according to the destination FC-ID, and directly sets the destination MAC address of the FCoE packet, and the intermediate FEF only forwards the FCoE packet.
  • the packet forwarding processing of the FEF in this embodiment is low in cost and high in efficiency, and is not required to perform de-encapsulation and encapsulation processing on the FCoE packet.
  • FIG. 14 is a schematic structural diagram of hardware of an FCS according to an embodiment of the present disclosure, where The method for implementing FCoE shown in FIG. 4, the working principle of which is described in the foregoing method embodiment.
  • the FCS may include: a memory 1401, a processor 1402, a bus 1403, and a communication interface 1404.
  • the processor 1402 and the memory 1301 and the communication interface 1404 are connected by a bus 1403 and complete communication with each other.
  • the processor 1402 may be a single-core or multi-core central processing unit (CPU), or an application specific integrated circuit (ASIC), or a one configured to implement an embodiment of the present invention. Or multiple integrated circuits.
  • the memory 1401 may be a high speed RAM memory or a non-volatile memory such as at least one disk storage device.
  • the memory 1401 is configured to store program code, where the program code includes a computer operation instruction;
  • the processor 1402 executes computer operation instructions to: allocate a first FC-ID range for the first FEF, and send the first FC-ID range and forwarding information to the first FEF via the communication interface 1404 And the packet forwarding table of the first FEF is updated by the first FEF, where the forwarding information includes: a MAC address of another FEF and a corresponding relationship between the FCS and the FC-ID range allocated by the FCS to the other FEFs.
  • the corresponding forwarding table includes a correspondence between a MAC address and an FC-ID range.
  • the memory 1401 is further configured to store the first FC-ID range.
  • the first FEF updates the packet forwarding table of the first FEF according to the forwarding information, specifically: the first FEF records the other FEF in the first FEF forwarding table. Correspondence between the MAC address and the FC-ID range.
  • the FCS allocates a first FC-ID range for the first FEF when the first FEF is newly added to the FCoE network; the first FC-ID range is controlled by the first FEF, and is used for allocation and connection.
  • a local node that is in the first FEF that is, an ENode that accesses the first FEF.
  • the first FEF is a local node that accesses the first FEF from the first FC-ID.
  • an FC-ID is selected and assigned to the local node, and the FC-ID is mainly used for addressing and forwarding FCoE packets in the network.
  • the foregoing FC-ID range may be represented by multiple types, for example, by masking (1.1.0/16), or by consecutive n (from a certain FC-ID). 0).
  • the FCS allocates different FC-ID ranges for each FEF, that is, the FC-ID ranges of different FEFs cannot be overlapped; the FC-ID ranges do not overlap. It is the only one in the whole network. For details, see 201, and details are not described here.
  • the first FEF in addition to receiving the first FC-ID range allocated by the FCS, may receive the forwarding information sent by the FCS, where the forwarding information includes The correspondence between the MAC address of the other FEF and the FC-ID range assigned by the FCS to the other FEFs.
  • the forwarding information received by the information receiving unit 91 may be forwarding information of other FEFs existing in the FCoE network that are saved by the FCS when the first FEF is newly added to the FCoE network, and may also be the foregoing After an FEF joins the FCoE network, when a new FEF joins, the forwarding information of the new FEF is added.
  • the processor 1402 is further configured to send, by using the communication interface 1404, the first forwarding information corresponding to the first FEF to the other FEF, so that the other FEF updates the other according to the first forwarding information.
  • the first forwarding information includes: a correspondence between a MAC address of the first FEF and the first FC-ID range.
  • the FCS will also notify all FEFs in the network. Specifically, when the first FEF is newly added to the FCoE network, the FCS sends the first forwarding information corresponding to the first FEF to other FEFs other than the first FEF in the FCoE network, so that other FEFs are according to the foregoing
  • the forwarding information of the other FEF is updated by the forwarding information, and the first forwarding information includes a correspondence between the MAC address of the first FEF and the first FC-ID range. In this way, each FEF in the entire network can know the FC-ID range that is responsible for each, and this notification is specifically handled by the FCS.
  • the processor 1402 is further configured to send the exit information to the first FEF, where the exit information includes a MAC address of the second FEF, so that the first FEF updates the first FEF according to the exit information.
  • the packet forwarding table wherein the first FEF updates the packet forwarding table of the first FEF according to the exit information, specifically: the packet forwarding table of the first FEF from the first FEF The forwarding entry corresponding to the MAC address of the second FEF is deleted.
  • processor 1402 can be used to execute the computer instructions in addition to the above-described method flow, so as to implement other steps in the method embodiment of the present invention, and details are not described herein again.
  • the FCS of the present embodiment by allocating the first FC-ID range to the first FEF, and transmitting the forwarding information of other FEFs in the network to the first FEF, so that the first FEF can update the text forwarding table according to the The corresponding forwarding entry is added to the forwarding table.
  • the control plane of the FCoE network is faster and simpler, and the implementation complexity of the control plane is reduced.
  • An embodiment of the present invention further provides a system for implementing Ethernet Fibre Channel FCoE, where the system includes two functional entities, FCS and FEF.
  • the FCS participates in the operation of the control plane and the management plane of the FCoE network, and does not participate in the forwarding of the data plane of the FCoE network.
  • the FEF is used to centrally control and manage the FEF, and send relevant signaling and parameters to the FEF.
  • the FEF is used to receive the control and management of the FCS, and receive the relevant signaling and parameters from the FCS. It is also used to generate a packet forwarding table.
  • the FCoE packet is forwarded according to the packet forwarding table, that is, the data plane of the FCoE network is completed. Forward.
  • the function and structure of the FEF are as described in any of the embodiments of Figs. 9 to 11 and Fig. 13 of the present invention; the function and structure of the FCS are as described in any of Figs. 12 and 14 of the present invention.
  • the FCS controls and manages the FEF, for example, to form Figure 1 or Figure 3 or other networking forms.
  • the structure and working principle of the FEF and the FCS can be combined with reference to the method embodiment and the device embodiment of the present invention, and details are not described herein again. As shown in FIG.
  • the first FEF newly added to the FCoE network establishes a connection with the FCS1 responsible for the main control, and obtains the first FC-ID range delivered by the FCS1, and also receives the forwarding information delivered by the FCS1, and the forwarding is performed.
  • the information includes: a MAC address of another FEF and a correspondence between the FCS and the FC-ID range allocated by the FCS; and the message forwarding table used for forwarding the message according to the forwarding information, specifically:
  • the first FEF records the correspondence between the MAC address of the other FEF and the FC-ID range in the packet forwarding table of the first FEF; and then forwards the FCoE packet according to the forwarding table.
  • the FCS1 may also send the first forwarding information corresponding to the first FEF to other FEFs other than the first FEF in the FCoE network, so that other FEFs update their message forwarding table according to the information, for example, adding the newly added ⁇ A forwarding entry corresponding to the FEF, where the forwarding entry includes a correspondence between a MAC address of the first FEF and a first FC-ID range.
  • the FCoE is implemented by the system.
  • the first FEF can obtain the packet forwarding table by obtaining the FC-ID range allocated by the FCS and the forwarding information of other FEFs in the network. For other FEFs, only the FCS is required to be added to the new join.
  • the first FC-ID range of the first FEF of the FCoE network can add a corresponding forwarding entry in the packet forwarding table.
  • the control plane of the FCoE network is implemented more. It is fast and simple, and reduces the implementation complexity of the control plane.
  • the FEF of the FCoE packet finds the MAC address of the egress FEF according to the destination FC-ID, and directly sets the FCoE packet as the destination.
  • the MAC address, the intermediate FEF forwards the FCoE packet only, and does not perform decapsulation and encapsulation processing.
  • the FCoE packet is hop-by-hop, decapsulated, and encapsulated. Text forwarding processing is costly and efficient.
  • the method includes the steps of the foregoing method embodiments; and the foregoing storage medium includes: a medium that can store program codes, such as a ROM, a RAM, a magnetic disk, or an optical disk.

Landscapes

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

Abstract

Provided are a method, device and system for realizing an FCoE. The method comprises: a first FEF acquiring a first fibre channel identifier (FC-ID) range allocated by an FCS; receiving forwarding information sent by the FCS, wherein the forwarding information comprises: a correlation between an MAC address of another FEF and the FC-ID range allocated to the other FEF by the FCS; and the first FEF updating a message forwarding table in accordance with the forwarding information, wherein the message forwarding table comprises a correlation between the media access control (MAC) address and the FC-ID range. The present invention enables the realization of an FCoE network to be much simpler.

Description

实现 FCoE的方法、 装置和系统  Method, device and system for implementing FCoE

技术领域 本发明涉及通信技术, 尤其涉及一种实现以太网光纤通道( fiber channel over ethernet, 简称: FCoE ) 的方法、 装置和系统。 背景技术 TECHNICAL FIELD The present invention relates to communications technologies, and in particular, to a method, apparatus, and system for implementing a fiber channel over ethernet (FCoE). Background technique

通过釆用 FCoE技术可以将光纤通道映射到以太网, 将光纤通道信息插 入以太网信息包内,从而让服务器 -SAN存储设备的光纤通道请求和数据可以 通过以太网连接来传输, 而无需专门的光纤通道结构。  By using FCoE technology, Fibre Channel can be mapped to Ethernet, Fibre Channel information can be inserted into Ethernet packets, allowing Fibre Channel requests and data from server-SAN storage devices to be transmitted over Ethernet connections without the need for specialized Fibre Channel structure.

在实现 FCoE的网络架构中, 主要由 FCoE转发器( FCoE forwarder, 简 称: FCF ) 负责 FCoE报文的转发, 即网络中的源设备发送的 FCoE报文, 需 要经过 FCF, FCF根据用于转发报文的路由表查找到报文的转发路径, 并将 报文转发至目的设备。 由于一个 FCF通常需要使用一个独立的域标识, 而域 ( domain )标识(identifier, 简称 ID ) 的数量是有限的, 所以整个网络规模 也受到 FCF数量的限制, 造成 FCF组网的扩展性差。 为此, 现有技术中引入 了一个新的功能实体, FCoE 数据平面转发器 (FCoE data-plane forwarder FCoE, 简称: FDF ) , 由 FCF控制 FDF进行转发, 使用 FCF和 FDF的组合 组网可以一定程度上减少 FCF的数量; 这种组合组网中, FCF会进行路由计 算并把相关信息下发给 FDF, FDF根据路由表查找转发路径来转发源设备至 目的设备的 FCoE报文。  In the FCoE network architecture, the FCoE forwarder (FCF) is responsible for forwarding FCoE packets. The FCoE packets sent by the source device in the network need to pass the FCF. The FCF is used to forward the packets. The routing table of the text finds the forwarding path of the packet and forwards the packet to the destination device. Since an FCF usually needs to use a separate domain identifier, and the number of domain identifiers (IDs) is limited, the entire network size is also limited by the number of FCFs, resulting in poor scalability of the FCF networking. To this end, a new functional entity, FCoE data-plane forwarder FCoE (FDF), is used in the prior art to be forwarded by the FCF, and the combination of FCF and FDF can be used. To reduce the number of FCFs in this way, the FCF performs route calculation and sends the related information to the FDF. The FDF forwards the FCoE packets from the source device to the destination device according to the routing table.

但是, 不论是 FCF的组网, 还是 FCF和 FDF的组合组网, 要实现 FCoE 报文的转发, 路由的计算和下发都十分复杂, 即 FCoE的控制平面实现复杂 度较高。 发明内容  However, whether it is the networking of FCF or the combination of FCF and FDF, the FCoE packet forwarding and routing are very complicated, that is, the control plane of FCoE is highly complex. Summary of the invention

本发明提供一种实现 FCoE的方法、装置和系统, 以降低 FCoE控制平面 的实现复杂度。  The present invention provides a method, apparatus and system for implementing FCoE to reduce the implementation complexity of the FCoE control plane.

第一方面, 提供一种实现以太网光纤通道 FCoE的方法, 应用于 FCoE 网络, 所述 FCoE网络包括: 光纤通道控制平面服务器 FCS以及至少一个光 纤通道边缘转发器 FEF,所述至少一个 FEF中包括第一 FEF; 所述方法包括: 所述第一 FEF接收所述 FCS分配的第一光纤通道标识 FC-ID范围;还接 收所述 FCS发送的转发信息, 所述转发信息中包括: 其他 FEF的介质访问控 制 MAC地址及所述 FCS分配给所述其他 FEF的 FC-ID范围的对应关系; 所述第一 FEF根据所述转发信息, 更新所述第一 FEF的报文转发表, 所 述才艮文转发表中包括 MAC地址与 FC-ID范围的对应关系; In a first aspect, a method for implementing Fibre Channel over Ethernet FCoE is provided for FCoE The FCoE network includes: a Fibre Channel Control Plane Server FCS and at least one Fibre Channel Edge Forwarder FEF, wherein the at least one FEF includes a first FEF; the method includes: the first FEF receiving the FCS allocation The first Fibre Channel identifies the FC-ID range; and further receives the forwarding information sent by the FCS, where the forwarding information includes: a medium access control MAC address of another FEF and an FC-ID allocated by the FCS to the other FEFs Corresponding relationship of the range; the first FEF, according to the forwarding information, updating a packet forwarding table of the first FEF, where the packet forwarding table includes a correspondence between a MAC address and an FC-ID range;

其中, 所述第一 FEF根据所述转发信息, 更新所述第一 FEF的报文转发 表, 具体包括: 所述第一 FEF根据所述转发信息, 在所述第一 FEF的报文转 发表中记录所述其他 FEF的 MAC地址及 FC-ID范围的对应关系。  And updating, by the first FEF, the packet forwarding table of the first FEF according to the forwarding information, specifically: the packet forwarding table of the first FEF according to the forwarding information by the first FEF The correspondence between the MAC address of the other FEF and the FC-ID range is recorded.

结合第一方面, 在第一种可能的实现方式中, 在所述第一 FEF获取所述 FCS分配的第一 FC-ID范围之后, 所述方法还包括: 所述第一 FEF接收第一 本地节点发送的连接请求; 所述第一 FEF根据所述连接请求, 从所述第一 FC-ID范围中为所述第一本地节点分配第一节点 FC-ID; 所述 FEF根据所述 第一节点 FC-ID, 更新所述第一 FEF的 ·艮文转发表; 其中, 所述 FEF根据所 述第一节点 FC-ID, 更新所述第一 FEF的报文转发表, 具体包括: 所述第一 FEF根据所述第一节点 FC-ID, 在所述第一 FEF的报文转发表中记录所述第 一本地节点的 MAC地址及所述第一节点 FC-ID的对应关系。  With reference to the first aspect, in a first possible implementation manner, after the first FEF acquires the first FC-ID range of the FCS allocation, the method further includes: the first FEF receiving the first local a connection request sent by the node; the first FEF allocates a first node FC-ID to the first local node from the first FC-ID range according to the connection request; the FEF is according to the first And updating, by the node FC-ID, the packet forwarding table of the first FEF, where the FEF updates the packet forwarding table of the first FEF according to the first node FC-ID, specifically: The first FEF records the correspondence between the MAC address of the first local node and the first node FC-ID in the packet forwarding table of the first FEF according to the first node FC-ID.

结合第一方面或第一方面的第一种可能的实现方式, 在第二种可能的实 现方式中, 所述方法还包括: 所述第一 FEF接收所述 FCS发送的退出信息, 所述退出信息中包括第二 FEF的 MAC地址; 所述第一 FEF根据所述退出信 息, 更新所述第一 FEF的报文转发表; 其中, 所述第一 FEF根据所述退出信 息, 更新所述第一 FEF的报文转发表, 具体包括: 所述第一 FE F根据所述退 出信息, 从所述第一 FEF的报文转发表中删除所述第二 FEF的 MAC地址对 应的转发表项。  With reference to the first aspect or the first possible implementation manner of the first aspect, in a second possible implementation manner, the method further includes: the first FEF receiving the exit information sent by the FCS, the exiting The information includes a MAC address of the second FEF, where the first FEF updates the packet forwarding table of the first FEF according to the exit information, where the first FEF updates the first information according to the exit information. The packet forwarding table of the FEF includes: deleting, by the first FE F, the forwarding entry corresponding to the MAC address of the second FEF from the packet forwarding table of the first FEF according to the exit information.

结合第一方面至第一方面的第二种可能的实现方式中的任一种, 在第三 种可能的实现方式中,在所述第一 FEF获取所述 FCS分配的第一光纤通道标 识 FC-ID范围之前, 所述方法还包括: 所述第一 FEF与所述 FCS建立连接; 所述第一 FEF与所述 FCS建立连接具体包括:所述第一 FEF被静态配置 FCS 地址, 并根据所述 FCS地址与所述 FCS建立连接; 或者, 所述第一 FEF通 过动态发现方式与所述 FCS建立连接。 With reference to any one of the first aspect to the second possible implementation manner of the first aspect, in a third possible implementation, the first Fibre Channel identifier FC of the FCS allocation is obtained in the first FEF Before the ID range, the method further includes: the first FEF establishing a connection with the FCS; the establishing, by the first FEF, the FCS is configured to: the first FEF is statically configured with an FCS address, and according to Establishing a connection between the FCS address and the FCS; or: the first FEF The dynamic discovery mode establishes a connection with the FCS.

结合第一方面至第一方面的第三种可能的实现方式中的任一种, 在第四 种可能的实现方式中, 所述方法还包括: 所述第一 FEF接收来自本地节点的 FCoE报文; 从所述 FCoE报文中获取目的 FC-ID; 所述第一 FEF根据所述目 的 FC-ID, 查找所述第一 FEF的报文转发表, 得到与所述目的 FC-ID对应的 目的 FEF的 MAC地址; 所述第一 FEF将所述目的 FEF的 MAC地址设置为 所述 FCoE报文的目的 MAC地址, 发送所述 FCoE报文。  With reference to the first aspect to any one of the third possible implementation manners of the first aspect, in a fourth possible implementation, the method further includes: the first FEF receiving an FCoE report from a local node Obtaining a destination FC-ID from the FCoE packet; the first FEF searches the packet forwarding table of the first FEF according to the destination FC-ID, and obtains a packet corresponding to the destination FC-ID. The MAC address of the destination FEF; the first FEF sets the MAC address of the destination FEF to the destination MAC address of the FCoE packet, and sends the FCoE packet.

第二方面, 提供一种实现以太网光纤通道 FCoE的方法, 应用于 FCoE 网络, 所述 FCoE网络包括光纤通道控制平面服务器 FCS以及至少一个光纤 通道边缘转发器 FEF, 所述至少一个 FEF中包括第一 FEF; 所述方法包括: 所述 FCS为所述第一 FEF分配第一光纤通道标识 FC-ID范围; 所述 FCS将所述第一 FC-ID范围、 以及转发信息发送至所述第一 FEF, 以使得所述第一 FEF根据所述转发信息更新所述第一 FEF的报文转发表; 所 述转发信息中包括: 其他 FEF的介质访问控制 MAC地址及所述 FCS分配给 所述其他 FEF的 FC-ID范围的对应关系; 所述 4艮文转发表中包括 MAC地址 与 FC-ID范围的对应关系。  In a second aspect, a method for implementing an Ethernet Fibre Channel FCoE is provided, which is applied to an FCoE network, where the FCoE network includes a Fibre Channel Control Plane Server FCS and at least one Fibre Channel Edge Forwarder FEF, where the at least one FEF includes a An FEF; the method includes: the FCS assigning a first Fibre Channel identification FC-ID range to the first FEF; the FCS transmitting the first FC-ID range, and forwarding information to the first And the FEF is configured to update the packet forwarding table of the first FEF according to the forwarding information, where the forwarding information includes: a media access control MAC address of another FEF, and the FCS is allocated to the other Correspondence of the FC-ID range of the FEF; the correspondence table of the MAC address includes the correspondence between the MAC address and the FC-ID range.

结合第二方面,在第一种可能的实现方式中,在所述 FCS为所述第 ― FEF 分配第一 FC-ID范围之后, 所述方法还包括: 所述 FCS将所述第一 FEF对应 的第一转发信息发送至所述其他 FEF, 以使得所述其他 FEF根据所述第一转 发信息更新所述其他 FEF的报文转发表, 所述第一转发信息中包括: 所述第 一 FEF的 MAC地址和所述第一 FC-ID范围的对应关系。  With reference to the second aspect, in a first possible implementation, after the FCS allocates the first FC-ID range to the first FEF, the method further includes: the FCS corresponding to the first FEF The first forwarding information is sent to the other FEF, so that the other FEFs update the packet forwarding table of the other FEF according to the first forwarding information, where the first forwarding information includes: the first FEF Correspondence between the MAC address and the first FC-ID range.

结合第二方面或第二方面的第一种可能的实现方式, 在第二种可能的实 现方式中, 所述方法还包括: 所述 FCS向所述第一 FEF发送退出信息, 所述 退出信息中包括第二 FEF的 MAC地址, 以使得所述第一 FEF根据所述退出 信息更新所述第一 FEF的报文转发表。  With reference to the second aspect or the first possible implementation manner of the second aspect, in a second possible implementation manner, the method further includes: sending, by the FCS, the exit information to the first FEF, the exit information The MAC address of the second FEF is included in the first FEF, so that the first FEF updates the packet forwarding table of the first FEF according to the exit information.

第三方面, 提供一种光纤通道边缘转发器 FEF, 包括:  In a third aspect, a Fibre Channel edge repeater FEF is provided, including:

信息接收单元, 用于接收光纤通道控制平面服务器 FCS分配的第一光纤 通道标识 FC-ID范围; 还接收所述 FCS发送的转发信息, 所述转发信息中包 括:其他 FEF的介质访问控制 MAC地址及所述 FCS分配给所述其他 FEF的 FC-ID范围的对应关系; 转发表更新单元,用于根据所述转发信息,更新所述 FEF的报文转发表, 所述报文转发表中包括 MAC地址与 FC-ID范围的对应关系; 具体用于根据 所述转发信息, 在所述 FEF的报文转发表中记录所述其他 FEF的 MAC地址 及 FC-ID范围的对应关系。 An information receiving unit, configured to receive a first Fibre Channel identification FC-ID range allocated by the Fibre Channel control plane server FCS; and further receive forwarding information sent by the FCS, where the forwarding information includes: a medium access control MAC address of another FEF Corresponding relationship between the FC-ID range allocated by the FCS to the other FEFs; a forwarding table update unit, configured to update, according to the forwarding information, a packet forwarding table of the FEF, where the packet forwarding table includes a correspondence between a MAC address and an FC-ID range; Corresponding relationship between the MAC address of the other FEF and the FC-ID range is recorded in the message forwarding table of the FEF.

结合第三方面, 在第一种可能的实现方式中, 还包括: 请求接收单元, 用于接收第一本地节点发送的连接请求; 地址分配单元, 用于根据所述连接 请求, 从所述第一 FC-ID范围中为所述第一本地节点分配第一节点 FC-ID; 所述转发表更新单元, 还用于根据所述第一节点 FC-ID, 更新所述 FEF的报 文转发表; 具体用于根据所述第一节点 FC-ID, 在所述 FEF的报文转发表中 记录所述第一本地节点的 MAC地址及所述第一节点 FC-ID的对应关系。  With reference to the third aspect, in a first possible implementation, the method further includes: a request receiving unit, configured to receive a connection request sent by the first local node, and an address allocation unit, configured to: according to the connection request, The first local node is allocated a first node FC-ID in an FC-ID range; the forwarding table update unit is further configured to update the FEF packet forwarding table according to the first node FC-ID Specifically, the mapping between the MAC address of the first local node and the first node FC-ID is recorded in the packet forwarding table of the FEF according to the first node FC-ID.

结合第三方面或第三方面的第一种可能的实现方式, 在第二种可能的实 现方式中, 所述信息接收单元, 还用于接收所述 FCS发送的退出信息, 所述 退出信息中包括第二 FEF的 MAC地址; 所述转发表更新单元, 还用于根据 所述退出信息, 更新所述第一 FEF的报文转发表; 具体用于根据所述退出信 息, 从所述第 ― FEF的报文转发表中删除所述第二 FEF的 MAC地址对应的 转发表项。  With the third aspect or the first possible implementation manner of the third aspect, in a second possible implementation manner, the information receiving unit is further configured to receive the exit information sent by the FCS, where the exit information is The forwarding table update unit is further configured to: update the packet forwarding table of the first FEF according to the exit information; specifically, according to the exit information, from the first The forwarding entry corresponding to the MAC address of the second FEF is deleted in the packet forwarding table of the FEF.

结合第三方面至第三方面的第二种可能的实现方式中的任一种, 在第三 种可能的实现方式中, 还包括: 连接处理单元, 用于与所述 FCS建立连接; 具体用于根据静态配置的 FCS地址与所述 FCS建立连接; 或者,通过动态发 现方式获取所述 FCS地址, 并与所述 FCS建立连接。  With reference to any one of the third aspect to the second possible implementation of the third aspect, in a third possible implementation, the method further includes: a connection processing unit, configured to establish a connection with the FCS; And establishing a connection with the FCS according to the statically configured FCS address; or acquiring the FCS address by using a dynamic discovery manner, and establishing a connection with the FCS.

结合第三方面至第三方面的第三种可能的实现方式中的任一种, 在第四 种可能的实现方式中, 还包括: 报文转发单元; 所述报文转发单元, 用于接 收来自本地节点的 FCoE报文, 并从所述 FCoE报文中获取目的 FC-ID; 根据 所述目的 FC-ID, 查找所述 FEF的报文转发表, 得到与所述目的 FC-ID对应 的目的 FEF的 MAC地址; 将所述目的 FEF的 MAC地址设置为所述 FCoE 报文的目的 MAC地址, 并发送所述 FCoE报文。  With reference to any one of the third aspect to the third possible implementation manner of the third aspect, in a fourth possible implementation, the method further includes: a packet forwarding unit, where the packet forwarding unit is configured to receive Obtaining an FCoE packet from the local node, and obtaining a destination FC-ID from the FCoE packet; searching for a packet forwarding table of the FEF according to the destination FC-ID, and obtaining a packet corresponding to the destination FC-ID The MAC address of the destination FEF, the MAC address of the destination FEF is set to the destination MAC address of the FCoE packet, and the FCoE packet is sent.

第四方面, 提供一种光纤通道控制平面服务器 FCS, 包括:  In a fourth aspect, a Fibre Channel control plane server FCS is provided, including:

地址分配单元, 用于为第一 FEF分配第一光纤通道标识 FC-ID范围; 信息发送单元, 用于将所述第一 FC-ID范围、 以及转发信息发送至所述 第一 FEF, 以使得所述第一 FEF根据所述转发信息更新所述第一 FEF的报文 转发表, 所述转发信息中包括: 其他 FEF的介质访问控制 MAC地址及所述 FCS分配给所述其他 FEF的 FC-ID范围的对应关系, 所述 4艮文转发表中包括 MAC地址与 FC-ID范围的对应关系。 An address allocation unit, configured to allocate a first Fibre Channel identification FC-ID range to the first FEF, and an information sending unit, configured to send the first FC-ID range, and forwarding information to the first FEF, so that Updating, by the first FEF, the packet of the first FEF according to the forwarding information a forwarding table, where the forwarding information includes: a media access control MAC address of another FEF, and a correspondence between the FC-ID range allocated by the FCS to the other FEF, where the forwarding table includes a MAC address and an FC - The correspondence of the ID range.

结合第四方面, 在第一种可能的实现方式中, 所述信息发送单元, 还用 于将所述第一 FEF对应的第一转发信息发送至所述其他 FEF, 以使得所述其 他 FEF根据所述第一转发信息更新所述其他 FEF的报文转发表,所述第一转 发信息中包括: 所述第 ― FEF的 MAC地址和所述第 ― FC-ID范围的对应关 系。  With reference to the fourth aspect, in a first possible implementation, the information sending unit is further configured to send the first forwarding information corresponding to the first FEF to the other FEF, so that the other FEF is configured according to The first forwarding information is used to update the packet forwarding table of the other FEF, where the first forwarding information includes: a correspondence between the MAC address of the first FEF and the first FC-ID range.

结合第四方面或第四方面的第一种可能的实现方式, 在第二种可能的实 现方式中, 所述信息发送单元, 还用于向所述第一 FEF发送退出信息, 所述 退出信息中包括第二 FEF的 MAC地址, 以使得所述第一 FEF根据所述退出 信息更新所述第一 FEF的报文转发表。  With reference to the fourth aspect, or the first possible implementation manner of the fourth aspect, in the second possible implementation, the information sending unit is further configured to send the exit information to the first FEF, where the exit information is The MAC address of the second FEF is included in the first FEF, so that the first FEF updates the packet forwarding table of the first FEF according to the exit information.

第五方面, 提供一种实现以太网光纤通道 FCoE的系统, 包括至少一个 本发明所述的光纤通道边缘转发器 FEF、 以及本发明所述的光纤通道控制平 面服务器 FCS。  In a fifth aspect, a system for implementing Fibre Channel over Ethernet FCoE is provided, comprising at least one Fibre Channel edge repeater FEF of the present invention, and a Fibre Channel Control Plane Server FCS of the present invention.

本发明提供的实现 FCoE的方法、 装置和系统的技术效果是: FCoE网络 中的至少一个 FEF中的第一 FEF ,该第一 FEF可以接收 FCS分配的第一 FC-ID 范围,还接收 FCS发送的转发信息,所述转发信息中包括:其他 FEF的 MAC 地址及 FCS分配给其他 FEF的 FC-ID范围的对应关系; 第一 FEF就可以据 此更新转发 FCoE报文所依据的报文转发表,在该报文转发表中记录 MAC地 址与 FC-ID范围的对应关系; 这种 ·艮文转发表的形成方式非常简单和快速, 相对于现有技术中的主控 FCS每次网络更新都要重新计算全网路由, 将使得 报文转发表的形成实现简单, FCoE网络的控制平面的实现更加简单, 降低了 FCoE控制平面的实现复杂度。 附图说明  The technical effect of the method, device and system for implementing FCoE provided by the present invention is: a first FEF in at least one FEF in the FCoE network, the first FEF can receive the first FC-ID range allocated by the FCS, and also receive the FCS transmission The forwarding information includes: a MAC address of another FEF and a correspondence between the FCS and the FC-ID range allocated by the FCS; the first FEF can update the packet forwarding table according to which the FCoE packet is forwarded. Recording the correspondence between the MAC address and the FC-ID range in the packet forwarding table; the manner of forming the forwarding table is very simple and fast, compared with the prior art master FCS every network update. To recalculate the entire network route, the formation of the packet forwarding table is simplified, and the implementation of the control plane of the FCoE network is simpler, which reduces the implementation complexity of the FCoE control plane. DRAWINGS

图 1为本发明实施例提供的一种 FCoE网络的组网架构示意图; 图 2为本发明实施例提供的实现 FCoE的方法流程图;  1 is a schematic diagram of a networking architecture of an FCoE network according to an embodiment of the present invention; FIG. 2 is a flowchart of a method for implementing FCoE according to an embodiment of the present invention;

图 3为本发明实施例提供的 FCoE网络的另一种组网架构示意图; 图 4为本发明实施例提供的另一实现 FCoE的方法流程图; 图 5为本发明实施例提供的又一实现 FCoE的方法流程图; 图 6为本发明实施例提供的实现 FCoE的方法的信令交互示意图; 图 7为本发明实施例提供的实现 FCoE的方法的报文转发示意图; 图 8为本发明实施例提供的实现 FCoE的方法中的报文变化示意图; 图 9为本发明实施例提供的 FEF的结构示意图; FIG. 3 is a schematic diagram of another networking architecture of an FCoE network according to an embodiment of the present invention; FIG. 4 is a flowchart of another method for implementing FCoE according to an embodiment of the present invention; FIG. 5 is a flowchart of a method for implementing FCoE according to an embodiment of the present invention; FIG. 6 is a schematic diagram of signaling interaction for implementing FCoE according to an embodiment of the present invention; FIG. 7 is a schematic diagram of a method for implementing FCoE according to an embodiment of the present invention; FIG. 8 is a schematic diagram of packet changes in a method for implementing FCoE according to an embodiment of the present invention; FIG. 9 is a schematic structural diagram of an FEF according to an embodiment of the present invention;

图 10为本发明实施例提供的 FEF的另一结构示意图;  FIG. 10 is another schematic structural diagram of an FEF according to an embodiment of the present disclosure;

图 11为本发明实施例提供的 FEF的又一结构示意图;  FIG. 11 is still another schematic structural diagram of an FEF according to an embodiment of the present invention;

图 12为本发明实施例提供的 FCS的结构示意图;  FIG. 12 is a schematic structural diagram of an FCS according to an embodiment of the present disclosure;

图 13为本发明实施例提供的 FEF的实体结构示意图;  FIG. 13 is a schematic structural diagram of an entity structure of an FEF according to an embodiment of the present disclosure;

图 14为本发明实施例提供的 FCS的实体结构示意图。 具体实施方式  FIG. 14 is a schematic diagram of an entity structure of an FCS according to an embodiment of the present invention. detailed description

参见图 1 , 为本发明实施例提供的一种 FCoE网络的组网架构示意图, 本 发明实施例提供了一种实现 FCoE的方法,可基于图 1所示的 FCoE网络组网 架构。 如图 1所示, 所述 FCoE网络中包括光纤通道控制平面服务器(FC control-plane server, 简称: FCS )和光千通道边缘转发器 ( FC edge forwarder, 简称: FEF ) 两种功能实体, 其中:  FIG. 1 is a schematic diagram of a networking architecture of an FCoE network according to an embodiment of the present invention. The embodiment of the present invention provides a method for implementing FCoE, which may be based on the FCoE network networking architecture shown in FIG. As shown in FIG. 1 , the FCoE network includes two functional entities: a Fibre Channel Control Plane Server (FCCS) and an FC Edge Forwarder (FEF).

FCS参与 FCoE网络的控制平面和管理平面的运作,不参与 FCoE网络的 数据平面的转发; 用于集中控制和管理 FEF, 下发相关信令和参数给 FEF。  The FCS participates in the operation of the control plane and the management plane of the FCoE network, and does not participate in the forwarding of the data plane of the FCoE network. It is used to centrally control and manage the FEF, and send relevant signaling and parameters to the FEF.

FEF用于接收 FCS的控制和管理, 从 FCS接收相关的信令和参数; 还用 于生成报文转发表, 根据该报文转发表进行 FCoE报文的转发, 即完成 FCoE 网络的数据平面的转发。  The FEF is used to receive the control and management of the FCS, and receive the relevant signaling and parameters from the FCS. It is also used to generate a packet forwarding table, and forward the FCoE packet according to the packet forwarding table, that is, complete the data plane of the FCoE network. Forward.

图 1中, FCS1下管理 4个 FEF, 但具体实施中并不限制 FEF的数量和 拓朴结构, 该 FCS1可以通过普通以太交换机 ( switch )或其他设备与各 FEF 连接。 服务器 1 ( Serverl )和存储器 2 ( storage2 ) 均是传统的 FCoE终端节 点 ( end node, 简称 ENode ) , ENode节点是网络中以 FCoE方式转发 4艮文的 节点设备,例如可以是服务器控制器局域网络( controller area network , 简称: CAN ) 网卡, FCoE交换机, 支持 FCoE的存储设备等。 ENode节点与 FEF 相连接时, ENode节点的端口称为 VN端口 (VN port ) , FEF的端口称为 VF端口 (VF port ) , 该 VN端口和 VF端口之间可以通过 FCoE初始化协议 (FCoE initialization protocol, 简称 FIP) 进行初始化连接。 In Figure 1, four FEFs are managed under the FCS1. However, the number and topology of the FEFs are not limited in the specific implementation. The FCS1 can be connected to each FEF through a common Ethernet switch or other device. Both the server 1 (Server1) and the storage 2 (storage2) are traditional FCoE end nodes (ENodes), and the ENode nodes are node devices in the network that forward FCoE in the FCoE mode, for example, the server controller local area network. (controller area network, abbreviation: CAN) NIC, FCoE switch, FCoE-enabled storage devices, etc. When the ENode node is connected to the FEF, the port of the ENode node is called a VN port (VN port), and the port of the FEF is called a VF port (VF port). The FCoE initialization protocol can be adopted between the VN port and the VF port. (FCoE initialization protocol, FIP for short) Initialize the connection.

以图 1所示的组网为例, 本发明实施例所述的实现 FCoE的方法包括: 各个 FEF, 具体为 FEF1、 FEF2、 FEF3和 FEF4, 与负责主控制的 FCS1建立 连接, 并根据 FCS1下发的相关信息生成用于转发报文的报文转发表, 然后 根据报文转发表转发 FCoE报文,这样, 图 1所示的 FCoE网络才能够执行转 发 FCoE报文的功能。 若图 1所示的 FCoE网络中, 有新的 FEF加入, 例如 FEF5要力口入, 该网络中的各个 FEF, 具体为 FEF1、 FEF2、 FEF3和 FEF4, 的报文转发表将进行更新; 或者, 有新的 ENode加入, 则该新的 ENode所连 接的 FEF的报文转发表也需要更新, 并根据更新后的转发表进行报文转发。  The method for implementing the FCoE according to the embodiment of the present invention includes: Each FEF, specifically FEF1, FEF2, FEF3, and FEF4, establishes a connection with the FCS1 responsible for the main control, and is based on the FCS1. The related information is sent to generate a packet forwarding table for forwarding packets, and then the FCoE packet is forwarded according to the packet forwarding table. Therefore, the FCoE network shown in Figure 1 can perform the function of forwarding FCoE packets. If a new FEF is added to the FCoE network shown in Figure 1, for example, the FEF5 is required to be inbound, and the packet forwarding table of each FEF in the network, specifically FEF1, FEF2, FEF3, and FEF4, is updated; If a new ENode is added, the packet forwarding table of the FEF connected to the new ENode needs to be updated, and the packet is forwarded according to the updated forwarding table.

接下来, 在本发明实施例中, 将结合图 1所示的 FCoE网络的组网架构 示意图, 详细说明如何实现 FCoE, 包括控制平面和数据平面; 例如控制平面 的报文转发表的生成, 数据平面的 FCoE报文的转发。  Next, in the embodiment of the present invention, a schematic diagram of the networking architecture of the FCoE network shown in FIG. 1 is used to describe how to implement FCoE, including a control plane and a data plane; for example, a packet forwarding table of the control plane is generated, and data is generated. Forwarding of flat FCoE packets.

图 2为本发明实施例提供的实现 FCoE的方法流程图, 如图 2所示, 该 方法可以包括:  2 is a flowchart of a method for implementing FCoE according to an embodiment of the present invention. As shown in FIG. 2, the method may include:

201、第一 FEF接收 FCS为所述第 ― FEF分配的第一光纤通道标识( fiber channel identifier, 简称: FC-ID ) 范围; 还接收 FCS发送的转发信息, 所述 转发信息中包括:其他 FEF的介质访问控制( media access control,简称 MAC ) 地址及所述 FCS分配给所述其他 FEF的 FC-ID范围的对应关系;  201. The first FEF receives the first fiber channel identifier (FC-ID) range allocated by the FCS to the first FEF; and further receives the forwarding information sent by the FCS, where the forwarding information includes: another FEF a media access control (MAC) address and a correspondence between the FCS and the FC-ID range allocated by the FCS to the other FEFs;

本实施例中 , FCoE网络的任一 FEF在新加入该 FCoE网络时,都会接收 所述 FCS为自己分配的 FC-ID范围; 每个 FEF获得的 FC-ID范围, 主要用 于分配给接入该 FEF的 ENode; FC-ID则主要用于 FCoE报文在网络中的寻 址转发。  In this embodiment, any FEF of the FCoE network receives the FC-ID range allocated by the FCS when it newly joins the FCoE network; the FC-ID range obtained by each FEF is mainly used for allocation to the access. The ENode of the FEF; the FC-ID is mainly used for addressing and forwarding FCoE packets in the network.

可选的, 上述的 FC-ID范围的表示方式可以有多种, 例如, 以掩码的方 式表示 ( 1.1.0/16 ) , 或者是从某个 FC-ID开始的连续 n个( n>0 ) , 例如, 殳某个 FC-ID范围是( 1.1.1 10 ) , 这就表示该 FC-ID范围是从 1.1.1这 个 FC-ID开始的连续的 10个, 即 1.1.1、 1.1.2、 1.1.3 1.1.10。 具体实施中 可能还有其他表示方式, 并不局限于上述举例。  Optionally, the foregoing FC-ID range may be represented by multiple types, for example, by masking ( 1.1.0/16 ), or by consecutive n starting from a certain FC-ID (n> 0) , for example, 殳 an FC-ID range is ( 1.1.1 10 ), which means that the FC-ID range is 10 consecutive from the FC-ID of 1.1.1, ie 1.1.1, 1.1 .2, 1.1.3 1.1.10. There may be other representations in the specific implementation, and are not limited to the above examples.

此外 , 假设 FCoE网络中有多个 FEF时, FCS为每个 FEF分配的 FC-ID 范围是不同的, 即不同的 FEF被分配的 FC-ID范围不能重叠。 更具体的, 当 FCoE网络中有一个 FCS时,该 FCS下的各 FEF被分配的 FC-ID范围不能重 叠; 当 FCoE网络中有多个 FCS时, 不同的 FCS之间所控制的 FC-ID范围也 不能重叠, 即分别属于不同 FCS的各 FEF被分配的 FC-ID范围不能重叠,该 FC-ID范围不重叠指的是全网唯一。 In addition, assuming that there are multiple FEFs in the FCoE network, the FCS allocates different FC-ID ranges for each FEF, that is, the FC-ID ranges to which different FEFs are allocated cannot overlap. More specifically, when there is an FCS in the FCoE network, the FC-ID range of each FEF under the FCS cannot be assigned. When there are multiple FCSs in the FCoE network, the FC-ID ranges controlled by different FCSs cannot overlap, that is, the FC-ID ranges assigned to the FEFs belonging to different FCSs cannot be overlapped. The FC-ID The non-overlapping range means that the whole network is unique.

实现 FC-ID范围不重叠的方式可以有多种, 以下列举几种但具体实施中 并不局限于此: 例如, 以一个 FCS为例, 该 FCS上可以记录哪些 FC-ID范围 已经被分配, 则下次再为其他 FEF分配 FC-ID范围时, 这些已经使用过的将 不会再次被分配, 所以单个 FCS还是很容易控制不重叠的。 另外, 以网络中 有两个 FCS为例, 殳存在 FCS1和 FCS2, 则为了保证这两个 FCS分配的 FC-ID范围不重叠, 可以釆用如下方式:  There are several ways to achieve non-overlapping FC-ID ranges. The following are several examples, but the specific implementation is not limited to this: For example, with an FCS as an example, which FC-ID range can be recorded on the FCS, Then, when the FC-ID range is assigned to other FEFs next time, these used ones will not be allocated again, so a single FCS is still easy to control without overlapping. In addition, taking two FCSs in the network as an example, if FCS1 and FCS2 exist, in order to ensure that the FC-ID ranges allocated by the two FCSs do not overlap, the following methods can be used:

例如,可以在这两个 FCS1和 FCS2上预先配置其各自所能控制的 FC-ID 资源, 比如, 没整个 FC-ID资源为一个资源池, 可以配置 FCS1负责控制 该资源池中的第一部分 FC-ID资源, 则后续 FCS1在为其下属的各 FEF分配 FC-ID范围时, 就是从该第一部分 FC-ID资源中选择分配; 而配置 FCS2负 责控制该资源池中的第二部分 FC-ID资源,则后续 FCS2在为其下属的各 FEF 分配 FC-ID范围时,就是从该第二部分 FC-ID资源中选择分配,这样两个 FCS 之间就不会有重叠。  For example, the FC-ID resources that can be controlled by each of them can be pre-configured on the two FCS1 and FCS2. For example, if the entire FC-ID resource is not a resource pool, FCS1 can be configured to control the first part of the FC in the resource pool. -ID resource, the subsequent FCS1 allocates the FC-ID range to each of its subordinate FEFs, and selects the allocation from the first part of the FC-ID resource; and the configuration FCS2 is responsible for controlling the second part of the FC-ID in the resource pool. For the resource, the subsequent FCS2 allocates the FC-ID range for each of its subordinate FEFs, and then selects the allocation from the second part of the FC-ID resource, so that there is no overlap between the two FCSs.

又例如, 可以使得 FCS1和 FCS2之间存在交互信令, 通过该交互信令共 享各自的 FC-ID范围分配信息, 比如, FCS1为其下属的某个 FEF分配了第 ― FC-ID范围后,会将该第一 FC-ID范围通过交互信令通知 FCS2,这样 FCS2 就可以知道第一 FC-ID范围已经在 FCS1被使用,则 FCS2在为其下属的 FEF 分配时就不会再使用该第一 FC-ID范围。同理, FCS2也会将其分配过的 FC-ID 范围通知 FCS1 , 两个 FCS之间的信息交互可以避免 FC-ID范围的重复分配。  For example, the interaction signaling between the FCS1 and the FCS2 may be shared, and the FC-ID range allocation information is shared by the interaction signaling. For example, after the FCS1 allocates the FC-ID range to a certain FEF of the subordinate. The first FC-ID range will be notified to FCS2 by interactive signaling, so that FCS2 can know that the first FC-ID range has been used in FCS1, and FCS2 will not use the first one when it is allocated to its subordinate FEF. A range of FC-IDs. Similarly, FCS2 will also notify FCS1 of its assigned FC-ID range, and the information exchange between the two FCSs can avoid the repeated allocation of the FC-ID range.

再例如, 假设 FCS 1和 FCS2在为各自的 FEF分配 FC-ID范围时, 都是 从 FC-ID资源池 (例如是个 FC-ID数据库 ) 中选择某个 FC-ID范围分配, 则 FCS1在分配后可以将已经分配过的 FC-ID范围做上标记,该标记用于表示这 个 FC-ID范围已经被分配, 则 FCS2在从 FC-ID资源池选择要分配的 FC-ID 范围时, 会查看标记, 如果已经有标记的将不会使用, 只会使用没有标记的 即未被分配过的 FC-ID范围进行分配。  For another example, suppose FCS 1 and FCS2 select an FC-ID range allocation from the FC-ID resource pool (for example, an FC-ID database) when allocating FC-ID ranges for their respective FEFs, then FCS1 is allocated. The FC-ID range that has already been assigned can be marked later to indicate that the FC-ID range has been assigned, and FCS2 will view the FC-ID range to be assigned when selecting from the FC-ID resource pool. The tag, if it is already marked, will not be used, it will only be allocated using the un-allocated FC-ID range.

本实施中 , FCS在获知第一 FEF新加入 FCoE网络时,会为所述第一 FEF 分配第一 FC-ID范围, 并且 FCS会记录所述第 ― FEF对应的第一转发信息, 所述第一转发信息包括所述第一 FEF的 MAC地址和所述第一 FC-ID范围的 对应关系。 In this implementation, when the first FFE is added to the FCoE network, the FCS allocates a first FC-ID range to the first FEF, and the FCS records the first forwarding information corresponding to the first FEF. The first forwarding information includes a correspondence between a MAC address of the first FEF and the first FC-ID range.

所述第 ― FC-ID范围由所述第 ― FEF控制,用于分配给接入所述第 ― FEF 的本地节点, 即接入所述第一 FEF的 ENode; 具体的, 所述第一 FEF为每个 接入所述第 ― FEF的本地节点, 从所述第 ― FC-ID范围中选择一个 FC-ID , 分配给该本地节点。  The first FC-ID range is controlled by the first FEF, and is used to allocate to the local node that accesses the first FEF, that is, the ENode that accesses the first FEF; specifically, the first FEF For each local node accessing the first FEF, an FC-ID is selected from the first FC-ID range and allocated to the local node.

此外, FCS给所述第一 FEF分配的所述第一 FC-ID范围, 可以是 FCS 随机选择的, 或者按照某种规则策略选择的, 本发明实施例不做限制。  In addition, the first FC-ID range allocated by the FCS to the first FEF may be randomly selected by the FCS, or may be selected according to a certain rule policy, which is not limited in the embodiment of the present invention.

本实施中, 所述第一 FEF还接收所述 FCS发送的转发信息, 所述转发信 息中包括: 其他 FEF的 MAC地址及所述 FCS分配给所述其他 FEF的 FC-ID 范围的对应关系。  In this implementation, the first FEF further receives the forwarding information sent by the FCS, where the forwarding information includes: a MAC address of another FEF and a correspondence between the FCS and the FC-ID range allocated by the FCS to the other FEF.

具体的 , 当所述第一 FEF新加入 FCoE网络时 , 若 FCoE网络中已存在 其他 FEF, 所述第一 FEF, 除了接收 FCS分配的所述第一 FC-ID范围, 还接 收所述 FCS发送的转发信息, 所述转发信息可以存储在 FCS上, FCS在获知 所述第一 FEF新加入网络时, 就将所述转发信息发送给所述第一 FEF; 所述 的转发信息与所述第一 FC-ID范围, 可以携带在同一个消息里发送给所述第 一 FEF, 也可以通过不同的消息分别发送给所述第一 FEF。 此外, 在所述第 一 FEF加入 FCoE网络后 , 若又有新的 FEF加入 FCoE时 , 所述第一 FEF接 收所述 FCS发送的转发信息, 即接收所述 FCS发送的新的 FEF对应的转发 信息 , 包括新的 FEF的 MAC地址和所述 FCS为所述新的 FEF分配的 FC-ID 范围的对应关系。  Specifically, when the first FEF is newly added to the FCoE network, if there are other FEFs in the FCoE network, the first FEF receives the FCS transmission in addition to receiving the first FC-ID range allocated by the FCS. Forwarding information, the forwarding information may be stored in the FCS, and the FCS sends the forwarding information to the first FEF when the first FEF newly joins the network; the forwarding information and the first An FC-ID range may be carried in the same message and sent to the first FEF, or may be sent to the first FEF through different messages. In addition, after the first FEF is added to the FCoE network, if a new FEF is added to the FCoE, the first FEF receives the forwarding information sent by the FCS, that is, receives the forwarding corresponding to the new FEF sent by the FCS. The information includes a MAC address of the new FEF and a correspondence of the FC-ID range allocated by the FCS to the new FEF.

例如图 1中, H殳 FCS1获知 FEF1新加入 FCoE网络, 为 FEF1分配的 FC-ID范围为 "1.1.0/16" , 并且 FCS1上保存的分配给其他 FEF的 FC-ID范 围如下面的表 1所示,则 FEF1接收到的转发信息包括" FEF2-MAC, 1.2.0/16"、 "FEF3-MAC, 1.3.0/16" 和 "FEF4-MAC, 1.4.0/16" , 也即 FCS1将网络中 的其他 FEF所对应的 FC-ID范围都通知 FEF 1。 当然 , FEF2〜FEF4的 FC-ID 范围也是 FEF2〜FEF4在加入网络时由 FCS1分配的 , FCS1会将其分配给每 个 FEF的 FC-ID范围都进行记录, 即记录 FEF的 MAC地址与 FC-ID范围的 对应关系, 如下表 1所示。 FEF及其 FC-ID范围 For example, in Figure 1, H殳FCS1 knows that FEF1 is newly added to the FCoE network, and the FC-ID range allocated for FEF1 is "1.1.0/16", and the FC-ID range allocated to FCS1 for other FEFs is as follows. As shown in Figure 1, the forwarding information received by FEF1 includes "FEF2-MAC, 1.2.0/16", "FEF3-MAC, 1.3.0/16" and "FEF4-MAC, 1.4.0/16", that is, FCS1 notifies FEF 1 of the FC-ID range corresponding to other FEFs in the network. Of course, the FC-ID range of FEF2~FEF4 is also allocated by FCS1 when FEF2~FEF4 is added to the network. FCS1 will record the FC-ID range assigned to each FEF, that is, record the MAC address of FEF and FC-. The correspondence between ID ranges is shown in Table 1 below. FEF and its FC-ID range

Figure imgf000011_0001
Figure imgf000011_0001

202、 所述第一 FEF根据所述转发信息, 更新所述第一 FEF的报文转发 表, 所述报文转发表中包括介质访问控制 MAC地址与 FC-ID范围的对应关 系;  202. The first FEF updates a packet forwarding table of the first FEF according to the forwarding information, where the packet forwarding table includes a correspondence between a medium access control MAC address and an FC-ID range.

所述 ·艮文转发表中包括 MAC地址与 FC-ID范围的对应关系; 更进一步 的, 所述报文转发表中还可以对应的出端口。 其中, 所述第一 FEF根据所述 转发信息, 更新所述第一 FEF的报文转发表, 具体包括: 所述第一 FEF根据 所述转发信息, 在所述第一 FEF的 ·艮文转发表中记录所述其他 FEF的 MAC 地址及 FC-ID范围的对应关系。 进一步地, 还可以包括与所述其他 FEF对应 的出端口。  The packet forwarding table includes a correspondence between a MAC address and an FC-ID range. Further, the packet forwarding table may further correspond to an egress port. And updating, by the first FEF, the packet forwarding table of the first FEF according to the forwarding information, specifically: the first FEF is in the first FEF according to the forwarding information The correspondence between the MAC address of the other FEF and the FC-ID range is recorded in the publication. Further, an egress port corresponding to the other FEFs may also be included.

此外 , 当 FCS所记录的各个 FEF的 MAC地址与 FC-ID范围的对应关系 发生变化时, FCS也将通知网络中的所有 FEF。 具体的, 当第一 FEF新加入 FCoE网络时, FCS会将该第一 FEF对应的第一转发信息发送至 FCoE网络中 除该第一 FEF之外的其他 FEF, 以使得其他 FEF根据所述第一转发信息更新 所述其他 FEF的报文转发表,所述第一转发信息中包括所述第 ― FEF的 MAC 地址和所述第一 FC-ID范围的对应关系。 这样, 可以使全网中的各 FEF知道 各自负责的 FC-ID范围, 而这个通知具体由 FCS负责。  In addition, when the correspondence between the MAC address of each FEF recorded by the FCS and the FC-ID range changes, the FCS will also notify all FEFs in the network. Specifically, when the first FEF is newly added to the FCoE network, the FCS sends the first forwarding information corresponding to the first FEF to other FEFs other than the first FEF in the FCoE network, so that other FEFs are according to the foregoing The forwarding information of the other FEF is updated by the forwarding information, and the first forwarding information includes a correspondence between the MAC address of the first FEF and the first FC-ID range. In this way, each FEF in the entire network can know the FC-ID range that is responsible for each, and this notification is specifically handled by the FCS.

例如图 1所示, 当 FEF1新加入网络, FCS1为该 FEF1分配对应的 FC-ID 范围后, FCS1也会将该 FEF1对应的转发信息, 即 FEF1的 MAC地址及其 FC-ID范围的对应关系, 通知给其他 FEF, 比如 FEF2、 FEF3和 FEF4, 使得 全网中的各 FEF知道各自负责的 FC-ID范围, 而这个通知由 FCS1负责。  For example, as shown in Figure 1, after FEF1 is added to the network and FCS1 allocates the corresponding FC-ID range for the FEF1, FCS1 also forwards the forwarding information corresponding to FEF1, that is, the MAC address of FEF1 and its FC-ID range. , notify other FEFs, such as FEF2, FEF3, and FEF4, so that each FEF in the entire network knows the FC-ID range that each is responsible for, and this notification is handled by FCS1.

进一步地, 在所述第一 FEF接收所述 FCS分配的第一 FC-ID范围之后, 所述方法还包括: 所述第一 FEF接收第一本地节点发送的连接请求; 所述第 一 FEF根据所述连接请求, 从所述第一 FC-ID范围中为所述第一本地节点分 配第一节点 FC-ID; 所述 FEF根据所述第一节点 FC-ID, 更新所述第一 FEF 的报文转发表; 具体地, 所述第一 FEF根据所述第一节点 FC-ID, 在所述第 ― FEF的报文转发表中记录所述第一本地节点的 MAC地址及所述第一节点 FC-ID的对应关系; 进一步地, 还可以记录所述第一本地节点对应的出端口。 Further, after the first FEF receives the first FC-ID range that is allocated by the FCS, the method further includes: the first FEF receiving a connection request sent by a first local node; The connection request, the first node is assigned a first node FC-ID from the first FC-ID range; the FEF updates the first FEF according to the first node FC-ID a packet forwarding table. Specifically, the first FEF records, according to the first node FC-ID, a MAC address of the first local node in the packet forwarding table of the first FEF, and the first Corresponding relationship of a node FC-ID; further, an egress port corresponding to the first local node may also be recorded.

如下以图 1中 FEF1下连接的服务器 1为例进行说明: 当服务器 1接入 FEF1时, 向 FEF1发送连接请求, 例如, FIP FLOGI ( fabric login, 交换网登 录)消息, 收到该连接请求的 FEF1将会从 FCS1分配给 FEF1的 FC-ID范围 中选择一个未分配的 FC-ID,分配给服务器 1,可以将为服务器 1分配的 FC-ID 称为节点 FC-ID。 服务器 1除了具有节点 FC-ID外, 还具有一个标识, 即全 球唯一名字 (world wide name, 简称: WWN ) , 该 WWN是 64bit, 其作用 是为了身份识别和安全控制, 类似于介质访问控制 (media access control, 简 称: MAC ) , 但不用于转发寻址。  The server 1 connected to the FEF1 in FIG. 1 is taken as an example. When the server 1 accesses the FEF1, a connection request is sent to the FEF1, for example, a FIP FLOGI (clothing login) message, and the connection request is received. FEF1 will select an unassigned FC-ID from the FC-ID range allocated by FCS1 to FEF1, and assign it to server 1. The FC-ID assigned to server 1 can be referred to as the node FC-ID. In addition to the node FC-ID, the server 1 has an identifier, which is a world wide name (WWN). The WWN is 64 bits, and its role is for identity and security control, similar to media access control ( Media access control, referred to as MAC), but not for forwarding addressing.

更进一步地, 当第二 FEF退出 FCoE网络时 , FCS也会通知 FCoE网络 中剩余的 FEF, 以使得剩余的 FEF更新报文转发表。 可选地, 所述方法还包 括: 所述第一 FEF接收所述 FCS发送的退出信息, 所述退出信息中包括第二 FEF的 MAC地址; 所述第一 FEF根据所述退出信息, 更新所述第一 FEF的 报文转发表; 具体地, 所述第一 FEF根据所述退出信息, 从所述第一 FEF的 报文转发表中删除所述第二 FEF的 MAC地址对应的转发表项。  Further, when the second FEF exits the FCoE network, the FCS also notifies the remaining FEFs in the FCoE network, so that the remaining FEFs update the message forwarding table. Optionally, the method further includes: the first FEF receiving the exit information sent by the FCS, where the exit information includes a MAC address of the second FEF, and the first FEF is updated according to the exit information. Deleting a packet forwarding table of the first FEF; specifically, the first FEF deletes, according to the exit information, a forwarding entry corresponding to the MAC address of the second FEF from the packet forwarding table of the first FEF .

可选地, 在步骤 201之前, 所述第一 FEF与所述 FCS建立连接。 由于 FCS负责对 FCoE网络中各 FEF进行控制和管理,因此每个新加入网络的 FEF 首先要与 FCS建立连接。 具体地, 若所述第一 FEF新加入 FCoE网络时, 所 述第一 FEF首先与所述 FCS建立连接, 再接收所述 FCS为所述第一 FEF分 配的第一 FC-ID范围。 具体地, 所述第一 FEF可以通过传输控制协议  Optionally, before step 201, the first FEF establishes a connection with the FCS. Since the FCS is responsible for controlling and managing each FEF in the FCoE network, each newly joined FEF must first establish a connection with the FCS. Specifically, if the first FEF is newly added to the FCoE network, the first FEF first establishes a connection with the FCS, and then receives the first FC-ID range that the FCS allocates for the first FEF. Specifically, the first FEF may pass a transmission control protocol.

( transmission control protocol,简称: TCP )或者用户数据包十办议 ( user datagram protocol, 简称: UDP )与所述 FCS建立连接关系。  (Transmission control protocol, abbreviated as: TCP) or a user datagram protocol (abbreviation: UDP) establishes a connection relationship with the FCS.

这种连接关系的建立可以通过多种方式, 包括:  This connection can be established in a variety of ways, including:

对所述第一 FEF进行静态配置, 所述第一 FEF根据静态配置的 FCS的 地址与所述 FCS建立连接; 或者,  Statically configuring the first FEF, where the first FEF establishes a connection with the FCS according to the address of the statically configured FCS; or

通过动态发现方式获取所述 FCS的地址, 并与所述 FCS建立连接; 具体 地, 由所述第一 FEF发送广播或者组播报文, 所述 FCS进行应答; 或者, 所 述 FCS可以周期性的发送组播 /广播通告告知网络其所控制的 FEF,所述 FCS 的地址或标识。 Obtaining, by the dynamic discovery mode, the address of the FCS, and establishing a connection with the FCS; specifically, sending, by the first FEF, a broadcast or a multicast packet, where the FCS responds; or, the FCS may periodically Sending a multicast/broadcast notification to the network to control the FEF it controls, the FCS Address or logo.

需要说明的是, 所述第一 FEF与 FCS之间建立的连接, 通常是逻辑上的 连接关系, 当然也可以是物理直连。  It should be noted that the connection established between the first FEF and the FCS is usually a logical connection, and may of course be a physical direct connection.

以图 1为例, FEF1新力口入 FCoE网络, FCSl ^1其他 FEF, 比如 FEF2、 FEF3和 FEF4的转发信息发送给 FEF1 ,使得 FEF1才艮据 FEF2、 FEF3和 FEF4 的转发信息更新 FEF1的报文转发表。此外, FEF1接收本地节点, 即 Server 1 的连接请求, FEF 1从其 FC-ID范围,即 1.1.0/16中为 Server 1分配节点 FC-ID, 例如 1.1.1 ,然后更新 FEF1的报文转发表。如下的表 2示出了 FEF1的报文转 发表: As shown in Figure 1, the FEF1 new port is added to the FCoE network, and the FCS1^ 1 other FEFs, such as FEF2, FEF3, and FEF4, are sent to FEF1, so that FEF1 updates the FEF1 message according to the forwarding information of FEF2, FEF3, and FEF4. Forwarding table. In addition, FEF1 receives the local node, that is, the connection request of Server 1, and FEF 1 assigns the node FC-ID to Server 1 from its FC-ID range, that is, 1.1.0/16, for example, 1.1.1, and then updates the FEF1 message. Forwarding table. Table 2 below shows the message forwarding table of FEF1:

表 2 FEF1的 4艮文转发表  Table 2 FEF1 4 text forwarding table

Figure imgf000013_0001
参见上述的表 2所示, 第 2〜5行中的每一行都可以称为一条转发表项, 每个转发表项包括: 其他 FEF的 MAC地址、 FC-ID范围和出端口的对应关 系。 例如, 第 2行中的 "1.2.0/16 FEF2-MAC 1" , 其中的 1.2.0/16是
Figure imgf000013_0001
As shown in Table 2 above, each of the rows 2 to 5 can be referred to as a forwarding entry. Each forwarding entry includes: MAC address of another FEF, FC-ID range, and correspondence of outgoing ports. For example, in the second line, "1.2.0/16 FEF2-MAC 1", where 1.2.0/16 is

FEF2的 FC-ID范围 , FEF2-MAC是 FEF2的 MAC地址, 1是用于将报文输 出至 FEF2的出端口, 参见图 1中的 FEF1上的圓圈 1 , 表示该出端口。 表 2 中的第 5行的转发表项是 FEF1根据为本地节点,即 Serverl分配的节点 FC-ID 生成的。 该转发表项包括: 本地节点的 MAC地址、 节点 FC-ID和出端口的 对应关系, 具体如表 2中的第 5行所示 "1.1.1 Serverl-MAC 100" 。 The FC-ID range of FEF2, FEF2-MAC is the MAC address of FEF2, and 1 is the outgoing port for outputting the message to FEF2. See circle 1 on FEF1 in Figure 1 for the outgoing port. The forwarding entry in line 5 of Table 2 is generated by FEF1 based on the node FC-ID assigned to the local node, Server1. The forwarding entry includes: the MAC address of the local node, the correspondence between the node FC-ID and the egress port, as shown in the fifth line in Table 2, "1.1.1 Serverl-MAC 100".

通常, 上述的报文转发表中的输出端口, 是由 FEF通过数据平面地址学 习得到的。 如果出端口没有学习到, 那么可以为空。 在这种情况下, 发送的 报文就会遵从通常的二层转发技术, 作为未知单播来处理, 通常会使用洪泛 的方法。  Usually, the output port in the above packet forwarding table is learned by the FEF through the data plane address. If the out port is not learned, it can be empty. In this case, the sent packets will follow the usual Layer 2 forwarding technology and will be treated as unknown unicast, usually using a flooding method.

此外, 图 1所示的网络中的各个 FEF上均生成各自的 4艮文转发表,例如, 对于 FEF2,其在新加入该网络中时,可以是接收了 FCS1发给它的关于 FEF3 和 FEF4的转发信息,所以 FEF2上的报文转发表中生成有对应 FEF3和 FEF4 的转发表项,当 FEF1新加入该网络后, FCS1将 FEF1的转发信息(包括 FEF1 的 MAC地址及其对应的 FC-ID范围 )通知 FEF2, FEF2将在其报文转发表 中增加对应该 FEF 1的转发表项即可。 当 FEF2下没有连接的本地节点时 , 其 报文转发表中可以暂没有本地节点对应的转发表项。 In addition, each of the FEFs in the network shown in FIG. 1 generates a respective forwarding table, for example, For the FEF2, when it is newly added to the network, it may receive the forwarding information about the FEF3 and the FEF4 sent by the FCS1. Therefore, the forwarding entry corresponding to FEF3 and FEF4 is generated in the packet forwarding table on the FEF2. After FEF1 is added to the network, FCS1 notifies FEF2 of the forwarding information of FEF1 (including the MAC address of FEF1 and its corresponding FC-ID range). FEF2 adds the forwarding entry corresponding to FEF 1 in its packet forwarding table. can. When there is no local node connected to the FEF2, the forwarding entry corresponding to the local node may not be available in the packet forwarding table.

进一步地, 每个 FEF可以根据自己的报文转发表转发 FCoE报文。 所述 方法还可以包括:  Further, each FEF can forward FCoE packets according to its own packet forwarding table. The method can also include:

所述第 ― FEF接收来自本地节点的 FCoE报文, 并从所述 FCoE报文中 获取目的 FC-ID;  The first FEF receives the FCoE packet from the local node, and obtains the destination FC-ID from the FCoE packet;

所述第一 FEF根据所述目的 FC-ID, 查找所述第一 FEF的报文转发表, 得到与所述目的 FC-ID对应的目的 FEF的 MAC地址;  The first FEF searches the packet forwarding table of the first FEF according to the destination FC-ID, and obtains a MAC address of the destination FEF corresponding to the destination FC-ID;

所述第 ― FEF将所述目的 FEF的 MAC地址设置为所述 FCoE报文的目 的 MAC地址 , 发送所述 FCoE报文。  The first FEF sets the MAC address of the destination FEF to the destination MAC address of the FCoE packet, and sends the FCoE packet.

举例来说, 参见图 1 , 以服务器 1发送 FCoE报文给存储器 2为例, 来说 明该组网中的各个 FEF如何进行 FCoE报文转发; 其中, 服务器 1是连接在 FEF1下的节点, FEF1分配给该服务器 1的 FC-ID是 1.1.1 , 如表 2所示, 在 For example, referring to FIG. 1, the server 1 sends an FCoE message to the memory 2 as an example to describe how each FEF in the network performs FCoE packet forwarding. The server 1 is a node connected to the FEF1, FEF1. The FC-ID assigned to this server 1 is 1.1.1, as shown in Table 2,

FEF1的报文转发表中, 其转发表项包括 " 1.1.1 Server 1 -MAC 100; 而 存储器 2是连接在 FEF4下的节点,假设 FEF4分配给该存储器 2的 FC-ID是 1.4.1 ; 在 FEF4上的报文转发表中, 其转发表项包括 In the packet forwarding table of the FEF1, the forwarding entry includes "1.1.1 Server 1 - MAC 100; and the memory 2 is a node connected to the FEF4. It is assumed that the FC-ID allocated by the FEF4 to the memory 2 is 1.4.1; In the packet forwarding table on FEF4, its forwarding entries include

"1.4.1—— storge2-MAC—— 200。首先,服务器 1将 FCoE报文发送至 FEF1 , FEF 1从所述 FCoE报文中获取目的 MAC地址, 发现所述目的 MAC地址是 FEF1的 MAC地址, 则 FEF1对所述 FCoE报文进行解封装, 从所述 FCoE 报文中获取目的 FC-ID,所述目的 FC-ID是 1.4.1 ; FEF1根据所述目的 FC-ID, 即 1.4.1 , 查找 FEF1的报文转发表,得到与所述目的 FC-ID对应的目的 MAC 地址为 FEF4-MAC , 对应的出端口为端口 100 , 则 FEF 1将 FEF4-MAC作为 所述 FCoE报文的目的 MAC地址, 并进行封装, 然后将 FCoE报文从端口 1 发出。 FEF4收到所述 FCoE报文后 , 获取所述 FCoE报文的目的 MAC, 发现 该目的 MAC是 FEF4的 MAC地址, 则 FEF4对所述 FCoE报文进行解封装, 从所述 FCoE报文中获取到目的 FC-ID为 1.4.1 ; FEF4根据所述目的 FC-ID , 即 1.4.1 , 查询 FEF4的报文转发表, 得到与所述目的 FC-ID, 即 1.4.1 , 对应 的目的 MAC地址是 storge2-MAC , 对应的出端口为端口 200 , 则 FEF4使用 storge2-MAC作为所述 FCoE报文的目的 MAC地址 , 并进行 FCoE封装 , 然 后 FEF4将 FCoE 4艮文由端口 200发送到存储器 2。 "1.4.1 - storge2-MAC - 200. First, the server 1 sends the FCoE message to the FEF1, and the FEF 1 obtains the destination MAC address from the FCoE message, and finds that the destination MAC address is the MAC address of the FEF1. The FEF1 decapsulates the FCoE packet, and obtains the destination FC-ID from the FCoE packet. The destination FC-ID is 1.4.1. The FEF1 is based on the destination FC-ID, that is, 1.4.1. The FEF1 packet forwarding table is searched for, and the destination MAC address corresponding to the destination FC-ID is FEF4-MAC, and the corresponding egress port is port 100, and FEF 1 uses FEF4-MAC as the FCoE packet. The MAC address is encapsulated, and then the FCoE packet is sent from the port 1. After receiving the FCoE packet, the FEF4 obtains the destination MAC address of the FCoE packet, and finds that the destination MAC address is the MAC address of the FEF4, and the FEF4 pair The FCoE packet is decapsulated, and the destination FC-ID is obtained from the FCoE packet as 1.4.1; and the FEF4 is configured according to the destination FC-ID. That is, 1.4.1, query the message forwarding table of FEF4, and obtain the destination MAC address corresponding to the destination FC-ID, namely 1.4.1, which is storge2-MAC, and the corresponding outgoing port is port 200, then FEF4 uses storge2- The MAC is used as the destination MAC address of the FCoE packet and is FCoE encapsulated. Then, the FEF4 sends the FCoE packet from the port 200 to the memory 2.

进一步的, 某个 FEF与 FCS之间可能还经过某个或某些 FEF, 即组网中 可以包括 FEF级联的拓朴, 例如图 3所示, 为本发明实施例提供的 FCoE网 络的另一种组网架构示意图, FEF4通过 FEF5连接到 FCS。 例如,接入 FEF1 的服务器 1需要与接入 FEF4的存储器 2通信,那么服务器 1发送给存储器 2 的 FCoE报文需要经过 FEF5才能到达 FEF4 , 此时 FEF5可以称为中间 FEF。 当 FEF5接收到所述 FCoE报文 , FEF5获取所述 FCoE报文的目的 MAC地址 , 为 FEF4-MAC, FEF5确定所述 FCoE报文的目的 MAC不是 FEF5的 MAC 地址, 则 FEF5不对所述 FCoE报文进行解封装, 而是直接转发所述 FCoE报 文至 FEF4。  Further, the FEF and the FCS may also pass through some or some of the FEFs, that is, the topology of the FEF cascading may be included in the networking, for example, as shown in FIG. 3, which is another FCoE network provided by the embodiment of the present invention. A schematic diagram of a networking architecture. FEF4 is connected to the FCS through FEF5. For example, the server 1 that accesses the FEF1 needs to communicate with the memory 2 that accesses the FEF4. Then, the FCoE message sent by the server 1 to the memory 2 needs to pass through the FEF5 to reach the FEF4, and the FEF5 can be called the intermediate FEF. When the FEF5 receives the FCoE packet, the FEF5 obtains the destination MAC address of the FCoE packet, and is the FEF4-MAC. The FEF5 determines that the destination MAC address of the FCoE packet is not the MAC address of the FEF5, and the FEF5 does not report the FCoE packet. The packet is decapsulated, and the FCoE packet is directly forwarded to FEF4.

需要说明的是, 图 3所示一级级联结构仅作为一个示例, 实际部署中可 以釆用二级或多级级联结构, 本发明对级联的级数不做限制。 本实施例中实 现 FCoE的方法,当第一 FEF新加入 FCoE网络时,第一 FEF只需要接收 FCS 为该第一 FEF分配 FC-ID范围, 并接收网络中其他 FEF的转发信息, 该第一 FEF就可以据此建立报文转发表了, 对于其他 FEF也是, 只需要 FCS将分配 给新加入 FCoE网络的第一 FEF的第一 FC-ID范围通知其他 FEF , 其他 FEF 在其转发表上增加该第一 FEF对应的转发表项即可, 相对于现有技术需要重 新计算全网路由来说, 报文转发表的生成更加简单和快速, 提高了路由效率, 简化了 FCoE的实现。  It should be noted that the first-level cascading structure shown in FIG. 3 is only used as an example. In the actual deployment, a two-level or multi-level cascading structure may be used. The present invention does not limit the number of cascading stages. In the method of implementing FCoE in this embodiment, when the first FEF is newly added to the FCoE network, the first FEF only needs to receive the FCS to allocate the FC-ID range for the first FEF, and receive forwarding information of other FEFs in the network, where the first The FEF can establish a packet forwarding table accordingly. For other FEFs, the FCS only needs to notify other FEFs of the first FC-ID range allocated to the first FEF newly added to the FCoE network. Other FEFs are added on the forwarding table. The forwarding entry corresponding to the first FEF can be used. Compared with the prior art, the generation of the packet forwarding table is simpler and faster, and the routing efficiency is improved, and the FCoE implementation is simplified.

图 4为本发明实施例提供的另一实现 FCoE的方法流程图, 本实施例中 实现 FCoE的方法由 FCS执行, 本实施例仅做简单说明, 具体可以结合图 2 实施例所述方法。 如图 4所示, 所述方法可以包括:  FIG. 4 is a flowchart of another method for implementing FCoE according to an embodiment of the present invention. The method for implementing the FCoE in this embodiment is performed by the FCS, and the embodiment is only briefly described. As shown in FIG. 4, the method may include:

401、 FCS为第一 FEF分配第一 FC-ID范围;  401. The FCS allocates a first FC-ID range to the first FEF.

本实施例中 ,任一 FEF在新加入该 FCoE网络时 , 所述 FCS都会 FEF为 分配一个 FC-ID范围;每个 FEF获得的 FC-ID范围,主要用于分配给接入该 FEF的 ENode; FC-ID则主要用于 FCoE报文在网络中的寻址转发。  In this embodiment, when any FEF is newly added to the FCoE network, the FCS allocates an FC-ID range, and the FC-ID range obtained by each FEF is mainly used to allocate to the ENode accessing the FEF. The FC-ID is mainly used for addressing and forwarding FCoE messages in the network.

具体的, 第一 FEF新加入 FCoE网络时, FCS为所述第 ― FEF分配第一 FC-ID范围; 所述第 ― FC-ID范围由所述第 ― FEF控制, 用于分配给接入第 ― FEF的本地节点, 即接入第一 FEF的 ENode; 具体的, 所述第一 FEF为每 个接入所述第 ― FEF的本地节点从所述第 ― FC-ID范围中选择一个 FC-ID分 配给该本地节点。 Specifically, when the first FEF is newly added to the FCoE network, the FCS allocates the first number to the first FEF. The FC-ID range is controlled by the first-FEF, and is used for the local node that accesses the first FEF, that is, the ENode that accesses the first FEF. Specifically, the first The FEF allocates an FC-ID from the first FC-ID range to the local node for each local node accessing the first FEF.

FC-ID范围的表示方式可以有多种,例如,以掩码的方式表示( 1.1.0/16 ) , 或者是从某个 FC-ID开始的连续 n个(η>0 ) , 例如, 假设某个 FC-ID范围 ( 1.1.1 10 ) , 这就表示该 FC-ID范围是从 1.1.1这个 FC-ID开始的连续 的 10个, 即 1.1.1、 1.1.2、 1.1.3 1.1.10。 具体实施中可能还有其他表示方 式, 并不局限于上述举例。  The FC-ID range can be expressed in various ways, for example, by masking ( 1.1.0/16 ), or by n consecutive n (n > 0) from a certain FC-ID, for example, assuming An FC-ID range (1.1.10 10), which means that the FC-ID range is 10 consecutive from the FC-ID of 1.1.1, ie 1.1.1, 1.1.2, 1.1.3 1.1 .10. There may be other representations in the specific implementation, and are not limited to the above examples.

此外, 假设 FCoE网络中有多个 FEF时, FCS为每个 FEF分配的 FC-ID 范围是不同的, 即不同的 FEF被分配的 FC-ID范围不能重叠。 更具体的, 当 FCoE网络中有一个 FCS时,该 FCS下的各 FEF被分配的 FC-ID范围不能重 叠; 当 FCoE网络中有多个 FCS时, 不同的 FCS之间所控制的 FC-ID范围也 不能重叠, 即分别属于不同 FCS的各 FEF被分配的 FC-ID范围不能重叠,该 FC-ID范围不重叠指的是全网唯一。  In addition, assuming that there are multiple FEFs in the FCoE network, the FC-ID range allocated by the FCS for each FEF is different, that is, the FC-ID ranges of different FEFs cannot be overlapped. More specifically, when there is an FCS in the FCoE network, the FC-ID ranges allocated by the FEFs under the FCS cannot overlap; when there are multiple FCSs in the FCoE network, the FC-IDs controlled between different FCSs The range cannot overlap, that is, the FC-ID ranges assigned to the FEFs belonging to different FCSs cannot be overlapped, and the FC-ID range not overlapping means that the entire network is unique.

实现 FC-ID范围不重叠的方式可以有多种, 具体可参见 201 , 在此不再 赘述。  There are a plurality of ways in which the FC-ID ranges are not overlapped. For details, refer to 201, which is not described here.

402、 所述 FCS将所述第一 FC-ID范围和转发信息发送至第一 FEF, 以 使得所述第一 FEF根据所述转发信息更新所述第一 FEF的报文转发表; 所述 转发信息中包括:其他 FEF的 MAC地址及所述 FCS分配给所述其他 FEF的 FC-ID范围的对应关系; 所述报文转发表中包括介质访问控制 MAC地址与 FC-ID范围的对应关系。  The FCS sends the first FC-ID range and the forwarding information to the first FEF, so that the first FEF updates the packet forwarding table of the first FEF according to the forwarding information; The information includes: a correspondence between the MAC address of the other FEF and the FC-ID range allocated by the FCS to the other FEFs; the packet forwarding table includes a correspondence between the medium access control MAC address and the FC-ID range.

进一步的 , 当 FCoE网络中还有除该第一 FEF之外的其他 FEF时 , FCS 还会将其他 FEF对应的转发信息发送至所述第一 FEF; 该转发信息中包括其 他 FEF的 MAC地址及 FCS分配给所述其他 FEF的 FC-ID范围的对应关系; 所述转发信息可以存储在 FCS上, FCS在获知所述第一 FEF新加入网络时, 就将所述转发信息发送给所述第一 FEF。该其他 FEF可以是在第一 FEF之前 加入网络的 FEF, 也可以是在该第一 FEF之后加入网络的 FEF; 例如, 在所 述第 ― FEF加入 FCoE网络后 , 若有新的 FEF加入 FCoE时 , 所述第 ― FEF 接收的所述 FCS发送的转发信息, 即为新加入 FEF的转发信息。 举例如下: 参见图 1 , FCS1在获知 FEF1新加入 FCoE网络时, 为 FEF1 分配对应的 FC-ID范围即 "1.1.0/16" , 并将 FCoE网络中的其他 FEF (比如 FEF2、 FEF3和 FEF4 )分别对应的转发信息 (比如包括 MAC地址及其负责 的 FC-ID范围 )发送至 FEF1 , 以使得 FEF1据此生成报文转发表, 并根据所 述报文转发表转发 FCoE报文。 Further, when there are other FEFs other than the first FEF in the FCoE network, the FCS sends the forwarding information corresponding to the other FEFs to the first FEF; the forwarding information includes the MAC addresses of other FEFs and Corresponding relationship of the FC-ID range allocated by the FCS to the other FEFs; the forwarding information may be stored in the FCS, and the FCS sends the forwarding information to the first when the first FEF is newly added to the network. An FEF. The other FEF may be an FEF that joins the network before the first FEF, or may be an FEF that joins the network after the first FEF; for example, after the first FEF joins the FCoE network, if a new FEF joins the FCoE The forwarding information sent by the FCS received by the first FEF is the forwarding information newly added to the FEF. For example: Referring to Figure 1, when FCS1 learns that FEF1 is newly added to the FCoE network, it allocates the corresponding FC-ID range of FEF1 to "1.1.0/16" and other FEFs in the FCoE network (such as FEF2, FEF3, and FEF4). The corresponding forwarding information (such as the MAC address and the FC-ID range it is responsible for) is sent to the FEF1, so that the FEF1 generates a packet forwarding table according to the packet, and forwards the FCoE packet according to the packet forwarding table.

此外, FCS也会将新加入网络的第一 FEF对应的第一转发信息发送至所 述其他 FEF, 以使得所述其他 FEF根据所述第一转发信息更新所述其他 FEF 的报文转发表, 所述第一转发信息中包括所述第一 FEF的 MAC地址和所述 第一 FC-ID范围的对应关系。 这样, 可以使全网中的各 FEF知道各自负责的 FC-ID范围, 而这个通知具体由 FCS负责。  In addition, the FCS also sends the first forwarding information corresponding to the first FEF that is newly added to the network to the other FEF, so that the other FEFs update the packet forwarding table of the other FEF according to the first forwarding information. The first forwarding information includes a correspondence between a MAC address of the first FEF and the first FC-ID range. In this way, each FEF in the entire network can know the FC-ID range that is responsible for each, and this notification is specifically handled by the FCS.

例如, 图 1中 FCS1也会将 FEF1的 MAC地址及其对应的 FC-ID范围, 通知至 FCoE网络中的其他 FEF,以使得其他 FEF更新其自身的报文转发表, 比如在报文转发表中增加一个对应该 FEF1的转发表项。  For example, FCS1 in Figure 1 also notifies the FEF1's MAC address and its corresponding FC-ID range to other FEFs in the FCoE network, so that other FEFs update their own packet forwarding table, such as in the packet forwarding table. Add a forwarding entry corresponding to FEF1.

进一步地, 在 401之前, 所述 FCS与所述第一 FEF建立连接;  Further, before 401, the FCS establishes a connection with the first FEF;

例如, 新加入 FCoE网络的第一 FEF, 要与负责主控的 FCS建立连接。 由于 FCS负责对 FCoE网络中各 FEF进行控制和管理, 因此每个新加入网络 的 FEF首先要与 FCS建立连接。 第一 FEF新加入 FCoE网络时, 都要首先与 FCS建立连接, 再接收 FCS为所述第 ― FEF分配的第 ― FC-ID范围。  For example, the first FEF newly joined to the FCoE network must establish a connection with the FCS responsible for the master. Since the FCS is responsible for controlling and managing each FEF in the FCoE network, each newly joined FEF must first establish a connection with the FCS. When the first FEF joins the FCoE network, it first establishes a connection with the FCS, and then receives the first FC-ID range allocated by the FCS for the first FEF.

具体地, 所述 FCS与所述第一 FEF之间可以通过 TCP或者 UDP建立连 接关系。 这种连接关系的建立可以通过多种方式, 包括但不限于: 所述第一 FEF被静态配置 FCS地址, 并根据所述 FCS地址, 与所述 FCS建立连接; 或者, 所述第一 FEF通过动态发现方式, 获取所述 FCS的地址, 并与所述 FCS建立连接; 比如由所述第一 FEF发送广播或者组播报文, 所述 FCS进行 应答,或者同时所述 FCS可以周期性的发送组播 /广播通告告知网络其所控制 的 FEF, 所述 FCS的地址或标识。  Specifically, a connection relationship may be established between the FCS and the first FEF by using TCP or UDP. The connection relationship may be established in a plurality of manners, including but not limited to: the first FEF is statically configured with an FCS address, and a connection is established with the FCS according to the FCS address; or the first FEF is passed. Dynamically discovering the address of the FCS, and establishing a connection with the FCS; for example, sending, by the first FEF, a broadcast or a multicast message, the FCS responding, or at the same time, the FCS may periodically send The multicast/broadcast notification informs the network of the FEF it controls, the address or identity of the FCS.

需要说明的是, 所述第一 FEF与 FCS之间建立的连接, 通常是逻辑上的 连接关系, 当然也可以是物理直连。  It should be noted that the connection established between the first FEF and the FCS is usually a logical connection, and may of course be a physical direct connection.

本实施例中实现 FCoE的方法, 当第一 FEF新加入 FCoE网络时 , FCS 为该第一 FEF分配第一 FC-ID范围,并将存储的网络中其他 FEF的转发信息 告知该第一 FEF, 该第一 FEF就可以据此建立报文转发表了, 对于其他 FEF 也是,只需要 FCS将分配给新加入 FCoE网络的第一 FEF的第一 FC-ID范围 通知其他 FEF,其他 FEF在其转发表上增加该第一 FEF对应的转发表项即可, 相对于现有技术需要重新计算全网路由来说, 报文转发表的生成更加简单和 快速, 提高了路由效率, 简化了 FCoE的实现。 In the method of implementing FCoE in this embodiment, when the first FEF is newly added to the FCoE network, the FCS allocates a first FC-ID range to the first FEF, and notifies the first FEF of the forwarding information of other FEFs in the stored network. The first FEF can establish a message forwarding table according to this, for other FEFs. In addition, the FCS only needs to notify other FEFs of the first FC-ID range of the first FEF that is newly added to the FCoE network, and the other FEFs may add the forwarding entry corresponding to the first FEF to the forwarding table. When there is a technology that needs to recalculate the entire network route, the generation of the packet forwarding table is simpler and faster, which improves the routing efficiency and simplifies the implementation of FCoE.

进一步地, 图 5为本发明实施例提供的又一实现 FCoE的方法流程图, 在上述图 2所示的实现 FCoE的方法基础上,本实施例详细说明本发明 FCoE 网络中如何转发 FCoE报文, 如图 5所示, 包括:  Further, FIG. 5 is a flowchart of another method for implementing FCoE according to the embodiment of the present invention. On the basis of the method for implementing FCoE shown in FIG. 2, this embodiment details how to forward FCoE packets in the FCoE network of the present invention. , as shown in Figure 5, including:

501、 第一 FEF接收来自本地节点的 FCoE报文;  501. The first FEF receives an FCoE packet from the local node.

由于所述 FCoE报文来自所述第 ― FEF的本地节点, 因此所述第 ― FEF 相当于所述 FCoE报文的起点 FEF。  Since the FCoE message is from the local node of the first "FEF", the first "FEF" is equivalent to the starting point FEF of the FCoE message.

502、 所述第一 FEF从所述 FCoE报文中获取目的 FC-ID;  502. The first FEF obtains a destination FC-ID from the FCoE packet.

所述 FCoE报文中包括源 FC-ID, 目的 FC-ID,源 MAC地址和目的 MAC 地址。 其中, 源 FC-ID是所述第一 FEF的本地节点的 FC-ID, 源 MAC地址 是所述第一 FEF的本地节点的 MAC地址; 而目的 FC-ID是目的 ENode的 MAC地址 , 目的 MAC地址则是所述第一 FEF的 MAC地址。  The FCoE packet includes a source FC-ID, a destination FC-ID, a source MAC address, and a destination MAC address. The source FC-ID is the FC-ID of the local node of the first FEF, the source MAC address is the MAC address of the local node of the first FEF, and the destination FC-ID is the MAC address of the destination ENode, and the destination MAC address. The address is the MAC address of the first FEF.

503、 第一 FEF根据所述目的 FC-ID, 查找所述第一 FEF的报文转发表, 得到与所述目的 FC-ID对应的目的 FEF的 MAC地址;  503. The first FEF searches the packet forwarding table of the first FEF according to the destination FC-ID, and obtains a MAC address of the destination FEF corresponding to the destination FC-ID.

其中 ,起点 FEF将根据目的 FC-ID ,查找到该目的 FC-ID对应的目的 FEF。 例如, 以图 3为例, 假设报文发送的目的节点是存储器 2, 该存储器 2对应 的目的 FC-ID 1.4.1 ;起点 FEF根据该 1.4.1就可以查到存储器 2是在 FEF4 下的节点 , 所以目的 FEF是 FEF4。  The starting FEF will find the destination FEF corresponding to the destination FC-ID according to the destination FC-ID. For example, taking FIG. 3 as an example, it is assumed that the destination node for message transmission is memory 2, and the destination FC-ID corresponding to the memory 2 is 1.4.1; the starting point FEF can be found according to the 1.4.1 memory 2 is under FEF4. Node, so the destination FEF is FEF4.

504、第一 FEF将所述目的 FEF的 MAC地址设置为所述 FCoE报文的目 的 MAC地址 , 发送所述 FCoE报文。  504. The first FEF sets the MAC address of the destination FEF to the destination MAC address of the FCoE packet, and sends the FCoE packet.

本实施例中, 起点 FEF就已经将报文的目的 MAC地址直接设置为目的 FEF的 MAC地址, 这与现有技术的处理是不同的, 比如, 以图 3所示为例, 当服务器 1向存储器 2发送报文时,按照现有技术, FEF1 (现有技术中是 FCF 设备 )解封装后通过目的 FC-ID获取下一跳 FEF的 MAC地址, 将 FCoE报 文的目的 MAC地址设为 FEF5的 MAC地址, 发往 FEF5 , 然后 FEF5解封装 后通过目的 FC-ID查找下一跳 FEF的 MAC地址,将 FCoE报文的目的 MAC 地址设为 FEF4的 MAC地址, 发往 FEF4; 即现有技术中, FCoE报文从入口 FEF, 即 FEFl到出口 FEF, 即 FEF4经过的每一跳, 即每个中间 FEF (现有 技术中是 FCF设备) , 都需要经过解封装, 使用下一跳 MAC地址路由, 再 次封装的过程, 报文转发处理代价大、 效率低。 而本发明实施例中, 在入口 FEF, 即 FEF1处, 就可以才艮据目的 FC-ID查找到出口 FEF的 MAC地址, 直 接将 FCoE报文的目的 MAC地址设为出口 FEF的 MAC地址, 即 FEF4的 MAC地址, 中间 FEF只做转发, 不修改报文的目的 MAC, 不做报文的解封 装和封装处理; 比如在 FEF5处, 仅需要根据报文中的目的 MAC地址, 即 FEF4-MAC ,直接将报文从对应的端口 300输出即可,从而实现 FCoE报文简 单、 快速地转发。 因此, 本实施例的实现 FCoE的方法, FEF在转发 FCoE报 文时, 相对于现有技术有所改进, 能够提高报文的转发处理效率。 In this embodiment, the starting point FEF has directly set the destination MAC address of the packet to the MAC address of the destination FEF, which is different from the prior art processing. For example, as shown in FIG. 3, when the server 1 When the memory 2 sends a packet, the FEF1 (the FCF device in the prior art) decapsulates the MAC address of the next hop FEF through the destination FC-ID, and sets the destination MAC address of the FCoE packet to FEF5. The MAC address is sent to the FEF5, and then the FEF5 is decapsulated to find the MAC address of the next hop FEF through the destination FC-ID, and the destination MAC address of the FCoE packet is set to the MAC address of the FEF4, and sent to the FEF4; , FCoE message from the entrance FEF, that is, FEF1 to the egress FEF, that is, each hop that the FEF4 passes, that is, each intermediate FEF (the FCF device in the prior art) needs to be decapsulated, routed using the next hop MAC address, and repackaged. Packet forwarding processing is costly and inefficient. In the embodiment of the present invention, at the ingress FEF, that is, the FEF1, the MAC address of the egress FEF can be found by the destination FC-ID, and the destination MAC address of the FCoE packet is directly set as the MAC address of the egress FEF, that is, The MAC address of the FEF4, the intermediate FEF only forwards the packet, does not modify the destination MAC address of the packet, and does not perform packet decapsulation and encapsulation processing. For example, at FEF5, only the destination MAC address in the packet, that is, FEF4-MAC, is required. The message can be directly output from the corresponding port 300, so that FCoE packets can be easily and quickly forwarded. Therefore, in the method for implementing the FCoE in the embodiment, the FEF improves the forwarding processing efficiency of the packet when the FCoE packet is forwarded compared with the prior art.

本实施例中, 将结合图 3所示的组网架构, 描述从 FEF1作为新设备加 入该网络,服务器 1加入到 FEF1下, 以及服务器 1向存储器 2发送 FCoE报 文的整个流程。 其中, 图 6为本发明实施例提供的实现 FCoE的方法的信令 交互示意图, 由于 FEF2和 FEF3的处理类似, 因此在图 6中仅示出了 FEF2。 图 7为本发明实施例提供的实现 FCoE的方法的报文转发示意图。  In this embodiment, the network structure shown in FIG. 3 will be described, and the entire process from FEF1 being added to the network as the new device, the server 1 being added to the FEF1, and the server 1 transmitting the FCoE message to the memory 2 will be described. 6 is a schematic diagram of signaling interaction of a method for implementing FCoE according to an embodiment of the present invention. Since FEF2 and FEF3 are similarly processed, only FEF2 is shown in FIG. 6. FIG. 7 is a schematic diagram of packet forwarding according to a method for implementing FCoE according to an embodiment of the present invention.

具体地, 如图 6所示, 本实施例中实现 FCoE的方法的信令交互过程如 下:  Specifically, as shown in FIG. 6, the signaling interaction process of the FCoE method in this embodiment is as follows:

601、 FEF1与 FCS1建立连接;  601, FEF1 establishes a connection with FCS1;

例如, FEF1被静态配置了 FCS1地址, 并据此与 FCS1建立连接。  For example, FEF1 is statically configured with the FCS1 address and establishes a connection with FCS1 accordingly.

602、 FCS1向 FEF1分配 FC-ID范围;  602. The FCS1 allocates an FC-ID range to the FEF1.

例如, FCS为 FEF1分配的 FC-ID范围是 1.1.0/16。  For example, the FCS allocates an FC-ID range of 1.1.0/16 for FEF1.

603、 FCS1向 FEF1发送 FEF的转发信息;  603. The FCS1 sends the FEF forwarding information to the FEF1.

例如, FCSl ^l FEF2、 FEF3、 FEF4和 FEF5的转发信息都发送至 FEFl , 包括: FEF2的 MAC地址与 FEF2的 FC-ID范围的对应关系 , FEF3的 MAC 地址与 FEF3的 FC-ID范围的对应关系 , FEF4的 MAC地址与 FEF4的 FC-ID 范围的对应关系 ,以及 FEF5的 MAC地址与 FEF5的 FC-ID范围的对应关系; FEF2、 FEF3、 FEF4和 FEF5的 FC-ID范围也是由 FCS分配的。  For example, the forwarding information of FCS1, FEF2, FEF4, and FEF5 is sent to FEF1, including: the correspondence between the MAC address of FEF2 and the FC-ID range of FEF2, and the correspondence between the MAC address of FEF3 and the FC-ID range of FEF3. Relationship, the correspondence between the MAC address of FEF4 and the FC-ID range of FEF4, and the correspondence between the MAC address of FEF5 and the FC-ID range of FEF5; the FC-ID range of FEF2, FEF3, FEF4, and FEF5 is also allocated by FCS .

604、 FCS1向其他 FEF通知 FEF1的转发信息;  604. The FCS1 notifies the FEF1 of the forwarding information of the FEF1.

例如, FCS1将 FEF1的 MAC地址及对应的 FC-ID范围, 通知至 FEF2、 FEF3、 FEF4和 FEF5 , 以使得 FEF2、 FEF3、 FEF4和 FEF5更新各自的才艮文 转发表,即在各自的报文转发表中增加一个 FEF1对应的转发表项,包括 FEF1 的 MAC地址与 FEF1的 FC-ID范围的对应关系。 在图 6中, 仅示出了 FCS1 向 FEF2通知上述信息, 但实际上 FCS1也通知了 FEF3、 FEF4和 FEF5。 For example, FCS1 notifies FEF1, FEF3, FEF4, and FEF5 of FEF1's MAC address and corresponding FC-ID range, so that FEF2, FEF3, FEF4, and FEF5 update their respective documents. A forwarding table, that is, a forwarding entry corresponding to FEF1 is added to the respective packet forwarding table, including the correspondence between the MAC address of FEF1 and the FC-ID range of FEF1. In Fig. 6, only FCS1 is shown to notify the above information to FEF2, but actually FCS1 also notifies FEF3, FEF4 and FEF5.

另外, 需要说明的是, 该步骤的实现方式可以是多种多样。 比如可以向 每个 FEF进行单播, 也可以使用特定的组播地址向所有 FEF进行组播。 内容 的通知可以是增量型的, 即只通知变化的部分, 也可以是完全型的, 即把所 有信息都下发。 不同的实现方式, 在具体的步骤上可能会有不同, 此处不一 一列举。其目的是使得每个 FEF都可以动态的正确获得当前网络的转发信息。  In addition, it should be noted that the implementation of this step may be various. For example, you can unicast each FEF or use a specific multicast address to multicast to all FEFs. The notification of the content can be incremental, that is, only the changed part is notified, or it can be completely typed, that is, all the information is delivered. Different implementation methods may be different in specific steps, which are not listed here. The purpose is to enable each FEF to dynamically obtain the forwarding information of the current network dynamically.

需要说明的是, 本实施例并不限制 603和 604的执行顺序, 例如这两个 步骤可以分开执行, 也可以同时执行。  It should be noted that the embodiment does not limit the execution order of 603 and 604. For example, the two steps may be performed separately or simultaneously.

605、 FEF1根据其他 FEF的转发信息, 生成报文转发表的转发表项; 其中, 具体的转发表项的内容可以参见上面的实施例, 不再赘述。  605. The FEF1 generates a forwarding entry of the packet forwarding table according to the forwarding information of the other FEFs. For the content of the specific forwarding entry, refer to the foregoing embodiment, and details are not described herein.

606、 服务器 1向 FEF1发送 FIP VLAN discovery;  606. The server 1 sends a FIP VLAN discovery to the FEF1.

607、 FEFl向服务器 1回复 FIP FCF discovery;  607, FEFl replies to the server 1 FIP FCF discovery;

608、 服务器 1向 FEF1发送 FIP FLOGI;  608. The server 1 sends a FIP FLOGI to the FEF1.

其中, 606〜608, 以及后续的 609都是服务器 1新与 FEF1建立连接时的 常规流程, 不再详述。 比如, 任何一个节点在与 FEF建立连接时, 都需要发 送 FIP FLOGI消息。 需要说明的是, 本发明实施例的实现 FCoE的方法, 不 需要节点 (ENode )处做任何改进, 所以对于服务器 1来说, 其执行的流程 与现有技术相同。  Among them, 606~608, and the subsequent 609 are the normal processes when the server 1 newly establishes a connection with FEF1, and will not be described in detail. For example, any node needs to send a FIP FLOGI message when establishing a connection with FEF. It should be noted that the method for implementing FCoE in the embodiment of the present invention does not require any improvement at the node (ENode), so the flow of the execution of the server 1 is the same as the prior art.

609、 FEF1向服务器 1回复 FIP FLOGI ACC,携带为服务器 1下发的 FC-ID 和其他信息;  609. The FEF1 replies to the FIP FLOGI ACC to the server 1 and carries the FC-ID and other information delivered by the server 1;

例如, FEF1将从 FCS1为自己分配的 FC-ID范围即 1.1.0/16中, 选择一 个 FC-ID分配至服务器 1 ,假设分配的服务器 1的 FC-ID是 1.1.1。 FEF1将该 FC-ID携带在 FIP FLOGI ACC中发送至服务器 1。  For example, FEF1 will allocate an FC-ID to server 1 from the FC-ID range that FCS1 allocates for itself, that is, 1.1.0/16, assuming that the assigned server 1 has an FC-ID of 1.1.1. FEF1 carries the FC-ID in the FIP FLOGI ACC and sends it to the server 1.

610、 FEF1根据为服务器 1分配的 FC-ID, 生成报文转发表中的转发表 项;  610. The FEF1 generates a forwarding entry in the packet forwarding table according to the FC-ID allocated to the server 1.

例如, 该转发表项包括 " 1.1.1—— Server 1 -MAC—— 100" 。  For example, the forwarding entry includes "1.1.1 - Server 1 -MAC - 100".

上述的 601〜610, 执行的是控制平面和管理平面的流程, 新的节点 (服 务器 1 )和新的 FEF ( FEF1 )加入到该网络中, FCS1为新 FEF1分配了 FC-ID 范围, FEF1又从该 FC-ID范围中为服务器 1分配了 FC-ID; 并且, 各个 FEF 上都生成或者更新了报文转发表, 已经准备好转发 FCoE报文。 The above 601 to 610 perform the flow of the control plane and the management plane. The new node (server 1) and the new FEF (FEF1) are added to the network, and the FCS1 assigns the FC-ID to the new FEF1. The FEF1 allocates the FC-ID to the server 1 from the FC-ID range. The packet forwarding table is generated or updated on each FEF, and the FCoE packet is ready to be forwarded.

进一步地, 如图 7所示, 承接图 6完成控制平面之后, 说明 FCoE报文 的转发; 具体结合图 3所示 FCoE网络中服务器 1发送 FCoE报文至存储器 2 的报文处理过程。 如图 Ί所示, 本实施例中实现 FCoE的方法的报文转发过 程如下:  Further, as shown in FIG. 7, after the completion of the control plane in FIG. 6, the FCoE packet is forwarded. Specifically, the packet processing process in which the server 1 sends the FCoE packet to the memory 2 in the FCoE network shown in FIG. As shown in the figure, the packet forwarding process of the FCoE method in this embodiment is as follows:

701、 服务器 1向 FEF1发送 FCoE报文;  701. The server 1 sends an FCoE packet to the FEF1.

其中, 服务器 1发送的 FCoE报文的报文格式和机制与现有技术相同, 不再详述; 该报文中包括: 源 MAC地址 (即服务器 1的 MAC地址)、 目的 MAC地址(相邻的 FEF即 FEF1的 MAC地址 ) 、 源 FC-ID (即月良务器 1的 FC-ID, 1.1.1 ) 、 目的 FC-ID (即存储器 2的 FC-ID, 1.4.1 ) 。  The format and mechanism of the FCoE packet sent by the server 1 are the same as those in the prior art, and are not described in detail. The packet includes: a source MAC address (that is, a MAC address of the server 1) and a destination MAC address (adjacent The FEF is the MAC address of FEF1), the source FC-ID (that is, the FC-ID of the server 1, 1.1.1), and the destination FC-ID (that is, the FC-ID of the memory 2, 1.4.1).

参见图 8 ,为本发明实施例提供的实现 FCoE的方法中的报文变化示意图, 图 8示出了 FCoE才艮文在转发过程中, 在各 FEF处才艮文头部的部分内容。  FIG. 8 is a schematic diagram of packet changes in a method for implementing FCoE according to an embodiment of the present invention, and FIG. 8 shows a part of content of a header in a FCoE in a forwarding process.

702、 FEF1将才艮文中的目的 MAC地址重新封装为 FEF4的 MAC地址; 其中, 当 FEF1接收到服务器 1发送的报文时, 剥掉外层的以太封装, 获取报文中的目的 FC-ID, 即 1.4.1 ; FEF1查找其自身的报文转发表, 得知包 括该 1.4.1的 FC-ID范围是 1.4.0/16, 该 1.4.0/16对应的 MAC地址是  702. The FEF1 re-encapsulates the destination MAC address in the packet to the MAC address of the FEF4. When the FEF1 receives the packet sent by the server 1, the FEF1 strips the outer Ethernet encapsulation and obtains the destination FC-ID in the packet. , ie 1.4.1; FEF1 looks up its own message forwarding table, and knows that the FC-ID range including 1.4.1 is 1.4.0/16, and the MAC address corresponding to 1.40/16 is

FEF4-MAC , 即才艮文的目的 FC-ID对应的目的节点是位于 FEF4下。 因此, FEF1重新进行 FCoE封装, 将该 FEF4-MAC设置为 4艮文的目的 MAC地址, 将报文的源 MAC地址设置为 FEF 1 自身的 MAC地址。 FEF4-MAC, the purpose of the message is that the destination node corresponding to the FC-ID is located under FEF4. Therefore, FEF1 re-encapsulates the FCoE, sets the FEF4-MAC to the destination MAC address of the packet, and sets the source MAC address of the packet to the MAC address of FEF 1 itself.

703、 FEF1将报文发送至 FEF4;  703. The FEF1 sends the packet to the FEF4.

FEF1将报文从端口 1发出, 发往 FEF4, 中间可能会经过其他设备, 包 括 FEF5。由于报文的目的 MAC不是 FEF5, 所以 FEF5进行普通的二层转发, 继续将报文发往 FEF4。 以图 3为例 , FEF5将报文从端口 300发出至 FEF4。 因此, 从图 8来看, 报文头部的内容没有变动, 即 FEF5没有对报文头部进 行任何更改。  FEF1 sends the packet from port 1 to FEF4, and may pass other devices, including FEF5. As the destination MAC address of the packet is not FEF5, the FEF5 performs normal Layer 2 forwarding and continues to send the packet to FEF4. Taking Figure 3 as an example, FEF5 sends the message from port 300 to FEF4. Therefore, from Figure 8, the content of the message header does not change, that is, FEF5 does not make any changes to the message header.

704、 FEF4将 4艮文的目的 MAC地址更改为存储器 2的 MAC地址; 其中, 当报文到达 FEF4后, FEF4会剥掉外层以太封装, 获取内层 FC 报文的目的 FC-ID地址。 FEF4将根据报文的目的 FC-ID, 查找自身的报文转 发表中的转发表项, 获得与该 FC-ID对应的 MAC地址和本地输出端口。 以 图 3为例, FEF4将得到目的 MAC是 storage2的 MAC地址, 所述本地输出 端口是端口 200 , 即从该端口 200输出报文将到达存储器 2。 704. The FEF4 changes the destination MAC address of the packet to the MAC address of the memory 2. When the packet reaches the FEF4, the FEF4 strips the outer Ethernet encapsulation and obtains the destination FC-ID address of the inner FC packet. Based on the destination FC-ID of the packet, FEF4 searches for the forwarding entry in its own packet forwarding table to obtain the MAC address and local output port corresponding to the FC-ID. Take In FIG. 3, for example, FEF4 will obtain the MAC address of the destination MAC which is storage2, and the local output port is port 200, that is, the output of the message from the port 200 will reach the memory 2.

FEF4重新进行 FCoE封装, 将报文的源 MAC地址更改为自身的 MAC 地址, 即 FEF4-MAC, 并将 4艮文的目的 MAC地址更改为存储器 2的 MAC地 址, 即存储器 2-MAC。 可以参见图 8。  FEF4 re-encapsulates the FCoE and changes the source MAC address of the packet to its own MAC address, that is, FEF4-MAC, and changes the destination MAC address of the packet to the MAC address of the memory 2, that is, the memory 2-MAC. See Figure 8.

705、 FEF4将报文发送至存储器 2。  705. The FEF4 sends the message to the memory 2.

其中, FEF4将报文通过端口 200发送至存储器 2。 需要说明的是, 本实 施例的 FEF1与 FEF4之间可以使用多跳的以太交换机组成的网络。  Among them, FEF4 sends the message to the memory 2 through the port 200. It should be noted that a network composed of multi-hop Ethernet switches can be used between FEF1 and FEF4 in this embodiment.

进一步的, FCoE网络的 FCS还可以下发分区信息, 该分区信息主要是 用于通知 FEF分区内的某个节点与某个节点之间是允许通信的, 比如, 以图 1为例, 如果定义分区 ( Zone ) X包含 Serverl和 storage2, 那么 FCS会在该 分区激活后下发 ( 1.1.1, 1.4.1, allowed )到 FEF1和 FEF4。 FEF可以根据下发 的分区信息生成访问控制列表 (access control list , 简称: ACL) , 该 ACL主要 用于记录上述分区信息, 并且用于当 FEF接收到报文时, 查看该 ACL, 如果 报文的发送节点和接收节点是 ACL中记录的处于同一分区的能够通信的节 点, 则继续进行报文转发, 否则表明该报文是不能转发的。 比如, 当 FEF1 在收到来自 Serverl的报文, 查找报文转发表进行转发时, 需要根据分区信息 产生的 ACL来检查 ^艮文的源和目的是否可以通信, 只有在允许通信的情况 下, 才会进行转发。  Further, the FCS of the FCoE network may also send the following partition information, where the partition information is mainly used to notify a certain node in the FEF partition to allow communication with a certain node, for example, as shown in FIG. Zone X contains Serverl and storage2, then FCS will issue (1.1.1, 1.4.1, allowed) to FEF1 and FEF4 after the partition is activated. The FEF may generate an access control list (ACL) according to the partition information that is sent. The ACL is used to record the partition information, and is used to view the ACL when the FEF receives the packet. The transmitting node and the receiving node are the nodes that can communicate in the same partition recorded in the ACL, and then continue to forward the packet. Otherwise, the packet cannot be forwarded. For example, when FEF1 receives a packet from Server1 and looks up the packet forwarding table for forwarding, it needs to check whether the source and destination of the packet can be communicated according to the ACL generated by the partition information. Only when communication is allowed, Will be forwarded.

参见图 9, 为本发明实施例提供的 FEF的结构示意图, 用于实现如本发 明图 2、 图 3、 图 6和图 8任一实施例所述的实现 FCoE的方法, 其工作原理 可以参见前述方法实施例。 如图 9所示, 第一 FEF包括: 信息接收单元 91 和转发表更新单元 92; 其中,  FIG. 9 is a schematic structural diagram of an FEF according to an embodiment of the present invention, which is used to implement the method for implementing FCoE according to any embodiment of FIG. 2, FIG. 3, FIG. 6, and FIG. The foregoing method embodiments. As shown in FIG. 9, the first FEF includes: an information receiving unit 91 and a forwarding table updating unit 92;

信息接收单元 91 , 用于接收 FCS分配的第一 FC-ID范围; 还接收所述 FCS发送的转发信息, 所述转发信息中包括: 其他 FEF的 MAC地址及所述 FCS分配给所述其他 FEF的 FC-ID范围的对应关系;  The information receiving unit 91 is configured to receive a first FC-ID range allocated by the FCS, and further receive, by the FCS, the forwarding information, where the forwarding information includes: a MAC address of another FEF, and the FCS is allocated to the other FEF Correspondence of the FC-ID range;

转发表更新单元 92, 用于根据所述转发信息更新报文转发表, 所述报文 转发表中包括介质访问控制 MAC地址与 FC-ID范围的对应关系; 具体用于 根据所述转发信息, 在所述第一 FEF的报文转发表中记录所述其他 FEF的 MAC地址及 FC-ID范围的对应关系。 其中, FCS在获知第一 FEF新加入 FCoE网络时, 会为所述第 ― FEF分 配第一 FC-ID范围; 所述第一 FC-ID范围由所述第一 FEF控制, 用于分配给 接入所述第一 FEF的本地节点, 即接入所述第一 FEF的 ENode; 具体的, 所 述第 ― FEF为每个接入所述第 ― FEF的本地节点从所述第 ― FC-ID范围中选 择一个 FC-ID分配给该本地节点 , FC-ID则主要用于 FCoE报文在网络中的 寻址转发。 可选的, 上述的 FC-ID范围的表示方式可以有多种, 例如, 以掩 码的方式表示 (1.1.0/16 ) , 或者是从某个 FC-ID开始的连续 n个( n>0 ) 。 The forwarding table updating unit 92 is configured to update the packet forwarding table according to the forwarding information, where the packet forwarding table includes a correspondence between a medium access control MAC address and an FC-ID range; specifically, according to the forwarding information, Recording, in the packet forwarding table of the first FEF, a correspondence between a MAC address of the other FEF and an FC-ID range. The FCS allocates a first FC-ID range for the first FEF when the first FEF is newly added to the FCoE network; the first FC-ID range is controlled by the first FEF, and is used for allocation and connection. a local node that is in the first FEF, that is, an ENode that accesses the first FEF. Specifically, the first FEF is a local node that accesses the first FEF from the first FC-ID. In the range, an FC-ID is selected and assigned to the local node, and the FC-ID is mainly used for addressing and forwarding FCoE packets in the network. Optionally, the foregoing FC-ID range may be represented by multiple types, for example, by masking (1.1.0/16), or by consecutive n (from a certain FC-ID). 0).

此外 , 假设 FCoE网络中有多个 FEF时, FCS为每个 FEF分配的 FC-ID 范围是不同的, 即不同的 FEF被分配的 FC-ID范围不能重叠; 该 FC-ID范围 不重叠指的是全网唯一。 具体可参见 201 , 在此不再赘述。  In addition, assuming that there are multiple FEFs in the FCoE network, the FCS allocates different FC-ID ranges for each FEF, that is, the FC-ID ranges of different FEFs cannot be overlapped; the FC-ID ranges do not overlap. It is the only one in the whole network. For details, see 201, and details are not described here.

其中, 当 FCoE网络中存在多个 FEF时, 所述第一 FEF, 除了接收 FCS 分配的所述第一 FC-ID范围, 还可以接收所述 FCS发送的转发信息, 所述转 发信息中包括其他 FEF的 MAC地址及 FCS分配给所述其他 FEF的 FC-ID范 围的对应关系。  The first FEF, in addition to receiving the first FC-ID range allocated by the FCS, may further receive forwarding information sent by the FCS, where the forwarding information includes other The correspondence between the MAC address of the FEF and the FC-ID range assigned by the FCS to the other FEFs.

可以理解的是, 所述信息接收单元 91接收的转发信息可以是所述第一 It can be understood that the forwarding information received by the information receiving unit 91 may be the first

FEF新加入 FCoE网络时, FCS保存的、 FCoE网络中已存在的其他 FEF的转 发信息 , 也可以是所述第一 FEF加入 FCoE网络后 , 有新的 FEF加入时 , 新 力口入 FEF的转发信息。 When the FEF is added to the FCoE network, the forwarding information of other FEFs that are stored in the FCS and existing in the FCoE network may also be the forwarding information of the new FEF in the FEF when the first FEF joins the FCoE network. .

进一步的, 图 10为本发明实施例提供的 FEF的另一结构示意图, 如图 10所示, 在图 9结构的基础上, 所述第一 FEF还包括请求接收单元 93和地 址分配单元 94;  Further, FIG. 10 is another schematic structural diagram of an FEF according to an embodiment of the present invention. As shown in FIG. 10, on the basis of the structure of FIG. 9, the first FEF further includes a request receiving unit 93 and an address allocating unit 94;

请求接收单元 93 , 用于接收第一本地节点发送的连接请求;  The request receiving unit 93 is configured to receive a connection request sent by the first local node;

地址分配单元 94, 用于根据所述连接请求, 从所述第一 FC-ID范围中为 所述第一本地节点分配节点第一 FC-ID;  The address allocation unit 94 is configured to allocate, according to the connection request, the first FC-ID of the node from the first FC-ID range to the first local node;

所述转发表更新单元 92, 还用于根据所述第一节点 FC-ID, 更新所述报 文转发表; 其中, 所述 FEF根据所述第一节点 FC-ID, 更新所述第一 FEF的 报文转发表, 具体包括: 所述第一 FEF在所述第一 FEF的报文转发表中记录 所述第一本地节点的 MAC地址及所述第一节点 FC-ID的对应关系。  The forwarding table update unit 92 is further configured to update the packet forwarding table according to the first node FC-ID, where the FEF updates the first FEF according to the first node FC-ID The packet forwarding table specifically includes: the first FEF records, in the packet forwarding table of the first FEF, a correspondence between a MAC address of the first local node and a first node FC-ID.

具体的,在所述第一 FEF的报文转发表中记录所述第一本地节点的 MAC 地址与第一节点 FC-ID的对应关系; 进一步还可以包括与所述第一本地节点 对应的出端口。 Specifically, the correspondence between the MAC address of the first local node and the first node FC-ID is recorded in the packet forwarding table of the first FEF, and may further include the first local node. Corresponding outgoing port.

进一步的,所述信息接收单元 91,还用于接收所述 FCS发送的退出信息, 所述退出信息中包括第二 FEF的 MAC地址;  Further, the information receiving unit 91 is further configured to receive the exit information sent by the FCS, where the exit information includes a MAC address of the second FEF;

所述转发表更新单元 92, 还用于根据所述退出信息, 更新所述第一 FEF 的报文转发表; 具体用于根据所述退出信息, 从所述第一 FEF的报文转发表 中删除所述第二 FEF的 MAC地址对应的转发表项。  The forwarding table update unit 92 is further configured to: update the packet forwarding table of the first FEF according to the exit information; specifically, according to the exit information, from the packet forwarding table of the first FEF The forwarding entry corresponding to the MAC address of the second FEF is deleted.

进一步的, 该 FEF还可以包括: 连接处理单元 95, 用于在所述信息接收 单元接收所述 FCS分配的第一 FC-ID范围之前,与所述 FCS建立连接; 具体 包括用于根据静态配置的 FCS的地址与所述 FCS建立连接; 或者, 通过动态 发现方式获取所述 FCS的地址, 并与所述 FCS建立连接。  Further, the FEF may further include: a connection processing unit 95, configured to establish a connection with the FCS before the information receiving unit receives the first FC-ID range of the FCS allocation; specifically, according to the static configuration The address of the FCS is connected to the FCS; or the address of the FCS is obtained through a dynamic discovery manner, and a connection is established with the FCS.

其中, 由于 FCS负责对 FCoE网络中各 FEF进行控制和管理, 因此每个 新加入网络的 FEF首先要与 FCS建立连接。 具体地, 若所述第一 FEF新加 入 FCoE网络时, 所述第一 FEF首先与所述 FCS建立连接, 再接收所述 FCS 为所述第 ― FEF分配的第一 FC-ID范围。 具体地, 所述第 ― FEF可以通过 TCP或者 UDP与所述 FCS建立连接关系。 这种连接关系的建立可以通过多 种方式, 包括但不限于: 对所述第一 FEF进行静态配置, 所述第一 FEF根据 静态配置的 FCS的地址与所述 FCS建立连接; 通过动态发现方式获取所述 FCS的地址, 并与所述 FCS建立连接。 需要说明的是, 所述第一 FEF与 FCS 之间建立的连接, 通常是逻辑上的连接关系, 当然也可以是物理直连。  Among them, since the FCS is responsible for controlling and managing each FEF in the FCoE network, each FEF newly joined to the network must first establish a connection with the FCS. Specifically, if the first FEF is newly added to the FCoE network, the first FEF first establishes a connection with the FCS, and then receives the first FC-ID range allocated by the FCS for the first “FEF”. Specifically, the first FEF may establish a connection relationship with the FCS by using TCP or UDP. The connection relationship may be established in a plurality of manners, including but not limited to: statically configuring the first FEF, where the first FEF establishes a connection with the FCS according to the statically configured address of the FCS; Obtaining an address of the FCS and establishing a connection with the FCS. It should be noted that the connection established between the first FEF and the FCS is usually a logical connection relationship, and may also be a physical direct connection.

本实施例中第一 FEF通过获取 FCS分配的 FC-ID范围,以及网络中其他 In this embodiment, the first FEF obtains the FC-ID range allocated by the FCS, and other

FEF的转发信息, 可以建立报文转发表; 对于其他 FEF也是, 也只需要获取 FCS分配给第 ― FEF的第一 FC-ID范围, 就可以在 4艮文转发表中增加相应的 转发表项, 相对于现有技术需要重新计算全网路由来说, 报文转发表的生成 更加简单和快速, 提高了路由效率, 简化了 FCoE的实现。 For the forwarding information of the FEF, a packet forwarding table can be established. For other FEFs, only the first FC-ID range allocated by the FCS to the FEF is obtained, and the corresponding forwarding entry can be added to the forwarding table. Compared with the prior art, it is required to recalculate the entire network route, and the generation of the packet forwarding table is simpler and faster, which improves the routing efficiency and simplifies the implementation of FCoE.

图 11为本发明实施例提供的 FEF的又一结构示意图, 在图 9或 10所示 FIG. 11 is still another schematic structural diagram of an FEF according to an embodiment of the present invention, which is shown in FIG. 9 or 10.

FEF的基础上, 该第一 FEF中还可以包括: 报文转发单元 96; 所述报文转发 单元 96, 用于接收来自本地节点的 FCoE报文, 并从所述 FCoE报文中获取 目的 FC-ID; 根据所述目的 FC-ID, 查找所述报文转发表得到与所述 FC-ID 对应的目的 FEF的 MAC地址;将所述目的 FEF的 MAC地址设置为所述 FCoE 报文的目的 MAC地址; 并发送所述 FCoE报文; 具体的, 图 11以图 10所示 FEF结构为基础作为示例, 如图 11所示, 所述报文转发单元 96具体可以包括: 地址获取子单元 961、 目的查找子单元 962、 报文处理子单元 963和报文发送子单元 964; 其中, On the basis of the FEF, the first FEF may further include: a message forwarding unit 96; the message forwarding unit 96 is configured to receive an FCoE message from the local node, and obtain the destination FC from the FCoE message. -ID; searching the packet forwarding table to obtain a MAC address of the destination FEF corresponding to the FC-ID according to the destination FC-ID; setting the MAC address of the destination FEF as the destination of the FCoE packet MAC address; and sending the FCoE message; Specifically, FIG. 11 is based on the FEF structure shown in FIG. 10. As shown in FIG. 11, the packet forwarding unit 96 may specifically include: an address obtaining subunit 961, a destination finding subunit 962, and a message processor. Unit 963 and message transmitting subunit 964; wherein

所述地址获取子单元 961 , 用于接收来自本地节点的 FCoE报文, 并从所 述 FCoE报文中获取目的 FC-ID;  The address obtaining subunit 961 is configured to receive an FCoE packet from the local node, and obtain a destination FC-ID from the FCoE packet.

由于所述 FCoE报文来自所述第 ― FEF的本地节点, 因此所述第 ― FEF 相当于所述 FCoE报文的起点 FEF。  Since the FCoE message is from the local node of the first "FEF", the first "FEF" is equivalent to the starting point FEF of the FCoE message.

所述目的查找子单元 962,用于根据所述目的 FC-ID, 查找所述"¾文转发 表得到与所述 FC-ID对应的目的 FEF的 MAC地址;  The destination search sub-unit 962 is configured to search, according to the destination FC-ID, the MAC address of the destination FEF corresponding to the FC-ID by using the "3⁄4 text forwarding table";

所述 FCoE报文中包括源 FC-ID, 目的 FC-ID,源 MAC地址和目的 MAC 地址。 其中, 源 FC-ID是所述第一 FEF的本地节点的 FC-ID, 源 MAC地址 是所述第一 FEF的本地节点的 MAC地址; 而目的 FC-ID是目的 ENode的 MAC地址 , 目的 MAC地址则是所述第一 FEF的 MAC地址。  The FCoE packet includes a source FC-ID, a destination FC-ID, a source MAC address, and a destination MAC address. The source FC-ID is the FC-ID of the local node of the first FEF, the source MAC address is the MAC address of the local node of the first FEF, and the destination FC-ID is the MAC address of the destination ENode, and the destination MAC address. The address is the MAC address of the first FEF.

所述 文处理子单元 963 , 用于将所述目的 FEF的 MAC地址设置为所 述 FCoE报文的目的 MAC地址;  The text processing sub-unit 963 is configured to set a MAC address of the destination FEF as a destination MAC address of the FCoE packet;

所述报文发送子单元 964, 用于发送所述 FCoE报文。  The message sending subunit 964 is configured to send the FCoE message.

本实施例中, 起点 FEF就已经将报文的目的 MAC地址直接设置为目的 FEF的 MAC地址, 这与现有技术的处理是不同的, 比如, 以图 3所示为例, 当服务器 1向存储器 2发送报文时,按照现有技术, FEF1 (现有技术中是 FCF 设备 )解封装后通过目的 FC-ID获取下一跳 FEF的 MAC地址, 将 FCoE报 文的目的 MAC地址设为 FEF5的 MAC地址, 发往 FEF5 , 然后 FEF5解封装 后通过目的 FC-ID查找下一跳 FEF的 MAC地址,将 FCoE报文的目的 MAC 地址设为 FEF4的 MAC地址, 发往 FEF4; 即现有技术中, FCoE报文从入口 FEF, 即 FEF1到出口 FEF, 即 FEF4经过的每一跳, 即每个中间 FEF (现有 技术中是 FCF设备) , 都需要经过解封装, 使用下一跳 MAC地址路由, 再 次封装的过程, 报文转发处理代价大、 效率低。 而本发明实施例中, 在入口 FEF, 即 FEF1处, 就可以才艮据目的 FC-ID查找到出口 FEF的 MAC地址, 直 接将 FCoE报文的目的 MAC地址设为出口 FEF的 MAC地址, 即 FEF4的 MAC地址, 中间 FEF只做转发, 不修改报文的目的 MAC, 不做报文的解封 装和封装处理; 比如在 FEF5处, 仅需要根据报文中的目的 MAC地址, 即 FEF4-MAC ,直接将报文从对应的端口 300输出即可,从而实现 FCoE报文简 单、 快速地转发。 In this embodiment, the starting point FEF has directly set the destination MAC address of the packet to the MAC address of the destination FEF, which is different from the prior art processing. For example, as shown in FIG. 3, when the server 1 When the memory 2 sends a packet, the FEF1 (the FCF device in the prior art) decapsulates the MAC address of the next hop FEF through the destination FC-ID, and sets the destination MAC address of the FCoE packet to FEF5. The MAC address is sent to the FEF5, and then the FEF5 is decapsulated to find the MAC address of the next hop FEF through the destination FC-ID, and the destination MAC address of the FCoE packet is set to the MAC address of the FEF4, and sent to the FEF4; The FCoE packet needs to be decapsulated from the ingress FEF, that is, the FEF1 to the egress FEF, that is, each hop that the FEF4 passes, that is, each intermediate FEF (the FCF device in the prior art), using the next hop MAC address. Routing, re-encapsulation process, packet forwarding processing is costly and inefficient. In the embodiment of the present invention, at the ingress FEF, that is, the FEF1, the MAC address of the egress FEF can be found by the destination FC-ID, and the destination MAC address of the FCoE packet is directly set as the MAC address of the egress FEF, that is, The MAC address of the FEF4, the intermediate FEF is only forwarded, and the destination MAC address of the packet is not modified. The decapsulation and encapsulation processing of the packet is not performed. For example, in the FEF5, only the destination MAC address in the packet is required. FEF4-MAC directly outputs the packets from the corresponding port 300, so that FCoE packets can be easily and quickly forwarded.

本实施例中 , 第一 FEF通过获取 FCS分配的第一 FC-ID范围, 以及网络 中其他 FEF的转发信息, 可以建立报文转发表; 对于其他 FEF也是, 也只需 要获取 FCS分配给新加入 FCoE网络的第一 FEF的第一 FC-ID范围 ,就可以 在报文转发表中增加相应的转发表项, 相对于现有技术需要重新计算全网路 由来说, FCoE网络的控制平面实现更加快速和简单, 降低了控制平面的实现 复杂度。 此外 , 本发明实施例中 , FCoE报文的入口 FEF处根据目的 FC-ID 查找到出口 FEF的 MAC地址, 并直接设置为 FCoE报文的目的 MAC地址, 中间 FEF对 FCoE报文只做转发, 而不做解封装和封装处理, 相对于现有技 术中对 FCoE报文逐跳进行路由、 解封装和封装处理, 本实施例中 FEF的报 文转发处理代价小、 效率高。  In this embodiment, the first FEF can obtain the packet forwarding table by acquiring the first FC-ID range allocated by the FCS and the forwarding information of other FEFs in the network. For other FEFs, only the FCS is required to be allocated to the new join. In the first FC-ID range of the first FEF of the FCoE network, the corresponding forwarding entry can be added to the packet forwarding table. Compared with the prior art, the control plane of the FCoE network is implemented more. Fast and simple, reducing the implementation complexity of the control plane. In addition, in the embodiment of the present invention, the inbound FEF of the FCoE packet finds the MAC address of the egress FEF according to the destination FC-ID, and directly sets the destination MAC address of the FCoE packet, and the intermediate FEF only forwards the FCoE packet. The packet forwarding processing of the FEF in this embodiment is low in cost and high in efficiency, and is not required to perform de-encapsulation and encapsulation processing on the FCoE packet.

参见图 12, 为本发明实施例提供的 FCS的结构示意图, 用于实现如本发 明图 4实施例所述的实现 FCoE的方法, 其工作原理参见前述方法实施例。 如图 12所示, 该 FCS包括:  FIG. 12 is a schematic structural diagram of an FCS according to an embodiment of the present invention. The method for implementing FCoE according to the embodiment of FIG. 4 is implemented. For the working principle, refer to the foregoing method embodiment. As shown in Figure 12, the FCS includes:

地址分配单元 1201 , 用于为第一 FEF分配第一 FC-ID范围;  The address allocation unit 1201 is configured to allocate a first FC-ID range to the first FEF.

信息发送单元 1202, 用于将所述第一 FC-ID范围、 以及转发信息发送至 所述第一 FEF, 以使得所述第一 FEF根据所述转发信息更新所述第一 FEF的 报文转发表, 所述转发信息中包括: 其他 FEF的 MAC地址及所述 FCS分配 给所述其他 FEF的 FC-ID范围的对应关系, 所述 4艮文转发表中包括 MAC地 址与 FC-ID范围的对应关系。 其中, 所述第一 FEF根据所述转发信息更新所 述第一 FEF的报文转发表, 具体包括: 所述第一 FEF根据所述转发信息, 在 所述第一 FEF的 4艮文转发表中记录所述其他 FEF的 MAC地址及所述其他 FEF的 FC-ID范围的对应关系。  The information sending unit 1202 is configured to send the first FC-ID range and the forwarding information to the first FEF, so that the first FEF updates the packet forwarding of the first FEF according to the forwarding information. The forwarding information includes: a MAC address of another FEF and a correspondence between the FCS and the FC-ID range allocated by the FCS to the other FEF, where the forwarding table includes a MAC address and an FC-ID range. Correspondence relationship. And updating, by the first FEF, the packet forwarding table of the first FEF according to the forwarding information, specifically: the first FEF, according to the forwarding information, in a forwarding table of the first FEF Corresponding relationships between the MAC addresses of the other FEFs and the FC-ID ranges of the other FEFs are recorded.

其中, FCS在获知第一 FEF新加入 FCoE网络时 , 会为所述第 ― FEF分 配第一 FC-ID范围; 所述第一 FC-ID范围由所述第一 FEF控制, 用于分配给 接入所述第一 FEF的本地节点, 即接入所述第一 FEF的 ENode; 具体的, 所 述第 ― FEF为每个接入所述第 ― FEF的本地节点从所述第 ― FC-ID范围中选 择一个 FC-ID分配给该本地节点 , FC-ID则主要用于 FCoE报文在网络中的 寻址转发。 可选的, 上述的 FC-ID范围的表示方式可以有多种, 例如, 以掩 码的方式表示 (1.1.0/16 ) , 或者是从某个 FC-ID开始的连续 η个( η>0 ) 。 此外 , 假设 FCoE网络中有多个 FEF时, FCS为每个 FEF分配的 FC-ID 范围是不同的, 即不同的 FEF被分配的 FC-ID范围不能重叠; 该 FC-ID范围 不重叠指的是全网唯一。 具体可参见 201 , 在此不再赘述。 The FCS allocates a first FC-ID range for the first FEF when the first FEF is newly added to the FCoE network; the first FC-ID range is controlled by the first FEF, and is used for allocation and connection. a local node that is in the first FEF, that is, an ENode that accesses the first FEF. Specifically, the first FEF is a local node that accesses the first FEF from the first FC-ID. In the range, an FC-ID is selected and assigned to the local node, and the FC-ID is mainly used for addressing and forwarding FCoE packets in the network. Optionally, the foregoing FC-ID range may be represented by multiple types, for example, to cover The way of the code indicates (1.1.0/16), or consecutive η (η>0) from a certain FC-ID. In addition, assuming that there are multiple FEFs in the FCoE network, the FCS allocates different FC-ID ranges for each FEF, that is, the FC-ID ranges of different FEFs cannot be overlapped; the FC-ID ranges do not overlap. It is the only one in the whole network. For details, see 201, and details are not described here.

其中, 当 FCoE网络中已存在多个 FEF时,所述第一 FEF,除了接收 FCS 分配的所述第一 FC-ID范围, 还可以接收所述 FCS发送的转发信息, 所述转 发信息中包括其他 FEF的 MAC地址及所述 FCS分配给所述其他 FEF的 FC-ID范围的对应关系。 可以理解的是, 所述信息接收单元 91接收的转发信 息可以是所述第一 FEF新加入 FCoE网络时, FCS保存的、 FCoE网络中已存 在的其他 FEF的转发信息, 也可以是所述第一 FEF加入 FCoE网络后, 有新 的 FEF加入时, 新加入 FEF的转发信息。  The first FEF, in addition to receiving the first FC-ID range allocated by the FCS, may receive the forwarding information sent by the FCS, where the forwarding information includes The correspondence between the MAC address of the other FEF and the FC-ID range assigned by the FCS to the other FEFs. It can be understood that the forwarding information received by the information receiving unit 91 may be forwarding information of other FEFs existing in the FCoE network that are saved by the FCS when the first FEF is newly added to the FCoE network, and may also be the foregoing After an FEF joins the FCoE network, when a new FEF joins, the forwarding information of the new FEF is added.

进一步的, 所述信息发送单元 1202, 还用于将所述第一 FEF对应的第一 转发信息发送至所述其他 FEF, 以使得所述其他 FEF根据所述第一转发信息 更新所述其他 FEF的报文转发表; 所述第一转发信息包括: 所述第一 FEF的 MAC地址与所述第一 FC-ID范围的对应关系。具体的,在所述地址分配单元 1201为所述第一 FEF分配对应的第一光纤通道标识 FC-ID范围之后,所述信 息发送单元 1202将所述第一 FEF对应的第一转发信息发送至所述其他 FEF。  Further, the information sending unit 1202 is further configured to send the first forwarding information corresponding to the first FEF to the other FEF, so that the other FEFs update the other FEF according to the first forwarding information. The packet forwarding table includes: a correspondence between a MAC address of the first FEF and the first FC-ID range. Specifically, after the address allocation unit 1201 allocates the corresponding first Fibre Channel identifier FC-ID range to the first FEF, the information sending unit 1202 sends the first forwarding information corresponding to the first FEF to Said other FEF.

其中, 当 FCS所记录的各个 FEF的 MAC地址与 FC-ID范围的对应关系 发生变化时, FCS也将通知网络中的所有 FEF。 具体的, 当第一 FEF新加入 FCoE网络时, FCS会将该第一 FEF对应的第一转发信息发送至 FCoE网络中 除该第一 FEF之外的其他 FEF, 以使得其他 FEF根据所述第一转发信息更新 所述其他 FEF的报文转发表,所述第一转发信息中包括所述第 ― FEF的 MAC 地址和所述第一 FC-ID范围的对应关系。 这样, 可以使全网中的各 FEF知道 各自负责的 FC-ID范围, 而这个通知具体由 FCS负责。  When the correspondence between the MAC address of each FEF recorded by the FCS and the FC-ID range changes, the FCS will also notify all FEFs in the network. Specifically, when the first FEF is newly added to the FCoE network, the FCS sends the first forwarding information corresponding to the first FEF to other FEFs other than the first FEF in the FCoE network, so that other FEFs are according to the foregoing The forwarding information of the other FEF is updated by the forwarding information, and the first forwarding information includes a correspondence between the MAC address of the first FEF and the first FC-ID range. In this way, each FEF in the entire network can know the FC-ID range that is responsible for each, and this notification is specifically handled by the FCS.

进一步的, 所述信息发送单元 1202, 还用于向所述第一 FEF发送退出信 息, 所述退出信息中包括第二 FEF的 MAC地址, 以使得所述第一 FEF根据 所述退出信息更新所述第一 FEF的报文转发表。 其中, 所述第一 FEF根据所 述退出信息, 更新所述第一 FEF的报文转发表, 具体包括: 所述第一 FEF从 所述第一 FEF的报文转发表中删除所述第二 FEF的 MAC地址对应的转发表 项。 本实施例的 FCS , 通过向第 ― FEF分配对应的第一 FC-ID范围, 并将网 络中其他 FEF的转发信息发送至该第一 FEF,使得第一 FEF能够据此更新才艮 文转发表, 在报文转发表中增加相应的转发表项, 相对于现有技术需要重新 计算全网路由来说, FCoE网络的控制平面的实现更加快速和简单, 降低了控 制平面的实现复杂度。 Further, the information sending unit 1202 is further configured to send the exit information to the first FEF, where the exit information includes a MAC address of the second FEF, so that the first FEF updates the location according to the exit information. A packet forwarding table of the first FEF. The first FEF, according to the exit information, updating the packet forwarding table of the first FEF, specifically: the first FEF deleting the second packet from the packet forwarding table of the first FEF The forwarding entry corresponding to the MAC address of the FEF. The FCS of the embodiment sends a corresponding first FC-ID range to the first FEF, and sends forwarding information of other FEFs in the network to the first FEF, so that the first FEF can update the forwarding table according to the first FEF. The corresponding forwarding entry is added to the packet forwarding table. Compared with the prior art, the control plane of the FCoE network is faster and simpler, and the implementation complexity of the control plane is reduced.

图 13为本发明实施例提供的 FEF的硬件结构示意图, 用于实现如本发 明图 2、 图 3、 图 6和图 8中任一实施例所示的实现 FCoE的方法, 其工作原 理可以参见前述方法实施例。如图 13所示,第一 FEF可以包括:存储器 1301、 处理器 1302、 总线 1303和通信接口 1304。 处理器 1302和存储器 1301和通 信接口 1304之间通过总线 1303连接并完成相互间的通信。处理器 1302可能 为单核或多核中央处理单元(central processing unit, 简称: CPU ) , 或者为 特定集成电路 ( application specific integrated circuit, 简称: ASIC ) , 或者为 被配置成实施本发明实施例的一个或多个集成电路。存储器 1301可以为高速 RAM存储器, 也可以为非易失性存储器( non-volatile memory ) , 例如至少 一个磁盘存储器。  FIG. 13 is a schematic structural diagram of a hardware structure of an FEF according to an embodiment of the present invention. The method for implementing FCoE according to any of the embodiments of FIG. 2, FIG. 3, FIG. 6 and FIG. 8 is implemented. The foregoing method embodiments. As shown in FIG. 13, the first FEF may include a memory 1301, a processor 1302, a bus 1303, and a communication interface 1304. The processor 1302 and the memory 1301 and the communication interface 1304 are connected by a bus 1303 and complete communication with each other. The processor 1302 may be a single-core or multi-core central processing unit (CPU), or an application specific integrated circuit (ASIC), or one configured to implement an embodiment of the present invention. Or multiple integrated circuits. The memory 1301 may be a high speed RAM memory or a non-volatile memory such as at least one disk memory.

其中, 存储器 1301用于存放程序代码, 所述程序代码包括计算机操作指 令;  The memory 1301 is configured to store program code, where the program code includes a computer operation instruction;

所述处理器 1302执行计算机操作指令, 以执行: 通过通信接口 1304接 收 FCS分配的第一 FC-ID范围和所述 FCS发送的转发信息,所述转发信息中 包括:其他 FEF的 MAC地址及所述 FCS分配给所述其他 FEF的 FC-ID范围 的对应关系, 并根据所述转发信息更新所述第一 FEF的报文转发表, 所述报 文转发表中包括 MAC地址与 FC-ID范围的对应关系;  The processor 1302 executes a computer operation instruction to: receive, by using the communication interface 1304, a first FC-ID range allocated by the FCS and forwarding information sent by the FCS, where the forwarding information includes: a MAC address of another FEF and a Determining, by the FCS, the correspondence between the FC-ID ranges of the other FEFs, and updating the packet forwarding table of the first FEF according to the forwarding information, where the packet forwarding table includes a MAC address and an FC-ID range. Correspondence relationship;

所述处理器 1302具体用于根据所述转发信息, 在所述第一 FEF的报文 转发表中记录所述其他 FEF的 MAC地址及 FC-ID范围的对应关系。 所述存 储器 1301 , 还可以用于存储所述第一 FEF的报文转发表, 例如表 2所示。  The processor 1302 is specifically configured to record, according to the forwarding information, a correspondence between a MAC address of the other FEF and an FC-ID range in a packet forwarding table of the first FEF. The memory 1301 may be further configured to store a packet forwarding table of the first FEF, as shown in Table 2.

其中 , FCS在获知第一 FEF新加入 FCoE网络时 , 会为所述第 ― FEF分 配第一 FC-ID范围; 所述第一 FC-ID范围由所述第一 FEF控制, 用于分配给 接入所述第一 FEF的本地节点, 即接入所述第一 FEF的 ENode; 具体的, 所 述第 ― FEF为每个接入所述第 ― FEF的本地节点从所述第 ― FC-ID范围中选 择一个 FC-ID分配给该本地节点, FC-ID则主要用于 FCoE报文在网络中的 寻址转发。 可选的, 上述的 FC-ID范围的表示方式可以有多种, 例如, 以掩 码的方式表示 (1.1.0/16 ) , 或者是从某个 FC-ID开始的连续 n个( n>0 ) 。 The FCS allocates a first FC-ID range for the first FEF when the first FEF is newly added to the FCoE network; the first FC-ID range is controlled by the first FEF, and is used for allocation and connection. a local node that is in the first FEF, that is, an ENode that accesses the first FEF. Specifically, the first FEF is a local node that accesses the first FEF from the first FC-ID. Select an FC-ID to be assigned to the local node in the range, and the FC-ID is mainly used for FCoE packets in the network. Address forwarding. Optionally, the foregoing FC-ID range may be represented by multiple types, for example, by masking (1.1.0/16), or by consecutive n (from a certain FC-ID). 0).

此外 , 假设 FCoE网络中有多个 FEF时, FCS为每个 FEF分配的 FC-ID 范围是不同的, 即不同的 FEF被分配的 FC-ID范围不能重叠; 该 FC-ID范围 不重叠指的是全网唯一。 具体可参见 201 , 在此不再赘述。  In addition, assuming that there are multiple FEFs in the FCoE network, the FCS allocates different FC-ID ranges for each FEF, that is, the FC-ID ranges of different FEFs cannot be overlapped; the FC-ID ranges do not overlap. It is the only one in the whole network. For details, see 201, and details are not described here.

其中, 当 FCoE网络中已存在多个 FEF时, 所述第一 FEF除了接收 FCS 分配的所述第一 FC-ID范围, 还可以接收所述 FCS发送的转发信息, 所述转 发信息中包括其他 FEF的 MAC地址及所述 FCS分配给所述其他 FEF的 FC-ID范围的对应关系。 可以理解的是, 所述信息接收单元 91接收的转发信 息可以是所述第一 FEF新加入 FCoE网络时, FCS保存的、 FCoE网络中已存 在的其他 FEF的转发信息, 也可以是所述第一 FEF加入 FCoE网络后, 有新 的 FEF加入时, 该新的 FEF的转发信息。  The first FEF may receive the forwarding information sent by the FCS, where the forwarding information includes the other ones, in the FCoE network, the first FEF, in addition to receiving the first FC-ID range allocated by the FCS. The MAC address of the FEF and the correspondence between the FCS and the FC-ID range assigned by the FCS to the other FEFs. It can be understood that the forwarding information received by the information receiving unit 91 may be forwarding information of other FEFs existing in the FCoE network that are saved by the FCS when the first FEF is newly added to the FCoE network, and may also be the foregoing After a FEF joins the FCoE network, when a new FEF joins, the new FEF forwards information.

此外 , 当 FCS所记录的各个 FEF的 MAC地址与 FC-ID范围的对应关系 发生变化时, FCS也将通知网络中的所有 FEF。 具体的, 当所述第一 FEF新 加入 FCoE网络时, FCS会将该第一 FEF对应的第一转发信息发送至 FCoE 网络中除该第一 FEF之外的其他 FEF, 以使得其他 FEF根据所述第一转发信 息更新所述其他 FEF的>¾文转发表, 所述第一转发信息中包括所述第一 FEF 的 MAC地址和所述第一 FC-ID范围的对应关系。 这样, 可以使全网中的各 FEF知道各自负责的 FC-ID范围, 而这个通知具体由 FCS负责。  In addition, when the correspondence between the MAC address of each FEF recorded by the FCS and the FC-ID range changes, the FCS will also notify all FEFs in the network. Specifically, when the first FEF is newly added to the FCoE network, the FCS sends the first forwarding information corresponding to the first FEF to other FEFs other than the first FEF in the FCoE network, so that other FEFs are The first forwarding information is used to update the forwarding table of the other FEFs, where the first forwarding information includes a correspondence between a MAC address of the first FEF and the first FC-ID range. In this way, each FEF in the entire network can know the FC-ID range that is responsible for each, and this notification is specifically handled by the FCS.

进一步的, 处理器 1302, 还用于通过通信接口 1304接收第一本地节点 发送的连接请求, 根据所述连接请求, 从所述第一 FC-ID范围中为所述第一 本地节点分配第一节点 FC-ID; 根据所述第一节点 FC-ID, 更新所述报文转 发表; 所述处理器 1302, 具体用于在所述第一 FEF的报文转发表中记录所述 第一本地节点的 MAC地址及所述第一节点 FC-ID的对应关系。  Further, the processor 1302 is further configured to receive, by using the communication interface 1304, a connection request sent by the first local node, and allocate, according to the connection request, the first local node from the first FC-ID range. The node FC-ID is updated according to the first node FC-ID, and the processor 1302 is configured to record the first local in the packet forwarding table of the first FEF. Correspondence between the MAC address of the node and the first node FC-ID.

进一步的, 处理器 1302, 还用于通过通信接口 1304接收所述 FCS发送 的退出信息, 所述退出信息中包括第二 FEF的 MAC地址; 根据所述退出信 息, 更新所述第一 FEF的报文转发表; 其中, 所述第一 FEF根据所述退出信 息, 更新所述第一 FEF的报文转发表, 具体包括: 所述第一 FEF从所述第一 FEF的报文转发表中删除所述第二 FEF的 MAC地址对应的转发表项。  Further, the processor 1302 is further configured to receive, by using the communication interface 1304, the exit information sent by the FCS, where the exit information includes a MAC address of the second FEF, and update the report of the first FEF according to the exit information. The forwarding table of the first FEF is updated according to the exit information, and the first FEF is deleted from the packet forwarding table of the first FEF. The forwarding entry corresponding to the MAC address of the second FEF.

进一步的,处理器 1302,还用于在获取所述 FCS分配的第一 FC-ID范围 之前, 通过通信接口 1304与所述 FCS建立连接; 具体包括: 用于根据静态 配置的 FCS的地址与所述 FCS建立连接; 或者, 通过动态发现方式获取所述 FCS的地址, 并与所述 FCS建立连接。 Further, the processor 1302 is further configured to acquire the first FC-ID range allocated by the FCS The connection to the FCS is established through the communication interface 1304. The method includes: establishing a connection with the FCS according to the statically configured address of the FCS; or acquiring the address of the FCS by using a dynamic discovery manner, and the FCS establish connection.

其中, 由于 FCS负责对 FCoE网络中各 FEF进行控制和管理, 因此每个 新加入网络的 FEF首先要与 FCS建立连接。 具体地, 若所述第一 FEF新加 入 FCoE网络时, 所述第一 FEF首先与所述 FCS建立连接, 再接收所述 FCS 为所述第 ― FEF分配的第一 FC-ID范围。 具体地, 所述第 ― FEF可以通过 TCP或者 UDP与所述 FCS建立连接关系。 这种连接关系的建立可以通过多 种方式, 包括但不限于: 对所述第一 FEF进行静态配置, 所述第一 FEF根据 静态配置的 FCS的地址与所述 FCS建立连接; 通过动态发现方式获取所述 FCS的地址, 并与所述 FCS建立连接。 需要说明的是, 所述第一 FEF与 FCS 之间建立的连接, 通常是逻辑上的连接关系, 当然也可以是物理直连。  Among them, since the FCS is responsible for controlling and managing each FEF in the FCoE network, each FEF newly joined to the network must first establish a connection with the FCS. Specifically, if the first FEF is newly added to the FCoE network, the first FEF first establishes a connection with the FCS, and then receives the first FC-ID range allocated by the FCS for the first “FEF”. Specifically, the first FEF may establish a connection relationship with the FCS by using TCP or UDP. The connection relationship may be established in a plurality of manners, including but not limited to: statically configuring the first FEF, where the first FEF establishes a connection with the FCS according to the statically configured address of the FCS; Obtaining an address of the FCS and establishing a connection with the FCS. It should be noted that the connection established between the first FEF and the FCS is usually a logical connection relationship, and may also be a physical direct connection.

进一步的, 处理器 1302, 还用于通过通信接口 1304接收来自本地节点 的 FCoE报文,并从所述 FCoE报文中获取目的 FC-ID;根据所述目的 FC-ID, 查找所述 4艮文转发表,得到与所述目的 FC-ID对应的目的 FEF的 MAC地址; 将所述目的 FEF的 MAC地址设置为所述 FCoE报文的目的 MAC地址,并发 送所述 FCoE报文。  Further, the processor 1302 is further configured to: receive, by the communication interface 1304, an FCoE packet from the local node, and obtain a destination FC-ID from the FCoE packet; and find the 4艮 according to the destination FC-ID. The forwarding table obtains the MAC address of the destination FEF corresponding to the destination FC-ID; sets the MAC address of the destination FEF to the destination MAC address of the FCoE packet, and sends the FCoE packet.

另外, 处理器 1302除了执行上述方法流程之外, 还可用于执行计算机指 令, 以实现本发明方法实施例中的其他步骤, 在此不再赘述。  In addition, the processor 1302 can be used to execute the computer instructions in addition to the above-described method flow, so as to implement other steps in the method embodiment of the present invention, and details are not described herein again.

本实施例中 , 第一 FEF通过获取 FCS分配的第一 FC-ID范围, 以及网络 中其他 FEF的转发信息, 可以建立报文转发表; 对于其他 FEF也是, 也只需 要获取 FCS分配给新加入 FCoE网络的第一 FEF的第一 FC-ID范围 ,就可以 在报文转发表中增加相应的转发表项, 相对于现有技术需要重新计算全网路 由来说, FCoE网络的控制平面实现更加快速和简单, 降低了控制平面的实现 复杂度。 此外 , 本发明实施例中 , FCoE报文的入口 FEF处根据目的 FC-ID 查找到出口 FEF的 MAC地址, 并直接设置为 FCoE报文的目的 MAC地址, 中间 FEF对 FCoE报文只做转发, 而不做解封装和封装处理, 相对于现有技 术中对 FCoE报文逐跳进行路由、 解封装和封装处理, 本实施例中 FEF的报 文转发处理代价小、 效率高。  In this embodiment, the first FEF can obtain the packet forwarding table by acquiring the first FC-ID range allocated by the FCS and the forwarding information of other FEFs in the network. For other FEFs, only the FCS is required to be allocated to the new join. In the first FC-ID range of the first FEF of the FCoE network, the corresponding forwarding entry can be added to the packet forwarding table. Compared with the prior art, the control plane of the FCoE network is implemented more. Fast and simple, reducing the implementation complexity of the control plane. In addition, in the embodiment of the present invention, the inbound FEF of the FCoE packet finds the MAC address of the egress FEF according to the destination FC-ID, and directly sets the destination MAC address of the FCoE packet, and the intermediate FEF only forwards the FCoE packet. The packet forwarding processing of the FEF in this embodiment is low in cost and high in efficiency, and is not required to perform de-encapsulation and encapsulation processing on the FCoE packet.

图 14为本发明实施例提供的 FCS的硬件结构示意图, 用于实现如本发 明图 4所示的实现 FCoE的方法, 其工作原理参见前述方法实施例。 如图 14 所示, 该 FCS可以包括: 存储器 1401、 处理器 1402、 总线 1403和通信接口 1404。 处理器 1402和存储器 1301和通信接口 1404之间通过总线 1403连接 并完成相互间的通信。 处理器 1402可能为单核或多核中央处理单元(central processing unit, 简称: CPU ) , 或者为特定集成电路 ( application specific integrated circuit, 简称: ASIC ) , 或者为被配置成实施本发明实施例的一个 或多个集成电路。 存储器 1401可以为高速 RAM存储器, 也可以为非易失性 存 4诸器( non- volatile memory ) , 例如至少一个磁盘存 4诸器。 FIG. 14 is a schematic structural diagram of hardware of an FCS according to an embodiment of the present disclosure, where The method for implementing FCoE shown in FIG. 4, the working principle of which is described in the foregoing method embodiment. As shown in FIG. 14, the FCS may include: a memory 1401, a processor 1402, a bus 1403, and a communication interface 1404. The processor 1402 and the memory 1301 and the communication interface 1404 are connected by a bus 1403 and complete communication with each other. The processor 1402 may be a single-core or multi-core central processing unit (CPU), or an application specific integrated circuit (ASIC), or a one configured to implement an embodiment of the present invention. Or multiple integrated circuits. The memory 1401 may be a high speed RAM memory or a non-volatile memory such as at least one disk storage device.

其中, 存储器 1401用于存放程序代码, 所述程序代码包括计算机操作指 令;  The memory 1401 is configured to store program code, where the program code includes a computer operation instruction;

所述处理器 1402执行计算机操作指令, 以执行: 为第一 FEF分配第一 FC-ID范围, 并通过通信接口 1404将所述第一 FC-ID范围、 以及转发信息发 送至所述第一 FEF, 以使得所述第一 FEF更新所述第一 FEF的报文转发表; 所述转发信息中包括:其他 FEF的 MAC地址及所述 FCS分配给所述其他 FEF 的 FC-ID范围的对应关系; 所述 4艮文转发表中包括 MAC地址与 FC-ID范围 的对应关系。  The processor 1402 executes computer operation instructions to: allocate a first FC-ID range for the first FEF, and send the first FC-ID range and forwarding information to the first FEF via the communication interface 1404 And the packet forwarding table of the first FEF is updated by the first FEF, where the forwarding information includes: a MAC address of another FEF and a corresponding relationship between the FCS and the FC-ID range allocated by the FCS to the other FEFs. The corresponding forwarding table includes a correspondence between a MAC address and an FC-ID range.

所述存储器 1401 , 还用于存储所述第一 FC-ID范围。  The memory 1401 is further configured to store the first FC-ID range.

其中,所述第一 FEF根据所述转发信息更新所述第一 FEF的报文转发表, 具体包括: 所述第一 FEF在所述第一 FEF的 ·艮文转发表中记录所述其他 FEF 的 MAC地址及 FC-ID范围的对应关系。  The first FEF updates the packet forwarding table of the first FEF according to the forwarding information, specifically: the first FEF records the other FEF in the first FEF forwarding table. Correspondence between the MAC address and the FC-ID range.

其中 , FCS在获知第一 FEF新加入 FCoE网络时 , 会为所述第 ― FEF分 配第一 FC-ID范围; 所述第一 FC-ID范围由所述第一 FEF控制, 用于分配给 接入所述第一 FEF的本地节点, 即接入所述第一 FEF的 ENode; 具体的, 所 述第 ― FEF为每个接入所述第 ― FEF的本地节点从所述第 ― FC-ID范围中选 择一个 FC-ID分配给该本地节点 , FC-ID则主要用于 FCoE报文在网络中的 寻址转发。 可选的, 上述的 FC-ID范围的表示方式可以有多种, 例如, 以掩 码的方式表示 (1.1.0/16 ) , 或者是从某个 FC-ID开始的连续 n个( n>0 ) 。  The FCS allocates a first FC-ID range for the first FEF when the first FEF is newly added to the FCoE network; the first FC-ID range is controlled by the first FEF, and is used for allocation and connection. a local node that is in the first FEF, that is, an ENode that accesses the first FEF. Specifically, the first FEF is a local node that accesses the first FEF from the first FC-ID. In the range, an FC-ID is selected and assigned to the local node, and the FC-ID is mainly used for addressing and forwarding FCoE packets in the network. Optionally, the foregoing FC-ID range may be represented by multiple types, for example, by masking (1.1.0/16), or by consecutive n (from a certain FC-ID). 0).

此外 , 假设 FCoE网络中有多个 FEF时, FCS为每个 FEF分配的 FC-ID 范围是不同的, 即不同的 FEF被分配的 FC-ID范围不能重叠; 该 FC-ID范围 不重叠指的是全网唯一。 具体可参见 201 , 在此不再赘述。 其中, 当 FCoE网络中已存在多个 FEF时,所述第一 FEF,除了接收 FCS 分配的所述第一 FC-ID范围, 还可以接收所述 FCS发送的转发信息, 所述转 发信息中包括其他 FEF的 MAC地址及所述 FCS分配给所述其他 FEF的 FC-ID范围的对应关系。 可以理解的是, 所述信息接收单元 91接收的转发信 息可以是所述第一 FEF新加入 FCoE网络时, FCS保存的、 FCoE网络中已存 在的其他 FEF的转发信息, 也可以是所述第一 FEF加入 FCoE网络后, 有新 的 FEF加入时, 新加入 FEF的转发信息。 In addition, assuming that there are multiple FEFs in the FCoE network, the FCS allocates different FC-ID ranges for each FEF, that is, the FC-ID ranges of different FEFs cannot be overlapped; the FC-ID ranges do not overlap. It is the only one in the whole network. For details, see 201, and details are not described here. The first FEF, in addition to receiving the first FC-ID range allocated by the FCS, may receive the forwarding information sent by the FCS, where the forwarding information includes The correspondence between the MAC address of the other FEF and the FC-ID range assigned by the FCS to the other FEFs. It can be understood that the forwarding information received by the information receiving unit 91 may be forwarding information of other FEFs existing in the FCoE network that are saved by the FCS when the first FEF is newly added to the FCoE network, and may also be the foregoing After an FEF joins the FCoE network, when a new FEF joins, the forwarding information of the new FEF is added.

进一步的, 处理器 1402, 还用于通过通信接口 1404将所述第一 FEF对 应的第一转发信息发送至所述其他 FEF, 以使得所述其他 FEF根据所述第一 转发信息更新所述其他?£?的>¾文转发表; 所述第一转发信息包括: 所述第 一 FEF的 MAC地址与所述第一 FC-ID范围的对应关系。  Further, the processor 1402 is further configured to send, by using the communication interface 1404, the first forwarding information corresponding to the first FEF to the other FEF, so that the other FEF updates the other according to the first forwarding information. ? The first forwarding information includes: a correspondence between a MAC address of the first FEF and the first FC-ID range.

其中, 当 FCS所记录的各个 FEF的 MAC地址与 FC-ID范围的对应关系 发生变化时, FCS也将通知网络中的所有 FEF。 具体的, 当第一 FEF新加入 FCoE网络时, FCS会将该第一 FEF对应的第一转发信息发送至 FCoE网络中 除该第一 FEF之外的其他 FEF, 以使得其他 FEF根据所述第一转发信息更新 所述其他 FEF的报文转发表,所述第一转发信息中包括所述第 ― FEF的 MAC 地址和所述第一 FC-ID范围的对应关系。 这样, 可以使全网中的各 FEF知道 各自负责的 FC-ID范围, 而这个通知具体由 FCS负责。  When the correspondence between the MAC address of each FEF recorded by the FCS and the FC-ID range changes, the FCS will also notify all FEFs in the network. Specifically, when the first FEF is newly added to the FCoE network, the FCS sends the first forwarding information corresponding to the first FEF to other FEFs other than the first FEF in the FCoE network, so that other FEFs are according to the foregoing The forwarding information of the other FEF is updated by the forwarding information, and the first forwarding information includes a correspondence between the MAC address of the first FEF and the first FC-ID range. In this way, each FEF in the entire network can know the FC-ID range that is responsible for each, and this notification is specifically handled by the FCS.

进一步的, 处理器 1402还用于向所述第一 FEF发送退出信息, 所述退 出信息中包括第二 FEF的 MAC地址, 以使得所述第一 FEF根据所述退出信 息更新所述第一 FEF的报文转发表;其中,所述第一 FEF根据所述退出信息, 更新所述第一 FEF的报文转发表, 具体包括: 所述第一 FEF从所述第一 FEF 的报文转发表中删除所述第二 FEF的 MAC地址对应的转发表项。  Further, the processor 1402 is further configured to send the exit information to the first FEF, where the exit information includes a MAC address of the second FEF, so that the first FEF updates the first FEF according to the exit information. The packet forwarding table, wherein the first FEF updates the packet forwarding table of the first FEF according to the exit information, specifically: the packet forwarding table of the first FEF from the first FEF The forwarding entry corresponding to the MAC address of the second FEF is deleted.

另外, 处理器 1402除了执行上述方法流程之外, 还可用于执行计算机指 令, 以实现本发明方法实施例中的其他步骤, 在此不再赘述。  In addition, the processor 1402 can be used to execute the computer instructions in addition to the above-described method flow, so as to implement other steps in the method embodiment of the present invention, and details are not described herein again.

本实施例的 FCS, 通过向第一 FEF分配第一 FC-ID范围, 并将网络中其 他 FEF的转发信息发送至该第一 FEF,使得该第一 FEF能够据此更新 文转 发表, 在报文转发表中增加相应的转发表项, 相对于现有技术需要重新计算 全网路由来说, FCoE网络的控制平面的实现更加快速和简单, 降低了控制平 面的实现复杂度。 本发明实施例还提供了一种实现以太光纤通道 FCoE的系统, 所述系统 中包括 FCS和 FEF两种功能实体。 其中, FCS参与 FCoE网络的控制平面和 管理平面的运作, 不参与 FCoE网络的数据平面的转发; 用于集中控制和管 理 FEF, 下发相关信令和参数给 FEF。 FEF用于接收 FCS的控制和管理, 从 FCS接收相关的信令和参数; 还用于生成报文转发表, 根据该报文转发表进 行 FCoE报文的转发, 即完成 FCoE网络的数据平面的转发。 The FCS of the present embodiment, by allocating the first FC-ID range to the first FEF, and transmitting the forwarding information of other FEFs in the network to the first FEF, so that the first FEF can update the text forwarding table according to the The corresponding forwarding entry is added to the forwarding table. Compared with the prior art, the control plane of the FCoE network is faster and simpler, and the implementation complexity of the control plane is reduced. An embodiment of the present invention further provides a system for implementing Ethernet Fibre Channel FCoE, where the system includes two functional entities, FCS and FEF. The FCS participates in the operation of the control plane and the management plane of the FCoE network, and does not participate in the forwarding of the data plane of the FCoE network. It is used to centrally control and manage the FEF, and send relevant signaling and parameters to the FEF. The FEF is used to receive the control and management of the FCS, and receive the relevant signaling and parameters from the FCS. It is also used to generate a packet forwarding table. The FCoE packet is forwarded according to the packet forwarding table, that is, the data plane of the FCoE network is completed. Forward.

具体地, FEF的功能和结构如本发明图 9至图 11和图 13中任一实施例 所述; FCS的功能和结构如本发明图 12和图 14任一实施例所述。 该 FCS控 制和管理 FEF,例如可以形成图 1或者图 3或者其他的组网形式。 FEF和 FCS 的结构和工作原理可以结合参见本发明的方法实施例以及装置实施例, 在此 不再赘述。 以图 1为例, 新加入 FCoE网络中的第一 FEF , 与负责主控制的 FCS1建立连接, 并获取 FCS1下发的第一 FC-ID范围, 还接收 FCS1下发的 转发信息, 所述转发信息中包括: 其他 FEF的 MAC地址及所述 FCS分配给 所述其他 FEF的 FC-ID范围的对应关系; 根据该转发信息更新用于转发 ·艮文 的报文转发表, 具体包括: 所述第一 FEF在所述第一 FEF的报文转发表中记 录所述其他 FEF的 MAC地址及 FC-ID范围的对应关系; 然后根据 4艮文转发 表转发 FCoE报文。 FCS1还可以将该第一 FEF对应的第一转发信息发送给 FCoE网络中的除第一 FEF之外的其他 FEF , 以使得其他 FEF据此更新其报 文转发表, 比如增加该新加入的第 ― FEF对应的转发表项, 该转发表项包括 第一 FEF的 MAC地址与第一 FC-ID范围的对应关系。  Specifically, the function and structure of the FEF are as described in any of the embodiments of Figs. 9 to 11 and Fig. 13 of the present invention; the function and structure of the FCS are as described in any of Figs. 12 and 14 of the present invention. The FCS controls and manages the FEF, for example, to form Figure 1 or Figure 3 or other networking forms. The structure and working principle of the FEF and the FCS can be combined with reference to the method embodiment and the device embodiment of the present invention, and details are not described herein again. As shown in FIG. 1 , the first FEF newly added to the FCoE network establishes a connection with the FCS1 responsible for the main control, and obtains the first FC-ID range delivered by the FCS1, and also receives the forwarding information delivered by the FCS1, and the forwarding is performed. The information includes: a MAC address of another FEF and a correspondence between the FCS and the FC-ID range allocated by the FCS; and the message forwarding table used for forwarding the message according to the forwarding information, specifically: The first FEF records the correspondence between the MAC address of the other FEF and the FC-ID range in the packet forwarding table of the first FEF; and then forwards the FCoE packet according to the forwarding table. The FCS1 may also send the first forwarding information corresponding to the first FEF to other FEFs other than the first FEF in the FCoE network, so that other FEFs update their message forwarding table according to the information, for example, adding the newly added ― A forwarding entry corresponding to the FEF, where the forwarding entry includes a correspondence between a MAC address of the first FEF and a first FC-ID range.

釆用该系统实现 FCoE , 第一 FEF通过获取 FCS分配的 FC-ID范围, 以 及网络中其他 FEF的转发信息, 可以建立报文转发表; 对于其他 FEF也是, 也只需要获取 FCS分配给新加入 FCoE网络的第一 FEF的第一 FC-ID范围 , 就可以在报文转发表中增加相应的转发表项, 相对于现有技术需要重新计算 全网路由来说, FCoE网络的控制平面实现更加快速和简单, 降低了控制平面 的实现复杂度; 此外, 本发明实施例中, FCoE报文的入口 FEF处根据目的 FC-ID查找到出口 FEF的 MAC地址, 并直接设置为 FCoE报文的目的 MAC 地址, 中间 FEF对 FCoE报文只做转发, 而不做解封装和封装处理, 相对于 现有技术中对 FCoE报文逐跳进行路由、解封装和封装处理,本实施例中 FEF 的报文转发处理代价小、 效率高。 本领域普通技术人员可以理解: 实现上述方法实施例的全部或部分步骤 可以通过程序指令相关的硬件来完成, 前述的程序可以存储于一计算机可读 取存储介质中, 该程序在执行时, 执行包括上述方法实施例的步骤; 而前述 的存储介质包括: ROM, RAM, 磁碟或者光盘等各种可以存储程序代码的介 质。 The FCoE is implemented by the system. The first FEF can obtain the packet forwarding table by obtaining the FC-ID range allocated by the FCS and the forwarding information of other FEFs in the network. For other FEFs, only the FCS is required to be added to the new join. The first FC-ID range of the first FEF of the FCoE network can add a corresponding forwarding entry in the packet forwarding table. Compared with the prior art, the control plane of the FCoE network is implemented more. It is fast and simple, and reduces the implementation complexity of the control plane. In addition, in the embodiment of the present invention, the FEF of the FCoE packet finds the MAC address of the egress FEF according to the destination FC-ID, and directly sets the FCoE packet as the destination. The MAC address, the intermediate FEF forwards the FCoE packet only, and does not perform decapsulation and encapsulation processing. Compared with the prior art, the FCoE packet is hop-by-hop, decapsulated, and encapsulated. Text forwarding processing is costly and efficient. A person skilled in the art can understand that all or part of the steps of implementing the above method embodiments may be completed by using hardware related to program instructions, and the foregoing program may be stored in a computer readable storage medium, and the program is executed when executed. The method includes the steps of the foregoing method embodiments; and the foregoing storage medium includes: a medium that can store program codes, such as a ROM, a RAM, a magnetic disk, or an optical disk.

最后应说明的是: 以上各实施例仅用以说明本发明的技术方案, 而非对 其限制; 尽管参照前述各实施例对本发明进行了详细的说明, 本领域的普通 技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改, 或者对其中部分或者全部技术特征进行等同替换; 而这些修改或者替换, 并 不使相应技术方案的本质脱离本发明各实施例技术方案的范围。  Finally, it should be noted that the above embodiments are only for explaining the technical solutions of the present invention, and are not intended to be limiting thereof; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art will understand that The technical solutions described in the foregoing embodiments may be modified, or some or all of the technical features may be equivalently replaced; and the modifications or substitutions do not deviate from the technical solutions of the embodiments of the present invention. range.

Claims

权 利 要 求 书 claims 1、 一种实现以太网光纤通道 FCoE的方法, 应用于 FCoE网络, 其特征 在于, 所述 FCoE网络包括光纤通道控制平面服务器 FCS和至少一个光纤通 道边缘转发器 FEF, 所述至少一个 FEF中包括第一 FEF; 所述方法包括: 所述第一 FEF接收所述 FCS分配的第一光纤通道标识 FC-ID范围;还接 收所述 FCS发送的转发信息, 所述转发信息中包括: 其他 FEF的介质访问控 制 MAC地址及所述 FCS分配给所述其他 FEF的 FC-ID范围的对应关系; 所述第一 FEF根据所述转发信息, 更新所述第一 FEF的报文转发表, 所 述才艮文转发表中包括 MAC地址与 FC-ID范围的对应关系; 1. A method for implementing Fiber Channel over Ethernet FCoE, applied to FCoE networks, characterized in that the FCoE network includes a Fiber Channel control plane server FCS and at least one Fiber Channel edge forwarder FEF, and the at least one FEF includes The first FEF; the method includes: the first FEF receives the first fiber channel identification FC-ID range allocated by the FCS; and also receives the forwarding information sent by the FCS, and the forwarding information includes: other FEF's The corresponding relationship between the media access control MAC address and the FC-ID range assigned by the FCS to the other FEF; The first FEF updates the message forwarding table of the first FEF based on the forwarding information, and the first FEF updates the message forwarding table of the first FEF. The text forwarding table includes the corresponding relationship between the MAC address and the FC-ID range; 其中, 所述第一 FEF根据所述转发信息, 更新所述第一 FEF的报文转发 表, 具体包括: 所述第一 FEF根据所述转发信息, 在所述第一 FEF的报文转 发表中记录所述其他 FEF的 MAC地址及 FC-ID范围的对应关系。 Wherein, the first FEF updates the message forwarding table of the first FEF according to the forwarding information, which specifically includes: the first FEF updates the message forwarding table of the first FEF according to the forwarding information. The corresponding relationship between the MAC addresses and FC-ID ranges of other FEFs is recorded in . 2、 根据权利要求 1所述的方法, 其特征在于, 在所述第一 FEF获取所 述 FCS分配的第一 FC-ID范围之后, 所述方法还包括: 2. The method according to claim 1, characterized in that, after the first FEF obtains the first FC-ID range allocated by the FCS, the method further includes: 所述第一 FEF接收第一本地节点发送的连接请求; The first FEF receives the connection request sent by the first local node; 所述第 ― FEF根据所述连接请求, 从所述第 ― FC-ID范围中为所述第 ― 本地节点分配第一节点 FC-ID; The -th FEF allocates the first node FC-ID to the -th local node from the -th FC-ID range according to the connection request; 所述 FEF根据所述第一节点 FC-ID, 更新所述第 ― FEF的 ·艮文转发表; 其中, 所述 FEF根据所述第一节点 FC-ID, 更新所述第一 FEF的 ·艮文转 发表, 具体包括: 所述第一 FEF根据所述第一节点 FC-ID, 在所述第一 FEF 的 ·艮文转发表中记录所述第一本地节点的 MAC地址及所述第一节点 FC-ID 的对应关系。 The FEF updates the text forwarding table of the first FEF based on the first node FC-ID; wherein, the FEF updates the text forwarding table of the first FEF based on the first node FC-ID. The text forwarding table specifically includes: the first FEF records the MAC address of the first local node and the first local node in the text forwarding table of the first FEF according to the first node FC-ID. Correspondence of node FC-ID. 3、 根据权利要求 1或 2所述的方法, 其特征在于, 所述方法还包括: 所 述第 ― FEF接收所述 FCS发送的退出信息, 所述退出信息中包括第二 FEF 的 MAC地址; 3. The method according to claim 1 or 2, characterized in that the method further includes: the first FEF receiving the exit information sent by the FCS, and the exit information includes the MAC address of the second FEF; 所述第一 FEF根据所述退出信息, 更新所述第一 FEF的报文转发表; 其中, 所述第一 FEF根据所述退出信息, 更新所述第一 FEF的报文转发 表, 具体包括: 所述第一 FEF根据所述退出信息, 从所述第一 FEF的报文转 发表中删除所述第二 FEF的 MAC地址对应的转发表项。 The first FEF updates the message forwarding table of the first FEF according to the exit information; wherein the first FEF updates the message forwarding table of the first FEF according to the exit information, specifically including: : The first FEF deletes the forwarding table entry corresponding to the MAC address of the second FEF from the packet forwarding table of the first FEF according to the exit information. 4、 根据权利要求 1〜3任一所述的方法, 其特征在于, 在所述第一 FEF 获取所述 FCS分配的第一光纤通道标识 FC-ID范围之前, 所述方法还包括: 所述第一 FEF与所述 FCS建立连接; 所述第一 FEF与所述 FCS建立连接具 体包括: 4. The method according to any one of claims 1 to 3, characterized in that, in the first FEF Before obtaining the first fiber channel identification FC-ID range allocated by the FCS, the method further includes: establishing a connection between the first FEF and the FCS; establishing a connection between the first FEF and the FCS specifically includes: 所述第一 FEF被静态配置 FCS地址, 并根据所述 FCS地址与所述 FCS 建立连接; 或者, The first FEF is statically configured with an FCS address, and establishes a connection with the FCS according to the FCS address; or, 所述第一 FEF通过动态发现方式获取所述 FCS地址, 并与所述 FCS建 立连接。 The first FEF obtains the FCS address through dynamic discovery and establishes a connection with the FCS. 5、 根据权利要求 1〜4任一所述的方法, 其特征在于, 所述方法还包括: 所述第 ― FEF接收来自本地节点的 FCoE报文; 5. The method according to any one of claims 1 to 4, characterized in that the method further includes: the -th FEF receiving an FCoE message from the local node; 从所述 FCoE报文中获取目的 FC-ID; Obtain the destination FC-ID from the FCoE message; 所述第一 FEF根据所述目的 FC-ID, 查找所述第一 FEF的报文转发表, 得到与所述目的 FC-ID对应的目的 FEF的 MAC地址; The first FEF searches the message forwarding table of the first FEF according to the destination FC-ID, and obtains the MAC address of the destination FEF corresponding to the destination FC-ID; 所述第 ― FEF将所述目的 FEF的 MAC地址设置为所述 FCoE报文的目 的 MAC地址 , 发送所述 FCoE报文。 The first FEF sets the MAC address of the destination FEF as the destination MAC address of the FCoE message, and sends the FCoE message. 6、 一种实现以太网光纤通道 FCoE的方法, 应用于 FCoE网络, 其特征 在于, 所述 FCoE网络包括光纤通道控制平面服务器 FCS和至少一个光纤通 道边缘转发器 FEF, 所述至少一个 FEF中包括第一 FEF; 所述方法包括: 所述 FCS为所述第一 FEF分配第一光纤通道标识 FC-ID范围; 所述 FCS将所述第一 FC-ID范围、 以及转发信息发送至所述第一 FEF, 以使得所述第一 FEF根据所述转发信息更新所述第一 FEF的报文转发表; 所 述转发信息中包括: 其他 FEF的介质访问控制 MAC地址及所述 FCS分配给 所述其他 FEF的 FC-ID范围的对应关系; 所述 4艮文转发表中包括 MAC地址 与 FC-ID范围的对应关系。 6. A method for implementing Fiber Channel over Ethernet FCoE, applied to FCoE networks, characterized in that the FCoE network includes a Fiber Channel control plane server FCS and at least one Fiber Channel edge repeater FEF, and the at least one FEF includes the first FEF; the method includes: the FCS allocates a first fiber channel identification FC-ID range to the first FEF; the FCS sends the first FC-ID range and forwarding information to the first FEF. A FEF, so that the first FEF updates the packet forwarding table of the first FEF according to the forwarding information; the forwarding information includes: the media access control MAC addresses of other FEFs and the FCS assigned to the Correspondence between FC-ID ranges of other FEFs; The text forwarding table includes a correspondence between MAC addresses and FC-ID ranges. 7、 根据权利要求 6所述的方法, 其特征在于, 在所述 FCS为所述第一 FEF分配第一 FC-ID范围之后, 所述方法还包括: 7. The method according to claim 6, wherein after the FCS allocates the first FC-ID range to the first FEF, the method further includes: 所述 FCS将所述第一 FEF对应的第一转发信息发送至所述其他 FEF, 以 使得所述其他 FEF根据所述第一转发信息更新所述其他 FEF的报文转发表, 所述第一转发信息中包括: 所述第 ― FEF的 MAC地址和所述第 ― FC-ID范 围的对应关系。 The FCS sends the first forwarding information corresponding to the first FEF to the other FEFs, so that the other FEFs update the message forwarding tables of the other FEFs according to the first forwarding information, and the first The forwarding information includes: the correspondence relationship between the MAC address of the -th FEF and the -th FC-ID range. 8、 根据权利要求 6或 7所述的方法, 其特征在于, 所述方法还包括: 所述 FCS向所述第一 FEF发送退出信息,所述退出信息中包括第二 FEF 的 MAC地址, 以使得所述第一 FEF根据所述退出信息更新所述第一 FEF的 报文转发表。 8. The method according to claim 6 or 7, characterized in that, the method further includes: The FCS sends exit information to the first FEF, where the exit information includes the MAC address of the second FEF, so that the first FEF updates the packet forwarding table of the first FEF according to the exit information. 9、 一种光纤通道边缘转发器 FEF, 其特征在于, 包括: 9. A fiber channel edge repeater FEF, which is characterized by including: 信息接收单元, 用于接收光纤通道控制平面服务器 FCS分配的第一光纤 通道标识 FC-ID范围; 还接收所述 FCS发送的转发信息, 所述转发信息中包 括:其他 FEF的介质访问控制 MAC地址及所述 FCS分配给所述其他 FEF的 FC-ID范围的对应关系; An information receiving unit, configured to receive the first fiber channel identification FC-ID range assigned by the fiber channel control plane server FCS; and also receive the forwarding information sent by the FCS, where the forwarding information includes: the media access control MAC address of other FEFs and the corresponding relationship between the FC-ID ranges assigned by the FCS to the other FEFs; 转发表更新单元,用于根据所述转发信息,更新所述 FEF的报文转发表, 所述报文转发表中包括 MAC地址与 FC-ID范围的对应关系; 具体用于根据 所述转发信息, 在所述 FEF的报文转发表中记录所述其他 FEF的 MAC地址 及 FC-ID范围的对应关系。 A forwarding table update unit, configured to update the message forwarding table of the FEF according to the forwarding information. The message forwarding table includes the correspondence between the MAC address and the FC-ID range; specifically used to update the message forwarding table according to the forwarding information. , record the corresponding relationship between the MAC address and the FC-ID range of the other FEF in the message forwarding table of the FEF. 10、 根据权利要求 9所述的 FEF, 其特征在于, 还包括: 10. The FEF according to claim 9, further comprising: 请求接收单元, 用于接收第一本地节点发送的连接请求; A request receiving unit, configured to receive a connection request sent by the first local node; 地址分配单元, 用于根据所述连接请求, 从所述第一 FC-ID范围中为所 述第一本地节点分配第一节点 FC-ID; An address allocation unit, configured to allocate a first node FC-ID from the first FC-ID range to the first local node according to the connection request; 所述转发表更新单元, 还用于根据所述第一节点 FC-ID, 更新所述 FEF 的报文转发表; 具体用于根据所述第一节点 FC-ID, 在所述 FEF的报文转发 表中记录所述第一本地节点的 MAC地址及所述第一节点 FC-ID的对应关系。 The forwarding table update unit is also used to update the message forwarding table of the FEF according to the first node FC-ID; specifically used to update the message forwarding table of the FEF according to the first node FC-ID. The forwarding table records the corresponding relationship between the MAC address of the first local node and the FC-ID of the first node. 11、 根据权利要求 9或 10所述的 FEF, 其特征在于, 11. The FEF according to claim 9 or 10, characterized in that, 所述信息接收单元, 还用于接收所述 FCS发送的退出信息, 所述退出信 息中包括第二 FEF的 MAC地址; The information receiving unit is also configured to receive exit information sent by the FCS, where the exit information includes the MAC address of the second FEF; 所述转发表更新单元, 还用于根据所述退出信息, 更新所述第一 FEF的 报文转发表; 具体用于根据所述退出信息, 从所述第一 FEF的报文转发表中 删除所述第二 FEF的 MAC地址对应的转发表项。 The forwarding table update unit is also configured to update the message forwarding table of the first FEF based on the exit information; specifically, delete the message forwarding table of the first FEF based on the exit information. The forwarding table entry corresponding to the MAC address of the second FEF. 12、 根据权利要求 9〜11任一所述的 FEF, 其特征在于, 还包括: 连接处理单元,用于与所述 FCS建立连接;具体用于根据静态配置的 FCS 地址与所述 FCS建立连接; 或者, 通过动态发现方式获取所述 FCS地址, 并 与所述 FCS建立连接。 12. The FEF according to any one of claims 9 to 11, further comprising: a connection processing unit, used to establish a connection with the FCS; specifically used to establish a connection with the FCS according to a statically configured FCS address. ; Or, obtain the FCS address through dynamic discovery and establish a connection with the FCS. 13、 根据权利要求 9〜12任一所述的 FEF, 其特征在于, 还包括: 报文转 发单元,用于接收来自本地节点的 FCoE报文,并从所述 FCoE报文中获取目 的 FC-ID; 根据所述目的 FC-ID, 查找所述 FEF的报文转发表, 得到与所述 目的 FC-ID对应的目的 FEF的 MAC地址; 将所述目的 FEF的 MAC地址设 置为所述 FCoE报文的目的 MAC地址, 并发送所述 FCoE报文。 13. The FEF according to any one of claims 9 to 12, further comprising: message transfer The sending unit is used to receive the FCoE message from the local node and obtain the destination FC-ID from the FCoE message; according to the destination FC-ID, search the message forwarding table of the FEF to obtain the message forwarding table of the FEF. The MAC address of the destination FEF corresponding to the destination FC-ID; Set the MAC address of the destination FEF as the destination MAC address of the FCoE message, and send the FCoE message. 14、 一种光纤通道控制平面服务器 FCS, 其特征在于, 包括: 14. A fiber channel control plane server FCS, characterized by including: 地址分配单元, 用于为第一 FEF分配第一光纤通道标识 FC-ID范围; 信息发送单元, 用于将所述第一 FC-ID范围、 以及转发信息发送至所述 第一 FEF, 以使得所述第一 FEF根据所述转发信息更新所述第一 FEF的报文 转发表, 所述转发信息中包括: 其他 FEF的介质访问控制 MAC地址及所述 FCS分配给所述其他 FEF的 FC-ID范围的对应关系, 所述 4艮文转发表中包括 MAC地址与 FC-ID范围的对应关系。 An address allocation unit, configured to allocate a first fiber channel identification FC-ID range to the first FEF; an information sending unit, configured to send the first FC-ID range and forwarding information to the first FEF, so that The first FEF updates the packet forwarding table of the first FEF according to the forwarding information. The forwarding information includes: the media access control MAC address of other FEFs and the FC- assigned by the FCS to the other FEFs. The corresponding relationship between the ID range and the text forwarding table includes the corresponding relationship between the MAC address and the FC-ID range. 15、 根据权利要求 14所述的 FCS, 其特征在于, 15. The FCS according to claim 14, characterized in that, 所述信息发送单元, 还用于将所述第一 FEF对应的第一转发信息发送至 所述其他 FEF ,以使得所述其他 FEF根据所述第一转发信息更新所述其他 FEF 的报文转发表, 所述第一转发信息中包括: 所述第一 FEF的 MAC地址和所 述第一 FC-ID范围的对应关系。 The information sending unit is also configured to send the first forwarding information corresponding to the first FEF to the other FEFs, so that the other FEFs update the message forwarding of the other FEFs according to the first forwarding information. Posted, the first forwarding information includes: a correspondence relationship between the MAC address of the first FEF and the first FC-ID range. 16、 根据权利要求 14或 15所述的 FCS, 其特征在于, 16. The FCS according to claim 14 or 15, characterized in that, 所述信息发送单元, 还用于向所述第一 FEF发送退出信息, 所述退出信 息中包括第二 FEF的 MAC地址, 以使得所述第一 FEF根据所述退出信息更 新所述第 ― FEF的报文转发表。 The information sending unit is also configured to send exit information to the first FEF, where the exit information includes the MAC address of the second FEF, so that the first FEF updates the -th FEF according to the exit information. message forwarding table. 17、 一种实现以太网光纤通道 FCoE的系统, 其特征在于, 包括至少一 个如权利要求 9至 13中任一项所述的光纤通道边缘转发器 FEF、 以及如权利 要求 14至 16中任一项所述的光纤通道控制平面服务器 FCS。 17. A system for implementing Fiber Channel over Ethernet FCoE, characterized in that it includes at least one Fiber Channel edge repeater FEF according to any one of claims 9 to 13, and a fiber channel edge forwarder FEF according to any one of claims 14 to 16. Fiber Channel control plane server FCS.
PCT/CN2013/074269 2013-04-16 2013-04-16 Method, device and system for realizing fcoe Ceased WO2014169439A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2013/074269 WO2014169439A1 (en) 2013-04-16 2013-04-16 Method, device and system for realizing fcoe
CN201380000224.6A CN104350710B (en) 2013-04-16 2013-04-16 Method, device and system for realizing FCoE

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2013/074269 WO2014169439A1 (en) 2013-04-16 2013-04-16 Method, device and system for realizing fcoe

Publications (1)

Publication Number Publication Date
WO2014169439A1 true WO2014169439A1 (en) 2014-10-23

Family

ID=51730677

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2013/074269 Ceased WO2014169439A1 (en) 2013-04-16 2013-04-16 Method, device and system for realizing fcoe

Country Status (2)

Country Link
CN (1) CN104350710B (en)
WO (1) WO2014169439A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107241271A (en) * 2017-06-19 2017-10-10 联想(北京)有限公司 A kind of data processing method and the network equipment
CN112333074A (en) * 2020-10-30 2021-02-05 新华三信息技术有限公司 Fiber channel message processing method, device, equipment and machine readable storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101631076B (en) * 2009-08-21 2011-06-08 杭州华三通信技术有限公司 Message transmission control method and fiber channel over Ethernet protocol system
CN102209023A (en) * 2010-03-31 2011-10-05 成都市华为赛门铁克科技有限公司 Fiber channel over Ethernet (FCoE) communication connection establishment method, device, name server and system
CN102427410A (en) * 2011-12-02 2012-04-25 北京星网锐捷网络技术有限公司 Method, device and system for processing fiber channel identity, and network equipment
US20120106957A1 (en) * 2010-05-11 2012-05-03 Brocade Communications Systems, Inc. Single Virtual Domain Fibre Channel over Ethernet Fabric
CN102647338A (en) * 2012-02-03 2012-08-22 华为技术有限公司 Network communication method and equipment
CN102714668A (en) * 2010-01-19 2012-10-03 思科技术公司 Distributed virtual fibre channel over Ethernet forwarder
CN102833287A (en) * 2011-06-16 2012-12-19 为数字技术(成都)有限公司 Distributed file system and method for visiting data resource in distributed system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8989009B2 (en) * 2011-04-29 2015-03-24 Futurewei Technologies, Inc. Port and priority based flow control mechanism for lossless ethernet

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101631076B (en) * 2009-08-21 2011-06-08 杭州华三通信技术有限公司 Message transmission control method and fiber channel over Ethernet protocol system
CN102714668A (en) * 2010-01-19 2012-10-03 思科技术公司 Distributed virtual fibre channel over Ethernet forwarder
CN102209023A (en) * 2010-03-31 2011-10-05 成都市华为赛门铁克科技有限公司 Fiber channel over Ethernet (FCoE) communication connection establishment method, device, name server and system
US20120106957A1 (en) * 2010-05-11 2012-05-03 Brocade Communications Systems, Inc. Single Virtual Domain Fibre Channel over Ethernet Fabric
CN102833287A (en) * 2011-06-16 2012-12-19 为数字技术(成都)有限公司 Distributed file system and method for visiting data resource in distributed system
CN102427410A (en) * 2011-12-02 2012-04-25 北京星网锐捷网络技术有限公司 Method, device and system for processing fiber channel identity, and network equipment
CN102647338A (en) * 2012-02-03 2012-08-22 华为技术有限公司 Network communication method and equipment

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107241271A (en) * 2017-06-19 2017-10-10 联想(北京)有限公司 A kind of data processing method and the network equipment
CN107241271B (en) * 2017-06-19 2020-02-21 联想(北京)有限公司 Data processing method and network equipment
CN112333074A (en) * 2020-10-30 2021-02-05 新华三信息技术有限公司 Fiber channel message processing method, device, equipment and machine readable storage medium
CN112333074B (en) * 2020-10-30 2023-04-18 新华三信息技术有限公司 Fiber channel message processing method, device, equipment and machine readable storage medium

Also Published As

Publication number Publication date
CN104350710B (en) 2017-12-08
CN104350710A (en) 2015-02-11

Similar Documents

Publication Publication Date Title
CN105812259B (en) A kind of message forwarding method and equipment
CN108989213A (en) It is arranged using the selected structural path transmission LSP between dummy node
CN108989203A (en) Selected structural path of the notice for the service routing in dummy node
CN108989202A (en) The forwarding based on structural path context for dummy node
WO2017162095A1 (en) Communication method, device and system based on flow specification protocol
US10187293B2 (en) Apparatus and method for multicast data packet forwarding
WO2022001669A1 (en) Method for establishing vxlan tunnel, and related device
CN106487695A (en) A kind of data transmission method, virtual network managing device and data transmission system
JP6206508B2 (en) Packet transfer device, control device, communication system, communication method, and program
CN103220215B (en) The retransmission method of FCoE message and device in TRILL network
CN107094110B (en) DHCP message forwarding method and device
WO2018214809A1 (en) Message transmission method and device, and storage medium
CN111147372B (en) Downlink message sending and forwarding method and device
WO2013107245A1 (en) Method, device and system for implementing multicast in transparent interconnection of lots of links (trill) campus
JP7314219B2 (en) DATA TRANSMISSION METHOD, APPARATUS AND NETWORK DEVICE
CN103166826A (en) Method and apparatus for implementing fiber channel zone policies
US9438475B1 (en) Supporting relay functionality with a distributed layer 3 gateway
CN105075197B (en) Communication system, control device, communication means and program
US10257118B2 (en) Implementation method and device for VLAN to access VF network, and FCF
CN103095579B (en) TRILL network interconnected method, Apparatus and system
WO2019240158A1 (en) Communication system and communication method
WO2014169439A1 (en) Method, device and system for realizing fcoe
CN114221895A (en) Data transmission method, device and network equipment
WO2018121443A1 (en) Message transmission method and device
CN108259292B (en) Method and device for establishing tunnel

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: 13882326

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: 13882326

Country of ref document: EP

Kind code of ref document: A1