CN105591971B - A kind of implementation method and device of QoS - Google Patents

A kind of implementation method and device of QoS Download PDF

Info

Publication number
CN105591971B
CN105591971B CN201510713861.9A CN201510713861A CN105591971B CN 105591971 B CN105591971 B CN 105591971B CN 201510713861 A CN201510713861 A CN 201510713861A CN 105591971 B CN105591971 B CN 105591971B
Authority
CN
China
Prior art keywords
message
information
priority
packet
priority information
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
CN201510713861.9A
Other languages
Chinese (zh)
Other versions
CN105591971A (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 Technologies Co Ltd
Original Assignee
New H3C 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 Technologies Co Ltd filed Critical New H3C Technologies Co Ltd
Priority to CN201510713861.9A priority Critical patent/CN105591971B/en
Publication of CN105591971A publication Critical patent/CN105591971A/en
Application granted granted Critical
Publication of CN105591971B publication Critical patent/CN105591971B/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
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/24Traffic characterised by specific attributes, e.g. priority or QoS

Landscapes

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

Abstract

The present invention provides the implementation method and device of a kind of QoS, this method comprises: stream class node obtains the characteristic information of first message when receiving the first message, and the precedence information of first message is obtained using the characteristic information of first message;The stream class node is the tunnel head of the first message encapsulation package chain information containing service, and adds the precedence information in the corresponding field of service chain information of the tunnel head, obtains the second message;The stream class node sends second message using the precedence information, so that the node for receiving second message sends second message using the precedence information carried in tunnel head.According to the technical solution of the present invention, QoS may be implemented, solve the QoS problem of implementation in Overlay network, adapt to the networking requirement of Overlay network, guarantee user experience.

Description

QoS (quality of service) realization method and device
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method and an apparatus for implementing QoS.
Background
With the rapid development of cloud computing and big data, data center networks are changing continuously, and various manufacturers propose Overlay networks to meet the requirements of data centers. The Overlay Network is a layer of logic Network superimposed on an Underlay Network (a traditional physical Network), and the superimposing mode is to encapsulate and decapsulate an original message, for example, VXLAN (Virtual eXtensible Local Area Network) encapsulation and VXLAN decapsulation are performed on the original message.
At present, an enterprise user network is divided into a service network, a management network and a storage network, the three enterprise user networks are managed by different nodes, the number of the nodes is large, and the maintenance workload is large. Based on this, there is a need to carry a service network, a management network, and a storage network through a flat network, in which service messages, management messages, and storage messages may exist simultaneously.
As shown in fig. 1, a networking schematic diagram of a Spine-Leaf flat network is shown, where a Spine node is a flat network architecture and is connected to a Leaf node. The Leaf node is a Leaf node of the flat network architecture, is connected with the host and is an access node of the host. The Border node is an external node of the flat network architecture and is a node for interfacing with an external core network. If the device under the Spine-Leaf network is compared with one device, the Spine node is equivalent to a backboard of the device, the Leaf node is equivalent to an interface board of the device, the corresponding output port is a downlink port of the device, the Border node is equivalent to an interface board of the device, and the corresponding output port is an uplink port of the device.
Because there are Service messages, management messages and storage messages in the flat network and there is a possibility of congestion, in order to ensure user experience, different bandwidth guarantees are provided for different types of messages through Quality of Service (QoS). The QoS is an 802.1P (LAN Layer 2 QoS Protocol for traffic priority LAN second Layer QoS Protocol) Protocol of a header of a message, the 802.1P Protocol header includes a 3-bit priority field, the field supports grouping the message into various traffic types)/DSCP (Differentiated Services Code Point) field carries a priority, and each node through which the message passes performs message transmission based on the priority of the DSCP field. For example, when the priority of the management packet is greater than the priority of the service packet, each node may preferentially transmit the management packet based on the priority of the DSCP field of the header of the management packet and the priority of the DSCP field of the header of the service packet.
However, in the Overlay network, during the message transmission process, the original message is encapsulated, a tunnel header, such as a VXLAN tunnel header, is added in front of the original message, and the message header (including the DSCP field) of the original message is encapsulated into the inner layer payload. When each node forwards the message, the node directly forwards the message based on the tunnel header without reading the message header content of the original message which is packaged to the inner layer load, so that each node cannot forward the message based on the priority of the DSCP field and cannot realize QoS.
Disclosure of Invention
The invention provides a method for realizing QoS, which comprises the following steps:
when a flow classification node receives a first message, acquiring characteristic information of the first message, and acquiring priority information of the first message by using the characteristic information of the first message;
the flow classification node packages a tunnel head containing service chain information for the first message, and adds the priority information in a field corresponding to the service chain information of the tunnel head to obtain a second message;
and the flow classification node sends the second message by using the priority information, so that the node receiving the second message sends the second message by using the priority information carried in the tunnel header.
The invention provides a QoS realizing device, which is applied to a flow classification node and comprises:
the device comprises an obtaining module, a priority module and a sending module, wherein the obtaining module is used for obtaining the characteristic information of a first message when the first message is received and obtaining the priority information of the first message by utilizing the characteristic information of the first message;
a processing module, configured to encapsulate a tunnel header including service chain information for the first packet, and add the priority information to a field corresponding to the service chain information of the tunnel header to obtain a second packet;
and the sending module is used for sending the second message by using the priority information so that the node receiving the second message sends the second message by using the priority information carried in the tunnel header.
Based on the technical scheme, in the embodiment of the invention, the priority information is added in the field corresponding to the service chain information of the tunnel head, so that each node can send the message according to the priority information carried in the field corresponding to the service chain information of the tunnel head, and when each node cannot forward the message based on the priority of the DSCP field, QoS can be realized, the QoS realization problem in an Overlay network is solved, the networking requirement of the Overlay network is adapted, and the user experience is ensured.
Drawings
FIG. 1 is a networking schematic of a Spine-Leaf flat network;
FIG. 2 is a flow chart of a method of implementing QoS in one embodiment of the present invention;
fig. 3 is a schematic diagram of a VXLAN tunnel header in one embodiment of the invention;
FIG. 4 is a hardware block diagram of a flow classification node in one embodiment of the invention;
fig. 5 is a block diagram of a QoS implementing apparatus according to an embodiment of the present invention.
Detailed Description
Aiming at the problems in the prior art, the embodiment of the invention provides a method for realizing QoS, which can be applied to a flow classification node, can be applied to a Spine-Leaf network, and can be a Leaf node of the Spine-Leaf network. In a Spine-Leaf network, a Spine node is connected to a Leaf node, the Leaf node is connected to a host, and the host connected to the Leaf node may be an independent host, such as a host used as a database, or a host configured with multiple virtual machines, such as a physical host, and a Border node is a node interfacing with an external core network. The Spine node and the Leaf node may be connected through an Overlay network, for example, the Overlay network may be a VXLAN network, and the processing of other types of Overlay networks is similar to that of the VXLAN network, and will not be described in detail later.
As shown in fig. 1, a Spine node 1 connects a Leaf node 1, a Leaf node 2, and a Leaf node 3 via a VXLAN network, and a Spine node 2 connects a Leaf node 1, a Leaf node 2, and a Leaf node 3 via a VXLAN network. Spine node 1 connects the Border node 1 and the Border node 2, and Spine node 2 connects the Border node 1 and the Border node 2. The Leaf node 1 is connected with the host 1, and the host 1 is configured with a virtual machine 1, a virtual machine 2 and a virtual machine 3. The Leaf node 2 is connected with the host 2, and the host 2 is provided with a virtual machine 4, a virtual machine 5 and a virtual machine 6. The Leaf node 3 is connected to the host 3.
In the application scenario, as shown in fig. 2, the QoS implementation method may include the following steps:
step 201, when receiving a first packet, a flow classification node obtains characteristic information of the first packet, and obtains priority information of the first packet by using the characteristic information of the first packet.
For example, when the flow classification node is a Leaf node 1, the first message may be a message from a host 1 in a two-layer network in which the Leaf node 1 is located, such as a message sent by a virtual machine 1 configured on the host 1.
In the embodiment of the present invention, a priority information table is preconfigured on the stream classification node, and the priority information table is used for recording a correspondence between the feature information and the priority information. Based on this, the process of the flow classification node obtaining the priority information of the first packet by using the characteristic information of the first packet may include, but is not limited to, the following manners: the flow classification node uses the characteristic information of the first message to inquire a priority information table configured in advance on the flow classification node, and obtains the priority information corresponding to the characteristic information of the first message from the priority information table.
In the embodiment of the present invention, the feature information of the first packet includes packet type information and packet identification information of the first packet. The message identification information may include, but is not limited to, one or any combination of the following: address information, ingress port information, ingress VLAN (Virtual Local Area Network) information, and VXLAN identification. The address information may include, but is not limited to, one or any combination of the following: a source IP address, a destination IP address, a source MAC (Media access control) address, a destination MAC address, protocol type information, a source port identification, and a destination port identification.
The message type information comprises a service message, a management message and a storage message.
In the embodiment of the present invention, the process of querying the preconfigured priority information table by the flow classification node using the feature information of the first packet may include, but is not limited to, the following manners: in the first mode, the flow classification node pre-configures the corresponding relation between the message identification information and the priority information in a priority information table; after the stream classification node obtains the message identification information of the first message, the stream classification node queries a pre-configured priority information table by using the message identification information of the first message. The flow classification node pre-configures the corresponding relation between the message type information and the priority information in a priority information table; after the stream classification node obtains the message type information of the first message, the stream classification node queries a pre-configured priority information table by using the message type information of the first message. The flow classification node pre-configures the corresponding relation between the message type information and the priority information in a priority information table; after receiving the first message, the stream classification node judges whether message identification information of the first message is recorded in the priority information table; if not, after the message type information of the first message is obtained, inquiring a pre-configured priority information table by using the message type information of the first message, and recording the message identification information of the first message in the priority information table; if so, after the message identification information of the first message is obtained, the pre-configured priority information table is inquired by using the message identification information of the first message.
In the first mode, the first specified packet which needs to be preferentially forwarded can be mapped to a high priority based on the address information, and the first specified packet which does not need to be preferentially forwarded can be mapped to a low priority. If the first packet 1 needs to be mapped to a high priority, the corresponding relationship between the address information (such as the source IP address 1, the destination IP address 1, the protocol type a, the source port identifier 1, and the destination port identifier 1) of the first packet 1 and the priority 5 may be recorded in the priority information table of the Leaf node 1 in advance. If the first packet 2 needs to be mapped to a low priority, the corresponding relationship between the address information (such as the source IP address 2, the destination IP address 2, the protocol type a, the source port identifier 2, and the destination port identifier 2) of the first packet 2 and the priority 1 may be recorded in the priority information table of the Leaf node 1 in advance. When receiving the first packet 1, the Leaf node 1 queries the priority information table based on the address information of the first packet 1, and may determine that the priority information of the first packet 1 is priority 5. When receiving the first packet 2, the Leaf node 1 queries the priority information table based on the address information of the first packet 2, and may determine that the priority information of the first packet 2 is priority 1.
For another example, the priority may be divided based on different ingress ports, and the corresponding relationship between port 1 and priority 3, the corresponding relationship between port 2 and priority 2, and the corresponding relationship between port 3 and priority 1 may be recorded in the priority information table of the Leaf node 1. When the Leaf node 1 receives the first message through the port 1, the priority information of the first message can be determined to be the priority 3 by inquiring the priority information table.
For another example, the priority of the message may be further divided according to the incoming VLAN information/VXLAN identifier of the message, where the VXLAN identifier is an identifier used by the Leaf node 1 when transmitting the first message in the VXLAN network, and a corresponding relationship between the incoming VLAN information/VXLAN identifier of the first message and the priority information may be recorded in a priority information table of the Leaf node 1 in advance, and based on the corresponding relationship, the priority information of the first message may be obtained based on the incoming VLAN information/VXLAN identifier of the first message, which is not described in detail herein.
For the second mode, the priority information may be divided based on the message type information. For example, when there are packets with different packet type information, such as a service packet, a management packet, and a storage packet, at the same time, the Leaf node 1 may configure different priority information for the packets with different packet type information, and if the priority of the management packet should be greater than the priority of the service packet and the priority of the service packet should be greater than the priority of the storage packet, it may configure priority 3 for the management packet, priority 2 for the service packet, and priority for the storage packet. Based on this, the corresponding relation between the management message and the priority 3, the corresponding relation between the service message and the priority 2, and the corresponding relation between the storage message and the priority 1 can be recorded in the priority information table of the Leaf node 1, wherein the priority 3 is greater than the priority 2, and the priority 2 is greater than the priority 1. When receiving the first message, the Leaf node 1 may determine that the priority information of the first message is priority 3 by querying the priority information table if the first message is a management message.
And aiming at the third mode, the priority information can be divided based on the message type information. For example, when there are packets with different packet type information, such as a service packet, a management packet, and a storage packet, at the same time, the Leaf node 1 may configure different priority information for the packets with different packet type information, and if the priority of the management packet should be greater than the priority of the service packet and the priority of the service packet should be greater than the priority of the storage packet, it may configure priority 3 for the management packet, priority 2 for the service packet, and priority for the storage packet. Based on this, the corresponding relation between the management message and the priority 3, the corresponding relation between the service message and the priority 2, and the corresponding relation between the storage message and the priority 1 can be recorded in the priority information table of the Leaf node 1, wherein the priority 3 is greater than the priority 2, and the priority 2 is greater than the priority 1. When receiving the first message, the Leaf node 1 may determine that the priority information of the first message is priority 3 by querying the priority information table if the first message is a management message. Further, the Leaf node 1 may obtain the incoming VLAN information of the first packet, and add the currently obtained incoming VLAN information to the correspondence between the management packet and the priority 3 in the priority information table. When a first message is subsequently received, the priority information table can be directly inquired based on the incoming VLAN information of the first message, so that the priority 3 corresponding to the incoming VLAN information of the first message is obtained.
Step 202, the flow classification node encapsulates the tunnel header containing the service chain information for the first packet, and adds the priority information of the first packet in the field corresponding to the service chain information of the tunnel header to obtain the second packet encapsulated with the tunnel header, wherein the tunnel header may include a VXLAN tunnel header.
For example, after receiving a first message from the virtual machine 1 configured on the host 1, and before sending the first message to the Spine node, the Leaf node 1 performs VXLAN encapsulation on the first message, and encapsulates a VXLAN tunnel header including service chain information on the first message, because the Spine node and the Leaf node are connected through a VXLAN network. On this basis, in the embodiment of the present invention, the Leaf node 1 adds the priority information of the first packet to the field corresponding to the service chain information of the VXLAN tunnel header, and obtains the second packet encapsulated with the VXLAN tunnel header.
With the rapid development of internet technology, a large number of hosts may exist in an enterprise to access network resources, which may not be secure, if the hosts access unsecure network resources, a potential safety hazard may be caused to an internal network of the enterprise, in order to avoid accessing unsecure network resources, it is generally necessary to send a message from the hosts to a service device (such as a firewall device, an IPS (Intrusion Prevention System) device, and the like) to perform security check, if the security check passes, the message is allowed to access the network resources, otherwise, the message accessing the unsecure network resources is discarded. Based on this, the flow classification node may obtain service chain information corresponding to the first packet, and for example, when the first packet needs to sequentially pass through the firewall device and the IPS device, the service chain information may be an IP address of the firewall device and an IP address of the IPS device.
As shown in fig. 3, the VXLAN tunnel header encapsulated by the flow classification node as the first packet is shown, where the VXLAN tunnel header includes two reserved fields, and the two reserved fields may be used as fields corresponding to service chain information, where the fields corresponding to the service chain information are used to carry service chain information (e.g., an IP address of a firewall device and an IP address of an IPs device). On this basis, in the embodiment of the present invention, the stream classification node adds both the priority information of the first packet and the service chain information corresponding to the first packet to the field corresponding to the service chain information of the VXLAN tunnel header. For example, the flow classification node adds the service chain information corresponding to the first packet to the first reserved field (24-bit reserved field) of the VXLAN tunnel header and adds the priority information of the first packet to the second reserved field (8-bit reserved field) of the VXLAN tunnel header.
In the process that the flow classification node adds the priority information of the first packet to the second reserved field of the VXLAN tunnel header, since 3 bits can support the priority information, the flow classification node can use the first 3 bits of the second reserved field of the VXLAN tunnel header to carry the priority information, and the flow classification node adds the priority information of the first packet to the first 3 bits of the second reserved field of the VXLAN tunnel header. Wherein the priority information may be stored in binary form in the first 3 bits of the second reserved field.
Step 203, the flow classification node sends the second message by using the obtained priority information, so that the node receiving the second message sends the second message by using the priority information carried in the tunnel header.
In the embodiment of the present invention, the flow classification node sends the second packet by using the obtained priority information, so that the process of sending the second packet by using the priority information carried in the tunnel header by the node receiving the second packet may include, but is not limited to, the following manners: the flow classification node sends a second message which comprises a field corresponding to the service chain information in the tunnel header by using the priority information, so that the node receiving the second message sends the second message by using the priority information carried in the field corresponding to the service chain information of the tunnel header when the node does not need to modify the service chain information, copies the priority information carried in the field corresponding to the service chain information of the tunnel header into a new tunnel header when the node needs to modify the service chain information, and sends the message carrying the new tunnel header by using the priority information carried in the field corresponding to the service chain information of the tunnel header.
For example, when the Leaf node 1 transmits the second packet (i.e., the packet obtained by encapsulating the tunnel header including the field corresponding to the service chain information with the first packet) by using the priority information (i.e., the priority information of the first packet obtained in step 201), the Leaf node 1 may preferentially transmit the second packet with a higher priority. In one implementation, the Leaf node 1 allocates a queue 1 to the priority 1, schedules the second packet with the priority 1 to the queue 1 for transmission, allocates a queue 2 to the priority 2, schedules the second packet with the priority 2 to the queue 2 for transmission, allocates a queue 3 to the priority 3, and schedules the second packet with the priority 3 to the queue 3 for transmission. Further, the egress bandwidth (assumed to be 5M) corresponding to queue 3 is greater than the egress bandwidth (assumed to be 2M) corresponding to queue 2, and the egress bandwidth (assumed to be 1M) corresponding to queue 2 is greater than the egress bandwidth (assumed to be 1M) corresponding to queue 1. Based on the above manner, the second packet scheduled in the queue 3 is preferentially sent by the Leaf node 1, thereby ensuring that the high-priority packet is preferentially sent.
Assuming that the Leaf node 1 sends the second message to the Spine node 1 through the VXLAN network, after receiving the second message, the Spine node 1 does not need to modify the service chain information, and directly sends the second message by using the priority information carried in the field corresponding to the service chain information of the VXLAN tunnel header of the second message. When the Spine node 1 transmits the second packet by using the priority information carried by the VXLAN tunnel header, the priority information carried by the VXLAN tunnel header may be mapped to a local priority, for example, the priority 3 carried by the VXLAN tunnel header is mapped to a local priority 6, the priority 2 carried by the VXLAN tunnel header is mapped to a local priority 4, and the like, and the Spine node 1 may preferentially transmit the second packet with a high local priority, and the transmission mode thereof is similar to that of the Leaf node 1, and thus, details are not repeated herein.
Assuming that the Spine node 1 sends the second message to the Border node 1, after receiving the second message, the Border node 1 does not need to modify the service chain information, and can directly send the second message by using the priority information carried in the field corresponding to the service chain information of the VXLAN tunnel header of the second message. When the Border node 1 sends the second packet by using the priority information carried by the VXLAN tunnel header, the priority information carried by the VXLAN tunnel header may be mapped to a local priority, for example, the priority 3 carried by the VXLAN tunnel header is mapped to a local priority 3, the priority 2 carried by the VXLAN tunnel header is mapped to a local priority 2, and the like, and the Border node 1 will preferentially send the second packet with a high local priority, in a manner similar to that of the Leaf node 1, and will not be described herein again.
Assuming that the Border node 1 sends the second message to the firewall device, the firewall device needs to modify the service chain information after receiving the second message. The firewall device decapsulates the second message by VXLAN, removes the VXLAN tunnel header of the second message, and performs security check on the message, assuming that the message passes the security check of the firewall device, re-encapsulating the new tunnel header for the packet, copying the priority information carried in the field corresponding to the service chain information of the original tunnel header into the new tunnel header, for example, copying the priority information carried in the field corresponding to the service chain information of the new tunnel header into the field corresponding to the service chain information of the new tunnel header (the content carried in the field corresponding to the service chain information of the new tunnel header is also different from the content carried in the field corresponding to the service chain information of the original tunnel header, for example, the content carried in the field corresponding to the service chain information of the original tunnel header is the IP address of the firewall device and the IP address of the IPs device, and the content carried in the field corresponding to the service chain information of the new tunnel header is the IP address of the IPs device), and sending the message carrying the new tunnel header by using the priority information carried in the field corresponding to the service chain information of the original tunnel header. When the firewall device sends a packet by using the priority information carried by the original tunnel header, the priority information carried by the original tunnel header may be mapped to a local priority, for example, mapping priority 3 carried by the original tunnel header to local priority 3, mapping priority 2 carried by the original tunnel header to local priority 2, and the like, and the firewall device may preferentially send the packet with the high local priority in a manner similar to that of the Leaf node 1, which is not described herein again.
Assuming that the firewall device sends the message to the IPS device, the IPS device needs to modify the service chain information after receiving the message. The IPS device decapsulates the message, removes the tunnel header of the message, and performs security check on the message, assuming that the message passes the security check of the IPS device, re-encapsulating the new tunnel header for the packet, copying the priority information carried in the field corresponding to the service chain information of the original tunnel header into the new tunnel header, for example, the field corresponding to the service chain information copied into the new tunnel header (the content carried in the field corresponding to the service chain information of the new tunnel header is also different from the content carried in the field corresponding to the service chain information of the original tunnel header, for example, the content carried in the field corresponding to the service chain information of the original tunnel header is the IP address of the IPS device, and the content carried in the field corresponding to the service chain information of the new tunnel header no longer includes the IP address of the service device), and sending the message carrying the new tunnel header by using the priority information carried in the field corresponding to the service chain information of the original tunnel header. When the IPS device sends a packet by using the priority information carried by the original tunnel header, the priority information carried by the original tunnel header may be mapped to a local priority, for example, mapping priority 3 carried by the original tunnel header to local priority 3, mapping priority 2 carried by the original tunnel header to local priority 2, and so on, the IPS device may preferentially send a packet with a high local priority, and the sending method of the IPS device is similar to that of the Leaf node 1, and is not described herein again.
Based on the above processing, the message from the virtual machine can be finally sent to the destination device.
Based on the technical scheme, in the embodiment of the invention, the priority information is added in the field corresponding to the service chain information of the tunnel head, so that each node can send the message according to the priority information carried in the field corresponding to the service chain information of the tunnel head, and when each node cannot forward the message based on the priority of the DSCP field, QoS can be realized, the QoS realization problem in an Overlay network is solved, the networking requirement of the Overlay network is adapted, and the user experience is ensured.
Based on the same inventive concept as the method, the embodiment of the present invention provides a QoS implementation apparatus, which is applied to a flow classification node. The QoS implementation apparatus may be implemented by software, or may be implemented by hardware or a combination of hardware and software. Taking a software implementation as an example, as a logical device, the device is formed by reading a corresponding computer program instruction in a nonvolatile memory through a processor of a flow classification node where the device is located. From a hardware aspect, as shown in fig. 4, a hardware structure diagram of a flow classification node where a QoS implementation apparatus according to the present invention is located is shown, where the flow classification node may include other hardware, such as a forwarding chip, a network interface, and a memory, which are responsible for processing a packet, in addition to the processor and the nonvolatile memory shown in fig. 4; in terms of hardware structure, the flow classification node may also be a distributed device, and may include a plurality of interface cards, so as to perform extension of message processing at a hardware level.
As shown in fig. 5, the structure of the QoS implementing apparatus proposed by the present invention is a structure of a QoS implementing apparatus, where the QoS implementing apparatus is applied to a flow classification node, and the QoS implementing apparatus includes:
an obtaining module 11, configured to obtain feature information of a first packet when the first packet is received, and obtain priority information of the first packet by using the feature information of the first packet;
a processing module 12, configured to encapsulate a tunnel header including service chain information for the first packet, and add the priority information to a field corresponding to the service chain information of the tunnel header to obtain a second packet;
a sending module 13, configured to send the second packet by using the priority information, so that a node receiving the second packet sends the second packet by using the priority information carried in a tunnel header.
The obtaining module 11 is configured to, in a process of obtaining the priority information of the first packet by using the feature information of the first packet, query a pre-configured priority information table by using the feature information of the first packet, so as to obtain priority information corresponding to the feature information of the first packet; the priority information table is used for recording the corresponding relation between the characteristic information and the priority information; the characteristic information of the first message comprises message type information and message identification information of the first message;
wherein, the message identification information includes one or any combination of the following: address information, ingress port information, ingress VLAN information, and extensible VLAN ID; the address information comprises one or any combination of the following: source IP address, destination IP address, source media access control MAC address, destination MAC address, protocol type information, source port identification, destination port identification.
The message type information comprises a service message, a management message and a storage message.
The obtaining module 11 is configured to, in a process of querying a pre-configured priority information table by using the feature information of the first packet, pre-configure a corresponding relationship between packet identification information and priority information in the priority information table; after the message identification information of the first message is obtained, inquiring a pre-configured priority information table by using the message identification information of the first message; or,
the corresponding relation between the message type information and the priority information is pre-configured in the priority information table; after the message type information of the first message is obtained, inquiring a pre-configured priority information table by using the message type information of the first message; or,
the corresponding relation between the message type information and the priority information is pre-configured in the priority information table; after receiving a first message, judging whether the message identification information of the first message is recorded in the priority information table; if not, after the message type information of the first message is obtained, inquiring a pre-configured priority information table by using the message type information of the first message, and recording the message identification information of the first message in the priority information table; if so, after the message identification information of the first message is obtained, a pre-configured priority information table is inquired by using the message identification information of the first message.
The sending module 13 is configured to, in a process of sending the second packet by using the priority information, so that a node receiving the second packet sends the second packet by using the priority information carried in a tunnel header, sending a second message including a field corresponding to the service chain information in a tunnel header by using the priority information so as to enable a node receiving the second message, when the service chain information does not need to be modified, the second message is sent by utilizing the priority information carried in the field corresponding to the service chain information of the tunnel header, when the service chain information needs to be modified, the priority information carried in the field corresponding to the service chain information of the tunnel header is copied to the new tunnel header, and sending the message carrying the new tunnel header by using the priority information carried in the field corresponding to the service chain information of the tunnel header.
In the embodiment of the present invention, the flow classification node includes a Leaf node in a Spine-Leaf network, the first packet includes a packet from a host in a layer two network where the flow classification node is located, and the tunnel header includes a VXLAN tunnel header.
The modules of the device can be integrated into a whole or can be separately deployed. The modules can be combined into one module, and can also be further split into a plurality of sub-modules.
Through the above description of the embodiments, those skilled in the art will clearly understand that the present invention may be implemented by software plus a necessary general hardware platform, and certainly may also be implemented by hardware, but in many cases, the former is a better embodiment. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute the methods according to the embodiments of the present invention. Those skilled in the art will appreciate that the drawings are merely schematic representations of one preferred embodiment and that the blocks or flow diagrams in the drawings are not necessarily required to practice the present invention.
Those skilled in the art will appreciate that the modules in the devices in the embodiments may be distributed in the devices in the embodiments according to the description of the embodiments, and may be correspondingly changed in one or more devices different from the embodiments. The modules of the above embodiments may be combined into one module, or further split into multiple sub-modules. The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
The above disclosure is only for a few specific embodiments of the present invention, but the present invention is not limited thereto, and any variations that can be made by those skilled in the art are intended to fall within the scope of the present invention.

Claims (10)

1. A method for implementing quality of service (QoS), the method comprising:
when a flow classification node receives a first message, acquiring characteristic information of the first message, and acquiring priority information of the first message by using the characteristic information of the first message;
the flow classification node packages a tunnel head containing service chain information for the first message, and adds the priority information in a field corresponding to the service chain information of the tunnel head to obtain a second message;
the flow classification node sends the second message by using the priority information, so that the node receiving the second message sends the second message by using the priority information carried in the tunnel header;
the process of the flow classification node obtaining the priority information of the first packet by using the characteristic information of the first packet includes: the flow classification node queries a pre-configured priority information table by using the characteristic information of the first message to obtain priority information corresponding to the characteristic information of the first message; the priority information table is used for recording the corresponding relation between the characteristic information and the priority information; the characteristic information of the first message comprises message type information and message identification information of the first message;
the message type information comprises a service message, a management message and a storage message.
2. The method of claim 1,
the message identification information includes one or any combination of the following: address information, ingress port information, ingress VLAN information, and extensible VLAN ID; the address information comprises one or any combination of the following: source IP address, destination IP address, source media access control MAC address, destination MAC address, protocol type information, source port identification, destination port identification.
3. The method according to claim 2, wherein the process of the flow classification node querying a pre-configured priority information table by using the characteristic information of the first packet includes:
the flow classification node pre-configures the corresponding relation between message identification information and priority information in the priority information table; after the stream classification node obtains the message identification information of the first message, inquiring a pre-configured priority information table by using the message identification information of the first message; or,
the flow classification node pre-configures the corresponding relation between the message type information and the priority information in the priority information table; after the stream classification node obtains the message type information of the first message, inquiring a pre-configured priority information table by using the message type information of the first message; or,
the flow classification node pre-configures the corresponding relation between the message type information and the priority information in the priority information table; after receiving a first message, the stream classification node judges whether message identification information of the first message is recorded in the priority information table; if not, after obtaining the message type information of the first message, the stream classification node queries a pre-configured priority information table by using the message type information of the first message, and records the message identification information of the first message in the priority information table; if so, after obtaining the message identification information of the first message, the stream classification node queries a pre-configured priority information table by using the message identification information of the first message.
4. The method according to claim 1, wherein the process of the flow classification node sending the second packet by using the priority information, so that the node receiving the second packet sends the second packet by using the priority information carried in a tunnel header includes:
the flow classification node sends a second message which comprises a field corresponding to the service chain information in the tunnel header by using the priority information so that the node receiving the second message sends the second message by using the priority information carried in the field corresponding to the service chain information of the tunnel header when the node does not need to modify the service chain information, copies the priority information carried in the field corresponding to the service chain information of the tunnel header into a new tunnel header when the node needs to modify the service chain information, and sends the message carrying the new tunnel header by using the priority information carried in the field corresponding to the service chain information of the tunnel header.
5. The method according to any of claims 1-4, wherein the flow classification node comprises a Leaf node in a Spine-Leaf network, wherein the first packet comprises a packet from a host in a layer two network in which the flow classification node is located, and wherein the tunnel header comprises a VXLAN tunnel header.
6. An apparatus for implementing QoS, wherein the apparatus for implementing QoS is applied to a flow classification node, and the apparatus for implementing QoS comprises:
the device comprises an obtaining module, a priority module and a sending module, wherein the obtaining module is used for obtaining the characteristic information of a first message when the first message is received and obtaining the priority information of the first message by utilizing the characteristic information of the first message;
a processing module, configured to encapsulate a tunnel header including service chain information for the first packet, and add the priority information to a field corresponding to the service chain information of the tunnel header to obtain a second packet;
a sending module, configured to send the second packet by using the priority information, so that a node receiving the second packet sends the second packet by using the priority information carried in a tunnel header;
the obtaining module is configured to, in a process of obtaining priority information of the first packet by using the feature information of the first packet, query a pre-configured priority information table by using the feature information of the first packet, and obtain priority information corresponding to the feature information of the first packet; the priority information table is used for recording the corresponding relation between the characteristic information and the priority information; the characteristic information of the first message comprises message type information and message identification information of the first message;
the message type information comprises a service message, a management message and a storage message.
7. The apparatus of claim 6,
the message identification information includes one or any combination of the following: address information, ingress port information, ingress VLAN information, and extensible VLAN ID; the address information comprises one or any combination of the following: source IP address, destination IP address, source media access control MAC address, destination MAC address, protocol type information, source port identification, destination port identification.
8. The apparatus of claim 7,
the obtaining module is configured to, in the process of querying a pre-configured priority information table by using the feature information of the first packet, pre-configure a corresponding relationship between packet identification information and priority information in the priority information table; after the message identification information of the first message is obtained, inquiring a pre-configured priority information table by using the message identification information of the first message; or,
the corresponding relation between the message type information and the priority information is pre-configured in the priority information table; after the message type information of the first message is obtained, inquiring a pre-configured priority information table by using the message type information of the first message; or,
the corresponding relation between the message type information and the priority information is pre-configured in the priority information table; after receiving a first message, judging whether the message identification information of the first message is recorded in the priority information table; if not, after the message type information of the first message is obtained, inquiring a pre-configured priority information table by using the message type information of the first message, and recording the message identification information of the first message in the priority information table; if so, after the message identification information of the first message is obtained, a pre-configured priority information table is inquired by using the message identification information of the first message.
9. The apparatus of claim 6,
the sending module is configured to send the second packet by using the priority information so that a node receiving the second packet sends the second packet including a field corresponding to service chain information in a tunnel header by using the priority information in a process of sending the second packet by using the priority information carried in the tunnel header, so that the node receiving the second packet sends the second packet by using the priority information carried in the field corresponding to the service chain information of the tunnel header when the node does not need to modify the service chain information, copies the priority information carried in the field corresponding to the service chain information of the tunnel header to a new tunnel header when the node needs to modify the service chain information, and sends the packet carrying the new tunnel header by using the priority information carried in the field corresponding to the service chain information of the tunnel header.
10. The apparatus according to any of claims 6-9, wherein the flow classification node comprises a Leaf node in a Spine-Leaf network, wherein the first packet comprises a packet from a host in a layer two network in which the flow classification node is located, and wherein the tunnel header comprises a VXLAN tunnel header.
CN201510713861.9A 2015-10-28 2015-10-28 A kind of implementation method and device of QoS Active CN105591971B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510713861.9A CN105591971B (en) 2015-10-28 2015-10-28 A kind of implementation method and device of QoS

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510713861.9A CN105591971B (en) 2015-10-28 2015-10-28 A kind of implementation method and device of QoS

Publications (2)

Publication Number Publication Date
CN105591971A CN105591971A (en) 2016-05-18
CN105591971B true CN105591971B (en) 2019-06-07

Family

ID=55931203

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510713861.9A Active CN105591971B (en) 2015-10-28 2015-10-28 A kind of implementation method and device of QoS

Country Status (1)

Country Link
CN (1) CN105591971B (en)

Families Citing this family (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106878202B (en) * 2016-12-09 2021-07-30 新华三技术有限公司 Message processing method and device
CN107819697B (en) * 2017-11-27 2020-03-27 锐捷网络股份有限公司 Data transmission method, switch and data center
CN109981472A (en) * 2017-12-27 2019-07-05 中移(杭州)信息技术有限公司 A kind of message encapsulating method, retransmission method, relevant apparatus, equipment and medium
CN110557343A (en) * 2018-05-31 2019-12-10 中国电信股份有限公司 SFC service data forwarding method and SFC network system
CN110868357B (en) * 2018-08-27 2024-09-13 南京中兴新软件有限责任公司 Network flow control method, VTEP device and storage medium
CN111371690A (en) * 2020-02-24 2020-07-03 迈普通信技术股份有限公司 Flow regulation and control method and device, network equipment and computer readable storage medium
CN111817942A (en) * 2020-07-13 2020-10-23 中国联合网络通信集团有限公司 QoS realization method, system, equipment and storage medium
CN112422430B (en) * 2020-11-27 2022-05-17 迈普通信技术股份有限公司 QoS queue scheduling method and device, electronic equipment and storage medium
CN112838974B (en) * 2020-12-29 2022-07-12 新华三技术有限公司 Service chain drainage system and method
CN114006867B (en) * 2021-09-29 2023-08-29 苏州浪潮智能科技有限公司 Message transmission priority control method, system, device and storage medium
CN115865459B (en) * 2022-11-25 2023-06-27 南京信息工程大学 Network traffic anomaly detection method and system based on secondary feature extraction
CN115987912B (en) * 2022-12-21 2024-08-20 迈普通信技术股份有限公司 Message forwarding control method, device, equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101471861A (en) * 2007-12-27 2009-07-01 华为技术有限公司 Method and apparatus for improving service quality of peer-to-peer superpose network as well as peer-to-peer node
CN104104620A (en) * 2013-04-15 2014-10-15 国际商业机器公司 Virtual enhanced transmission selection (VETS) for lossless ethernet
CN104168223A (en) * 2013-04-19 2014-11-26 国际商业机器公司 Method and system for determining the priority of groups
CN104468384A (en) * 2014-12-22 2015-03-25 武汉绿色网络信息服务有限责任公司 System and method for achieving multi-service priorities
CN104486246A (en) * 2014-12-23 2015-04-01 上海斐讯数据通信技术有限公司 SDN (software defined networking) architecture based method for realizing QoS (quality of service) mechanism of VXLAN (virtual extensible LAN)

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101471861A (en) * 2007-12-27 2009-07-01 华为技术有限公司 Method and apparatus for improving service quality of peer-to-peer superpose network as well as peer-to-peer node
CN104104620A (en) * 2013-04-15 2014-10-15 国际商业机器公司 Virtual enhanced transmission selection (VETS) for lossless ethernet
CN104168223A (en) * 2013-04-19 2014-11-26 国际商业机器公司 Method and system for determining the priority of groups
CN104468384A (en) * 2014-12-22 2015-03-25 武汉绿色网络信息服务有限责任公司 System and method for achieving multi-service priorities
CN104486246A (en) * 2014-12-23 2015-04-01 上海斐讯数据通信技术有限公司 SDN (software defined networking) architecture based method for realizing QoS (quality of service) mechanism of VXLAN (virtual extensible LAN)

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
Enforcing Network-Wide Policies in the Presence of Dynamic Middlebox Actions using FlowTags;Seyed Kaveh Fayazbakhsh;《Proceedings of the 11th USENIX Symposium on Networked Systems Design and Implementation (NSDI "14)》;20140404;正文第1、3.1-3.2、5.3节,图5、6、7 *
Service Chain Header draft-zhang-sfc-sch-03;H.Zhang,L.Fourie;《IETF》;20141223;全文 *

Also Published As

Publication number Publication date
CN105591971A (en) 2016-05-18

Similar Documents

Publication Publication Date Title
CN105591971B (en) A kind of implementation method and device of QoS
US11792046B2 (en) Method for generating forwarding information, controller, and service forwarding entity
WO2021207922A1 (en) Packet transmission method, device, and system
US10757231B2 (en) Providing network efficiencies in forwarding packets among provider networks and applying segment routing policies
US10237230B2 (en) Method and system for inspecting network traffic between end points of a zone
US20190132251A1 (en) Method and system for supporting multiple qos flows for unstructured pdu sessions
US9130774B2 (en) Data mirroring in a service
CN103401773B (en) Method and network equipment realizing interboard communication
CN113326228B (en) Message forwarding method, device and equipment based on remote direct data storage
WO2018028590A1 (en) Packet transmission
WO2019033920A1 (en) Method and device enabling network side to identify and control remote user equipment
WO2015058698A1 (en) Data forwarding
WO2021017930A1 (en) Message forwarding
WO2022001835A1 (en) Method and apparatus for sending message, and network device, system and storage medium
JP2023523048A (en) Packet processing method and related device
EP3968733A1 (en) Priority channels for distributed broadband network gateway control packets
US20230336377A1 (en) Packet forwarding method and apparatus, and network system
JP2016508682A (en) Method and arrangement for differentiating VPN traffic across domains by QOS
WO2021244356A1 (en) Data transmission method and apparatus
CN108064441B (en) Method and system for accelerating network transmission optimization
EP3503484B1 (en) Message transmission methods and devices
WO2024067338A1 (en) Cloud networking system, secure access method, and device and storage medium
WO2023116355A1 (en) Communication method and apparatus, and related devices and storage medium
WO2023040782A1 (en) Message processing method and system, and device and storage medium
US10284426B2 (en) Method and apparatus for processing service node ability, service classifier and service controller

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 310052 Binjiang District Changhe Road, Zhejiang, China, No. 466, No.

Applicant after: Xinhua three Technology Co., Ltd.

Address before: 310052 Binjiang District Changhe Road, Zhejiang, China, No. 466, No.

Applicant before: Huasan Communication Technology Co., Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant