[go: up one dir, main page]

CN113542096B - Virtual channel negotiation method and device - Google Patents

Virtual channel negotiation method and device Download PDF

Info

Publication number
CN113542096B
CN113542096B CN202110705993.2A CN202110705993A CN113542096B CN 113542096 B CN113542096 B CN 113542096B CN 202110705993 A CN202110705993 A CN 202110705993A CN 113542096 B CN113542096 B CN 113542096B
Authority
CN
China
Prior art keywords
negotiation
fcoe
qinq
packet
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
CN202110705993.2A
Other languages
Chinese (zh)
Other versions
CN113542096A (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 Cloud Technologies Co Ltd
Original Assignee
New H3C Cloud 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 Cloud Technologies Co Ltd filed Critical New H3C Cloud Technologies Co Ltd
Priority to CN202110705993.2A priority Critical patent/CN113542096B/en
Publication of CN113542096A publication Critical patent/CN113542096A/en
Application granted granted Critical
Publication of CN113542096B publication Critical patent/CN113542096B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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/46Interconnection of networks
    • H04L12/4641Virtual LANs, VLANs, e.g. virtual private networks [VPN]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network

Landscapes

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

Abstract

The present specification provides a negotiation method and apparatus for a virtual channel, and relates to the technical field of communications. A negotiation method of a virtual channel comprises the following steps: receiving an FCoE negotiation message which is sent by node equipment and carries a first QinQ package comprising a public network VLAN identification and a private network VLAN identification; if the private network VLAN identification hits the negotiation VLAN identification, the public network VLAN identification is modified into the negotiation VLAN identification, a second QinQ-packaged FCoE negotiation message is formed, and the corresponding relation between the negotiation VLAN identification and the public network VLAN identification is recorded; performing FCoE negotiation based on the FCoE negotiation message packaged by the second QinQ, and generating an FCoE negotiation feedback message carrying the first QinQ package according to the corresponding relation; and sending a first QinQ-encapsulated FCoE negotiation feedback message to the node equipment so as to enable the node equipment to interact with the virtual channel established by the edge switching equipment.

Description

Virtual channel negotiation method and device
Technical Field
The present disclosure relates to the field of communications technologies, and in particular, to a method and an apparatus for negotiating a virtual channel.
Background
With the increasing use of the internet, the server needs to store more and more data, which results in an increasing demand for storage capacity of the server.
In order to realize the extension of Storage, the Storage of a server is "externalized", and a concept of SAN (Storage Area network) is proposed. SAN networks are classified into FC (Fibre Channel) SANs and IP (Internet Protocol) SANs according to the protocols used. The FC SAN uses the FC Protocol family, and the IP SAN uses the TCP/IP Protocol (Transmission Control Protocol/Internet Protocol) family. For the transmission device, data transmission and storage are required, and in the network, an FC switching device and an ethernet switching device need to be deployed respectively, so that a data center needs to be implemented by deploying two sets of switching devices.
In order to reduce the number of switching devices and implement access in two ways, an FCoE (Fibre Channel over Ethernet) protocol is proposed, so that the FC protocol can be carried over Ethernet. Under the condition of communication through an FCoE protocol, a server and a switching device need to negotiate based on a VLAN (Virtual Local Area Network), and in some networks, for example, by applying a QinQ (802.1Q-in-802.1Q) protocol, an FCoE packet transmitted in a Network needs to encapsulate two layers of VLAN headers, and an outer layer of a public Network VLAN header causes the switching device to be unable to complete negotiation of the FCoE protocol, so that a problem of being unable to access data stored in the server occurs, and flexibility of application of the FCoE protocol is reduced.
Disclosure of Invention
In order to overcome the problems in the related art, the present specification provides a method and an apparatus for negotiating a virtual channel.
In combination with the first aspect of the embodiments of the present specification, the present application provides a method for negotiating a virtual channel, which is applied to an edge switching device, and the method includes:
receiving an FCoE negotiation message which is sent by node equipment and carries a first QinQ package, wherein the first QinQ package comprises a public network Virtual Local Area Network (VLAN) identifier and a private network VLAN identifier;
if the fact that the first QinQ packaged private network VLAN identification hits a pre-configured negotiation VLAN identification is determined, the public network VLAN identification is modified into the negotiation VLAN identification, a second QinQ packaged FCoE negotiation message is formed, and the corresponding relation between the negotiation VLAN identification and the public network VLAN identification is recorded;
performing FCoE negotiation based on the FCoE negotiation message packaged by the second QinQ, and generating an FCoE negotiation feedback message carrying the first QinQ package according to the corresponding relation;
and sending a first QinQ-encapsulated FCoE negotiation feedback message to the node equipment so as to enable the node equipment and the edge switching equipment to perform data interaction based on a virtual channel established after FCoE negotiation.
Optionally, the method further includes:
and if the fact that the private network VLAN identification of the first QinQ packaged FCoE negotiation message does not hit the pre-configured negotiation VLAN identification is determined, discarding the first QinQ packaged FCoE negotiation message.
Further, performing FCoE negotiation based on the second QinQ-encapsulated FCoE negotiation packet, and generating an FCoE negotiation feedback packet carrying the first QinQ encapsulation according to the correspondence, including:
performing FCoE negotiation based on the FCoE negotiation message packaged by the second QinQ;
generating a second QinQ-encapsulated FCoE negotiation feedback message;
and modifying the protocol VLAN identification in the second QinQ package into a public network VLAN identification according to the corresponding relation to form the FCoE negotiation feedback message packaged by the first QinQ package.
Further, receiving the FCoE negotiation packet sent by the node device and carrying the first QinQ encapsulation, includes:
receiving an FCoE message which is sent by node equipment and carries a first QinQ package;
and if the Ether type field carried by the FCoE message is determined to carry the first field value, determining an FCoE negotiation message.
Optionally, after receiving the FCoE packet sent by the node device and carrying the first QinQ encapsulation, the method further includes:
if the Ethernet type field carried by the FCoE message is determined to carry the second field value, determining that the FCoE message is an FCoE data message;
and forwarding the FCoE data message carrying the first QinQ package to the target node equipment.
In combination with the second aspect of the embodiments of the present specification, the present application provides a negotiation apparatus for a virtual channel, which is applied to an edge switching device, and the apparatus includes:
a receiving unit, configured to receive an FCoE negotiation packet sent by a node device and carrying a first QinQ package, where the first QinQ package includes a public network virtual local area network VLAN identifier and a private network VLAN identifier;
a modification unit, configured to modify the public network VLAN identifier into a negotiation VLAN identifier if it is determined that the first QinQ-packaged private network VLAN identifier hits a preconfigured negotiation VLAN identifier, to form a second QinQ-packaged FCoE negotiation packet, and to record a corresponding relationship between the negotiation VLAN identifier and the public network VLAN identifier;
a negotiation unit, configured to perform an FCoE negotiation based on the second QinQ-encapsulated FCoE negotiation packet, and generate an FCoE negotiation feedback packet carrying the first QinQ encapsulation according to the correspondence;
a sending unit, configured to send the first QinQ-encapsulated FCoE negotiation feedback packet to the node device, so that the node device and the edge switching device perform data interaction based on the virtual channel established after the FCoE negotiation.
Optionally, the apparatus further includes:
and the discarding unit is used for discarding the first QinQ-encapsulated FCoE negotiation message if the private network VLAN identifier of the first QinQ-encapsulated FCoE negotiation message is determined not to hit the pre-configured negotiation VLAN identifier.
Further, the negotiation unit includes:
a negotiation module, configured to perform an FCoE negotiation based on the second QinQ-encapsulated FCoE negotiation packet;
a generating module, configured to generate a second QinQ-encapsulated FCoE negotiation feedback packet;
and the modifying unit is also used for modifying the protocol VLAN identifier in the second QinQ package into a public network VLAN identifier according to the corresponding relation, and forming the FCoE negotiation feedback message packaged by the first QinQ.
Further, the receiving unit includes:
a receiving module, configured to receive an FCoE packet sent by a node device and carrying a first QinQ package;
and the determining module is used for determining the FCoE negotiation message if the Ether type field carried by the FCoE message is determined to carry the first field value.
Optionally, the determining module is further configured to determine that the FCoE packet is an FCoE data packet if it is determined that the ethertype field carried by the FCoE packet carries the second field value;
and the sending unit is further configured to forward the FCoE data packet carrying the first QinQ package to the target node device.
The technical scheme provided by the implementation mode of the specification can have the following beneficial effects:
in the embodiment of this specification, it is determined, by an edge switching device, whether a private network VLAN id carried in a QinQ encapsulation carried in an FCoE negotiation packet is a configured negotiation VLAN id, and if the QinQ encapsulation is modified, a public network VLAN id is modified to a negotiation VLAN id, so that the edge switching device may perform an FCoE negotiation based on the modified QinQ encapsulation, and send an FCoE negotiation feedback packet to a node device in the case that the negotiation is passed, so that an FCoE negotiation can be performed between the node device and the edge switching device, an FCoE virtual channel is established for data interaction, and flexibility of application of an FCoE protocol is improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the specification.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present specification and together with the description, serve to explain the principles of the specification.
Fig. 1 is a flowchart of a negotiation method of a virtual channel according to an embodiment of the present application;
fig. 2 is a network configuration diagram of a negotiation method for a virtual channel according to an embodiment of the present application;
fig. 3 is a schematic configuration diagram of a virtual channel negotiation apparatus according to an embodiment of the present invention.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present specification.
The present application provides a negotiation method of a virtual channel, which is applied to an edge switching device, and as shown in fig. 1, the method includes:
s100, receiving an FCoE negotiation message which is sent by node equipment and carries a first QinQ package.
As shown in fig. 2, in the network used by the FCoE protocol, the network may be divided into an internet network and a local area network, the internet network (also referred to as a backbone network) may be understood as a public network, the local area network may be regarded as a private network, and access to the SAN network and the ethernet network may be realized through a network device (e.g., a router or a switch) provided in the public network based on the FCoE protocol, which is described as an example including two edge switching devices, a switching device 1 and a switching device 2, in which the switching device is not limited to a switch, and may also be another network device with a switching function.
Node device 1, node device 2, and node device 3 may be provided in the same VLAN (i.e., VLAN 1), and node device 4 and node device 5 may be provided in the same VLAN (i.e., VLAN 2). Node device 1, node device 2, and node device 3 are isolated from node device 4 and node device 5, which may be storage devices, computing devices, and the like, by the setting of VLANs.
In the internet, a public network VLAN identifier is set, the VLANs where the node device 1, the node device 2, and the node device 3 are located and the VLANs where the node device 4 and the node device 5 are located may be regarded as public network VLANs, and the VLANs 1 and 2 may be regarded as public network VLAN identifiers. Among the VLANs provided for the internet, a plurality of private network VLANs may also be provided, for example, for VLAN1, the node device 1 and the node device 2 are provided in VLAN10, and the node device 3 is provided in VLAN 11.
In the internet, forwarding can be performed by QinQ encapsulation, qinQ (also called Stacked VLAN or dual VLAN) technology. Through QinQ technology, the VLAN identification of the private network can be packaged in the VLAN identification of the public network, so that the situation that the VLAN carrying the private network passes through the public network is realized. In the setting of the VLAN identification, the public network VLAN identification is positioned on the outer layer of the message, and the private network VLAN identification is positioned on the inner layer of the message.
The node device 1 sends an FCoE packet to the node device 2, where the FCoE packet carries an ethernet type field, and when the ethernet type field is a first field value (for example, 0x 8914), it may be determined that the FCoE packet is an FCoE negotiation packet, and when the ethernet type field is a second field value (for example, 0x 8906), it may be determined that the FCoE packet is an FCoE data packet, that is, the FCoE packet may include at least two types of packets, that is, an FCoE negotiation packet and an FCoE data packet.
The FCoE packet may carry a private VLAN tag, that is, VLAN11, and a virtual channel between the node device 1 and the switching device 2 may be established through the FCoE negotiation packet, and data interaction may be performed through the virtual channel. When data communication needs to be performed between the node device 1 and the node device 2, the node device 1 needs to send an FCoE negotiation packet to the switching device 2, and after the FCoE negotiation packet is generated by the node device 1, qinQ is performed based on a QinQ protocol, and a first QinQ package formed by packaging includes a public network VLAN id and a private network VLAN id, that is, VLAN1 and VLAN2 are public network VLAN ids, and VLAN10 and VLAN11 are private network VLAN ids.
In the internet, the first QinQ-encapsulated FCoE packet is forwarded to the switching device 2 based on the public network VLAN identifier, so that the switching device 2 can receive the FCoE packet. After the switching device 2 receives the FCoE packet, the processing mode may be determined according to different ethernet type fields. When the switching device 2 determines that the ethernet type field carried by the FCoE message is 0x8914, it may be determined that the FCoE message is a negotiation message for establishing a virtual channel between the node device 1 and the switching device 2.
Specifically, step S100, receiving an FCoE negotiation packet that carries a first QinQ package and is sent by a node device, includes:
S100A, receiving an FCoE message which is sent by node equipment and carries a first QinQ package.
S100B, if the Ether type field carried by the FCoE message is determined to carry the first field value, determining an FCoE negotiation message.
S101, if it is determined that the first QinQ packaged private network VLAN identification hits the pre-configured negotiation VLAN identification, the public network VLAN identification is modified into the negotiation VLAN identification, a second QinQ packaged FCoE negotiation message is formed, and the corresponding relation between the negotiation VLAN identification and the public network VLAN identification is recorded.
When the switching device 2 and the node device 1 perform FCoE negotiation, based on the requirement of the FCoE protocol, the switching device 2 performs based on the outer VLAN id of the received packet, but in the case of QinQ encapsulation, the outer VLAN id is a public network VLAN id, and performing FCoE negotiation needs to be performed based on a private network VLAN id, so that in the case of QinQ encapsulation, the switching device 2 cannot complete the negotiation of FCoE, and thus cannot realize transmission based on the FCoE protocol.
In order to implement the FCoE negotiation, when the switching device 2 determines that the received FCoE packet is the FCoE negotiation packet, the switching device 2 may obtain the public network VLAN id and the private network VLAN id carried in the FCoE negotiation packet. The switching device 2 may have a preconfigured VLAN identifier (hereinafter referred to as a negotiated VLAN identifier), which may be a private network VLAN identifier connected to the switching device 2 and providing computing services and storage services to the outside, for example, may be a private network VLAN identifier in which the node device 2 is located, that is, VLAN10.
When determining that the private network VLAN id carried by the FCoE negotiation packet is VLAN10, the switching device 2 may determine that the first QinQ-encapsulated FCoE negotiation packet may perform negotiation, and at this time, the switching device 2 may modify the first QinQ-encapsulated FCoE negotiation packet, that is, modify the public network VLAN id into the preset negotiation VLAN id, to form a second QinQ-encapsulated FCoE negotiation packet, where in the second QinQ encapsulation, the outer VLAN is the negotiation VLAN id and the memory VLAN is the private network VLAN id.
At this time, the switching device 2 may record the correspondence between the original public network VLAN id and the negotiated VLAN id.
And S102, performing FCoE negotiation based on the second QinQ-packaged FCoE negotiation message, and generating an FCoE negotiation feedback message carrying the first QinQ package according to the corresponding relation.
After modification, the switching device 2 may perform FCoE negotiation with the node device 1 according to the outer VLAN identifier (i.e., a negotiation VLAN identifier), and a specific negotiation process may adopt an existing negotiation manner, which is not described again.
At this time, if the negotiation is passed, it indicates that the switching device 2 may establish the virtual channel with the node device 1, and if the negotiation is not passed, the switching device 2 indicates that the switching device 2 cannot establish the virtual channel with the node device 1, and the FCoE negotiation packet received this time may be discarded.
Whether the negotiation is passed or not, the switching device 2 generates an FCoE negotiation feedback packet to notify the node device 1 of the negotiation result.
Specifically, step S102, performing an FCoE negotiation based on the second QinQ-encapsulated FCoE negotiation packet, and generating an FCoE negotiation feedback packet carrying the first QinQ-encapsulated FCoE negotiation packet according to the correspondence relationship, includes:
S102A, the FCoE negotiation is carried out based on the FCoE negotiation message packaged by the second QinQ.
And S102B, generating a second QinQ-packaged FCoE negotiation feedback message.
After the negotiation is completed, the switching device 2 may generate an FCoE negotiation feedback message, where a VLAN id of the FCoE negotiation feedback message is a private network VLAN id carried in the FCoE negotiation message. Then, when QinQ encapsulation is performed on the FCoE negotiation feedback packet, a second QinQ encapsulated FCoE negotiation feedback packet is generated based on a second QinQ encapsulated FCoE protocol feedback packet during negotiation.
And S102C, modifying the protocol VLAN identification in the second QinQ package into a public network VLAN identification according to the corresponding relation to form a first QinQ packaged FCoE negotiation feedback message.
At this time, in order to send the FCoE negotiation feedback packet to the node device 1, a reverse modification may be performed based on the previously recorded correspondence, that is, the negotiation VLAN id of the outer VLAN in the second QinQ encapsulation is modified to the public network VLAN id, so as to generate the first QinQ encapsulated FCoE negotiation feedback packet. Since the FCoE negotiation feedback packet encapsulates the first QinQ encapsulation, the FCoE negotiation feedback packet may be fed back to the node device 1 based on the first QinQ encapsulation.
And S103, sending the FCoE negotiation feedback message encapsulated by the first QinQ to the node equipment so as to enable the node equipment and the edge switching equipment to perform data interaction based on a virtual channel established after the FCoE negotiation.
After the switching device 2 generates the first QinQ-encapsulated FCoE negotiation feedback packet, it may send the first QinQ-encapsulated FCoE negotiation feedback packet to the node device 1. After receiving the FCoE protocol feedback packet encapsulated by the first QinQ, the switching device 1 sends the FCoE protocol feedback packet to the node device 1, and the node device 1 strips the first QinQ encapsulation and restores the FCoE negotiation feedback packet. And the node equipment 1 determines a negotiation result according to the received FCoE negotiation feedback message, and finally completes the establishment of the virtual channel if the negotiation is passed.
In the embodiment of this specification, it is determined, by an edge switching device, whether a private network VLAN id carried in a QinQ encapsulation carried in an FCoE negotiation packet is a configured negotiation VLAN id, and if the QinQ encapsulation is modified, a public network VLAN id is modified to a negotiation VLAN id, so that the edge switching device may perform an FCoE negotiation based on the modified QinQ encapsulation, and send an FCoE negotiation feedback packet to a node device in the case that the negotiation is passed, so that an FCoE negotiation can be performed between the node device and the edge switching device, a virtual channel of an FCoE is established for data interaction, and flexibility of application of an FCoE protocol is improved.
Optionally, the method further includes:
and S104, if the private network VLAN identification of the first QinQ packaged FCoE negotiation message is determined to miss the pre-configured negotiation VLAN identification, discarding the first QinQ packaged FCoE negotiation message.
The FCoE packet is received at the switching device 2, and it is determined that the FCoE packet is an FCoE negotiation packet based on the ethernet type field, so that the judgment of the private network VLAN identifier and the protocol VLAN identifier can be performed. If the two are not consistent, the FCoE negotiation packet may be considered to be illegal, and the FCoE negotiation cannot be performed, at this time, the switching device 2 may discard the first QinQ-encapsulated FCoE negotiation packet, and terminate the negotiation process.
Optionally, after step S100, receiving the FCoE packet carrying the first QinQ package and sent by the node device, the method further includes:
and S105, if the second field value is carried in the Ethernet type field carried by the FCoE message, determining that the FCoE message is an FCoE data message.
S106, the first QinQ package is stripped, and the FCoE data message is forwarded to the target node equipment.
After the switching device 2 and the node device 1 establish the virtual channel, the node device 1 may perform data interaction with the node device 2 through the switching device 2. At this time, the ethernet type field carried in the first QinQ-encapsulated FCoE message may be 0x8906, so as to indicate that the FCoE message is an FCoE data message.
After the switching device 2 determines that the received FCoE packet is an FCoE data packet, the first QinQ encapsulation may be stripped, and the private network VLAN id may be re-attached to forward the packet to the node device 2, thereby implementing data interaction between the node device 1 and the node device 2.
In combination with the second aspect of the embodiments of the present specification, the present application provides a negotiation apparatus for a virtual channel, which is applied to an edge switching device, and the apparatus, as shown in fig. 3, includes:
a receiving unit, configured to receive an FCoE negotiation packet sent by a node device and carrying a first QinQ package, where the first QinQ package includes a public network virtual local area network VLAN identifier and a private network VLAN identifier;
a modification unit, configured to modify the public network VLAN identifier into a negotiation VLAN identifier if it is determined that the first QinQ-packaged private network VLAN identifier hits a preconfigured negotiation VLAN identifier, to form a second QinQ-packaged FCoE negotiation packet, and to record a corresponding relationship between the negotiation VLAN identifier and the public network VLAN identifier;
a negotiation unit, configured to perform an FCoE negotiation based on the second QinQ-encapsulated FCoE negotiation packet, and generate an FCoE negotiation feedback packet carrying the first QinQ encapsulation according to the correspondence;
a sending unit, configured to send the first QinQ-encapsulated FCoE negotiation feedback packet to the node device, so that the node device and the edge switching device perform data interaction based on a virtual channel established after FCoE negotiation.
Optionally, the apparatus further includes:
and the discarding unit is configured to discard the first QinQ-encapsulated FCoE negotiation packet if it is determined that the private network VLAN id of the first QinQ-encapsulated FCoE negotiation packet does not hit the pre-configured negotiation VLAN id.
Further, the negotiation unit includes:
a negotiation module, configured to perform an FCoE negotiation based on the second QinQ-encapsulated FCoE negotiation packet;
a generating module, configured to generate a second QinQ-encapsulated FCoE negotiation feedback packet;
and the modifying unit is also used for modifying the protocol VLAN identifier in the second QinQ package into a public network VLAN identifier according to the corresponding relation, and forming the FCoE negotiation feedback message packaged by the first QinQ.
Further, the receiving unit includes:
a receiving module, configured to receive an FCoE packet sent by a node device and carrying a first QinQ package;
and the determining module is used for determining the FCoE negotiation message if the Ethernet type field carried by the FCoE message is determined to carry the first field value.
Optionally, the determining module is further configured to determine that the FCoE packet is an FCoE data packet if it is determined that the ethertype field carried by the FCoE packet carries the second field value;
and the sending unit is further configured to forward the FCoE data packet carrying the first QinQ package to the target node device.
The technical scheme provided by the implementation mode of the specification can have the following beneficial effects:
in the embodiment of this specification, it is determined, by the edge switching device, whether the FCoE negotiation packet carries the private network VLAN id carried in the QinQ encapsulation is the configured negotiation VLAN id, and if the QinQ encapsulation is modified, the public network VLAN id is modified to the negotiation VLAN id, so that the edge switching device can perform FCoE negotiation based on the modified QinQ encapsulation, and send an FCoE negotiation feedback packet to the node device in the case that the negotiation is passed, so that FCoE negotiation can be performed between the node device and the edge switching device, and a virtual channel of FCoE is established for data interaction, thereby improving the flexibility of the FCoE protocol.
It will be understood that the present description is not limited to the precise arrangements described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof.
The above description is only for the purpose of illustrating the preferred embodiments of the present disclosure and is not to be construed as limiting the present disclosure, and any modifications, equivalents, improvements, etc. made within the spirit and principle of the present disclosure are intended to be included within the scope of the present disclosure.

Claims (10)

1. A negotiation method of a virtual channel is applied to an edge switching device, and the method comprises the following steps:
receiving an FCoE negotiation message which is sent by node equipment and carries a first QinQ package, wherein the first QinQ package comprises a public network Virtual Local Area Network (VLAN) identifier and a private network VLAN identifier;
if the first QinQ-packaged private network VLAN identification is determined to hit a pre-configured negotiation VLAN identification, the public network VLAN identification is modified into a negotiation VLAN identification to form a second QinQ-packaged FCoE negotiation message, and the corresponding relation between the negotiation VLAN identification and the public network VLAN identification is recorded;
performing the FCoE negotiation based on the second QinQ-encapsulated FCoE negotiation packet, and generating an FCoE negotiation feedback packet carrying the first QinQ encapsulation according to the correspondence;
and sending a first QinQ-encapsulated FCoE negotiation feedback message to the node equipment so as to enable the node equipment and the edge switching equipment to perform data interaction based on a virtual channel established after FCoE negotiation.
2. The method of claim 1, further comprising:
and if the fact that the private network VLAN identification of the first QinQ packaged FCoE negotiation message does not hit a pre-configured negotiation VLAN identification is determined, discarding the first QinQ packaged FCoE negotiation message.
3. The method according to claim 1, wherein performing FCoE negotiation based on the second QinQ-encapsulated FCoE negotiation packet, and generating an FCoE negotiation feedback packet carrying a first QinQ encapsulation according to the correspondence, comprises:
performing FCoE negotiation based on the second QinQ-encapsulated FCoE negotiation message;
generating the FCoE negotiation feedback message packaged by the second QinQ;
and modifying the protocol VLAN identification in the second QinQ package into a public network VLAN identification according to the corresponding relation to form the FCoE negotiation feedback message packaged by the first QinQ package.
4. The method according to claim 1, wherein the receiving an FCoE negotiation packet sent by the node device and carrying a first QinQ capsule includes:
receiving an FCoE message which is sent by node equipment and carries a first QinQ package;
and if the Ethernet type field carried by the FCoE message is determined to carry a first field value, determining the FCoE negotiation message.
5. The method according to claim 4, further comprising, after the FCoE packet carrying the first QinQ encapsulation and sent by the receiving node device:
if the fact that the ether type field carried by the FCoE message carries a second field value is determined, determining that the FCoE message is an FCoE data message;
and forwarding the FCoE data message carrying the first QinQ package to target node equipment.
6. A negotiation device of a virtual channel, applied to an edge switching device, the device comprising:
a receiving unit, configured to receive an FCoE negotiation packet that is sent by a node device and carries a first QinQ package, where the first QinQ package includes a public virtual local area network VLAN id and a private network VLAN id;
a modification unit, configured to modify the public network VLAN identifier into a negotiation VLAN identifier if it is determined that the first QinQ-encapsulated private network VLAN identifier hits a preconfigured negotiation VLAN identifier, to form a second QinQ-encapsulated FCoE negotiation packet, and to record a correspondence between the negotiation VLAN identifier and the public network VLAN identifier;
a negotiation unit, configured to perform an FCoE negotiation based on the second QinQ-encapsulated FCoE negotiation packet, and generate an FCoE negotiation feedback packet carrying a first QinQ encapsulation according to the correspondence;
a sending unit, configured to send a first QinQ-encapsulated FCoE negotiation feedback packet to the node device, so that the node device and the edge switching device perform data interaction based on a virtual channel established after FCoE negotiation.
7. The apparatus of claim 6, further comprising:
and a discarding unit, configured to discard the first QinQ-encapsulated FCoE negotiation packet if it is determined that the private network VLAN id of the first QinQ-encapsulated FCoE negotiation packet does not hit the preconfigured negotiation VLAN id.
8. The apparatus of claim 6, wherein the negotiation unit comprises:
a negotiation module, configured to perform an FCoE negotiation based on the second QinQ-encapsulated FCoE negotiation packet;
a generating module, configured to generate the FCoE negotiation feedback packet encapsulated by the second QinQ;
and the modifying unit is further configured to modify the protocol VLAN identifier in the second QinQ package into a public network VLAN identifier according to the correspondence, so as to form the FCoE negotiation feedback packet encapsulated by the first QinQ.
9. The apparatus of claim 6, wherein the receiving unit comprises:
a receiving module, configured to receive an FCoE packet sent by a node device and carrying a first QinQ package;
a determining module, configured to determine the FCoE negotiation packet if it is determined that the ethertype field carried by the FCoE packet carries a first field value.
10. The apparatus according to claim 9, wherein the determining module is further configured to determine that the FCoE packet is an FCoE data packet if it is determined that an ethertype field carried by the FCoE packet carries a second field value;
the sending unit is further configured to forward the FCoE data packet carrying the first QinQ package to a target node device.
CN202110705993.2A 2021-06-24 2021-06-24 Virtual channel negotiation method and device Active CN113542096B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110705993.2A CN113542096B (en) 2021-06-24 2021-06-24 Virtual channel negotiation method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110705993.2A CN113542096B (en) 2021-06-24 2021-06-24 Virtual channel negotiation method and device

Publications (2)

Publication Number Publication Date
CN113542096A CN113542096A (en) 2021-10-22
CN113542096B true CN113542096B (en) 2022-11-18

Family

ID=78096674

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110705993.2A Active CN113542096B (en) 2021-06-24 2021-06-24 Virtual channel negotiation method and device

Country Status (1)

Country Link
CN (1) CN113542096B (en)

Family Cites Families (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8238347B2 (en) * 2004-10-22 2012-08-07 Cisco Technology, Inc. Fibre channel over ethernet
CN101453673B (en) * 2006-08-21 2011-09-14 华为技术有限公司 Optical network terminal, and packet process method thereof
CN101588365B (en) * 2009-06-18 2012-05-23 杭州华三通信技术有限公司 Link negotiation control method and fibre channel bearing Ethernet protocol integration system
US8559433B2 (en) * 2011-01-07 2013-10-15 Jeda Networks, Inc. Methods, systems and apparatus for the servicing of fibre channel fabric login frames
US9231870B2 (en) * 2011-12-22 2016-01-05 International Business Machines Corporation Flexible and scalable data link layer flow control for network fabrics
CN102611952B (en) * 2012-03-29 2015-04-01 杭州华三通信技术有限公司 Method and device for realizing port consultation between fabric channel over Ethernet (FCoE) forwarders
US9025451B2 (en) * 2013-01-22 2015-05-05 Emulex Corporation Positive feedback ethernet link flow control for promoting lossless ethernet
US20140282551A1 (en) * 2013-03-13 2014-09-18 Emulex Design & Manufacturing Corporation Network virtualization via i/o interface
CN103888365B (en) * 2013-12-12 2017-01-25 电子科技大学 Method for performing flow control on FCoE port by utilizing fiber channel port flow control information
CN105376180A (en) * 2014-08-25 2016-03-02 中兴通讯股份有限公司 Method for realizing virtual switch function by fiber channel and node equipment
CN106101023B (en) * 2016-05-24 2019-06-28 华为技术有限公司 A kind of VPLS message processing method and equipment
CN111865716B (en) * 2020-06-30 2023-07-18 新华三信息技术有限公司 Port congestion detection method, device, equipment and machine-readable storage medium

Also Published As

Publication number Publication date
CN113542096A (en) 2021-10-22

Similar Documents

Publication Publication Date Title
US10757231B2 (en) Providing network efficiencies in forwarding packets among provider networks and applying segment routing policies
JP4236398B2 (en) Communication method, communication system, and communication connection program
US6993026B1 (en) Methods, apparatus and data structures for preserving address and service level information in a virtual private network
US8243627B2 (en) Methods, apparatus and data structures for preserving address and service level information in a virtual private network
CN101218575B (en) Techniques for migrating a point to point protocol to a protocol for an access network
US6771673B1 (en) Methods and apparatus and data structures for providing access to an edge router of a network
US9674030B2 (en) Methods and apparatus for a common control protocol for wired and wireless nodes
US8825829B2 (en) Routing and service performance management in an application acceleration environment
US9654303B2 (en) Method and apparatus for emulating network devices
US7480292B2 (en) Methods of processing data packets at layer three level in a telecommunication equipment
US9270575B2 (en) Service node using services applied by an application node
EP2712128A1 (en) Message processing method and related device thereof
US20040156313A1 (en) Method and apparatus for performing data flow ingress/egress admission control in a provider network
WO2023115367A1 (en) Multi-protocol data transmission method and apparatus, network, and storage medium
CN113542096B (en) Virtual channel negotiation method and device
JP2003069642A (en) Multiple packet coupling transmission system for layer 2 tunneling device
CN101060456B (en) Ethernet point-to-point protocol-based broad band access method and system
CN111277426B (en) IOAM information processing method and device
CN111614539B (en) Service data processing method and device and communication transmission equipment
Metz Layer 2 over ip/mpls
CN109922005B (en) Load sharing method, device and system and computer readable storage medium
WO2020147784A1 (en) Message decapsulation method and device, message encapsulation method and device, electronic device, and storage medium
EP2617166B1 (en) Method and apparatus for reducing receiver identification overhead in ip broadcast networks
CN115460139B (en) Network intercommunication method and device
CN111182016B (en) PPPoE dialing message transmission method and device

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