WO2013034037A1 - Communication method, system and apparatus applied to fibre channel over ethernet scenario - Google Patents

Communication method, system and apparatus applied to fibre channel over ethernet scenario Download PDF

Info

Publication number
WO2013034037A1
WO2013034037A1 PCT/CN2012/079638 CN2012079638W WO2013034037A1 WO 2013034037 A1 WO2013034037 A1 WO 2013034037A1 CN 2012079638 W CN2012079638 W CN 2012079638W WO 2013034037 A1 WO2013034037 A1 WO 2013034037A1
Authority
WO
WIPO (PCT)
Prior art keywords
fcoe
initiator
target
request message
direct communication
Prior art date
Application number
PCT/CN2012/079638
Other languages
French (fr)
Chinese (zh)
Inventor
高⋅迈克尔⋅A.
孟健
王雨晨
刘利锋
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2013034037A1 publication Critical patent/WO2013034037A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L12/407Bus networks with decentralised control
    • H04L12/413Bus networks with decentralised control with random access, e.g. carrier-sense multiple-access with collision detection [CSMA-CD]

Definitions

  • the present invention relates to the field of data transmission technologies, and in particular, to a fiber channel for Ethernet application.
  • FCoE Fibre Channel over Ethernet
  • FCoE is an American National Standards Institute (ANSI, American National Standards Institute)
  • FC-BB-5 contains the FCoE protocol used by each node in FCoE technology.
  • FC-BB-5 contains the FCoE protocol used by each node in FCoE technology.
  • FCoE protocol is suitable for networks with low latency and high performance.
  • FCoE uses enhanced Ethernet, such as Lossless Ethernet as the physical network transmission architecture, to provide standard Fibre Channel payloads and avoid Transmission Control Protocol/Internet Protocol (TCP/IP). Discuss expenses.
  • enhanced Ethernet such as Lossless Ethernet as the physical network transmission architecture
  • FCoE technology uses the solution shown in Figure 1 to access Fibre Channel Storage Area Network (FC SAN) FC-SAN storage arrays.
  • FC SAN Fibre Channel Storage Area Network
  • FCF Fibre Channel Forwarder
  • FC Target Fibre Channel target.
  • FCoE target With the development of FCoE technology standards, many device manufacturers and users want to add FCoE Targets to the standard. And the existing FCoE initiator needs to communicate with the FCoE target only Can be: The FCoE initiator uses the flow specified in the existing FC-BB-5 to determine the port identifier N_Port_ID of the target storage array as the FCoE target, and then forwards the FCoE protocol between the FCoE initiator and the FCoE target through the FCoE forwarder. data pack. In this way, the FCoE forwarder will become the bottleneck of communication, so how to make the FCoE initiator directly access the FCoE target directly through the lossless Ethernet becomes an urgent problem to be solved.
  • FCoE node refers to FCoE initiator or FCoE target
  • FCoE node randomly generates its own N_Port_ID, and broadcasts its own N_Port_ID to other FCoE nodes by broadcast, waiting for the set time period to confirm whether it is related to other FCoE nodes.
  • the generated N_Port_ID is repeated, wherein the FCoE node is pre-specified to feed back a response message when the N_Port_ID of the broadcast is found to be in conflict with its own N_Port_ID.
  • FCoE node If the FCoE node does not receive the response message fed back by the other FCoE node within the set time period, it indicates that the randomly generated N_Port_ID is not duplicated with the N_Port_ID of the other FCoE node, and the virtual MAC address may be further generated by using the N_Port_ID. Other FCoE nodes establish virtual links. If a response message of the feedback is received, the above-mentioned N_Port_ID of the random generation itself is re-executed, and the step of broadcasting its own N_Port_ID is performed until it is confirmed that the N_Port_ID generated by the other FCoE node is not duplicated.
  • the FCoE node notifies the other FCoE nodes that the N_Port_ID generated by itself will occupy the network transmission resources, especially when the number of FCoE nodes is large. Underneath, a large number of broadcast messages may affect network transmission efficiency. Summary of the invention
  • the embodiment of the invention provides a communication system applied to an Ethernet Fibre Channel FCoE scenario, which solves the problem that a large number of broadcast messages occupy network transmission resources and affect network transmission efficiency in the prior art.
  • an embodiment of the present invention further provides an FCoE target, an FCoE initiator, and a response Communication method for Ethernet Fibre Channel FCoE scenarios.
  • FCoE Fibre Channel over Ethernet FCoE scenarios, including FCoE initiators, FCoE repeaters, and FCoE targets:
  • the FCoE forwarder allocates a port identifier N_Port_ID to the FCoE initiator and the FCoE target. After receiving the registration request message or the login request message sent by the FCoE initiator, determining whether the FCoE initiator has the stored security access control information. a right to communicate with the FCoE target; if the determination result is yes, forwarding the registration request message or the login request message to the FCoE target;
  • the FCoE target device After receiving the registration request message or the login request message, the FCoE target device exchanges information with the FCoE initiator to support direct communication;
  • the FCoE target or the FCoE initiator determines whether the FCoE target or the FCoE initiator supports direct communication according to the interaction result
  • FCoE target device or the FCoE initiator When the FCoE target device or the FCoE initiator confirms that direct communication is supported, a virtual link between the FCoE target and the FCoE initiator is established according to the N_Port_ID of the FCoE target and the FCoE initiator to transmit the FCoE protocol packet. .
  • FCoE target including:
  • a receiving unit configured to receive a registration request message or a login request message, where the FCoE initiator and the FCoE target N_Port_ID carried in the registration request message or the login request message are allocated by the FCoE forwarder;
  • the registration request message or the login request message is forwarded by the FCoE forwarder;
  • An information interaction unit configured to: after receiving, by the receiving unit, the registration request message or the login request message, according to the N_Port_ID of the FCoE initiator and the FCoE target, whether the interaction between the FCoE initiator and the FCoE initiator supports direct communication ;
  • a determining unit configured to determine, according to an interaction result of the information interaction unit, whether the FCoE initiator and the FCoE target support direct communication; a first transmission unit, configured to: when the determining unit confirms that the FCoE initiator and the FCoE target support direct communication, establish an FCoE target and an FCoE initiator according to the N_Port_ID of the FCoE target and the FCoE initiator. The virtual link between them is used to transmit FCoE protocol packets.
  • FCoE starter including:
  • a sending unit configured to send a registration request message or a login request message, where the registration request message or the login request message carries the N_Port_ID of the FCoE initiator and the FCoE target to be communicated, and the N_Port_ID of the FCoE initiator and the FCoE target Is allocated by the FCoE forwarder; the registration request message or the login request message is forwarded by the FCoE forwarder to the FCoE target;
  • An information interaction unit configured to: after the FCoE target device receives the registration request message or the login request message, whether to support direct communication with the FCoE target according to the N_Port_ID of the FCoE initiator and the FCoE target Information;
  • a determining unit configured to determine, according to an interaction result of the information interaction unit, whether the FCoE initiator and the FCoE target device both support direct communication
  • a first transmission unit configured to: when the determining unit confirms that the FCoE initiator and the FCoE target support direct communication, establish an FCoE target and an FCoE initiator according to the N_Port_ID of the FCoE target and the FCoE initiator. The virtual link between them is used to transmit FCoE protocol packets.
  • a communication method applied to an Ethernet Fibre Channel FCoE scenario including:
  • the FCoE target device receives the registration request message or the login request message forwarded by the FCoE forwarder, and the FCoE initiator and the FCoE target N_Port_ID carried in the registration request message or the login request message are allocated by the FCoE forwarder;
  • FCoE target device determining, by the FCoE target device, whether the FCoE initiator and the FCoE target are both in accordance with the interaction result, according to the N_Port_ID of the FCoE initiator and the FCoE target, and whether the FCoE initiator supports the direct communication.
  • Support direct communication
  • the FCoE target establishes an FCoE mesh according to the N_Port_ID of the FCoE target and the FCoE initiator when confirming that both the FCoE initiator and the FCoE target support direct communication.
  • the virtual link between the specifier and the FCoE initiator is used to transmit FCoE protocol packets.
  • a communication method applied to an Ethernet Fibre Channel FCoE scenario including:
  • the FCoE initiator sends a registration request message or a login request message, where the registration request message or the login request message carries the N_Port_ID of the FCoE initiator and the FCoE target to be communicated, and the N_Port_ID of the FCoE initiator and the FCoE target is Assigned by the FCoE forwarder; the registration request message or the login request message is forwarded by the FCoE forwarder to the
  • the FCoE initiator After receiving the registration request message or the login request message, the FCoE initiator, according to the N_Port_ID of the FCoE initiator and the FCoE target, whether the FCoE target interacts with the FCoE target to support direct communication. Determining, according to the interaction result, whether the FCoE initiator and the FCoE target support direct communication;
  • the FCoE initiator establishes a virtual link between the FCoE target and the FCoE initiator according to the N_Port_ID of the FCoE target and the FCoE initiator when confirming that the FCoE initiator and the FCoE target support direct communication. Used to transmit FCoE protocol packets.
  • the embodiment of the present invention assigns a port identifier N_Port_ID to the FCoE initiator and the FCoE target by the FCoE forwarder.
  • the FCoE target device After receiving the registration request message or the login request message forwarded by the FCoE forwarder, the FCoE target device initiates an information interaction with the FCoE initiator to confirm whether the other party supports direct communication, and confirms the FCoE initiator and the device according to the information interaction result.
  • the FCoE protocol packet is directly transmitted with the FCoE target. It avoids the consumption of network transmission resources due to the broadcast of N_Port_ID by each FCoE node, which reduces the network load.
  • FIG. 1 is a schematic diagram of accessing an FC-SAN storage array in an existing FCoE technology
  • FIG. 2 is a flowchart of a main implementation principle of an embodiment of the present invention
  • FIG. 4 is a flowchart of a communication method applied to an Ethernet Fibre Channel FCoE scenario according to Embodiment 1 of the present invention
  • FIG. 5a is a schematic diagram of a first interaction judging method according to an embodiment of the present invention.
  • FIG. 5b is a schematic diagram of a second interaction judging method according to an embodiment of the present invention.
  • FIG. 6 is a flowchart of a communication method applied to an Ethernet Fibre Channel FCoE scenario according to Embodiment 2 of the present invention.
  • FIG. 7a is a first communication flowchart of an example provided in Embodiment 3 of the present invention.
  • FIG. 7b is a second communication flowchart of an example provided in Embodiment 3 of the present invention.
  • FIG. 8 is a schematic structural diagram of a communication device applied to an Ethernet Fibre Channel FCoE scenario according to an embodiment of the present invention.
  • FIG. 8b is a schematic diagram of a first structure of an information interaction unit according to an embodiment of the present invention
  • FIG. 8 is a schematic diagram of a second structure of an information interaction unit according to an embodiment of the present invention
  • FIG. 9 is a schematic diagram of a third structure of an information interaction unit according to an embodiment of the present invention.
  • FIG. 9 is a schematic diagram of a fourth structure of an information interaction unit according to an embodiment of the present invention;
  • the main implementation principle process of the embodiment of the present invention is as follows:
  • Step 10 The FCoE initiator and the FCoE target respectively obtain the port identifier N_Port_ID assigned by the FCoE forwarder through the FC-BB-5 standard structure registration/login process;
  • Step 20 The FCoE initiator sends a registration request message or a login request message, where the registration request message or the login request message carries the MAC address of the FCoE forwarder and the N_Port_ID of the FCoE target.
  • the MAC address of the FCoE forwarder is obtained by the discovery process of the FCoE initiator using the FC-BB-5 standard, and the N_Port_ID of the FCoE target is a discovery process and information query process of the FCoE initiator adopting the FC-BB-5 standard. acquired.
  • the registration request message or the login request message is in the FCoE protocol format, where the virtual MAC address of the FCoE initiator is used as the source MAC address and the MAC address of the FCoE forwarder as the destination MAC address.
  • the content payload ( payload ) carries the FC packet, and the FC packet carries the N_Port_ID of the FCoE target and the N_Port_ID of the FCoE initiator.
  • Step 30 After receiving the registration request message or the login request message, the FCoE forwarder forwards the registration request message or the login request message to the FCoE target device when the authentication is passed;
  • the authentication process is: The FCoE forwarder confirms whether the FCoE initiator has the right to communicate with the FCoE target according to the stored secure access control information.
  • the forwarding process is as follows:
  • the FCoE forwarder replaces the source MAC address in the Ethernet header of the received registration request message or login request message with the MAC address of the FCoE forwarder, and replaces the destination MAC address with the virtual MAC address of the FCoE target, and regenerates.
  • a registration request message or a login request message where the virtual MAC address of the FCoE target is generated according to the N_Port_ID assigned by the FCoE forwarder to the FCoE target, for example, by adding a specific network prefix based on the N_Port_ID.
  • Step 40 After receiving the registration request message or the login request message forwarded by the FCoE forwarder, the FCoE target device exchanges information with the FCoE target to support direct communication;
  • Step 50 The FCoE target and/or the FCoE target determine, according to the interaction result, whether the FCoE initiator and the FCoE target support direct communication;
  • Step 60 The FCoE target and/or the FCoE target establish an FCoE target and FCoE according to the N_Port_ID of the FCoE target and the FCoE initiator when confirming that the FCoE initiator and the FCoE target support direct communication.
  • a virtual link between initiators is used to transfer FCoE protocol packets.
  • FIG. 3 is a schematic diagram of an Ethernet Fibre Channel FCoE scenario applied to an embodiment of the present invention, including at least one FCoE initiator, at least one FCoE target, and one FCoE transponder.
  • FIG. 4 is a flow chart of a communication method applied to an Ethernet Fibre Channel FCoE scenario in the present embodiment.
  • Step 401 The FCoE target device receives a registration request message or a login request message forwarded by the FCoE forwarder, where the FCoE initiator and the N-Port_ID of the FCoE target carried in the registration request message or the login request message pass the FC-BB-5 standard. Structure registration/login process, assigned by the FCoE forwarder;
  • the registration request message or the login request message is forwarded by the FCoE forwarder according to the stored security access control information, and the FCoE initiator that sends the registration request message or the login request message has the authority to communicate with the FCoE target device;
  • Step 402 According to the N_Port_ID of the FCoE initiator and the FCoE target, the FCoE Whether the target device interacts with the FCoE initiator to support direct communication, and determines whether the FCoE initiator and the FCoE target support direct communication according to the interaction result;
  • Step 403 The FCoE target device directly transmits the FCoE protocol data packet with the FCoE initiator when confirming that both the FCoE initiator and the FCoE target support direct communication.
  • the FCoE target device confirms that the FCoE initiator or the FCoE target device does not support direct communication
  • the FCoE protocol transmitted between the FCoE target device and the FCoE initiator is performed in step 402.
  • the packet is forwarded by the FCoE forwarder.
  • the specific interaction judging manner adopted in the foregoing step 402 may be other methods besides the two types shown in FIG. 5a and FIG. 5b, for example, the FCoE target device directly tries to support the direct communication.
  • the FCoE initiator establishes a virtual link. If the establishment is successful, it is confirmed that both parties support direct communication. Otherwise, it is confirmed that the two parties do not support direct communication.
  • the FCoE target device supports direct communication broadcasts a query message to other FCoE nodes in the FCoE system, and establishes a FCoE node list that supports direct communication according to the feedback result, and confirms both the FCoE initiators in the node list when the FCoE initiator is in the node list. Direct communication is supported, otherwise it is confirmed that the two parties do not support direct communication, etc., and are not listed here.
  • Step 51 The FCoE target device generates a virtual MAC address of the FCoE initiator according to the N_Port_ID of the FCoE initiator, by extracting the N_Port_ID of the FCoE initiator that is carried according to the registration request message or the login request message, when the direct communication is supported. Sending, according to the virtual MAC address of the FCoE initiator, an inquiry request message for inquiring whether the FCoE initiator supports direct communication to the FCoE initiator;
  • the FCoE target obtains the FC data packet from the content payload of the registration request message or the login request message, and acquires the N_Port_ID of the FCoE initiator from the FC data.
  • FCoE Initialization Protocol FCoE Initialization Protocol
  • FIP code is set to FFF8h
  • subcode is set to Olh
  • content payload includes N_Port_ID of FCoE target.
  • Request for request in FIP format The destination MAC address carried in the Ethernet header required for the address addressing is the virtual MAC address of the FCoE initiator generated according to the N_Port_ID of the FCoE initiator, and the virtual MAC address whose source MAC address is the FCoE target.
  • the content payload may further include other information such as a virtual MAC address of the FCoE target, a physical MAC address of the FCoE target, and a globally unique name (WWN, world wide name).
  • a virtual MAC address of the FCoE target a physical MAC address of the FCoE target
  • WWN globally unique name
  • the query request message may also be a message in other formats, as long as it carries the feature code for identifying the function of the message agreed by both the FCoE initiator and the FCoE target device (ie, it is used to identify whether the message carries the query to support direct communication.
  • the signature of the information such as the above FlP code or subcode.
  • Step 52 After receiving the inquiry request message, the FCoE initiator returns an inquiry response message to the FCoE target device if the direct communication is supported; otherwise, the inquiry request message is discarded or ignored;
  • FCoE initiator After the FCoE initiator returns an inquiry response message to the FCoE target, it is confirmed that both the FCoE initiator and the FCoE target support direct communication.
  • the query response message is a FIP format in the FCoE protocol standard, where the FlP code is set to FFF8h, the subcode is set to Olh, and the content payload includes the N_Port_ID of the FCoE initiator.
  • the destination MA address carried in the Ethernet header required for addressing the request message in FIP format is the virtual MAC address of the FCoE target, and the source MAC address is the virtual MAC address of the FCoE initiator.
  • Step 53 If the FCoE target receives the inquiry response message returned by the FCoE initiator, it is confirmed that the FCoE initiator and the FCoE target support direct communication. If the inquiry response message returned by the FCoE initiator is not received, it is confirmed that the FCoE initiator does not support direct communication.
  • the waiting time s can also be set. If the FCoE target does not receive the returned inquiry response message if it exceeds the waiting time s, it is confirmed that the FCoE initiator does not support direct communication.
  • the FCoE target device can exchange the FCoE protocol data packet with the FCoE initiator to cancel the FCoE startup by using the FCoE forwarder after the inquiry request message is sent and before the inquiry response message is received. The FCoE protocol packet cannot interact with the FCoE target.
  • Step 54 The FCoE target device extracts the N_Port_ID of the carried FCoE initiator from the registration request message or the login request message, and sends a request accept message to the FCoE initiator according to the N_Port_ID of the FCoE initiator.
  • the content message is carried by the FCoE forwarder.
  • the forwarding process of the FCoE forwarder forwarding request accept message is similar to the description principle in step 20 of FIG. 2, and will not be described in detail herein.
  • Step 55 After receiving the request accept message, the FCoE initiator receives the N_Port_ID of the FCoE target carried in the message according to the request, generates a virtual MAC address of the FCoE target, and uses the virtual MAC address of the FCoE target to the FCoE target. Transmitting an inquiry request message for inquiring whether the FCoE target supports direct communication;
  • Step 56 After receiving the inquiry request message, the FCoE target device returns an inquiry response message to the FCoE initiator when direct communication is supported; otherwise, discards or ignores the inquiry request message; after the FCoE target returns the inquiry response message, Verify that both the FCoE initiator and the FCoE target support direct communication.
  • Step 57 If the FCoE initiator receives the inquiry response message, it is confirmed that the FCoE initiator and the FCoE target support direct communication. If the inquiry response message returned by the FCoE initiator is not received, it is confirmed that the FCoE initiator does not support direct communication.
  • the FCoE target directly transmits the FCoE protocol to the FCoE initiator.
  • the data packet is specifically configured to: the FCoE target device and the FCoE initiator establish a virtual connection according to the virtual MAC address of the FCoE initiator, the N_Port_ID, and the virtual MAC address of the FCoE target, and the N_Port_ID, to transmit the second FCoE protocol packets between the parties.
  • the N_Port_ID of the FCoE initiator according to the FCoE initiator directly transmitting the FCoE protocol packet to the FCoE initiator may be carried in a registration request message or a login request message, and the virtual MAC address may be based on Generated by the N_Port_ID;
  • the virtual MAC address of the FCoE target according to the FCoE initiator directly transmitting the FCoE protocol packet to the FCoE initiator may be obtained by the FCoE initiator from the query request message, or according to The N_Port_ID of the FCoE target is generated; when the above manner 2 is adopted, the virtual MAC address of the FCoE target may be generated by the FCoE initiator according to the N_Port_ID of the FCoE target.
  • the FCoE target device after receiving the registration request message or the login request message forwarded by the FCoE forwarder, the FCoE target device initiates an information interaction with the FCoE initiator to confirm whether the other party supports direct communication, according to the information.
  • the result of the interaction confirms that the FCoE protocol packet is directly transmitted with the FCoE target when the FCoE initiator and the FCoE target support direct communication.
  • the step of generating the N_Port_ID of the FCoE node must follow the process in the existing FC-BB-5, and the changes to the existing standard are small.
  • FCoE node randomly generates its own N_Port_ID, and compared with the broadcast scheme, before the FCoE initiator or FCoE target establishes a virtual link to directly transmit FCoE packets, only the communication parties are added.
  • a single two or three messages greatly reduce the network transmission resources consumed and reduce the network load. This advantage is especially important in scenarios where the number of FCoE nodes is large.
  • Embodiment 2 This embodiment will describe a communication method applied to an Ethernet Fibre Channel FCoE scenario from the perspective of an FCoE initiator.
  • 6 is a flow chart of a communication method applied to an Ethernet Fibre Channel FCoE scenario in the present embodiment.
  • Step 601 The FCoE initiator sends a registration request message or a login request message, where the registration request message or the login request message carries the MAC address of the FCoE forwarder, the FCoE initiator, and the N_Port_ID of the FCoE target to be communicated, the FCoE The MAC address of the repeater is obtained through the FC-BB-5 standard discovery process, and the N_Port_ID of the FCoE initiator and the FCoE target is allocated by the FCoE forwarder through the FC-BB-5 standard structure registration/login process. ;
  • the registration request message or the login request message is forwarded to the FCoE target when the FCoE forwarder confirms that the FCoE initiator has the right to communicate with the FCoE target according to the stored secure access control information;
  • Step 602 According to the N_Port_ID of the FCoE initiator and the FCoE target, whether the FCoE initiator interacts with the FCoE target to support direct communication, and determine, according to the interaction result, whether the FCoE initiator and the FCoE target are both Support direct communication;
  • Step 603 The FCoE initiator establishes a virtual relationship between the FCoE target and the FCoE initiator according to the N_Port_ID of the FCoE target and the FCoE initiator when confirming that the FCoE initiator and the FCoE target support direct communication.
  • the link is used to transmit FCoE protocol packets.
  • the specific interaction judgment manner adopted in the above step 602 is similar to that in the first embodiment:
  • the FCoE initiator returns an inquiry response message to the FCoE target
  • the FCoE initiator and the FCoE are confirmed.
  • the target supports direct communication.
  • the FCoE initiator confirms that both the FCoE initiator and the FCoE target support direct communication.
  • Step 701 The FCoE initiator A discovers the FCoE switch FCoE switch in the network through the discovery process of the FC-BB-5 standard, and obtains the MAC address of the FCoE switch.
  • FC-BB-5 the FCoE Switch carries its own MAC address in the corresponding FCF discovery response (FCF).
  • FCF FCF discovery response
  • Step 702 The FCoE initiator A performs a structure registration/login process according to the MAC address of the FCoE switch, and obtains the port identifier N_Port_ID1 allocated by the FCoE initiator A to the FCoE initiator A. Specifically, the FCoE initiator A sends a structure registration/login (FLOGI, to the FCoE Switch, Fabric login) request message; FCoE Switch allocates N_Port_IDl to FCoE initiator A, and carries the assigned N_Port_ID1 in the registration/login response message and returns it to FCoE initiator A.
  • FLOGI structure registration/login
  • Step 703 The FCoE target B discovers the FCoE switch FCoE Switch in the network through the discovery process of the FC-BB-5 standard, and obtains the MAC address of the FCoE switch.
  • the specific discovery process refers to step 701.
  • step 704 the FCoE target B performs the structure registration/login process according to the MAC address of the FCoE switch, and obtains the port identifier N_Port_ID2 assigned by the FCoE switch to the FCoE target B.
  • the FCoE target B performs the structure registration/login process according to the MAC address of the FCoE switch, and obtains the port identifier N_Port_ID2 assigned by the FCoE switch to the FCoE target B.
  • the FCoE target B performs the structure registration/login process according to the MAC address of the FCoE switch, and obtains the port identifier N_Port_ID2 assigned by the FCoE switch to the FCoE target B.
  • Step 705 The FCoE initiator A performs an information query process, and queries the FCoE Switch for the N_Port_ID of the FCoE target B to be communicated.
  • the information query process uses the FC-BB-5 standard. Specifically, the FCoE initiator A sends a port registration name server (PLOGI NS, N_PortLogin Name Server) to the FCoE Switch to query the request message.
  • the PLOGI NS query request message carries the FCoE target B.
  • the FCoE Switch returns a PLOGI NS query response message to the FCoE initiator A, where the query response message carries the N_Port_ID2 assigned to the FCoE target B.
  • Step 706 The FCoE initiator A sends a registration request message or a login request message to the FCoE target B, where the destination MAC address of the registration request message or the login request message is FCoE Switch.
  • the MAC address and the destination N_Port_ID are N_Port_ID2 of the FCoE target B, and the registration request message or the login request message is sent to the FCoE Switch.
  • Step 707 The FCoE Switch obtains the MAC address or N_Port_ID1 of the FCoE initiator A from the received registration request message or the login request message, and determines whether the FCoE initiator A has the stored security access control information, such as Zoning information. If the result of the determination is YES, the registration request message or the login request message is forwarded to the FCoE target B, and the process proceeds to step 708, otherwise the registration request message or the login request message is rejected.
  • security access control information such as Zoning information
  • Step 708 The FCoE target B generates a MAC address of the virtual FCoE initiator A according to the N_Port_ID1 of the FCoE initiator A obtained from the registration request message or the login request message, and sends a message to the FCoE initiator A for inquiring whether the FCoE initiator A supports direct communication. If the FCoE initiator forwards the registration request message or the login request message, the FCoE target B receives the FCoE initiator A registration request message or the login request message, indicating that the FCoE initiator allows the FCoE initiator A to communicate with the FCoE target B. .
  • FCoE target B After FCoE target B obtains N_Port_IDl from the registration request message or the login request message, it adds a specific network prefix in front of it to generate the virtual MAC address of FCoE initiator A.
  • Step 709 After receiving the inquiry request message, the FCoE initiator A returns an inquiry response message to the FCoE target B if direct communication is supported; otherwise, the inquiry request message is ignored or discarded.
  • FCoE initiator A After the FCoE initiator A returns an inquiry response message, it is confirmed that both FCoE initiator A and FCoE target B support direct communication.
  • the FCoE initiator A returns an inquiry response message to the FCoE target B according to the virtual MAC address of the FCoE target B and the N_Port_ID2, where the virtual MAC address of the FCoE target B can be obtained from the inquiry request message, or a specific network prefix can be added in front of the N_Port_ID2. , Generate the virtual MAC address of FCoE target B.
  • Step 710 after receiving the inquiry response message, the FCoE target B confirms the FCoE initiator A and
  • FCoE target B supports direct communication.
  • Step 711 The FCoE initiator A and the FCoE target B establish a virtual link according to the virtual MAC address of the FCoE initiator A, the N_Port_ID1, and the virtual MAC address of the FCoE target B, and the N_Port_ID2, and directly transmit the FCoE protocol data packet.
  • steps 708 to 711 may be replaced by steps 718 to 722.
  • steps 701 to 707 are similar to FIG. 7a, and are not repeated here.
  • Step 718 The FCoE target B sends a request accept message to the FCoE initiator A according to the N_Port_ID1 of the FCoE initiator A obtained from the registration request message or the login request message, and the request accept message is forwarded by the FCoE Switch;
  • Step 719 After receiving the request accept message, the FCoE initiator A confirms that it can communicate with the FCoE target B.
  • the FCoE initiator A generates a virtual MAC address of the FCoE target B according to the N_Port_ID2, and sends a message to the FCoE target B to ask whether the FCoE target supports direct Communication request message;
  • Step 720 When the FCoE target B supports direct communication, return an inquiry response message to the FCoE initiator; otherwise, the inquiry request message is ignored or discarded.
  • FCoE target B After FCoE target B returns the inquiry response message, it is confirmed that both FCoE initiator A and FCoE target B support direct communication.
  • Step 721 When receiving the inquiry response message, the FCoE initiator A confirms that both FCoE initiator A and FCoE target B support direct communication.
  • Step 722 The FCoE initiator A and the FCoE target B establish a virtual link according to the virtual MAC address of the FCoE initiator A, the N_Port_ID1, and the virtual MAC address of the FCoE target B, and the N_Port_ID2, and directly transmit the FCoE protocol data packet.
  • the embodiment of the present invention utilizes the discovery process and the information query process of the FC-BB-5 standard to allocate the N_Port_ID of the FCoE node of the direct communication party, instead of generating the N_Port_ID by each of the FCoE nodes of the communication party, thereby ensuring the uniqueness of generating the N_Port_ID, thereby saving the invention.
  • the time to generate the N_Port_ID repeatedly reduces the network load. Based on this, the FCoE nodes of the two communicating parties exchange information to support direct communication through the inquiry message, and confirm that the FCoE nodes of both communication parties support direct communication. Establish a virtual connection to directly transfer FCoE protocol packets.
  • the embodiment of the present invention further provides a communication device applied to an Ethernet Fibre Channel FCoE scenario.
  • the device may be an FCoE target, and the device includes a receiving unit 801, an information interaction unit 802, and The determining unit 803 and the first transmitting unit 804 are as follows:
  • the receiving unit 801 is configured to receive a registration request message or a login request message, where the FCoE initiator and the FCoE target N_Port_ID carried in the registration request message or the login request message are allocated by the FCoE forwarder;
  • the registration request message or the login request message is forwarded by the FCoE forwarder, and the FCoE forwarder confirms that the FCoE initiator that sends the registration request message or the login request message has communication with the FCoE target device according to the stored security access control information. Forwarding the registration request message or login request message when the permission is;
  • the information interaction unit 802 is configured to: after the receiving unit receives the registration request message or the login request message, according to the N_Port_ID of the FCoE initiator and the FCoE target, whether the FCoE initiator interacts with the direct communication.
  • the determining unit 803 is configured to determine, according to the interaction result of the information interaction unit 802, whether the FCoE initiator and the FCoE target support direct communication;
  • the first transmission unit 804 is configured to establish an FCoE target and an FCoE start according to the N_Port_ID of the FCoE target and the FCoE initiator when the determining unit 803 confirms that the FCoE initiator and the FCoE target support direct communication.
  • a virtual link between the devices is used to transfer FCoE protocol packets. .
  • the information interaction unit 802 specifically includes:
  • the first sending sub-unit 805 is configured to: when the FCoE target device supports direct communication, extract the N_Port_ID of the carried FCoE initiator from the registration request message or the login request message, and generate according to the N_Port_ID of the FCoE initiator.
  • the virtual MAC address of the FCoE initiator a virtual MAC address of the FCoE initiator, sending an inquiry request message to the FCoE initiator for inquiring whether the FCoE initiator supports direct communication;
  • a first receiving sub-unit 806, configured to receive an inquiry response message returned by the FCoE initiator; the determining unit 803, after the first receiving sub-unit 806 receives the inquiry response message returned by the FCoE initiator, confirms the Both the FCoE initiator and the FCoE target support direct communication.
  • the communication device in Figure 8a further includes:
  • the second transmission unit 811 is configured to transmit, between the FCoE target device and the FCoE initiator, by the FCoE forwarder forwarding manner before the first receiving subunit 806 receives the response message returned by the FCoE initiator.
  • FCoE protocol packet
  • the information interaction unit 802 specifically includes:
  • a second sending sub-unit 807 configured to extract an N_Port_ID of the carried FCoE initiator from the registration request message or the login request message, and send a request accept message to the FCoE initiator according to the N_Port_ID of the FCoE initiator, The request accept message is forwarded by the FCoE forwarder;
  • a second receiving sub-unit 808, configured to receive an inquiry request message sent by the FCoE initiator after receiving the request accept message for inquiring whether the FCoE target device supports direct communication;
  • a third sending subunit 809 configured to return an inquiry response message to the FCoE initiator when the FCoE target supports direct communication
  • the determining unit 803 confirms that both the FCoE initiator and the FCoE target support direct communication.
  • the embodiment of the present invention further provides a communication device applied to an Ethernet Fibre Channel FCoE scenario.
  • the device may be an FCoE initiator, and the device includes a sending unit 901, an information interaction unit 902, and a determining unit 903. And a first transmission unit 904, wherein:
  • the sending unit 901 is configured to send a registration request message or a login request message, where the registration request message or the login request message carries the F_E initiator and the N_Port_ID of the FCoE target to be communicated, where the FCoE initiator and the FCoE target are N_Port_ID is transferred by the FCoE Assigned by the transmitter;
  • the registration request message or the login request message is forwarded by the FCoE forwarder to the FCoE target, and the FCoE forwarder confirms that the FCoE initiator has the right to communicate with the FCoE target according to the stored secure access control information. Transmitting the registration request message or the login request message to the FCoE target device;
  • the information interaction unit 902 is configured to: after receiving the registration request message or the login request message, the FCoE target device, according to the N_Port_ID of the FCoE initiator and the FCoE target, whether to interact with the FCoE target to support direct communication. ;
  • the determining unit 903 is configured to determine, according to the interaction result of the information interaction unit 902, whether the FCoE initiator and the FCoE target support direct communication;
  • the first transmission unit 904 is configured to establish an FCoE target and an FCoE start according to the N_Port_ID of the FCoE target and the FCoE initiator when the determining unit 903 confirms that the FCoE initiator and the FCoE target support direct communication.
  • a virtual link between the devices is used to transfer FCoE protocol packets.
  • the information interaction unit 902 includes a first receiving subunit 905 and a first sending subunit 906:
  • the first receiving subunit 905 is configured to receive an inquiry request message sent by the FCoE target after receiving the registration request message or the login request message;
  • a first sending subunit 906, configured to return an inquiry response message to the FCoE target when the FCoE initiator supports direct communication
  • the determining unit 903 when the first transmitting subunit 906 returns an inquiry response message, confirms that both the FCoE initiator and the FCoE target support direct communication.
  • the information interaction unit 902 includes a second receiving subunit 907, a second sending subunit 908, and a third receiving subunit 909:
  • a second receiving subunit 907 configured to receive a request accept message sent by the FCoE target device after receiving the registration request message or the login request message;
  • the second sending subunit 908 is configured to: when the FCoE initiator supports direct communication, extract the N_Port_ID of the carried FCoE target from the request accept message, and generate a virtual MAC address of the FCoE target according to the N_Port_ID, according to the FCoE a virtual MAC address of the target, sending an inquiry request message to the FCoE target for inquiring whether the FCoE target supports direct communication;
  • a third receiving subunit 909 configured to receive an inquiry response message returned by the FCoE target device; after the third receiving subunit 909 receives the inquiry response message returned by the FCoE target, the determining unit 903 confirms the Both the FCoE initiator and the FCoE target support direct communication.
  • the embodiment of the present invention further provides a communication system applied to an Ethernet Fibre Channel FCoE scenario.
  • the FCoE initiator 110, the FCoE repeater 120, and the FCoE target 130 are characterized by:
  • the FCoE forwarder 120 assigns a port identifier N_Port_ID to the FCoE initiator 110 and the FCoE target 120. After receiving the registration request message or the login request message sent by the FCoE initiator 110, the FCoE forwarder 120 determines the FCoE according to the stored security access control information. Whether the initiator 110 has the right to communicate with the FCoE target; if the determination result is yes, the registration request message or the login request message is forwarded to the FCoE target 130, otherwise the request message is rejected;
  • the FCoE target device 130 After receiving the registration request message or the login request message, the FCoE target device 130 interacts with the FCoE initiator 110 to support direct communication information;
  • the FCoE target 130 or the FCoE initiator 1104 determines whether the FCoE target 130 or the FCoE initiator 110 supports direct communication according to the interaction result;
  • the FCoE target 130 or the FCoE initiator 110 establishes a virtual link between the FCoE target 130 and the FCoE initiator 110 according to the N_Port_ID of the FCoE target 130 and the FCoE initiator 110 when the acknowledgment supports direct communication. To transmit FCoE protocol packets.
  • the FCoE actuator 110 may have a structure as shown in Figs. 8a to 8c
  • the FCoE target 130 may have a structure as shown in Figs. 9a to 9c.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Small-Scale Networks (AREA)

Abstract

Disclosed are a communication method, system and apparatus applied to a fibre channel over Ethernet (FCoE) scenario, which are used for solving the problem that a large number of broadcast messages occupy network transmission resources so as to influence network transmission efficiency in the prior art. The system comprises: an FCoE forwarder allocating N_Port_IDs to an FCoE initiator and an FCoE target; after receiving a registration request message or login request message sent by the FCoE initiator, determining, according to stored security access control information, whether the FCoE initiator has the right of communicating with the FCoE target; if yes, forwarding the request message to the FCoE target; after receiving the registration request message or login request message, the FCoE target exchanging, with the FCoE initiator, information about whether to support direct communication; the FCoE target or FCoE initiator determining, according to an exchange result, whether the FCoE target and the FCoE initiator both support direct communication; and after confirming that the FCoE target and the FCoE initiator both support direct communication, establishing, according to the N_Port_IDs, a virtual link between the FCoE target and the FCoE initiator for transmitting an FCoE protocol data packet.

Description

应用于以太网光纤通道场景的通信方法、 系统及装置 本申请要求于 2011年 9月 8日提交中国专利局、 申请号为  Communication method, system and device applied to Ethernet Fibre Channel scenario The application claims to be submitted to the Chinese Patent Office on September 8, 2011, and the application number is
201110264043.7、 发明名称为 "应用于以太网光纤通道场景的通信方法、 系统 及装置" 的中国专利申请的优先权, 其全部内容通过引用结合在本申请中。 技术领域 The priority of the Chinese Patent Application, which is incorporated herein by reference. Technical field
本发明涉及数据传输技术领域, 尤其涉及一种应用于以太网光纤通道 The present invention relates to the field of data transmission technologies, and in particular, to a fiber channel for Ethernet application.
( FCoE, Fibre Channel over Ethernet )场景的通信方法、通信系统以及一种 FCoE 启动器、 FCoE目标器。 (FCoE, Fibre Channel over Ethernet) scenario communication method, communication system, and an FCoE initiator, FCoE target.
背景技术 Background technique
FCoE是由美国国家标准协会( ANSI, American National Standards Institute ) FCoE is an American National Standards Institute (ANSI, American National Standards Institute)
Til委员会制定的一种新技术标准, 目前最新的标准版本为 FC-BB-5 , 其中包 含 FCoE技术中各节点通信所使用的 FCoE协议。 目前许多存储、 交换设备制 造厂商都相继推出了支持 FCoE技术的产品。 A new technical standard developed by the Til Committee. The latest standard version is FC-BB-5, which contains the FCoE protocol used by each node in FCoE technology. At present, many storage and switching equipment manufacturers have successively launched products that support FCoE technology.
FCoE协议适用于具有低延迟性、 高性能特点的网络。 FCoE采用增强型以 太网, 如无损以太网 (Lossless Ethernet )作为物理网络传输架构, 能够提供标 准光纤通道有效内容载荷,避免传输控制协议 /网际协议(TCP/IP, Transmission Control Protocol/Internet Protocol )十办议开销。  The FCoE protocol is suitable for networks with low latency and high performance. FCoE uses enhanced Ethernet, such as Lossless Ethernet as the physical network transmission architecture, to provide standard Fibre Channel payloads and avoid Transmission Control Protocol/Internet Protocol (TCP/IP). Discuss expenses.
为了适应现有数据中心大多数采用的 FC-SAN存储阵列的现状, FCoE技 术采用附图 1 所示的方案来访问光纤通道存储区域网络 (FC SAN , Fibre Channel Storage Area Network )FC-SAN存储阵列: FCoE启动器( FCoE Initiator ) 连接到无损以太网, 通过 FCoE转发器( FCF, FCoE Forwarder )将光纤通道 ( FC, Fibre Channel )数据格式的访问请求传输到 FC SAN, 从而访问作为光 纤通道目标器( FC Target ) 的存储阵列。  In order to adapt to the current state of the FC-SAN storage arrays used in most existing data centers, FCoE technology uses the solution shown in Figure 1 to access Fibre Channel Storage Area Network (FC SAN) FC-SAN storage arrays. : The FCoE Initiator is connected to the lossless Ethernet and transmits the access request of the Fibre Channel (FC, Fibre Channel) data format to the FC SAN through the FCoE Forwarder (FCF, FCoE Forwarder) to access the Fibre Channel target. (FC Target ) storage array.
随着 FCoE技术标准的发展, 很多设备制造厂商和用户希望在标准中添加 FCoE 目标器( FCoE Target )。 而在现有 FCoE启动器要与 FCoE目标器通信只 能是: FCoE启动器采用现有 FC-BB-5中规定的流程确定作为 FCoE目标器的 目标存储阵列的端口标识 N_Port_ID后, 通过 FCoE转发器转发 FCoE启动器 与 FCoE目标器之间的 FCoE协议数据包。 这样 FCoE转发器将成为通信的瓶 颈, 因此如何使 FCoE启动器可以直接通过无损以太网安全地访问 FCoE 目标 器成为一个亟待解决的问题。 With the development of FCoE technology standards, many device manufacturers and users want to add FCoE Targets to the standard. And the existing FCoE initiator needs to communicate with the FCoE target only Can be: The FCoE initiator uses the flow specified in the existing FC-BB-5 to determine the port identifier N_Port_ID of the target storage array as the FCoE target, and then forwards the FCoE protocol between the FCoE initiator and the FCoE target through the FCoE forwarder. data pack. In this way, the FCoE forwarder will become the bottleneck of communication, so how to make the FCoE initiator directly access the FCoE target directly through the lossless Ethernet becomes an urgent problem to be solved.
为解决上述问题, 现有技术提出:  In order to solve the above problems, the prior art proposes:
每个 FCoE节点( FCoE节点是指 FCoE启动器或 FCoE目标器 )各自随机 生成自身的 N_Port_ID,并通过广播的方式将自身的 N_Port_ID通知其他 FCoE 节点,等待设定的时间段确认是否与其他 FCoE节点所生成的 N_Port_ID重复, 其中预先规定 FCoE节点在发现广播的 N_Port_ID与自身 N_Port_ID沖突时应 反馈应答消息。 如果在所述设定的时间段内该 FCoE节点未接收到其他 FCoE 节点反馈的应答消息, 则说明随机生成的上述 N_Port_ID没有与其他 FCoE节 点的 N_Port_ID重复, 可以使用上述 N_Port_ID进一步生成虚拟 MAC地址与 其他 FCoE节点建立虚拟链路。 如果收到了反馈的应答消息, 则重新执行上述 随机生成自身的 N_Port_ID,广播自身 N_Port_ID的步骤,直到确认与其他 FCoE 节点所生成的 N_Port_ID不重复为止。  Each FCoE node (FCoE node refers to FCoE initiator or FCoE target) randomly generates its own N_Port_ID, and broadcasts its own N_Port_ID to other FCoE nodes by broadcast, waiting for the set time period to confirm whether it is related to other FCoE nodes. The generated N_Port_ID is repeated, wherein the FCoE node is pre-specified to feed back a response message when the N_Port_ID of the broadcast is found to be in conflict with its own N_Port_ID. If the FCoE node does not receive the response message fed back by the other FCoE node within the set time period, it indicates that the randomly generated N_Port_ID is not duplicated with the N_Port_ID of the other FCoE node, and the virtual MAC address may be further generated by using the N_Port_ID. Other FCoE nodes establish virtual links. If a response message of the feedback is received, the above-mentioned N_Port_ID of the random generation itself is re-executed, and the step of broadcasting its own N_Port_ID is performed until it is confirmed that the N_Port_ID generated by the other FCoE node is not duplicated.
发明人在实现本发明的过程中发现, 现有技术至少存在以下问题: FCoE 节点将自身生成的 N_Port_ID通过广播方式通知其他 FCoE节点将会占用网络 传输资源, 特别是在 FCoE节点数目较多的情况下, 大量的广播消息可能会影 响网络传输效率。 发明内容  In the process of implementing the present invention, the inventor has found that the prior art has at least the following problems: The FCoE node notifies the other FCoE nodes that the N_Port_ID generated by itself will occupy the network transmission resources, especially when the number of FCoE nodes is large. Underneath, a large number of broadcast messages may affect network transmission efficiency. Summary of the invention
本发明实施例提供一种应用于以太网光纤通道 FCoE场景的通信系统, 用 以解决现有技术中大量广播消息占用网络传输资源, 影响网络传输效率的问 题。  The embodiment of the invention provides a communication system applied to an Ethernet Fibre Channel FCoE scenario, which solves the problem that a large number of broadcast messages occupy network transmission resources and affect network transmission efficiency in the prior art.
对应地,本发明实施例还提供了一种 FCoE目标器、 FCoE启动器和一种应 用于以太网光纤通道 FCoE场景的通信方法。 Correspondingly, an embodiment of the present invention further provides an FCoE target, an FCoE initiator, and a response Communication method for Ethernet Fibre Channel FCoE scenarios.
本发明实施例提供的技术方案如下:  The technical solution provided by the embodiment of the present invention is as follows:
一种应用于以太网光纤通道 FCoE场景的通信系统, 包括 FCoE启动器、 FCoE转发器和 FCoE目标器:  A communication system for Fibre Channel over Ethernet FCoE scenarios, including FCoE initiators, FCoE repeaters, and FCoE targets:
FCoE转发器为所述 FCoE启动器和 FCoE目标器分配端口标识 N_Port_ID; 接收到 FCoE启动器发送的注册请求消息或登录请求消息后, 根据存储的安全 访问控制信息, 判断所述 FCoE启动器是否具有与所述 FCoE目标器通信的权 限;若判断结果为是,则将所述注册请求消息或登录请求消息转发给所述 FCoE 目标器;  The FCoE forwarder allocates a port identifier N_Port_ID to the FCoE initiator and the FCoE target. After receiving the registration request message or the login request message sent by the FCoE initiator, determining whether the FCoE initiator has the stored security access control information. a right to communicate with the FCoE target; if the determination result is yes, forwarding the registration request message or the login request message to the FCoE target;
FCoE 目标器接收到所述注册请求消息或登录请求消息后, 与 FCoE启动 器双方交互是否支持直接通信的信息;  After receiving the registration request message or the login request message, the FCoE target device exchanges information with the FCoE initiator to support direct communication;
所述 FCoE目标器或 FCoE启动器 ^艮据交互结果, 判断所述 FCoE目标器 或 FCoE启动器是否均支持直接通信;  The FCoE target or the FCoE initiator determines whether the FCoE target or the FCoE initiator supports direct communication according to the interaction result;
所述 FCoE 目标器或 FCoE启动器在确认均支持直接通信时, 根据所述 FCoE目标器和 FCoE启动器的 N_Port_ID, 建立 FCoE目标器和 FCoE启动器 之间的虚拟链接用以传输 FCoE协议数据包。  When the FCoE target device or the FCoE initiator confirms that direct communication is supported, a virtual link between the FCoE target and the FCoE initiator is established according to the N_Port_ID of the FCoE target and the FCoE initiator to transmit the FCoE protocol packet. .
一种 FCoE目标器, 包括:  An FCoE target, including:
接收单元, 用于接收注册请求消息或登录请求消息, 所述注册请求消息或 登录请求消息中携带的 FCoE启动器和该 FCoE目标器的 N_Port_ID是 FCoE 转发器分配的;  a receiving unit, configured to receive a registration request message or a login request message, where the FCoE initiator and the FCoE target N_Port_ID carried in the registration request message or the login request message are allocated by the FCoE forwarder;
所述注册请求消息或登录请求消息是由 FCoE转发器转发的;  The registration request message or the login request message is forwarded by the FCoE forwarder;
信息交互单元, 用于所述接收单元接收到所述注册请求消息或登录请求消 息后,根据所述 FCoE启动器和 FCoE目标器的 N_Port_ID, 与所述 FCoE启动 器双方交互是否支持直接通信的信息;  An information interaction unit, configured to: after receiving, by the receiving unit, the registration request message or the login request message, according to the N_Port_ID of the FCoE initiator and the FCoE target, whether the interaction between the FCoE initiator and the FCoE initiator supports direct communication ;
判断单元, 用于根据信息交互单元的交互结果判断所述 FCoE启动器和所 述 FCoE目标器是否均支持直接通信; 第一传输单元, 用于在判断单元确认所述 FCoE启动器和所述 FCoE目标 器均支持直接通信时, 根据所述 FCoE 目标器和 FCoE启动器的 N_Port_ID, 建立 FCoE目标器和 FCoE启动器之间的虚拟链接用以传输 FCoE协议数据包。 a determining unit, configured to determine, according to an interaction result of the information interaction unit, whether the FCoE initiator and the FCoE target support direct communication; a first transmission unit, configured to: when the determining unit confirms that the FCoE initiator and the FCoE target support direct communication, establish an FCoE target and an FCoE initiator according to the N_Port_ID of the FCoE target and the FCoE initiator. The virtual link between them is used to transmit FCoE protocol packets.
一种 FCoE启动器, 包括:  An FCoE starter, including:
发送单元, 用于发送注册请求消息或登录请求消息, 所述注册请求消息或 登录请求消息中携带所述 FCoE启动器和待通信 FCoE目标器的 N_Port_ID, 所述 FCoE启动器和 FCoE目标器的 N_Port_ID是由所述 FCoE转发器分配的; 所述注册请求消息或登录请求消息是由 FCoE转发器转发给所述 FCoE目 标器的;  a sending unit, configured to send a registration request message or a login request message, where the registration request message or the login request message carries the N_Port_ID of the FCoE initiator and the FCoE target to be communicated, and the N_Port_ID of the FCoE initiator and the FCoE target Is allocated by the FCoE forwarder; the registration request message or the login request message is forwarded by the FCoE forwarder to the FCoE target;
信息交互单元, 用于在所述 FCoE目标器接收到所述注册请求消息或登录 请求消息后,根据所述 FCoE启动器和 FCoE目标器的 N_Port_ID,与所述 FCoE 目标器双方交互是否支持直接通信的信息;  An information interaction unit, configured to: after the FCoE target device receives the registration request message or the login request message, whether to support direct communication with the FCoE target according to the N_Port_ID of the FCoE initiator and the FCoE target Information;
判断单元, 用于根据信息交互单元的交互结果判断所述 FCoE启动器和所 述 FCoE目标器是否均支持直接通信;  a determining unit, configured to determine, according to an interaction result of the information interaction unit, whether the FCoE initiator and the FCoE target device both support direct communication;
第一传输单元, 用于在判断单元确认所述 FCoE启动器和所述 FCoE目标 器均支持直接通信时, 根据所述 FCoE 目标器和 FCoE启动器的 N_Port_ID, 建立 FCoE目标器和 FCoE启动器之间的虚拟链接用以传输 FCoE协议数据包。  a first transmission unit, configured to: when the determining unit confirms that the FCoE initiator and the FCoE target support direct communication, establish an FCoE target and an FCoE initiator according to the N_Port_ID of the FCoE target and the FCoE initiator. The virtual link between them is used to transmit FCoE protocol packets.
一种应用于以太网光纤通道 FCoE场景的通信方法, 包括:  A communication method applied to an Ethernet Fibre Channel FCoE scenario, including:
FCoE 目标器接收 FCoE转发器转发的注册请求消息或登录请求消息, 所 述注册请求消息或登录请求消息中携带的 FCoE启动器和该 FCoE 目标器的 N_Port_ID是 FCoE转发器分配的;  The FCoE target device receives the registration request message or the login request message forwarded by the FCoE forwarder, and the FCoE initiator and the FCoE target N_Port_ID carried in the registration request message or the login request message are allocated by the FCoE forwarder;
所述 FCoE目标器根据所述 FCoE启动器和 FCoE目标器的 N_Port_ID,与 所述 FCoE启动器双方交互是否支持直接通信的信息, 根据交互结果判断所述 FCoE启动器和所述 FCoE目标器是否均支持直接通信;  And determining, by the FCoE target device, whether the FCoE initiator and the FCoE target are both in accordance with the interaction result, according to the N_Port_ID of the FCoE initiator and the FCoE target, and whether the FCoE initiator supports the direct communication. Support direct communication;
所述 FCoE目标器在确认所述 FCoE启动器和所述 FCoE目标器均支持直 接通信时,根据所述 FCoE目标器和 FCoE启动器的 N_Port_ID, 建立 FCoE目 标器和 FCoE启动器之间的虚拟链接用以传输 FCoE协议数据包。 The FCoE target establishes an FCoE mesh according to the N_Port_ID of the FCoE target and the FCoE initiator when confirming that both the FCoE initiator and the FCoE target support direct communication. The virtual link between the specifier and the FCoE initiator is used to transmit FCoE protocol packets.
一种应用于以太网光纤通道 FCoE场景的通信方法, 包括:  A communication method applied to an Ethernet Fibre Channel FCoE scenario, including:
FCoE启动器发送注册请求消息或登录请求消息, 所述注册请求消息或登 录请求消息中携带所述 FCoE启动器和待通信 FCoE目标器的 N_Port_ID, 所 述 FCoE启动器和 FCoE目标器的 N_Port_ID是由所述 FCoE转发器分配的; 所述注册请求消息或登录请求消息是由所述 FCoE 转发器转发给所述 The FCoE initiator sends a registration request message or a login request message, where the registration request message or the login request message carries the N_Port_ID of the FCoE initiator and the FCoE target to be communicated, and the N_Port_ID of the FCoE initiator and the FCoE target is Assigned by the FCoE forwarder; the registration request message or the login request message is forwarded by the FCoE forwarder to the
FCoE目标器的; FCoE target
所述 FCoE启动器在所述 FCoE目标器接收到所述注册请求消息或登录请 求消息后, 根据所述 FCoE启动器和 FCoE目标器的N_Port_ID, 与所述 FCoE 目标器交互是否支持直接通信的信息, 根据交互结果判断所述 FCoE启动器和 所述 FCoE目标器是否均支持直接通信;  After receiving the registration request message or the login request message, the FCoE initiator, according to the N_Port_ID of the FCoE initiator and the FCoE target, whether the FCoE target interacts with the FCoE target to support direct communication. Determining, according to the interaction result, whether the FCoE initiator and the FCoE target support direct communication;
所述 FCoE启动器在确认所述 FCoE启动器和所述 FCoE目标器均支持直 接通信时,根据所述 FCoE目标器和 FCoE启动器的 N_Port_ID, 建立 FCoE目 标器和 FCoE启动器之间的虚拟链接用以传输 FCoE协议数据包。  The FCoE initiator establishes a virtual link between the FCoE target and the FCoE initiator according to the N_Port_ID of the FCoE target and the FCoE initiator when confirming that the FCoE initiator and the FCoE target support direct communication. Used to transmit FCoE protocol packets.
本发明实施例通过由 FCoE转发器为 FCoE启动器和 FCoE目标器分配端口 标识 N_Port_ID。 FCoE目标器在接收到 FCoE转发器转发的注册请求消息或登 录请求消息后, 发起与 FCoE启动器之间确认对方是否支持直接通信的信息交 互, 在根据信息交互结果确认所述 FCoE启动器和所述 FCoE目标器均支持直 接通信时,直接与所述 FCoE目标器传输 FCoE协议数据包。避免了因每个 FCoE 节点广播N_Port_ID 而消耗网络传输资源, 减轻了网络负荷。 附图说明  The embodiment of the present invention assigns a port identifier N_Port_ID to the FCoE initiator and the FCoE target by the FCoE forwarder. After receiving the registration request message or the login request message forwarded by the FCoE forwarder, the FCoE target device initiates an information interaction with the FCoE initiator to confirm whether the other party supports direct communication, and confirms the FCoE initiator and the device according to the information interaction result. When the FCoE target supports direct communication, the FCoE protocol packet is directly transmitted with the FCoE target. It avoids the consumption of network transmission resources due to the broadcast of N_Port_ID by each FCoE node, which reduces the network load. DRAWINGS
为了更清楚地说明本发明实施例或现有技术中的技术方案, 下面将对实施 例或现有技术描述中所需要使用的附图作一筒单地介绍, 显而易见地, 下面描 述中的附图是本发明的一些实施例, 对于本领域普通技术人员来讲, 在不付出 创造性劳动的前提下, 还可以根据这些附图获得其他的附图。 图 1为现有 FCoE技术中访问 FC-SAN存储阵列的示意图; In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings to be used in the embodiments or the description of the prior art will be briefly described below, and obviously, the attached in the following description The drawings are some embodiments of the present invention, and those skilled in the art can obtain other drawings based on these drawings without any creative work. FIG. 1 is a schematic diagram of accessing an FC-SAN storage array in an existing FCoE technology;
图 2为本发明实施例的主要实现原理流程图; 图 4为本发明实施例一中提供的应用于以太网光纤通道 FCoE场景的通信 方法的流程图;  2 is a flowchart of a main implementation principle of an embodiment of the present invention; FIG. 4 is a flowchart of a communication method applied to an Ethernet Fibre Channel FCoE scenario according to Embodiment 1 of the present invention;
图 5a为本发明实施例中第一种交互判断方法的示意图;  FIG. 5a is a schematic diagram of a first interaction judging method according to an embodiment of the present invention; FIG.
图 5b为本发明实施例中第二种交互判断方法的示意图;  FIG. 5b is a schematic diagram of a second interaction judging method according to an embodiment of the present invention; FIG.
图 6为本发明实施例二中提供的应用于以太网光纤通道 FCoE场景的通信 方法的流程图;  6 is a flowchart of a communication method applied to an Ethernet Fibre Channel FCoE scenario according to Embodiment 2 of the present invention;
图 7a为本发明实施例三中所提供的实例的第一种通信流程图;  7a is a first communication flowchart of an example provided in Embodiment 3 of the present invention;
图 7b为本发明实施例三中所提供的实例的第二种通信流程图;  FIG. 7b is a second communication flowchart of an example provided in Embodiment 3 of the present invention; FIG.
图 8a为本发明实施例提供的一种应用于以太网光纤通道 FCoE场景的通信 装置的结构示意图;  FIG. 8 is a schematic structural diagram of a communication device applied to an Ethernet Fibre Channel FCoE scenario according to an embodiment of the present invention;
图 8b为本发明实施例提供的信息交互单元的第一种结构示意图; 图 8c为本发明实施例提供的信息交互单元的第二种结构示意图; 图 9a为本发明实施例提供的另一种应用于以太网光纤通道 FCoE场景的通 信装置的结构示意图;  FIG. 8b is a schematic diagram of a first structure of an information interaction unit according to an embodiment of the present invention; FIG. 8 is a schematic diagram of a second structure of an information interaction unit according to an embodiment of the present invention; Schematic diagram of a communication device applied to an Ethernet Fibre Channel FCoE scenario;
图 9b为本发明实施例提供的信息交互单元的第三种结构示意图; 图 9c为本发明实施例提供的信息交互单元的第四种结构示意图; 图 10为本发明实施例提供的一种应用于以太网光纤通道 FCoE场景的通 信系统的示意图。 具体实施方式  FIG. 9 is a schematic diagram of a third structure of an information interaction unit according to an embodiment of the present invention; FIG. 9 is a schematic diagram of a fourth structure of an information interaction unit according to an embodiment of the present invention; FIG. Schematic diagram of a communication system for an Fibre Channel over Ethernet FCoE scenario. detailed description
现有技术除了存在 FCoE节点通过广播方式向其他 FCoE节点通知自身生 成的 N_Port_ID,给网络传输带来负担之外,还存在着由于需要等待其他 FCoE 节点反馈是否存在重复的 N_Port_ID造成的等待时间长、执行效率较低的问题。 不仅如此, 现有技术并未考虑传输的安全性等问题。 In addition to the fact that the FCoE node broadcasts the N_Port_ID generated by the FCoE node to other FCoE nodes in a broadcast manner, which imposes a burden on the network transmission, there is also a long waiting time due to waiting for other FCoE nodes to feedback whether there is a duplicate N_Port_ID. Performing less efficient problems. Not only that, the prior art does not consider the security of transmission and the like.
下面结合各个附图对本发明实施例技术方案的主要实现原理、具体实施方 式及其对应能够达到的有益效果进行详细的阐述。  The main implementation principles, specific implementation modes and the corresponding beneficial effects that can be achieved by the technical solutions of the embodiments of the present invention are described in detail below with reference to the accompanying drawings.
如图 2所示, 本发明实施例的主要实现原理流程如下:  As shown in FIG. 2, the main implementation principle process of the embodiment of the present invention is as follows:
步骤 10, FCoE启动器和 FCoE 目标器分别通过 FC-BB-5标准结构注册 / 登录过程, 获得 FCoE转发器分配的端口标识 N_Port_ID;  Step 10: The FCoE initiator and the FCoE target respectively obtain the port identifier N_Port_ID assigned by the FCoE forwarder through the FC-BB-5 standard structure registration/login process;
步骤 20, FCoE启动器发送注册请求消息或登录请求消息, 所述注册请求 消息或登录请求消息中携带 FCoE转发器的 MAC地址、 所述 FCoE目标器的 N_Port_ID;  Step 20: The FCoE initiator sends a registration request message or a login request message, where the registration request message or the login request message carries the MAC address of the FCoE forwarder and the N_Port_ID of the FCoE target.
所述 FCoE转发器的 MAC地址是 FCoE启动器采用 FC-BB-5标准的发现 过程获得的、 所述 FCoE目标器的 N_Port_ID是 FCoE启动器采用 FC-BB-5标 准的发现过程和信息查询过程获得的。  The MAC address of the FCoE forwarder is obtained by the discovery process of the FCoE initiator using the FC-BB-5 standard, and the N_Port_ID of the FCoE target is a discovery process and information query process of the FCoE initiator adopting the FC-BB-5 standard. acquired.
所述注册请求消息或登录请求消息均为 FCoE协议格式, 其中寻址所需的 以太网头中携带有 FCoE启动器的虚拟 MAC地址作为源 MAC地址、 FCoE转 发器的 MAC地址作为目的 MAC地址, 内容载荷( payload ) 中携带有 FC数 据包, FC 数据包中携带有 FCoE 目标器的 N_Port_ID、 FCoE 启动器的 N_Port_ID。  The registration request message or the login request message is in the FCoE protocol format, where the virtual MAC address of the FCoE initiator is used as the source MAC address and the MAC address of the FCoE forwarder as the destination MAC address. The content payload ( payload ) carries the FC packet, and the FC packet carries the N_Port_ID of the FCoE target and the N_Port_ID of the FCoE initiator.
步骤 30, FCoE转发器接收到所述注册请求消息或登录请求消息后, 鉴权 通过时, 将所述注册请求消息或登录请求消息转发给所述 FCoE目标器;  Step 30: After receiving the registration request message or the login request message, the FCoE forwarder forwards the registration request message or the login request message to the FCoE target device when the authentication is passed;
鉴权过程为: FCoE转发器根据存储的安全访问控制信息, 确认所述 FCoE 启动器是否具有与所述 FCoE目标器通信的权限。  The authentication process is: The FCoE forwarder confirms whether the FCoE initiator has the right to communicate with the FCoE target according to the stored secure access control information.
转发过程为: FCoE转发器将接收到的注册请求消息或登录请求消息以太 网头中的源 MAC地址替换为 FCoE转发器的 MAC地址、目的 MAC地址替换 为 FCoE目标器的虚拟 MAC地址, 重新生成注册请求消息或登录请求消息, 其中 FCoE目标器的虚拟 MAC地址是根据 FCoE转发器为 FCoE目标器分配的 N_Port_ID生成的, 例如在 N_Port_ID基础上添加特定网络前缀生成的。 将重新生成的注册请求消息或登录请求消息发送给 FCoE目标器。 The forwarding process is as follows: The FCoE forwarder replaces the source MAC address in the Ethernet header of the received registration request message or login request message with the MAC address of the FCoE forwarder, and replaces the destination MAC address with the virtual MAC address of the FCoE target, and regenerates. A registration request message or a login request message, where the virtual MAC address of the FCoE target is generated according to the N_Port_ID assigned by the FCoE forwarder to the FCoE target, for example, by adding a specific network prefix based on the N_Port_ID. Send the regenerated registration request message or login request message to the FCoE target.
步骤 40, FCoE目标器接收到 FCoE转发器转发的注册请求消息或登录请 求消息后, 与 FCoE目标器交互是否支持直接通信的信息;  Step 40: After receiving the registration request message or the login request message forwarded by the FCoE forwarder, the FCoE target device exchanges information with the FCoE target to support direct communication;
步骤 50, FCoE目标器和 /或 FCoE目标器根据交互结果判断所述 FCoE启 动器和所述 FCoE目标器是否均支持直接通信;  Step 50: The FCoE target and/or the FCoE target determine, according to the interaction result, whether the FCoE initiator and the FCoE target support direct communication;
步骤 60, FCoE目标器和 /或 FCoE目标器在确认所述 FCoE启动器和所述 FCoE 目标器均支持直接通信时, 根据所述 FCoE 目标器和 FCoE 启动器的 N_Port_ID, 建立 FCoE目标器和 FCoE启动器之间的虚拟链接用以传输 FCoE 协议数据包。  Step 60: The FCoE target and/or the FCoE target establish an FCoE target and FCoE according to the N_Port_ID of the FCoE target and the FCoE initiator when confirming that the FCoE initiator and the FCoE target support direct communication. A virtual link between initiators is used to transfer FCoE protocol packets.
下面将依据本发明上述发明原理, 详细介绍几个实施例来对本发明方法的 主要实现原理进行详细的阐述和说明。  In the following, in accordance with the above inventive principles of the present invention, several embodiments will be described in detail to explain and explain the main implementation principles of the method of the present invention in detail.
参照附图 3 为本发明实施例所应用的以太网光纤通道 FCoE场景的示意 图, 其中包含至少一个 FCoE启动器、 至少一个 FCoE目标器和一个 FCoE转 发器。  FIG. 3 is a schematic diagram of an Ethernet Fibre Channel FCoE scenario applied to an embodiment of the present invention, including at least one FCoE initiator, at least one FCoE target, and one FCoE transponder.
实施例一  Embodiment 1
本实施例将从 FCoE目标器的角度, 对应用于以太网光纤通道 FCoE场景 的通信方法进行说明。 附图 4为本实施例中应用于以太网光纤通道 FCoE场景 的通信方法的流程图。  This embodiment will explain the communication method applied to the Fibre Channel FCoE scenario from the perspective of the FCoE target. 4 is a flow chart of a communication method applied to an Ethernet Fibre Channel FCoE scenario in the present embodiment.
步骤 401 , FCoE目标器接收 FCoE转发器转发的注册请求消息或登录请求 消息, 所述注册请求消息或登录请求消息中携带的 FCoE启动器和该 FCoE目 标器的 N_Port_ID是通过 FC-BB-5标准结构注册 /登录过程, FCoE转发器分配 的;  Step 401: The FCoE target device receives a registration request message or a login request message forwarded by the FCoE forwarder, where the FCoE initiator and the N-Port_ID of the FCoE target carried in the registration request message or the login request message pass the FC-BB-5 standard. Structure registration/login process, assigned by the FCoE forwarder;
所述注册请求消息或登录请求消息是 FCoE转发器根据存储的安全访问控 制信息, 确认发送所述注册请求消息或登录请求消息的 FCoE启动器具有与所 述 FCoE目标器通信的权限时转发的;  The registration request message or the login request message is forwarded by the FCoE forwarder according to the stored security access control information, and the FCoE initiator that sends the registration request message or the login request message has the authority to communicate with the FCoE target device;
步骤 402,根据所述 FCoE启动器和 FCoE目标器的 N_Port_ID,所述 FCoE 目标器与所述 FCoE启动器交互是否支持直接通信的信息, 根据交互结果判断 所述 FCoE启动器和所述 FCoE目标器是否均支持直接通信; Step 402: According to the N_Port_ID of the FCoE initiator and the FCoE target, the FCoE Whether the target device interacts with the FCoE initiator to support direct communication, and determines whether the FCoE initiator and the FCoE target support direct communication according to the interaction result;
步骤 403,所述 FCoE目标器在确认所述 FCoE启动器和所述 FCoE目标器 均支持直接通信时, 直接与所述 FCoE启动器传输 FCoE协议数据包。  Step 403: The FCoE target device directly transmits the FCoE protocol data packet with the FCoE initiator when confirming that both the FCoE initiator and the FCoE target support direct communication.
可选地, 在步骤 402中若所述 FCoE目标器确认所述 FCoE启动器或所述 FCoE目标器不支持直接通信时,则所述 FCoE目标器和所述 FCoE启动器之间 传输的 FCoE协议数据包由 FCoE转发器进行转发。  Optionally, if the FCoE target device confirms that the FCoE initiator or the FCoE target device does not support direct communication, the FCoE protocol transmitted between the FCoE target device and the FCoE initiator is performed in step 402. The packet is forwarded by the FCoE forwarder.
可选地, 上述步骤 402采用的具体交互判断方式除了以下附图 5a、 附图 5b给出的两种之外,还可以采用其他方式,如 FCoE目标器在支持直接通信时, 直接尝试根据与 FCoE启动器建立虚拟链路, 若建立成功, 则确认双方均支持 直接通信, 否则确认双方不支持直接通信。 或者, FCoE 目标器在支持直接通 信时, 向 FCoE系统中的其他 FCoE节点广播查询消息, 根据反馈结果建立支 持直接通信的 FCoE节点列表, 在所述 FCoE启动器在节点列表中时, 确认双 方均支持直接通信, 否则确认双方不支持直接通信, 等等, 在这里不再一一列 举。  Optionally, the specific interaction judging manner adopted in the foregoing step 402 may be other methods besides the two types shown in FIG. 5a and FIG. 5b, for example, the FCoE target device directly tries to support the direct communication. The FCoE initiator establishes a virtual link. If the establishment is successful, it is confirmed that both parties support direct communication. Otherwise, it is confirmed that the two parties do not support direct communication. Or, when the FCoE target device supports direct communication, broadcasts a query message to other FCoE nodes in the FCoE system, and establishes a FCoE node list that supports direct communication according to the feedback result, and confirms both the FCoE initiators in the node list when the FCoE initiator is in the node list. Direct communication is supported, otherwise it is confirmed that the two parties do not support direct communication, etc., and are not listed here.
方式 1 , 如附图 5a所示:  Method 1 , as shown in Figure 5a:
步骤 51 , FCoE目标器在支持直接通信时, 从根据所述注册请求消息或登 录请求消息中提取携带的 FCoE启动器的 N_Port_ID, 根据所述 FCoE启动器 的 N_Port_ID生成 FCoE启动器的虚拟 MAC地址, 根据所述 FCoE启动器的 虚拟 MAC地址, 向所述 FCoE启动器发送用于询问 FCoE启动器是否支持直 接通信的询问请求消息;  Step 51: The FCoE target device generates a virtual MAC address of the FCoE initiator according to the N_Port_ID of the FCoE initiator, by extracting the N_Port_ID of the FCoE initiator that is carried according to the registration request message or the login request message, when the direct communication is supported. Sending, according to the virtual MAC address of the FCoE initiator, an inquiry request message for inquiring whether the FCoE initiator supports direct communication to the FCoE initiator;
具体地, FCoE 目标器从注册请求消息或登录请求消息的内容载荷中获取 FC数据包, 再从 FC数据中获取 FCoE启动器的 N_Port_ID。  Specifically, the FCoE target obtains the FC data packet from the content payload of the registration request message or the login request message, and acquires the N_Port_ID of the FCoE initiator from the FC data.
FCoE Initialization Protocol )格式, 其中 FIP code被设置为 FFF8h, subcode被 设置为 Olh, 内容载荷包括 FCoE目标器的N_Port_ID。 FIP格式的询问请求消 息寻址所需的以太网头中携带的目的 MAC 地址为根据 FCoE 启动器的 N_Port_ID生成的 FCoE启动器的虚拟 MAC地址、 源 MAC地址为 FCoE目标 的虚拟 MAC地址。 FCoE Initialization Protocol ) format, where FIP code is set to FFF8h, subcode is set to Olh, and content payload includes N_Port_ID of FCoE target. Request for request in FIP format The destination MAC address carried in the Ethernet header required for the address addressing is the virtual MAC address of the FCoE initiator generated according to the N_Port_ID of the FCoE initiator, and the virtual MAC address whose source MAC address is the FCoE target.
进一步, 内容载荷还可以包括 FCoE目标器的虚拟 MAC地址、 FCoE目标 器的物理 MAC地址、 全球唯一名字 (WWN, world wide name )等其他附加 信息。  Further, the content payload may further include other information such as a virtual MAC address of the FCoE target, a physical MAC address of the FCoE target, and a globally unique name (WWN, world wide name).
所述询问请求消息还可以是其他格式的消息, 只要其中携带有 FCoE启动 器和 FCoE目标器双方约定的用于标识该消息功能的特征码(即用于标识该消 息中携带询问是否支持直接通信的信息的特征码 ),如上述 FlP code或 subcode 即可。  The query request message may also be a message in other formats, as long as it carries the feature code for identifying the function of the message agreed by both the FCoE initiator and the FCoE target device (ie, it is used to identify whether the message carries the query to support direct communication. The signature of the information, such as the above FlP code or subcode.
步骤 52 , FCoE启动器接收到询问请求消息后,若支持直接通信,则向 FCoE 目标器返回询问响应消息; 否则, 丢弃或忽略所述询问请求消息;  Step 52: After receiving the inquiry request message, the FCoE initiator returns an inquiry response message to the FCoE target device if the direct communication is supported; otherwise, the inquiry request message is discarded or ignored;
FCoE启动器向 FCoE目标器返回询问响应消息后,确认所述 FCoE启动器 和所述 FCoE目标器均支持直接通信。  After the FCoE initiator returns an inquiry response message to the FCoE target, it is confirmed that both the FCoE initiator and the FCoE target support direct communication.
可选地, 所述询问响应消息为 FCoE协议标准中 FIP格式, 其中 FlP code 被设置为 FFF8h , subcode 被设置为 Olh , 内容载荷包括 FCoE 启动器的 N_Port_ID。 FIP格式的询问请求消息寻址所需的以太网头中携带的目的 MA地 址为 FCoE目标器的虚拟 MAC地址、源 MAC地址为 FCoE启动器的虚拟 MAC 地址。  Optionally, the query response message is a FIP format in the FCoE protocol standard, where the FlP code is set to FFF8h, the subcode is set to Olh, and the content payload includes the N_Port_ID of the FCoE initiator. The destination MA address carried in the Ethernet header required for addressing the request message in FIP format is the virtual MAC address of the FCoE target, and the source MAC address is the virtual MAC address of the FCoE initiator.
步骤 53, FCoE目标器若接收到所述 FCoE启动器返回的询问响应消息, 则确认所述 FCoE启动器和所述 FCoE目标器均支持直接通信。 若未接收到所 述 FCoE启动器返回的询问响应消息, 则确认所述 FCoE启动器不支持直接通 信。  Step 53: If the FCoE target receives the inquiry response message returned by the FCoE initiator, it is confirmed that the FCoE initiator and the FCoE target support direct communication. If the inquiry response message returned by the FCoE initiator is not received, it is confirmed that the FCoE initiator does not support direct communication.
为了避免长时间的等待,还可以设定等待时间 s, FCoE目标器若超过等待 时间 s仍未收到返回的询问响应消息, 则确认所述 FCoE启动器不支持直接通 信。 可选地, FCoE 目标器在发送询问请求消息之后、 且接收到询问响应消息 之前的这段时间内, 可以通过 FCoE转发器转发的方式, 与 FCoE启动器交互 FCoE协议数据包,以消除 FCoE启动器与 FCoE目标器不能交互 FCoE协议数 据包的等待时间。 In order to avoid long waits, the waiting time s can also be set. If the FCoE target does not receive the returned inquiry response message if it exceeds the waiting time s, it is confirmed that the FCoE initiator does not support direct communication. Optionally, the FCoE target device can exchange the FCoE protocol data packet with the FCoE initiator to cancel the FCoE startup by using the FCoE forwarder after the inquiry request message is sent and before the inquiry response message is received. The FCoE protocol packet cannot interact with the FCoE target.
方式 2, 如附图 5b所示:  Mode 2, as shown in Figure 5b:
步骤 54, FCoE目标器从所述注册请求消息或登录请求消息中提取携带的 FCoE启动器的 N_Port_ID, 才艮据所述 FCoE启动器的 N_Port_ID向所述 FCoE 启动器发送请求接受消息,所述请求接受消息是通过所述 FCoE转发器转发的; 可选地, 该请求接受消息为 FCoE协议格式, 寻址所需的以太网头中携带 有 FCoE转发器的 MAC地址,内容载荷携带有所述 FCoE启动器的 N_Port_ID。 所述 FCoE转发器转发请求接受消息的转发过程与附图 2步骤 20中的描述原 理类似, 在这里不再详述。  Step 54: The FCoE target device extracts the N_Port_ID of the carried FCoE initiator from the registration request message or the login request message, and sends a request accept message to the FCoE initiator according to the N_Port_ID of the FCoE initiator. The content message is carried by the FCoE forwarder. The N_Port_ID of the initiator. The forwarding process of the FCoE forwarder forwarding request accept message is similar to the description principle in step 20 of FIG. 2, and will not be described in detail herein.
步骤 55 , FCoE启动器接收到所述请求接受消息后, 根据所述请求接受消 息中携带的 FCoE目标器的 N_Port_ID, 生成 FCoE目标器的虚拟 MAC地址, 根据 FCoE目标器的虚拟 MAC地址向 FCoE目标器发送用于询问 FCoE目标器 是否支持直接通信的询问请求消息;  Step 55: After receiving the request accept message, the FCoE initiator receives the N_Port_ID of the FCoE target carried in the message according to the request, generates a virtual MAC address of the FCoE target, and uses the virtual MAC address of the FCoE target to the FCoE target. Transmitting an inquiry request message for inquiring whether the FCoE target supports direct communication;
询问请求消息的格式和内容与步骤 51中的介绍类似, 在这里不再详述。 步骤 56 , FCoE目标器接收到询问请求消息后, 在支持直接通信时, 向所 述 FCoE启动器返回询问响应消息; 否则, 丢弃或忽略所述询问请求消息; FCoE 目标器返回询问响应消息后, 确认所述 FCoE启动器和所述 FCoE 目标器均支持直接通信。  The format and content of the inquiry request message are similar to those described in step 51 and will not be described in detail herein. Step 56: After receiving the inquiry request message, the FCoE target device returns an inquiry response message to the FCoE initiator when direct communication is supported; otherwise, discards or ignores the inquiry request message; after the FCoE target returns the inquiry response message, Verify that both the FCoE initiator and the FCoE target support direct communication.
询问响应消息的格式和内容与步骤 52中的介绍类似, 在这里不再详述。 步骤 57, FCoE启动器若接收到询问响应消息, 则确认所述 FCoE启动器 和所述 FCoE目标器均支持直接通信。 若未接收到所述 FCoE启动器返回的询 问响应消息, 则确认所述 FCoE启动器不支持直接通信。  The format and content of the inquiry response message is similar to that described in step 52 and will not be described in detail herein. Step 57: If the FCoE initiator receives the inquiry response message, it is confirmed that the FCoE initiator and the FCoE target support direct communication. If the inquiry response message returned by the FCoE initiator is not received, it is confirmed that the FCoE initiator does not support direct communication.
在步骤 403中, 所述 FCoE目标器直接与所述 FCoE启动器传输 FCoE协 议数据包, 具体为: 所述 FCoE目标器与所述 FCoE启动器根据所述 FCoE启 动器的虚拟 MAC地址、 N_Port_ID以及所述 FCoE目标器的虚拟 MAC地址、 N_Port_ID建立虚拟连接, 用以传输二者之间的 FCoE协议数据包。 In step 403, the FCoE target directly transmits the FCoE protocol to the FCoE initiator. The data packet is specifically configured to: the FCoE target device and the FCoE initiator establish a virtual connection according to the virtual MAC address of the FCoE initiator, the N_Port_ID, and the virtual MAC address of the FCoE target, and the N_Port_ID, to transmit the second FCoE protocol packets between the parties.
其中, 所述 FCoE目标器向所述 FCoE启动器直接传输 FCoE协议数据包 时所根据的 FCoE启动器的 N_Port_ID可以为注册请求消息或登录请求消息中 携带的, 所依据的虚拟 MAC地址可以为根据所述 N_Port_ID生成的;  The N_Port_ID of the FCoE initiator according to the FCoE initiator directly transmitting the FCoE protocol packet to the FCoE initiator may be carried in a registration request message or a login request message, and the virtual MAC address may be based on Generated by the N_Port_ID;
当采用上述方式 1 时, 所述 FCoE启动器向所述 FCoE 目标器直接传输 FCoE协议数据包时所根据的 FCoE目标器的虚拟 MAC地址可以为 FCoE启动 器从询问请求消息中获取的、 或者根据 FCoE目标器的 N_Port_ID生成的; 当 采用上述方式 2时, 所述 FCoE目标器的虚拟 MAC地址可以为 FCoE启动器 根据 FCoE目标器的 N_Port_ID生成的。  When the mode 1 is used, the virtual MAC address of the FCoE target according to the FCoE initiator directly transmitting the FCoE protocol packet to the FCoE initiator may be obtained by the FCoE initiator from the query request message, or according to The N_Port_ID of the FCoE target is generated; when the above manner 2 is adopted, the virtual MAC address of the FCoE target may be generated by the FCoE initiator according to the N_Port_ID of the FCoE target.
本发明实施例提供的通信方案中, FCoE 目标器在接收到 FCoE转发器转 发的注册请求消息或登录请求消息后, 发起与 FCoE启动器之间确认对方是否 支持直接通信的信息交互, 在根据信息交互结果确认所述 FCoE启动器和所述 FCoE目标器均支持直接通信时,直接与所述 FCoE目标器传输 FCoE协议数据 包。 FCoE 目标器发起确认对方是否支持直接通信的信息交互之前, 所必须的 生成 FCoE节点的 N_Port_ID的步骤可以沿用现有 FC-BB-5中的流程,对现有 标准的改动较小。  In the communication scheme provided by the embodiment of the present invention, after receiving the registration request message or the login request message forwarded by the FCoE forwarder, the FCoE target device initiates an information interaction with the FCoE initiator to confirm whether the other party supports direct communication, according to the information. The result of the interaction confirms that the FCoE protocol packet is directly transmitted with the FCoE target when the FCoE initiator and the FCoE target support direct communication. Before the FCoE target initiates the information exchange to confirm whether the other party supports direct communication, the step of generating the N_Port_ID of the FCoE node must follow the process in the existing FC-BB-5, and the changes to the existing standard are small.
更重要的是与现有每个 FCoE节点各自随机生成自身的 N_Port_ID, 并广 播的方案相比, 在 FCoE启动器或 FCoE 目标器建立虚拟链路直接传输 FCoE 数据包之前, 仅会增加通信双方筒单的两、 三条消息, 大大降低了消耗的网络 传输资源,减轻了网络负荷,这一优点在 FCoE节点数目较多的场景尤为重要。  What's more important is that each existing FCoE node randomly generates its own N_Port_ID, and compared with the broadcast scheme, before the FCoE initiator or FCoE target establishes a virtual link to directly transmit FCoE packets, only the communication parties are added. A single two or three messages greatly reduce the network transmission resources consumed and reduce the network load. This advantage is especially important in scenarios where the number of FCoE nodes is large.
此外, 在 FCoE启动器和 FCoE目标器直接通信之前, 通过 FCoE转发器 对 FCoE启动器的权限进行验证, 还可以保证通信的安全性。 实施例二 本实施例将从 FCoE启动器的角度, 对应用于以太网光纤通道 FCoE场景 的通信方法进行说明。 附图 6为本实施例中应用于以太网光纤通道 FCoE场景 的通信方法的流程图。 In addition, before the FCoE initiator and the FCoE target communicate directly, the FCoE initiator's permissions are verified by the FCoE forwarder, which also ensures the security of the communication. Embodiment 2 This embodiment will describe a communication method applied to an Ethernet Fibre Channel FCoE scenario from the perspective of an FCoE initiator. 6 is a flow chart of a communication method applied to an Ethernet Fibre Channel FCoE scenario in the present embodiment.
步骤 601 , FCoE启动器发送注册请求消息或登录请求消息, 所述注册请 求消息或登录请求消息中携带 FCoE转发器的 MAC地址、 所述 FCoE启动器 和待通信 FCoE目标器的 N_Port_ID, 所述 FCoE转发器的 MAC地址是通过 FC-BB-5标准发现过程获得的,所述 FCoE启动器和 FCoE目标器的 N_Port_ID 是通过 FC-BB-5标准结构注册 /登录过程由所述 FCoE转发器分配的;  Step 601: The FCoE initiator sends a registration request message or a login request message, where the registration request message or the login request message carries the MAC address of the FCoE forwarder, the FCoE initiator, and the N_Port_ID of the FCoE target to be communicated, the FCoE The MAC address of the repeater is obtained through the FC-BB-5 standard discovery process, and the N_Port_ID of the FCoE initiator and the FCoE target is allocated by the FCoE forwarder through the FC-BB-5 standard structure registration/login process. ;
所述注册请求消息或登录请求消息在 FCoE转发器根据存储的安全访问控 制信息确认所述 FCoE启动器具有与所述 FCoE目标器通信的权限时, 被转发 给所述 FCoE目标器;  The registration request message or the login request message is forwarded to the FCoE target when the FCoE forwarder confirms that the FCoE initiator has the right to communicate with the FCoE target according to the stored secure access control information;
步骤 602, 根据所述 FCoE启动器和 FCoE目标器的 N_Port_ID, FCoE启 动器与所述 FCoE目标器交互是否支持直接通信的信息, 根据交互结果判断所 述 FCoE启动器和所述 FCoE目标器是否均支持直接通信;  Step 602: According to the N_Port_ID of the FCoE initiator and the FCoE target, whether the FCoE initiator interacts with the FCoE target to support direct communication, and determine, according to the interaction result, whether the FCoE initiator and the FCoE target are both Support direct communication;
步骤 603, FCoE启动器在确认所述 FCoE启动器和所述 FCoE目标器均支 持直接通信时,根据所述 FCoE目标器和 FCoE启动器的 N_Port_ID,建立 FCoE 目标器和 FCoE启动器之间的虚拟链接用以传输 FCoE协议数据包。  Step 603: The FCoE initiator establishes a virtual relationship between the FCoE target and the FCoE initiator according to the N_Port_ID of the FCoE target and the FCoE initiator when confirming that the FCoE initiator and the FCoE target support direct communication. The link is used to transmit FCoE protocol packets.
上述步骤 602采用的具体交互判断方式与实施例一中的相类似: 附图 5a 中, 在步骤 52, FCoE启动器向 FCoE目标器返回询问响应消息后, 确认所述 FCoE启动器和所述 FCoE 目标器均支持直接通信。 在附图 5b中, 在步骤 56 后, FCoE启动器接收到 FCoE目标器返回的询问响应消息后, 确认所述 FCoE 启动器和所述 FCoE目标器均支持直接通信。  The specific interaction judgment manner adopted in the above step 602 is similar to that in the first embodiment: In FIG. 5a, after the FCoE initiator returns an inquiry response message to the FCoE target, in step 52, the FCoE initiator and the FCoE are confirmed. The target supports direct communication. In Figure 5b, after step 56, after receiving the inquiry response message returned by the FCoE target, the FCoE initiator confirms that both the FCoE initiator and the FCoE target support direct communication.
实施例三  Embodiment 3
在本实施例中将以附图 3中 FCoE启动器 FCoE initiator A、 FCoE目标器 FCoE target B和 FCoE转发器 FCoE Switch为例, 对应用于以太网光纤通道 FCoE场景的通信方法进行说明, 其流程图请参照附图 7a。 步骤 701 , FCoE initiator A通过 FC-BB-5标准的发现过程发现网络中的 FCoE转发器 FCoE Switch, 获得 FCoE Switch的 MAC地址; In this embodiment, the FCoE initiator FCoE initiator A, the FCoE target FCoE target B, and the FCoE forwarder FCoE Switch in FIG. 3 are taken as an example to describe a communication method applied to an Ethernet Fibre Channel FCoE scenario. Please refer to Figure 7a. Step 701: The FCoE initiator A discovers the FCoE switch FCoE switch in the network through the discovery process of the FC-BB-5 standard, and obtains the MAC address of the FCoE switch.
这里仅对 FC-BB-5 标准的发现过程进行筒单描述: FCoE Switch接收到 FCoE initiator A发送 FCF发现请求( FCF Discovery Solicitation )消息后, 将自 身的 MAC地址携带在对应的 FCF发现响应( FCF Discovery Advertisement )消 息中返回给 FCoE initiator A。  Here, only the discovery process of the FC-BB-5 standard is described in the following: After receiving the FCF Discovery Solicitation message, the FCoE Switch carries its own MAC address in the corresponding FCF discovery response (FCF). The Discovery Advertisement message is returned to the FCoE initiator A.
步骤 702, FCoE initiator A根据 FCoE Switch的 MAC地址,执行结构注册 /登录过程, 获得 FCoE Switch为 FCoE initiator A分配的端口标识 N_Port_IDl; 具体地, FCoE initiator A向 FCoE Switch发送结构注册 /登录( FLOGI, Fabric login )请求消息; FCoE Switch为 FCoE initiator A分配 N_Port_IDl , 并将所分 配的 N_Port_IDl携带在注册 /登录响应消息中返回给 FCoE initiator A。  Step 702: The FCoE initiator A performs a structure registration/login process according to the MAC address of the FCoE switch, and obtains the port identifier N_Port_ID1 allocated by the FCoE initiator A to the FCoE initiator A. Specifically, the FCoE initiator A sends a structure registration/login (FLOGI, to the FCoE Switch, Fabric login) request message; FCoE Switch allocates N_Port_IDl to FCoE initiator A, and carries the assigned N_Port_ID1 in the registration/login response message and returns it to FCoE initiator A.
步骤 703 , FCoE target B通过 FC-BB-5标准的发现过程发现网络中的 FCoE 转发器 FCoE Switch, 获得 FCoE Switch的 MAC地址;  Step 703: The FCoE target B discovers the FCoE switch FCoE Switch in the network through the discovery process of the FC-BB-5 standard, and obtains the MAC address of the FCoE switch.
具体发现过程参照步骤 701。  The specific discovery process refers to step 701.
步骤 704, FCoE target B根据 FCoE Switch的 MAC地址, 执行结构注册 / 登录过程, 获得 FCoE Switch为 FCoE target B分配的端口标识 N_Port_ID2; 具体结构注册 /登录过程参照步骤 702。  In step 704, the FCoE target B performs the structure registration/login process according to the MAC address of the FCoE switch, and obtains the port identifier N_Port_ID2 assigned by the FCoE switch to the FCoE target B. For the specific structure registration/login process, refer to step 702.
步骤 705 , FCoE initiator A执行信息查询过程, 从 FCoE Switch中查询待 通信的 FCoE target B的 N_Port_ID;  Step 705: The FCoE initiator A performs an information query process, and queries the FCoE Switch for the N_Port_ID of the FCoE target B to be communicated.
信息查询过程采用 FC-BB-5标准,具体为: FCoE initiator A向 FCoE Switch 发送端口注册命名服务器( PLOGI NS, N_PortLogin Name Server )查询请求消 息,该 PLOGI NS查询请求消息中携带有 FCoE target B的 WWN; FCoE Switch 向 FCoE initiator A返回 PLOGI NS查询响应消息,该查询响应消息中携带有为 FCoE target B分配的 N_Port_ID2。  The information query process uses the FC-BB-5 standard. Specifically, the FCoE initiator A sends a port registration name server (PLOGI NS, N_PortLogin Name Server) to the FCoE Switch to query the request message. The PLOGI NS query request message carries the FCoE target B. The FCoE Switch returns a PLOGI NS query response message to the FCoE initiator A, where the query response message carries the N_Port_ID2 assigned to the FCoE target B.
步骤 706 , FCoE initiator A向 FCoE target B发送注册请求消息或登录请求 消息, 所述注册请求消息或登录请求消息的目的 MAC地址为 FCoE Switch的 MAC地址、 且目的 N_Port_ID为 FCoE target B的 N_Port_ID2, 所述注册请求 消息或登录请求消息被发送给 FCoE Switch。 Step 706: The FCoE initiator A sends a registration request message or a login request message to the FCoE target B, where the destination MAC address of the registration request message or the login request message is FCoE Switch. The MAC address and the destination N_Port_ID are N_Port_ID2 of the FCoE target B, and the registration request message or the login request message is sent to the FCoE Switch.
步骤 707, FCoE Switch从接收到得注册请求消息或登录请求消息中获取 FCoE initiator A的 MAC地址或 N_Port_IDl , 才艮据存储的安全访问控制信息, 如分区 ( Zoning )信息, 判断 FCoE initiator A是否具有与 FCoE target B通信 的权限, 若判断结果为是, 将所述注册请求消息或登录请求消息转发给 FCoE target B, 进入步骤 708, 否则拒绝所述注册请求消息或登录请求消息。  Step 707: The FCoE Switch obtains the MAC address or N_Port_ID1 of the FCoE initiator A from the received registration request message or the login request message, and determines whether the FCoE initiator A has the stored security access control information, such as Zoning information. If the result of the determination is YES, the registration request message or the login request message is forwarded to the FCoE target B, and the process proceeds to step 708, otherwise the registration request message or the login request message is rejected.
步骤 708, FCoE target B根据从所述注册请求消息或登录请求消息中获取 的 FCoE initiator A的 N_Port_IDl生成虚拟 FCoE initiator A的 MAC地址, 向 FCoE initiator A发送用于询问 FCoE initiator A是否支持直接通信的询问请求消 由于 FCoE Switch转发注册请求消息或登录请求消息已经进行了鉴权, 因 此 FCoE target B接收到 FCoE initiator A注册请求消息或登录请求消息, 说明 FCoE Switch允许 FCoE initiator A与 FCoE target B进行通信。  Step 708: The FCoE target B generates a MAC address of the virtual FCoE initiator A according to the N_Port_ID1 of the FCoE initiator A obtained from the registration request message or the login request message, and sends a message to the FCoE initiator A for inquiring whether the FCoE initiator A supports direct communication. If the FCoE initiator forwards the registration request message or the login request message, the FCoE target B receives the FCoE initiator A registration request message or the login request message, indicating that the FCoE initiator allows the FCoE initiator A to communicate with the FCoE target B. .
FCoE target B从注册请求消息或登录请求消息中获取 N_Port_IDl后, 在 其前面添加特定网络前缀, 生成 FCoE initiator A的虚拟 MAC地址。  After FCoE target B obtains N_Port_IDl from the registration request message or the login request message, it adds a specific network prefix in front of it to generate the virtual MAC address of FCoE initiator A.
步骤 709, FCoE initiator A接收到询问请求消息后, 若支持直接通信, 则 向 FCoE target B返回询问响应消息; 否则, 忽略或丢弃该询问请求消息。  Step 709: After receiving the inquiry request message, the FCoE initiator A returns an inquiry response message to the FCoE target B if direct communication is supported; otherwise, the inquiry request message is ignored or discarded.
FCoE initiator A返回询问响应消息后,确认 FCoE initiator A和 FCoE target B均支持直接通信。  After the FCoE initiator A returns an inquiry response message, it is confirmed that both FCoE initiator A and FCoE target B support direct communication.
其中, FCoE initiator A根据 FCoE target B的虚拟 MAC地址和 N_Port_ID2 向 FCoE target B返回询问响应消息,其中 FCoE target B的虚拟 MAC地址可以 从询问请求消息中获取, 也可以根据在 N_Port_ID2前面添加特定网络前缀, 生成 FCoE target B的虚拟 MAC地址。  The FCoE initiator A returns an inquiry response message to the FCoE target B according to the virtual MAC address of the FCoE target B and the N_Port_ID2, where the virtual MAC address of the FCoE target B can be obtained from the inquiry request message, or a specific network prefix can be added in front of the N_Port_ID2. , Generate the virtual MAC address of FCoE target B.
步骤 710, FCoE target B接收到询问响应消息后, 确认 FCoE initiator A和 Step 710, after receiving the inquiry response message, the FCoE target B confirms the FCoE initiator A and
FCoE target B均支持直接通信。 步骤 711 , FCoE initiator A和 FCoE target B根据 FCoE initiator A的虚拟 MAC地址、 N_Port_IDl以及 FCoE target B的虚拟 MAC地址、 N_Port_ID2, 建立虚拟链接, 直接传输 FCoE协议数据包。 FCoE target B supports direct communication. Step 711: The FCoE initiator A and the FCoE target B establish a virtual link according to the virtual MAC address of the FCoE initiator A, the N_Port_ID1, and the virtual MAC address of the FCoE target B, and the N_Port_ID2, and directly transmit the FCoE protocol data packet.
此外, 上述步骤 708~步骤 711也可以用步骤 718~步骤 722来代替, 具体 请参照附图 7b, 其中步骤 701~步骤 707与附图 7a类似, 在这里不再重复。  In addition, the above steps 708 to 711 may be replaced by steps 718 to 722. For details, refer to FIG. 7b, where steps 701 to 707 are similar to FIG. 7a, and are not repeated here.
步骤 718, FCoE target B根据从所述注册请求消息或登录请求消息中获取 的 FCoE initiator A的 N_Port_IDl , 向 FCoE initiator A发送请求接受消息, 所 述请求接受消息是通过 FCoE Switch转发的;  Step 718: The FCoE target B sends a request accept message to the FCoE initiator A according to the N_Port_ID1 of the FCoE initiator A obtained from the registration request message or the login request message, and the request accept message is forwarded by the FCoE Switch;
步骤 719, FCoE initiator A收到请求接受消息后,确认可以与 FCoE target B 进行通信, FCoE initiator A根据 N_Port_ID2生成 FCoE target B的虚拟 MAC 地址,向 FCoE target B发送用于询问 FCoE目标器是否支持直接通信的询问请 求消息;  Step 719: After receiving the request accept message, the FCoE initiator A confirms that it can communicate with the FCoE target B. The FCoE initiator A generates a virtual MAC address of the FCoE target B according to the N_Port_ID2, and sends a message to the FCoE target B to ask whether the FCoE target supports direct Communication request message;
步骤 720, FCoE target B支持直接通信时, 向所述 FCoE启动器返回询问 响应消息; 否则, 忽略或丢弃该询问请求消息。  Step 720: When the FCoE target B supports direct communication, return an inquiry response message to the FCoE initiator; otherwise, the inquiry request message is ignored or discarded.
FCoE target B返回询问响应消息后,确认 FCoE initiator A和 FCoE target B 均支持直接通信。  After FCoE target B returns the inquiry response message, it is confirmed that both FCoE initiator A and FCoE target B support direct communication.
步骤 721 , FCoE initiator A接收到询问响应消息时, 确认 FCoE initiator A 和 FCoE target B均支持直接通信。  Step 721: When receiving the inquiry response message, the FCoE initiator A confirms that both FCoE initiator A and FCoE target B support direct communication.
步骤 722, FCoE initiator A和 FCoE target B根据 FCoE initiator A的虚拟 MAC地址、 N_Port_IDl以及 FCoE target B的虚拟 MAC地址、 N_Port_ID2, 建立虚拟链接, 直接传输 FCoE协议数据包。  Step 722: The FCoE initiator A and the FCoE target B establish a virtual link according to the virtual MAC address of the FCoE initiator A, the N_Port_ID1, and the virtual MAC address of the FCoE target B, and the N_Port_ID2, and directly transmit the FCoE protocol data packet.
本发明实施例利用 FC-BB-5 标准的发现过程和信息查询过程来分配直接 通信双方 FCoE节点的 N_Port_ID, 而不是由通信双方 FCoE节点各自生成 N_Port_ID , 保证了生成 N_Port_ID的唯一性, 从而节省了反复生成 N_Port_ID 的时间, 减轻了网络载荷。 再此基础上, 通信双方 FCoE节点通过询问消息来 交互支付支持直接通信的信息, 在确认通信双方 FCoE节点均支持直接通信时 建立虚拟连接直接传输 FCoE协议数据包。 本发明实施例提供的技术方案与 FC-BB-5标准的兼容性较好, 因而具有更好的推广应用前景。 相应地, 本发明实施例还提供了一种应用于以太网光纤通道 FCoE场景的 通信装置, 如图 8a所示, 该装置可以为 FCoE 目标器, 该装置包括接收单元 801、 信息交互单元 802、 判断单元 803和第一传输单元 804, 具体如下: The embodiment of the present invention utilizes the discovery process and the information query process of the FC-BB-5 standard to allocate the N_Port_ID of the FCoE node of the direct communication party, instead of generating the N_Port_ID by each of the FCoE nodes of the communication party, thereby ensuring the uniqueness of generating the N_Port_ID, thereby saving the invention. The time to generate the N_Port_ID repeatedly reduces the network load. Based on this, the FCoE nodes of the two communicating parties exchange information to support direct communication through the inquiry message, and confirm that the FCoE nodes of both communication parties support direct communication. Establish a virtual connection to directly transfer FCoE protocol packets. The technical solutions provided by the embodiments of the present invention have better compatibility with the FC-BB-5 standard, and thus have better application prospects. Correspondingly, the embodiment of the present invention further provides a communication device applied to an Ethernet Fibre Channel FCoE scenario. As shown in FIG. 8a, the device may be an FCoE target, and the device includes a receiving unit 801, an information interaction unit 802, and The determining unit 803 and the first transmitting unit 804 are as follows:
接收单元 801 , 用于接收注册请求消息或登录请求消息, 所述注册请求消 息或登录请求消息中携带的 FCoE启动器和该 FCoE 目标器的 N_Port_ID是 FCoE转发器分配的;  The receiving unit 801 is configured to receive a registration request message or a login request message, where the FCoE initiator and the FCoE target N_Port_ID carried in the registration request message or the login request message are allocated by the FCoE forwarder;
所述注册请求消息或登录请求消息是 FCoE转发器转发的, FCoE转发器 根据存储的安全访问控制信息, 确认发送所述注册请求消息或登录请求消息的 FCoE启动器具有与所述 FCoE 目标器通信的权限时转发所述注册请求消息或 登录请求消息;  The registration request message or the login request message is forwarded by the FCoE forwarder, and the FCoE forwarder confirms that the FCoE initiator that sends the registration request message or the login request message has communication with the FCoE target device according to the stored security access control information. Forwarding the registration request message or login request message when the permission is;
信息交互单元 802, 用于所述接收单元接收到所述注册请求消息或登录请 求消息后, 根据所述 FCoE启动器和 FCoE目标器的N_Port_ID, 与所述 FCoE 启动器双方交互是否支持直接通信的信息;  The information interaction unit 802 is configured to: after the receiving unit receives the registration request message or the login request message, according to the N_Port_ID of the FCoE initiator and the FCoE target, whether the FCoE initiator interacts with the direct communication. Information
判断单元 803, 用于根据信息交互单元 802的交互结果判断所述 FCoE启 动器和所述 FCoE目标器是否均支持直接通信;  The determining unit 803 is configured to determine, according to the interaction result of the information interaction unit 802, whether the FCoE initiator and the FCoE target support direct communication;
第一传输单元 804, 用于在判断单元 803 确认所述 FCoE 启动器和所述 FCoE 目标器均支持直接通信时, 根据所述 FCoE 目标器和 FCoE 启动器的 N_Port_ID, 建立 FCoE目标器和 FCoE启动器之间的虚拟链接用以传输 FCoE 协议数据包。。  The first transmission unit 804 is configured to establish an FCoE target and an FCoE start according to the N_Port_ID of the FCoE target and the FCoE initiator when the determining unit 803 confirms that the FCoE initiator and the FCoE target support direct communication. A virtual link between the devices is used to transfer FCoE protocol packets. .
可选地, 请参照附图 8b, 所述信息交互单元 802具体包括:  Optionally, referring to FIG. 8b, the information interaction unit 802 specifically includes:
第一发送子单元 805, 用于在所述 FCoE目标器在支持直接通信时, 从所 述注册请求消息或登录请求消息中提取携带的 FCoE启动器的 N_Port_ID, 根 据所述 FCoE启动器的 N_Port_ID生成 FCoE启动器的虚拟 MAC地址, 才艮据 所述 FCoE启动器的虚拟 MAC地址, 向所述 FCoE启动器发送用于询问 FCoE 启动器是否支持直接通信的询问请求消息; The first sending sub-unit 805 is configured to: when the FCoE target device supports direct communication, extract the N_Port_ID of the carried FCoE initiator from the registration request message or the login request message, and generate according to the N_Port_ID of the FCoE initiator. The virtual MAC address of the FCoE initiator, a virtual MAC address of the FCoE initiator, sending an inquiry request message to the FCoE initiator for inquiring whether the FCoE initiator supports direct communication;
第一接收子单元 806, 用于接收所述 FCoE启动器返回的询问响应消息; 所述判断单元 803在第一接收子单元 806接收到所述 FCoE启动器返回的 询问响应消息后,确认所述 FCoE启动器和所述 FCoE目标器均支持直接通信。  a first receiving sub-unit 806, configured to receive an inquiry response message returned by the FCoE initiator; the determining unit 803, after the first receiving sub-unit 806 receives the inquiry response message returned by the FCoE initiator, confirms the Both the FCoE initiator and the FCoE target support direct communication.
可选地, 附图 8a中的通信装置还包括:  Optionally, the communication device in Figure 8a further includes:
第二传输单元 811 , 用于在第一接收子单元 806接收到所述 FCoE启动器 返回的响应消息前, 通过 FCoE转发器转发的方式传输所述 FCoE目标器与所 述 FCoE启动器之间的 FCoE协议数据包。  The second transmission unit 811 is configured to transmit, between the FCoE target device and the FCoE initiator, by the FCoE forwarder forwarding manner before the first receiving subunit 806 receives the response message returned by the FCoE initiator. FCoE protocol packet.
请参照附图 8c, 所述信息交互单元 802具体包括:  Referring to FIG. 8c, the information interaction unit 802 specifically includes:
第二发送子单元 807, 用于从所述注册请求消息或登录请求消息中提取携 带的 FCoE启动器的 N_Port_ID, 根据所述 FCoE启动器的 N_Port_ID向所述 FCoE启动器发送请求接受消息, 所述请求接受消息是通过所述 FCoE转发器 转发的;  a second sending sub-unit 807, configured to extract an N_Port_ID of the carried FCoE initiator from the registration request message or the login request message, and send a request accept message to the FCoE initiator according to the N_Port_ID of the FCoE initiator, The request accept message is forwarded by the FCoE forwarder;
第二接收子单元 808, 用于接收所述 FCoE启动器在接收到所述请求接受 消息后发来的用于询问 FCoE目标器是否支持直接通信的询问请求消息;  a second receiving sub-unit 808, configured to receive an inquiry request message sent by the FCoE initiator after receiving the request accept message for inquiring whether the FCoE target device supports direct communication;
第三发送子单元 809, 用于在所述 FCoE目标器支持直接通信时, 向所述 FCoE启动器返回询问响应消息;  a third sending subunit 809, configured to return an inquiry response message to the FCoE initiator when the FCoE target supports direct communication;
所述判断单元 803在第三发送子单元 809发送询问响应消息后, 确认所述 FCoE启动器和所述 FCoE目标器均支持直接通信。  After the third sending subunit 809 sends the inquiry response message, the determining unit 803 confirms that both the FCoE initiator and the FCoE target support direct communication.
本发明实施例还提供了一种应用于以太网光纤通道 FCoE 场景的通信装 置, 如图 9a所示, 该装置可以为 FCoE启动器, 该装置包括发送单元 901、 信 息交互单元 902、 判断单元 903和第一传输单元 904, 其中:  The embodiment of the present invention further provides a communication device applied to an Ethernet Fibre Channel FCoE scenario. As shown in FIG. 9a, the device may be an FCoE initiator, and the device includes a sending unit 901, an information interaction unit 902, and a determining unit 903. And a first transmission unit 904, wherein:
发送单元 901 , 用于发送注册请求消息或登录请求消息, 所述注册请求消 息或登录请求消息中携带所述 FCoE 启动器和待通信 FCoE 目标器的 N_Port_ID, 所述 FCoE启动器和 FCoE目标器的 N_Port_ID是由所述 FCoE转 发器分配的; The sending unit 901 is configured to send a registration request message or a login request message, where the registration request message or the login request message carries the F_E initiator and the N_Port_ID of the FCoE target to be communicated, where the FCoE initiator and the FCoE target are N_Port_ID is transferred by the FCoE Assigned by the transmitter;
所述注册请求消息或登录请求消息是由 FCoE转发器转发给所述 FCoE目 标器的, FCoE转发器根据存储的安全访问控制信息确认所述 FCoE启动器具 有与所述 FCoE目标器通信的权限时, 转发所述注册请求消息或登录请求消息 给所述 FCoE目标器;  The registration request message or the login request message is forwarded by the FCoE forwarder to the FCoE target, and the FCoE forwarder confirms that the FCoE initiator has the right to communicate with the FCoE target according to the stored secure access control information. Transmitting the registration request message or the login request message to the FCoE target device;
信息交互单元 902, 用于 FCoE目标器接收到所述注册请求消息或登录请 求消息后, 根据所述 FCoE启动器和 FCoE目标器的N_Port_ID, 与所述 FCoE 目标器双方交互是否支持直接通信的信息;  The information interaction unit 902 is configured to: after receiving the registration request message or the login request message, the FCoE target device, according to the N_Port_ID of the FCoE initiator and the FCoE target, whether to interact with the FCoE target to support direct communication. ;
判断单元 903, 用于根据信息交互单元 902的交互结果判断所述 FCoE启 动器和所述 FCoE目标器是否均支持直接通信;  The determining unit 903 is configured to determine, according to the interaction result of the information interaction unit 902, whether the FCoE initiator and the FCoE target support direct communication;
第一传输单元 904, 用于在判断单元 903 确认所述 FCoE 启动器和所述 FCoE 目标器均支持直接通信时, 根据所述 FCoE 目标器和 FCoE 启动器的 N_Port_ID, 建立 FCoE目标器和 FCoE启动器之间的虚拟链接用以传输 FCoE 协议数据包。  The first transmission unit 904 is configured to establish an FCoE target and an FCoE start according to the N_Port_ID of the FCoE target and the FCoE initiator when the determining unit 903 confirms that the FCoE initiator and the FCoE target support direct communication. A virtual link between the devices is used to transfer FCoE protocol packets.
可选地, 参照附图 9b, 所述信息交互单元 902包括第一接收子单元 905、 第一发送子单元 906:  Optionally, referring to FIG. 9b, the information interaction unit 902 includes a first receiving subunit 905 and a first sending subunit 906:
第一接收子单元 905, 用于接收所述 FCoE目标器在接收到所述注册请求 消息或登录请求消息后发送的询问请求消息;  The first receiving subunit 905 is configured to receive an inquiry request message sent by the FCoE target after receiving the registration request message or the login request message;
第一发送子单元 906, 用于在所述 FCoE启动器支持直接通信时, 向所述 FCoE目标器返回询问响应消息;  a first sending subunit 906, configured to return an inquiry response message to the FCoE target when the FCoE initiator supports direct communication;
所述判断单元 903在第一发送子单元 906返回询问响应消息时, 确认所述 FCoE启动器和所述 FCoE目标器均支持直接通信。  The determining unit 903, when the first transmitting subunit 906 returns an inquiry response message, confirms that both the FCoE initiator and the FCoE target support direct communication.
可选地, 参照附图 9c, 所述信息交互单元 902包括第二接收子单元 907、 第二发送子单元 908、 第三接收子单元 909:  Optionally, referring to FIG. 9c, the information interaction unit 902 includes a second receiving subunit 907, a second sending subunit 908, and a third receiving subunit 909:
第二接收子单元 907, 用于接收所述 FCoE目标器接收到所述注册请求消 息或登录请求消息后发送的请求接受消息; 第二发送子单元 908, 用于在所述 FCoE启动器支持直接通信时, 从请求 接受消息中提取携带的 FCoE目标器的 N_Port_ID,根据该 N_Port_ID生成 FCoE 目标器的虚拟 MAC地址, 才艮据 FCoE目标器的虚拟 MAC地址, 向所述 FCoE 目标器发送用于询问 FCoE目标器是否支持直接通信的询问请求消息; a second receiving subunit 907, configured to receive a request accept message sent by the FCoE target device after receiving the registration request message or the login request message; The second sending subunit 908 is configured to: when the FCoE initiator supports direct communication, extract the N_Port_ID of the carried FCoE target from the request accept message, and generate a virtual MAC address of the FCoE target according to the N_Port_ID, according to the FCoE a virtual MAC address of the target, sending an inquiry request message to the FCoE target for inquiring whether the FCoE target supports direct communication;
第三接收子单元 909, 用于接收所述 FCoE目标器返回的询问响应消息; 所述判断单元 903在第三接收子单元 909接收到所述 FCoE目标器返回的 询问响应消息后,确认所述 FCoE启动器和所述 FCoE目标器均支持直接通信。  a third receiving subunit 909, configured to receive an inquiry response message returned by the FCoE target device; after the third receiving subunit 909 receives the inquiry response message returned by the FCoE target, the determining unit 903 confirms the Both the FCoE initiator and the FCoE target support direct communication.
本发明实施例还提供了一种应用于以太网光纤通道 FCoE 场景的通信系 统, 参照附图 10, 包括 FCoE启动器 110、 FCoE转发器 120和 FCoE目标器 130, 其特征在于:  The embodiment of the present invention further provides a communication system applied to an Ethernet Fibre Channel FCoE scenario. Referring to FIG. 10, the FCoE initiator 110, the FCoE repeater 120, and the FCoE target 130 are characterized by:
FCoE转发器 120为所述 FCoE启动器 110和 FCoE目标器 120分配端口标 识 N_Port_ID; 接收到 FCoE启动器 110发送的注册请求消息或登录请求消息 后, 根据存储的安全访问控制信息, 判断所述 FCoE启动器 110是否具有与所 述 FCoE目标器通信的权限; 若判断结果为是, 则将所述注册请求消息或登录 请求消息转发给所述 FCoE目标器 130, 否则拒绝所述请求消息;  The FCoE forwarder 120 assigns a port identifier N_Port_ID to the FCoE initiator 110 and the FCoE target 120. After receiving the registration request message or the login request message sent by the FCoE initiator 110, the FCoE forwarder 120 determines the FCoE according to the stored security access control information. Whether the initiator 110 has the right to communicate with the FCoE target; if the determination result is yes, the registration request message or the login request message is forwarded to the FCoE target 130, otherwise the request message is rejected;
FCoE 目标器 130接收到所述注册请求消息或登录请求消息后, 与 FCoE 启动器 110双方交互是否支持直接通信的信息;  After receiving the registration request message or the login request message, the FCoE target device 130 interacts with the FCoE initiator 110 to support direct communication information;
所述 FCoE目标器 130或 FCoE启动器 1104艮据交互结果,判断所述 FCoE 目标器 130或 FCoE启动器 110是否均支持直接通信;  The FCoE target 130 or the FCoE initiator 1104 determines whether the FCoE target 130 or the FCoE initiator 110 supports direct communication according to the interaction result;
所述 FCoE目标器 130或 FCoE启动器 110在确认均支持直接通信时, 根 据所述 FCoE目标器 130和 FCoE启动器 110的 N_Port_ID,建立 FCoE目标器 130和 FCoE启动器 110之间的虚拟链接用以传输 FCoE协议数据包。  The FCoE target 130 or the FCoE initiator 110 establishes a virtual link between the FCoE target 130 and the FCoE initiator 110 according to the N_Port_ID of the FCoE target 130 and the FCoE initiator 110 when the acknowledgment supports direct communication. To transmit FCoE protocol packets.
可选地, FCoE启动器 110可以具备如附图 8a~附图 8c所示的结构, FCoE 目标器 130可以具备如附图 9a~附图 9c所示的结构。  Alternatively, the FCoE actuator 110 may have a structure as shown in Figs. 8a to 8c, and the FCoE target 130 may have a structure as shown in Figs. 9a to 9c.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分步骤 是可以通过程序来指令相关的硬件来完成, 该程序可以存储于一计算机可读取 存储介质中, 如: ROM/RAM、 磁碟、 光盘等。 明的精神和范围。 这样, 倘若本发明的这些修改和变型属于本发明权利要求及 其等同技术的范围之内, 则本发明也意图包含这些改动和变型在内。 One of ordinary skill in the art can understand that all or part of the steps of implementing the above embodiments can be completed by a program to instruct related hardware, and the program can be stored in a computer readable In storage media, such as: ROM/RAM, disk, CD, etc. The spirit and scope of the Ming. Thus, it is intended that the present invention cover the modifications and the modifications of the invention

Claims

权利要求 Rights request
1、 一种应用于以太网光纤通道 FCoE场景的通信系统, 包括 FCoE启 动器、 FCoE转发器和 FCoE目标器, 其特征在于: 1. A communication system for an Ethernet Fibre Channel FCoE scenario, including an FCoE initiator, an FCoE transponder, and an FCoE target, characterized by:
FCoE 转发器为所述 FCoE 启动器和 FCoE 目标器分配端口标识 FCoE forwarder assigns port identification to the FCoE initiator and FCoE target
N_Port_ID; 接收到 FCoE启动器发送的注册请求消息或登录请求消息后, 根据存储的安全访问控制信息, 判断所述 FCoE 启动器是否具有与所述 FCoE目标器通信的权限; 若判断结果为是, 则将所述注册请求消息或登录 请求消息转发给所述 FCoE目标器; After receiving the registration request message or the login request message sent by the FCoE initiator, determining, according to the stored security access control information, whether the FCoE initiator has the right to communicate with the FCoE target device; if the determination result is yes, Transmitting the registration request message or the login request message to the FCoE target device;
FCoE目标器接收到所述注册请求消息或登录请求消息后, 与 FCoE启 动器双方交互是否支持直接通信的信息;  After receiving the registration request message or the login request message, the FCoE target device interacts with the FCoE initiator to support direct communication information;
所述 FCoE目标器或 FCoE启动器 ^艮据交互结果, 判断所述 FCoE目标 器或 FCoE启动器是否均支持直接通信;  Determining, by the FCoE target or the FCoE initiator, whether the FCoE target or the FCoE initiator supports direct communication according to the interaction result;
所述 FCoE目标器或 FCoE启动器在确认均支持直接通信时,根据所述 FCoE目标器和 FCoE启动器的 N_Port_ID,建立 FCoE目标器和 FCoE启动 器之间的虚拟链接用以传输 FCoE协议数据包。  When the FCoE target or the FCoE initiator confirms that direct communication is supported, a virtual link between the FCoE target and the FCoE initiator is established according to the N_Port_ID of the FCoE target and the FCoE initiator to transmit the FCoE protocol packet. .
2、 一种 FCoE目标器, 其特征在于, 包括:  2. An FCoE target, characterized in that it comprises:
接收单元, 用于接收注册请求消息或登录请求消息, 所述注册请求消 息或登录请求消息中携带的 FCoE启动器和该 FCoE目标器的 N_Port_ID是 FCoE转发器分配的;  a receiving unit, configured to receive a registration request message or a login request message, where the FCoE initiator and the FCoE target N_Port_ID carried in the registration request message or the login request message are allocated by the FCoE forwarder;
所述注册请求消息或登录请求消息是由 FCoE转发器转发的; 信息交互单元, 用于所述接收单元接收到所述注册请求消息或登录请 求消息后,根据所述 FCoE启动器和 FCoE目标器的 N_Port_ID,与所述 FCoE 启动器双方交互是否支持直接通信的信息;  The registration request message or the login request message is forwarded by the FCoE forwarder; the information interaction unit is configured to: after receiving the registration request message or the login request message, the receiving unit according to the FCoE initiator and the FCoE target device N_Port_ID, whether the interaction between the two sides of the FCoE initiator supports direct communication;
判断单元,用于根据信息交互单元的交互结果判断所述 FCoE启动器和 所述 FCoE目标器是否均支持直接通信; 第一传输单元,用于在判断单元确认所述 FCoE启动器和所述 FCoE目 标器均支持直接通信时, 根据所述 FCoE 目标器和 FCoE 启动器的 N_Port_ID, 建立 FCoE 目标器和 FCoE 启动器之间的虚拟链接用以传输 FCoE协议数据包。 a determining unit, configured to determine, according to an interaction result of the information interaction unit, whether the FCoE initiator and the FCoE target support direct communication; a first transmission unit, configured to establish an FCoE target and an FCoE initiator according to the N_Port_ID of the FCoE target and the FCoE initiator when the determining unit confirms that the FCoE initiator and the FCoE target support direct communication The virtual link between them is used to transmit FCoE protocol packets.
3、 如权利要求 2所述的 FCoE目标器, 其特征在于, 所述信息交互单 元具体包括:  The FCoE target device according to claim 2, wherein the information interaction unit specifically includes:
第二发送子单元, 用于从所述注册请求消息或登录请求消息中提取携 带的 FCoE启动器的 N_Port_ID, 根据所述 FCoE启动器的 N_Port_ID向所 述 FCoE启动器发送请求接受消息,所述请求接受消息是通过所述 FCoE转 发器转发的;  a second sending subunit, configured to extract an N_Port_ID of the carried FCoE initiator from the registration request message or the login request message, and send a request accept message to the FCoE initiator according to the N_Port_ID of the FCoE initiator, where the request The accept message is forwarded by the FCoE forwarder;
第二接收子单元,用于接收所述 FCoE启动器在接收到所述请求接受消 息后发来的用于询问 FCoE目标器是否支持直接通信的询问请求消息; 第三发送子单元, 用于在所述 FCoE 目标器支持直接通信时, 向所述 FCoE启动器返回询问响应消息;  a second receiving subunit, configured to receive an inquiry request message sent by the FCoE initiator after receiving the request accept message for inquiring whether the FCoE target device supports direct communication; and a third sending subunit, configured to Returning an inquiry response message to the FCoE initiator when the FCoE target supports direct communication;
所述判断单元在第三发送子单元发送询问响应消息后,确认所述 FCoE 启动器和所述 FCoE目标器均支持直接通信。  After the third sending subunit sends the query response message, the determining unit confirms that both the FCoE initiator and the FCoE target support direct communication.
4、 如权利要求 2所述的 FCoE目标器, 其特征在于, 所述信息交互单 元包括:  The FCoE target device according to claim 2, wherein the information interaction unit comprises:
第一发送子单元,用于在所述 FCoE目标器在支持直接通信时,从所述 注册请求消息或登录请求消息中提取携带的 FCoE启动器的 N_Port_ID, 根 据所述 FCoE启动器的 N_Port_ID生成 FCoE启动器的虚拟 MAC地址, 根 据所述 FCoE启动器的虚拟 MAC地址, 向所述 FCoE启动器发送用于询问 FCoE启动器是否支持直接通信的询问请求消息;  a first sending subunit, configured to: when the FCoE target device supports direct communication, extract an N_Port_ID of the carried FCoE initiator from the registration request message or the login request message, and generate an FCoE according to the N_Port_ID of the FCoE initiator a virtual MAC address of the initiator, according to the virtual MAC address of the FCoE initiator, sending an inquiry request message to the FCoE initiator for inquiring whether the FCoE initiator supports direct communication;
第一接收子单元, 用于接收所述 FCoE启动器返回的询问响应消息; 所述判断单元在第一接收子单元接收到所述 FCoE启动器返回的询问 响应消息后, 确认所述 FCoE启动器和所述 FCoE目标器均支持直接通信。 a first receiving subunit, configured to receive an inquiry response message returned by the FCoE initiator; the determining unit confirms the FCoE initiator after the first receiving subunit receives the inquiry response message returned by the FCoE initiator Direct communication is supported with the FCoE target.
5、 如权利要求 4所述的 FCoE目标器, 其特征在于, 还包括: 第二传输单元,用于在第一接收子单元接收到所述 FCoE启动器返回的 响应消息前, 通过 FCoE转发器转发的方式传输所述 FCoE 目标器与所述 FCoE启动器之间的 FCoE协议数据包。 The FCoE target device according to claim 4, further comprising: a second transmission unit, configured to pass the FCoE forwarder before the first receiving subunit receives the response message returned by the FCoE initiator The FCoE protocol packet between the FCoE target and the FCoE initiator is transmitted in a forward manner.
6、 一种 FCoE启动器, 其特征在于, 包括:  6. An FCoE starter, comprising:
发送单元, 用于发送注册请求消息或登录请求消息, 所述注册请求消 息或登录请求消息中携带所述 FCoE 启动器和待通信 FCoE 目标器的 N_Port_ID,所述 FCoE启动器和 FCoE目标器的 N_Port_ID是由所述 FCoE 转发器分配的;  a sending unit, configured to send a registration request message or a login request message, where the registration request message or the login request message carries the N_Port_ID of the FCoE initiator and the FCoE target to be communicated, and the N_Port_ID of the FCoE initiator and the FCoE target Is assigned by the FCoE forwarder;
所述注册请求消息或登录请求消息是由 FCoE转发器转发给所述 FCoE 目标器的;  The registration request message or the login request message is forwarded by the FCoE forwarder to the FCoE target;
信息交互单元,用于在所述 FCoE目标器接收到所述注册请求消息或登 录请求消息后, 根据所述 FCoE启动器和 FCoE目标器的 N_Port_ID, 与所 述 FCoE目标器双方交互是否支持直接通信的信息;  An information interaction unit, configured to: after the FCoE target device receives the registration request message or the login request message, according to the N_Port_ID of the FCoE initiator and the FCoE target, whether the FCoE target device interacts with the FCoE target to support direct communication. Information;
判断单元,用于根据信息交互单元的交互结果判断所述 FCoE启动器和 所述 FCoE目标器是否均支持直接通信;  a determining unit, configured to determine, according to an interaction result of the information interaction unit, whether the FCoE initiator and the FCoE target support direct communication;
第一传输单元,用于在判断单元确认所述 FCoE启动器和所述 FCoE目 标器均支持直接通信时, 根据所述 FCoE 目标器和 FCoE 启动器的 N_Port_ID, 建立 FCoE 目标器和 FCoE 启动器之间的虚拟链接用以传输 FCoE协议数据包。  a first transmission unit, configured to establish an FCoE target and an FCoE initiator according to the N_Port_ID of the FCoE target and the FCoE initiator when the determining unit confirms that the FCoE initiator and the FCoE target support direct communication The virtual link between them is used to transmit FCoE protocol packets.
7、 如权利要求 6所述的 FCoE启动器, 其特征在于, 所述信息交互单 元包括:  The FCoE initiator according to claim 6, wherein the information interaction unit comprises:
第二接收子单元,用于接收所述 FCoE目标器接收到所述注册请求消息 或登录请求消息后发送的请求接受消息;  a second receiving subunit, configured to receive a request accept message sent by the FCoE target after receiving the registration request message or the login request message;
第二发送子单元,用于在所述 FCoE启动器支持直接通信时,从请求接 受消息中提取携带的 FCoE 目标器的 N_Port_ID, 根据该 N_Port_ID生成 FCoE目标器的虚拟 MAC地址, 才艮据 FCoE目标器的虚拟 MAC地址, 向 所述 FCoE目标器发送用于询问 FCoE目标器是否支持直接通信的询问请求 消息; a second sending subunit, configured to: when the FCoE initiator supports direct communication, extract the N_Port_ID of the carried FCoE target from the request accept message, and generate according to the N_Port_ID The virtual MAC address of the FCoE target, according to the virtual MAC address of the FCoE target, sends an inquiry request message to the FCoE target for inquiring whether the FCoE target supports direct communication;
第三接收子单元, 用于接收所述 FCoE目标器返回的询问响应消息; 所述判断单元在第三接收子单元接收到所述 FCoE 目标器返回的询问 响应消息后, 确认所述 FCoE启动器和所述 FCoE目标器均支持直接通信。  a third receiving subunit, configured to receive an inquiry response message returned by the FCoE target device; the determining unit confirms the FCoE initiator after the third receiving subunit receives the inquiry response message returned by the FCoE target device Direct communication is supported with the FCoE target.
8、 如权利要求 6所述的 FCoE启动器, 其特征在于, 所述信息交互单 元包括:  The FCoE initiator according to claim 6, wherein the information interaction unit comprises:
第一接收子单元,用于接收所述 FCoE目标器在接收到所述注册请求消 息或登录请求消息后发送的询问请求消息;  a first receiving subunit, configured to receive an inquiry request message sent by the FCoE target after receiving the registration request message or the login request message;
第一发送子单元, 用于在所述 FCoE启动器支持直接通信时, 向所述 FCoE目标器返回询问响应消息;  a first sending subunit, configured to return an inquiry response message to the FCoE target when the FCoE initiator supports direct communication;
所述判断单元在第一发送子单元返回询问响应消息时,确认所述 FCoE 启动器和所述 FCoE目标器均支持直接通信。  The determining unit, when the first sending subunit returns an inquiry response message, confirms that both the FCoE initiator and the FCoE target support direct communication.
9、 一种应用于以太网光纤通道 FCoE场景的通信方法, 其特征在于, 包括:  9. A communication method for an Ethernet Fibre Channel FCoE scenario, characterized in that:
FCoE目标器接收 FCoE转发器转发的注册请求消息或登录请求消息, 所述注册请求消息或登录请求消息中携带的 FCoE启动器和该 FCoE目标器 的 N_Port_ID是 FCoE转发器分配的;  The FCoE target device receives the registration request message or the login request message forwarded by the FCoE forwarder, and the FCoE initiator and the N_Port_ID of the FCoE target carried in the registration request message or the login request message are allocated by the FCoE forwarder;
所述 FCoE目标器根据所述 FCoE启动器和 FCoE目标器的 N_Port_ID, 与所述 FCoE启动器双方交互是否支持直接通信的信息,根据交互结果判断 所述 FCoE启动器和所述 FCoE目标器是否均支持直接通信;  And determining, by the FCoE target, whether the FCoE initiator and the FCoE target are both in accordance with the interaction result, according to the N_Port_ID of the FCoE initiator and the FCoE target, and whether the FCoE initiator supports the direct communication. Support direct communication;
所述 FCoE目标器在确认所述 FCoE启动器和所述 FCoE目标器均支持 直接通信时,根据所述 FCoE目标器和 FCoE启动器的 N_Port_ID ,建立 FCoE 目标器和 FCoE启动器之间的虚拟链接用以传输 FCoE协议数据包。  The FCoE target establishes a virtual link between the FCoE target and the FCoE initiator according to the N_Port_ID of the FCoE target and the FCoE initiator when confirming that both the FCoE initiator and the FCoE target support direct communication. Used to transmit FCoE protocol packets.
10、 如权利要求 9所述的方法, 其特征在于, 所述与所述 FCoE启动器 交互是否支持直接通信的信息,判断所述 FCoE启动器和所述 FCoE目标器 是否均支持直接通信, 包括: 10. The method of claim 9, wherein said said FCoE initiator Whether the interaction supports direct communication information, and whether the FCoE initiator and the FCoE target support direct communication, including:
所述 FCoE 目标器从所述注册请求消息或登录请求消息中提取携带的 FCoE启动器的 N_Port_ID ,才艮据所述 FCoE启动器的 N_Port_ID向所述 FCoE 启动器发送请求接受消息,所述请求接受消息是通过所述 FCoE转发器转发 的;  The FCoE target device extracts the N_Port_ID of the carried FCoE initiator from the registration request message or the login request message, and sends a request accept message to the FCoE initiator according to the N_Port_ID of the FCoE initiator, and the request is accepted. The message is forwarded by the FCoE forwarder;
所述 FCoE目标器接收所述 FCoE启动器在接收到所述请求接受消息后 发来的用于询问 FCoE目标器是否支持直接通信的询问请求消息;  Receiving, by the FCoE target, an inquiry request message sent by the FCoE initiator after receiving the request accept message for inquiring whether the FCoE target supports direct communication;
所述 FCoE目标器在支持直接通信时,向所述 FCoE启动器返回询问响 应消息, 确认所述 FCoE启动器和所述 FCoE目标器均支持直接通信。  The FCoE target, upon supporting direct communication, returns an inquiry response message to the FCoE initiator confirming that both the FCoE initiator and the FCoE target support direct communication.
11、 如权利要求 9所述的方法, 其特征在于, 所述与所述 FCoE启动器 交互是否支持直接通信的信息,判断所述 FCoE启动器和所述 FCoE目标器 是否均支持直接通信, 包括:  The method according to claim 9, wherein the interaction with the FCoE initiator supports information of direct communication, and determines whether the FCoE initiator and the FCoE target support direct communication, including :
所述 FCoE目标器在支持直接通信时,从所述注册请求消息或登录请求 消息中提取携带的 FCoE启动器的 N_Port_ID, 根据所述 FCoE启动器的 N_Port_ID生成 FCoE启动器的虚拟 MAC地址, 根据所述 FCoE启动器的 虚拟 MAC地址向所述 FCoE启动器发送用于询问 FCoE启动器是否支持直 接通信的询问请求消息;  The FCoE target device extracts the N_Port_ID of the FCoE initiator from the registration request message or the login request message, and generates a virtual MAC address of the FCoE initiator according to the N_Port_ID of the FCoE initiator, according to the FCoE initiator. The virtual MAC address of the FCoE initiator sends an inquiry request message to the FCoE initiator for inquiring whether the FCoE initiator supports direct communication;
接收到所述 FCoE启动器返回的询问响应消息后,确认所述 FCoE启动 器和所述 FCoE目标器均支持直接通信。  Upon receiving the inquiry response message returned by the FCoE initiator, it is confirmed that both the FCoE initiator and the FCoE target support direct communication.
12、 如权利要求 11所述的方法, 其特征在于, 在接收到所述 FCoE启 动器返回的响应消息前,还包括:通过 FCoE转发器转发的方式与所述 FCoE 启动器传输 FCoE协议数据包。  The method according to claim 11, wherein before receiving the response message returned by the FCoE initiator, the method further includes: transmitting, by the FCoE forwarder, the FCoE protocol packet with the FCoE initiator .
13、 如权利要求 10或 12所述的方法, 其特征在于, 所述询问请求消 息中携带预定特征码, 所述特征码用于标识该消息中携带询问是否支持直 接通信的信息。 The method of claim 10 or 12, wherein the query request message carries a predetermined feature code, and the feature code is used to identify information in the message that carries a query to support direct communication.
14、如权利要求 13所述的方法,其特征在于,所述询问请求消息为 FCoE 初始化协议格式。 14. The method of claim 13 wherein the inquiry request message is in an FCoE initialization protocol format.
15、 一种应用于以太网光纤通道 FCoE场景的通信方法, 其特征在于, 包括:  15. A communication method applied to an Ethernet Fibre Channel FCoE scenario, the method comprising:
FCoE启动器发送注册请求消息或登录请求消息, 所述注册请求消息或 登录请求消息中携带所述 FCoE启动器和待通信 FCoE目标器的 N_Port_ID, 所述 FCoE启动器和 FCoE目标器的 N_Port_ID是由所述 FCoE转发器分配 的;  The FCoE initiator sends a registration request message or a login request message, where the registration request message or the login request message carries the N_Port_ID of the FCoE initiator and the FCoE target to be communicated, and the N_Port_ID of the FCoE initiator and the FCoE target is Assigned by the FCoE forwarder;
所述注册请求消息或登录请求消息是由所述 FCoE转发器转发给所述 FCoE目标器的;  The registration request message or the login request message is forwarded by the FCoE forwarder to the FCoE target;
所述 FCoE启动器在所述 FCoE目标器接收到所述注册请求消息或登录 请求消息后, 根据所述 FCoE启动器和 FCoE目标器的 N_Port_ID, 与所述 FCoE 目标器交互是否支持直接通信的信息, 根据交互结果判断所述 FCoE 启动器和所述 FCoE目标器是否均支持直接通信;  After receiving the registration request message or the login request message, the FCoE initiator, according to the N_Port_ID of the FCoE initiator and the FCoE target, whether the FCoE target interacts with the FCoE target to support direct communication. Determining, according to the interaction result, whether the FCoE initiator and the FCoE target support direct communication;
所述 FCoE启动器在确认所述 FCoE启动器和所述 FCoE目标器均支持 直接通信时,根据所述 FCoE目标器和 FCoE启动器的 N_Port_ID ,建立 FCoE 目标器和 FCoE启动器之间的虚拟链接用以传输 FCoE协议数据包。  The FCoE initiator establishes a virtual link between the FCoE target and the FCoE initiator according to the N_Port_ID of the FCoE target and the FCoE initiator when confirming that both the FCoE initiator and the FCoE target support direct communication. Used to transmit FCoE protocol packets.
16、 如权利要求 15所述的方法, 其特征在于, 所述与所述 FCoE目标 器交互是否支持直接通信的信息,判断所述 FCoE启动器和所述 FCoE目标 器是否均支持直接通信, 包括:  The method according to claim 15, wherein the interaction with the FCoE target device supports direct communication, and determines whether the FCoE initiator and the FCoE target support direct communication, including :
所述 FCoE启动器接收所述 FCoE目标器接收到所述注册请求消息或登 录请求消息后发送的请求接受消息;  Receiving, by the FCoE initiator, a request accept message sent after the FCoE target device receives the registration request message or the login request message;
所述 FCoE 启动器在支持直接通信时, 从请求接受消息中提取携带的 FCoE目标器的 N_Port_ID,根据该 N_Port_ID生成 FCoE目标器的虚拟 MAC 地址, 根据 FCoE目标器的虚拟 MAC地址, 向所述 FCoE目标器发送用于 询问 FCoE目标器是否支持直接通信的询问请求消息; 接收到所述 FCoE目标器返回的询问响应消息后,确认所述 FCoE启动 器和所述 FCoE目标器均支持直接通信。 The FCoE initiator extracts the N_Port_ID of the carried FCoE target from the request accept message when the direct communication is supported, generates the virtual MAC address of the FCoE target according to the N_Port_ID, and sends the FCoE to the FCoE according to the virtual MAC address of the FCoE target. The target sends an inquiry request message for inquiring whether the FCoE target supports direct communication; After receiving the inquiry response message returned by the FCoE target, it is confirmed that both the FCoE initiator and the FCoE target support direct communication.
17、 如权利要求 15所述的方法, 其特征在于, 所述与所述 FCoE目标 器交互是否支持直接通信的信息,判断所述 FCoE启动器和所述 FCoE目标 器是否均支持直接通信, 包括:  The method according to claim 15, wherein the interaction with the FCoE target device supports direct communication, and determines whether the FCoE initiator and the FCoE target support direct communication, including :
所述 FCoE启动器接收所述 FCoE目标器在接收到所述注册请求消息或 登录请求消息后发送的询问请求消息;  The FCoE initiator receives an inquiry request message sent by the FCoE target after receiving the registration request message or the login request message;
所述 FCoE启动器在支持直接通信时,向所述 FCoE目标器返回询问响 应消息, 确认所述 FCoE启动器和所述 FCoE目标器均支持直接通信。  The FCoE Initiator, when supporting direct communication, returns an inquiry response message to the FCoE target, confirming that both the FCoE Initiator and the FCoE Target support direct communication.
18、 如权利要求 17所述的方法, 其特征在于, 所述 FCoE启动器在不 支持直接通信时, 还包括: 忽略或丢弃所述询问请求消息。  The method according to claim 17, wherein the FCoE initiator further includes: ignoring or discarding the inquiry request message when the direct communication is not supported.
PCT/CN2012/079638 2011-09-08 2012-08-03 Communication method, system and apparatus applied to fibre channel over ethernet scenario WO2013034037A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN2011102640437A CN103001697A (en) 2011-09-08 2011-09-08 Communication method, system and device applied to scene of FCoE (fiber channel over Ethernet)
CN201110264043.7 2011-09-08

Publications (1)

Publication Number Publication Date
WO2013034037A1 true WO2013034037A1 (en) 2013-03-14

Family

ID=47831512

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2012/079638 WO2013034037A1 (en) 2011-09-08 2012-08-03 Communication method, system and apparatus applied to fibre channel over ethernet scenario

Country Status (2)

Country Link
CN (1) CN103001697A (en)
WO (1) WO2013034037A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103546382B (en) * 2013-11-05 2016-08-17 中国联合网络通信集团有限公司 Data processing method, equipment and system
CN105245635B (en) * 2015-10-23 2018-09-14 中国联合网络通信集团有限公司 FCoE communication means, apparatus and system
CN113821580A (en) * 2021-09-22 2021-12-21 成都市国土资源信息中心 Tile map service method

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011015461A1 (en) * 2009-08-04 2011-02-10 International Business Machines Corporation Apparatus, system, and method for establishing point to point connections in fcoe

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101557337B (en) * 2009-05-04 2012-08-29 成都市华为赛门铁克科技有限公司 Network tunnel establishing method, data transmission method, communication system and relevant equipment

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011015461A1 (en) * 2009-08-04 2011-02-10 International Business Machines Corporation Apparatus, system, and method for establishing point to point connections in fcoe

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
INCITS XXX-200X FIBRE CHANNEL BACKBONE-5 (FC-BB-5) REV 2.00, 4 June 2009 (2009-06-04) *
KO, M.: "LTD. FCoE End-to-End Connection.", HUAWEI SYMANTEC TECHNOLOGIES CO., 31 March 2010 (2010-03-31), pages 2 - 4 *

Also Published As

Publication number Publication date
CN103001697A (en) 2013-03-27

Similar Documents

Publication Publication Date Title
JP4774132B1 (en) Network system using initiator / subnetwork communication
EP2493127B1 (en) Method for virtual link discovery control and system for fibre channel over ethernet protocol
JP4575439B2 (en) Method and apparatus for L3-aware switching in an Ethernet passive optical network
EP1693996B1 (en) Automatic discovery of psuedo-wire peer addresses in ethernet-based networks
CN101834783B (en) Method and device for forwarding messages and network equipment
JP2019526983A (en) Separation of control plane function and transfer plane function of broadband remote access server
KR100811890B1 (en) Anycast routing method and apparatus for supporting service flow in internet system
US10819761B2 (en) Electronic device and method for controlling electronic device
KR100643285B1 (en) Method and system for transmitting and receiving data using multicast
WO2011120370A1 (en) Method, apparatus, name server and system for establishing fiber channel over ethernet (fcoe) communication connection
WO2011006324A1 (en) Method and terminal for file transmission
WO2007019785A1 (en) A multicast supported virtual local area network switching system and a method thereof
WO2010060246A1 (en) Method and apparatus for realizing arp request broadcasting limitation
WO2009082905A1 (en) Method, system and switch device for dynamically establishing multicast virtual local area network
WO2009149646A1 (en) Port switching method, network device and network system
WO2013086966A1 (en) Layer 2 inter-connecting method, apparatus and system based on ipv6
WO2007019809A1 (en) A method and ststem for establishing a direct p2p channel
WO2013120325A1 (en) Browser-to-browser direct communication method, device and communication system
WO2013034037A1 (en) Communication method, system and apparatus applied to fibre channel over ethernet scenario
WO2011098033A1 (en) Method, communication network element and ethernet system for establishing virtual link
WO2012065474A1 (en) Method and device for transmitting messages
WO2014124557A1 (en) Method, device and system for implementing node port virtualization in the fibre channel
WO2014169590A1 (en) Data service communication method, device, and system
WO2008141554A1 (en) A message transporting method, system and relay device
CN104301231A (en) Management method for virtual links in FCoE network and FIP switch

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

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

Country of ref document: EP

Kind code of ref document: A1