CN111600814B - VFC interface configuration method and device - Google Patents

VFC interface configuration method and device Download PDF

Info

Publication number
CN111600814B
CN111600814B CN202010303194.8A CN202010303194A CN111600814B CN 111600814 B CN111600814 B CN 111600814B CN 202010303194 A CN202010303194 A CN 202010303194A CN 111600814 B CN111600814 B CN 111600814B
Authority
CN
China
Prior art keywords
negotiation
switching device
interface
various parameters
response message
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010303194.8A
Other languages
Chinese (zh)
Other versions
CN111600814A (en
Inventor
杨承天
顾雷雷
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
New H3C Security Technologies Co Ltd
Original Assignee
New H3C Security Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by New H3C Security Technologies Co Ltd filed Critical New H3C Security Technologies Co Ltd
Priority to CN202010303194.8A priority Critical patent/CN111600814B/en
Publication of CN111600814A publication Critical patent/CN111600814A/en
Application granted granted Critical
Publication of CN111600814B publication Critical patent/CN111600814B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/30Peripheral units, e.g. input or output ports
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0876Aspects of the degree of configuration automation
    • H04L41/0886Fully automatic configuration
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/35Switches specially adapted for specific applications
    • H04L49/351Switches specially adapted for specific applications for local area network [LAN], e.g. Ethernet switches

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Automation & Control Theory (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Communication Control (AREA)

Abstract

The present disclosure relates to the field of network communications technologies, and in particular, to a VFC interface configuration method and apparatus. The method comprises the following steps: when meeting the negotiation triggering condition, sending a negotiation request message to the second switching equipment; receiving a negotiation response message sent by the second switching device, and judging whether various parameters carried by the negotiation response message meet preset conditions, wherein the various parameters are set for a first Virtual Fiber Channel (VFC) interface bound with a first physical port of the second switching device; if the various parameters are determined to meet the preset conditions, the various parameters are determined to be successful in negotiation, a second VFC interface bound with a second physical interface of the first switching device is configured according to the various parameters which are successful in negotiation, and a negotiation success message carrying the various parameters which are successful in negotiation is sent to the second switching device, so that the second switching device configures the first VFC interface according to the various parameters which are successful in negotiation.

Description

VFC interface configuration method and device
Technical Field
The present disclosure relates to the field of network communications technologies, and in particular, to a method and an apparatus for configuring a VFC interface of a virtual fiber channel.
Background
The Fibre Channel over ethernet (Fibre Channel over Ethernet, FCoE) technology is a technology that transmits Fibre Channel (FC) protocol messages in ethernet. The network card, the switch and the connecting cables can be greatly reduced in number, meanwhile, the maintenance workload of network operation is reduced, and the overall cost is reduced. In FCoE, the VFC (virtual FC) interface needs to be used to simulate the function of the actual FC interface, and in actual configuration, related parameters need to be manually configured on the VFC interface and the bound physical port of each switch, and the configuration is ensured to be correct, so that the whole link can be made available.
For example, referring to FIG. 1, two servers need to access three remote stores via the FCoE network, and the VFC interface is configured as follows: 1) The user designates fcoe-mode of the three switches; 2) The user needs to manually configure the ports of the FCF switch and the NPV switch, namely, configure the ports of the core switch and the edge equipment; 3) The user needs to manually configure the port of the NPV switch connected with the server or the storage device, namely, configure the port of the edge device connected with the node device; 4) After each configuration is completed, whether the registration is successful or not needs to be checked on the FCF switch, namely whether the configuration is correct or not is checked, and the error configuration can be checked only by traversing the configuration.
In the manual configuration process, the error configuration is not easy to be checked, the problems of complicated configuration, low efficiency, inconvenient management and the like exist, when the network is complex, the defects are more obvious, and when the network is changed, the network cannot automatically complete reconfiguration, so that the practicability is poor.
Disclosure of Invention
The application provides a VFC interface configuration method and device, which are used for solving the problems of complicated configuration, low efficiency and inconvenient management in the prior art.
In a first aspect, the present application provides a VFC interface configuration method, applied to a first switching device, where the method includes:
when meeting the negotiation triggering condition, sending a negotiation request message to the second switching equipment;
receiving a negotiation response message sent by the second switching device, and judging whether various parameters carried by the negotiation response message meet preset conditions, wherein the various parameters are set for a first Virtual Fiber Channel (VFC) interface bound with a first physical port of the second switching device;
if the various parameters are determined to meet the preset conditions, the various parameters are determined to be successful in negotiation, a second VFC interface bound with a second physical interface of the first switching device is configured according to the various parameters which are successful in negotiation, and a negotiation success message carrying the various parameters which are successful in negotiation is sent to the second switching device, so that the second switching device configures the first VFC interface according to the various parameters which are successful in negotiation.
Optionally, the method further comprises:
if any one of the various parameters is determined to not meet the preset condition, determining that the negotiation of the any one of the various parameters is unsuccessful, modifying the any one of the parameters, and sending a negotiation response message carrying the modified any one of the parameters to the second switching equipment;
when the second switching device receives the negotiation response message, judging whether any modified parameter carried by the negotiation response message meets a preset condition, if the second switching device determines that any modified parameter carried by the negotiation response message does not meet the preset condition, modifying any parameter, and sending a negotiation response message carrying the modified any parameter to the first switching device; if the second switching device determines that any parameter carried by the negotiation response message after modification meets a preset condition, determining that all parameters are successfully negotiated, configuring the first VFC interface according to all parameters successfully negotiated, and sending a negotiation success message carrying all parameters successfully negotiated to the first switching device, so that the first switching device configures the second VFC interface according to all parameters successfully negotiated;
Receiving a negotiation response message carrying the modified any parameter sent by the second switching device, and executing the step of judging whether the modified any parameter meets a preset condition; or,
and receiving a negotiation success message carrying various parameters which are successfully negotiated and sent by the second switching equipment, and configuring the second VFC interface according to the various parameters which are successfully negotiated.
Optionally, the negotiation triggering condition is: the switching device is configured in fcoe-mode, the physical interface up of the switching device, and the VFC interface down bound to the physical interface.
Optionally, the various parameters include:
the working mode of the switching equipment for sending the message, the VLAN used by the interface and the VSAN used by the interface.
Optionally, the operation mode of the switching device includes a core switch FCF mode, an edge switch NPV mode, or an FCF-NPV mode;
if the various parameters are determined to meet the preset conditions, the step of determining that the various parameters are successfully negotiated comprises the following steps:
if the VLAN used by the interface and the VSAN information used by the interface carried by the negotiation response message sent by the second switching equipment are determined to be available under the condition that the working mode of the first switching equipment is a non-NPV mode, determining that the negotiation of various parameters is successful; or,
And if the working mode of the second switching equipment is determined to be a non-NPV mode and the VLAN used by the interface and the VSAN information used by the interface are available, determining that the negotiation of various parameters is successful.
Optionally, the method further comprises:
when meeting the negotiation triggering condition, sending a negotiation request message for N times to the second switching equipment based on a preset first period;
if the fact that the negotiation response message sent by the second switching equipment is not received is determined, M negotiation request messages are sent to the second switching equipment based on a preset second period;
if the fact that the negotiation response message sent by the second switching equipment is not received is determined, sending the negotiation request message to the second switching equipment based on a preset third period;
wherein the first period is less than the second period, and the second period is less than the third period.
Optionally, the method further comprises:
after the second VFC interface is configured according to various parameters that are successfully negotiated, if it is determined that the second VFC interface is reconfigured within a first preset duration according to various parameters that are successfully renegotiated, the first physical interface bound with the second VFC interface is set to enter a negotiation suppression mode for a second preset duration, where in the second preset duration, the first physical interface does not send/receive a negotiation request message and/or a negotiation response message.
In a second aspect, the present application provides a VFC interface configuration apparatus applied to a first switching device, the apparatus comprising:
the sending unit is used for sending a negotiation request message to the second switching equipment when the negotiation triggering condition is determined to be met;
the receiving unit is used for receiving the negotiation response message sent by the second switching equipment and judging whether various parameters carried by the negotiation response message meet preset conditions, wherein the various parameters are set for a first Virtual Fiber Channel (VFC) interface bound with a first physical port of the second switching equipment;
and the configuration unit is used for determining that all the parameters meet preset conditions, determining that all the parameters are successful in negotiation, configuring a second VFC interface bound with a second physical interface of the first switching equipment according to all the parameters which are successful in negotiation, and sending a negotiation success message carrying all the parameters which are successful in negotiation to the second switching equipment so that the second switching equipment configures the first VFC interface according to all the parameters which are successful in negotiation.
Optionally, the apparatus further comprises a modification unit:
the modifying unit is configured to determine that any parameter does not succeed in negotiation if any parameter of the various parameters does not meet a preset condition, modify the any parameter, and send a negotiation response message carrying the modified any parameter to the second switching device;
When the second switching device receives the negotiation response message, judging whether any modified parameter carried by the negotiation response message meets a preset condition, if the second switching device determines that any modified parameter carried by the negotiation response message does not meet the preset condition, modifying any parameter, and sending a negotiation response message carrying the modified any parameter to the first switching device; if the second switching device determines that any parameter carried by the negotiation response message after modification meets a preset condition, determining that all parameters are successfully negotiated, configuring the first VFC interface according to all parameters successfully negotiated, and sending a negotiation success message carrying all parameters successfully negotiated to the first switching device, so that the first switching device configures the second VFC interface according to all parameters successfully negotiated;
the receiving unit is further configured to receive a negotiation response message carrying the modified any parameter sent by the second switching device, and perform a step of determining whether the modified any parameter meets a preset condition; or,
The receiving unit is further configured to receive a negotiation success message carrying various parameters successfully negotiated, which is sent by the second switching device, and the configuration unit is further configured to configure the second VFC interface according to various parameters successfully carrying negotiation.
Optionally, the negotiation triggering condition is: the switching device is configured in fcoe-mode, the physical interface up of the switching device, and the VFC interface down bound to the physical interface.
Optionally, the various parameters include:
the working mode of the switching equipment for sending the message, the VLAN used by the interface and the VSAN used by the interface.
Optionally, the operation mode of the switching device includes a core switch FCF mode, an edge switch NPV mode, or an FCF-NPV mode;
if the various parameters are determined to meet the preset conditions, the configuration unit is specifically configured to:
if the VLAN used by the interface and the VSAN information used by the interface carried by the negotiation response message sent by the second switching equipment are determined to be available under the condition that the working mode of the first switching equipment is a non-NPV mode, determining that the negotiation of various parameters is successful; or,
And if the working mode of the second switching equipment is determined to be a non-NPV mode and the VLAN used by the interface and the VSAN information used by the interface are available, determining that the negotiation of various parameters is successful.
Optionally, the sending unit is further configured to:
when meeting the negotiation triggering condition, the sending unit sends a negotiation request message to the second switching equipment for N times based on a preset first period;
if it is determined that the negotiation response message sent by the second switching device is not received, the sending unit sends an M-time negotiation request message to the second switching device based on a preset second period;
if it is determined that the negotiation response message sent by the second switching device is not received, the sending unit sends the negotiation request message to the second switching device based on a preset third period;
wherein the first period is less than the second period, and the second period is less than the third period.
Optionally, the apparatus further comprises:
the setting unit is configured to set the first physical interface bound with the second VFC interface to enter a negotiation suppression mode for a second preset duration after the second VFC interface is configured according to various parameters successfully negotiated, if it is determined that the second VFC interface is reconfigured according to various parameters successfully renegotiated within a first preset duration, wherein in the second preset duration, the first physical interface does not send/receive a negotiation request message and/or a negotiation response message.
In a third aspect, an embodiment of the present application provides a switching device, including:
a memory for storing program instructions;
a processor for invoking program instructions stored in said memory, performing the steps of the method according to any of the first aspects above in accordance with the obtained program instructions.
In a fourth aspect, embodiments of the present application also provide a computer-readable storage medium storing computer-executable instructions for causing a computer to perform the steps of the method according to any one of the first aspects.
As can be seen from the above, in the VFC interface configuration method provided in the embodiment of the present application, when it is determined that a negotiation triggering condition is met, a negotiation request message is sent to the second switching device; receiving a negotiation response message sent by the second switching device, and judging whether various parameters carried by the negotiation response message meet preset conditions, wherein the various parameters are set for a first Virtual Fiber Channel (VFC) interface bound with a first physical port of the second switching device; if the various parameters are determined to meet the preset conditions, the various parameters are determined to be successful in negotiation, a second VFC interface bound with a second physical interface of the first switching device is configured according to the various parameters which are successful in negotiation, and a negotiation success message carrying the various parameters which are successful in negotiation is sent to the second switching device, so that the second switching device configures the first VFC interface according to the various parameters which are successful in negotiation.
By adopting the VFC interface configuration method provided by the embodiment of the application, the automatic configuration of the VFC interface is realized by defining a new negotiation rule, the configuration process is simplified, the configuration efficiency is improved, and the automatic management of the VFC interface is realized.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following description will briefly describe the drawings that are required to be used in the embodiments of the present application or the description in the prior art, and it is obvious that the drawings in the following description are only some embodiments described in the present application, and other drawings may also be obtained according to these drawings of the embodiments of the present application for a person having ordinary skill in the art.
FIG. 1 is a schematic diagram of a networking of an FCoE network;
fig. 2 is a flowchart of a VFC interface configuration method provided in an embodiment of the present application;
fig. 3 is a schematic diagram of negotiation interaction of a switching device according to an embodiment of the present application;
fig. 4 is a schematic message format diagram of a negotiation request message/negotiation response message according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of a VFC interface configuration device according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of a switching device according to an embodiment of the present application.
Detailed Description
The terminology used in the embodiments of the application is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in this application and the claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to any or all possible combinations including one or more of the associated listed items.
It should be understood that although the terms first, second, third, etc. may be used in embodiments of the present application to describe various information, these information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, a first message may also be referred to as a second message, and similarly, a second message may also be referred to as a first message, without departing from the scope of the present application. Depending on the context, furthermore, the word "if" used may be interpreted as "at … …" or "at … …" or "in response to a determination".
Referring to fig. 2, a detailed flowchart of a VFC interface configuration method according to an embodiment of the present application is shown, where the method includes the following steps:
Step 200: and sending a negotiation request message to the second switching equipment when the negotiation triggering condition is determined to be met.
Specifically, in the embodiment of the present application, a preferred implementation manner is that the negotiation triggering condition is: the switching device is configured in fcoe-mode, the physical interface up of the switching device, and the VFC interface down bound to the physical interface.
That is, the switching device (e.g., switch) to which the VFC interface configuration method provided by the embodiments of the present application is applied needs to be configured in the fcoe-mode, and further, on the premise that the switching device is configured in the fcoe-mode, the conditions for triggering to execute the VFC interface configuration provided by the embodiments of the present application may include, but are not limited to, the following cases:
the first case is: the VFC interface is created for the first time, and when the physical interface up bound with the VFC interface is created newly, the VFC interface needs to be configured.
The second case is: the physical link changes, and at this time, the physical port up and the VFC interface to which it is bound down, then the VFC interface configuration operation is required.
The third case is: because the configuration of the switching device changes, the VFC interface needs to be re-created, or the original configuration of the VFC interface is wrong, and the VFC interface is down, so that the configuration operation of the VC interface is needed.
In order to avoid the situation that the first switching device frequently sends the negotiation request message to the second switching device because the first switching device cannot receive the negotiation response message sent by the second switching device, in this embodiment of the present application, a preferred implementation manner is that when the first switching device determines that the negotiation trigger condition is met, the first switching device sends the N negotiation request messages to the second switching device based on a preset first period; if the fact that the negotiation response message sent by the second switching equipment is not received is determined, M negotiation request messages are sent to the second switching equipment based on a preset second period; if the fact that the negotiation response message sent by the second switching equipment is not received is determined, sending the negotiation request message to the second switching equipment based on a preset third period; wherein the first period is less than the second period, and the second period is less than the third period.
That is, the first switching device may continuously send N negotiation request messages (N is a positive integer greater than or equal to 1) to the second switching device based on a preset first sending period, and if a negotiation response message sent by the second switching device for any one negotiation request message of the N negotiation request messages is received, determine that the negotiation response message is received, and execute a subsequent negotiation process; if not, the sending period of the negotiation request message can be delayed, for example, the sending period of the negotiation request message is adjusted to be a preset second sending period which is greater than the first sending period, and M negotiation request messages (M is a positive integer which is greater than or equal to 1) are continuously sent to the second switching device in the second sending period, if a negotiation response message sent by the second switching device for any negotiation request message in the M negotiation request messages is received, the negotiation response message is determined to be received, and a subsequent negotiation process is executed; if not, the sending rule of the negotiation request message may be adjusted again, for example, based on the preset third sending period, the negotiation request message is sent to the second switching device.
For example, when the first switching device determines that the negotiation triggering condition is met, each 3 seconds sends a negotiation request message to the second switching device, and the negotiation request message is continuously sent for 3 times, if the second switching device does not respond, each 15 seconds sends the negotiation request message to the second switching device, and if the second switching device does not respond, the negotiation request message is sent to the second switching device every 300 seconds.
Step 210: and receiving a negotiation response message sent by the second switching equipment, and judging whether various parameters carried by the negotiation response message meet preset conditions, wherein the various parameters are set for a first Virtual Fiber Channel (VFC) interface bound with a first physical port of the second switching equipment.
Specifically, in the embodiment of the present application, a preferred implementation manner is that the various parameters include: the working mode of the switching equipment for sending the message, the VLAN used by the interface and the VSAN used by the interface.
That is, the various parameters carried by the negotiation response message sent by the second switching device at least include the working mode of the second switching device, VLAN information to be used by the physical interface of the second switching device, and VSAN information to be used by the physical interface.
In the embodiment of the application, the working modes of the switching device may include a core switch FCF mode, an edge switch NPV mode or an FCF-NPV mode. Since the FC protocol family (including FCoE protocol) does not explicitly support networking of NPV switches directly to NPV switches. Then, in FcoE networking, the NPV switch and NPV switch cannot be directly connected.
In the embodiment of the present application, if it is determined that the various parameters all meet the preset conditions, when it is determined that the various parameters are successfully negotiated, a preferred implementation manner is that, if it is determined that the VLAN used by the interface and the VSAN information used by the interface and carried by the negotiation response message sent by the second switching device are all available, the various parameters are successfully negotiated when the working mode of the first switching device is a non-NPV mode; or if the working mode of the first switching device is NPV mode and the working mode of the second switching device carried by the negotiation response message sent by the second switching device is NPV mode, and the VLAN used by the interface and the VSAN information used by the interface are available, determining that the negotiation of the various parameters is successful.
That is, after the first switching device receives the negotiation response message sent by the second switching device, it first determines whether the working mode of the second switching device and the working mode of the first switching device are both NPV modes, if yes, it determines that negotiation fails, and ends the negotiation flow; if not, then judging whether VLAN to be used by the first physical port of the second switching equipment carried in the negotiation response message is locally available, if yes, determining VLAN parameter negotiation is successful, otherwise, determining VLAN parameter not to be successfully negotiated, and meanwhile, judging whether VSAN to be used by the first physical port of the second switching equipment carried in the negotiation response message is locally available, if yes, determining VSAN parameter negotiation is successful, otherwise, determining VSAN parameter not to be successfully negotiated.
Further, in the embodiment of the present application, if the first switching device determines that any parameter of the various parameters does not meet a preset condition, it is determined that any parameter is not successfully negotiated, any parameter is modified, and a negotiation response message carrying the modified any parameter is sent to the second switching device;
when the second switching device receives the negotiation response message, judging whether any modified parameter carried by the negotiation response message meets a preset condition, if the second switching device determines that any modified parameter carried by the negotiation response message does not meet the preset condition, modifying any parameter, and sending a negotiation response message carrying the modified any parameter to the first switching device; if the second switching device determines that any parameter carried by the negotiation response message after modification meets a preset condition, determining that all parameters are successfully negotiated, configuring the first VFC interface according to all parameters successfully negotiated, and sending a negotiation success message carrying all parameters successfully negotiated to the first switching device, so that the first switching device configures the second VFC interface according to all parameters successfully negotiated;
Receiving a negotiation response message carrying the modified any parameter sent by the second switching device, and executing the step of judging whether the modified any parameter meets a preset condition; or,
and receiving a negotiation success message carrying various parameters which are successfully negotiated and sent by the second switching equipment, and configuring the second VFC interface according to the various parameters which are successfully negotiated.
From the above, when the first switching device determines that the working mode of the second switching device and the working mode of the first switching device are both NPV modes, it is not necessary to continuously determine whether the VLAN and VSAN parameters meet the preset conditions. If the first switching device determines that the VLAN (e.g., VLAN 1) and/or the VSAN (e.g., VSAN 1) carried by the negotiation response message are locally unavailable, the VLAN and/or the VSAN parameter is not successfully negotiated, and at this time, the negotiation of the VLAN and/or the VSAN parameter needs to be continuously performed with the second switching device.
For example, if the VLAN parameter negotiation is unsuccessful and the VSAN parameter negotiation is successful, the first switching device may modify the VLAN parameter, and carry the modified VLAN (e.g., VLAN 2) in a negotiation response message sent to the second switching device, so that the second switching device determines whether VLAN 2 is locally available, and if so, determines that all parameters are successfully negotiated; if not, the second switching device may still modify the VLAN parameter, and carry the modified VLAN (e.g., VLAN 3) in a negotiation response message sent to the first switching device, so that the first switching device determines whether VLAN 3 is available again, until the first switching device/second switching device determines that the VLAN parameter is available, and completes negotiation of the VLAN parameter.
For another example, if the VSAN parameter is not successfully negotiated and the VLAN parameter is successfully negotiated, the first switching device may modify the VSAN parameter, and carry the modified VSAN (e.g., VSAN 2) in a negotiation response message sent to the second switching device, so that the second switching device determines whether VLAN 2 is locally available, and if so, determines that all parameters are successfully negotiated; if not, the second switching device may still modify the VSAN parameter, and carry the modified VSAN (e.g., VSAN 3) in a negotiation response message sent to the first switching device, so that the first switching device again determines whether the VSAN 3 is available, until the first switching device/second switching device determines that the VSAN parameter is available, and completes negotiation of the VSAN parameter.
For another example, if the VLAN parameter and the VSAN parameter are not successfully negotiated, the first switching device may modify the VLAN parameter and the VSNA parameter, and carry the modified VLAN (e.g., VLAN X) and/or VSAN (e.g., VSAN X) in a negotiation response message sent to the second switching device, so that the second switching device determines whether VLAN X and VSAN X are locally available, and if so, determines that all parameters are successfully negotiated; if any parameter of the VSAN X is determined to be unavailable (e.g., VLAN X is available and VSAN X is unavailable), the second switching device may still modify the unavailable parameter, and carry the modified VSAN (e.g., VSAN Y) in a negotiation response message sent to the first switching device, so that the first switching device determines whether the VSAN Y is available again, until the first switching device/second switching device determines that the VSAN parameter is available, and completes negotiation of the VSAN parameter.
Of course, when the first switching device/the second switching device determines that all the parameters are not successfully negotiated, at least one (e.g. one, more or all) of the incomplete negotiation parameters is modified when a negotiation response message is sent to the opposite terminal, so that negotiation of a certain type of parameters can be completed first according to a preset rule, or negotiation of multiple types or all types of parameters can be completed simultaneously according to a preset rule.
Step 220: if the various parameters are determined to meet the preset conditions, the various parameters are determined to be successful in negotiation, a second VFC interface bound with the second physical interface of the first switching device is configured according to the various parameters which are successful in negotiation, and a negotiation success message carrying the various parameters which are successful in negotiation is sent to the second switching device, so that the second switching device configures the first VFC interface according to the various parameters which are successful in negotiation.
In the embodiment of the application, if the first switching device determines that all the parameters are successfully negotiated, the local VFC interface to be configured is configured according to all the parameters successfully negotiated. Specifically, if the first switching device determines that the first switching device is an FCF switch, configuring the VFC interface as an e_port, and configuring a VLAN and a VSAN used by the e_port; if the VFC interface is an NPV switch, the VFC interface is configured as an f_port. And configures the VLAN and VSAN used by the f_port.
Further, a negotiation response message carrying the various parameters which are successfully negotiated is sent to the second switching device, so that the second switching device configures the VFC interface which is required to be configured locally according to the various parameters which are successfully negotiated.
Specifically, if the second switching device determines that the second switching device is an FCF switch, and the first switching device is also an FCF switch, configuring the VFC interface as an e_port; if the second switching equipment determines that the second switching equipment is an FCF switch and the first switching equipment is an NPV switch, configuring the VFC interface as an F_Port, and configuring a VLAN and a VSAN used by the F_Port; if the second switching device determines that the second switching device itself is an NPV switch, the first switching device must be an FCF switch, and the first switching device configures its VFC interface as an f_port, and the second switching device needs to configure its VFC interface as an np_port. And configures the VLAN and VSAN used by the np_port.
Further, in the embodiment of the present application, after configuring the second VFC interface according to various parameters that are successfully negotiated, if it is determined that the second VFC interface is reconfigured within a first preset duration according to various parameters that are successfully renegotiated, the first physical interface bound to the second VFC interface is set to enter a negotiation suppression mode for a second preset duration, where in the second preset duration, the first physical interface does not send/receive a negotiation request message and/or a negotiation response message.
For example, in order to avoid frequent negotiations due to link oscillation, etc., and to avoid busy cpu, a negotiation suppression mechanism is introduced. With 300 seconds as one period:
1) Starting from the first transmission of the negotiation request message, the negotiation is not failed but is not completed all the time in one period, the link is considered to be bad, the interface enters a suppression state, and the negotiation request message/the negotiation response message is not transmitted or responded.
2) And after the negotiation is completed and the configuration is issued, the negotiation is repeated and the configuration is issued within one period, the link is considered to be bad, the interface enters a suppression state, and a negotiation request message/a negotiation response message is not sent or responded.
3) An interface in the primary inhibition state, and releasing the inhibition state after two periods; after the interface is released from the inhibition state, the interface enters the inhibition state again in two periods, and four periods are needed to release the inhibition state, so that the time for automatically exiting the inhibition state of the interface which enters the inhibition state for multiple times in a short time is gradually prolonged.
The VFC interface configuration method provided in the embodiment of the present application is described in detail below through a specific application scenario. Referring to fig. 3, an exemplary exchange device negotiation interaction diagram is provided.
Step 300: and determining a VFC interface down and a physical interface up.
Specifically, the switching device (e.g., the first switching device) may detect a state (e.g., up or down) of any physical interface of the switching device itself, and at the same time, the switching device may also detect a state (e.g., up or down) of a VFC interface bound to any physical interface.
Then, when the switching device detects that a certain physical interface state is up and a VFC interface state bound to the physical interface is down, it is determined that an operation of configuring the VFC interface needs to be performed.
Step 301: and sending a negotiation request message.
Specifically, in the embodiment of the present application, the Negotiation request message and the Negotiation response message used by the switching device to perform parameter Negotiation may be a VFC interface Negotiation (VN) message, and the message format and the field formats of the VN message may be shown in fig. 4, where the values and descriptions of the fields are described in the following description:
type field: when the value is 0XCAA1, the message is indicated as VN message;
rec field: the value is 0xFF001234, which is used for preventing protocol misjudgment. Only when the Type field is 0XCAA1 and the Rec field is FF001234, the VN negotiation message is executed;
Neg field: the value is 0x00-FF, and is used for judging the negotiation start and the negotiation result confirmation. Start position 1, representing a negotiation request; ACK position 1, table clear approval may begin negotiation; the Success position 1 indicates that all parameter negotiations are completed and the negotiations are finished;
length field: a value of 0x00-FF, a data length, a length for identifying necessary negotiation parameters;
vlan field: a value of 0x00-FF, which indicates the Vlan that the device sending the VN message wants to use;
vsan field: a value of 0x00-FF, representing Vsan that the device sending the VN message wants to use;
fcoe-mode field: a value of 0x00-FF, fcoe-mode identifying the device sending the VN message;
reserve field: a value of 0, reserved field;
result field: the value is 0x0000-FFFF, which is used for reserving parameters which are successfully negotiated in the negotiation process. Vlan position 1, identifying Vlan negotiation success; vsan position 1, which indicates that vsan negotiation is successful, fcoe-mode position is 10 or 01, and indicates that fcoe-mode negotiation of the two-terminal device is successful;
num field: the value is UINT64 and random number, which is used for the receiving end to confirm the received VN message with correct sequence number and accumulate the sequence number.
It should be noted that, when performing fcoe-mode negotiation, the two-end device, because the VN message carries the fcoe-mode parameter of the sending end, the receiving side knows the own fcoe-mode parameter, and the negotiation rule refers to the following table:
Wherein:
01: indicating that the negotiation is that the two ends are FCF switches, and configuring the VFC interface as an E_Port after the negotiation is successful;
10: indicating that one end is an NPV switch and one end is an FCF switch, wherein the VFC interface of the FCF switch is configured as an F_Port, and the VFC interface of the NPV switch is configured as an NP_Port;
11: indicating that both ends are NPV switches and that negotiation failed.
As can be seen from the above, in the embodiment of the present application, when executing step 301, the first switching device sends a VN message 1 to the second switching device, where the Neg field start flag position 1 in the VN message 1 indicates that the VN message 1 is a negotiation request message. Suppose that the Num field value of VN message 1 is L.
Step 302: and determining that the local configuration is normal, and starting negotiation.
Specifically, if the second switching device determines that the physical port state of the VN message 1 received locally is up and the state of the VFC interface bound to the physical interface is down, it determines that the local configuration is normal, and may start negotiation of various parameters.
Step 303: and sending a negotiation response message 1 carrying various parameters to be negotiated.
The second switching device determines that the local configuration is normal, and at this time, sends a negotiation response message (e.g., VN message 2) to the first switching device, where the Neg field ACK flag position 1 of the VN message 2 is denoted as a negotiation response message, and fills various parameter fields, such as Vlan field, vsan field, and fcoe-mode field of itself. At this time, the Num field value of VN message 2 is l+1.
Step 304: judging whether all the parameters are successfully negotiated, if so, executing steps 309 and 310; otherwise, it is determined and modified that the conventional target parameters are not negotiated, and step 305 is performed.
When the first switching device receives the VN message 2 sent by the second switching device, it extracts various parameters to determine whether the various parameters are successfully negotiated, preferably, it may first determine whether the fcoe-mode parameter is successfully negotiated, and if the negotiation is successful, then perform negotiation of other parameters, and if the negotiation is unsuccessful, then do not need to perform negotiation of other parameters.
Because the NPV switch cannot be directly connected with the NPV switch, if the first switching device is the NPV switch and the second switching device is identified in the VN message 2 sent by the second switching device to be the NPV switch, it is determined that the first switching device and the second switching device cannot be directly connected, and negotiation fails, and Vlan parameters and Vsan parameters do not need to be continuously negotiated.
If the first switching device determines that all types of parameters (fcoe-mode, vlan, vsan parameters) are successfully negotiated, steps 309 and 310 are performed. If it is determined that any one of the vlan parameters and/or vsan parameters is not successfully negotiated, the non-negotiated vlan and/or vsan parameters are modified and step 305 is performed.
Step 305: and sending a negotiation response message 2 carrying each target parameter which is not successfully negotiated after modification.
The first switching device sends a VN message 3 carrying the modified vlan and/or vsna parameters to the second switching device, wherein the Num field of the VN message 3 is L+2.
Step 306: judging whether each target parameter is successfully negotiated, if so, executing steps 311 and 312; otherwise, each target parameter that was not successfully negotiated is determined and modified, and step 307 is performed.
At this time, the second switching device may determine whether the vlan and/or vsan parameters modified by the first switching device meet the preset conditions, if yes, it is determined that the negotiation is successful, if not, it is still required to continue the negotiation, specifically, the second switching device may also modify each target parameter that is not successfully negotiated at this time and send a negotiation response message to the first switching device, that is, both the first switching device and the second switching device may perform an operation that whether the parameter negotiation is successful, or may perform an operation that modifies the parameter that is not successfully negotiated and send the parameter to the opposite end, so that the opposite end performs an operation that whether the parameter negotiation is successful.
Of course, if in one negotiation process, when the number of VN messages sent by the opposite terminal received by the first switching device or the second switching device is greater than or equal to the preset threshold, negotiation is not completed yet (i.e. negotiation is not successful or negotiation fails), then the first switching device or the second switching device may end the negotiation process. So as to avoid the situation that the negotiation is unsuccessful due to the lack of system resources or the long-time negotiation is unsuccessful, and release the hardware resources of the switching equipment.
Step 307: and sending a negotiation response message 3 carrying each target parameter which is not successfully negotiated after modification.
For example, assuming that the second switching device determines that the vlan parameter is not successfully negotiated and that both fcoe-mode and vsan parameters are successfully negotiated, the second switching device modifies the vlan parameter and sends a negotiation response message (e.g., VN message 4, whose Num field is l+2) carrying the modified vlan parameter to the first switching device.
Step 308: judging whether each target parameter is successfully negotiated, if so, executing steps 309 and 310; otherwise, each target parameter that was not successfully negotiated is determined and modified, and step 305 is performed.
For example, assuming that the negotiation response message received by the first switching device is the VN message 4, the first switching device needs to determine whether the vlan parameter meets the preset condition, if yes, determines that the vlan parameter negotiation is successful, and immediately determines that all the parameters are successfully negotiated, and at this time, steps 309 and 310 are executed; if it is determined that the vlan parameters have not been successfully negotiated, the vlan parameters are modified and step 305 is performed. It should be noted that, when step 305 is executed, the negotiation response message (VN message 5) sent by the first switching device to the second switching device is different from VN message 3, and the Num field value is different.
Step 309: and configuring the VFC interface according to various parameters successfully negotiated.
Specifically, when the first switching device determines that negotiation success of various parameters is successful/a negotiation success message which is sent by the second switching device and is used for identifying that the negotiation of various parameters is successful is received, configuring a local VFC interface to be configured according to each message which is successful in negotiation.
Step 310: and sending a negotiation response message carrying various parameters successfully negotiated so that the second switching device executes step 311.
The first switching device sends a negotiation success message (VN message) to the second switching device, where the success position 1 of the VN message is located.
Step 311: and configuring the VFC interface according to various parameters successfully negotiated.
Specifically, when the second switching device determines that negotiation success of various parameters is successful/a negotiation success message which is sent by the first switching device and is used for identifying that the negotiation of various parameters is successful is received, configuring a local VFC interface to be configured according to each message which is successful in negotiation.
Step 312: and sending a negotiation response message carrying various parameters successfully negotiated, so that the first switching device executes step 309.
The second switching device sends a negotiation success message (VN message) to the first switching device, where the success position 1 of the VN message is located.
Based on the same inventive concept as the method embodiment, the embodiment of the application also provides a VFC interface configuration device.
As an example, referring to fig. 5, an embodiment of the present application provides a schematic structural diagram of a VFC interface configuration device, where the VFC interface configuration device is applied to a first switching device, and the VFC interface configuration device includes at least a sending unit 50, a receiving unit 51 and a configuration unit 52, where,
a sending unit 50, configured to send a negotiation request message to the second switching device when it is determined that the negotiation triggering condition is satisfied;
the receiving unit 51 is configured to receive a negotiation response message sent by the second switching device, and determine whether various parameters carried by the negotiation response message meet a preset condition, where the various parameters are set for a first virtual fiber channel VFC interface bound with a first physical port of the second switching device;
and the configuration unit 52 is configured to determine that the various parameters all meet the preset conditions, configure a second VFC interface bound to the second physical interface of the first switching device according to the various parameters that are successfully negotiated, and send a negotiation success message carrying the various parameters that are successfully negotiated to the second switching device, so that the second switching device configures the first VFC interface according to the various parameters that are successfully negotiated.
Optionally, the apparatus further comprises a modification unit:
the modifying unit is configured to determine that any parameter does not succeed in negotiation if any parameter of the various parameters does not meet a preset condition, modify the any parameter, and send a negotiation response message carrying the modified any parameter to the second switching device;
when the second switching device receives the negotiation response message, judging whether any modified parameter carried by the negotiation response message meets a preset condition, if the second switching device determines that any modified parameter carried by the negotiation response message does not meet the preset condition, modifying any parameter, and sending a negotiation response message carrying the modified any parameter to the first switching device; if the second switching device determines that any parameter carried by the negotiation response message after modification meets a preset condition, determining that all parameters are successfully negotiated, configuring the first VFC interface according to all parameters successfully negotiated, and sending a negotiation success message carrying all parameters successfully negotiated to the first switching device, so that the first switching device configures the second VFC interface according to all parameters successfully negotiated;
The receiving unit 50 is further configured to receive a negotiation response message carrying the modified any parameter sent by the second switching device, and perform a step of determining whether the modified any parameter meets a preset condition; or,
the receiving unit 50 is further configured to receive a negotiation success packet carrying various parameters that are successfully negotiated, which is sent by the second switching device, and the configuration unit is further configured to configure the second VFC interface according to various parameters that are successfully negotiated.
Optionally, the negotiation triggering condition is: the switching device is configured in fcoe-mode, the physical interface up of the switching device, and the VFC interface down bound to the physical interface.
Optionally, the various parameters include:
the working mode of the switching equipment for sending the message, the VLAN used by the interface and the VSAN used by the interface.
Optionally, the operation mode of the switching device includes a core switch FCF mode, an edge switch NPV mode, or an FCF-NPV mode;
if it is determined that the various parameters all meet the preset conditions, the configuration unit 52 is specifically configured to:
if the VLAN used by the interface and the VSAN information used by the interface carried by the negotiation response message sent by the second switching equipment are determined to be available under the condition that the working mode of the first switching equipment is a non-NPV mode, determining that the negotiation of various parameters is successful; or,
And if the working mode of the second switching equipment is determined to be a non-NPV mode and the VLAN used by the interface and the VSAN information used by the interface are available, determining that the negotiation of various parameters is successful.
Alternatively, the process may be carried out in a single-stage,
when determining that the negotiation triggering condition is met, the sending unit 50 sends an N-time negotiation request message to the second switching device based on a preset first period;
if it is determined that the negotiation response message sent by the second switching device is not received, the sending unit 50 sends an M-time negotiation request message to the second switching device based on a preset second period;
if it is determined that the negotiation response message sent by the second switching device is not received, the sending unit 50 sends the negotiation request message to the second switching device based on a preset third period;
wherein the first period is less than the second period, and the second period is less than the third period.
Optionally, the apparatus further comprises:
the setting unit is configured to set the first physical interface bound with the second VFC interface to enter a negotiation suppression mode for a second preset duration after the second VFC interface is configured according to various parameters successfully negotiated, if it is determined that the second VFC interface is reconfigured according to various parameters successfully renegotiated within a first preset duration, wherein in the second preset duration, the first physical interface does not send/receive a negotiation request message and/or a negotiation response message.
The above units may be one or more integrated circuits configured to implement the above methods, for example: one or more application specific integrated circuits (Application Specific Integrated Circuit, abbreviated as ASIC), or one or more microprocessors (digital singnal processor, abbreviated as DSP), or one or more field programmable gate arrays (Field Programmable Gate Array, abbreviated as FPGA), or the like. For another example, when a unit is implemented in the form of a processing element scheduler code, the processing element may be a general purpose processor, such as a central processing unit (Central Processing Unit, CPU) or other processor that may invoke the program code. For another example, the units may be integrated together and implemented in the form of a system-on-a-chip (SOC).
As can be seen from the above, in the VFC interface configuration method provided in the embodiment of the present application, when it is determined that a negotiation triggering condition is met, a negotiation request message is sent to the second switching device; receiving a negotiation response message sent by the second switching device, and judging whether various parameters carried by the negotiation response message meet preset conditions, wherein the various parameters are set for a first Virtual Fiber Channel (VFC) interface bound with a first physical port of the second switching device; if the various parameters are determined to meet the preset conditions, the various parameters are determined to be successful in negotiation, a second VFC interface bound with a second physical interface of the first switching device is configured according to the various parameters which are successful in negotiation, and a negotiation success message carrying the various parameters which are successful in negotiation is sent to the second switching device, so that the second switching device configures the first VFC interface according to the various parameters which are successful in negotiation.
By adopting the VFC interface configuration method provided by the embodiment of the application, the automatic configuration of the VFC interface is realized by defining a new negotiation rule, the configuration process is simplified, the configuration efficiency is improved, and the automatic management of the VFC interface is realized.
Further, in the switching device provided in the embodiments of the present application, from a hardware level, a schematic diagram of a hardware architecture of the switching device may be shown in fig. 6, where the switching device may include: a memory 60 and a processor 61,
memory 60 is used to store program instructions; the processor 61 invokes the program instructions stored in the memory 60 to perform the above-described method embodiments in accordance with the obtained program instructions. The specific implementation manner and the technical effect are similar, and are not repeated here.
Optionally, the present application also provides a switching device comprising at least one processing element (or chip) for performing the above-described method embodiments.
Optionally, the present application also provides a program product, such as a computer readable storage medium, storing computer executable instructions for causing the computer to perform the above-described method embodiments.
Here, a machine-readable storage medium may be any electronic, magnetic, optical, or other physical storage device that may contain or store information, such as executable instructions, data, or the like. For example, a machine-readable storage medium may be: RAM (Radom Access Memory, random access memory), volatile memory, non-volatile memory, flash memory, a storage drive (e.g., hard drive), a solid state drive, any type of storage disk (e.g., optical disk, dvd, etc.), or a similar storage medium, or a combination thereof.
The system, apparatus, module or unit set forth in the above embodiments may be implemented in particular by a computer chip or entity, or by a product having a certain function. A typical implementation device is a computer, which may be in the form of a personal computer, laptop computer, cellular telephone, camera phone, smart phone, personal digital assistant, media player, navigation device, email device, game console, tablet computer, wearable device, or a combination of any of these devices.
For convenience of description, the above devices are described as being functionally divided into various units, respectively. Of course, the functions of each element may be implemented in one or more software and/or hardware elements when implemented in the present application.
It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present application may take the form of a computer program product on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
Moreover, these computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The foregoing description of the preferred embodiments of the present invention is not intended to limit the invention to the precise form disclosed, and any modifications, equivalents, improvements and alternatives falling within the spirit and principles of the present invention are intended to be included within the scope of the present invention.

Claims (12)

1. A VFC interface configuration method, applied to a first switching device, the method comprising:
when meeting the negotiation triggering condition, sending a negotiation request message to the second switching equipment;
receiving a negotiation response message sent by the second switching device, and judging whether various parameters carried by the negotiation response message meet preset conditions, wherein the various parameters are set for a first Virtual Fiber Channel (VFC) interface bound with a first physical port of the second switching device;
If the various parameters are determined to meet the preset conditions, determining that the various parameters are successful in negotiation, configuring a second VFC interface bound with a second physical interface of the first switching device according to the various parameters which are successful in negotiation, and sending a negotiation success message carrying the various parameters which are successful in negotiation to the second switching device, so that the second switching device configures the first VFC interface according to the various parameters which are successful in negotiation;
if any one of the various parameters is determined to not meet the preset condition, determining that the negotiation of the any one of the various parameters is unsuccessful, modifying the any one of the parameters, and sending a negotiation response message carrying the modified any one of the parameters to the second switching equipment;
when the second switching device receives the negotiation response message, judging whether any modified parameter carried by the negotiation response message meets a preset condition, if the second switching device determines that any modified parameter carried by the negotiation response message does not meet the preset condition, modifying any parameter, and sending a negotiation response message carrying the modified any parameter to the first switching device; if the second switching device determines that any parameter carried by the negotiation response message after modification meets a preset condition, determining that all parameters are successfully negotiated, configuring the first VFC interface according to all parameters successfully negotiated, and sending a negotiation success message carrying all parameters successfully negotiated to the first switching device, so that the first switching device configures the second VFC interface according to all parameters successfully negotiated;
Receiving a negotiation response message carrying the modified any parameter sent by the second switching device, and executing the step of judging whether the modified any parameter meets a preset condition; or,
and receiving a negotiation success message carrying various parameters which are successfully negotiated and sent by the second switching equipment, and configuring the second VFC interface according to the various parameters which are successfully negotiated.
2. The method of claim 1, wherein,
the negotiation triggering condition is as follows: the switching device is configured in fcoe-mode, the physical interface up of the switching device, and the VFC interface down bound to the physical interface.
3. The method of any one of claims 1-2, wherein the various types of parameters include:
the working mode of the switching equipment for sending the message, the VLAN used by the interface and the VSAN used by the interface.
4. The method of claim 3, wherein the operating mode of the switching device comprises a core switch FCF mode, an edge switch NPV mode, or an FCF-NPV mode;
if the various parameters are determined to meet the preset conditions, the step of determining that the various parameters are successfully negotiated comprises the following steps:
If the VLAN used by the interface and the VSAN information used by the interface carried by the negotiation response message sent by the second switching equipment are determined to be available under the condition that the working mode of the first switching equipment is a non-NPV mode, determining that the negotiation of various parameters is successful; or,
and if the working mode of the second switching equipment is determined to be a non-NPV mode and the VLAN used by the interface and the VSAN information used by the interface are available, determining that the negotiation of various parameters is successful.
5. The method of any one of claims 1-2, wherein the method further comprises:
when meeting the negotiation triggering condition, sending a negotiation request message for N times to the second switching equipment based on a preset first period;
if the fact that the negotiation response message sent by the second switching equipment is not received is determined, M negotiation request messages are sent to the second switching equipment based on a preset second period;
if the fact that the negotiation response message sent by the second switching equipment is not received is determined, sending the negotiation request message to the second switching equipment based on a preset third period;
Wherein the first period is less than the second period, and the second period is less than the third period.
6. The method of any one of claims 1-2, wherein the method further comprises:
after the second VFC interface is configured according to various parameters that are successfully negotiated, if it is determined that the second VFC interface is reconfigured within a first preset duration according to various parameters that are successfully renegotiated, the first physical interface bound with the second VFC interface is set to enter a negotiation suppression mode for a second preset duration, where in the second preset duration, the first physical interface does not send/receive a negotiation request message and/or a negotiation response message.
7. A VFC interface configuration apparatus for use with a first switching device, the apparatus comprising:
the sending unit is used for sending a negotiation request message to the second switching equipment when the negotiation triggering condition is determined to be met;
the receiving unit is used for receiving the negotiation response message sent by the second switching equipment and judging whether various parameters carried by the negotiation response message meet preset conditions, wherein the various parameters are set for a first Virtual Fiber Channel (VFC) interface bound with a first physical port of the second switching equipment;
The configuration unit is used for determining that all the parameters meet preset conditions, determining that all the parameters are successful in negotiation, configuring a second VFC interface bound with a second physical interface of the first switching device according to all the parameters which are successful in negotiation, and sending a negotiation success message carrying all the parameters which are successful in negotiation to the second switching device so that the second switching device configures the first VFC interface according to all the parameters which are successful in negotiation;
the apparatus further comprises a modification unit:
the modifying unit is configured to determine that any parameter does not succeed in negotiation if any parameter of the various parameters does not meet a preset condition, modify the any parameter, and send a negotiation response message carrying the modified any parameter to the second switching device;
when the second switching device receives the negotiation response message, judging whether any modified parameter carried by the negotiation response message meets a preset condition, if the second switching device determines that any modified parameter carried by the negotiation response message does not meet the preset condition, modifying any parameter, and sending a negotiation response message carrying the modified any parameter to the first switching device; if the second switching device determines that any parameter carried by the negotiation response message after modification meets a preset condition, determining that all parameters are successfully negotiated, configuring the first VFC interface according to all parameters successfully negotiated, and sending a negotiation success message carrying all parameters successfully negotiated to the first switching device, so that the first switching device configures the second VFC interface according to all parameters successfully negotiated;
The receiving unit is further configured to receive a negotiation response message carrying the modified any parameter sent by the second switching device, and perform a step of determining whether the modified any parameter meets a preset condition; or,
the receiving unit is further configured to receive a negotiation success message carrying various parameters successfully negotiated, which is sent by the second switching device, and the configuration unit is further configured to configure the second VFC interface according to various parameters successfully carrying negotiation.
8. The apparatus of claim 7, wherein,
the negotiation triggering condition is as follows: the switching device is configured in fcoe-mode, the physical interface up of the switching device, and the VFC interface down bound to the physical interface.
9. The apparatus of any of claims 7-8, wherein the various types of parameters include:
the working mode of the switching equipment for sending the message, the VLAN used by the interface and the VSAN used by the interface.
10. The apparatus of claim 9, wherein the operating mode of the switching device comprises a core switch FCF mode, an edge switch NPV mode, or an FCF-NPV mode;
if the various parameters are determined to meet the preset conditions, the configuration unit is specifically configured to:
If the VLAN used by the interface and the VSAN information used by the interface carried by the negotiation response message sent by the second switching equipment are determined to be available under the condition that the working mode of the first switching equipment is a non-NPV mode, determining that the negotiation of various parameters is successful; or,
and if the working mode of the second switching equipment is determined to be a non-NPV mode and the VLAN used by the interface and the VSAN information used by the interface are available, determining that the negotiation of various parameters is successful.
11. The apparatus of any of claims 7-9, wherein the transmitting unit is further configured to:
when meeting the negotiation triggering condition, the sending unit sends a negotiation request message to the second switching equipment for N times based on a preset first period;
if it is determined that the negotiation response message sent by the second switching device is not received, the sending unit sends an M-time negotiation request message to the second switching device based on a preset second period;
if it is determined that the negotiation response message sent by the second switching device is not received, the sending unit sends the negotiation request message to the second switching device based on a preset third period;
Wherein the first period is less than the second period, and the second period is less than the third period.
12. The apparatus of any one of claims 7-9, wherein the apparatus further comprises:
the setting unit is configured to set the first physical interface bound with the second VFC interface to enter a negotiation suppression mode for a second preset duration after the second VFC interface is configured according to various parameters successfully negotiated, if it is determined that the second VFC interface is reconfigured according to various parameters successfully renegotiated within a first preset duration, wherein in the second preset duration, the first physical interface does not send/receive a negotiation request message and/or a negotiation response message.
CN202010303194.8A 2020-04-17 2020-04-17 VFC interface configuration method and device Active CN111600814B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010303194.8A CN111600814B (en) 2020-04-17 2020-04-17 VFC interface configuration method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010303194.8A CN111600814B (en) 2020-04-17 2020-04-17 VFC interface configuration method and device

Publications (2)

Publication Number Publication Date
CN111600814A CN111600814A (en) 2020-08-28
CN111600814B true CN111600814B (en) 2023-12-26

Family

ID=72188953

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010303194.8A Active CN111600814B (en) 2020-04-17 2020-04-17 VFC interface configuration method and device

Country Status (1)

Country Link
CN (1) CN111600814B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101588365A (en) * 2009-06-18 2009-11-25 杭州华三通信技术有限公司 Link negotiation control method and optical fiber chunnel bearing ether protocol integration system
CN102611952A (en) * 2012-03-29 2012-07-25 杭州华三通信技术有限公司 Method and device for realizing port consultation between fabric channel over Ethernet (FCoE) forwarders

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8767751B2 (en) * 2010-04-30 2014-07-01 Cisco Technology, Inc. Unsolicited FIP packet injection by proxy and spoofing and autoconfiguring intermediate bridges using FIP snooping

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101588365A (en) * 2009-06-18 2009-11-25 杭州华三通信技术有限公司 Link negotiation control method and optical fiber chunnel bearing ether protocol integration system
CN102611952A (en) * 2012-03-29 2012-07-25 杭州华三通信技术有限公司 Method and device for realizing port consultation between fabric channel over Ethernet (FCoE) forwarders

Also Published As

Publication number Publication date
CN111600814A (en) 2020-08-28

Similar Documents

Publication Publication Date Title
CN109088820B (en) Cross-device link aggregation method and device, computing device and storage medium
US9288075B2 (en) Method and system for auto-configuration, and network node
WO2018219148A1 (en) Method, device and system for managing transmission network slices
WO2012088954A1 (en) Method, apparatus and system for management of network configuration based on network configuration protocol
WO2017088494A1 (en) Link management method and apparatus
CN109150659B (en) Processor and BFD message transmission method
EP3244587A1 (en) Method, device and system for precision time protocol time synchronization in aggregation network
CN109379239B (en) Method and device for configuring access switch in OpenStack environment
JP4481639B2 (en) Protocols that adjust and run configurations
US10511494B2 (en) Network control method and apparatus
WO2024103716A1 (en) Method and apparatus for managing subnets in link, and device and readable medium
CN111600814B (en) VFC interface configuration method and device
CN117336346A (en) IPPBX and PMS docking state conversion method, terminal equipment and medium
CN102684865B (en) Method, system and device for data synchronization
CN107528788A (en) Realize the method and apparatus stacked automatically between the network equipment
CN113261249A (en) Data transmission method, related equipment and computer storage medium
CN108900422A (en) Multicast forward method, device and electronic equipment
WO2011017972A1 (en) Method for switch device establishing topology structure, switch device and stacking system thereof
CN110830295B (en) Equipment management method and system
CN108418709B (en) Port aggregation method and device
WO2016177135A1 (en) Resource management method, device, and control terminal
CN103051568B (en) File transmitting method, device and switch
CN102821118A (en) Method and system for backing up services in network with heterogeneous nodes
EP3896926A1 (en) Network device and packet processing method using same
CN110769399A (en) Internet of things equipment connection networking method, Internet of things equipment system and information access and transmission method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant