WO2015101066A1 - Method and node for establishing quality of service reservation - Google Patents

Method and node for establishing quality of service reservation Download PDF

Info

Publication number
WO2015101066A1
WO2015101066A1 PCT/CN2014/086343 CN2014086343W WO2015101066A1 WO 2015101066 A1 WO2015101066 A1 WO 2015101066A1 CN 2014086343 W CN2014086343 W CN 2014086343W WO 2015101066 A1 WO2015101066 A1 WO 2015101066A1
Authority
WO
WIPO (PCT)
Prior art keywords
node
domain
forwarding
header information
address
Prior art date
Application number
PCT/CN2014/086343
Other languages
French (fr)
Chinese (zh)
Inventor
梁旭东
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2015101066A1 publication Critical patent/WO2015101066A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/64Hybrid switching systems
    • H04L12/6418Hybrid transport

Definitions

  • Embodiments of the present invention relate to the field of communications, and, more particularly, to a method and a node for establishing a quality of service reservation.
  • the switching device in the network forwards the packet based on the packet information.
  • the switching device will ensure the high-priority service and discard the packets of other services that cannot be guaranteed. In this way, the switching device cannot guarantee the quality of service (QoS) of certain services.
  • the Integrated Service (IS) proposed by the Internet Engineering Task Force (IETF) is an end-to-end flow-based QoS technology that implements QoS guarantees in a resource reservation manner.
  • the Resource Reservation Protocol (RSVP) is the core signaling protocol in the IS.
  • RSVP is designed for the Internet Protocol (IP) network. RSVP packets can only be reserved along the service path on devices in the IP network. Multi-Protocol Label Switching (Multi-Protocol Label Switching) is not available. Resource reservation in the MPLS) network. In this way, the RSVP packet cannot be used to establish resource reservation for the MPLS network hop by hop. In other words, RSVP can only be applied to IP networks, but not to other network types.
  • IP Internet Protocol
  • Embodiments of the present invention provide a method and a node for establishing a quality of service reservation.
  • the first aspect provides a method for establishing a QoS reservation, where the first node obtains a first protocol packet, where the first protocol packet includes a first flow definition domain, a first quality of service QoS requirement domain, and a first a forwarding header information field, the first protocol packet is used to establish a QoS reservation for the service flow, the first forwarding header information field is used to indicate a service flow forwarding path, and the first node is defined according to the first flow a domain determining flow and a traffic classification rule, where the traffic classification rule is used for performing traffic classification on subsequent service packets to determine that the subsequent service packet belongs to the flow; Extracting the first QoS requirement information in the first QoS requirement domain; the first node generates a binding relationship, where the binding relationship is a binding relationship between the flow and the first QoS requirement information .
  • the method further includes: the first node generates a second protocol packet according to the first protocol packet, where the second protocol packet includes a second flow definition a first QoS requirement domain and a second forwarding header information field; the first node sends the second protocol packet to the second node, and the second node is configured according to the first forwarding header
  • the domain performs a lookup of the next hop node determined by the table, and the second protocol packet is used by the second node to establish a QoS reservation for the service flow, where the second flow definition domain is based on the The first flow definition domain is generated based on the first flow definition domain and the first forwarding header information domain, and the second forwarding header information domain is generated based on the first forwarding header information domain.
  • the method further includes: the first node receiving a third protocol packet, where the third protocol packet includes a second QoS requirement domain; the first node extracts second QoS requirement information in the second QoS requirement domain; when the first node cannot meet the second QoS requirement information, the first node sends The alarm message is used to indicate that the first node fails to establish a QoS reservation.
  • the second flow domain includes at least one of the following: a source network The range of the protocol IP address, the range of the destination IP address, the protocol identifier ID, the range of the port number, the range of the source media access control MAC address, and the range of the destination MAC address, where the second forwarding header information field includes the destination IP address; Or the second forwarding header information field includes a source IP address, a destination IP address, and a protocol ID; or the second forwarding header information field includes a source IP address, a destination IP address, a source port, a destination port, and a protocol ID; Or the second forwarding header information field includes a destination MAC address; or the second forwarding header information field includes a source IP address, a destination IP address, a source MAC address, and a destination MAC address.
  • the second flow domain further includes The MPLS label
  • the second forwarding header information field further includes the MPLS label, where the MPLS label is determined by the first node according to the first forwarding header information field and searching for a label forwarding table.
  • the second flow The definition field further includes a GRE IP header
  • the second forwarding header information field further includes the GRE IP header, where the GRE IP header is determined by the first node according to the first forwarding header information field, and a routing table is searched. of.
  • the second flow domain is further Including a MAC in MAC header
  • the second forwarding header information field further includes the MAC in MAC header, where the MAC in MAC header is the first node, according to the first forwarding header information field, searching for a first MAC forwarding Published by the confirmed.
  • the second The flow domain further includes a VXLAN header
  • the second forwarding header information field further includes the VXLAN header
  • the VXLAN header is configured by the first node to search for a second MAC forwarding table according to the first forwarding header information field.
  • the first protocol packet further includes a queue ID and a layering level, the queue ID and the layering level And configured to establish a hierarchical queue for the service flow, and further perform scheduling deployment for the hierarchical queue.
  • the first protocol packet further includes an information domain, where the information domain includes monitoring information for establishing a QoS reservation.
  • the method further includes: when no service uses the binding relationship within a preset time period, the first node Delete the binding relationship.
  • the second aspect provides a method for establishing a QoS reservation, where the method includes: a first node generates a binding relationship and a protocol packet, where the binding relationship is a binding relationship between the flow and the QoS requirement information, where The protocol packet includes a flow definition domain, a QoS quality requirement domain, and a forwarding header information domain, where the protocol packet is used to establish a QoS reservation for the service flow, and the flow definition domain is used to indicate the flow of the service flow.
  • the QoS requirement field is used to indicate the QoS requirement information
  • the forwarding header information field is used to indicate a service flow forwarding path; the first node sends the protocol packet to the first according to the forwarding header information field.
  • a second node where the second node is a next hop node indicated by the forwarding header information field.
  • the first node in a first possible implementation manner, the first node generates a protocol packet, where the first node receives at least one first protocol packet, and the first node is configured according to a convergence policy. And combining the at least one first protocol packet to generate the protocol packet.
  • the flow definition domain includes at least one of the following: a source network protocol IP address range, a destination IP address
  • the forwarding header information field includes the destination IP address; or the forwarding header information field includes the source IP address.
  • the forwarding header information field includes a source IP address, a destination IP address, a source port, a destination port, and a protocol ID; or the forwarding header information field includes a destination MAC address; or the forwarding header
  • the information domain includes a source IP address, a destination IP address, a source MAC address, and a destination MAC address.
  • the flow definition domain further includes an MPLS label.
  • the forwarding header information field further includes the MPLS label.
  • the flow definition domain further includes The GRE IP header
  • the forwarding header information field further includes the GRE IP header
  • the flow definition domain further includes a MAC in MAC Header
  • the forwarding header information field further includes the MAC in MAC header.
  • the forwarding header information field further includes the VXLAN header.
  • the protocol packet further includes a queue ID and a layering level, where the queue ID and the layering level are used.
  • a hierarchical queue is established for the service flow, and the hierarchical queue is further scheduled for deployment.
  • the protocol packet further includes an information domain, where the information domain includes monitoring information for establishing a QoS reservation.
  • the method further includes: when no service uses the binding relationship within a preset time period, the first node Delete the binding relationship.
  • a third aspect provides a node, including: an acquiring unit, configured to acquire a first protocol packet, where the first protocol packet includes a first flow definition domain, a first quality of service QoS requirement domain, and first forwarding header information.
  • the first protocol packet is used to establish a QoS reservation for the service flow
  • the first forwarding header information field is used to indicate a service flow forwarding path
  • the determining unit is configured to obtain, according to the acquiring unit, the first The first flow domain in a protocol packet determines a flow and a traffic classification rule, where the traffic classification rule is used to perform traffic classification on the subsequent service packet to determine that the subsequent service packet belongs to the flow
  • the first generating unit is configured to generate a binding relationship, where the binding The relationship is a binding relationship between the flow determined by the determining unit and the first QoS requirement information extracted by the extracting unit.
  • the method further includes: a second generating unit, configured to generate a second protocol packet according to the first protocol packet acquired by the acquiring unit, where the second The protocol packet includes a second flow definition domain, the first QoS requirement domain, and a second forwarding header information domain, and a sending unit, configured to send the second protocol packet to another node, where the other node is Determining, by the second forwarding header, the next hop node determined by the first forwarding header information field, where the second protocol packet is used by the second node to establish a QoS reservation for the service flow, where the The second flow definition domain is generated based on the first flow definition domain or based on the first flow definition domain and the first forwarding header information domain, and the second forwarding header information domain is based on the first forwarding header information. Domain generated.
  • the acquiring unit is further configured to receive a third protocol packet, where the third protocol packet includes a second QoS requirement domain;
  • the extracting unit is further configured to extract second QoS requirement information in the second QoS requirement domain in the third protocol packet obtained by the acquiring unit; And when the node cannot meet the second QoS requirement information extracted by the extracting unit, sending an alarm message, where the alarm message is used to indicate that the node fails to establish a QoS reservation.
  • the second flow domain includes at least one of the following: a source network The range of the protocol IP address, the range of the destination IP address, the protocol identifier ID, the range of the port number, the range of the source media access control MAC address, and the range of the destination MAC address, where the second forwarding header information field includes the destination IP address; Or the second forwarding header information field includes a source IP address, a destination IP address, and a protocol ID; or the second forwarding header information field includes a source IP address, a destination IP address, a source port, a destination port, and a protocol ID; Or the second forwarding header information field includes a destination MAC address; or the second forwarding header information field includes a source IP address, a destination IP address, a source MAC address, and a destination MAC address.
  • the second flow domain further includes The MPLS label
  • the second forwarding header information field further includes the MPLS label, where the MPLS label is determined by the first node according to the first forwarding header information field and searching for a label forwarding table.
  • the second flow The definition domain also includes The GRE IP header
  • the second forwarding header information field further includes the GRE IP header, where the GRE IP header is determined by the first node according to the first forwarding header information field and searching for a routing table.
  • the second flow domain is further Including a MAC in MAC header
  • the second forwarding header information field further includes the MAC in MAC header, where the MAC in MAC header is the first node, according to the first forwarding header information field, searching for a first MAC forwarding Published by the confirmed.
  • the second The flow domain further includes a VXLAN header
  • the second forwarding header information field further includes the VXLAN header
  • the VXLAN header is configured by the first node to search for a second MAC forwarding table according to the first forwarding header information field.
  • the first protocol packet further includes a queue ID and a layering level, the queue ID and the layering level And configured to establish a hierarchical queue for the service flow, and further perform scheduling deployment for the hierarchical queue.
  • the first protocol packet further includes an information domain, where the information domain includes monitoring information for establishing a QoS reservation.
  • the deleting unit is further configured to: when no service is generated by using the first generating unit in a preset time period When the binding relationship is described, the binding relationship is deleted.
  • a node including: a generating unit, configured to generate a binding relationship and a protocol packet, where the binding relationship is a binding relationship between the flow and the QoS requirement information,
  • the protocol packet includes a flow definition domain, a QoS quality requirement domain, and a forwarding header information domain, where the protocol packet is used to establish a QoS reservation for the service flow, and the flow definition domain is used to indicate the flow of the service flow.
  • the QoS requirement field is used to indicate the QoS requirement information
  • the forwarding header information field is used to indicate a service flow forwarding path
  • the sending unit is configured to: according to the forwarding header information field, the protocol generated by the generating unit The message is sent to another node, which is the next hop node indicated by the forwarding header information field.
  • the generating unit includes: a receiving subunit, configured to receive at least one first protocol packet; and a first generating subunit, configured to use, according to a convergence policy, The at least one first protocol packet is merged to generate the protocol packet, and the second generation subunit is configured to generate the binding relationship.
  • the flow definition domain includes at least one of the following: a range of a source network protocol IP address, and a destination IP address. Scope, The protocol identifier ID, the range of the port number, the range of the source media access control MAC address, and the range of the destination MAC address, where the forwarding header information field includes the destination IP address; or the forwarding header information field includes the source IP address and the destination.
  • the IP address and the protocol ID; or the forwarding header information field includes a source IP address, a destination IP address, a source port, a destination port, and a protocol ID; or the forwarding header information field includes a destination MAC address; or, the forwarding The header information field includes a source IP address, a destination IP address, a source MAC address, and a destination MAC address.
  • the flow definition domain further includes an MPLS label.
  • the forwarding header information field further includes the MPLS label.
  • the flow definition domain further includes The GRE IP header
  • the forwarding header information field further includes the GRE IP header
  • the flow definition domain further includes a MAC in MAC Header
  • the forwarding header information field further includes the MAC in MAC header.
  • the forwarding header information field further includes the VXLAN header.
  • the protocol packet further includes a queue ID and a layering level, where the queue ID and the layering level are used.
  • a hierarchical queue is established for the service flow, and the hierarchical queue is further scheduled for deployment.
  • the protocol packet further includes an information domain, where the information domain includes monitoring information for establishing a QoS reservation.
  • the deleting unit is further configured to: when no service uses the binding relationship within a preset time period, Delete the binding relationship.
  • the embodiment of the present invention determines the flow and the QoS requirement information by using the protocol packet, and further generates a binding relationship between the flow and the QoS requirement information, and can establish a QoS reservation for the service flow, and the hop-by-hop forwarding of the protocol packet can be a service.
  • the QoS reservation is established hop by hop, thereby ensuring the QoS of the service flow, and the reservation can be adapted to various network types.
  • FIG. 1 is a flow chart of a method of establishing a quality of service reservation in accordance with an embodiment of the present invention.
  • FIG. 2 is a flow chart of a method of establishing a quality of service reservation in accordance with another embodiment of the present invention.
  • FIG. 3 is a flow chart of a method of establishing a quality of service reservation in accordance with another embodiment of the present invention.
  • FIG. 4 is a block diagram of a node in accordance with one embodiment of the present invention.
  • FIG. 5 is a block diagram of a node in accordance with another embodiment of the present invention.
  • Figure 6 is a block diagram of a node in accordance with another embodiment of the present invention.
  • FIG. 7 is a block diagram of a node in accordance with another embodiment of the present invention.
  • RSVP is designed for IP and works only on IP networks.
  • the destination address of the RSVP path (PATH) message needs to be consistent with the destination address of the service flow, and the RSVP packet is sent to the router control plane to complete resource reservation by using each hop.
  • RSVP is defined in RSVP as a combination of an IP address, an agreement identifier (Identity, ID), and a port number. This definition has limitations and RSVP cannot manage and control the flow definition.
  • RSVP is a fairly complex protocol that defines the soft state of the protocol, which is maintained by a timed refresh.
  • the RSVP control plane needs to maintain a large amount of information, and periodically refresh the reserved resources in the network through the PATH and the reservation (RESerVation, RESV) messages, and the resource reservation for the timeout is also required.
  • the previous resource reservation is cleared by signaling to the end.
  • Such complicated operations consume a large amount of central processing unit (CPU) resources, which in turn makes RSVP specifications very limited. system.
  • CPU central processing unit
  • the RSVP needs to determine whether the resource reservation is successful. That is to say, the RSVP needs to reserve and confirm the bidirectional RSVP packet transmission, which causes a large overhead and consumes a large amount of CPU resources.
  • resource reservation by RSVP only considers bandwidth resources, and does not consider resources such as Committed Access Rate (CAR).
  • CAR Committed Access Rate
  • RSVP-TE Resource Reservation Protocol-Traffic Engineering
  • RSVP-TE Resource Reservation Protocol-Traffic Engineering
  • the process of establishing a resource reservation with RSVP-TE is coupled with the process of establishing a traffic flow forwarding path. In this way, the time sequence of the resource reservation and the deployment of the service flow forwarding path is inflexible, and the requirements for the establishment of the service flow forwarding path are also increased. As a result, different service flows need different forwarding labels. Resource reservation based on the stream.
  • FIG. 1 is a flow chart of a method of establishing a quality of service reservation in accordance with an embodiment of the present invention. The method shown in FIG. 1 is performed after the service flow forwarding path is established, and the method includes:
  • the first node obtains a first protocol packet, where the first protocol packet includes a first flow definition domain, a first QoS requirement domain, and a first forwarding header information domain, where the first protocol packet is used to establish a QoS for the service flow. Reserved, the first forwarding header information field is used to indicate a service flow forwarding path.
  • the first node determines, according to the first flow domain, a flow and a traffic classification rule, where the traffic classification rule is used to perform traffic classification on the subsequent service packet to determine that the subsequent service packet belongs to the flow.
  • the first node extracts first QoS requirement information in the first QoS requirement domain.
  • the first node generates a binding relationship, where the binding relationship is a binding relationship between the flow and the first QoS requirement information.
  • the embodiment of the present invention determines the flow and the QoS requirement information by using the protocol packet, and further generates a binding relationship between the flow and the QoS requirement information, and can establish a QoS reservation for the service flow, and the hop-by-hop forwarding of the protocol packet can be a service.
  • the QoS reservation is established hop by hop, thereby ensuring the QoS of the service flow, and the reservation can be adapted to various network types.
  • establishing a QoS reservation not only establishes a resource reservation of a bandwidth resource, but also establishes a reservation of a resource such as a CAR.
  • reservations of resources such as bandwidth resources and CARs are collectively referred to as QoS reservations.
  • the process of establishing the QoS reservation is performed after the service flow forwarding path is established, so that complete decoupling between the service quality reservation establishment of the service flow and the establishment of the service flow forwarding path is implemented. That is to say, in the process of establishing a service flow forwarding path, there is no process of establishing a service quality resource at the same time. That After the service flow forwarding path is established, normal service flow forwarding can be performed. However, since the service quality reservation is not established, the established service flow forwarding path does not necessarily guarantee the service quality of the service flow.
  • the QoS reservation is established hop by hop.
  • Each hop of the service flow forwarding path may be referred to as a node.
  • the node may be a forwarding device, for example, may be a switch, or may be a router, or a device with a switching function, or a device with a routing function.
  • the node may be a Provider Edge (PE) device in the network, or may be a Provider (P) device, or may be a Customer Edge (CE) device, in the embodiment of the present invention. This is not limited.
  • PE Provider Edge
  • P Provider
  • CE Customer Edge
  • the first node in FIG. 1 may be an intermediate node in a service flow forwarding path, or may be a last node of a service flow forwarding path.
  • the first node may receive the first protocol packet from the third node, where the third node may be a previous hop node of the first node in the service flow forwarding path.
  • the first protocol packet may be generated by the third node according to the service requirement, and the first node obtains the first protocol packet from the third node.
  • the third node may be a host that initiates a service flow service quality application, or may also be a PE device that initiates a service flow service quality application.
  • the third node is the first node of the service flow forwarding path, and the first node is the next hop node of the third node. That is, the first node is the next hop node of the first node of the service flow forwarding path.
  • the first protocol packet may be in the form of a Quality of Service Reservation (QoS RESV) message. That is, the first node may receive a QoS RESV message including a first flow definition domain, a first QoS requirement domain, and a first forwarding header information domain.
  • QoS RESV Quality of Service Reservation
  • the form of the first protocol packet may also be other types of messages, which is not limited by the embodiment of the present invention.
  • the QoS RESV message may further carry an information domain.
  • the information field includes monitoring information when the first protocol packet establishes a QoS reservation.
  • the monitoring information may include one or more of whether the bandwidth reservation is completed, whether there is a queue congestion packet loss, a path information for establishing a QoS reservation, and a service flow packet statistics.
  • the QoS RESV message may further include a plurality of optional domains, where the multiple optional domains are available for the indication information related to the first protocol packet. The invention is not limited thereto.
  • the number of mandatory domains in the QoS RESV message can be made smaller, which facilitates the processing of the QoS RESV message.
  • the QoS RESV message can be processed at the hardware level, such as processing the QoS RESV message directly at the forwarding plane without being sent to the control plane.
  • the transmission frequency of the QoS RESV message can be reduced, and processed by the control entity at the control plane, thereby saving resources.
  • the information domain may be carried in a quality of service information (QoS INFO) message.
  • the first node may acquire the QoS INFO message while acquiring the QoS RESV message, or the QoS INFO message may be different from the period of the QoS RESV message.
  • the information field may include monitoring information for establishing a QoS reservation for the first protocol message.
  • the monitoring information may include one or more of whether the bandwidth reservation is completed, whether there is a queue congestion packet loss, a path information for establishing a QoS reservation, and a service flow packet statistics.
  • the first protocol message exists in the form of a QoS RESV message, which may be any of the following situations:
  • the QoS RESV message may include only the first flow definition domain, the first QoS requirement domain, and the first forwarding header information domain, where the first flow definition domain, the first QoS requirement domain, and the first forwarding header information domain may be referred to as 3 Required fields; or,
  • the QoS RESV message may include a first flow definition domain, a first QoS requirement domain, a first forwarding header information domain, and an information domain, where the information domain is an optional domain; or
  • the QoS RESV message and the QoS INFO message are simultaneously used to establish a QoS reservation.
  • the QoS RESV message includes a first flow definition domain, a first QoS requirement domain, and a first forwarding header information domain, and the QoS INFO message includes an information domain.
  • the invention is not limited thereto.
  • the first flow definition domain may include the first partial first flow definition domain, where the first partial first flow definition domain may include at least one of the following: a range of the source IP address, a range of the destination IP address, a protocol ID, and a port number. The range, the range of source MAC addresses, and the range of destination MAC addresses. And, the first part of the first flow definition domain may be generated by the first node of the service flow forwarding path.
  • the first node may be a host that initiates a service flow service quality application, or may be a PE device that initiates a service flow service quality application.
  • the range of addresses may be the prefix of the address.
  • the range of the source IP address may be the prefix of the source IP address
  • the range of the destination IP address may be the prefix of the destination IP address
  • the range of the source MAC address may be the prefix of the source MAC address
  • the range of the destination MAC address may be the destination MAC address.
  • the prefix of the address may be the prefix of the address.
  • the first flow definition domain may further include a second partial first flow definition domain, where the second partial first flow definition domain may include one or more of the following: an MPLS label, a GRE IP header, a MAC in MAC header, and a virtual The Virtual Extensible Local Area Network (VXLAN) header is not limited in this embodiment of the present invention.
  • the second part of the first flow definition domain may include an MPLS label generated by the third node.
  • the MPLS label can be single layer or multiple layers.
  • the second part of the first flow definition domain may include a GRE IP header.
  • the first node receives the first protocol packet from the third node, and the third node passes The MAC tunnel forwards the first protocol packet
  • the second part of the first stream definition domain may include a MAC in MAC header.
  • the second part of the first flow definition domain may include a VXLAN header.
  • the second part of the first stream definition domain is dynamically added or modified by the node in the process of establishing the QoS reservation.
  • the embodiment of the present invention expands the scope of the stream definition, improves the classification ability of the stream definition, and can support more fields of the stream classification. And, you can manage and control the flow definition.
  • the first QoS requirement field includes the first QoS requirement information, which is used to indicate the QoS requirement of the service flow, and the first QoS requirement information may be carried in a certain format in the first protocol packet.
  • the first QoS requirement information may include a QoS queue, and the QoS queue may be one or more of the following parameters: a queue scheduling manner, a queue priority, and a bandwidth of the queue.
  • the first QoS requirement information may also include other QoS parameters, such as CAR, coloring, and setting, which are not limited by the present invention.
  • the first QoS requirement domain may be determined by the first node according to the QoS requirement information of the service flow, or may be pre-configured in the first node, which is not limited by the present invention.
  • the first node may be a host that initiates a service flow service quality application, or may also be a PE device that initiates a service flow service quality application.
  • the first forwarding header information field includes a first part of the first forwarding header information field.
  • the first part of the first forwarding header information field may include a destination IP address; or the first part of the first forwarding header information field may include a source IP address, a destination IP address, and a protocol ID; or, the first part of the first forwarding header information field may be The source IP address, the destination IP address, the source port, the destination port, and the protocol ID are included; or the first part of the first forwarding header information field may include the destination MAC address; or the first part of the first forwarding header information field may include the source IP address, Destination IP address, source MAC address, and destination MAC address.
  • the first part of the first forwarding header information field may be generated by the first node.
  • the first node may be a host that initiates a service flow service quality application, or may also be a PE device that initiates a service flow service quality application.
  • the source IP address can be the source IP address of the service flow
  • the destination IP address can be the destination IP address of the service flow
  • the source MAC address can be the source MAC address of the service flow
  • the destination MAC address can be the destination MAC address of the service flow.
  • the first part of the first forwarding header information field belongs to the category of the first part of the first stream defining domain.
  • the source IP address in the first part of the first forwarding header information field is one of the ranges belonging to the source IP address in the first part of the first stream definition domain.
  • the destination IP address in the first part of the first forwarding header information field is one of the ranges belonging to the destination IP address in the first part of the first stream definition domain.
  • the source MAC address in the first part of the first forwarding header information field is one of the ranges belonging to the source MAC address in the first part of the first stream definition domain.
  • the destination MAC address of the first part of the first forwarding header information field belongs to the destination MAC address of the first part of the first stream definition domain. One of the ranges.
  • the first forwarding header information field may further include a second part of the first forwarding header information field.
  • the second part of the first forwarding header information field may include one or more of the following: an MPLS label, a GRE IP header, a MAC in MAC header, and a VXLAN header, which are not limited in this embodiment of the present invention.
  • the second part of the first forwarding header information field may include an MPLS label generated by the third node.
  • the MPLS label can be single layer or multiple layers.
  • the second part of the first forwarding header information field may include a GRE IP header.
  • the second part of the first forwarding header information field may include a MAC in MAC header.
  • the second portion of the first forwarding header information field may include a VXLAN header.
  • the second part of the first forwarding header information field is dynamically added or modified by the node in the process of establishing the QoS reservation.
  • the first protocol packet defined in the embodiment of the present invention can be applied to various network types, such as an IP network, an MPLS network, or a hybrid network of IP and MPLS, or can also be applied to a cross-domain network.
  • the first forwarding header information field is used to guide the first protocol packet to be forwarded along the service flow forwarding path.
  • the first forwarding header information field includes the service flow forwarding path information that is consistent with the forwarding path of the service flow, and can ensure that the first protocol packet is forwarded along the service flow forwarding path, so that each node of the service flow forwarding path can be
  • the first protocol packet establishes a QoS reservation for the service flow.
  • each node may update the second part of the first forwarding header information field, and forward the updated protocol message to the next hop node in the service flow forwarding path.
  • the flow in step 102 is defined according to the first flow definition domain.
  • the flow classification rule can be used to perform traffic classification on the subsequent service packets to determine that the subsequent service packets belong to the flow.
  • the same stream has the same QoS processing.
  • the flow classification rule is generated by the first node according to the first flow definition domain.
  • the first node may perform traffic classification on the subsequent service packet according to the traffic classification rule, and determine the subsequent service report. Whether the text belongs to the stream.
  • the same QoS processing procedure corresponding to the flow can be performed.
  • the first node may determine the flow according to the first part of the first flow definition domain, and may also determine the flow together with the second partial first flow definition domain and the first partial first flow definition domain, which is not limited by the present invention.
  • the first node may define a range of IP addresses and/or a range of MAC addresses according to the first flow. Determine the flow.
  • the first node may also determine the flow together with the range of the IP address in the first flow definition domain, together with the MPLS label, and the like. This embodiment of the present invention does not limit this.
  • the other information mentioned herein may be an MPLS label, or may be a GRE IP header, or may be a MAC in MAC header, or may be a VXLAN header, or the like, or may be other identifiers for distinguishing different network types. This is not limited.
  • the first QoS requirement information extracted in step 103 may be a QoS queue.
  • the binding relationship is established in step 104, and the first node is considered to establish a QoS reservation for the service flow.
  • the binding relationship may be a binding relationship between the flow and the QoS queue.
  • the first node when the first node is an intermediate node of the service flow forwarding path, after the binding relationship is established, the first node generates a second protocol packet according to the first protocol packet, where the second protocol is generated.
  • the message includes a second flow definition domain, a first QoS requirement domain, and a second forwarding header information domain.
  • the first node sends the second protocol packet to the second node according to the second forwarding header information field, where the second node is the next hop node determined according to the first forwarding header information field.
  • the second flow definition domain is generated based on the first flow definition domain or based on the first flow definition domain and the first forwarding header information domain.
  • the second forwarding header information field is generated based on the first forwarding header information field.
  • the second protocol packet is used by the second node to establish a QoS reservation for the service flow according to the second protocol packet.
  • the second flow definition domain may include a first partial second flow definition domain and a second partial second flow definition domain.
  • the first part of the second stream defining domain is the same as the first part of the first stream defining domain, and the second part of the second stream defining domain is different from the second part of the first stream defining domain.
  • the second stream domain may be generated after the first node adds the second part of the second stream domain to the first stream domain. If the first flow definition domain includes the second partial first flow definition domain, the second flow definition domain may be that the first node replaces the second partial first flow domain in the first flow definition domain with the second partial second flow domain Generated.
  • the second partial second flow definition domain may include at least one of the following: an MPLS label, a GRE IP header, a MAC in MAC header, and a VXLAN header.
  • the second part of the second flow definition domain may include an MPLS label, and the MPLS label is determined by the first node according to the first forwarding header information field lookup label forwarding table.
  • the MPLS label can be single layer or multiple layers.
  • the second part of the second flow definition domain may include a GRE IP header, where the GRE IP header is the first node according to the first forwarding The header information field is determined by the routing table.
  • the second part of the second flow definition domain may include a MAC in MAC header, where the MAC in MAC header is the first node searches according to the first forwarding header information field. Determined by the first MAC forwarding table.
  • the second portion of the second flow definition domain may include a VXLAN header, where the VXLAN header is the first node searches for the second according to the first forwarding header information field. Determined by the MAC forwarding table.
  • the second forwarding header information field includes a destination IP address; or the second forwarding header information field includes a source IP address, a destination IP address, and a protocol ID; or the second forwarding header information field includes a source IP address, a destination IP address, a source port, a destination port, and a protocol ID; or the second forwarding header information field includes a destination MAC address; or the second forwarding header information field includes a source IP address and a destination IP address.
  • Source MAC address and destination MAC address is
  • the second forwarding header information field includes a first partial second forwarding header information field and a second partial second forwarding header information domain, and the first partial second forwarding header information domain is the same as the first partial first forwarding header information domain, The two-part second forwarding header information field is different from the second partial first forwarding header information field.
  • the second forwarding header information field may be that the first node adds the second part to the second forwarding header information field. Generated after forwarding the header information field. If the first forwarding header information field includes the second partial first forwarding header information field, the second forwarding header information field may be that the first node replaces the second partial first forwarding header information field in the first forwarding header information field with The second part is generated after the second forwarding header information field. The second part of the second forwarding header information field is used to indicate the next hop information of the first node.
  • the second partial second forwarding header information field may include at least one of the following: an MPLS label, a GRE IP header, a MAC in MAC header, and a VXLAN header.
  • the second part of the second forwarding header information field may include an MPLS label, and the MPLS label is determined by the first node according to the first forwarding header information field lookup label forwarding table.
  • the MPLS label can be single layer or multiple layers.
  • the second part of the second forwarding header information field may include a GRE IP header, where the GRE IP header is the first node according to the first forwarding header information field. Look up the routing table to determine.
  • the second part of the second forwarding header information field may include a MAC in MAC header, where the MAC in MAC header is the first node according to the first forwarding header information field. Find the first MAC forwarding table to determine. For example, when the first node forwards the first protocol packet through the VXLAN tunnel, the second portion of the second forwarding header information field may include a VXLAN header, where the VXLAN header is the first node searches according to the first forwarding header information field. Two MAC forwarding tables are determined.
  • the first definition is The domain includes only the first part of the first stream definition domain, and the first forwarding header information field includes only the first part of the first forwarding header information field.
  • the second stream definition domain is the same as the first stream definition domain.
  • the method shown in FIG. 1 may further include: the first node receives a third protocol packet, where the third protocol packet is used to establish a QoS reservation for the second service flow, where the third The protocol message includes a second QoS requirement field.
  • the first node extracts second QoS requirement information in the second QoS requirement domain.
  • the first node sends an alarm message, where the alarm message is used to indicate that the first node fails to establish a QoS reservation for the second service flow.
  • the first node generates a fourth protocol packet according to the third protocol packet, and sends the fourth protocol packet to the next hop node of the first node, so that the next hop node is configured according to the fourth protocol.
  • the message establishes a QoS reservation.
  • the first node may send an alarm message to the network management, and further complete the QoS reservation at the first node by performing a human intervention by the network management.
  • the network management further reduces the bandwidth of the QoS of the second service flow, etc., to establish a QoS reservation at the first node.
  • other operations may be performed by the network management system, which is not limited by the present invention.
  • the first node deletes the binding relationship.
  • a timer can be set at the first node, and the value of the timer can be pre-configured.
  • the first node may delete the binding relationship, that is, the first node. Release the established QoS reservation.
  • the corresponding QoS reservation can be used after a preset time period. freed. After that, QoS reservations can be established for other service flows, which can guarantee the resource utilization of the nodes.
  • the first protocol packet may further include a queue ID
  • the first node may allocate a layering level to the service flow according to the queue ID and the first QoS requirement information.
  • the queue ID and the hierarchization level can then be used to establish a hierarchical queue for the traffic flow and further deploy the deployment for the hierarchical queue.
  • the first protocol packet may further include a queue ID and a layering level corresponding to the queue ID.
  • the queue ID and the layering level can be used to establish a hierarchical queue for the service flow and further deploy the deployment for the hierarchical queue.
  • This hierarchical level can be used as an optional domain for QoS RESV messages.
  • the first node may establish a hierarchical relationship between the parent queue of the queue and the higher-level ancestor queue while generating the binding relationship between the flow and the queue in step 104.
  • the first node may top-down the protocol packets with the same queue ID as the hierarchical level of the first protocol packet in the multiple protocol packets. , programmed into the hierarchical queue established above. In this way, the service packet is first scheduled in the lowest-level queue, then scheduled in the parent queue, and then scheduled from the bottom up, and finally to the top-level queue for scheduling, and the multiple scheduling is completed to achieve hierarchical bandwidth allocation.
  • the bandwidth and priority of the parent queue may be carried in the protocol packet, may be the superposition of the sub-queue bandwidth, or may be configured through the node.
  • the hierarchical relationship of the queue is organized by the establishment process of the QoS reservation, that is, the combination of QoS scheduling and hierarchical scheduling is realized.
  • the scheduling deployment of the hierarchical queue is a method for deploying QoS in the network. For example, the network first allocates resources for different user groups, so that the user groups reach a certain resource ratio relationship; secondly, allocate resources or schedule relationships for different users within a user group, which can be scheduled according to priority, or It can be scheduled according to proportions, so that users within the user group can obtain resource ratios; finally, resources are allocated for different service flows of one user, and the resource ratio between different service flows is achieved.
  • This way of resource allocation is hierarchical and is achieved through a hierarchical relationship of queues.
  • the QoS reservation is established on each node of the service flow forwarding path by forwarding the protocol packet hop by hop, and an end to end (E2E) QoS reservation can be established. And in the process of establishing the reservation, there is no need to make a reservation confirmation by using an additional message, so that on the one hand, the soft state is simplified, and on the other hand, the QoS reservation of a larger E2E can be supported.
  • FIG. 2 is a flow chart of a method of establishing a quality of service reservation in accordance with another embodiment of the present invention. The method shown in FIG. 2 is performed after the service flow forwarding path is established, and the method includes:
  • the first node generates a binding relationship and a protocol packet, where the binding relationship is a binding relationship between the flow and the QoS requirement information, where the protocol packet includes a flow definition domain, a QoS requirement domain, and a forwarding header information domain.
  • the protocol packet is used to establish a QoS reservation for the service flow, where the flow definition field is used to indicate the flow of the service flow, the QoS requirement domain is used to indicate the QoS requirement information, and the forwarding header information field is used to indicate the service flow forwarding path. .
  • the first node sends the protocol packet to the second node according to the forwarding header information field, where the second node is the next hop node indicated by the forwarding header information field.
  • the embodiment of the present invention determines the flow and the QoS requirement information by using the protocol packet, and further generates a binding relationship between the flow and the QoS requirement information, and can establish a QoS reservation for the service flow, and the hop-by-hop forwarding of the protocol packet can be a service.
  • the QoS reservation is established hop by hop, thereby ensuring the QoS of the service flow, and the reservation can be adapted to various network types.
  • the first node may be a first node of the service flow forwarding path.
  • the first node may be a host that initiates a service flow service quality application, or may be a PE device that initiates a service flow service quality application.
  • the first node in step 201, the first node generates a binding relationship, and the first node is considered to establish a QoS reservation for the service flow.
  • the binding relationship is a binding relationship between the flow and the QoS requirement information.
  • the flow and the QoS requirement information may be pre-configured according to the service requirements of the service flow. This embodiment of the present invention does not limit this.
  • the first node may generate a protocol packet according to the service requirement.
  • the protocol packet includes a flow domain, a QoS requirement domain, and a forwarding header information domain.
  • the flow definition domain may include a first partial flow definition domain.
  • the first partial flow definition domain includes at least one of the following: a range of a source IP address, a range of a destination IP address, a protocol ID, a range of a port number, a range of a source MAC address, and a range of a destination MAC address.
  • the range of addresses may be the prefix of the address.
  • the range of the source IP address may be the prefix of the source IP address
  • the range of the destination IP address may be the prefix of the destination IP address
  • the range of the source MAC address may be the prefix of the source MAC address
  • the range of the destination MAC address may be the destination MAC address.
  • the prefix of the address may be the prefix of the address.
  • the flow definition domain may further include a second partial flow definition domain.
  • the second partial flow definition domain may be one or more of the following: an MPLS label, a GRE IP header, a MAC in MAC header, and a VXLAN header.
  • the second partial flow definition domain may include an MPLS label.
  • the MPLS label can be single layer or multiple layers.
  • the second partial flow definition domain may include a GRE IP header.
  • the second partial flow definition domain may include a MAC in MAC header.
  • the second partial flow definition domain may include a VXLAN header.
  • the second partial flow definition domain may also be other identifiers for distinguishing different network types, which is not limited by the embodiment of the present invention.
  • the QoS requirement field includes QoS requirement information, which is used to indicate a QoS requirement of the service flow, and the QoS requirement information may be carried in a certain format in the protocol packet.
  • the QoS requirement information may include a QoS queue, and the QoS queue may be one or more of the following parameters: a queue scheduling manner, a queue priority, and a bandwidth of the queue.
  • the QoS requirement information may also include other QoS parameters, such as CAR, coloring, and setting, which are not limited by the present invention.
  • the forwarding header information field includes a destination IP address; or the forwarding header information field includes a source IP address, a destination IP address, and a protocol ID; or the forwarding header information field includes a source IP address and a destination IP address. Address, source port, destination port, and protocol ID; or, the forwarding header information field includes a destination MAC address; or, the The originating information field includes a source IP address, a destination IP address, a source MAC address, and a destination MAC address.
  • the forwarding header information field may include a first partial forwarding header information field.
  • the first part of the forwarding header information field may include a destination IP address; or the first part of the forwarding header information field may include a source IP address, a destination IP address, and a protocol ID; or the first partial forwarding header information field may include a source IP address, The destination IP address, the source port, the destination port, and the protocol ID; or the first part of the forwarding header information field may include the destination MAC address; or the first part of the forwarding header information field may include the source IP address, the destination IP address, the source MAC address, and the destination. MAC address.
  • the source IP address can be the source IP address of the service flow
  • the destination IP address can be the destination IP address of the service flow
  • the source MAC address can be the source MAC address of the service flow
  • the destination MAC address can be the destination MAC address of the service flow.
  • the forwarding header information field further includes a second part forwarding header information field.
  • the second partial forwarding header information field includes one or more of the following: an MPLS label, a GRE IP header, a MAC in MAC header, and a VXLAN header.
  • the second partial forwarding header information field may include an MPLS label.
  • the MPLS label can be single layer or multiple layers.
  • the second partial forwarding header information field may include a GRE IP header.
  • the second partial forwarding header information field may include a MAC in MAC header.
  • the second partial forwarding header information field may include a VXLAN header.
  • the second part of the forwarding header information field may also be other identifiers for distinguishing different network types, which is not limited by the present invention.
  • the protocol message may be in the form of a QoS RESV message.
  • the protocol packet may also be other types of messages, which is not limited by the disclosure.
  • the QoS RESV message may also carry an information domain.
  • the information field includes monitoring information when the protocol packet establishes a QoS reservation.
  • the monitoring information may include one or more of whether the bandwidth reservation is completed, whether there is a queue congestion packet loss, a path information for establishing a QoS reservation, and a service flow packet statistics.
  • This information field is an optional field for this QoS RESV message.
  • the QoS RESV message may further include a plurality of optional domains, where the multiple optional domains are available for the indication information related to the first protocol packet. The invention is not limited thereto.
  • the number of mandatory domains in the QoS RESV message can be made smaller, which facilitates the processing of the QoS RESV message.
  • the QoS RESV message can be processed at the hardware level, such as processing the QoS RESV message directly at the forwarding plane without being sent to the control plane.
  • the transmission frequency of the QoS RESV message can be reduced, and processed by the control entity at the control plane, thereby saving resources.
  • the information domain may be carried in a QoS INFO message, and the first node may generate the QoS INFO message while generating the QoS RESV message.
  • the information field can include The protocol packet is used to establish monitoring information for QoS reservation.
  • the monitoring information may include one or more of whether the bandwidth reservation is completed, whether there is a queue congestion packet loss, a path information for establishing a QoS reservation, and a service flow packet statistics.
  • the protocol message may be in any of the following cases in the form of a QoS RESV message:
  • the QoS RESV message may include only the flow definition domain, the QoS requirement domain, and the forwarding header information domain, and may be referred to as three mandatory domains; or
  • the QoS RESV message may include a flow definition domain, a QoS requirement domain, a forwarding header information domain, and an information domain, where the information domain is an optional domain; or
  • the QoS RESV message and the QoS INFO message are simultaneously used to establish a QoS reservation.
  • the QoS RESV message includes a flow definition domain, a QoS requirement domain, and a forwarding header information domain, and the QoS INFO message includes an information domain.
  • the invention is not limited thereto.
  • the protocol packet may further include a queue ID and a layering level corresponding to the queue ID, where the queue ID and the layering level are used to establish a hierarchical queue for the service flow, and further The hierarchical queue is scheduled for deployment. Also, this level of hierarchy can also be used as an optional domain for QoS RESV messages.
  • the first node may be an intermediate node in the service flow forwarding path.
  • the method further includes: the first node receiving the at least one first protocol packet, where each of the at least one first protocol packet includes the first flow definition domain, the first QoS The demand domain and the first forwarding header information domain.
  • At least one first protocol message may be received by the first node from different directions, and different directions may refer to different nodes.
  • the at least one first protocol message may be belonging to a different user.
  • the first node generates a protocol packet, and the first node combines the at least one first protocol packet according to the convergence policy to generate a protocol packet.
  • An aggregation policy is a policy for combining multiple protocol packets into one protocol packet.
  • the convergence policy includes a first convergence policy and a second convergence policy.
  • the first convergence policy can be used to determine that at least one first protocol packet can be aggregated.
  • the second convergence policy can be used to aggregate at least one first protocol packet into the protocol packet.
  • the second aggregation policy may include a flow definition aggregation policy, a QoS requirement aggregation policy, and a forwarding header information aggregation policy.
  • the first node determines, according to the first convergence policy, that the at least one first protocol packet can be aggregated.
  • the first aggregation policy may be that the first forwarding header information field of each first protocol packet of the at least one first protocol packet is the same.
  • each first protocol packet of the at least one first protocol packet further includes an aggregation ID field.
  • the first aggregation policy may be that the convergence ID field of each first protocol packet of the at least one first protocol packet is the same.
  • the first aggregation policy may be that the convergence ID field of each first protocol packet of the at least one first protocol packet is the same.
  • each first protocol message of the at least one first protocol message may be determined when each of the first protocol messages is generated. For example, it may be determined according to a traffic flow forwarding path or according to QoS requirements.
  • the aggregation ID field of each first protocol packet of the at least one first protocol packet may be pre-configured by the user when generating each of the first protocol packets. The invention is not limited thereto.
  • the aggregation ID field may be one of the optional domains of the QoS RESV message.
  • the first node merges the at least one first protocol packet into a protocol packet according to the second convergence policy.
  • the flow definition convergence policy is configured to enable the first node to merge each first flow definition domain of each first protocol packet in the at least one first protocol packet into a flow definition domain.
  • the QoS requirement aggregation policy is configured to enable the first node to merge each of the first QoS requirement domains of each of the at least one first protocol packet into a QoS requirement domain.
  • the forwarding header information aggregation policy is configured to enable the first node to merge each of the first forwarding header information fields of each of the at least one first protocol packet into a forwarding header information domain.
  • the flow definition aggregation policy may be a union of each first flow definition domain of each first protocol packet in the at least one first protocol packet as a flow definition domain.
  • the flow definition field may be each of the at least one first protocol message.
  • Each first stream definition field of the message may be each of the at least one first protocol message.
  • the flow definition domain may define a union of the domains for each of the first flows.
  • the flow definition aggregation policy may be to generate the flow definition domain in other manners.
  • the flow definition convergence policy may be that the first flow definition fields of the two first protocol packets of the three first protocol packets are intersected, and then the third first protocol of the three first protocol packets is obtained.
  • the first flow definition field of the packet is taken as a union, and then the flow definition domain is generated.
  • the QoS requirement aggregation policy may be: adding the bandwidth in each first QoS requirement domain of each of the at least one first protocol packet as the bandwidth information included in the QoS requirement domain.
  • the QoS requirement aggregation policy may be: setting a convergence ratio for a part of the first protocol packet in the at least one first protocol packet, where each part of the first protocol packet is in the first QoS requirement domain The bandwidth is multiplied by the convergence ratio, and is added to the bandwidth of each of the first QoS request domains in the first protocol packet except the first protocol packet in the at least one first protocol packet.
  • Bandwidth information contained in the QoS requirement domain. And the other required information except the bandwidth in each of the first QoS requirement domains is intersected as the other demand information except the bandwidth in the QoS demand domain.
  • each of the at least one first protocol packet may include a convergence ID field.
  • the convergence ratio operation is performed on the first protocol packet.
  • the convergence code can be pre-configured, and the value in the convergence ID field is compared with the convergence code.
  • the result of the AND operation is zero, it is determined that the first protocol message can perform the convergence ratio operation.
  • the first node may determine and execute the convergence ratio operation together in the process of determining whether aggregation can be performed according to the first aggregation policy, so that statistical multiplexing can be embodied.
  • the QoS requirement aggregation policy may be: weighting and summing bandwidths in each of the first QoS requirement domains of each of the at least one first protocol packet, as included in the QoS requirement domain.
  • Bandwidth information; the other pieces of demand information other than the bandwidth in each of the first QoS demand domains are intersected as other demand information except the bandwidth in the QoS demand domain.
  • the multiple service flows corresponding to the at least one first protocol packet are not concurrently concurrent, that is, the probability that all the service flows corresponding to the at least one first protocol packet reach the first node at the same time is relatively small.
  • Set a certain weight and also guarantee the QoS of each service flow. Even when one or more of the at least one first protocol packet arrives at the first node at the same time, the first node does not reach the maximum bandwidth at the same time because the multiple service flows corresponding to the at least one first protocol packet The QoS of the one or several first protocol messages can still be guaranteed.
  • At least one first protocol packet is two first protocol packets, and the bandwidth requirements of the two first protocol packets are 10M and 20M, respectively. Then, the bandwidth requirement of the QoS requirement domain of the generated protocol packet may be 30M, that is, 10M and 20M are summed.
  • the bandwidth requirement of the QoS requirement domain of the generated protocol packet may also be ⁇ (10+20)M, where ⁇ is a convergence ratio, and 0 ⁇ 1.
  • the bandwidth requirement of the QoS requirement domain of the generated protocol packet may also be ( ⁇ 10+). 20) M, where ⁇ is a convergence ratio, and 0 ⁇ ⁇ ⁇ 1.
  • the bandwidth requirement of the QoS requirement domain of the generated protocol packet may also be ( ⁇ 10+ ⁇ 20)M, where ⁇ and ⁇ are weights, and 0 ⁇ 1 and 0 ⁇ 1 . ⁇ and ⁇ are pre-configured.
  • the forwarding header information aggregation policy may be: after each first forwarding header information field of each first protocol packet in the at least one first protocol packet is reserved or replaced or partially replaced, and then generated and forwarded. Header information field.
  • the forwarding header information field may be each of the at least one first protocol packet.
  • Each of the first forwarding header information fields of the first protocol message may be each of the at least one first protocol packet.
  • each of the at least one first protocol packet is the first protocol packet.
  • the destination IP address of each of the first forwarding header information fields belongs to the same enterprise network.
  • the forwarding header information field may be generated by partially replacing each of the first forwarding header information fields of each of the at least one first protocol packet. In this manner, the aggregated protocol packet can be forwarded to the PE device of the enterprise network, and then the PE device of the enterprise network can split the aggregated protocol packet and forward it to other devices in the enterprise network.
  • the first node aggregates multiple protocol packets into one protocol packet, and only needs to establish a QoS reservation for a protocol packet after the aggregation, so as to guarantee the QoS of multiple protocol packets.
  • the resource occupation on the first node can be saved.
  • the protocol message after the aggregation belongs to a user group, that is, the aggregation improves the granularity of the stream.
  • the convergence policy may be pre-configured.
  • the aggregation policy may be recompiled in the aggregation process, which is not limited by the disclosure.
  • the first node generates a protocol packet according to the convergence policy, and the protocol packet includes a flow definition domain, a QoS requirement domain, and a forwarding header information domain.
  • the flow definition domain may include a first partial flow definition domain.
  • the first partial flow definition domain includes at least one of the following: a range of a source IP address, a range of a destination IP address, a protocol ID, a range of a port number, a range of a source MAC address, and a range of a destination MAC address.
  • the range of addresses may be the prefix of the address.
  • the range of the source IP address may be the prefix of the source IP address
  • the range of the destination IP address may be the prefix of the destination IP address
  • the range of the source MAC address may be the prefix of the source MAC address
  • the range of the destination MAC address may be the destination MAC address.
  • the prefix of the address may be the prefix of the address.
  • the flow definition domain may further include a second partial flow definition domain.
  • the second partial flow definition domain may be one or more of the following: an MPLS label, a GRE IP header, a MAC in MAC header, and a VXLAN header.
  • the second partial flow definition domain may include an MPLS label.
  • the second partial flow definition domain may include a GRE IP header.
  • the second partial flow definition domain may include a MAC in MAC header.
  • the second partial flow definition domain may include a VXLAN header.
  • the QoS requirement field includes QoS requirement information, which is used to indicate the QoS requirement of the service flow, and the QoS requirement information may be carried in a certain format in the protocol packet.
  • the QoS requirement information may include a QoS queue, and the QoS queue may be one or more of the following parameters: a queue scheduling manner, a queue priority, and a bandwidth of the queue.
  • the QoS requirement information may also include other QoS parameters, such as CAR, coloring, and setting, which are not limited by the present invention.
  • the forwarding header information field may include a first part forwarding header information field.
  • the first part of the forwarding header information field may include a destination IP address; or the first part of the forwarding header information field may include a source IP address, a destination IP address, and a protocol ID; or the first partial forwarding header information field may include a source IP address, The destination IP address, the source port, the destination port, and the protocol ID; or the first part of the forwarding header information field may include the destination MAC address; or the first part of the forwarding header information field may include the source IP address, the destination IP address, the source MAC address, and the destination. MAC address.
  • the source IP address can be the source IP address of the service flow
  • the destination IP address can be the destination IP address of the service flow
  • the source MAC address can be the source MAC address of the service flow
  • the destination MAC address can be the destination MAC address of the service flow.
  • the forwarding header information field further includes a second part forwarding header information field.
  • the second partial forwarding header information field includes one or more of the following: an MPLS label, a GRE IP header, a MAC in MAC header, and a VXLAN header.
  • the second partial forwarding header information field may include an MPLS label.
  • the second partial forwarding header information field may include a GRE IP header.
  • the second partial forwarding header information field may include a MAC in MAC header.
  • the second partial forwarding header information field may include a VXLAN header.
  • the protocol packet may further include a queue ID and a layering level, where the queue ID and the layering level are used to establish a hierarchical queue for the service flow, and further perform the hierarchical queue Schedule deployment.
  • the protocol message may be in the form of a QoS RESV message.
  • the flow definition domain, the QoS requirement domain, and the forwarding header information domain are three mandatory domains of the QoS RESV message.
  • the protocol packet may also be other types of messages, which is not limited by the disclosure.
  • the QoS RESV message may also carry an information domain.
  • the information field is an optional field for the QoS RESV message.
  • the information field includes monitoring information when the protocol packet establishes a QoS reservation.
  • the monitoring information may include one or more of whether the bandwidth reservation is completed, whether there is a queue congestion packet loss, a path information for establishing a QoS reservation, and a service flow packet statistics.
  • the QoS RESV message may further include a plurality of optional domains, where the multiple optional domains are available for the indication information related to the first protocol packet. This embodiment of the present invention does not limit this.
  • the number of mandatory domains in the QoS RESV message can be made smaller, which facilitates the processing of the QoS RESV message.
  • the QoS RESV message can be processed at the hardware level, such as processing the QoS RESV message directly at the forwarding plane without being sent to the control plane.
  • the transmission frequency of the QoS RESV message can be reduced, and processed by the control entity at the control plane, thereby saving resources.
  • the information domain may be carried in a QoS INFO message, and the first node may generate the QoS INFO message while generating the QoS RESV message.
  • the information field may include monitoring information for establishing a QoS reservation for the protocol message.
  • the monitoring information may include one or more of whether the bandwidth reservation is completed, whether there is a queue congestion packet loss, a path information for establishing a QoS reservation, and a service flow packet statistics.
  • the protocol message exists in the form of a QoS RESV message, which may be any of the following situations:
  • the QoS RESV message may include only the flow definition domain, the QoS requirement domain, and the forwarding header information domain, and may be referred to as three mandatory domains; or
  • the QoS RESV message may include a flow definition domain, a QoS requirement domain, a forwarding header information domain, and an information domain; or
  • the QoS RESV message and the QoS INFO message are simultaneously used to establish a QoS reservation.
  • the QoS RESV message includes a flow definition domain, a QoS requirement domain, and a forwarding header information domain, and the QoS INFO message includes an information domain. This embodiment of the present invention does not limit this.
  • the first node generates a binding relationship, that is, establishes a QoS reservation for the service flow.
  • step 202 the first node sends the protocol packet generated in step 201 to the second node, so that the second node can establish a QoS reservation for the service flow according to the protocol packet.
  • the first node deletes the binding relationship.
  • a timer can be set at the first node, and the value of the timer can be pre-configured.
  • the first node may delete the binding relationship, that is, the first node. Release the established QoS reservation.
  • FIG. 3 is a flow chart of a method of establishing a quality of service reservation in accordance with another embodiment of the present invention.
  • the method shown in Figure 3 includes:
  • the node 301 generates a binding relationship and a first protocol packet.
  • the binding relationship is a binding relationship between the flow and the first QoS requirement information.
  • the first protocol packet includes a first flow definition domain, a first QoS requirement domain, and a first forwarding header information domain.
  • the first protocol packet is used to establish a QoS reservation for the service flow, where the first flow definition domain is used to indicate the flow of the service flow, and the first QoS requirement domain is used to indicate the first QoS requirement information, the first forwarding
  • the header information field is used to indicate the service forwarding path.
  • the node 301 may be a host that initiates a service flow service quality application, or may also be a PE device that initiates a service flow service quality application.
  • the forwarding path of the service flow has been established before step 305, and the service flow forwarding path reaches the node 304 via the node 302 and the node 303 in sequence.
  • the node 301 generates a binding relationship, that is, establishes a QoS reservation for the service flow.
  • the purpose of the first protocol packet generated by the node 301 is to establish a QoS reservation hop by hop for the service flow. Assuming that the network in which the node 301 is located is an IP network, it is assumed that the network in which the node 302, the node 303, and the node 304 are located is an MPLS network.
  • the first flow definition domain includes a range of a source IP address, a range of a destination IP address, a protocol ID, a range of a port number, a range of a source MAC address, and a range of a destination MAC address;
  • the first QoS requirement domain includes a queue;
  • the header information field includes a source IP address, a destination IP address, a source MAC address, a destination MAC address, and a protocol ID.
  • the node 301 sends the first protocol packet to the node 302.
  • the node 301 sends the first protocol packet to the node 302 according to the first forwarding header information field.
  • the node 302 determines, according to the first flow domain, a flow and a traffic classification rule, where the traffic classification rule is used to perform traffic classification on the subsequent service packets to determine that the subsequent service packets belong to the flow.
  • Step 308 is similar to step 102 in FIG. 1. To avoid repetition, details are not described herein again.
  • the node 302 extracts first QoS requirement information in the first QoS requirement domain.
  • the first QoS requirement information may be a queue.
  • Node 302 generates a binding relationship.
  • the binding relationship is a binding relationship between the flow and the first QoS requirement information.
  • the binding relationship may be a binding relationship between the flow and the queue.
  • node 302 establishes a QoS reservation for the traffic flow.
  • the node 302 generates a second protocol packet according to the first protocol packet.
  • the second protocol packet includes a second flow definition domain, a first QoS requirement domain, and a second forwarding header information domain.
  • the second flow definition domain includes a range of the source IP address, a range of the destination IP address, a protocol ID, a range of the port number, a range of the source MAC address, a range of the destination MAC address, and the first MPLS label.
  • the second flow definition domain includes a first partial second flow definition domain and a second partial second flow definition domain, wherein the first partial second flow definition domain includes a range of a source IP address, a range of a destination IP address, a protocol ID, The range of the port number, the range of the source MAC address, and the range of the destination MAC address.
  • the second part of the second stream definition field includes the first MPLS label. It can also be understood that the second flow definition domain is generated after adding the first MPLS label on the basis of the first flow definition domain.
  • the second forwarding header information field includes a source IP address, a destination IP address, a source MAC address, a destination MAC address, a protocol ID, and a first MPLS label.
  • the second forwarding header information field includes a first part of the second forwarding header information field and a second part of the second forwarding header information field, where the first part of the second forwarding header information field includes a source IP address, a destination IP address, and a source MAC address.
  • the destination MAC address and the protocol ID, and the second part of the second forwarding header information field includes the first MPLS label.
  • the second forwarding header information field is generated after the first MPLS label is added on the basis of the first forwarding header information field.
  • the first MPLS label may be determined by the node 302 according to the first forwarding header information field and searching for the first label forwarding table stored on the node 302.
  • the node 302 sends the second protocol message to the node 303.
  • the node 302 sends the second protocol packet to the node 303 according to the second forwarding header information field.
  • the node 303 determines, according to the second flow domain, a flow and a traffic classification rule, where the traffic classification rule is used to perform traffic classification on the subsequent service packet to determine that the subsequent service packet belongs to the flow.
  • the node 303 may combine the first partial second flow definition domain and the second partial second flow definition domain to determine the flow together.
  • Step 313 is similar to step 102 in FIG. 1. To avoid repetition, details are not described herein again.
  • the node 303 extracts first QoS requirement information in the first QoS requirement domain.
  • the first QoS requirement information may be a queue.
  • the node 303 fails to generate a binding relationship.
  • the node 303 does not successfully generate a binding relationship between the flow and the first QoS requirement information.
  • the reason for the failure may be that the node 303 cannot meet the bandwidth requirement in the first QoS requirement information, and may be other reasons.
  • the present invention does not limit this.
  • the node 303 sends an alarm message, where the alarm message is used to indicate that the node 303 fails to establish a QoS reservation.
  • the alarm message can be sent to the network management.
  • the network management may perform human intervention after receiving the alarm message, and establish a binding on the node 303. Relationship to complete the QoS reservation establishment at node 303.
  • the node 303 generates a third protocol packet.
  • the third protocol packet includes a third flow definition domain, a first QoS requirement domain, and a third forwarding header information domain.
  • the third flow definition domain includes a range of the source IP address, a range of the destination IP address, a protocol ID, a range of the port number, a range of the source MAC address, a range of the destination MAC address, and a second MPLS label.
  • the third stream definition domain includes a first part third stream definition domain and a second part third stream definition domain, wherein the first part third stream definition domain includes a range of source IP addresses, a range of destination IP addresses, a protocol ID, The range of the port number, the range of the source MAC address, and the range of the destination MAC address.
  • the second part of the third stream definition field includes the second MPLS label. It can also be understood that the third stream definition domain is generated after the first MPLS label is replaced with the second MPLS label on the basis of the second stream definition domain.
  • the third forwarding header information field includes a destination IP address; or the third forwarding header information domain includes a source IP address, a destination IP address, and a protocol ID; or the third forwarding header information field includes a source IP address, a destination IP address, a source port, a destination port, and a protocol ID; or the third forwarding header information field includes a destination MAC address; or the third forwarding header information field includes a source IP address and a destination IP address. Source MAC address and destination MAC address.
  • the third forwarding header information field includes a source IP address, a destination IP address, a source MAC address, a destination MAC address, a protocol ID, and a second MPLS label. It can be understood that the third forwarding header information field includes a first partial third forwarding header information field and a second partial third forwarding header information domain, wherein the first partial third forwarding header information domain includes a source IP address, a destination IP address, and a source MAC address. The destination MAC address and the protocol ID, and the second part of the third forwarding header information field includes the second MPLS label. It can also be understood that the third forwarding header information field is generated after the first MPLS label is replaced with the second MPLS label based on the second forwarding header information field.
  • the second MPLS label may be determined by the node 303 searching for the second label forwarding table stored on the node 303 according to the second forwarding header information field.
  • the node 303 sends the third protocol message to the node 304.
  • the node 303 sends the third protocol packet to the node 304 according to the third forwarding header information field.
  • the node 304 determines, according to the third flow domain, a flow and a traffic classification rule, where the traffic classification rule is used to perform traffic classification on the subsequent service packets to determine that the subsequent service packets belong to the flow.
  • Step 319 is similar to step 313. To avoid repetition, details are not described herein again.
  • the node 304 extracts first QoS requirement information in the first QoS requirement domain.
  • the first QoS requirement information may be a queue.
  • the node 304 generates a binding relationship.
  • the binding relationship is a binding relationship between the flow and the first QoS requirement information.
  • the binding relationship may be a binding relationship between the flow and the queue.
  • node 304 establishes a QoS reservation for the traffic flow.
  • the embodiment of the present invention determines the flow and the QoS requirement information by using the protocol packet, and further generates a binding relationship between the flow and the QoS requirement information, and can establish a QoS reservation for the service flow, and the hop-by-hop forwarding of the protocol packet can be a service.
  • the QoS reservation is established hop by hop, thereby ensuring the QoS of the service flow, and the reservation can be adapted to various network types.
  • the QoS reservation of the E2E of the node 301 to the node 304 is completed.
  • FIG. 3 is only one embodiment of the present invention.
  • the present invention does not limit the number of nodes and the type of network in which the nodes are located.
  • Other embodiments that are extended by those skilled in the art based on the embodiments of the present invention still fall within the scope of the present invention.
  • the node 400 shown in FIG. 4 includes an acquisition unit 401, a determination unit 402, an extraction unit 403, and a first generation unit 404.
  • the obtaining unit 401 is configured to obtain a first protocol packet, where the first protocol packet includes a first flow definition domain, a first QoS requirement domain, and a first forwarding header information domain.
  • the first protocol packet is used to establish a QoS reservation for the service flow, and the first forwarding header information field is used to indicate the service forwarding path.
  • the determining unit 402 is configured to determine a flow and a traffic classification rule according to the first flow definition field in the first protocol packet obtained by the obtaining unit 401, where the traffic classification rule is used to perform traffic classification on the subsequent service packet to determine that the subsequent service packet belongs to The stream.
  • the extracting unit 403 is configured to extract first QoS requirement information in the first QoS requirement domain in the first protocol packet obtained by the obtaining unit 401.
  • the first generating unit 404 is configured to generate a binding relationship, where the binding relationship is a binding relationship between the flow determined by the determining unit 402 and the first QoS requirement information extracted by the extracting unit 403.
  • the embodiment of the present invention determines the flow and the QoS requirement information by using the protocol packet, and further generates a binding relationship between the flow and the QoS requirement information, and can establish a QoS reservation for the service flow, and the hop-by-hop forwarding of the protocol packet can be a service.
  • the QoS reservation is established hop by hop, thereby ensuring the QoS of the service flow, and the reservation can be adapted to various network types.
  • the node 400 shown in FIG. 4 may further include a second generating unit 405 and a sending unit 406.
  • the second generating unit 405 is configured to generate a second protocol packet according to the first protocol packet that is obtained by the obtaining unit 401, where the second protocol packet includes a second flow definition domain, a first QoS requirement domain, and a second forwarding header information domain.
  • the sending unit 406 is configured to send the second protocol packet to another node, where the other node is a next hop node determined by performing a table lookup according to the first forwarding header information field, where the second protocol packet is used by The other node establishes a QoS reservation for the traffic flow.
  • the second flow definition domain is generated based on the first flow definition domain or based on the first flow definition domain and the first forwarding header information domain.
  • the second forwarding header information field is generated based on the first forwarding header information field.
  • the obtaining unit 401 is further configured to receive a third protocol packet, where the third protocol packet includes a second QoS requirement domain.
  • the extracting unit 403 is further configured to extract second QoS requirement information in the second QoS requirement domain in the third protocol packet obtained by the obtaining unit 401.
  • the sending unit 406 is further configured to: when the node 400 fails to meet the second QoS requirement information extracted by the extracting unit 403, send an alert message, where the alert message is used to indicate that the node 400 fails to establish a QoS reservation.
  • the first flow definition field in the first protocol packet acquired by the obtaining unit 401 may include at least one of the following: a range of the source IP address, a range of the destination IP address, a protocol ID, and a port number.
  • the second forwarding header information field may include a destination IP address; or the second forwarding header information field may include a source IP address, a destination IP address, and a protocol ID; or the second forwarding header information field may include a source IP address and a destination IP address.
  • the source port, the destination port, and the protocol ID; or the second forwarding header information field may include the destination MAC address; or the second forwarding header information field may include a source IP address, a destination IP address, a source MAC address, and a destination MAC address.
  • the second flow definition domain further includes an MPLS label
  • the second forwarding header information field further includes the MPLS label, where the MPLS label is the node 400 according to the node 400.
  • the first forwarding header information field is determined by the label forwarding table.
  • the second flow definition domain further includes a GRE IP header
  • the second forwarding header information domain further includes the GRE IP header
  • the GRE The IP header is determined by the node 400 according to the first forwarding header information field, and the routing table is determined.
  • the second flow definition domain when the node 400 forwards the second protocol packet by using the MAC tunnel, the second flow definition domain further includes a MAC in MAC header, and the second forwarding header information domain further includes the MAC in MAC header.
  • the MAC in MAC header is determined by the node 400 according to the first forwarding header information field to look up the first MAC forwarding table.
  • the second flow definition domain further includes a VXLAN header
  • the second forwarding header information domain further includes the VXLAN header
  • the VXLAN header is The node 400 searches for the second MAC forwarding table according to the first forwarding header information field.
  • the first protocol packet acquired by the obtaining unit 401 may further include a queue ID and a layering level, where the queue ID and the layering level are used to establish a hierarchical queue for the service flow, and Further scheduling and deploying the hierarchical queue.
  • the first protocol packet acquired by the obtaining unit 401 may further include an information domain.
  • the information field includes monitoring information for establishing a QoS reservation.
  • the node 400 may further include a deleting unit, configured to delete the binding relationship when no service uses the binding relationship generated by the first generating unit 404 within a preset time period.
  • a deleting unit configured to delete the binding relationship when no service uses the binding relationship generated by the first generating unit 404 within a preset time period.
  • FIG. 5 is a block diagram of a node in accordance with another embodiment of the present invention.
  • the node 500 shown in FIG. 5 includes a generating unit 501 and a transmitting unit 502.
  • the generating unit 501 is configured to generate a binding relationship and a protocol packet, where the binding relationship is a binding relationship between the flow and the QoS requirement information.
  • the protocol message includes a flow definition domain, a quality of service QoS requirement domain, and a forwarding header information domain.
  • the protocol message is used to establish a QoS reservation for the service flow, where the flow definition field is used to indicate the flow of the service flow, the QoS requirement domain is used to indicate the QoS requirement information, and the forwarding header information field is used to indicate the service flow.
  • Send path The sending unit 502 is configured to send, according to the forwarding header information field, the protocol packet generated by the first generating unit 501 to another node, where the other node is a next hop node indicated by the forwarding header information field.
  • the embodiment of the present invention determines the flow and the QoS requirement information by using the protocol packet, and further generates a binding relationship between the flow and the QoS requirement information, and can establish a QoS reservation for the service flow, and the hop-by-hop forwarding of the protocol packet can be a service.
  • the QoS reservation is established hop by hop, thereby ensuring the QoS of the service flow, and the reservation can be adapted to various network types.
  • the generating unit 501 may include: a receiving subunit 503, a first generating subunit 504, and a second generating subunit 505.
  • the receiving subunit 503 can be configured to receive at least one first protocol message.
  • the first generating sub-unit 504 is configured to combine the at least one first protocol packet received by the receiving sub-unit 503 to generate a protocol packet according to the convergence policy.
  • the second generation subunit 505 is configured to generate the binding relationship.
  • the flow definition field in the protocol packet generated by the generating unit 501 may include at least one of the following: a range of the source IP address, a range of the destination IP address, a protocol ID, and a range of the port number.
  • the forwarding header information field may include a destination IP address; or the forwarding header information field may include a source IP address, a destination IP address, and a protocol ID; or the forwarding header information field may include a source IP address, a destination IP address, a source port, and a destination port.
  • the protocol ID; or, the forwarding header information field may include a destination MAC address; or, the forwarding header information field may include a source IP address, a destination IP address, a source MAC address, and a destination MAC address.
  • the flow definition domain further includes an MPLS label
  • the forwarding header information field further includes the MPLS label
  • the flow definition domain further includes a GRE IP header
  • the forwarding header information domain further includes the GRE IP header
  • the flow definition domain when the node 500 forwards the protocol packet through the MAC tunnel, the flow definition domain further includes a MAC in MAC header, and the forwarding header information domain further includes the MAC in MAC header.
  • the flow definition domain when the node 500 forwards the protocol packet through the VXLAN tunnel, the flow definition domain further includes a VXLAN header, and the forwarding header information domain further includes the VXLAN header.
  • the protocol packet generated by the generating unit 501 may further include a queue ID and a layering level, where the layer ID and the layering level are used to establish a hierarchical queue for the service flow, and further Schedule deployment for this hierarchical queue.
  • the protocol packet generated by the generating unit 501 may further include an information domain, where the information domain includes monitoring information for establishing a QoS reservation.
  • the node 500 may further include a deleting unit, configured to delete the binding relationship when there is no binding relationship generated by the service using generating unit 501 within a preset time period.
  • a deleting unit configured to delete the binding relationship when there is no binding relationship generated by the service using generating unit 501 within a preset time period.
  • FIG. 6 is a block diagram of a node in accordance with another embodiment of the present invention.
  • the node 600 shown in FIG. 6 includes a processor 601, a memory 602, a receiving circuit 603, and a transmitting circuit 604.
  • the receiving circuit 603 is configured to obtain a first protocol packet, where the first protocol packet includes a first flow definition domain, a first QoS requirement domain, and a first forwarding header information domain.
  • the first protocol packet is used to establish a QoS reservation for the service flow, and the first forwarding header information field is used to indicate the service flow forwarding path.
  • the processor 601 is configured to determine a flow and a traffic classification rule according to the first flow definition field in the first protocol packet that is received by the receiving circuit 603, where the traffic classification rule is used to perform traffic classification on the subsequent service packet to determine that the subsequent service packet belongs to Extracting the first QoS requirement information in the first QoS requirement domain in the first protocol packet obtained by the receiving circuit 603; and generating a binding relationship, where the binding relationship is between the flow and the first QoS requirement information Binding relationship.
  • the embodiment of the present invention determines the flow and the QoS requirement information by using the protocol packet, and further generates a binding relationship between the flow and the QoS requirement information, and can establish a QoS reservation for the service flow, and the hop-by-hop forwarding of the protocol packet can be a service.
  • the QoS reservation is established hop by hop, thereby ensuring the QoS of the service flow, and the reservation can be adapted to various network types.
  • bus system 605 which in addition to the data bus includes a power bus, a control bus, and a status signal bus.
  • bus system 605 various buses are labeled as bus system 605 in FIG.
  • Processor 601 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the foregoing method may be completed by an integrated logic circuit of hardware in the processor 601 or an instruction in a form of software.
  • the processor 601 may be a general-purpose processor, a digital signal processor (DSP), an application specific integrated circuit (ASIC), a Field Programmable Gate Array (FPGA), or the like. Programmable logic device, discrete gate or transistor logic Pieces, discrete hardware components.
  • DSP digital signal processor
  • ASIC application specific integrated circuit
  • FPGA Field Programmable Gate Array
  • the general purpose processor may be a microprocessor or the processor or any conventional processor or the like.
  • the steps of the method disclosed in the embodiments of the present invention may be directly implemented by the hardware decoding processor, or may be performed by a combination of hardware and software modules in the decoding processor.
  • the software module can be located in a random access memory (RAM), a flash memory, a read-only memory (ROM), a programmable read only memory or an electrically erasable programmable memory, a register, etc.
  • RAM random access memory
  • ROM read-only memory
  • programmable read only memory or an electrically erasable programmable memory
  • register etc.
  • the storage medium is located in the memory 602, and the processor 601 reads the information in the memory 602 and completes the steps of the above method in combination with its hardware.
  • the processor 601 is further configured to generate a second protocol packet according to the first protocol packet that is obtained by the receiving circuit 603, where the second protocol packet includes a second flow definition domain and a first QoS requirement. Domain and second forwarding header information field.
  • the sending circuit 604 can be configured to send the second protocol packet to another node, where the other node is a next hop node determined by performing a lookup table according to the first forwarding header information field, where the second protocol packet is used by The other node establishes a QoS reservation for the traffic flow.
  • the second flow definition domain is generated based on the first flow definition domain or based on the first flow definition domain and the first forwarding header information domain.
  • the second forwarding header information field is generated based on the first forwarding header information field.
  • the receiving circuit 603 is further configured to receive a third protocol packet, where the third protocol packet includes a second QoS requirement field.
  • the processor 601 is further configured to extract second QoS requirement information in the second QoS requirement domain in the third protocol packet obtained by the receiving circuit 603.
  • the sending circuit 604 is further configured to send an alarm message, where the alarm message is used to indicate that the node 600 fails to establish a QoS reservation.
  • the first flow definition field in the first protocol packet acquired by the receiving circuit 603 may include at least one of the following: a range of the source IP address, a range of the destination IP address, a protocol ID, and a port number.
  • the second forwarding header information field may include a destination IP address; or the second forwarding header information field may include a source IP address, a destination IP address, and a protocol ID; or the second forwarding header information field may include a source IP address and a destination IP address.
  • the source port, the destination port, and the protocol ID; or the second forwarding header information field may include the destination MAC address; or the second forwarding header information field may include a source IP address, a destination IP address, a source MAC address, and a destination MAC address.
  • the second flow definition domain further includes an MPLS label
  • the second forwarding header information field further includes the MPLS label, where the MPLS label is the node 600 according to the node 600.
  • the first forwarding header information field is determined by the label forwarding table.
  • the second flow definition domain further includes a GRE IP header
  • the second forwarding header information domain further includes the GRE IP header
  • the GRE IP header is a node 600 is determined by searching the routing table according to the first forwarding header information field.
  • the second flow definition domain when the node 600 forwards the second protocol packet by using the MAC tunnel, the second flow definition domain further includes a MAC in MAC header, and the second forwarding header information domain further includes the MAC in MAC header.
  • the MAC in MAC header is determined by the node 600 according to the first forwarding header information field to find the first MAC forwarding table.
  • the second flow definition domain further includes a VXLAN header
  • the second forwarding header information domain further includes the VXLAN header
  • the VXLAN header is The node 600 searches for the second MAC forwarding table according to the first forwarding header information field.
  • the first protocol packet acquired by the receiving circuit 603 may further include a queue ID and a layering level, where the queue ID and the layering level are used to establish a hierarchical queue for the service flow, and Further scheduling and deploying the hierarchical queue.
  • the first protocol packet acquired by the receiving circuit 603 may further include an information domain, where the information domain includes monitoring information for establishing a QoS reservation.
  • the node 600 may further include a deleting unit, configured to: when no service uses the binding relationship within a preset time period, the processor 601 is further configured to delete the binding relationship.
  • a deleting unit configured to: when no service uses the binding relationship within a preset time period, the processor 601 is further configured to delete the binding relationship.
  • the node 600 can implement the various processes implemented by the first node in the embodiment of FIG. 1. To avoid repetition, details are not described herein again.
  • FIG. 7 is a block diagram of a node in accordance with another embodiment of the present invention.
  • the node 700 shown in FIG. 7 includes a processor 701, a memory 702, a receiving circuit 703, and a transmitting circuit 704.
  • the processor 701 is configured to generate a binding relationship and a protocol packet, where the binding relationship is a binding relationship between the flow and the QoS requirement information.
  • the protocol message includes a flow definition domain, a quality of service QoS requirement domain, and a forwarding header information domain.
  • the protocol message is used to establish a QoS reservation for the service flow, where the flow definition field is used to indicate the flow of the service flow, the QoS requirement domain is used to indicate the QoS requirement information, and the forwarding header information field is used to indicate the service flow.
  • Send path The sending circuit 704 is configured to send, according to the forwarding header information field, the protocol packet generated by the processor 701 to another node, where the other node is the next hop node indicated by the forwarding header information field.
  • the embodiment of the present invention determines the flow and the QoS requirement information by using the protocol packet, and further generates a binding relationship between the flow and the QoS requirement information, and can establish a QoS reservation for the service flow, and the hop-by-hop forwarding of the protocol packet can be a service.
  • the QoS reservation is established hop by hop, thereby ensuring the QoS of the service flow, and the reservation can be adapted to various network types.
  • bus system 705 which in addition to the data bus includes a power bus, a control bus, and a status signal bus.
  • bus system 705 various buses are labeled as bus system 705 in FIG.
  • Processor 701 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the foregoing method may be completed by an integrated logic circuit of hardware in the processor 701 or an instruction in a form of software.
  • the processor 701 described above may be a general purpose processor, DSP, ASIC, FPGA or other programmable logic device, discrete gate or transistor logic device, discrete hardware component.
  • the methods, steps, and logical block diagrams disclosed in the embodiments of the present invention may be implemented or carried out.
  • the general purpose processor may be a microprocessor or the processor or any conventional processor or the like.
  • the steps of the method disclosed in the embodiments of the present invention may be directly implemented by the hardware decoding processor, or may be performed by a combination of hardware and software modules in the decoding processor.
  • the software modules can be located in RAM, flash memory, ROM, programmable read only memory, or electrically erasable programmable memory, registers, and the like, which are well established in the art.
  • the storage medium is located in the memory 702, and the processor 701 reads the information in the memory 702 and completes the steps of the above method in combination with its hardware.
  • the receiving circuit 703 is configured to receive at least one first protocol message.
  • the processor 701 is configured to combine the at least one first protocol packet received by the receiving subunit 504 to generate a protocol packet according to the convergence policy.
  • the flow definition field in the protocol packet generated by the processor 701 may include at least one of the following: a range of the source IP address, a range of the destination IP address, a protocol ID, and a range of the port number.
  • the forwarding header information field may include a destination IP address; or the forwarding header information field may include a source IP address, a destination IP address, and a protocol ID; or the forwarding header information field may include a source IP address, a destination IP address, a source port, and a destination port.
  • the protocol ID; or, the forwarding header information field may include a destination MAC address; or, the forwarding header information field may include a source IP address, a destination IP address, a source MAC address, and a destination MAC address.
  • the flow definition domain further includes an MPLS label
  • the forwarding header information field further includes the MPLS label
  • the flow definition domain further includes a GRE IP header
  • the forwarding header information domain further includes the GRE IP header
  • the flow definition domain when the node 700 forwards the protocol packet through the MAC tunnel, the flow definition domain further includes a MAC in MAC header, and the forwarding header information domain further includes the MAC in MAC header.
  • the flow definition domain when the node 700 forwards the protocol packet through the VXLAN tunnel, the flow definition domain further includes a VXLAN header, and the forwarding header information domain further includes the VXLAN header.
  • the protocol packet generated by the processor 701 may further include a queue ID and a layering level, where the layer ID and the layering level are used to establish a hierarchical queue for the service flow, and further For this level The queue is scheduled for deployment.
  • the protocol packet generated by the processor 701 may further include an information domain, where the information domain includes monitoring information for establishing a QoS reservation.
  • the processor 701 is further configured to delete the binding relationship when no service uses the binding relationship generated by the processor 701 within a preset time period.
  • the node 700 can implement the processes implemented by the first node in the embodiment of FIG. 2. To avoid repetition, details are not described herein again.
  • the disclosed systems, devices, and methods may be implemented in other manners.
  • the device embodiments described above are merely illustrative.
  • the division of the unit is only a logical function division.
  • there may be another division manner for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored or not executed.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the functions may be stored in a computer readable storage medium if implemented in the form of a software functional unit and sold or used as a standalone product.
  • the technical solution of the present invention which is essential or contributes to the prior art, or a part of the technical solution, may be embodied in the form of a software product, which is stored in a storage medium, including Several instructions to make a computer device (can It is a personal computer, server, or network device, etc.) that performs all or part of the steps of the methods described in various embodiments of the present invention.
  • the foregoing storage medium includes various media that can store program codes, such as a USB flash drive, a mobile hard disk, a ROM, a RAM, a magnetic disk, or an optical disk.

Abstract

A method for establishing quality of service (QoS) reservation includes that: a first node obtains a first protocol message, the first protocol message includes a first flow definition domain, a first QoS requirement domain and a first forwarding header information domain, and is used for establishing QoS reservation for a service flow, and the first transfer header information domain is used for indicating the forwarding path of the service flow; the first node determines the flow according to the first flow definition domain; the first node extracts a first QoS requirement information in the first QoS requirement domain; the first node generates a binding relationship between the flow and the first QoS requirement information. In the method, the flow and the QoS requirement information are determined by the protocol message, and further the binding relationship between the flow and the QoS requirement information is generated, so that the QoS reservation can be established for the service flow; the QoS reservation can be established hop by hop for the service flow due to the hop-by-hop forwarding of the protocol message, and thus the QoS of the service flow can be ensured, and the reservation can be adapted to all kinds of networks.

Description

建立服务质量预留的方法及节点Method and node for establishing service quality reservation
本申请要求于2013年12月31日提交中国专利局、申请号为201310750102.0、发明名称为“建立服务质量预留的方法及节点”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims priority to Chinese Patent Application No. 201310750102.0, filed on December 31, 2013, and entitled "Method and Node for Establishing Service Quality Reservation", the entire contents of which are incorporated herein by reference. In the application.
技术领域Technical field
本发明实施例涉及通信领域,并且更具体地,涉及一种建立服务质量预留的方法及节点。Embodiments of the present invention relate to the field of communications, and, more particularly, to a method and a node for establishing a quality of service reservation.
背景技术Background technique
网络中的交换设备基于报文的头部信息进行转发,当在出接口方向发生拥塞时,交换设备会保障高优先级的业务,而将其他无法保障的业务的报文进行丢弃。这样,交换设备不能保障某些业务的服务质量(Quality of Service,QoS)。互联网工程任务组(Internet Engineering Task Force,IETF)提出的集成服务(Integrated Service,IS)是一种端到端的基于流的QoS技术,能够以资源预留的方式来实现QoS保障。其中,资源预留协议(Resource Reservation Protocol,RSVP)是IS中的核心信令协议。The switching device in the network forwards the packet based on the packet information. When the outbound interface is congested, the switching device will ensure the high-priority service and discard the packets of other services that cannot be guaranteed. In this way, the switching device cannot guarantee the quality of service (QoS) of certain services. The Integrated Service (IS) proposed by the Internet Engineering Task Force (IETF) is an end-to-end flow-based QoS technology that implements QoS guarantees in a resource reservation manner. The Resource Reservation Protocol (RSVP) is the core signaling protocol in the IS.
但是,RSVP是针对网络协议(Internet Protocol,IP)网络设计的,RSVP报文只能在IP网络中的设备上沿业务路径完成资源预留,无法在多协议标签交换(Multi-Protocol Label Switching,MPLS)网络中进行资源预留。这样,导致RSVP报文不能为MPLS网络逐跳地建立资源预留。也就是说,RSVP只能适用于IP网络,而不能适用于其他的网络类型。However, RSVP is designed for the Internet Protocol (IP) network. RSVP packets can only be reserved along the service path on devices in the IP network. Multi-Protocol Label Switching (Multi-Protocol Label Switching) is not available. Resource reservation in the MPLS) network. In this way, the RSVP packet cannot be used to establish resource reservation for the MPLS network hop by hop. In other words, RSVP can only be applied to IP networks, but not to other network types.
发明内容Summary of the invention
本发明实施例提供一种建立服务质量预留的方法及节点。Embodiments of the present invention provide a method and a node for establishing a quality of service reservation.
第一方面,提供了一种建立服务质量预留的方法,包括:第一节点获取第一协议报文,所述第一协议报文包括第一流定义域、第一服务质量QoS需求域和第一转发头信息域,所述第一协议报文用于为业务流建立QoS预留,所述第一转发头信息域用于指示业务流转发路径;所述第一节点根据所述第一流定义域确定流以及流分类规则,所述流分类规则用于后续业务报文进行流分类以确定所述后续业务报文属于所述流;所述第一节 点提取所述第一QoS需求域中的第一QoS需求信息;所述第一节点生成绑定关系,所述绑定关系为所述流与所述第一QoS需求信息之间的绑定关系。The first aspect provides a method for establishing a QoS reservation, where the first node obtains a first protocol packet, where the first protocol packet includes a first flow definition domain, a first quality of service QoS requirement domain, and a first a forwarding header information field, the first protocol packet is used to establish a QoS reservation for the service flow, the first forwarding header information field is used to indicate a service flow forwarding path, and the first node is defined according to the first flow a domain determining flow and a traffic classification rule, where the traffic classification rule is used for performing traffic classification on subsequent service packets to determine that the subsequent service packet belongs to the flow; Extracting the first QoS requirement information in the first QoS requirement domain; the first node generates a binding relationship, where the binding relationship is a binding relationship between the flow and the first QoS requirement information .
结合第一方面,在第一种可能的实现方式中,还包括:所述第一节点根据所述第一协议报文生成第二协议报文,所述第二协议报文包括第二流定义域、所述第一QoS需求域和第二转发头信息域;所述第一节点将所述第二协议报文发送至第二节点,所述第二节点为根据所述第一转发头信息域进行查表所确定的下一跳节点,所述第二协议报文用于由所述第二节点为所述业务流建立QoS预留,其中,所述第二流定义域是基于所述第一流定义域或者是基于所述第一流定义域和所述第一转发头信息域生成的,所述第二转发头信息域是基于所述第一转发头信息域生成的。With reference to the first aspect, in a first possible implementation, the method further includes: the first node generates a second protocol packet according to the first protocol packet, where the second protocol packet includes a second flow definition a first QoS requirement domain and a second forwarding header information field; the first node sends the second protocol packet to the second node, and the second node is configured according to the first forwarding header The domain performs a lookup of the next hop node determined by the table, and the second protocol packet is used by the second node to establish a QoS reservation for the service flow, where the second flow definition domain is based on the The first flow definition domain is generated based on the first flow definition domain and the first forwarding header information domain, and the second forwarding header information domain is generated based on the first forwarding header information domain.
结合第一方面或者第一方面的第一种可能的实现方式,在第二种可能的实现方式中,还包括:所述第一节点接收第三协议报文,所述第三协议报文包括第二QoS需求域;所述第一节点提取所述第二QoS需求域中的第二QoS需求信息;当所述第一节点无法满足所述第二QoS需求信息时,所述第一节点发送告警消息,所述告警消息用于指示所述第一节点建立QoS预留失败。With reference to the first aspect, or the first possible implementation manner of the first aspect, in a second possible implementation, the method further includes: the first node receiving a third protocol packet, where the third protocol packet includes a second QoS requirement domain; the first node extracts second QoS requirement information in the second QoS requirement domain; when the first node cannot meet the second QoS requirement information, the first node sends The alarm message is used to indicate that the first node fails to establish a QoS reservation.
结合第一方面的第一种可能的实现方式或者第一方面的第二种可能的实现方式,在第三种可能的实现方式中,所述第二流定义域包括以下至少一种:源网络协议IP地址的范围、目的IP地址的范围、协议标识ID、端口号的范围、源媒体接入控制MAC地址的范围和目的MAC地址的范围,所述第二转发头信息域包括目的IP地址;或者,所述第二转发头信息域包括源IP地址、目的IP地址和协议ID;或者,所述第二转发头信息域包括源IP地址、目的IP地址、源端口、目的端口和协议ID;或者,所述第二转发头信息域包括目的MAC地址;或者,所述第二转发头信息域包括源IP地址、目的IP地址、源MAC地址和目的MAC地址。In conjunction with the first possible implementation of the first aspect, or the second possible implementation of the first aspect, in a third possible implementation, the second flow domain includes at least one of the following: a source network The range of the protocol IP address, the range of the destination IP address, the protocol identifier ID, the range of the port number, the range of the source media access control MAC address, and the range of the destination MAC address, where the second forwarding header information field includes the destination IP address; Or the second forwarding header information field includes a source IP address, a destination IP address, and a protocol ID; or the second forwarding header information field includes a source IP address, a destination IP address, a source port, a destination port, and a protocol ID; Or the second forwarding header information field includes a destination MAC address; or the second forwarding header information field includes a source IP address, a destination IP address, a source MAC address, and a destination MAC address.
结合第一方面的第三种可能的实现方式,在第四种可能的实现方式中,当所述第一节点所在的网络属于多协议标签交换MPLS网络时,所述第二流定义域还包括MPLS标签,所述第二转发头信息域还包括所述MPLS标签,所述MPLS标签为所述第一节点根据所述第一转发头信息域,查找标签转发表所确定的。With reference to the third possible implementation manner of the first aspect, in a fourth possible implementation manner, when the network where the first node is located belongs to a multi-protocol label switching MPLS network, the second flow domain further includes The MPLS label, the second forwarding header information field further includes the MPLS label, where the MPLS label is determined by the first node according to the first forwarding header information field and searching for a label forwarding table.
结合第一方面的第三种可能的实现方式,在第五种可能的实现方式中,当所述第一节点通过通用路由封装GRE隧道转发所述第二协议报文时,所述第二流定义域还包括GRE IP头,所述第二转发头信息域还包括所述GRE IP头,所述GRE IP头为所述第一节点根据所述第一转发头信息域,查找路由表所确定的。 With reference to the third possible implementation of the first aspect, in a fifth possible implementation, when the first node forwards the second protocol packet by using a universal routing encapsulation GRE tunnel, the second flow The definition field further includes a GRE IP header, and the second forwarding header information field further includes the GRE IP header, where the GRE IP header is determined by the first node according to the first forwarding header information field, and a routing table is searched. of.
结合第一方面的第三种可能的实现方式,在第六种可能的实现方式中,当所述第一节点通过MAC隧道转发所述第二协议报文时,所述第二流定义域还包括MAC in MAC头,所述第二转发头信息域还包括所述MAC in MAC头,所述MAC in MAC头为所述第一节点根据所述第一转发头信息域,查找第一MAC转发表所确定的。With the third possible implementation of the first aspect, in a sixth possible implementation, when the first node forwards the second protocol packet by using a MAC tunnel, the second flow domain is further Including a MAC in MAC header, the second forwarding header information field further includes the MAC in MAC header, where the MAC in MAC header is the first node, according to the first forwarding header information field, searching for a first MAC forwarding Published by the confirmed.
结合第一方面的第三种可能的实现方式,在第七种可能的实现方式中,当所述第一节点通过虚拟可扩展局域网VXLAN隧道转发所述第二协议报文时,所述第二流定义域还包括VXLAN头,所述第二转发头信息域还包括所述VXLAN头,所述VXLAN头为所述第一节点根据所述第一转发头信息域,查找第二MAC转发表所确定的。With reference to the third possible implementation manner of the first aspect, in a seventh possible implementation, when the first node forwards the second protocol packet by using a virtual scalable local area network (VXLAN tunnel), the second The flow domain further includes a VXLAN header, the second forwarding header information field further includes the VXLAN header, and the VXLAN header is configured by the first node to search for a second MAC forwarding table according to the first forwarding header information field. definite.
结合第一方面或者上述任一种可能的实现方式,在第八种可能的实现方式中,所述第一协议报文还包括队列ID和层次化级别,所述队列ID和所述层次化级别用于为所述业务流建立层次化队列,并进一步为所述层次化队列进行调度部署。With reference to the first aspect, or any one of the foregoing possible implementation manners, in the eighth possible implementation manner, the first protocol packet further includes a queue ID and a layering level, the queue ID and the layering level And configured to establish a hierarchical queue for the service flow, and further perform scheduling deployment for the hierarchical queue.
结合第一方面或者上述任一种可能的实现方式,在第九种可能的实现方式中,所述第一协议报文还包括信息域,所述信息域包括建立QoS预留的监控信息。With reference to the first aspect, or any one of the foregoing possible implementation manners, in the ninth possible implementation manner, the first protocol packet further includes an information domain, where the information domain includes monitoring information for establishing a QoS reservation.
结合第一方面或者上述任一种可能的实现方式,在第十种可能的实现方式中,还包括:当在预设的时间段内没有业务使用所述绑定关系时,所述第一节点删除所述绑定关系。With reference to the first aspect, or any one of the foregoing possible implementation manners, in a tenth possible implementation manner, the method further includes: when no service uses the binding relationship within a preset time period, the first node Delete the binding relationship.
第二方面,提供了一种建立服务质量预留的方法,方法包括:第一节点生成绑定关系和协议报文,所述绑定关系为流与QoS需求信息之间的绑定关系,所述协议报文包括流定义域、服务质量QoS需求域和转发头信息域,所述协议报文用于为业务流建立QoS预留,所述流定义域用于指示所述业务流的流,所述QoS需求域用于指示所述QoS需求信息,所述转发头信息域用于指示业务流转发路径;所述第一节点根据所述转发头信息域,将所述协议报文发送至第二节点,所述第二节点为所述转发头信息域所指示的下一跳节点。The second aspect provides a method for establishing a QoS reservation, where the method includes: a first node generates a binding relationship and a protocol packet, where the binding relationship is a binding relationship between the flow and the QoS requirement information, where The protocol packet includes a flow definition domain, a QoS quality requirement domain, and a forwarding header information domain, where the protocol packet is used to establish a QoS reservation for the service flow, and the flow definition domain is used to indicate the flow of the service flow. The QoS requirement field is used to indicate the QoS requirement information, and the forwarding header information field is used to indicate a service flow forwarding path; the first node sends the protocol packet to the first according to the forwarding header information field. A second node, where the second node is a next hop node indicated by the forwarding header information field.
结合第二方面,在第一种可能的实现方式中,所述第一节点生成协议报文,包括:所述第一节点接收至少一个第一协议报文;所述第一节点根据汇聚策略,将所述至少一个第一协议报文合并以生成所述协议报文。With reference to the second aspect, in a first possible implementation manner, the first node generates a protocol packet, where the first node receives at least one first protocol packet, and the first node is configured according to a convergence policy. And combining the at least one first protocol packet to generate the protocol packet.
结合第二方面或者第二方面的第一种可能的实现方式中,在第二种可能的实现方式中,所述流定义域包括以下至少一种:源网络协议IP地址的范围、目的IP地址的范围、协议标识ID、端口号的范围、源媒体接入控制MAC地址的范围和目的MAC地址的范围,所述转发头信息域包括目的IP地址;或者,所述转发头信息域包括源IP地址、目的IP地 址和协议ID;或者,所述转发头信息域包括源IP地址、目的IP地址、源端口、目的端口和协议ID;或者,所述转发头信息域包括目的MAC地址;或者,所述转发头信息域包括源IP地址、目的IP地址、源MAC地址和目的MAC地址。With reference to the second aspect, or the first possible implementation manner of the second aspect, in a second possible implementation manner, the flow definition domain includes at least one of the following: a source network protocol IP address range, a destination IP address The range of the protocol identifier ID, the range of the port number, the range of the source media access control MAC address, and the range of the destination MAC address, the forwarding header information field includes the destination IP address; or the forwarding header information field includes the source IP address. Address, destination IP address And the protocol ID; or the forwarding header information field includes a source IP address, a destination IP address, a source port, a destination port, and a protocol ID; or the forwarding header information field includes a destination MAC address; or the forwarding header The information domain includes a source IP address, a destination IP address, a source MAC address, and a destination MAC address.
结合第二方面的第二种可能的实现方式,在第三种可能的实现方式中,当所述第一节点所在的网络属于多协议标签交换MPLS网络时,所述流定义域还包括MPLS标签,所述转发头信息域还包括所述MPLS标签。With reference to the second possible implementation manner of the second aspect, in a third possible implementation manner, when the network where the first node is located belongs to a multi-protocol label switching MPLS network, the flow definition domain further includes an MPLS label. The forwarding header information field further includes the MPLS label.
结合第二方面的第二种可能的实现方式,在第四种可能的实现方式中,当所述第一节点通过通用路由封装GRE隧道转发所述协议报文时,所述流定义域还包括GRE IP头,所述转发头信息域还包括所述GRE IP头。With reference to the second possible implementation of the second aspect, in a fourth possible implementation, when the first node forwards the protocol packet by using a universal routing encapsulation GRE tunnel, the flow definition domain further includes The GRE IP header, the forwarding header information field further includes the GRE IP header.
结合第二方面的第二种可能的实现方式,在第五种可能的实现方式中,当所述第一节点通过MAC隧道转发所述协议报文时,所述流定义域还包括MAC in MAC头,所述转发头信息域还包括所述MAC in MAC头。With reference to the second possible implementation of the second aspect, in a fifth possible implementation, when the first node forwards the protocol packet by using a MAC tunnel, the flow definition domain further includes a MAC in MAC Header, the forwarding header information field further includes the MAC in MAC header.
结合第二方面的第二种可能的实现方式,在第六种可能的实现方式中,当所述第一节点通过虚拟可扩展局域网VXLAN隧道转发所述协议报文时,所述流定义域还包括VXLAN头,所述转发头信息域还包括所述VXLAN头。With reference to the second possible implementation of the second aspect, in a sixth possible implementation, when the first node forwards the protocol packet by using a virtual scalable local area network (VXLAN tunnel), the flow definition domain is further Including a VXLAN header, the forwarding header information field further includes the VXLAN header.
结合第二方面或者上述任一种可能的实现方式,在第七种可能的实现方式中,所述协议报文还包括队列ID和层次化级别,所述队列ID和所述层次化级别用于为所述业务流建立层次化队列,并进一步为所述层次化队列进行调度部署。With reference to the second aspect, or any one of the foregoing possible implementation manners, in a seventh possible implementation manner, the protocol packet further includes a queue ID and a layering level, where the queue ID and the layering level are used. A hierarchical queue is established for the service flow, and the hierarchical queue is further scheduled for deployment.
结合第二方面或者上述任一种可能的实现方式,在第八种可能的实现方式中,所述协议报文还包括信息域,所述信息域包括建立QoS预留的监控信息。With reference to the second aspect, or any one of the foregoing possible implementation manners, in the eighth possible implementation manner, the protocol packet further includes an information domain, where the information domain includes monitoring information for establishing a QoS reservation.
结合第二方面或者上述任一种可能的实现方式,在第九种可能的实现方式中,还包括:当在预设的时间段内没有业务使用所述绑定关系时,所述第一节点删除所述绑定关系。With reference to the second aspect, or any one of the foregoing possible implementation manners, in the ninth possible implementation manner, the method further includes: when no service uses the binding relationship within a preset time period, the first node Delete the binding relationship.
第三方面,提供了一种节点,包括:获取单元,用于获取第一协议报文,所述第一协议报文包括第一流定义域、第一服务质量QoS需求域和第一转发头信息域,所述第一协议报文用于为业务流建立QoS预留,所述第一转发头信息域用于指示业务流转发路径;确定单元,用于根据所述获取单元获取的所述第一协议报文中的所述第一流定义域确定流以及流分类规则,所述流分类规则用于后续业务报文进行流分类以确定所述后续业务报文属于所述流;提取单元,用于提取所述获取单元获取的所述第一协议报文中的所述第一QoS需求域中的第一QoS需求信息;第一生成单元,用于生成绑定关系,所述绑定 关系为所述确定单元确定的所述流与所述提取单元提取的所述第一QoS需求信息之间的绑定关系。A third aspect provides a node, including: an acquiring unit, configured to acquire a first protocol packet, where the first protocol packet includes a first flow definition domain, a first quality of service QoS requirement domain, and first forwarding header information. The first protocol packet is used to establish a QoS reservation for the service flow, the first forwarding header information field is used to indicate a service flow forwarding path, and the determining unit is configured to obtain, according to the acquiring unit, the first The first flow domain in a protocol packet determines a flow and a traffic classification rule, where the traffic classification rule is used to perform traffic classification on the subsequent service packet to determine that the subsequent service packet belongs to the flow; Extracting the first QoS requirement information in the first QoS requirement domain in the first protocol packet obtained by the acquiring unit; the first generating unit is configured to generate a binding relationship, where the binding The relationship is a binding relationship between the flow determined by the determining unit and the first QoS requirement information extracted by the extracting unit.
结合第三方面,在第一种可能的实现方式中,还包括:第二生成单元,用于根据所述获取单元获取的所述第一协议报文生成第二协议报文,所述第二协议报文包括第二流定义域、所述第一QoS需求域和第二转发头信息域;发送单元,用于将所述第二协议报文发送至另一节点,所述另一节点为根据所述第一转发头信息域进行查表所确定的下一跳节点,所述第二协议报文用于由所述第二节点为所述业务流建立QoS预留,其中,所述第二流定义域是基于所述第一流定义域或者是基于所述第一流定义域和所述第一转发头信息域生成的,所述第二转发头信息域是基于所述第一转发头信息域生成的。With reference to the third aspect, in a first possible implementation, the method further includes: a second generating unit, configured to generate a second protocol packet according to the first protocol packet acquired by the acquiring unit, where the second The protocol packet includes a second flow definition domain, the first QoS requirement domain, and a second forwarding header information domain, and a sending unit, configured to send the second protocol packet to another node, where the other node is Determining, by the second forwarding header, the next hop node determined by the first forwarding header information field, where the second protocol packet is used by the second node to establish a QoS reservation for the service flow, where the The second flow definition domain is generated based on the first flow definition domain or based on the first flow definition domain and the first forwarding header information domain, and the second forwarding header information domain is based on the first forwarding header information. Domain generated.
结合第三方面或者第三方面的第一种可能的实现方式,在第二种可能的实现方式中,所述获取单元,还用于接收第三协议报文,所述第三协议报文包括第二QoS需求域;所述提取单元,还用于提取所述获取单元获取的所述第三协议报文中的所述第二QoS需求域中的第二QoS需求信息;所述发送单元,还用于当所述节点无法满足所述提取单元提取的所述第二QoS需求信息时,发送告警消息,所述告警消息用于指示所述节点建立QoS预留失败。With the third aspect or the first possible implementation manner of the third aspect, in a second possible implementation manner, the acquiring unit is further configured to receive a third protocol packet, where the third protocol packet includes a second QoS requirement domain; the extracting unit is further configured to extract second QoS requirement information in the second QoS requirement domain in the third protocol packet obtained by the acquiring unit; And when the node cannot meet the second QoS requirement information extracted by the extracting unit, sending an alarm message, where the alarm message is used to indicate that the node fails to establish a QoS reservation.
结合第三方面的第一种可能的实现方式或者第三方面的第二种可能的实现方式,在第三种可能的实现方式中,所述第二流定义域包括以下至少一种:源网络协议IP地址的范围、目的IP地址的范围、协议标识ID、端口号的范围、源媒体接入控制MAC地址的范围和目的MAC地址的范围,所述第二转发头信息域包括目的IP地址;或者,所述第二转发头信息域包括源IP地址、目的IP地址和协议ID;或者,所述第二转发头信息域包括源IP地址、目的IP地址、源端口、目的端口和协议ID;或者,所述第二转发头信息域包括目的MAC地址;或者,所述第二转发头信息域包括源IP地址、目的IP地址、源MAC地址和目的MAC地址。With reference to the first possible implementation manner of the third aspect, or the second possible implementation manner of the third aspect, in a third possible implementation manner, the second flow domain includes at least one of the following: a source network The range of the protocol IP address, the range of the destination IP address, the protocol identifier ID, the range of the port number, the range of the source media access control MAC address, and the range of the destination MAC address, where the second forwarding header information field includes the destination IP address; Or the second forwarding header information field includes a source IP address, a destination IP address, and a protocol ID; or the second forwarding header information field includes a source IP address, a destination IP address, a source port, a destination port, and a protocol ID; Or the second forwarding header information field includes a destination MAC address; or the second forwarding header information field includes a source IP address, a destination IP address, a source MAC address, and a destination MAC address.
结合第三方面的第三种可能的实现方式,在第四种可能的实现方式中,当所述第一节点所在的网络属于多协议标签交换MPLS网络时,所述第二流定义域还包括MPLS标签,所述第二转发头信息域还包括所述MPLS标签,所述MPLS标签为所述第一节点根据所述第一转发头信息域,查找标签转发表所确定的。With reference to the third possible implementation manner of the third aspect, in a fourth possible implementation manner, when the network where the first node is located belongs to a multi-protocol label switching MPLS network, the second flow domain further includes The MPLS label, the second forwarding header information field further includes the MPLS label, where the MPLS label is determined by the first node according to the first forwarding header information field and searching for a label forwarding table.
结合第三方面的第三种可能的实现方式,在第五种可能的实现方式中,当所述第一节点通过通用路由封装GRE隧道转发所述第二协议报文时,所述第二流定义域还包括 GRE IP头,所述第二转发头信息域还包括所述GRE IP头,所述GRE IP头为所述第一节点根据所述第一转发头信息域,查找路由表所确定的。With reference to the third possible implementation manner of the third aspect, in a fifth possible implementation, when the first node forwards the second protocol packet by using a universal routing encapsulation GRE tunnel, the second flow The definition domain also includes The GRE IP header, the second forwarding header information field further includes the GRE IP header, where the GRE IP header is determined by the first node according to the first forwarding header information field and searching for a routing table.
结合第三方面的第三种可能的实现方式,在第六种可能的实现方式中,当所述第一节点通过MAC隧道转发所述第二协议报文时,所述第二流定义域还包括MAC in MAC头,所述第二转发头信息域还包括所述MAC in MAC头,所述MAC in MAC头为所述第一节点根据所述第一转发头信息域,查找第一MAC转发表所确定的。With the third possible implementation of the third aspect, in a sixth possible implementation, when the first node forwards the second protocol packet by using a MAC tunnel, the second flow domain is further Including a MAC in MAC header, the second forwarding header information field further includes the MAC in MAC header, where the MAC in MAC header is the first node, according to the first forwarding header information field, searching for a first MAC forwarding Published by the confirmed.
结合第三方面的第三种可能的实现方式,在第七种可能的实现方式中,当所述第一节点通过虚拟可扩展局域网VXLAN隧道转发所述第二协议报文时,所述第二流定义域还包括VXLAN头,所述第二转发头信息域还包括所述VXLAN头,所述VXLAN头为所述第一节点根据所述第一转发头信息域,查找第二MAC转发表所确定的。With reference to the third possible implementation manner of the third aspect, in a seventh possible implementation, when the first node forwards the second protocol packet by using a virtual scalable local area network VXLAN tunnel, the second The flow domain further includes a VXLAN header, the second forwarding header information field further includes the VXLAN header, and the VXLAN header is configured by the first node to search for a second MAC forwarding table according to the first forwarding header information field. definite.
结合上述第三方面的任一种可能的实现方式,在第八种可能的实现方式中,所述第一协议报文还包括队列ID和层次化级别,所述队列ID和所述层次化级别用于为所述业务流建立层次化队列,并进一步为所述层次化队列进行调度部署。With reference to any one of the possible implementation manners of the foregoing third aspect, in the eighth possible implementation, the first protocol packet further includes a queue ID and a layering level, the queue ID and the layering level And configured to establish a hierarchical queue for the service flow, and further perform scheduling deployment for the hierarchical queue.
结合第三方面或者上述任一种可能的实现方式,在第九种可能的实现方式中,所述第一协议报文还包括信息域,所述信息域包括建立QoS预留的监控信息。With reference to the third aspect, or any one of the foregoing possible implementation manners, in the ninth possible implementation manner, the first protocol packet further includes an information domain, where the information domain includes monitoring information for establishing a QoS reservation.
结合第三方面或者上述任一种可能的实现方式,在第十种可能的实现方式中,还包括删除单元,用于:当在预设的时间段内没有业务使用所述第一生成单元生成的所述绑定关系时,删除所述绑定关系。With reference to the third aspect, or any one of the foregoing possible implementation manners, in the tenth possible implementation, the deleting unit is further configured to: when no service is generated by using the first generating unit in a preset time period When the binding relationship is described, the binding relationship is deleted.
第四方面,提供了一种节点,其特征在于,包括:生成单元,用于生成绑定关系和协议报文,所述绑定关系为流与QoS需求信息之间的绑定关系,所述协议报文包括流定义域、服务质量QoS需求域和转发头信息域,所述协议报文用于为业务流建立QoS预留,所述流定义域用于指示所述业务流的流,所述QoS需求域用于指示所述QoS需求信息,所述转发头信息域用于指示业务流转发路径;发送单元,用于根据所述转发头信息域,将所述生成单元生成的所述协议报文发送至另一节点,所述另一节点为所述转发头信息域所指示的下一跳节点。In a fourth aspect, a node is provided, including: a generating unit, configured to generate a binding relationship and a protocol packet, where the binding relationship is a binding relationship between the flow and the QoS requirement information, The protocol packet includes a flow definition domain, a QoS quality requirement domain, and a forwarding header information domain, where the protocol packet is used to establish a QoS reservation for the service flow, and the flow definition domain is used to indicate the flow of the service flow. The QoS requirement field is used to indicate the QoS requirement information, the forwarding header information field is used to indicate a service flow forwarding path, and the sending unit is configured to: according to the forwarding header information field, the protocol generated by the generating unit The message is sent to another node, which is the next hop node indicated by the forwarding header information field.
结合第四方面,在第一种可能的实现方式中,所述生成单元,包括:接收子单元,用于接收至少一个第一协议报文;第一生成子单元,用于根据汇聚策略,将所述至少一个第一协议报文合并以生成所述协议报文;第二生成子单元,用于生成所述绑定关系。With reference to the fourth aspect, in a first possible implementation, the generating unit includes: a receiving subunit, configured to receive at least one first protocol packet; and a first generating subunit, configured to use, according to a convergence policy, The at least one first protocol packet is merged to generate the protocol packet, and the second generation subunit is configured to generate the binding relationship.
结合第四方面或者第四方面的第一种可能的实现方式,在第二种可能的实现方式中,所述流定义域包括以下至少一种:源网络协议IP地址的范围、目的IP地址的范围、 协议标识ID、端口号的范围、源媒体接入控制MAC地址的范围和目的MAC地址的范围,所述转发头信息域包括目的IP地址;或者,所述转发头信息域包括源IP地址、目的IP地址和协议ID;或者,所述转发头信息域包括源IP地址、目的IP地址、源端口、目的端口和协议ID;或者,所述转发头信息域包括目的MAC地址;或者,所述转发头信息域包括源IP地址、目的IP地址、源MAC地址和目的MAC地址。With reference to the fourth aspect, or the first possible implementation manner of the fourth aspect, in a second possible implementation, the flow definition domain includes at least one of the following: a range of a source network protocol IP address, and a destination IP address. Scope, The protocol identifier ID, the range of the port number, the range of the source media access control MAC address, and the range of the destination MAC address, where the forwarding header information field includes the destination IP address; or the forwarding header information field includes the source IP address and the destination. The IP address and the protocol ID; or the forwarding header information field includes a source IP address, a destination IP address, a source port, a destination port, and a protocol ID; or the forwarding header information field includes a destination MAC address; or, the forwarding The header information field includes a source IP address, a destination IP address, a source MAC address, and a destination MAC address.
结合第四方面的第二种可能的实现方式,在第三种可能的实现方式中,当所述第一节点所在的网络属于多协议标签交换MPLS网络时,所述流定义域还包括MPLS标签,所述转发头信息域还包括所述MPLS标签。With reference to the second possible implementation manner of the fourth aspect, in a third possible implementation manner, when the network where the first node is located belongs to a multi-protocol label switching MPLS network, the flow definition domain further includes an MPLS label. The forwarding header information field further includes the MPLS label.
结合第四方面的第二种可能的实现方式,在第四种可能的实现方式中,当所述第一节点通过通用路由封装GRE隧道转发所述协议报文时,所述流定义域还包括GRE IP头,所述转发头信息域还包括所述GRE IP头。With the second possible implementation of the fourth aspect, in a fourth possible implementation, when the first node forwards the protocol packet by using a universal routing encapsulation GRE tunnel, the flow definition domain further includes The GRE IP header, the forwarding header information field further includes the GRE IP header.
结合第四方面的第二种可能的实现方式,在第五种可能的实现方式中,当所述第一节点通过MAC隧道转发所述协议报文时,所述流定义域还包括MAC in MAC头,所述转发头信息域还包括所述MAC in MAC头。With reference to the second possible implementation manner of the fourth aspect, in a fifth possible implementation manner, when the first node forwards the protocol packet by using a MAC tunnel, the flow definition domain further includes a MAC in MAC Header, the forwarding header information field further includes the MAC in MAC header.
结合第四方面的第二种可能的实现方式,在第六种可能的实现方式中,当所述第一节点通过虚拟可扩展局域网VXLAN隧道转发所述协议报文时,所述流定义域还包括VXLAN头,所述转发头信息域还包括所述VXLAN头。With reference to the second possible implementation of the fourth aspect, in a sixth possible implementation, when the first node forwards the protocol packet by using a virtual scalable local area network (VXLAN tunnel), the flow definition domain is further Including a VXLAN header, the forwarding header information field further includes the VXLAN header.
结合第四方面或者上述任一种可能的实现方式,在第七种可能的实现方式中,所述协议报文还包括队列ID和层次化级别,所述队列ID和所述层次化级别用于为所述业务流建立层次化队列,并进一步为所述层次化队列进行调度部署。With reference to the fourth aspect, or any one of the foregoing possible implementation manners, in a seventh possible implementation manner, the protocol packet further includes a queue ID and a layering level, where the queue ID and the layering level are used. A hierarchical queue is established for the service flow, and the hierarchical queue is further scheduled for deployment.
结合第四方面或者上述任一种可能的实现方式,在第八种可能的实现方式中,所述协议报文还包括信息域,所述信息域包括建立QoS预留的监控信息。With reference to the fourth aspect, or any one of the foregoing possible implementation manners, in the eighth possible implementation manner, the protocol packet further includes an information domain, where the information domain includes monitoring information for establishing a QoS reservation.
结合第四方面或者上述任一种可能的实现方式,在第九种可能的实现方式中,还包括删除单元,用于:当在预设的时间段内没有业务使用所述绑定关系时,删除所述绑定关系。With reference to the fourth aspect, or any one of the foregoing possible implementation manners, in a ninth possible implementation, the deleting unit is further configured to: when no service uses the binding relationship within a preset time period, Delete the binding relationship.
本发明实施例通过协议报文确定流以及QoS需求信息,进一步生成流与QoS需求信息之间的绑定关系,能够为业务流建立QoS预留,该协议报文的逐跳转发能够为业务流逐跳地建立QoS预留,进而能够保障业务流的QoS,并且该预留能够适应各种网络类型。The embodiment of the present invention determines the flow and the QoS requirement information by using the protocol packet, and further generates a binding relationship between the flow and the QoS requirement information, and can establish a QoS reservation for the service flow, and the hop-by-hop forwarding of the protocol packet can be a service. The QoS reservation is established hop by hop, thereby ensuring the QoS of the service flow, and the reservation can be adapted to various network types.
附图说明 DRAWINGS
为了更清楚地说明本发明实施例的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the embodiments or the prior art description will be briefly described below. Obviously, the drawings in the following description are only some of the present invention. For the embodiments, other drawings may be obtained from those skilled in the art without any inventive labor.
图1是本发明一个实施例的建立服务质量预留的方法的流程图。1 is a flow chart of a method of establishing a quality of service reservation in accordance with an embodiment of the present invention.
图2是本发明另一个实施例的建立服务质量预留的方法的流程图。2 is a flow chart of a method of establishing a quality of service reservation in accordance with another embodiment of the present invention.
图3是本发明另一个实施例的建立服务质量预留的方法的流程图。3 is a flow chart of a method of establishing a quality of service reservation in accordance with another embodiment of the present invention.
图4是本发明一个实施例的节点的框图。4 is a block diagram of a node in accordance with one embodiment of the present invention.
图5是本发明另一个实施例的节点的框图。Figure 5 is a block diagram of a node in accordance with another embodiment of the present invention.
图6是本发明另一个实施例的节点的框图。Figure 6 is a block diagram of a node in accordance with another embodiment of the present invention.
图7是本发明另一个实施例的节点的框图。Figure 7 is a block diagram of a node in accordance with another embodiment of the present invention.
具体实施方式detailed description
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly described in conjunction with the drawings in the embodiments of the present invention. It is obvious that the described embodiments are a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
RSVP是针对IP设计的,只在IP网络上工作。为了能沿业务路径进行资源预留,RSVP路径(PATH)消息的目的地址需要跟业务流的目的地址一致,将RSVP报文通过每跳上送路由器控制平面完成资源预留。这种设计虽然能够满足基于IP流定义的粒度,但无法在MPLS网络中逐跳预留资源。由于MPLS网络中的路由器基于MPLS标签进行转发,MPLS虚拟专用网络(Virtual Private Network,VPN)的场景也不具备用户的路由表信息,因此无法做到利用RSVP报文的目的地址逐跳穿越网络进行资源预留。RSVP is designed for IP and works only on IP networks. In order to perform resource reservation along the service path, the destination address of the RSVP path (PATH) message needs to be consistent with the destination address of the service flow, and the RSVP packet is sent to the router control plane to complete resource reservation by using each hop. Although this design can meet the granularity defined by IP flow, it cannot reserve resources hop by hop in the MPLS network. Because the routers in the MPLS network are forwarded based on the MPLS label, the scenario of the MPLS virtual private network (VPN) does not have the routing table information of the user. Therefore, the destination address of the RSVP packet cannot be traversed through the network. Resource reservation.
另外,RSVP中将流定义为IP地址、协议标识(Identity,ID)和端口号的组合。这样的定义有局限性,而且RSVP不能对流定义进行管理和控制。In addition, the flow is defined in RSVP as a combination of an IP address, an agreement identifier (Identity, ID), and a port number. This definition has limitations and RSVP cannot manage and control the flow definition.
再者,RSVP是一个相当复杂的协议,它定义了协议软状态,这个软状态通过定时刷新维持。当为大量业务流进行资源预留时,RSVP控制平面需要维护大量信息,定时在网络中双向地通过PATH、预留(RESerVation,RESV)消息刷新预留资源,对于超时的资源预留还要端到端地通过信令来清除之前的资源预留。这样复杂的操作消耗大量中央处理单元(Central Processing Unit,CPU)资源,进而使得RSVP的规格受到很大限 制。Furthermore, RSVP is a fairly complex protocol that defines the soft state of the protocol, which is maintained by a timed refresh. When resource reservation is performed for a large number of service flows, the RSVP control plane needs to maintain a large amount of information, and periodically refresh the reserved resources in the network through the PATH and the reservation (RESerVation, RESV) messages, and the resource reservation for the timeout is also required. The previous resource reservation is cleared by signaling to the end. Such complicated operations consume a large amount of central processing unit (CPU) resources, which in turn makes RSVP specifications very limited. system.
而且,RSVP需要判断对资源预留是否成功,也就是说,RSVP需要预留和确认的双方向的RSVP报文传递,这样会造成很大的开销,消耗大量CPU资源。Moreover, the RSVP needs to determine whether the resource reservation is successful. That is to say, the RSVP needs to reserve and confirm the bidirectional RSVP packet transmission, which causes a large overhead and consumes a large amount of CPU resources.
并且,RSVP进行的资源预留只考虑了带宽资源,而没有考虑诸如承诺接入速率(Committed Access Rate,CAR)等资源。Moreover, resource reservation by RSVP only considers bandwidth resources, and does not consider resources such as Committed Access Rate (CAR).
另一方面,资源预留协议流量工程(Resource Reservation Protocol-Traffic Engineering,RSVP-TE)可以为MPLS网络建立资源预留,但是RSVP-TE不能为MPLS网络中之外的其他的网络类型建立资源预留,并且RSVP-TE建立资源预留的过程与建立业务流转发路径的过程是耦合的。这样,不仅导致了RSVP-TE建立资源预留和部署业务流转发路径的时间顺序不灵活,同时也增大了对业务流转发路径建立的需求,导致了不同的业务流需要有不同的转发标签才能基于流进行资源预留。On the other hand, Resource Reservation Protocol-Traffic Engineering (RSVP-TE) can establish resource reservation for MPLS networks, but RSVP-TE cannot establish resource pre-requisites for other network types except MPLS networks. The process of establishing a resource reservation with RSVP-TE is coupled with the process of establishing a traffic flow forwarding path. In this way, the time sequence of the resource reservation and the deployment of the service flow forwarding path is inflexible, and the requirements for the establishment of the service flow forwarding path are also increased. As a result, different service flows need different forwarding labels. Resource reservation based on the stream.
图1是本发明一个实施例的建立服务质量预留的方法的流程图。图1所示的方法是在业务流转发路径建立之后执行的,该方法包括:1 is a flow chart of a method of establishing a quality of service reservation in accordance with an embodiment of the present invention. The method shown in FIG. 1 is performed after the service flow forwarding path is established, and the method includes:
101,第一节点获取第一协议报文,该第一协议报文包括第一流定义域、第一QoS需求域和第一转发头信息域,该第一协议报文用于为业务流建立QoS预留,该第一转发头信息域用于指示业务流转发路径。101. The first node obtains a first protocol packet, where the first protocol packet includes a first flow definition domain, a first QoS requirement domain, and a first forwarding header information domain, where the first protocol packet is used to establish a QoS for the service flow. Reserved, the first forwarding header information field is used to indicate a service flow forwarding path.
102,第一节点根据该第一流定义域确定流以及流分类规则,该流分类规则用于后续业务报文进行流分类以确定该后续业务报文属于该流。102. The first node determines, according to the first flow domain, a flow and a traffic classification rule, where the traffic classification rule is used to perform traffic classification on the subsequent service packet to determine that the subsequent service packet belongs to the flow.
103,第一节点提取该第一QoS需求域中的第一QoS需求信息。103. The first node extracts first QoS requirement information in the first QoS requirement domain.
104,第一节点生成绑定关系,该绑定关系为该流与该第一QoS需求信息之间的绑定关系。104. The first node generates a binding relationship, where the binding relationship is a binding relationship between the flow and the first QoS requirement information.
本发明实施例通过协议报文确定流以及QoS需求信息,进一步生成流与QoS需求信息之间的绑定关系,能够为业务流建立QoS预留,该协议报文的逐跳转发能够为业务流逐跳地建立QoS预留,进而能够保障业务流的QoS,并且该预留能够适应各种网络类型。The embodiment of the present invention determines the flow and the QoS requirement information by using the protocol packet, and further generates a binding relationship between the flow and the QoS requirement information, and can establish a QoS reservation for the service flow, and the hop-by-hop forwarding of the protocol packet can be a service. The QoS reservation is established hop by hop, thereby ensuring the QoS of the service flow, and the reservation can be adapted to various network types.
应注意,本发明实施例中,建立QoS预留不仅是建立了带宽资源的资源预留,并且同时还建立了诸如CAR等资源的预留。本发明实施例中将带宽资源和CAR等资源的预留统称为QoS预留。It should be noted that, in the embodiment of the present invention, establishing a QoS reservation not only establishes a resource reservation of a bandwidth resource, but also establishes a reservation of a resource such as a CAR. In the embodiment of the present invention, reservations of resources such as bandwidth resources and CARs are collectively referred to as QoS reservations.
本发明实施例中,建立服务质量预留的过程是在业务流转发路径建立之后才执行的,这样就实现了业务流的服务质量预留建立与业务流转发路径建立之间的完全解耦。也就是说,在业务流转发路径建立的过程中没有同时进行服务质量资源建立的过程。那 么,在业务流转发路径建立之后已经可以进行正常的业务流的转发,只是,由于没有建立服务质量预留,已经建立好的业务流转发路径不一定能够保证业务流的服务质量。In the embodiment of the present invention, the process of establishing the QoS reservation is performed after the service flow forwarding path is established, so that complete decoupling between the service quality reservation establishment of the service flow and the establishment of the service flow forwarding path is implemented. That is to say, in the process of establishing a service flow forwarding path, there is no process of establishing a service quality resource at the same time. That After the service flow forwarding path is established, normal service flow forwarding can be performed. However, since the service quality reservation is not established, the established service flow forwarding path does not necessarily guarantee the service quality of the service flow.
本发明实施例中,为了保障业务流的服务质量,在业务流转发路径建立之后,再逐跳地建立QoS预留。其中,业务流转发路径的每一跳均可称之为节点。In the embodiment of the present invention, in order to guarantee the service quality of the service flow, after the service flow forwarding path is established, the QoS reservation is established hop by hop. Each hop of the service flow forwarding path may be referred to as a node.
本发明实施例中,节点可以是转发设备,例如可以是交换机,或者也可以是路由器,或者具有交换功能的设备,或者是具有路由功能的设备。另外,节点可以是网络中的运营商边缘(Provider Edge,PE)设备,或者也可以是运营商(Provider,P)设备,或者也可以是用户边缘(Customer Edge,CE)设备,本发明实施例对此不作限定。In the embodiment of the present invention, the node may be a forwarding device, for example, may be a switch, or may be a router, or a device with a switching function, or a device with a routing function. In addition, the node may be a Provider Edge (PE) device in the network, or may be a Provider (P) device, or may be a Customer Edge (CE) device, in the embodiment of the present invention. This is not limited.
本发明实施例中,图1中的第一节点可以是业务流转发路径中的中间节点,也可以是业务流转发路径的最后一个节点。In the embodiment of the present invention, the first node in FIG. 1 may be an intermediate node in a service flow forwarding path, or may be a last node of a service flow forwarding path.
可选地,作为一个实施例,第一节点可以是从第三节点接收该第一协议报文,其中,该第三节点可以是业务流转发路径中该第一节点的上一跳节点。Optionally, as an embodiment, the first node may receive the first protocol packet from the third node, where the third node may be a previous hop node of the first node in the service flow forwarding path.
可选地,本发明实施例中,第一协议报文可以是由该第三节点根据业务需求生成的,再由该第一节点从该第三节点获取该第一协议报文。该第三节点可以是发起业务流服务质量申请的主机,或者也可以是发起业务流服务质量申请的PE设备。此时,可理解为,该第三节点为该业务流转发路径的首节点,该第一节点为第三节点的下一跳节点。也就是说,第一节点为该业务流转发路径的首节点的下一跳节点。Optionally, in the embodiment of the present invention, the first protocol packet may be generated by the third node according to the service requirement, and the first node obtains the first protocol packet from the third node. The third node may be a host that initiates a service flow service quality application, or may also be a PE device that initiates a service flow service quality application. At this time, it can be understood that the third node is the first node of the service flow forwarding path, and the first node is the next hop node of the third node. That is, the first node is the next hop node of the first node of the service flow forwarding path.
可选地,作为一个实施例,第一协议报文的形式可以是服务质量预留(QoS RESV)消息。即,该第一节点可以接收QoS RESV消息,该QoS RESV消息包括第一流定义域、第一QoS需求域和第一转发头信息域。可选地,第一协议报文的形式也可以是其他类型的消息,本发明实施例对此不作限定。Optionally, as an embodiment, the first protocol packet may be in the form of a Quality of Service Reservation (QoS RESV) message. That is, the first node may receive a QoS RESV message including a first flow definition domain, a first QoS requirement domain, and a first forwarding header information domain. Optionally, the form of the first protocol packet may also be other types of messages, which is not limited by the embodiment of the present invention.
可选地,该QoS RESV消息中还可携带信息域。该信息域包括第一协议报文在建立QoS预留时的监控信息。该监控信息可以包括带宽预留是否完成、是否有队列拥塞丢包发生、建立QoS预留的路径信息、业务流报文统计信息中的一个或多个。并且,可选地,该QoS RESV消息还可包括多个可选域,该多个可选域可用于与该第一协议报文相关的指示信息。本发明对此不作限定。Optionally, the QoS RESV message may further carry an information domain. The information field includes monitoring information when the first protocol packet establishes a QoS reservation. The monitoring information may include one or more of whether the bandwidth reservation is completed, whether there is a queue congestion packet loss, a path information for establishing a QoS reservation, and a service flow packet statistics. And optionally, the QoS RESV message may further include a plurality of optional domains, where the multiple optional domains are available for the indication information related to the first protocol packet. The invention is not limited thereto.
这样,可使QoS RESV消息中的必选域的数量比较少,便于对该QoS RESV消息的处理。例如可以在硬件层面处理该QoS RESV消息,比如直接在转发平面处理该QoS RESV消息而不上送到控制平面。而且,可以降低该QoS RESV消息的发送频率,由控制层面的控制实体进行处理,从而能够节省资源。 In this way, the number of mandatory domains in the QoS RESV message can be made smaller, which facilitates the processing of the QoS RESV message. For example, the QoS RESV message can be processed at the hardware level, such as processing the QoS RESV message directly at the forwarding plane without being sent to the control plane. Moreover, the transmission frequency of the QoS RESV message can be reduced, and processed by the control entity at the control plane, thereby saving resources.
可选地,作为另一个实施例,本发明实施例中,信息域可以承载在服务质量信息(QoS INFO)消息中。该第一节点可在获取QoS RESV消息的同时获取该QoS INFO消息,或者该QoS INFO消息可以与QoS RESV消息的周期不同。该信息域可包括第一协议报文在建立QoS预留的监控信息。该监控信息可以包括带宽预留是否完成、是否有队列拥塞丢包发生、建立QoS预留的路径信息、业务流报文统计信息中的一个或多个。Optionally, as another embodiment, in the embodiment of the present invention, the information domain may be carried in a quality of service information (QoS INFO) message. The first node may acquire the QoS INFO message while acquiring the QoS RESV message, or the QoS INFO message may be different from the period of the QoS RESV message. The information field may include monitoring information for establishing a QoS reservation for the first protocol message. The monitoring information may include one or more of whether the bandwidth reservation is completed, whether there is a queue congestion packet loss, a path information for establishing a QoS reservation, and a service flow packet statistics.
也就是说,第一协议报文以QoS RESV消息的形式存在可以是以下的任意一种情形:That is to say, the first protocol message exists in the form of a QoS RESV message, which may be any of the following situations:
(1)QoS RESV消息中可以仅包括第一流定义域、第一QoS需求域和第一转发头信息域,其中第一流定义域、第一QoS需求域和第一转发头信息域可称为3个必选域;或者,(1) The QoS RESV message may include only the first flow definition domain, the first QoS requirement domain, and the first forwarding header information domain, where the first flow definition domain, the first QoS requirement domain, and the first forwarding header information domain may be referred to as 3 Required fields; or,
(2)QoS RESV消息中可以包括第一流定义域、第一QoS需求域、第一转发头信息域和信息域,其中所述信息域是可选域;或者,(2) The QoS RESV message may include a first flow definition domain, a first QoS requirement domain, a first forwarding header information domain, and an information domain, where the information domain is an optional domain; or
(3)QoS RESV消息和QoS INFO消息同时用于建立QoS预留。且QoS RESV消息中包括第一流定义域、第一QoS需求域和第一转发头信息域,QoS INFO消息中包括信息域。本发明对此不作限定。(3) The QoS RESV message and the QoS INFO message are simultaneously used to establish a QoS reservation. The QoS RESV message includes a first flow definition domain, a first QoS requirement domain, and a first forwarding header information domain, and the QoS INFO message includes an information domain. The invention is not limited thereto.
本发明实施例中,第一流定义域可包括第一部分第一流定义域,其中第一部分第一流定义域可包括以下至少一种:源IP地址的范围、目的IP地址的范围、协议ID、端口号的范围、源MAC地址的范围和目的MAC地址的范围。并且,第一部分第一流定义域可以是业务流转发路径的首节点生成的。其中,首节点可以是发起业务流服务质量申请的主机,或者也可以是发起业务流服务质量申请的PE设备。In the embodiment of the present invention, the first flow definition domain may include the first partial first flow definition domain, where the first partial first flow definition domain may include at least one of the following: a range of the source IP address, a range of the destination IP address, a protocol ID, and a port number. The range, the range of source MAC addresses, and the range of destination MAC addresses. And, the first part of the first flow definition domain may be generated by the first node of the service flow forwarding path. The first node may be a host that initiates a service flow service quality application, or may be a PE device that initiates a service flow service quality application.
具体地,地址的范围可以是地址的前缀。例如,源IP地址的范围可以是源IP地址的前缀,目的IP地址的范围可以是目的IP地址的前缀,源MAC地址的范围可以是源MAC地址的前缀,目的MAC地址的范围可以是目的MAC地址的前缀。Specifically, the range of addresses may be the prefix of the address. For example, the range of the source IP address may be the prefix of the source IP address, the range of the destination IP address may be the prefix of the destination IP address, the range of the source MAC address may be the prefix of the source MAC address, and the range of the destination MAC address may be the destination MAC address. The prefix of the address.
可选地,第一流定义域还可以包括第二部分第一流定义域,其中第二部分第一流定义域可包括以下中的一个或多个:MPLS标签、GRE IP头、MAC in MAC头和虚拟可扩展局域网(Virtual Extensible Local Area Network,VXLAN)头,本发明实施例对此不作限定。例如,若第一节点从第三节点接收该第一协议报文,并且该第三节点处于MPLS网络,那么该第二部分第一流定义域可包括由该第三节点生成的MPLS标签。应注意,MPLS标签可以是单层或多层的。例如,若第一节点从第三节点接收该第一协议报文,并且该第三节点通过GRE隧道转发第一协议报文,那么该第二部分第一流定义域可包括GRE IP头。例如,若第一节点从第三节点接收该第一协议报文,并且该第三节点通过 MAC隧道转发第一协议报文,那么该第二部分第一流定义域可包括MAC in MAC头。例如,若第一节点从第三节点接收该第一协议报文,并且该第三节点通过VXLAN隧道转发第一协议报文,那么该第二部分第一流定义域可包括VXLAN头。Optionally, the first flow definition domain may further include a second partial first flow definition domain, where the second partial first flow definition domain may include one or more of the following: an MPLS label, a GRE IP header, a MAC in MAC header, and a virtual The Virtual Extensible Local Area Network (VXLAN) header is not limited in this embodiment of the present invention. For example, if the first node receives the first protocol packet from the third node, and the third node is in the MPLS network, the second part of the first flow definition domain may include an MPLS label generated by the third node. It should be noted that the MPLS label can be single layer or multiple layers. For example, if the first node receives the first protocol packet from the third node, and the third node forwards the first protocol packet through the GRE tunnel, the second part of the first flow definition domain may include a GRE IP header. For example, if the first node receives the first protocol packet from the third node, and the third node passes The MAC tunnel forwards the first protocol packet, and the second part of the first stream definition domain may include a MAC in MAC header. For example, if the first node receives the first protocol packet from the third node, and the third node forwards the first protocol packet through the VXLAN tunnel, the second part of the first flow definition domain may include a VXLAN header.
可以理解为,该第二部分第一流定义域是在建立QoS预留的过程中,由节点动态增加或修改的。这样,本发明实施例扩充了流定义的范围,提高了对流定义的分类能力,能够支持更多的流分类的字段。并且,可以对流定义进行管理和控制。It can be understood that the second part of the first stream definition domain is dynamically added or modified by the node in the process of establishing the QoS reservation. In this way, the embodiment of the present invention expands the scope of the stream definition, improves the classification ability of the stream definition, and can support more fields of the stream classification. And, you can manage and control the flow definition.
本发明实施例中,第一QoS需求域包括第一QoS需求信息,用于表示业务流对QoS的需求,该第一QoS需求信息可以在该第一协议报文中以一定的格式编排携带。例如,该第一QoS需求信息可包括QoS队列,QoS队列可以是如下参数中的一个或多个:队列调度方式、队列优先级和队列的带宽。该第一QoS需求信息也可包括其他QoS参数,例如CAR、染色和setting等,本发明对此不作限定。In the embodiment of the present invention, the first QoS requirement field includes the first QoS requirement information, which is used to indicate the QoS requirement of the service flow, and the first QoS requirement information may be carried in a certain format in the first protocol packet. For example, the first QoS requirement information may include a QoS queue, and the QoS queue may be one or more of the following parameters: a queue scheduling manner, a queue priority, and a bandwidth of the queue. The first QoS requirement information may also include other QoS parameters, such as CAR, coloring, and setting, which are not limited by the present invention.
其中,该第一QoS需求域可以是首节点根据业务流对QoS的需求信息经过计算确定的,也可以是预配置在该首节点中的,本发明对此不作限定。首节点可以是发起业务流服务质量申请的主机,或者也可以是发起业务流服务质量申请的PE设备。The first QoS requirement domain may be determined by the first node according to the QoS requirement information of the service flow, or may be pre-configured in the first node, which is not limited by the present invention. The first node may be a host that initiates a service flow service quality application, or may also be a PE device that initiates a service flow service quality application.
本发明实施例中,第一转发头信息域包括第一部分第一转发头信息域。其中,第一部分第一转发头信息域可包括目的IP地址;或者,第一部分第一转发头信息域可包括源IP地址、目的IP地址和协议ID;或者,第一部分第一转发头信息域可包括源IP地址、目的IP地址、源端口、目的端口和协议ID;或者,第一部分第一转发头信息域可包括目的MAC地址;或者,第一部分第一转发头信息域可包括源IP地址、目的IP地址,源MAC地址和目的MAC地址。并且,第一部分第一转发头信息域可以是由首节点生成的。首节点可以是发起业务流服务质量申请的主机,或者也可以是发起业务流服务质量申请的PE设备。其中,源IP地址可以为业务流的源IP地址,目的IP地址可以为业务流的目的IP地址,源MAC地址可以为业务流的源MAC地址,目的MAC地址可以为业务流的目的MAC地址。In the embodiment of the present invention, the first forwarding header information field includes a first part of the first forwarding header information field. The first part of the first forwarding header information field may include a destination IP address; or the first part of the first forwarding header information field may include a source IP address, a destination IP address, and a protocol ID; or, the first part of the first forwarding header information field may be The source IP address, the destination IP address, the source port, the destination port, and the protocol ID are included; or the first part of the first forwarding header information field may include the destination MAC address; or the first part of the first forwarding header information field may include the source IP address, Destination IP address, source MAC address, and destination MAC address. And, the first part of the first forwarding header information field may be generated by the first node. The first node may be a host that initiates a service flow service quality application, or may also be a PE device that initiates a service flow service quality application. The source IP address can be the source IP address of the service flow, the destination IP address can be the destination IP address of the service flow, the source MAC address can be the source MAC address of the service flow, and the destination MAC address can be the destination MAC address of the service flow.
可以理解为,该第一部分第一转发头信息域是属于第一部分第一流定义域的范畴的。具体地,第一部分第一转发头信息域中的源IP地址是属于第一部分第一流定义域中的源IP地址的范围中的一个。第一部分第一转发头信息域中的目的IP地址是属于第一部分第一流定义域中的目的IP地址的范围中的一个。第一部分第一转发头信息域中的源MAC地址是属于第一部分第一流定义域中的源MAC地址的范围中的一个。第一部分第一转发头信息域中的目的MAC地址是属于第一部分第一流定义域中的目的MAC地址的 范围中的一个。It can be understood that the first part of the first forwarding header information field belongs to the category of the first part of the first stream defining domain. Specifically, the source IP address in the first part of the first forwarding header information field is one of the ranges belonging to the source IP address in the first part of the first stream definition domain. The destination IP address in the first part of the first forwarding header information field is one of the ranges belonging to the destination IP address in the first part of the first stream definition domain. The source MAC address in the first part of the first forwarding header information field is one of the ranges belonging to the source MAC address in the first part of the first stream definition domain. The destination MAC address of the first part of the first forwarding header information field belongs to the destination MAC address of the first part of the first stream definition domain. One of the ranges.
可选地,第一转发头信息域还可包括第二部分第一转发头信息域。其中第二部分第一转发头信息域可包括以下中的一个或多个:MPLS标签、GRE IP头、MAC in MAC头和VXLAN头,本发明实施例对此不作限定。例如,若第一节点从第三节点接收该第一协议报文,且该第三节点处于MPLS网络,该第二部分第一转发头信息域可包括由该第三节点生成的MPLS标签。应注意,MPLS标签可以是单层或多层的。例如,若第一节点从第三节点接收该第一协议报文,并且该第三节点通过GRE隧道转发第一协议报文,那么该第二部分第一转发头信息域可包括GRE IP头。例如,若第一节点从第三节点接收该第一协议报文,并且该第三节点通过MAC隧道转发第一协议报文,那么该第二部分第一转发头信息域可包括MAC in MAC头。例如,若第一节点从第三节点接收该第一协议报文,并且该第三节点通过VXLAN隧道转发第一协议报文,那么该第二部分第一转发头信息域可包括VXLAN头。Optionally, the first forwarding header information field may further include a second part of the first forwarding header information field. The second part of the first forwarding header information field may include one or more of the following: an MPLS label, a GRE IP header, a MAC in MAC header, and a VXLAN header, which are not limited in this embodiment of the present invention. For example, if the first node receives the first protocol packet from the third node, and the third node is in the MPLS network, the second part of the first forwarding header information field may include an MPLS label generated by the third node. It should be noted that the MPLS label can be single layer or multiple layers. For example, if the first node receives the first protocol packet from the third node, and the third node forwards the first protocol packet through the GRE tunnel, the second part of the first forwarding header information field may include a GRE IP header. For example, if the first node receives the first protocol packet from the third node, and the third node forwards the first protocol packet through the MAC tunnel, the second part of the first forwarding header information field may include a MAC in MAC header. . For example, if the first node receives the first protocol packet from the third node, and the third node forwards the first protocol packet through the VXLAN tunnel, the second portion of the first forwarding header information field may include a VXLAN header.
可以理解为,该第二部分第一转发头信息域是在建立QoS预留的过程中,由节点动态增加或修改的。这样,本发明实施例中定义的第一协议报文可以应用于各种网络类型,例如IP网络,MPLS网络,或者IP和MPLS的混合网络,或者也可应用于跨域的网络等。It can be understood that the second part of the first forwarding header information field is dynamically added or modified by the node in the process of establishing the QoS reservation. In this way, the first protocol packet defined in the embodiment of the present invention can be applied to various network types, such as an IP network, an MPLS network, or a hybrid network of IP and MPLS, or can also be applied to a cross-domain network.
这样,本发明实施例中,第一转发头信息域用于引导第一协议报文沿着业务流转发路径进行转发。该第一转发头信息域包含了与业务流的转发路径一致的业务流转发路径信息,能够保证第一协议报文沿着业务流转发路径进行转发,可使业务流转发路径的每一个节点根据第一协议报文为业务流建立QoS预留。并且,每一个节点可更新第二部分第一转发头信息域,并将更新之后的协议报文转发至业务流转发路径中的下一跳节点。Thus, in the embodiment of the present invention, the first forwarding header information field is used to guide the first protocol packet to be forwarded along the service flow forwarding path. The first forwarding header information field includes the service flow forwarding path information that is consistent with the forwarding path of the service flow, and can ensure that the first protocol packet is forwarded along the service flow forwarding path, so that each node of the service flow forwarding path can be The first protocol packet establishes a QoS reservation for the service flow. Moreover, each node may update the second part of the first forwarding header information field, and forward the updated protocol message to the next hop node in the service flow forwarding path.
本发明实施例中,步骤102中的流是根据第一流定义域进行定义的。并且可确定流分类规则,该流分类规则可用于后续业务报文进行流分类以确定后续业务报文属于该流。相同的流具有相同的QoS处理过程。In the embodiment of the present invention, the flow in step 102 is defined according to the first flow definition domain. And the flow classification rule can be used to perform traffic classification on the subsequent service packets to determine that the subsequent service packets belong to the flow. The same stream has the same QoS processing.
具体地,流分类规则是第一节点根据第一流定义域生成的。在本发明实施例为业务流建立QoS预留之后,当后续业务报文经过该第一节点时,第一节点可根据流分类规则,对该后续业务报文进行流分类,判断该后续业务报文是否属于该流。当第一节点可确定该后续业务报文属于该流时,可执行与该流对应的相同的QoS处理过程。Specifically, the flow classification rule is generated by the first node according to the first flow definition domain. After the QoS reservation is established for the service flow in the embodiment of the present invention, when the subsequent service packet passes the first node, the first node may perform traffic classification on the subsequent service packet according to the traffic classification rule, and determine the subsequent service report. Whether the text belongs to the stream. When the first node can determine that the subsequent service message belongs to the flow, the same QoS processing procedure corresponding to the flow can be performed.
本发明实施例中,第一节点可以根据第一部分第一流定义域确定流,也可以结合第二部分第一流定义域和第一部分第一流定义域一起来确定流,本发明对此不作限定。In the embodiment of the present invention, the first node may determine the flow according to the first part of the first flow definition domain, and may also determine the flow together with the second partial first flow definition domain and the first partial first flow definition domain, which is not limited by the present invention.
可选地,第一节点可以根据第一流定义域中的IP地址的范围和/或MAC地址的范围 确定流。可选地,第一节点也可以结合第一流定义域中的IP地址的范围和MPLS标签等一起确定流。本发明实施例对此不作限定。Optionally, the first node may define a range of IP addresses and/or a range of MAC addresses according to the first flow. Determine the flow. Optionally, the first node may also determine the flow together with the range of the IP address in the first flow definition domain, together with the MPLS label, and the like. This embodiment of the present invention does not limit this.
具体地,在同一网络的不同VPN中,可能会有相同的IP地址,这时只根据IP地址的范围不能唯一地确定流。因此,需要结合其他信息与IP地址的范围一起来确定流。这里所说的其他信息可以是MPLS标签,或者可以是GRE IP头,或者也可以是MAC in MAC头,或者也可以是VXLAN头等,或者也可以是其他用于区别不同网络类型的标识,本发明对此不作限定。Specifically, in different VPNs of the same network, there may be the same IP address, and the flow cannot be uniquely determined only according to the range of the IP address. Therefore, it is necessary to combine other information with the range of IP addresses to determine the flow. The other information mentioned herein may be an MPLS label, or may be a GRE IP header, or may be a MAC in MAC header, or may be a VXLAN header, or the like, or may be other identifiers for distinguishing different network types. This is not limited.
可选地,本发明实施例中,在步骤103中提取的第一QoS需求信息可以是QoS队列。Optionally, in the embodiment of the present invention, the first QoS requirement information extracted in step 103 may be a QoS queue.
本发明实施例中,在步骤104建立绑定关系,即可认为该第一节点为该业务流建立了QoS预留。可选地,该绑定关系可以是流与QoS队列的绑定关系。In the embodiment of the present invention, the binding relationship is established in step 104, and the first node is considered to establish a QoS reservation for the service flow. Optionally, the binding relationship may be a binding relationship between the flow and the QoS queue.
可选地,作为一个实施例,当第一节点为业务流转发路径的中间节点时,在建立绑定关系之后,第一节点根据第一协议报文生成第二协议报文,该第二协议报文包括第二流定义域、第一QoS需求域和第二转发头信息域。进一步地,第一节点根据第二转发头信息域,将第二协议报文发送至第二节点,该第二节点为根据第一转发头信息域进行查表所确定的下一跳节点。其中,第二流定义域是基于第一流定义域或者是基于第一流定义域和第一转发头信息域生成的。第二转发头信息域是基于述第一转发头信息域生成的。该第二协议报文用于由第二节点根据该第二协议报文为业务流建立QoS预留。Optionally, as an embodiment, when the first node is an intermediate node of the service flow forwarding path, after the binding relationship is established, the first node generates a second protocol packet according to the first protocol packet, where the second protocol is generated. The message includes a second flow definition domain, a first QoS requirement domain, and a second forwarding header information domain. Further, the first node sends the second protocol packet to the second node according to the second forwarding header information field, where the second node is the next hop node determined according to the first forwarding header information field. The second flow definition domain is generated based on the first flow definition domain or based on the first flow definition domain and the first forwarding header information domain. The second forwarding header information field is generated based on the first forwarding header information field. The second protocol packet is used by the second node to establish a QoS reservation for the service flow according to the second protocol packet.
具体地,第二流定义域可包括第一部分第二流定义域和第二部分第二流定义域。并且第一部分第二流定义域与第一部分第一流定义域相同,第二部分第二流定义域与第二部分第一流定义域不同。Specifically, the second flow definition domain may include a first partial second flow definition domain and a second partial second flow definition domain. And the first part of the second stream defining domain is the same as the first part of the first stream defining domain, and the second part of the second stream defining domain is different from the second part of the first stream defining domain.
可理解为,若第一流定义域不包括第二部分第一流定义域,第二流定义域可以是第一节点在第一流定义域的基础上增加第二部分第二流定义域之后所生成的。若第一流定义域包括第二部分第一流定义域,第二流定义域可以是第一节点将第一流定义域中的第二部分第一流定义域进行替换为第二部分第二流定义域后所生成的。It can be understood that, if the first stream definition domain does not include the second part of the first stream domain, the second stream domain may be generated after the first node adds the second part of the second stream domain to the first stream domain. . If the first flow definition domain includes the second partial first flow definition domain, the second flow definition domain may be that the first node replaces the second partial first flow domain in the first flow definition domain with the second partial second flow domain Generated.
这里,第二部分第二流定义域可包括以下至少一种:MPLS标签、GRE IP头、MAC in MAC头和VXLAN头。Here, the second partial second flow definition domain may include at least one of the following: an MPLS label, a GRE IP header, a MAC in MAC header, and a VXLAN header.
例如,当第一节点处于MPLS网络时,第二部分第二流定义域可包括MPLS标签,该MPLS标签是该第一节点根据第一转发头信息域查找标签转发表所确定的。应注意,MPLS标签可以是单层或多层的。例如,当第一节点通过GRE隧道转发第一协议报文时,那么该第二部分第二流定义域可包括GRE IP头,该GRE IP头是该第一节点根据第一转发 头信息域查找路由表所确定的。当第一节点通过MAC隧道转发第一协议报文时,那么该第二部分第二流定义域可包括MAC in MAC头,该MAC in MAC头是该第一节点根据第一转发头信息域查找第一MAC转发表所确定的。例如,当第一节点通过VXLAN隧道转发第一协议报文时,那么该第二部分第二流定义域可包括VXLAN头,该VXLAN头是该第一节点根据第一转发头信息域查找第二MAC转发表所确定的。For example, when the first node is in the MPLS network, the second part of the second flow definition domain may include an MPLS label, and the MPLS label is determined by the first node according to the first forwarding header information field lookup label forwarding table. It should be noted that the MPLS label can be single layer or multiple layers. For example, when the first node forwards the first protocol packet through the GRE tunnel, then the second part of the second flow definition domain may include a GRE IP header, where the GRE IP header is the first node according to the first forwarding The header information field is determined by the routing table. When the first node forwards the first protocol packet through the MAC tunnel, the second part of the second flow definition domain may include a MAC in MAC header, where the MAC in MAC header is the first node searches according to the first forwarding header information field. Determined by the first MAC forwarding table. For example, when the first node forwards the first protocol packet through the VXLAN tunnel, the second portion of the second flow definition domain may include a VXLAN header, where the VXLAN header is the first node searches for the second according to the first forwarding header information field. Determined by the MAC forwarding table.
可选地,所述第二转发头信息域包括目的IP地址;或者,所述第二转发头信息域包括源IP地址、目的IP地址和协议ID;或者,所述第二转发头信息域包括源IP地址、目的IP地址、源端口、目的端口和协议ID;或者,所述第二转发头信息域包括目的MAC地址;或者,所述第二转发头信息域包括源IP地址、目的IP地址、源MAC地址和目的MAC地址。Optionally, the second forwarding header information field includes a destination IP address; or the second forwarding header information field includes a source IP address, a destination IP address, and a protocol ID; or the second forwarding header information field includes a source IP address, a destination IP address, a source port, a destination port, and a protocol ID; or the second forwarding header information field includes a destination MAC address; or the second forwarding header information field includes a source IP address and a destination IP address. Source MAC address and destination MAC address.
具体地,第二转发头信息域包括第一部分第二转发头信息域和第二部分第二转发头信息域,并且第一部分第二转发头信息域与第一部分第一转发头信息域相同,第二部分第二转发头信息域与第二部分第一转发头信息域不同。Specifically, the second forwarding header information field includes a first partial second forwarding header information field and a second partial second forwarding header information domain, and the first partial second forwarding header information domain is the same as the first partial first forwarding header information domain, The two-part second forwarding header information field is different from the second partial first forwarding header information field.
可理解为,若第一转发头信息域不包括第二部分第一转发头信息域,第二转发头信息域可以是第一节点在第一转发头信息域的基础上增加第二部分第二转发头信息域之后所生成的。若第一转发头信息域包括第二部分第一转发头信息域,第二转发头信息域可以是第一节点将第一转发头信息域中的第二部分第一转发头信息域进行替换为第二部分第二转发头信息域后所生成的。其中,第二部分第二转发头信息域用于指示第一节点的下一跳信息。It can be understood that, if the first forwarding header information field does not include the second part of the first forwarding header information field, the second forwarding header information field may be that the first node adds the second part to the second forwarding header information field. Generated after forwarding the header information field. If the first forwarding header information field includes the second partial first forwarding header information field, the second forwarding header information field may be that the first node replaces the second partial first forwarding header information field in the first forwarding header information field with The second part is generated after the second forwarding header information field. The second part of the second forwarding header information field is used to indicate the next hop information of the first node.
这里,第二部分第二转发头信息域可包括以下至少一种:MPLS标签、GRE IP头、MAC in MAC头和VXLAN头。Here, the second partial second forwarding header information field may include at least one of the following: an MPLS label, a GRE IP header, a MAC in MAC header, and a VXLAN header.
例如,当第一节点处于MPLS网络时,第二部分第二转发头信息域可包括MPLS标签,该MPLS标签是该第一节点根据第一转发头信息域查找标签转发表所确定的。应注意,MPLS标签可以是单层或多层的。例如,当第一节点通过GRE隧道转发第一协议报文时,那么该第二部分第二转发头信息域可包括GRE IP头,该GRE IP头是该第一节点根据第一转发头信息域查找路由表所确定的。当第一节点通过MAC隧道转发第一协议报文时,那么该第二部分第二转发头信息域可包括MAC in MAC头,该MAC in MAC头是该第一节点根据第一转发头信息域查找第一MAC转发表所确定的。例如,当第一节点通过VXLAN隧道转发第一协议报文时,那么该第二部分第二转发头信息域可包括VXLAN头,该VXLAN头是该第一节点根据第一转发头信息域查找第二MAC转发表所确定的。 For example, when the first node is in the MPLS network, the second part of the second forwarding header information field may include an MPLS label, and the MPLS label is determined by the first node according to the first forwarding header information field lookup label forwarding table. It should be noted that the MPLS label can be single layer or multiple layers. For example, when the first node forwards the first protocol packet through the GRE tunnel, the second part of the second forwarding header information field may include a GRE IP header, where the GRE IP header is the first node according to the first forwarding header information field. Look up the routing table to determine. When the first node forwards the first protocol packet through the MAC tunnel, the second part of the second forwarding header information field may include a MAC in MAC header, where the MAC in MAC header is the first node according to the first forwarding header information field. Find the first MAC forwarding table to determine. For example, when the first node forwards the first protocol packet through the VXLAN tunnel, the second portion of the second forwarding header information field may include a VXLAN header, where the VXLAN header is the first node searches according to the first forwarding header information field. Two MAC forwarding tables are determined.
应注意,本发明实施例中,若业务流转发路径的每一跳节点所在的网络均为IP网络,或者,业务流转发路径的每一跳节点所在的网络均为MAC网络,则第一定义域只包括第一部分第一流定义域,第一转发头信息域只包括第一部分第一转发头信息域。并且,第二流定义域与第一流定义域相同。It should be noted that, in the embodiment of the present invention, if the network where each hop node of the service flow forwarding path is located is an IP network, or the network where each hop node of the service flow forwarding path is located is a MAC network, the first definition is The domain includes only the first part of the first stream definition domain, and the first forwarding header information field includes only the first part of the first forwarding header information field. And, the second stream definition domain is the same as the first stream definition domain.
可选地,作为一个实施例,图1所示的方法还可包括:第一节点接收第三协议报文,该第三协议报文用于为第二业务流建立QoS预留,该第三协议报文包括第二QoS需求域。第一节点提取该第二QoS需求域中的第二QoS需求信息。当第一节点无法满足该第二QoS需求信息时,该第一节点发送告警消息,该告警消息用于指示该第一节点为该第二业务流建立QoS预留失败。然后,第一节点再根据该第三协议报文生成第四协议报文,并将该第四协议报文发送至该第一节点的下一跳节点,以便于下一跳节点根据第四协议报文建立QoS预留。Optionally, as an embodiment, the method shown in FIG. 1 may further include: the first node receives a third protocol packet, where the third protocol packet is used to establish a QoS reservation for the second service flow, where the third The protocol message includes a second QoS requirement field. The first node extracts second QoS requirement information in the second QoS requirement domain. When the first node cannot meet the second QoS requirement information, the first node sends an alarm message, where the alarm message is used to indicate that the first node fails to establish a QoS reservation for the second service flow. Then, the first node generates a fourth protocol packet according to the third protocol packet, and sends the fourth protocol packet to the next hop node of the first node, so that the next hop node is configured according to the fourth protocol. The message establishes a QoS reservation.
具体地,第一节点可以将告警消息发送至网管,进一步由网管进行人为干预完成在第一节点建立QoS预留。或者进一步由网管削减该第二业务流的QoS的带宽等,以在第一节点建立QoS预留。或者也可以进一步由网管进行其他的操作,本发明对此不作限定。Specifically, the first node may send an alarm message to the network management, and further complete the QoS reservation at the first node by performing a human intervention by the network management. Or the network management further reduces the bandwidth of the QoS of the second service flow, etc., to establish a QoS reservation at the first node. Alternatively, other operations may be performed by the network management system, which is not limited by the present invention.
可选地,作为另一个实施例,在步骤104中建立绑定关系之后,当在预设的时间段内没有业务使用该绑定关系时,第一节点删除该绑定关系。例如,可以在第一节点设置定时器,定时器的值可以是预先配置的。当在定时器设置的时间段内没有业务流经过该第一节点,或者也没有相关的协议报文经过该第一节点时,该第一节点可将绑定关系删除,也就是说第一节点释放所建立的QoS预留。Optionally, as another embodiment, after the binding relationship is established in step 104, when no binding service is used by the service within the preset time period, the first node deletes the binding relationship. For example, a timer can be set at the first node, and the value of the timer can be pre-configured. When no service flow passes through the first node in the time period set by the timer, or no related protocol packet passes through the first node, the first node may delete the binding relationship, that is, the first node. Release the established QoS reservation.
这样,如果对业务流不再有QoS要求,或者对于转发路径重构的其他业务流,只要停止发送业务流或者停止发送协议报文,对应的QoS预留即可在预设的时间段后被释放。之后,可以为其他业务流建立QoS预留,这样能够保证节点的资源利用率。In this way, if there is no longer a QoS requirement for the service flow, or for other service flows reconstructed by the forwarding path, as long as the service flow is stopped or the protocol packet is stopped, the corresponding QoS reservation can be used after a preset time period. freed. After that, QoS reservations can be established for other service flows, which can guarantee the resource utilization of the nodes.
可选地,作为一个实施例,本发明实施例中,第一协议报文还可包括队列ID,第一节点可根据该队列ID和第一QoS需求信息为该业务流分配层次化级别。随后,该队列ID和该层次化级别可用于为业务流建立层次化队列,并进一步为层次化队列进行调度部署。Optionally, as an embodiment, in the embodiment of the present invention, the first protocol packet may further include a queue ID, and the first node may allocate a layering level to the service flow according to the queue ID and the first QoS requirement information. The queue ID and the hierarchization level can then be used to establish a hierarchical queue for the traffic flow and further deploy the deployment for the hierarchical queue.
可选地,作为另一个实施例,本发明实施例中,第一协议报文还可包括队列ID和与队列ID对应的层次化级别。该队列ID和该层次化级别可用于为业务流建立层次化队列,并进一步为层次化队列进行调度部署。该层次化级别可以作为QoS RESV消息的一个可选域。 Optionally, in another embodiment, in the embodiment of the present invention, the first protocol packet may further include a queue ID and a layering level corresponding to the queue ID. The queue ID and the layering level can be used to establish a hierarchical queue for the service flow and further deploy the deployment for the hierarchical queue. This hierarchical level can be used as an optional domain for QoS RESV messages.
具体地,若第一QoS需求域包括队列,第一节点在步骤104生成流和队列的绑定关系的同时,可建立该队列的父队列及更高级祖先队列的层次化关系。该第一节点再接收到多个协议报文之后,可自顶向下将该多个协议报文中的与该第一协议报文的层次化级别相同的具有相同的队列ID的协议报文,编入上述建立的层次化队列中。这样,业务报文首先在最底层队列进行调度,随后在父队列进行调度,依次自底向上进行调度,最后到顶级队列进行调度,完成多次调度达到了层次化的带宽分配。其中,父队列的带宽和优先级可以在协议报文中携带、可以是子队列带宽的叠加、还可以是通过节点进行配置的。Specifically, if the first QoS requirement domain includes a queue, the first node may establish a hierarchical relationship between the parent queue of the queue and the higher-level ancestor queue while generating the binding relationship between the flow and the queue in step 104. After receiving the multiple protocol packets, the first node may top-down the protocol packets with the same queue ID as the hierarchical level of the first protocol packet in the multiple protocol packets. , programmed into the hierarchical queue established above. In this way, the service packet is first scheduled in the lowest-level queue, then scheduled in the parent queue, and then scheduled from the bottom up, and finally to the top-level queue for scheduling, and the multiple scheduling is completed to achieve hierarchical bandwidth allocation. The bandwidth and priority of the parent queue may be carried in the protocol packet, may be the superposition of the sub-queue bandwidth, or may be configured through the node.
这样,队列的层次化关系通过QoS预留的建立过程组织起来,也即,实现了QoS调度与层次化调度两者的结合。In this way, the hierarchical relationship of the queue is organized by the establishment process of the QoS reservation, that is, the combination of QoS scheduling and hierarchical scheduling is realized.
本发明实施例中,层次化队列的调度部署是一种网络部署QoS的方法。例如,网络首先为不同的用户群分配资源,使用户群之间达到一定的资源配比关系;其次再为一个用户群内部的不同用户分配资源或安排调度关系,可按优先级调度,或者也可按比例调度,使得用户群内部的用户获得资源配比;最后再为一个用户的不同业务流分配资源,达到不同业务流之间的资源配比。这种资源分配的方式是有层次的,通过队列的层次化关系来实现。In the embodiment of the present invention, the scheduling deployment of the hierarchical queue is a method for deploying QoS in the network. For example, the network first allocates resources for different user groups, so that the user groups reach a certain resource ratio relationship; secondly, allocate resources or schedule relationships for different users within a user group, which can be scheduled according to priority, or It can be scheduled according to proportions, so that users within the user group can obtain resource ratios; finally, resources are allocated for different service flows of one user, and the resource ratio between different service flows is achieved. This way of resource allocation is hierarchical and is achieved through a hierarchical relationship of queues.
本发明实施例通过逐跳地转发协议报文,在业务流转发路径的每一个节点上建立QoS预留,能够建立端到端(End to End,E2E)的QoS预留。并且在建立预留的过程中,不需要通过额外的消息进行预留确认,这样,一方面简化了软状态,另一方面可以支撑更大规模的E2E的QoS预留。In the embodiment of the present invention, the QoS reservation is established on each node of the service flow forwarding path by forwarding the protocol packet hop by hop, and an end to end (E2E) QoS reservation can be established. And in the process of establishing the reservation, there is no need to make a reservation confirmation by using an additional message, so that on the one hand, the soft state is simplified, and on the other hand, the QoS reservation of a larger E2E can be supported.
图2是本发明另一个实施例的建立服务质量预留的方法的流程图。图2所示的方法是在业务流转发路径建立之后执行的,该方法包括:2 is a flow chart of a method of establishing a quality of service reservation in accordance with another embodiment of the present invention. The method shown in FIG. 2 is performed after the service flow forwarding path is established, and the method includes:
201,第一节点生成绑定关系和协议报文,该绑定关系为流与QoS需求信息之间的绑定关系,该协议报文包括流定义域、QoS需求域和转发头信息域,该协议报文用于为业务流建立QoS预留,该流定义域用于指示该业务流的流,该QoS需求域用于指示该QoS需求信息,该转发头信息域用于指示业务流转发路径。201. The first node generates a binding relationship and a protocol packet, where the binding relationship is a binding relationship between the flow and the QoS requirement information, where the protocol packet includes a flow definition domain, a QoS requirement domain, and a forwarding header information domain. The protocol packet is used to establish a QoS reservation for the service flow, where the flow definition field is used to indicate the flow of the service flow, the QoS requirement domain is used to indicate the QoS requirement information, and the forwarding header information field is used to indicate the service flow forwarding path. .
202,第一节点根据转发头信息域,将该协议报文发送至第二节点,该第二节点为该转发头信息域所指示的下一跳节点。202. The first node sends the protocol packet to the second node according to the forwarding header information field, where the second node is the next hop node indicated by the forwarding header information field.
本发明实施例通过协议报文确定流以及QoS需求信息,进一步生成流与QoS需求信息之间的绑定关系,能够为业务流建立QoS预留,该协议报文的逐跳转发能够为业务流逐跳地建立QoS预留,进而能够保障业务流的QoS,并且该预留能够适应各种网络类型。 The embodiment of the present invention determines the flow and the QoS requirement information by using the protocol packet, and further generates a binding relationship between the flow and the QoS requirement information, and can establish a QoS reservation for the service flow, and the hop-by-hop forwarding of the protocol packet can be a service. The QoS reservation is established hop by hop, thereby ensuring the QoS of the service flow, and the reservation can be adapted to various network types.
可选地,本发明实施例中,第一节点可以是业务流转发路径的首节点。其中,首节点可以是发起业务流服务质量申请的主机,或者也可以是发起业务流服务质量申请的PE设备。Optionally, in the embodiment of the present invention, the first node may be a first node of the service flow forwarding path. The first node may be a host that initiates a service flow service quality application, or may be a PE device that initiates a service flow service quality application.
可选地,本发明实施例中,在步骤201中,第一节点生成绑定关系,即可认为该第一节点为业务流建立了QoS预留。该绑定关系为流与QoS需求信息的绑定关系。该流和该QoS需求信息可以是根据该业务流的业务需求预配置的。本发明实施例对此不作限定。Optionally, in the embodiment of the present invention, in step 201, the first node generates a binding relationship, and the first node is considered to establish a QoS reservation for the service flow. The binding relationship is a binding relationship between the flow and the QoS requirement information. The flow and the QoS requirement information may be pre-configured according to the service requirements of the service flow. This embodiment of the present invention does not limit this.
具体地,在步骤201中,第一节点可根据业务需求生成协议报文。且该协议报文包括流定义域、QoS需求域和转发头信息域。Specifically, in step 201, the first node may generate a protocol packet according to the service requirement. The protocol packet includes a flow domain, a QoS requirement domain, and a forwarding header information domain.
其中,流定义域可包括第一部分流定义域。该第一部分流定义域包括以下至少一种:源IP地址的范围、目的IP地址的范围、协议ID、端口号的范围、源MAC地址的范围和目的MAC地址的范围。具体地,地址的范围可以是地址的前缀。例如,源IP地址的范围可以是源IP地址的前缀,目的IP地址的范围可以是目的IP地址的前缀,源MAC地址的范围可以是源MAC地址的前缀,目的MAC地址的范围可以是目的MAC地址的前缀。The flow definition domain may include a first partial flow definition domain. The first partial flow definition domain includes at least one of the following: a range of a source IP address, a range of a destination IP address, a protocol ID, a range of a port number, a range of a source MAC address, and a range of a destination MAC address. Specifically, the range of addresses may be the prefix of the address. For example, the range of the source IP address may be the prefix of the source IP address, the range of the destination IP address may be the prefix of the destination IP address, the range of the source MAC address may be the prefix of the source MAC address, and the range of the destination MAC address may be the destination MAC address. The prefix of the address.
可选地,该流定义域还可包括第二部分流定义域。其中,该第二部分流定义域可以为以下中的一个或多个:MPLS标签、GRE IP头、MAC in MAC头和VXLAN头。Optionally, the flow definition domain may further include a second partial flow definition domain. The second partial flow definition domain may be one or more of the following: an MPLS label, a GRE IP header, a MAC in MAC header, and a VXLAN header.
例如,当第一节点处于MPLS网络时,第二部分流定义域可包括MPLS标签。应注意,MPLS标签可以是单层或多层的。例如,当第一节点通过GRE隧道转发协议报文时,那么该第二部分流定义域可包括GRE IP头。当第一节点通过MAC隧道转发协议报文时,那么该第二部分流定义域可包括MAC in MAC头。例如,当第一节点通过VXLAN隧道转发协议报文时,那么该第二部分流定义域可包括VXLAN头。For example, when the first node is in the MPLS network, the second partial flow definition domain may include an MPLS label. It should be noted that the MPLS label can be single layer or multiple layers. For example, when the first node forwards the protocol packet through the GRE tunnel, then the second partial flow definition domain may include a GRE IP header. When the first node forwards the protocol packet through the MAC tunnel, then the second partial flow definition domain may include a MAC in MAC header. For example, when the first node forwards the protocol message through the VXLAN tunnel, then the second partial flow definition domain may include a VXLAN header.
应注意,该第二部分流定义域也可以是其他用于区别不同网络类型的标识,本发明实施例对此不作限定。It should be noted that the second partial flow definition domain may also be other identifiers for distinguishing different network types, which is not limited by the embodiment of the present invention.
可选地,QoS需求域包括QoS需求信息,用于表示业务流对QoS的需求,该QoS需求信息可以在该协议报文中以一定的格式编排携带。例如,该QoS需求信息可包括QoS队列,QoS队列可以是如下参数中的一个或多个:队列调度方式、队列优先级和队列的带宽。可选地,该QoS需求信息也可包括其他QoS参数,例如CAR、染色和setting等,本发明对此不作限定。Optionally, the QoS requirement field includes QoS requirement information, which is used to indicate a QoS requirement of the service flow, and the QoS requirement information may be carried in a certain format in the protocol packet. For example, the QoS requirement information may include a QoS queue, and the QoS queue may be one or more of the following parameters: a queue scheduling manner, a queue priority, and a bandwidth of the queue. Optionally, the QoS requirement information may also include other QoS parameters, such as CAR, coloring, and setting, which are not limited by the present invention.
可选地,所述转发头信息域包括目的IP地址;或者,所述转发头信息域包括源IP地址、目的IP地址和协议ID;或者,所述转发头信息域包括源IP地址、目的IP地址、源端口、目的端口和协议ID;或者,所述转发头信息域包括目的MAC地址;或者,所述转 发头信息域包括源IP地址、目的IP地址、源MAC地址和目的MAC地址。Optionally, the forwarding header information field includes a destination IP address; or the forwarding header information field includes a source IP address, a destination IP address, and a protocol ID; or the forwarding header information field includes a source IP address and a destination IP address. Address, source port, destination port, and protocol ID; or, the forwarding header information field includes a destination MAC address; or, the The originating information field includes a source IP address, a destination IP address, a source MAC address, and a destination MAC address.
可选地,转发头信息域可包括第一部分转发头信息域。该第一部分转发头信息域可包括目的IP地址;或者,该第一部分转发头信息域可包括源IP地址、目的IP地址和协议ID;或者,该第一部分转发头信息域可包括源IP地址、目的IP地址、源端口、目的端口和协议ID;或者,第一部分转发头信息域可包括目的MAC地址;或者,第一部分转发头信息域可包括源IP地址、目的IP地址,源MAC地址和目的MAC地址。其中,源IP地址可以为业务流的源IP地址,目的IP地址可以为业务流的目的IP地址,源MAC地址可以为业务流的源MAC地址,目的MAC地址可以为业务流的目的MAC地址。Optionally, the forwarding header information field may include a first partial forwarding header information field. The first part of the forwarding header information field may include a destination IP address; or the first part of the forwarding header information field may include a source IP address, a destination IP address, and a protocol ID; or the first partial forwarding header information field may include a source IP address, The destination IP address, the source port, the destination port, and the protocol ID; or the first part of the forwarding header information field may include the destination MAC address; or the first part of the forwarding header information field may include the source IP address, the destination IP address, the source MAC address, and the destination. MAC address. The source IP address can be the source IP address of the service flow, the destination IP address can be the destination IP address of the service flow, the source MAC address can be the source MAC address of the service flow, and the destination MAC address can be the destination MAC address of the service flow.
可选地,该转发头信息域还包括第二部分转发头信息域。该第二部分转发头信息域包括以下中的一个或多个:MPLS标签、GRE IP头、MAC in MAC头和VXLAN头。Optionally, the forwarding header information field further includes a second part forwarding header information field. The second partial forwarding header information field includes one or more of the following: an MPLS label, a GRE IP header, a MAC in MAC header, and a VXLAN header.
例如,当第一节点处于MPLS网络时,第二部分转发头信息域可包括MPLS标签。应注意,MPLS标签可以是单层或多层的。例如,当第一节点通过GRE隧道转发协议报文时,那么该第二部分转发头信息域可包括GRE IP头。当第一节点通过MAC隧道转发协议报文时,那么该第二部分转发头信息域可包括MAC in MAC头。例如,当第一节点通过VXLAN隧道转发协议报文时,那么该第二部分转发头信息域可包括VXLAN头。For example, when the first node is in the MPLS network, the second partial forwarding header information field may include an MPLS label. It should be noted that the MPLS label can be single layer or multiple layers. For example, when the first node forwards the protocol packet through the GRE tunnel, then the second partial forwarding header information field may include a GRE IP header. When the first node forwards the protocol packet through the MAC tunnel, then the second partial forwarding header information field may include a MAC in MAC header. For example, when the first node forwards the protocol message through the VXLAN tunnel, then the second partial forwarding header information field may include a VXLAN header.
应注意,该第二部分转发头信息域也可以是其他用于区别不同网络类型的标识,本发明对此不作限定。It should be noted that the second part of the forwarding header information field may also be other identifiers for distinguishing different network types, which is not limited by the present invention.
可选地,作为一个实施例,该协议报文的形式可以是QoS RESV消息。可选地,该协议报文也可以是其他类型的消息,本发明对此不作限定。Optionally, as an embodiment, the protocol message may be in the form of a QoS RESV message. Optionally, the protocol packet may also be other types of messages, which is not limited by the disclosure.
其中,该QoS RESV消息中还可携带信息域。该信息域包括协议报文在建立QoS预留时的监控信息。该监控信息可以包括带宽预留是否完成、是否有队列拥塞丢包发生、建立QoS预留的路径信息、业务流报文统计信息中的一个或多个。该信息域是该QoS RESV消息的一个可选域。并且,可选地,该QoS RESV消息还可包括多个可选域,该多个可选域可用于与该第一协议报文相关的指示信息。本发明对此不作限定。The QoS RESV message may also carry an information domain. The information field includes monitoring information when the protocol packet establishes a QoS reservation. The monitoring information may include one or more of whether the bandwidth reservation is completed, whether there is a queue congestion packet loss, a path information for establishing a QoS reservation, and a service flow packet statistics. This information field is an optional field for this QoS RESV message. And optionally, the QoS RESV message may further include a plurality of optional domains, where the multiple optional domains are available for the indication information related to the first protocol packet. The invention is not limited thereto.
这样,可使QoS RESV消息中的必选域的数量比较少,便于对该QoS RESV消息的处理。例如可以在硬件层面处理该QoS RESV消息,比如直接在转发平面处理该QoS RESV消息而不上送到控制平面。而且,可以降低该QoS RESV消息的发送频率,由控制层面的控制实体进行处理,从而能够节省资源。In this way, the number of mandatory domains in the QoS RESV message can be made smaller, which facilitates the processing of the QoS RESV message. For example, the QoS RESV message can be processed at the hardware level, such as processing the QoS RESV message directly at the forwarding plane without being sent to the control plane. Moreover, the transmission frequency of the QoS RESV message can be reduced, and processed by the control entity at the control plane, thereby saving resources.
可选地,作为另一个实施例,本发明实施例中,信息域可以承载在QoS INFO消息中,该第一节点可在生成QoS RESV消息的同时生成该QoS INFO消息。该信息域可包括 该协议报文在建立QoS预留的监控信息。该监控信息可以包括带宽预留是否完成、是否有队列拥塞丢包发生、建立QoS预留的路径信息、业务流报文统计信息中的一个或多个。Optionally, in another embodiment, in the embodiment of the present invention, the information domain may be carried in a QoS INFO message, and the first node may generate the QoS INFO message while generating the QoS RESV message. The information field can include The protocol packet is used to establish monitoring information for QoS reservation. The monitoring information may include one or more of whether the bandwidth reservation is completed, whether there is a queue congestion packet loss, a path information for establishing a QoS reservation, and a service flow packet statistics.
也就是说,该协议报文以QoS RESV消息的形式可以是以下的任意一种情形:That is, the protocol message may be in any of the following cases in the form of a QoS RESV message:
(1)QoS RESV消息中可以仅包括流定义域、QoS需求域和转发头信息域,可称为3个必选域;或者,(1) The QoS RESV message may include only the flow definition domain, the QoS requirement domain, and the forwarding header information domain, and may be referred to as three mandatory domains; or
(2)QoS RESV消息中可以包括流定义域、QoS需求域、转发头信息域和信息域,其中信息域为可选域;或者,(2) The QoS RESV message may include a flow definition domain, a QoS requirement domain, a forwarding header information domain, and an information domain, where the information domain is an optional domain; or
(3)QoS RESV消息和QoS INFO消息同时用于建立QoS预留。且QoS RESV消息中包括流定义域、QoS需求域和转发头信息域,QoS INFO消息中包括信息域。本发明对此不作限定。(3) The QoS RESV message and the QoS INFO message are simultaneously used to establish a QoS reservation. The QoS RESV message includes a flow definition domain, a QoS requirement domain, and a forwarding header information domain, and the QoS INFO message includes an information domain. The invention is not limited thereto.
可选地,作为另一个实施例,协议报文还可包括队列ID和与队列ID对应的层次化级别,该队列ID和该层次化级别用于为该业务流建立层次化队列,并进一步为该层次化队列进行调度部署。并且,该层次化级别也可作为QoS RESV消息的可选域。Optionally, as another embodiment, the protocol packet may further include a queue ID and a layering level corresponding to the queue ID, where the queue ID and the layering level are used to establish a hierarchical queue for the service flow, and further The hierarchical queue is scheduled for deployment. Also, this level of hierarchy can also be used as an optional domain for QoS RESV messages.
可选地,本发明实施例中,第一节点可以是业务流转发路径中的中间节点。Optionally, in the embodiment of the present invention, the first node may be an intermediate node in the service flow forwarding path.
具体地,在步骤201之前,还包括:第一节点接收至少一个第一协议报文,该至少一个第一协议报文中的每一个第一协议报文都包括第一流定义域,第一QoS需求域和第一转发头信息域。Specifically, before the step 201, the method further includes: the first node receiving the at least one first protocol packet, where each of the at least one first protocol packet includes the first flow definition domain, the first QoS The demand domain and the first forwarding header information domain.
这里,至少一个第一协议报文可以是第一节点从不同的方向接收到的,不同的方向可以是指不同的节点。该至少一个第一协议报文可以是属于不同的用户的。Here, at least one first protocol message may be received by the first node from different directions, and different directions may refer to different nodes. The at least one first protocol message may be belonging to a different user.
相应地,在步骤201中,第一节点生成协议报文,包括第一节点根据汇聚策略将该至少一个第一协议报文合并以生成协议报文。汇聚策略是用于将多个协议报文合并为一个协议报文的策略。Correspondingly, in step 201, the first node generates a protocol packet, and the first node combines the at least one first protocol packet according to the convergence policy to generate a protocol packet. An aggregation policy is a policy for combining multiple protocol packets into one protocol packet.
其中,汇聚策略包括第一汇聚策略和第二汇聚策略。第一汇聚策略可用于确定至少一个第一协议报文能够进行汇聚。第二汇聚策略可用于将至少一个第一协议报文汇聚为该协议报文。这里,第二汇聚策略可包括流定义汇聚策略、QoS需求汇聚策略和转发头信息汇聚策略。The convergence policy includes a first convergence policy and a second convergence policy. The first convergence policy can be used to determine that at least one first protocol packet can be aggregated. The second convergence policy can be used to aggregate at least one first protocol packet into the protocol packet. Here, the second aggregation policy may include a flow definition aggregation policy, a QoS requirement aggregation policy, and a forwarding header information aggregation policy.
首先,第一节点根据第一汇聚策略确定该至少一个第一协议报文能够进行汇聚。First, the first node determines, according to the first convergence policy, that the at least one first protocol packet can be aggregated.
例如,该第一汇聚策略可以是该至少一个第一协议报文的每一个第一协议报文的第一转发头信息域均相同。For example, the first aggregation policy may be that the first forwarding header information field of each first protocol packet of the at least one first protocol packet is the same.
可选地,该至少一个第一协议报文的每一个第一协议报文还包括汇聚ID域。此时, 该第一汇聚策略可以是该至少一个第一协议报文的每一个第一协议报文的汇聚ID域相同。可选地,该第一汇聚策略可以是该至少一个第一协议报文的每一个第一协议报文的汇聚ID域部分相同。Optionally, each first protocol packet of the at least one first protocol packet further includes an aggregation ID field. at this time, The first aggregation policy may be that the convergence ID field of each first protocol packet of the at least one first protocol packet is the same. Optionally, the first aggregation policy may be that the convergence ID field of each first protocol packet of the at least one first protocol packet is the same.
应注意,该至少一个第一协议报文的每一个第一协议报文的汇聚ID域可以是在该每一个第一协议报文生成的时候所确定的。例如,可以是根据业务流转发路径或者根据QoS需求所确定的。可选地,该至少一个第一协议报文的每一个第一协议报文的汇聚ID域可以是在生成该每一个第一协议报文的时候由用户预配置的。本发明对此不作限定。It should be noted that the convergence ID field of each first protocol message of the at least one first protocol message may be determined when each of the first protocol messages is generated. For example, it may be determined according to a traffic flow forwarding path or according to QoS requirements. Optionally, the aggregation ID field of each first protocol packet of the at least one first protocol packet may be pre-configured by the user when generating each of the first protocol packets. The invention is not limited thereto.
可选地,当该至少一个第一协议报文的形式为QoS RESV消息时,该汇聚ID域可以是QoS RESV消息的其中一个可选域。Optionally, when the form of the at least one first protocol message is a QoS RESV message, the aggregation ID field may be one of the optional domains of the QoS RESV message.
随后,第一节点根据第二汇聚策略将该至少一个第一协议报文合并为协议报文。具体地,流定义汇聚策略用于使第一节点将至少一个第一协议报文中的每一个第一协议报文的每一个第一流定义域合并为流定义域。QoS需求汇聚策略用于使第一节点将至少一个第一协议报文中的每一个第一协议报文的每一个第一QoS需求域合并为QoS需求域。转发头信息汇聚策略用于使第一节点将至少一个第一协议报文中的每一个第一协议报文的每一个第一转发头信息域合并为转发头信息域。Then, the first node merges the at least one first protocol packet into a protocol packet according to the second convergence policy. Specifically, the flow definition convergence policy is configured to enable the first node to merge each first flow definition domain of each first protocol packet in the at least one first protocol packet into a flow definition domain. The QoS requirement aggregation policy is configured to enable the first node to merge each of the first QoS requirement domains of each of the at least one first protocol packet into a QoS requirement domain. The forwarding header information aggregation policy is configured to enable the first node to merge each of the first forwarding header information fields of each of the at least one first protocol packet into a forwarding header information domain.
具体地,流定义汇聚策略可以是将至少一个第一协议报文中的每一个第一协议报文的每一个第一流定义域取并集作为流定义域。Specifically, the flow definition aggregation policy may be a union of each first flow definition domain of each first protocol packet in the at least one first protocol packet as a flow definition domain.
例如,当至少一个第一协议报文中的每一个第一协议报文的每一个第一流定义域均相同时,流定义域可以为该至少一个第一协议报文中的每一个第一协议报文的每一个第一流定义域。For example, when each of the first flow definition fields of each of the at least one first protocol message is the same, the flow definition field may be each of the at least one first protocol message. Each first stream definition field of the message.
例如,当该每一个第一流定义域互相有一部分交集时,流定义域可以为该每一个第一流定义域的并集。For example, when each of the first flow definition domains has a part of each other, the flow definition domain may define a union of the domains for each of the first flows.
可选地,流定义汇聚策略可以是采用其他的方式生成流定义域。Optionally, the flow definition aggregation policy may be to generate the flow definition domain in other manners.
例如,假设至少一个第一协议报文是三个第一协议报文。流定义汇聚策略可以是将这三个第一协议报文的其中两个第一协议报文的第一流定义域取交集后,再与这三个第一协议报文的第三个第一协议报文的第一流定义域取并集,再生成流定义域。For example, assume that at least one first protocol message is three first protocol messages. The flow definition convergence policy may be that the first flow definition fields of the two first protocol packets of the three first protocol packets are intersected, and then the third first protocol of the three first protocol packets is obtained. The first flow definition field of the packet is taken as a union, and then the flow definition domain is generated.
具体地,QoS需求汇聚策略可以是:将至少一个第一协议报文中的每一个第一协议报文的每一个第一QoS需求域中的带宽相加,作为QoS需求域所包含的带宽信息;可选地,也可以在带宽相加之后乘以预设置的收敛比,作为QoS需求域所包含的带宽信息。并将该每一个第一QoS需求域中的除带宽之外的其他的需求信息取交集,作为QoS需求 域中的除带宽之外的其他的需求信息。Specifically, the QoS requirement aggregation policy may be: adding the bandwidth in each first QoS requirement domain of each of the at least one first protocol packet as the bandwidth information included in the QoS requirement domain. Optionally, it is also possible to multiply the pre-set convergence ratio after the bandwidth is added as the bandwidth information included in the QoS requirement domain. And taking the other demand information except the bandwidth in each of the first QoS demand domains as the QoS requirement Demand information in the domain other than bandwidth.
可选地,QoS需求汇聚策略可以是:为至少一个第一协议报文中的部分第一协议报文设置收敛比,将该部分第一协议报文中的每一个第一QoS需求域中的带宽乘以该收敛比,再与至少一个第一协议报文中除该部分第一协议报文之外的其他第一协议报文中的每一个第一QoS需求域中的带宽相加,作为QoS需求域所包含的带宽信息。并将该每一个第一QoS需求域中的除带宽之外的其他的需求信息取交集,作为QoS需求域中的除带宽之外的其他的需求信息。Optionally, the QoS requirement aggregation policy may be: setting a convergence ratio for a part of the first protocol packet in the at least one first protocol packet, where each part of the first protocol packet is in the first QoS requirement domain The bandwidth is multiplied by the convergence ratio, and is added to the bandwidth of each of the first QoS request domains in the first protocol packet except the first protocol packet in the at least one first protocol packet. Bandwidth information contained in the QoS requirement domain. And the other required information except the bandwidth in each of the first QoS requirement domains is intersected as the other demand information except the bandwidth in the QoS demand domain.
具体地,至少一个第一协议报文中的每一个第一协议报文可包括汇聚ID域。当其中的一个第一协议报文的汇聚ID域中的数值满足预设的匹配算法时,对该第一协议报文执行收敛比操作。例如,可预配置收敛码,将汇聚ID域中的数值与该收敛码作与运算,当该与运算的结果为零时,确定该第一协议报文可执行收敛比操作。Specifically, each of the at least one first protocol packet may include a convergence ID field. When the value in the convergence ID field of one of the first protocol packets satisfies the preset matching algorithm, the convergence ratio operation is performed on the first protocol packet. For example, the convergence code can be pre-configured, and the value in the convergence ID field is compared with the convergence code. When the result of the AND operation is zero, it is determined that the first protocol message can perform the convergence ratio operation.
应注意,第一节点可在根据第一汇聚策略判断能否进行汇聚的过程中,一并判断并执行上述收敛比操作,这样能够体现统计复用。It should be noted that the first node may determine and execute the convergence ratio operation together in the process of determining whether aggregation can be performed according to the first aggregation policy, so that statistical multiplexing can be embodied.
可选地,QoS需求汇聚策略可以是:将至少一个第一协议报文中的每一个第一协议报文的每一个第一QoS需求域中的带宽加权求和,作为QoS需求域所包含的带宽信息;将该每一个第一QoS需求域中的除带宽之外的其他的需求信息取交集,作为QoS需求域中的除带宽之外的其他的需求信息。Optionally, the QoS requirement aggregation policy may be: weighting and summing bandwidths in each of the first QoS requirement domains of each of the at least one first protocol packet, as included in the QoS requirement domain. Bandwidth information; the other pieces of demand information other than the bandwidth in each of the first QoS demand domains are intersected as other demand information except the bandwidth in the QoS demand domain.
一般情况下,至少一个第一协议报文所对应的多个业务流不会同时并发,也就是说,至少一个第一协议报文所对应的所有的业务流同时到达第一节点的概率比较小,设置一定的权重,也可以同时保障每一个业务流的QoS。甚至,在该至少一个第一协议报文中的一个或几个同时到达该第一节点时,由于至少一个第一协议报文所对应的多个业务流不会同时达到最大带宽,第一节点仍然能够保障这一个或几个第一协议报文的QoS。Generally, the multiple service flows corresponding to the at least one first protocol packet are not concurrently concurrent, that is, the probability that all the service flows corresponding to the at least one first protocol packet reach the first node at the same time is relatively small. Set a certain weight, and also guarantee the QoS of each service flow. Even when one or more of the at least one first protocol packet arrives at the first node at the same time, the first node does not reach the maximum bandwidth at the same time because the multiple service flows corresponding to the at least one first protocol packet The QoS of the one or several first protocol messages can still be guaranteed.
例如,假设至少一个第一协议报文是2个第一协议报文,这2个第一协议报文的带宽需求分别为10M和20M。则所生成的协议报文的QoS需求域的带宽需求可以为30M,即10M和20M求和。For example, it is assumed that at least one first protocol packet is two first protocol packets, and the bandwidth requirements of the two first protocol packets are 10M and 20M, respectively. Then, the bandwidth requirement of the QoS requirement domain of the generated protocol packet may be 30M, that is, 10M and 20M are summed.
可选地,所生成的协议报文的QoS需求域的带宽需求也可以是γ×(10+20)M,其中γ为收敛比,并且0≤γ≤1。Optionally, the bandwidth requirement of the QoS requirement domain of the generated protocol packet may also be γ×(10+20)M, where γ is a convergence ratio, and 0≤γ≤1.
可选地,带宽需求为10M的第一协议报文的汇聚ID域中的数值满足预设的匹配算法,则所生成的协议报文的QoS需求域的带宽需求也可以是(λ×10+20)M,其中λ为收敛比,并且0≤λ≤1。 Optionally, if the value in the aggregation ID field of the first protocol packet with the bandwidth requirement of 10 M meets the preset matching algorithm, the bandwidth requirement of the QoS requirement domain of the generated protocol packet may also be (λ×10+). 20) M, where λ is a convergence ratio, and 0 ≤ λ ≤ 1.
可选地,所生成的协议报文的QoS需求域的带宽需求也可以是(α×10+β×20)M,其中α和β为权重,并且0≤α≤1且0≤β≤1。α和β是预配置的。Optionally, the bandwidth requirement of the QoS requirement domain of the generated protocol packet may also be (α×10+β×20)M, where α and β are weights, and 0≤α≤1 and 0≤β≤1 . α and β are pre-configured.
具体地,转发头信息汇聚策略可以是:将至少一个第一协议报文中的每一个第一协议报文的每一个第一转发头信息域,进行保留或者替换或者部分替换后,再生成转发头信息域。Specifically, the forwarding header information aggregation policy may be: after each first forwarding header information field of each first protocol packet in the at least one first protocol packet is reserved or replaced or partially replaced, and then generated and forwarded. Header information field.
例如,当至少一个第一协议报文中的每一个第一协议报文的每一个第一转发头信息域均相同时,转发头信息域可以为该至少一个第一协议报文中的每一个第一协议报文的每一个第一转发头信息域。For example, when each of the first forwarding header information fields of each of the at least one first protocol packet is the same, the forwarding header information field may be each of the at least one first protocol packet. Each of the first forwarding header information fields of the first protocol message.
例如,即使至少一个第一协议报文中的每一个第一协议报文的每一个第一转发头信息域互不相同,但是该至少一个第一协议报文中的每一个第一协议报文的每一个第一转发头信息域的目的IP地址属于同一个企业网。那么,转发头信息域可以是将至少一个第一协议报文中的每一个第一协议报文的每一个第一转发头信息域,进行部分替换后再合并生成的。这样,汇聚后的协议报文可以在转发至该企业网的PE设备后,再由该企业网的PE设备对该汇聚的协议报文进行分流并转发至该企业网内部的其他设备。For example, if each of the first forwarding header information fields of each of the at least one first protocol packet is different from each other, each of the at least one first protocol packet is the first protocol packet. The destination IP address of each of the first forwarding header information fields belongs to the same enterprise network. Then, the forwarding header information field may be generated by partially replacing each of the first forwarding header information fields of each of the at least one first protocol packet. In this manner, the aggregated protocol packet can be forwarded to the PE device of the enterprise network, and then the PE device of the enterprise network can split the aggregated protocol packet and forward it to other devices in the enterprise network.
这样,第一节点将多个协议报文汇聚为一个协议报文,只需为汇聚以后的一个协议报文建立一个QoS预留,即可保障多个协议报文的QoS。能够节省该第一节点上的资源占用。In this way, the first node aggregates multiple protocol packets into one protocol packet, and only needs to establish a QoS reservation for a protocol packet after the aggregation, so as to guarantee the QoS of multiple protocol packets. The resource occupation on the first node can be saved.
例如,若该至少一个第一协议报文是属于不同的用户的,汇聚之后的协议报文是属于一个用户群的,也就是说,汇聚提高了流的粒度。For example, if the at least one first protocol packet belongs to a different user, the protocol message after the aggregation belongs to a user group, that is, the aggregation improves the granularity of the stream.
应注意,本发明实施例中,汇聚策略可以是预配置的,可选地,汇聚策略也可以是在汇聚过程中再编译的,本发明对此不作限定。It should be noted that, in the embodiment of the present invention, the convergence policy may be pre-configured. Optionally, the aggregation policy may be recompiled in the aggregation process, which is not limited by the disclosure.
这样,在步骤201中,第一节点根据汇聚策略生成协议报文,且协议报文包括流定义域、QoS需求域和转发头信息域。In this way, in step 201, the first node generates a protocol packet according to the convergence policy, and the protocol packet includes a flow definition domain, a QoS requirement domain, and a forwarding header information domain.
其中,流定义域可包括第一部分流定义域。该第一部分流定义域包括以下至少一种:源IP地址的范围、目的IP地址的范围、协议ID、端口号的范围、源MAC地址的范围和目的MAC地址的范围。具体地,地址的范围可以是地址的前缀。例如,源IP地址的范围可以是源IP地址的前缀,目的IP地址的范围可以是目的IP地址的前缀,源MAC地址的范围可以是源MAC地址的前缀,目的MAC地址的范围可以是目的MAC地址的前缀。The flow definition domain may include a first partial flow definition domain. The first partial flow definition domain includes at least one of the following: a range of a source IP address, a range of a destination IP address, a protocol ID, a range of a port number, a range of a source MAC address, and a range of a destination MAC address. Specifically, the range of addresses may be the prefix of the address. For example, the range of the source IP address may be the prefix of the source IP address, the range of the destination IP address may be the prefix of the destination IP address, the range of the source MAC address may be the prefix of the source MAC address, and the range of the destination MAC address may be the destination MAC address. The prefix of the address.
可选地,该流定义域还可包括第二部分流定义域。其中,该第二部分流定义域可以为以下中的一个或多个:MPLS标签、GRE IP头、MAC in MAC头和VXLAN头。 Optionally, the flow definition domain may further include a second partial flow definition domain. The second partial flow definition domain may be one or more of the following: an MPLS label, a GRE IP header, a MAC in MAC header, and a VXLAN header.
例如,当第一节点处于MPLS网络时,第二部分流定义域可包括MPLS标签。例如,当第一节点通过GRE隧道转发协议报文时,那么该第二部分流定义域可包括GRE IP头。当第一节点通过MAC隧道转发协议报文时,那么该第二部分流定义域可包括MAC in MAC头。例如,当第一节点通过VXLAN隧道转发协议报文时,那么该第二部分流定义域可包括VXLAN头。For example, when the first node is in the MPLS network, the second partial flow definition domain may include an MPLS label. For example, when the first node forwards the protocol packet through the GRE tunnel, then the second partial flow definition domain may include a GRE IP header. When the first node forwards the protocol packet through the MAC tunnel, then the second partial flow definition domain may include a MAC in MAC header. For example, when the first node forwards the protocol message through the VXLAN tunnel, then the second partial flow definition domain may include a VXLAN header.
其中,QoS需求域包括QoS需求信息,用于表示业务流对QoS的需求,该QoS需求信息可以在该协议报文中以一定的格式编排携带。例如,该QoS需求信息可包括QoS队列,QoS队列可以是如下参数中的一个或多个:队列调度方式、队列优先级和队列的带宽。该QoS需求信息也可包括其他QoS参数,例如CAR、染色和setting等,本发明对此不作限定。The QoS requirement field includes QoS requirement information, which is used to indicate the QoS requirement of the service flow, and the QoS requirement information may be carried in a certain format in the protocol packet. For example, the QoS requirement information may include a QoS queue, and the QoS queue may be one or more of the following parameters: a queue scheduling manner, a queue priority, and a bandwidth of the queue. The QoS requirement information may also include other QoS parameters, such as CAR, coloring, and setting, which are not limited by the present invention.
其中,转发头信息域可包括第一部分转发头信息域。该第一部分转发头信息域可包括目的IP地址;或者,该第一部分转发头信息域可包括源IP地址、目的IP地址和协议ID;或者,该第一部分转发头信息域可包括源IP地址、目的IP地址、源端口、目的端口和协议ID;或者,第一部分转发头信息域可包括目的MAC地址;或者,第一部分转发头信息域可包括源IP地址、目的IP地址,源MAC地址和目的MAC地址。其中,源IP地址可以为业务流的源IP地址,目的IP地址可以为业务流的目的IP地址,源MAC地址可以为业务流的源MAC地址,目的MAC地址可以为业务流的目的MAC地址。The forwarding header information field may include a first part forwarding header information field. The first part of the forwarding header information field may include a destination IP address; or the first part of the forwarding header information field may include a source IP address, a destination IP address, and a protocol ID; or the first partial forwarding header information field may include a source IP address, The destination IP address, the source port, the destination port, and the protocol ID; or the first part of the forwarding header information field may include the destination MAC address; or the first part of the forwarding header information field may include the source IP address, the destination IP address, the source MAC address, and the destination. MAC address. The source IP address can be the source IP address of the service flow, the destination IP address can be the destination IP address of the service flow, the source MAC address can be the source MAC address of the service flow, and the destination MAC address can be the destination MAC address of the service flow.
可选地,该转发头信息域还包括第二部分转发头信息域。该第二部分转发头信息域包括以下中的一个或多个:MPLS标签、GRE IP头、MAC in MAC头和VXLAN头。Optionally, the forwarding header information field further includes a second part forwarding header information field. The second partial forwarding header information field includes one or more of the following: an MPLS label, a GRE IP header, a MAC in MAC header, and a VXLAN header.
例如,当第一节点处于MPLS网络时,第二部分转发头信息域可包括MPLS标签。例如,当第一节点通过GRE隧道转发协议报文时,那么该第二部分转发头信息域可包括GRE IP头。当第一节点通过MAC隧道转发协议报文时,那么该第二部分转发头信息域可包括MAC in MAC头。例如,当第一节点通过VXLAN隧道转发协议报文时,那么该第二部分转发头信息域可包括VXLAN头。For example, when the first node is in the MPLS network, the second partial forwarding header information field may include an MPLS label. For example, when the first node forwards the protocol packet through the GRE tunnel, then the second partial forwarding header information field may include a GRE IP header. When the first node forwards the protocol packet through the MAC tunnel, then the second partial forwarding header information field may include a MAC in MAC header. For example, when the first node forwards the protocol message through the VXLAN tunnel, then the second partial forwarding header information field may include a VXLAN header.
可选地,作为另一个实施例,协议报文还可包括队列ID和层次化级别,该队列ID和该层次化级别用于为该业务流建立层次化队列,并进一步为该层次化队列进行调度部署。Optionally, as another embodiment, the protocol packet may further include a queue ID and a layering level, where the queue ID and the layering level are used to establish a hierarchical queue for the service flow, and further perform the hierarchical queue Schedule deployment.
可选地,作为一个实施例,该协议报文的形式可以是QoS RESV消息。此时,流定义域、QoS需求域和转发头信息域是该QoS RESV消息的3个必选域。可选地,该协议报文也可以是其他类型的消息,本发明对此不作限定。 Optionally, as an embodiment, the protocol message may be in the form of a QoS RESV message. At this time, the flow definition domain, the QoS requirement domain, and the forwarding header information domain are three mandatory domains of the QoS RESV message. Optionally, the protocol packet may also be other types of messages, which is not limited by the disclosure.
其中,该QoS RESV消息中还可携带信息域。此时,该信息域为QoS RESV消息的一个可选域。该信息域包括协议报文在建立QoS预留时的监控信息。该监控信息可以包括带宽预留是否完成、是否有队列拥塞丢包发生、建立QoS预留的路径信息、业务流报文统计信息中的一个或多个。并且,可选地,该QoS RESV消息还可包括多个可选域,该多个可选域可用于与该第一协议报文相关的指示信息。本发明实施例对此不作限定。The QoS RESV message may also carry an information domain. At this point, the information field is an optional field for the QoS RESV message. The information field includes monitoring information when the protocol packet establishes a QoS reservation. The monitoring information may include one or more of whether the bandwidth reservation is completed, whether there is a queue congestion packet loss, a path information for establishing a QoS reservation, and a service flow packet statistics. And optionally, the QoS RESV message may further include a plurality of optional domains, where the multiple optional domains are available for the indication information related to the first protocol packet. This embodiment of the present invention does not limit this.
这样,可使QoS RESV消息中的必选域的数量比较少,便于对该QoS RESV消息的处理。例如可以在硬件层面处理该QoS RESV消息,比如直接在转发平面处理该QoS RESV消息而不上送到控制平面。而且,可以降低该QoS RESV消息的发送频率,由控制层面的控制实体进行处理,从而能够节省资源。In this way, the number of mandatory domains in the QoS RESV message can be made smaller, which facilitates the processing of the QoS RESV message. For example, the QoS RESV message can be processed at the hardware level, such as processing the QoS RESV message directly at the forwarding plane without being sent to the control plane. Moreover, the transmission frequency of the QoS RESV message can be reduced, and processed by the control entity at the control plane, thereby saving resources.
可选地,作为另一个实施例,本发明实施例中,信息域可以承载在QoS INFO消息中,该第一节点可在生成QoS RESV消息的同时生成该QoS INFO消息。该信息域可包括该协议报文在建立QoS预留的监控信息。该监控信息可以包括带宽预留是否完成、是否有队列拥塞丢包发生、建立QoS预留的路径信息、业务流报文统计信息中的一个或多个。Optionally, in another embodiment, in the embodiment of the present invention, the information domain may be carried in a QoS INFO message, and the first node may generate the QoS INFO message while generating the QoS RESV message. The information field may include monitoring information for establishing a QoS reservation for the protocol message. The monitoring information may include one or more of whether the bandwidth reservation is completed, whether there is a queue congestion packet loss, a path information for establishing a QoS reservation, and a service flow packet statistics.
也就是说,该协议报文以QoS RESV消息的形式存在可以是以下的任意一种情形:That is to say, the protocol message exists in the form of a QoS RESV message, which may be any of the following situations:
(1)QoS RESV消息中可以仅包括流定义域、QoS需求域和转发头信息域,可称为3个必选域;或者,(1) The QoS RESV message may include only the flow definition domain, the QoS requirement domain, and the forwarding header information domain, and may be referred to as three mandatory domains; or
(2)QoS RESV消息中可以包括流定义域、QoS需求域、转发头信息域和信息域;或者,(2) The QoS RESV message may include a flow definition domain, a QoS requirement domain, a forwarding header information domain, and an information domain; or
(3)QoS RESV消息和QoS INFO消息同时用于建立QoS预留。且QoS RESV消息中包括流定义域、QoS需求域和转发头信息域,QoS INFO消息中包括信息域。本发明实施例对此不作限定。(3) The QoS RESV message and the QoS INFO message are simultaneously used to establish a QoS reservation. The QoS RESV message includes a flow definition domain, a QoS requirement domain, and a forwarding header information domain, and the QoS INFO message includes an information domain. This embodiment of the present invention does not limit this.
这样,在步骤201中,第一节点生成绑定关系即为该业务流建立了QoS预留。Thus, in step 201, the first node generates a binding relationship, that is, establishes a QoS reservation for the service flow.
进一步地,在步骤202中,第一节点将步骤201所生成的协议报文发送至第二节点,可使第二节点根据协议报文为业务流建立QoS预留。Further, in step 202, the first node sends the protocol packet generated in step 201 to the second node, so that the second node can establish a QoS reservation for the service flow according to the protocol packet.
可选地,作为另一个实施例,在步骤201中建立绑定关系之后,当在预设的时间段内没有业务使用该绑定关系时,第一节点删除该绑定关系。例如,可以在第一节点设置定时器,定时器的值可以是预先配置的。当在定时器设置的时间段内没有业务流经过该第一节点,或者也没有相关的协议报文经过该第一节点时,该第一节点可将绑定关系删除,也就是说第一节点释放所建立的QoS预留。Optionally, as another embodiment, after the binding relationship is established in step 201, when no binding service is used by the service within the preset time period, the first node deletes the binding relationship. For example, a timer can be set at the first node, and the value of the timer can be pre-configured. When no service flow passes through the first node in the time period set by the timer, or no related protocol packet passes through the first node, the first node may delete the binding relationship, that is, the first node. Release the established QoS reservation.
这样,如果对业务流不再有QoS要求,或者对于转发路径重构的其他业务流,只要 停止发送业务流或者停止发送协议报文,对应的QoS预留即可在预设的时间段后被释放。之后,可以为其他业务流建立QoS预留,这样能够保证节点的资源利用率。In this way, if there are no more QoS requirements for the traffic flow, or other traffic flows reconstructed for the forwarding path, If the service flow is stopped or the protocol packet is stopped, the corresponding QoS reservation can be released after a preset period of time. After that, QoS reservations can be established for other service flows, which can guarantee the resource utilization of the nodes.
图3是本发明另一个实施例的建立服务质量预留的方法的流程图。图3所示的方法包括:3 is a flow chart of a method of establishing a quality of service reservation in accordance with another embodiment of the present invention. The method shown in Figure 3 includes:
306,节点301生成绑定关系和第一协议报文。该绑定关系为流与第一QoS需求信息之间的绑定关系。该第一协议报文包括第一流定义域、第一QoS需求域和第一转发头信息域。该第一协议报文用于为业务流建立QoS预留,该第一流定义域用于指示该业务流的流,该第一QoS需求域用于指示该第一QoS需求信息,该第一转发头信息域用于指示该业务转发路径。306. The node 301 generates a binding relationship and a first protocol packet. The binding relationship is a binding relationship between the flow and the first QoS requirement information. The first protocol packet includes a first flow definition domain, a first QoS requirement domain, and a first forwarding header information domain. The first protocol packet is used to establish a QoS reservation for the service flow, where the first flow definition domain is used to indicate the flow of the service flow, and the first QoS requirement domain is used to indicate the first QoS requirement information, the first forwarding The header information field is used to indicate the service forwarding path.
具体地,节点301可以是发起业务流服务质量申请的主机,或者也可以是发起业务流服务质量申请的PE设备。并且,该业务流的转发路径在步骤305之前已经建立完成,业务流转发路径为节点301依次经节点302和节点303到达节点304。Specifically, the node 301 may be a host that initiates a service flow service quality application, or may also be a PE device that initiates a service flow service quality application. Moreover, the forwarding path of the service flow has been established before step 305, and the service flow forwarding path reaches the node 304 via the node 302 and the node 303 in sequence.
节点301生成绑定关系,即为该业务流建立了QoS预留。The node 301 generates a binding relationship, that is, establishes a QoS reservation for the service flow.
节点301生成第一协议报文的目的,是用于为该业务流逐跳地建立QoS预留。假设节点301所在的网络是IP网络,假设节点302、节点303和节点304所在的网路是MPLS网络。The purpose of the first protocol packet generated by the node 301 is to establish a QoS reservation hop by hop for the service flow. Assuming that the network in which the node 301 is located is an IP network, it is assumed that the network in which the node 302, the node 303, and the node 304 are located is an MPLS network.
例如,第一流定义域包括源IP地址的范围、目的IP地址的范围、协议ID、端口号的范围、源MAC地址的范围和目的MAC地址的范围;第一QoS需求域包括队列;第一转发头信息域包括源IP地址、目的IP地址、源MAC地址、目的MAC地址和协议ID。For example, the first flow definition domain includes a range of a source IP address, a range of a destination IP address, a protocol ID, a range of a port number, a range of a source MAC address, and a range of a destination MAC address; the first QoS requirement domain includes a queue; the first forwarding The header information field includes a source IP address, a destination IP address, a source MAC address, a destination MAC address, and a protocol ID.
307,节点301将第一协议报文发送至节点302。307. The node 301 sends the first protocol packet to the node 302.
具体地,节点301根据第一转发头信息域将第一协议报文发送至节点302。Specifically, the node 301 sends the first protocol packet to the node 302 according to the first forwarding header information field.
308,节点302根据第一流定义域确定流以及流分类规则,该流分类规则用于后续业务报文进行流分类以确定后续业务报文属于所述流。308. The node 302 determines, according to the first flow domain, a flow and a traffic classification rule, where the traffic classification rule is used to perform traffic classification on the subsequent service packets to determine that the subsequent service packets belong to the flow.
步骤308与图1中的步骤102类似,为避免重复,这里不再赘述。Step 308 is similar to step 102 in FIG. 1. To avoid repetition, details are not described herein again.
309,节点302提取第一QoS需求域中的第一QoS需求信息。309. The node 302 extracts first QoS requirement information in the first QoS requirement domain.
具体地,第一QoS需求信息可以是队列。Specifically, the first QoS requirement information may be a queue.
310,节点302生成绑定关系。该绑定关系为流与第一QoS需求信息之间的绑定关系。310. Node 302 generates a binding relationship. The binding relationship is a binding relationship between the flow and the first QoS requirement information.
具体地,该绑定关系可以是流与队列之间的绑定关系。这样,节点302为该业务流建立了QoS预留。Specifically, the binding relationship may be a binding relationship between the flow and the queue. Thus, node 302 establishes a QoS reservation for the traffic flow.
311,节点302根据第一协议报文生成第二协议报文。第二协议报文包括第二流定义域,第一QoS需求域和第二转发头信息域。 311. The node 302 generates a second protocol packet according to the first protocol packet. The second protocol packet includes a second flow definition domain, a first QoS requirement domain, and a second forwarding header information domain.
可选地,第二流定义域包括源IP地址的范围、目的IP地址的范围、协议ID、端口号的范围、源MAC地址的范围、目的MAC地址的范围和第一MPLS标签。可以理解为第二流定义域包括第一部分第二流定义域和第二部分第二流定义域,其中第一部分第二流定义域包括源IP地址的范围、目的IP地址的范围、协议ID、端口号的范围、源MAC地址的范围和目的MAC地址的范围,第二部分第二流定义域包括第一MPLS标签。也可以理解为第二流定义域是在第一流定义域的基础上添加第一MPLS标签之后生成的。Optionally, the second flow definition domain includes a range of the source IP address, a range of the destination IP address, a protocol ID, a range of the port number, a range of the source MAC address, a range of the destination MAC address, and the first MPLS label. It can be understood that the second flow definition domain includes a first partial second flow definition domain and a second partial second flow definition domain, wherein the first partial second flow definition domain includes a range of a source IP address, a range of a destination IP address, a protocol ID, The range of the port number, the range of the source MAC address, and the range of the destination MAC address. The second part of the second stream definition field includes the first MPLS label. It can also be understood that the second flow definition domain is generated after adding the first MPLS label on the basis of the first flow definition domain.
可选地,第二转发头信息域包括源IP地址、目的IP地址、源MAC地址、目的MAC地址、协议ID和第一MPLS标签。可以理解为第二转发头信息域包括第一部分第二转发头信息域和第二部分第二转发头信息域,其中第一部分第二转发头信息域包括源IP地址、目的IP地址、源MAC地址、目的MAC地址和协议ID,第二部分第二转发头信息域包括第一MPLS标签。也可以理解为第二转发头信息域是在第一转发头信息域的基础上添加第一MPLS标签之后生成的。Optionally, the second forwarding header information field includes a source IP address, a destination IP address, a source MAC address, a destination MAC address, a protocol ID, and a first MPLS label. It can be understood that the second forwarding header information field includes a first part of the second forwarding header information field and a second part of the second forwarding header information field, where the first part of the second forwarding header information field includes a source IP address, a destination IP address, and a source MAC address. The destination MAC address and the protocol ID, and the second part of the second forwarding header information field includes the first MPLS label. It can also be understood that the second forwarding header information field is generated after the first MPLS label is added on the basis of the first forwarding header information field.
其中,该第一MPLS标签可以是节点302根据第一转发头信息域,查找存储在节点302上的第一标签转发表所确定的。The first MPLS label may be determined by the node 302 according to the first forwarding header information field and searching for the first label forwarding table stored on the node 302.
312,节点302将第二协议报文发送至节点303。312. The node 302 sends the second protocol message to the node 303.
具体地,节点302根据第二转发头信息域,将第二协议报文发送至节点303。Specifically, the node 302 sends the second protocol packet to the node 303 according to the second forwarding header information field.
313,节点303根据第二流定义域确定流以及流分类规则,该流分类规则用于后续业务报文进行流分类以确定后续业务报文属于所述流。313. The node 303 determines, according to the second flow domain, a flow and a traffic classification rule, where the traffic classification rule is used to perform traffic classification on the subsequent service packet to determine that the subsequent service packet belongs to the flow.
具体地,节点303可结合第一部分第二流定义域和第二部分第二流定义域,一起确定流。Specifically, the node 303 may combine the first partial second flow definition domain and the second partial second flow definition domain to determine the flow together.
步骤313与图1中的步骤102类似,为避免重复,这里不再赘述。Step 313 is similar to step 102 in FIG. 1. To avoid repetition, details are not described herein again.
314,节点303提取第一QoS需求域中的第一QoS需求信息。314. The node 303 extracts first QoS requirement information in the first QoS requirement domain.
具体地,第一QoS需求信息可以是队列。Specifically, the first QoS requirement information may be a queue.
315,节点303生成绑定关系失败。315. The node 303 fails to generate a binding relationship.
具体地,节点303没有成功地生成流与第一QoS需求信息的绑定关系。失败的原因可能是节点303不能满足第一QoS需求信息中的带宽要求,也可能是其他的原因,本发明对此不作限定。Specifically, the node 303 does not successfully generate a binding relationship between the flow and the first QoS requirement information. The reason for the failure may be that the node 303 cannot meet the bandwidth requirement in the first QoS requirement information, and may be other reasons. The present invention does not limit this.
316,节点303发送告警消息,该告警消息用于指示节点303建立QoS预留失败。316. The node 303 sends an alarm message, where the alarm message is used to indicate that the node 303 fails to establish a QoS reservation.
具体地,该告警消息可以发送给网管。Specifically, the alarm message can be sent to the network management.
可选地,网管可以在接收到该告警消息之后进行人为干预,建立节点303上的绑定 关系,以完成在节点303的QoS预留建立。Optionally, the network management may perform human intervention after receiving the alarm message, and establish a binding on the node 303. Relationship to complete the QoS reservation establishment at node 303.
317,节点303生成第三协议报文。该第三协议报文包括第三流定义域、第一QoS需求域和第三转发头信息域。317. The node 303 generates a third protocol packet. The third protocol packet includes a third flow definition domain, a first QoS requirement domain, and a third forwarding header information domain.
可选地,第三流定义域包括源IP地址的范围、目的IP地址的范围、协议ID、端口号的范围、源MAC地址的范围、目的MAC地址的范围和第二MPLS标签。可以理解为第三流定义域包括第一部分第三流定义域和第二部分第三流定义域,其中第一部分第三流定义域包括源IP地址的范围、目的IP地址的范围、协议ID、端口号的范围、源MAC地址的范围和目的MAC地址的范围,第二部分第三流定义域包括第二MPLS标签。也可以理解为第三流定义域是在第二流定义域的基础上,将第一MPLS标签替换为第二MPLS标签之后生成的。Optionally, the third flow definition domain includes a range of the source IP address, a range of the destination IP address, a protocol ID, a range of the port number, a range of the source MAC address, a range of the destination MAC address, and a second MPLS label. It can be understood that the third stream definition domain includes a first part third stream definition domain and a second part third stream definition domain, wherein the first part third stream definition domain includes a range of source IP addresses, a range of destination IP addresses, a protocol ID, The range of the port number, the range of the source MAC address, and the range of the destination MAC address. The second part of the third stream definition field includes the second MPLS label. It can also be understood that the third stream definition domain is generated after the first MPLS label is replaced with the second MPLS label on the basis of the second stream definition domain.
可选地,所述第三转发头信息域包括目的IP地址;或者,所述第三转发头信息域包括源IP地址、目的IP地址和协议ID;或者,所述第三转发头信息域包括源IP地址、目的IP地址、源端口、目的端口和协议ID;或者,所述第三转发头信息域包括目的MAC地址;或者,所述第三转发头信息域包括源IP地址、目的IP地址、源MAC地址和目的MAC地址。Optionally, the third forwarding header information field includes a destination IP address; or the third forwarding header information domain includes a source IP address, a destination IP address, and a protocol ID; or the third forwarding header information field includes a source IP address, a destination IP address, a source port, a destination port, and a protocol ID; or the third forwarding header information field includes a destination MAC address; or the third forwarding header information field includes a source IP address and a destination IP address. Source MAC address and destination MAC address.
可选地,第三转发头信息域包括源IP地址、目的IP地址、源MAC地址、目的MAC地址、协议ID和第二MPLS标签。可以理解为第三转发头信息域包括第一部分第三转发头信息域和第二部分第三转发头信息域,其中第一部分第三转发头信息域包括源IP地址、目的IP地址、源MAC地址、目的MAC地址和协议ID,第二部分第三转发头信息域包括第二MPLS标签。也可以理解为第三转发头信息域是在第二转发头信息域的基础上,将第一MPLS标签替换为第二MPLS标签之后生成的。Optionally, the third forwarding header information field includes a source IP address, a destination IP address, a source MAC address, a destination MAC address, a protocol ID, and a second MPLS label. It can be understood that the third forwarding header information field includes a first partial third forwarding header information field and a second partial third forwarding header information domain, wherein the first partial third forwarding header information domain includes a source IP address, a destination IP address, and a source MAC address. The destination MAC address and the protocol ID, and the second part of the third forwarding header information field includes the second MPLS label. It can also be understood that the third forwarding header information field is generated after the first MPLS label is replaced with the second MPLS label based on the second forwarding header information field.
其中,该第二MPLS标签可以是节点303根据第二转发头信息域,查找存储在节点303上的第二标签转发表所确定的。The second MPLS label may be determined by the node 303 searching for the second label forwarding table stored on the node 303 according to the second forwarding header information field.
318,节点303将第三协议报文发送至节点304。318. The node 303 sends the third protocol message to the node 304.
具体地,节点303根据第三转发头信息域,将第三协议报文发送至节点304。Specifically, the node 303 sends the third protocol packet to the node 304 according to the third forwarding header information field.
319,节点304根据第三流定义域确定流以及流分类规则,该流分类规则用于后续业务报文进行流分类以确定后续业务报文属于所述流。319. The node 304 determines, according to the third flow domain, a flow and a traffic classification rule, where the traffic classification rule is used to perform traffic classification on the subsequent service packets to determine that the subsequent service packets belong to the flow.
步骤319与步骤313类似,为避免重复,这里不再赘述。Step 319 is similar to step 313. To avoid repetition, details are not described herein again.
320,节点304提取第一QoS需求域中的第一QoS需求信息。320. The node 304 extracts first QoS requirement information in the first QoS requirement domain.
具体地,第一QoS需求信息可以是队列。 Specifically, the first QoS requirement information may be a queue.
321,节点304生成绑定关系。该绑定关系为流与第一QoS需求信息之间的绑定关系。The node 304 generates a binding relationship. The binding relationship is a binding relationship between the flow and the first QoS requirement information.
具体地,该绑定关系可以是流与队列之间的绑定关系。这样,节点304为该业务流建立了QoS预留。Specifically, the binding relationship may be a binding relationship between the flow and the queue. Thus, node 304 establishes a QoS reservation for the traffic flow.
本发明实施例通过协议报文确定流以及QoS需求信息,进一步生成流与QoS需求信息之间的绑定关系,能够为业务流建立QoS预留,该协议报文的逐跳转发能够为业务流逐跳地建立QoS预留,进而能够保障业务流的QoS,并且该预留能够适应各种网络类型。The embodiment of the present invention determines the flow and the QoS requirement information by using the protocol packet, and further generates a binding relationship between the flow and the QoS requirement information, and can establish a QoS reservation for the service flow, and the hop-by-hop forwarding of the protocol packet can be a service. The QoS reservation is established hop by hop, thereby ensuring the QoS of the service flow, and the reservation can be adapted to various network types.
本发明实施例中,节点301至节点304的每一个节点上都建立了绑定关系之后,便完成了节点301至节点304的E2E的QoS预留。In the embodiment of the present invention, after the binding relationship is established on each node of the node 301 to the node 304, the QoS reservation of the E2E of the node 301 to the node 304 is completed.
应注意,图3仅是本发明的一个实施例,本发明对节点数量,节点所在的网络类型不作限定。本领域技术人员在本发明实施例的基础上所扩展的其他实施例,仍然落入本发明的保护范围。It should be noted that FIG. 3 is only one embodiment of the present invention. The present invention does not limit the number of nodes and the type of network in which the nodes are located. Other embodiments that are extended by those skilled in the art based on the embodiments of the present invention still fall within the scope of the present invention.
图4是本发明一个实施例的节点的框图。图4所示的节点400包括:获取单元401,确定单元402,提取单元403和第一生成单元404。4 is a block diagram of a node in accordance with one embodiment of the present invention. The node 400 shown in FIG. 4 includes an acquisition unit 401, a determination unit 402, an extraction unit 403, and a first generation unit 404.
获取单元401,用于获取第一协议报文,第一协议报文包括第一流定义域、第一QoS需求域和第一转发头信息域。第一协议报文用于为业务流建立QoS预留,第一转发头信息域用于指示业务转发路径。确定单元402,用于根据获取单元401获取的第一协议报文中的第一流定义域确定流以及流分类规则,该流分类规则用于后续业务报文进行流分类以确定后续业务报文属于所述流。提取单元403,用于提取获取单元401获取的第一协议报文中的第一QoS需求域中的第一QoS需求信息。第一生成单元404,用于生成绑定关系,该绑定关系为确定单元402确定的流与提取单元403提取的第一QoS需求信息之间的绑定关系。The obtaining unit 401 is configured to obtain a first protocol packet, where the first protocol packet includes a first flow definition domain, a first QoS requirement domain, and a first forwarding header information domain. The first protocol packet is used to establish a QoS reservation for the service flow, and the first forwarding header information field is used to indicate the service forwarding path. The determining unit 402 is configured to determine a flow and a traffic classification rule according to the first flow definition field in the first protocol packet obtained by the obtaining unit 401, where the traffic classification rule is used to perform traffic classification on the subsequent service packet to determine that the subsequent service packet belongs to The stream. The extracting unit 403 is configured to extract first QoS requirement information in the first QoS requirement domain in the first protocol packet obtained by the obtaining unit 401. The first generating unit 404 is configured to generate a binding relationship, where the binding relationship is a binding relationship between the flow determined by the determining unit 402 and the first QoS requirement information extracted by the extracting unit 403.
本发明实施例通过协议报文确定流以及QoS需求信息,进一步生成流与QoS需求信息之间的绑定关系,能够为业务流建立QoS预留,该协议报文的逐跳转发能够为业务流逐跳地建立QoS预留,进而能够保障业务流的QoS,并且该预留能够适应各种网络类型。The embodiment of the present invention determines the flow and the QoS requirement information by using the protocol packet, and further generates a binding relationship between the flow and the QoS requirement information, and can establish a QoS reservation for the service flow, and the hop-by-hop forwarding of the protocol packet can be a service. The QoS reservation is established hop by hop, thereby ensuring the QoS of the service flow, and the reservation can be adapted to various network types.
可选地,作为一个实施例,图4所示的节点400还可包括第二生成单元405和发送单元406。Optionally, as an embodiment, the node 400 shown in FIG. 4 may further include a second generating unit 405 and a sending unit 406.
第二生成单元405可用于根据获取单元401获取的第一协议报文生成第二协议报文,该第二协议报文包括第二流定义域、第一QoS需求域和第二转发头信息域。发送单元406可用于将第二协议报文发送至另一节点,该另一节点为根据该第一转发头信息域进行查表所确定的下一跳节点,该第二协议报文用于由该另一节点为所述业务流建立QoS预留。 其中,第二流定义域是基于第一流定义域或者是基于第一流定义域和第一转发头信息域生成的。第二转发头信息域是基于第一转发头信息域生成的。The second generating unit 405 is configured to generate a second protocol packet according to the first protocol packet that is obtained by the obtaining unit 401, where the second protocol packet includes a second flow definition domain, a first QoS requirement domain, and a second forwarding header information domain. . The sending unit 406 is configured to send the second protocol packet to another node, where the other node is a next hop node determined by performing a table lookup according to the first forwarding header information field, where the second protocol packet is used by The other node establishes a QoS reservation for the traffic flow. The second flow definition domain is generated based on the first flow definition domain or based on the first flow definition domain and the first forwarding header information domain. The second forwarding header information field is generated based on the first forwarding header information field.
可选地,作为另一个实施例,获取单元401还可用于接收第三协议报文,该第三协议报文包括第二QoS需求域。提取单元403还可用于提取获取单元401获取的第三协议报文中的第二QoS需求域中的第二QoS需求信息。发送单元406还可用于当节点400无法满足提取单元403提取的第二QoS需求信息时,发送告警消息,该告警消息用于指示节点400建立QoS预留失败。Optionally, in another embodiment, the obtaining unit 401 is further configured to receive a third protocol packet, where the third protocol packet includes a second QoS requirement domain. The extracting unit 403 is further configured to extract second QoS requirement information in the second QoS requirement domain in the third protocol packet obtained by the obtaining unit 401. The sending unit 406 is further configured to: when the node 400 fails to meet the second QoS requirement information extracted by the extracting unit 403, send an alert message, where the alert message is used to indicate that the node 400 fails to establish a QoS reservation.
可选地,作为一个实施例,获取单元401所获取的第一协议报文中的第一流定义域可包括以下至少一种:源IP地址的范围、目的IP地址的范围、协议ID、端口号的范围、源MAC地址的范围和目的MAC地址的范围。第二转发头信息域可包括目的IP地址;或者,第二转发头信息域可包括源IP地址、目的IP地址和协议ID;或者,第二转发头信息域可包括源IP地址、目的IP地址、源端口、目的端口和协议ID;或者,第二转发头信息域可包括目的MAC地址;或者,第二转发头信息域可包括源IP地址、目的IP地址、源MAC地址和目的MAC地址。Optionally, as an embodiment, the first flow definition field in the first protocol packet acquired by the obtaining unit 401 may include at least one of the following: a range of the source IP address, a range of the destination IP address, a protocol ID, and a port number. The range, the range of source MAC addresses, and the range of destination MAC addresses. The second forwarding header information field may include a destination IP address; or the second forwarding header information field may include a source IP address, a destination IP address, and a protocol ID; or the second forwarding header information field may include a source IP address and a destination IP address. The source port, the destination port, and the protocol ID; or the second forwarding header information field may include the destination MAC address; or the second forwarding header information field may include a source IP address, a destination IP address, a source MAC address, and a destination MAC address.
可选地,作为另一个实施例,当节点400所在的网络属于MPLS网络时,第二流定义域还包括MPLS标签,第二转发头信息域还包括该MPLS标签,该MPLS标签为节点400根据第一转发头信息域,查找标签转发表所确定的。Optionally, as another embodiment, when the network where the node 400 is located belongs to the MPLS network, the second flow definition domain further includes an MPLS label, and the second forwarding header information field further includes the MPLS label, where the MPLS label is the node 400 according to the node 400. The first forwarding header information field is determined by the label forwarding table.
可选地,作为另一个实施例,当节点400通过GRE隧道转发第二协议报文时,第二流定义域还包括GRE IP头,第二转发头信息域还包括该GRE IP头,该GRE IP头为节点400根据所述第一转发头信息域,查找路由表所确定的Optionally, as another embodiment, when the node 400 forwards the second protocol packet through the GRE tunnel, the second flow definition domain further includes a GRE IP header, and the second forwarding header information domain further includes the GRE IP header, the GRE The IP header is determined by the node 400 according to the first forwarding header information field, and the routing table is determined.
可选地,作为另一个实施例,当节点400通过MAC隧道转发第二协议报文时,第二流定义域还包括MAC in MAC头,第二转发头信息域还包括该MAC in MAC头,该MAC in MAC头为节点400根据所述第一转发头信息域,查找第一MAC转发表所确定的。Optionally, in another embodiment, when the node 400 forwards the second protocol packet by using the MAC tunnel, the second flow definition domain further includes a MAC in MAC header, and the second forwarding header information domain further includes the MAC in MAC header. The MAC in MAC header is determined by the node 400 according to the first forwarding header information field to look up the first MAC forwarding table.
可选地,作为另一个实施例,当节点400通过VXLAN隧道转发第二协议报文时,第二流定义域还包括VXLAN头,第二转发头信息域还包括该VXLAN头,该VXLAN头为节点400根据第一转发头信息域,查找第二MAC转发表所确定的。Optionally, as another embodiment, when the node 400 forwards the second protocol packet through the VXLAN tunnel, the second flow definition domain further includes a VXLAN header, and the second forwarding header information domain further includes the VXLAN header, where the VXLAN header is The node 400 searches for the second MAC forwarding table according to the first forwarding header information field.
可选地,作为另一个实施例,获取单元401所获取的第一协议报文还可包括队列ID和层次化级别,该队列ID和该层次化级别用于为业务流建立层次化队列,并进一步为该层次化队列进行调度部署。Optionally, in another embodiment, the first protocol packet acquired by the obtaining unit 401 may further include a queue ID and a layering level, where the queue ID and the layering level are used to establish a hierarchical queue for the service flow, and Further scheduling and deploying the hierarchical queue.
可选地,作为另一个实施例,获取单元401所获取的第一协议报文还可包括信息域, 该信息域包括建立QoS预留的监控信息。Optionally, as another embodiment, the first protocol packet acquired by the obtaining unit 401 may further include an information domain. The information field includes monitoring information for establishing a QoS reservation.
可选地,作为另一个实施例,节点400还可包括删除单元,用于:当在预设的时间段内没有业务使用第一生成单元404生成的绑定关系时,删除该绑定关系。Optionally, as another embodiment, the node 400 may further include a deleting unit, configured to delete the binding relationship when no service uses the binding relationship generated by the first generating unit 404 within a preset time period.
图5是本发明另一个实施例的节点的框图。图5所示的节点500包括:生成单元501和发送单元502。Figure 5 is a block diagram of a node in accordance with another embodiment of the present invention. The node 500 shown in FIG. 5 includes a generating unit 501 and a transmitting unit 502.
生成单元501,用于生成绑定关系和协议报文,该绑定关系为流与QoS需求信息之间的绑定关系。该协议报文包括流定义域、服务质量QoS需求域和转发头信息域。该协议报文用于为业务流建立QoS预留,该流定义域用于指示所述业务流的流,该QoS需求域用于指示该QoS需求信息,该转发头信息域用于指示业务流转发路径。发送单元502,用于根据该转发头信息域,将第一生成单元501生成的协议报文发送至另一节点,该另一节点为该转发头信息域所指示的下一跳节点。The generating unit 501 is configured to generate a binding relationship and a protocol packet, where the binding relationship is a binding relationship between the flow and the QoS requirement information. The protocol message includes a flow definition domain, a quality of service QoS requirement domain, and a forwarding header information domain. The protocol message is used to establish a QoS reservation for the service flow, where the flow definition field is used to indicate the flow of the service flow, the QoS requirement domain is used to indicate the QoS requirement information, and the forwarding header information field is used to indicate the service flow. Send path. The sending unit 502 is configured to send, according to the forwarding header information field, the protocol packet generated by the first generating unit 501 to another node, where the other node is a next hop node indicated by the forwarding header information field.
本发明实施例通过协议报文确定流以及QoS需求信息,进一步生成流与QoS需求信息之间的绑定关系,能够为业务流建立QoS预留,该协议报文的逐跳转发能够为业务流逐跳地建立QoS预留,进而能够保障业务流的QoS,并且该预留能够适应各种网络类型。The embodiment of the present invention determines the flow and the QoS requirement information by using the protocol packet, and further generates a binding relationship between the flow and the QoS requirement information, and can establish a QoS reservation for the service flow, and the hop-by-hop forwarding of the protocol packet can be a service. The QoS reservation is established hop by hop, thereby ensuring the QoS of the service flow, and the reservation can be adapted to various network types.
可选地,作为一个实施例,生成单元501可包括:接收子单元503、第一生成子单元504和第二生成子单元505。接收子单元503可用于接收至少一个第一协议报文。第一生成子单元504可用于根据汇聚策略,将接收子单元503接收的至少一个第一协议报文合并以生成协议报文。第二生成子单元505用于生成所述绑定关系。Optionally, as an embodiment, the generating unit 501 may include: a receiving subunit 503, a first generating subunit 504, and a second generating subunit 505. The receiving subunit 503 can be configured to receive at least one first protocol message. The first generating sub-unit 504 is configured to combine the at least one first protocol packet received by the receiving sub-unit 503 to generate a protocol packet according to the convergence policy. The second generation subunit 505 is configured to generate the binding relationship.
可选地,作为另一个实施例,生成单元501所生成的协议报文中的流定义域可包括以下至少一种:源IP地址的范围、目的IP地址的范围、协议ID、端口号的范围、源MAC地址的范围和目的MAC地址的范围。转发头信息域可包括目的IP地址;或者,转发头信息域可包括源IP地址、目的IP地址和协议ID;或者,转发头信息域可包括源IP地址、目的IP地址、源端口、目的端口和协议ID;或者,转发头信息域可包括目的MAC地址;或者,转发头信息域可包括源IP地址、目的IP地址,源MAC地址和目的MAC地址。Optionally, as another embodiment, the flow definition field in the protocol packet generated by the generating unit 501 may include at least one of the following: a range of the source IP address, a range of the destination IP address, a protocol ID, and a range of the port number. The range of the source MAC address and the range of the destination MAC address. The forwarding header information field may include a destination IP address; or the forwarding header information field may include a source IP address, a destination IP address, and a protocol ID; or the forwarding header information field may include a source IP address, a destination IP address, a source port, and a destination port. And the protocol ID; or, the forwarding header information field may include a destination MAC address; or, the forwarding header information field may include a source IP address, a destination IP address, a source MAC address, and a destination MAC address.
可选地,作为另一个实施例,当节点500所在的网络属于MPLS网络时,流定义域还包括MPLS标签,转发头信息域还包括该MPLS标签。Optionally, as another embodiment, when the network where the node 500 is located belongs to the MPLS network, the flow definition domain further includes an MPLS label, and the forwarding header information field further includes the MPLS label.
可选地,作为另一个实施例,当节点500通过GRE隧道转发协议报文时,流定义域还包括GRE IP头,转发头信息域还包括该GRE IP头。Optionally, as another embodiment, when the node 500 forwards the protocol packet through the GRE tunnel, the flow definition domain further includes a GRE IP header, and the forwarding header information domain further includes the GRE IP header.
可选地,作为另一个实施例,当节点500通过MAC隧道转发协议报文时,流定义域还包括MAC in MAC头,转发头信息域还包括该MAC in MAC头。 Optionally, as another embodiment, when the node 500 forwards the protocol packet through the MAC tunnel, the flow definition domain further includes a MAC in MAC header, and the forwarding header information domain further includes the MAC in MAC header.
可选地,作为另一个实施例,当节点500通过VXLAN隧道转发协议报文时,流定义域还包括VXLAN头,转发头信息域还包括该VXLAN头。Optionally, as another embodiment, when the node 500 forwards the protocol packet through the VXLAN tunnel, the flow definition domain further includes a VXLAN header, and the forwarding header information domain further includes the VXLAN header.
可选地,作为另一个实施例,生成单元501所生成的协议报文还可包括队列ID和层次化级别,该队列ID和该层次化级别用于为该业务流建立层次化队列,并进一步为该层次化队列进行调度部署。Optionally, as another embodiment, the protocol packet generated by the generating unit 501 may further include a queue ID and a layering level, where the layer ID and the layering level are used to establish a hierarchical queue for the service flow, and further Schedule deployment for this hierarchical queue.
可选地,作为另一个实施例,生成单元501所生成的协议报文还可包括信息域,该信息域包括建立QoS预留的监控信息。Optionally, as another embodiment, the protocol packet generated by the generating unit 501 may further include an information domain, where the information domain includes monitoring information for establishing a QoS reservation.
可选地,作为另一个实施例,节点500还可包括删除单元,用于:当在预设的时间段内没有业务使用生成单元501生成的绑定关系时,删除该绑定关系。Optionally, as another embodiment, the node 500 may further include a deleting unit, configured to delete the binding relationship when there is no binding relationship generated by the service using generating unit 501 within a preset time period.
图6是本发明另一个实施例的节点的框图。图6所示的节点600包括:处理器601、存储器602、接收电路603和发送电路604。Figure 6 is a block diagram of a node in accordance with another embodiment of the present invention. The node 600 shown in FIG. 6 includes a processor 601, a memory 602, a receiving circuit 603, and a transmitting circuit 604.
接收电路603,用于获取第一协议报文,第一协议报文包括第一流定义域、第一QoS需求域和第一转发头信息域。第一协议报文用于为业务流建立QoS预留,第一转发头信息域用于指示业务流转发路径。处理器601,用于根据接收电路603获取的第一协议报文中的第一流定义域确定流以及流分类规则,该流分类规则用于后续业务报文进行流分类以确定后续业务报文属于所述流;提取接收电路603获取的第一协议报文中的第一QoS需求域中的第一QoS需求信息;并生成绑定关系,该绑定关系为流与第一QoS需求信息之间的绑定关系。The receiving circuit 603 is configured to obtain a first protocol packet, where the first protocol packet includes a first flow definition domain, a first QoS requirement domain, and a first forwarding header information domain. The first protocol packet is used to establish a QoS reservation for the service flow, and the first forwarding header information field is used to indicate the service flow forwarding path. The processor 601 is configured to determine a flow and a traffic classification rule according to the first flow definition field in the first protocol packet that is received by the receiving circuit 603, where the traffic classification rule is used to perform traffic classification on the subsequent service packet to determine that the subsequent service packet belongs to Extracting the first QoS requirement information in the first QoS requirement domain in the first protocol packet obtained by the receiving circuit 603; and generating a binding relationship, where the binding relationship is between the flow and the first QoS requirement information Binding relationship.
本发明实施例通过协议报文确定流以及QoS需求信息,进一步生成流与QoS需求信息之间的绑定关系,能够为业务流建立QoS预留,该协议报文的逐跳转发能够为业务流逐跳地建立QoS预留,进而能够保障业务流的QoS,并且该预留能够适应各种网络类型。The embodiment of the present invention determines the flow and the QoS requirement information by using the protocol packet, and further generates a binding relationship between the flow and the QoS requirement information, and can establish a QoS reservation for the service flow, and the hop-by-hop forwarding of the protocol packet can be a service. The QoS reservation is established hop by hop, thereby ensuring the QoS of the service flow, and the reservation can be adapted to various network types.
节点600中的各个组件通过总线系统605耦合在一起,其中总线系统605除包括数据总线之外,还包括电源总线、控制总线和状态信号总线。但是为了清楚说明起见,在图6中将各种总线都标为总线系统605。The various components in node 600 are coupled together by a bus system 605, which in addition to the data bus includes a power bus, a control bus, and a status signal bus. However, for clarity of description, various buses are labeled as bus system 605 in FIG.
上述本发明实施例揭示的方法可以应用于处理器601中,或者由处理器601实现。处理器601可能是一种集成电路芯片,具有信号的处理能力。在实现过程中,上述方法的各步骤可以通过处理器601中的硬件的集成逻辑电路或者软件形式的指令完成。上述的处理器601可以是通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现成可编程门阵列(Field Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器 件、分立硬件组件。可以实现或者执行本发明实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。结合本发明实施例所公开的方法的步骤可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存取存储器(Random Access Memory,RAM)、闪存、只读存储器(Read-Only Memory,ROM)、可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器602,处理器601读取存储器602中的信息,结合其硬件完成上述方法的步骤。The method disclosed in the foregoing embodiments of the present invention may be applied to the processor 601 or implemented by the processor 601. Processor 601 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the foregoing method may be completed by an integrated logic circuit of hardware in the processor 601 or an instruction in a form of software. The processor 601 may be a general-purpose processor, a digital signal processor (DSP), an application specific integrated circuit (ASIC), a Field Programmable Gate Array (FPGA), or the like. Programmable logic device, discrete gate or transistor logic Pieces, discrete hardware components. The methods, steps, and logical block diagrams disclosed in the embodiments of the present invention may be implemented or carried out. The general purpose processor may be a microprocessor or the processor or any conventional processor or the like. The steps of the method disclosed in the embodiments of the present invention may be directly implemented by the hardware decoding processor, or may be performed by a combination of hardware and software modules in the decoding processor. The software module can be located in a random access memory (RAM), a flash memory, a read-only memory (ROM), a programmable read only memory or an electrically erasable programmable memory, a register, etc. In the storage medium. The storage medium is located in the memory 602, and the processor 601 reads the information in the memory 602 and completes the steps of the above method in combination with its hardware.
可选地,作为一个实施例,处理器601还可用于根据接收电路603获取的第一协议报文生成第二协议报文,该第二协议报文包括第二流定义域、第一QoS需求域和第二转发头信息域。发送电路604可用于将第二协议报文发送至另一节点,该另一节点为根据该第一转发头信息域进行查表所确定的下一跳节点,该第二协议报文用于由该另一节点为所述业务流建立QoS预留。其中,第二流定义域是基于第一流定义域或者是基于第一流定义域和第一转发头信息域生成的。第二转发头信息域是基于第一转发头信息域生成的。Optionally, as an embodiment, the processor 601 is further configured to generate a second protocol packet according to the first protocol packet that is obtained by the receiving circuit 603, where the second protocol packet includes a second flow definition domain and a first QoS requirement. Domain and second forwarding header information field. The sending circuit 604 can be configured to send the second protocol packet to another node, where the other node is a next hop node determined by performing a lookup table according to the first forwarding header information field, where the second protocol packet is used by The other node establishes a QoS reservation for the traffic flow. The second flow definition domain is generated based on the first flow definition domain or based on the first flow definition domain and the first forwarding header information domain. The second forwarding header information field is generated based on the first forwarding header information field.
可选地,作为另一个实施例,接收电路603还用于接收第三协议报文,该第三协议报文包括第二QoS需求域。处理器601还用于提取接收电路603获取的第三协议报文中的第二QoS需求域中的第二QoS需求信息。当节点600无法满足第二QoS需求信息时,发送电路604还用于发送告警消息,该告警消息用于指示节点600建立QoS预留失败。Optionally, as another embodiment, the receiving circuit 603 is further configured to receive a third protocol packet, where the third protocol packet includes a second QoS requirement field. The processor 601 is further configured to extract second QoS requirement information in the second QoS requirement domain in the third protocol packet obtained by the receiving circuit 603. When the node 600 is unable to meet the second QoS requirement information, the sending circuit 604 is further configured to send an alarm message, where the alarm message is used to indicate that the node 600 fails to establish a QoS reservation.
可选地,作为一个实施例,接收电路603所获取的第一协议报文中的第一流定义域可包括以下至少一种:源IP地址的范围、目的IP地址的范围、协议ID、端口号的范围、源MAC地址的范围和目的MAC地址的范围。第二转发头信息域可包括目的IP地址;或者,第二转发头信息域可包括源IP地址、目的IP地址和协议ID;或者,第二转发头信息域可包括源IP地址、目的IP地址、源端口、目的端口和协议ID;或者,第二转发头信息域可包括目的MAC地址;或者,第二转发头信息域可包括源IP地址、目的IP地址、源MAC地址和目的MAC地址。Optionally, as an embodiment, the first flow definition field in the first protocol packet acquired by the receiving circuit 603 may include at least one of the following: a range of the source IP address, a range of the destination IP address, a protocol ID, and a port number. The range, the range of source MAC addresses, and the range of destination MAC addresses. The second forwarding header information field may include a destination IP address; or the second forwarding header information field may include a source IP address, a destination IP address, and a protocol ID; or the second forwarding header information field may include a source IP address and a destination IP address. The source port, the destination port, and the protocol ID; or the second forwarding header information field may include the destination MAC address; or the second forwarding header information field may include a source IP address, a destination IP address, a source MAC address, and a destination MAC address.
可选地,作为另一个实施例,当节点600所在的网络属于MPLS网络时,第二流定义域还包括MPLS标签,第二转发头信息域还包括该MPLS标签,该MPLS标签为节点600根据第一转发头信息域,查找标签转发表所确定的。Optionally, as another embodiment, when the network where the node 600 is located belongs to the MPLS network, the second flow definition domain further includes an MPLS label, and the second forwarding header information field further includes the MPLS label, where the MPLS label is the node 600 according to the node 600. The first forwarding header information field is determined by the label forwarding table.
可选地,作为另一个实施例,当节点600通过GRE隧道转发第二协议报文时,第二流定义域还包括GRE IP头,第二转发头信息域还包括该GRE IP头,该GRE IP头为节点 600根据所述第一转发头信息域,查找路由表所确定的。Optionally, as another embodiment, when the node 600 forwards the second protocol packet through the GRE tunnel, the second flow definition domain further includes a GRE IP header, and the second forwarding header information domain further includes the GRE IP header, the GRE IP header is a node 600 is determined by searching the routing table according to the first forwarding header information field.
可选地,作为另一个实施例,当节点600通过MAC隧道转发第二协议报文时,第二流定义域还包括MAC in MAC头,第二转发头信息域还包括该MAC in MAC头,该MAC in MAC头为节点600根据所述第一转发头信息域,查找第一MAC转发表所确定的。Optionally, in another embodiment, when the node 600 forwards the second protocol packet by using the MAC tunnel, the second flow definition domain further includes a MAC in MAC header, and the second forwarding header information domain further includes the MAC in MAC header. The MAC in MAC header is determined by the node 600 according to the first forwarding header information field to find the first MAC forwarding table.
可选地,作为另一个实施例,当节点600通过VXLAN隧道转发第二协议报文时,第二流定义域还包括VXLAN头,第二转发头信息域还包括该VXLAN头,该VXLAN头为节点600根据第一转发头信息域,查找第二MAC转发表所确定的。Optionally, in another embodiment, when the node 600 forwards the second protocol packet through the VXLAN tunnel, the second flow definition domain further includes a VXLAN header, and the second forwarding header information domain further includes the VXLAN header, where the VXLAN header is The node 600 searches for the second MAC forwarding table according to the first forwarding header information field.
可选地,作为另一个实施例,接收电路603所获取的第一协议报文还可包括队列ID和层次化级别,该队列ID和该层次化级别用于为业务流建立层次化队列,并进一步为该层次化队列进行调度部署。Optionally, in another embodiment, the first protocol packet acquired by the receiving circuit 603 may further include a queue ID and a layering level, where the queue ID and the layering level are used to establish a hierarchical queue for the service flow, and Further scheduling and deploying the hierarchical queue.
可选地,作为另一个实施例,接收电路603所获取的第一协议报文还可包括信息域,该信息域包括建立QoS预留的监控信息。Optionally, as another embodiment, the first protocol packet acquired by the receiving circuit 603 may further include an information domain, where the information domain includes monitoring information for establishing a QoS reservation.
可选地,作为另一个实施例,节点600还可包括删除单元,用于:当在预设的时间段内没有业务使用绑定关系时,处理器601还用于删除该绑定关系。Optionally, as another embodiment, the node 600 may further include a deleting unit, configured to: when no service uses the binding relationship within a preset time period, the processor 601 is further configured to delete the binding relationship.
节点600能够实现图1的实施例中由第一节点实现的各个过程,为避免重复,这里不再赘述。The node 600 can implement the various processes implemented by the first node in the embodiment of FIG. 1. To avoid repetition, details are not described herein again.
图7是本发明另一个实施例的节点的框图。图7所示的节点700包括处理器701、存储器702、接收电路703和发送电路704。Figure 7 is a block diagram of a node in accordance with another embodiment of the present invention. The node 700 shown in FIG. 7 includes a processor 701, a memory 702, a receiving circuit 703, and a transmitting circuit 704.
处理器701用于生成绑定关系和协议报文,该绑定关系为流与QoS需求信息之间的绑定关系。该协议报文包括流定义域、服务质量QoS需求域和转发头信息域。该协议报文用于为业务流建立QoS预留,该流定义域用于指示所述业务流的流,该QoS需求域用于指示该QoS需求信息,该转发头信息域用于指示业务流转发路径。发送电路704用于根据该转发头信息域,将处理器701生成的协议报文发送至另一节点,该另一节点为该转发头信息域所指示的下一跳节点。The processor 701 is configured to generate a binding relationship and a protocol packet, where the binding relationship is a binding relationship between the flow and the QoS requirement information. The protocol message includes a flow definition domain, a quality of service QoS requirement domain, and a forwarding header information domain. The protocol message is used to establish a QoS reservation for the service flow, where the flow definition field is used to indicate the flow of the service flow, the QoS requirement domain is used to indicate the QoS requirement information, and the forwarding header information field is used to indicate the service flow. Send path. The sending circuit 704 is configured to send, according to the forwarding header information field, the protocol packet generated by the processor 701 to another node, where the other node is the next hop node indicated by the forwarding header information field.
本发明实施例通过协议报文确定流以及QoS需求信息,进一步生成流与QoS需求信息之间的绑定关系,能够为业务流建立QoS预留,该协议报文的逐跳转发能够为业务流逐跳地建立QoS预留,进而能够保障业务流的QoS,并且该预留能够适应各种网络类型。The embodiment of the present invention determines the flow and the QoS requirement information by using the protocol packet, and further generates a binding relationship between the flow and the QoS requirement information, and can establish a QoS reservation for the service flow, and the hop-by-hop forwarding of the protocol packet can be a service. The QoS reservation is established hop by hop, thereby ensuring the QoS of the service flow, and the reservation can be adapted to various network types.
节点700中的各个组件通过总线系统705耦合在一起,其中总线系统705除包括数据总线之外,还包括电源总线、控制总线和状态信号总线。但是为了清楚说明起见,在图7中将各种总线都标为总线系统705。 The various components in node 700 are coupled together by a bus system 705, which in addition to the data bus includes a power bus, a control bus, and a status signal bus. However, for clarity of description, various buses are labeled as bus system 705 in FIG.
上述本发明实施例揭示的方法可以应用于处理器701中,或者由处理器701实现。处理器701可能是一种集成电路芯片,具有信号的处理能力。在实现过程中,上述方法的各步骤可以通过处理器701中的硬件的集成逻辑电路或者软件形式的指令完成。上述的处理器701可以是通用处理器、DSP、ASIC、FPGA或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。可以实现或者执行本发明实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。结合本发明实施例所公开的方法的步骤可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件模块组合执行完成。软件模块可以位于RAM、闪存、ROM、可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器702,处理器701读取存储器702中的信息,结合其硬件完成上述方法的步骤。The method disclosed in the foregoing embodiments of the present invention may be applied to the processor 701 or implemented by the processor 701. Processor 701 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the foregoing method may be completed by an integrated logic circuit of hardware in the processor 701 or an instruction in a form of software. The processor 701 described above may be a general purpose processor, DSP, ASIC, FPGA or other programmable logic device, discrete gate or transistor logic device, discrete hardware component. The methods, steps, and logical block diagrams disclosed in the embodiments of the present invention may be implemented or carried out. The general purpose processor may be a microprocessor or the processor or any conventional processor or the like. The steps of the method disclosed in the embodiments of the present invention may be directly implemented by the hardware decoding processor, or may be performed by a combination of hardware and software modules in the decoding processor. The software modules can be located in RAM, flash memory, ROM, programmable read only memory, or electrically erasable programmable memory, registers, and the like, which are well established in the art. The storage medium is located in the memory 702, and the processor 701 reads the information in the memory 702 and completes the steps of the above method in combination with its hardware.
可选地,作为一个实施例,接收电路703可用于接收至少一个第一协议报文。处理器701可用于根据汇聚策略,将接收子单元504接收的至少一个第一协议报文合并以生成协议报文。Optionally, as an embodiment, the receiving circuit 703 is configured to receive at least one first protocol message. The processor 701 is configured to combine the at least one first protocol packet received by the receiving subunit 504 to generate a protocol packet according to the convergence policy.
可选地,作为另一个实施例,处理器701所生成的协议报文中的流定义域可包括以下至少一种:源IP地址的范围、目的IP地址的范围、协议ID、端口号的范围、源MAC地址的范围和目的MAC地址的范围。转发头信息域可包括目的IP地址;或者,转发头信息域可包括源IP地址、目的IP地址和协议ID;或者,转发头信息域可包括源IP地址、目的IP地址、源端口、目的端口和协议ID;或者,转发头信息域可包括目的MAC地址;或者,转发头信息域可包括源IP地址、目的IP地址、源MAC地址和目的MAC地址。Optionally, as another embodiment, the flow definition field in the protocol packet generated by the processor 701 may include at least one of the following: a range of the source IP address, a range of the destination IP address, a protocol ID, and a range of the port number. The range of the source MAC address and the range of the destination MAC address. The forwarding header information field may include a destination IP address; or the forwarding header information field may include a source IP address, a destination IP address, and a protocol ID; or the forwarding header information field may include a source IP address, a destination IP address, a source port, and a destination port. And the protocol ID; or, the forwarding header information field may include a destination MAC address; or, the forwarding header information field may include a source IP address, a destination IP address, a source MAC address, and a destination MAC address.
可选地,作为另一个实施例,当节点700所在的网络属于MPLS网络时,流定义域还包括MPLS标签,转发头信息域还包括该MPLS标签。Optionally, as another embodiment, when the network where the node 700 is located belongs to the MPLS network, the flow definition domain further includes an MPLS label, and the forwarding header information field further includes the MPLS label.
可选地,作为另一个实施例,当节点700通过GRE隧道转发协议报文时,流定义域还包括GRE IP头,转发头信息域还包括该GRE IP头。Optionally, as another embodiment, when the node 700 forwards the protocol packet through the GRE tunnel, the flow definition domain further includes a GRE IP header, and the forwarding header information domain further includes the GRE IP header.
可选地,作为另一个实施例,当节点700通过MAC隧道转发协议报文时,流定义域还包括MAC in MAC头,转发头信息域还包括该MAC in MAC头。Optionally, as another embodiment, when the node 700 forwards the protocol packet through the MAC tunnel, the flow definition domain further includes a MAC in MAC header, and the forwarding header information domain further includes the MAC in MAC header.
可选地,作为另一个实施例,当节点700通过VXLAN隧道转发协议报文时,流定义域还包括VXLAN头,转发头信息域还包括该VXLAN头。Optionally, as another embodiment, when the node 700 forwards the protocol packet through the VXLAN tunnel, the flow definition domain further includes a VXLAN header, and the forwarding header information domain further includes the VXLAN header.
可选地,作为另一个实施例,处理器701所生成的协议报文还可包括队列ID和层次化级别,该队列ID和该层次化级别用于为该业务流建立层次化队列,并进一步为该层次 化队列进行调度部署。Optionally, as another embodiment, the protocol packet generated by the processor 701 may further include a queue ID and a layering level, where the layer ID and the layering level are used to establish a hierarchical queue for the service flow, and further For this level The queue is scheduled for deployment.
可选地,作为另一个实施例,处理器701所生成的协议报文还可包括信息域,该信息域包括建立QoS预留的监控信息。Optionally, as another embodiment, the protocol packet generated by the processor 701 may further include an information domain, where the information domain includes monitoring information for establishing a QoS reservation.
可选地,作为另一个实施例,处理器701还可用于:当在预设的时间段内没有业务使用处理器701生成的绑定关系时,删除该绑定关系。Optionally, as another embodiment, the processor 701 is further configured to delete the binding relationship when no service uses the binding relationship generated by the processor 701 within a preset time period.
节点700能够实现图2的实施例中由第一节点实现的各个过程,为避免重复,这里不再赘述。The node 700 can implement the processes implemented by the first node in the embodiment of FIG. 2. To avoid repetition, details are not described herein again.
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。Those of ordinary skill in the art will appreciate that the elements and algorithm steps of the various examples described in connection with the embodiments disclosed herein can be implemented in electronic hardware or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the solution. A person skilled in the art can use different methods for implementing the described functions for each particular application, but such implementation should not be considered to be beyond the scope of the present invention.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。A person skilled in the art can clearly understand that for the convenience and brevity of the description, the specific working process of the system, the device and the unit described above can refer to the corresponding process in the foregoing method embodiment, and details are not described herein again.
在本申请所提供的几个实施例中,应该理解到,所揭露的系统、装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided by the present application, it should be understood that the disclosed systems, devices, and methods may be implemented in other manners. For example, the device embodiments described above are merely illustrative. For example, the division of the unit is only a logical function division. In actual implementation, there may be another division manner, for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以 是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。The functions may be stored in a computer readable storage medium if implemented in the form of a software functional unit and sold or used as a standalone product. Based on such understanding, the technical solution of the present invention, which is essential or contributes to the prior art, or a part of the technical solution, may be embodied in the form of a software product, which is stored in a storage medium, including Several instructions to make a computer device (can It is a personal computer, server, or network device, etc.) that performs all or part of the steps of the methods described in various embodiments of the present invention. The foregoing storage medium includes various media that can store program codes, such as a USB flash drive, a mobile hard disk, a ROM, a RAM, a magnetic disk, or an optical disk.
以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以权利要求的保护范围为准。 The above is only a specific embodiment of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily think of changes or substitutions within the technical scope of the present invention. It should be covered by the scope of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.

Claims (42)

  1. 一种建立服务质量预留的方法,其特征在于,包括:A method for establishing a quality of service reservation, characterized in that it comprises:
    第一节点获取第一协议报文,所述第一协议报文包括第一流定义域、第一服务质量QoS需求域和第一转发头信息域,所述第一协议报文用于为业务流建立QoS预留,所述第一转发头信息域用于指示业务流转发路径;The first node obtains a first protocol packet, where the first protocol packet includes a first flow definition domain, a first quality of service QoS requirement domain, and a first forwarding header information domain, where the first protocol packet is used as a service flow. Establishing a QoS reservation, where the first forwarding header information field is used to indicate a service flow forwarding path;
    所述第一节点根据所述第一流定义域确定流以及流分类规则,所述流分类规则用于后续业务报文进行流分类以确定所述后续业务报文属于所述流;Determining, by the first node, the flow and the traffic classification rule according to the first flow definition domain, where the traffic classification rule is used to perform traffic classification on the subsequent service packet to determine that the subsequent service packet belongs to the flow;
    所述第一节点提取所述第一QoS需求域中的第一QoS需求信息;The first node extracts first QoS requirement information in the first QoS requirement domain;
    所述第一节点生成绑定关系,所述绑定关系为所述流与所述第一QoS需求信息之间的绑定关系。The first node generates a binding relationship, where the binding relationship is a binding relationship between the flow and the first QoS requirement information.
  2. 根据权利要求1所述的方法,其特征在于,还包括:The method of claim 1 further comprising:
    所述第一节点根据所述第一协议报文生成第二协议报文,所述第二协议报文包括第二流定义域、所述第一QoS需求域和第二转发头信息域;The first node generates a second protocol packet according to the first protocol packet, where the second protocol packet includes a second flow definition domain, the first QoS requirement domain, and a second forwarding header information domain.
    所述第一节点将所述第二协议报文发送至第二节点,所述第二节点为根据所述第一转发头信息域进行查表所确定的下一跳节点,所述第二协议报文用于由所述第二节点为所述业务流建立QoS预留,Sending, by the first node, the second protocol packet to the second node, where the second node is a next hop node determined by performing a table lookup according to the first forwarding header information field, the second protocol The message is used by the second node to establish a QoS reservation for the service flow,
    其中,所述第二流定义域是基于所述第一流定义域或者是基于所述第一流定义域和所述第一转发头信息域生成的,所述第二转发头信息域是基于所述第一转发头信息域生成的。The second flow definition domain is generated based on the first flow definition domain or based on the first flow definition domain and the first forwarding header information domain, and the second forwarding header information domain is based on the The first forwarding header information field is generated.
  3. 根据权利要求1或2所述的方法,其特征在于,还包括:The method according to claim 1 or 2, further comprising:
    所述第一节点接收第三协议报文,所述第三协议报文包括第二QoS需求域;The first node receives a third protocol packet, where the third protocol packet includes a second QoS requirement field;
    所述第一节点提取所述第二QoS需求域中的第二QoS需求信息;The first node extracts second QoS requirement information in the second QoS requirement domain;
    当所述第一节点无法满足所述第二QoS需求信息时,所述第一节点发送告警消息,所述告警消息用于指示所述第一节点建立QoS预留失败。When the first node cannot meet the second QoS requirement information, the first node sends an alarm message, where the alarm message is used to indicate that the first node fails to establish a QoS reservation.
  4. 根据权利要求2至3任一项所述的方法,其特征在于,所述第二流定义域包括以下至少一种:源网络协议IP地址的范围、目的IP地址的范围、协议标识ID、端口号的范围、源媒体接入控制MAC地址的范围和目的MAC地址的范围,The method according to any one of claims 2 to 3, wherein the second flow definition domain comprises at least one of the following: a range of a source network protocol IP address, a range of a destination IP address, a protocol identification ID, and a port. The range of the number, the range of the source media access control MAC address, and the range of the destination MAC address,
    所述第二转发头信息域包括目的IP地址;或者,所述第二转发头信息域包括源IP地址、目的IP地址和协议ID;或者,所述第二转发头信息域包括源IP地址、目的IP地址、 源端口、目的端口和协议ID;或者,所述第二转发头信息域包括目的MAC地址;或者,所述第二转发头信息域包括源IP地址、目的IP地址、源MAC地址和目的MAC地址。The second forwarding header information field includes a destination IP address; or the second forwarding header information field includes a source IP address, a destination IP address, and a protocol ID; or the second forwarding header information field includes a source IP address, Destination IP address, a source port, a destination port, and a protocol ID; or the second forwarding header information field includes a destination MAC address; or the second forwarding header information field includes a source IP address, a destination IP address, a source MAC address, and a destination MAC address. .
  5. 根据权利要求4所述的方法,其特征在于,当所述第一节点所在的网络属于多协议标签交换MPLS网络时,所述第二流定义域还包括MPLS标签,所述第二转发头信息域还包括所述MPLS标签,所述MPLS标签为所述第一节点根据所述第一转发头信息域,查找标签转发表所确定的。The method according to claim 4, wherein when the network in which the first node is located belongs to a multi-protocol label switching MPLS network, the second flow definition domain further includes an MPLS label, and the second forwarding header information The domain further includes the MPLS label, where the MPLS label is determined by the first node according to the first forwarding header information field and searching for a label forwarding table.
  6. 根据权利要求4所述的方法,其特征在于,当所述第一节点通过通用路由封装GRE隧道转发所述第二协议报文时,所述第二流定义域还包括GRE IP头,所述第二转发头信息域还包括所述GRE IP头,所述GRE IP头为所述第一节点根据所述第一转发头信息域,查找路由表所确定的。The method according to claim 4, wherein when the first node forwards the second protocol packet by using a universal routing encapsulation GRE tunnel, the second flow defining domain further includes a GRE IP header, where The second forwarding header information field further includes the GRE IP header, where the GRE IP header is determined by the first node according to the first forwarding header information field and searching for a routing table.
  7. 根据权利要求4所述的方法,其特征在于,当所述第一节点通过MAC隧道转发所述第二协议报文时,所述第二流定义域还包括MAC in MAC头,所述第二转发头信息域还包括所述MAC in MAC头,所述MAC in MAC头为所述第一节点根据所述第一转发头信息域,查找第一MAC转发表所确定的。The method according to claim 4, wherein when the first node forwards the second protocol packet through a MAC tunnel, the second flow definition domain further includes a MAC in MAC header, and the second The forwarding header information field further includes the MAC in MAC header, where the MAC in MAC header is determined by the first node searching for the first MAC forwarding table according to the first forwarding header information field.
  8. 根据权利要求4所述的方法,其特征在于,当所述第一节点通过虚拟可扩展局域网VXLAN隧道转发所述第二协议报文时,所述第二流定义域还包括VXLAN头,所述第二转发头信息域还包括所述VXLAN头,所述VXLAN头为所述第一节点根据所述第一转发头信息域,查找第二MAC转发表所确定的。The method according to claim 4, wherein when the first node forwards the second protocol packet through a virtual scalable local area network (VXLAN tunnel), the second flow definition domain further includes a VXLAN header, The second forwarding header information field further includes the VXLAN header, where the VXLAN header is determined by the first node searching for the second MAC forwarding table according to the first forwarding header information field.
  9. 根据权利要求1至8任一项所述的方法,其特征在于,所述第一协议报文还包括队列ID和层次化级别,所述队列ID和所述层次化级别用于为所述业务流建立层次化队列,并进一步为所述层次化队列进行调度部署。The method according to any one of claims 1 to 8, wherein the first protocol message further comprises a queue ID and a layering level, and the queue ID and the layering level are used for the service The flow establishes a hierarchical queue and further performs scheduling deployment for the hierarchical queue.
  10. 根据权利要求1至9任一项所述的方法,其特征在于,所述第一协议报文还包括信息域,所述信息域包括建立QoS预留的监控信息。The method according to any one of claims 1 to 9, wherein the first protocol message further comprises an information domain, and the information domain comprises monitoring information for establishing a QoS reservation.
  11. 根据权利要求1至10任一项所述的方法,其特征在于,还包括:The method according to any one of claims 1 to 10, further comprising:
    当在预设的时间段内没有业务使用所述绑定关系时,所述第一节点删除所述绑定关系。When no service uses the binding relationship within a preset time period, the first node deletes the binding relationship.
  12. 一种建立服务质量预留的方法,其特征在于,包括:A method for establishing a quality of service reservation, characterized in that it comprises:
    第一节点生成绑定关系和协议报文,所述绑定关系为流与QoS需求信息之间的绑定关系,所述协议报文包括流定义域、服务质量QoS需求域和转发头信息域,所述协议报 文用于为业务流建立QoS预留,所述流定义域用于指示所述业务流的流,所述QoS需求域用于指示所述QoS需求信息,所述转发头信息域用于指示业务流转发路径;The first node generates a binding relationship and a protocol packet, where the binding relationship is a binding relationship between the flow and the QoS requirement information, where the protocol packet includes a flow definition domain, a quality of service QoS requirement domain, and a forwarding header information domain. The agreement And the QoS requirement domain is used to indicate the QoS requirement information, and the forwarding header information field is used to indicate a service. Stream forwarding path;
    所述第一节点根据所述转发头信息域,将所述协议报文发送至第二节点,所述第二节点为所述转发头信息域所指示的下一跳节点。The first node sends the protocol packet to the second node according to the forwarding header information field, where the second node is a next hop node indicated by the forwarding header information field.
  13. 根据权利要求12所述的方法,其特征在于,所述第一节点生成协议报文,包括:The method according to claim 12, wherein the first node generates a protocol message, including:
    所述第一节点接收至少一个第一协议报文;The first node receives at least one first protocol packet;
    所述第一节点根据汇聚策略,将所述至少一个第一协议报文合并以生成所述协议报文。The first node combines the at least one first protocol packet to generate the protocol packet according to the convergence policy.
  14. 根据权利要求12或13所述的方法,其特征在于,所述流定义域包括以下至少一种:源网络协议IP地址的范围、目的IP地址的范围、协议标识ID、端口号的范围、源媒体接入控制MAC地址的范围和目的MAC地址的范围,The method according to claim 12 or 13, wherein the flow definition domain comprises at least one of the following: a range of source network protocol IP addresses, a range of destination IP addresses, a protocol identification ID, a range of port numbers, and a source. Media access control MAC address range and destination MAC address range,
    所述转发头信息域包括目的IP地址;或者,所述转发头信息域包括源IP地址、目的IP地址和协议ID;或者,所述转发头信息域包括源IP地址、目的IP地址、源端口、目的端口和协议ID;或者,所述转发头信息域包括目的MAC地址;或者,所述转发头信息域包括源IP地址、目的IP地址、源MAC地址和目的MAC地址。The forwarding header information field includes a destination IP address; or the forwarding header information field includes a source IP address, a destination IP address, and a protocol ID; or the forwarding header information field includes a source IP address, a destination IP address, and a source port. And the destination port and the protocol ID; or the forwarding header information field includes a destination MAC address; or the forwarding header information field includes a source IP address, a destination IP address, a source MAC address, and a destination MAC address.
  15. 根据权利要求14所述的方法,其特征在于,当所述第一节点所在的网络属于多协议标签交换MPLS网络时,所述流定义域还包括MPLS标签,所述转发头信息域还包括所述MPLS标签。The method according to claim 14, wherein when the network in which the first node is located belongs to a multi-protocol label switching MPLS network, the flow definition domain further includes an MPLS label, and the forwarding header information field further includes a Said MPLS label.
  16. 根据权利要求14所述的方法,其特征在于,当所述第一节点通过通用路由封装GRE隧道转发所述协议报文时,所述流定义域还包括GRE IP头,所述转发头信息域还包括所述GRE IP头。The method according to claim 14, wherein when the first node forwards the protocol packet by using a universal routing encapsulation GRE tunnel, the flow definition domain further includes a GRE IP header, and the forwarding header information domain Also included is the GRE IP header.
  17. 根据权利要求14所述的方法,其特征在于,当所述第一节点通过MAC隧道转发所述协议报文时,所述流定义域还包括MAC in MAC头,所述转发头信息域还包括所述MAC in MAC头。The method according to claim 14, wherein when the first node forwards the protocol packet through a MAC tunnel, the flow definition domain further includes a MAC in MAC header, and the forwarding header information domain further includes The MAC in MAC header.
  18. 根据权利要求14所述的方法,其特征在于,当所述第一节点通过虚拟可扩展局域网VXLAN隧道转发所述协议报文时,所述流定义域还包括VXLAN头,所述转发头信息域还包括所述VXLAN头。The method according to claim 14, wherein when the first node forwards the protocol packet through a virtual scalable local area network VXLAN tunnel, the flow definition domain further includes a VXLAN header, and the forwarding header information domain Also included is the VXLAN header.
  19. 根据权利要求12至18任一项所述的方法,其特征在于,所述协议报文还包括队列ID和层次化级别,所述队列ID和所述层次化级别用于为所述业务流建立层次化队列,并进一步为所述层次化队列进行调度部署。 The method according to any one of claims 12 to 18, wherein the protocol message further comprises a queue ID and a layering level, wherein the queue ID and the layering level are used to establish the service flow. Hierarchical queues and further scheduling deployment for the hierarchical queues.
  20. 根据权利要求12至19任一项所述的方法,其特征在于,所述协议报文还包括信息域,所述信息域包括建立QoS预留的监控信息。The method according to any one of claims 12 to 19, wherein the protocol message further comprises an information domain, and the information domain comprises monitoring information for establishing a QoS reservation.
  21. 根据权利要求12至20任一项所述的方法,其特征在于,还包括:The method according to any one of claims 12 to 20, further comprising:
    当在预设的时间段内没有业务使用所述绑定关系时,所述第一节点删除所述绑定关系。When no service uses the binding relationship within a preset time period, the first node deletes the binding relationship.
  22. 一种节点,其特征在于,所述节点包括:A node, wherein the node comprises:
    获取单元,用于获取第一协议报文,所述第一协议报文包括第一流定义域、第一服务质量QoS需求域和第一转发头信息域,所述第一协议报文用于为业务流建立QoS预留,所述第一转发头信息域用于指示业务流转发路径;An acquiring unit, configured to obtain a first protocol packet, where the first protocol packet includes a first flow definition domain, a first quality of service QoS requirement domain, and a first forwarding header information domain, where the first protocol packet is used as The service flow establishes a QoS reservation, and the first forwarding header information field is used to indicate a service flow forwarding path;
    确定单元,用于根据所述获取单元获取的所述第一协议报文中的所述第一流定义域确定流以及流分类规则,所述流分类规则用于后续业务报文进行流分类以确定所述后续业务报文属于所述流;a determining unit, configured to determine a flow and a traffic classification rule according to the first flow definition domain in the first protocol packet obtained by the acquiring unit, where the traffic classification rule is used to perform traffic classification on a subsequent service packet to determine The subsequent service message belongs to the flow;
    提取单元,用于提取所述获取单元获取的所述第一协议报文中的所述第一QoS需求域中的第一QoS需求信息;An extracting unit, configured to extract first QoS requirement information in the first QoS requirement domain in the first protocol packet obtained by the acquiring unit;
    第一生成单元,用于生成绑定关系,所述绑定关系为所述确定单元确定的所述流与所述提取单元提取的所述第一QoS需求信息之间的绑定关系。a first generating unit, configured to generate a binding relationship, where the binding relationship is a binding relationship between the flow determined by the determining unit and the first QoS requirement information extracted by the extracting unit.
  23. 根据权利要求22所述的节点,其特征在于,还包括:The node according to claim 22, further comprising:
    第二生成单元,用于根据所述获取单元获取的所述第一协议报文生成第二协议报文,所述第二协议报文包括第二流定义域、所述第一QoS需求域和第二转发头信息域;a second generating unit, configured to generate a second protocol packet according to the first protocol packet obtained by the acquiring unit, where the second protocol packet includes a second flow definition domain, the first QoS requirement domain, and Second forwarding header information field;
    发送单元,用于将所述第二协议报文发送至另一节点,所述另一节点为根据所述第一转发头信息域进行查表所确定的下一跳节点,所述第二协议报文用于由所述的另一节点为所述业务流建立QoS预留,a sending unit, configured to send the second protocol packet to another node, where the other node is a next hop node determined by performing a table lookup according to the first forwarding header information field, the second protocol The message is used by the another node to establish a QoS reservation for the service flow,
    其中,所述第二流定义域是基于所述第一流定义域或者是基于所述第一流定义域和所述第一转发头信息域生成的,所述第二转发头信息域是基于所述第一转发头信息域生成的。The second flow definition domain is generated based on the first flow definition domain or based on the first flow definition domain and the first forwarding header information domain, and the second forwarding header information domain is based on the The first forwarding header information field is generated.
  24. 根据权利要求22或23所述的节点,其特征在于,A node according to claim 22 or 23, characterized in that
    所述获取单元,还用于接收第三协议报文,所述第三协议报文包括第二QoS需求域;The acquiring unit is further configured to receive a third protocol packet, where the third protocol packet includes a second QoS requirement field;
    所述提取单元,还用于提取所述获取单元获取的所述第三协议报文中的所述第二QoS需求域中的第二QoS需求信息; The extracting unit is further configured to extract second QoS requirement information in the second QoS requirement domain in the third protocol packet obtained by the acquiring unit;
    所述发送单元,还用于当所述节点无法满足所述提取单元提取的所述第二QoS需求信息时,发送告警消息,所述告警消息用于指示所述节点建立QoS预留失败。The sending unit is further configured to: when the node fails to meet the second QoS requirement information extracted by the extracting unit, send an alarm message, where the alarm message is used to indicate that the node fails to establish a QoS reservation.
  25. 根据权利要求23至24任一项所述的节点,其特征在于,所述第二流定义域包括以下至少一种:源网络协议IP地址的范围、目的IP地址的范围、协议标识ID、端口号的范围、源媒体接入控制MAC地址的范围和目的MAC地址的范围,The node according to any one of claims 23 to 24, wherein the second flow definition domain comprises at least one of the following: a range of a source network protocol IP address, a range of a destination IP address, a protocol identification ID, and a port. The range of the number, the range of the source media access control MAC address, and the range of the destination MAC address,
    所述第二转发头信息域包括:目的IP地址;或者,所述第二转发头信息域包括源IP地址、目的IP地址和协议ID;或者,所述第二转发头信息域包括源IP地址、目的IP地址、源端口、目的端口和协议ID;或者,所述第二转发头信息域包括目的MAC地址;或者,所述第二转发头信息域包括源IP地址、目的IP地址、源MAC地址和目的MAC地址。The second forwarding header information field includes: a destination IP address; or the second forwarding header information field includes a source IP address, a destination IP address, and a protocol ID; or the second forwarding header information field includes a source IP address. The destination IP address, the source port, the destination port, and the protocol ID; or the second forwarding header information field includes a destination MAC address; or the second forwarding header information field includes a source IP address, a destination IP address, and a source MAC address. Address and destination MAC address.
  26. 根据权利要求25所述的节点,其特征在于,当所述第一节点所在的网络属于多协议标签交换MPLS网络时,所述第二流定义域还包括MPLS标签,所述第二转发头信息域还包括所述MPLS标签,所述MPLS标签为所述第一节点根据所述第一转发头信息域,查找标签转发表所确定的。The node according to claim 25, wherein when the network in which the first node is located belongs to a multi-protocol label switching MPLS network, the second flow definition domain further includes an MPLS label, and the second forwarding header information The domain further includes the MPLS label, where the MPLS label is determined by the first node according to the first forwarding header information field and searching for a label forwarding table.
  27. 根据权利要求25所述的节点,其特征在于,当所述第一节点通过通用路由封装GRE隧道转发所述第二协议报文时,所述第二流定义域还包括GRE IP头,所述第二转发头信息域还包括所述GRE IP头,所述GRE IP头为所述第一节点根据所述第一转发头信息域,查找路由表所确定的。The node according to claim 25, wherein when the first node forwards the second protocol packet by using a universal routing encapsulation GRE tunnel, the second flow definition domain further includes a GRE IP header, The second forwarding header information field further includes the GRE IP header, where the GRE IP header is determined by the first node according to the first forwarding header information field and searching for a routing table.
  28. 根据权利要求25所述的节点,其特征在于,当所述第一节点通过MAC隧道转发所述第二协议报文时,所述第二流定义域还包括MAC in MAC头,所述第二转发头信息域还包括所述MAC in MAC头,所述MAC in MAC头为所述第一节点根据所述第一转发头信息域,查找第一MAC转发表所确定的。The node according to claim 25, wherein when the first node forwards the second protocol packet through a MAC tunnel, the second flow definition domain further includes a MAC in MAC header, and the second The forwarding header information field further includes the MAC in MAC header, where the MAC in MAC header is determined by the first node searching for the first MAC forwarding table according to the first forwarding header information field.
  29. 根据权利要求25所述的节点,其特征在于,当所述第一节点通过虚拟可扩展局域网VXLAN隧道转发所述第二协议报文时,所述第二流定义域还包括VXLAN头,所述第二转发头信息域还包括所述VXLAN头,所述VXLAN头为所述第一节点根据所述第一转发头信息域,查找第二MAC转发表所确定的。The node according to claim 25, wherein when the first node forwards the second protocol packet through a virtual scalable local area network VXLAN tunnel, the second flow definition domain further includes a VXLAN header, The second forwarding header information field further includes the VXLAN header, where the VXLAN header is determined by the first node searching for the second MAC forwarding table according to the first forwarding header information field.
  30. 根据权利要求22至29任一项所述的节点,其特征在于,所述第一协议报文还包括队列ID和层次化级别,所述队列ID和所述层次化级别用于为所述业务流建立层次化队列,并进一步为所述层次化队列进行调度部署。The node according to any one of claims 22 to 29, wherein the first protocol message further includes a queue ID and a layering level, and the queue ID and the layering level are used for the service The flow establishes a hierarchical queue and further performs scheduling deployment for the hierarchical queue.
  31. 根据权利要求22至30任一项所述的节点,其特征在于,所述第一协议报文还包括信息域,所述信息域包括建立QoS预留的监控信息。 The node according to any one of claims 22 to 30, wherein the first protocol message further comprises an information domain, and the information domain comprises monitoring information for establishing a QoS reservation.
  32. 根据权利要求22至31任一项所述的节点,其特征在于,还包括删除单元,用于:当在预设的时间段内没有业务使用所述第一生成单元生成的所述绑定关系时,删除所述绑定关系。The node according to any one of claims 22 to 31, further comprising a deleting unit, configured to: when there is no service in the preset time period, use the binding relationship generated by the first generating unit When the binding relationship is deleted.
  33. 一种节点,其特征在于,所述节点包括:A node, wherein the node comprises:
    生成单元,用于生成绑定关系和协议报文,所述绑定关系为流与QoS需求信息之间的绑定关系,所述协议报文包括流定义域、服务质量QoS需求域和转发头信息域,所述协议报文用于为业务流建立QoS预留,所述流定义域用于指示所述业务流的流,所述QoS需求域用于指示所述QoS需求信息,所述转发头信息域用于指示业务流转发路径;a generating unit, configured to generate a binding relationship and a protocol packet, where the binding relationship is a binding relationship between the flow and the QoS requirement information, where the protocol packet includes a flow definition domain, a quality of service QoS requirement domain, and a forwarding header An information field, the protocol message is used to establish a QoS reservation for the service flow, the flow definition domain is used to indicate a flow of the service flow, and the QoS requirement domain is used to indicate the QoS requirement information, and the forwarding The header information field is used to indicate a service flow forwarding path.
    发送单元,用于根据所述转发头信息域,将所述生成单元生成的所述协议报文发送至另一节点,所述另一节点为所述转发头信息域所指示的下一跳节点。a sending unit, configured to send, according to the forwarding header information field, the protocol packet generated by the generating unit to another node, where the another node is a next hop node indicated by the forwarding header information field .
  34. 根据权利要求33所述的节点,其特征在于,所述生成单元,包括:The node according to claim 33, wherein the generating unit comprises:
    接收子单元,用于接收至少一个第一协议报文;a receiving subunit, configured to receive at least one first protocol packet;
    第一生成子单元,用于根据汇聚策略,将所述至少一个第一协议报文合并以生成所述协议报文;a first generating subunit, configured to combine the at least one first protocol packet to generate the protocol packet according to a convergence policy;
    第二生成子单元,用于生成所述绑定关系。The second generation subunit is configured to generate the binding relationship.
  35. 根据权利要求33或34所述的节点,其特征在于,所述流定义域包括以下至少一种:源网络协议IP地址的范围、目的IP地址的范围、协议标识ID、端口号的范围、源媒体接入控制MAC地址的范围和目的MAC地址的范围,The node according to claim 33 or 34, wherein the flow definition domain comprises at least one of the following: a range of a source network protocol IP address, a range of a destination IP address, a protocol identification ID, a range of a port number, and a source. Media access control MAC address range and destination MAC address range,
    所述转发头信息域包括目的IP地址;或者,所述转发头信息域包括源IP地址、目的IP地址和协议ID;或者,所述转发头信息域包括源IP地址、目的IP地址、源端口、目的端口和协议ID;或者,所述转发头信息域包括目的MAC地址;或者,所述转发头信息域包括源IP地址、目的IP地址、源MAC地址和目的MAC地址。The forwarding header information field includes a destination IP address; or the forwarding header information field includes a source IP address, a destination IP address, and a protocol ID; or the forwarding header information field includes a source IP address, a destination IP address, and a source port. And the destination port and the protocol ID; or the forwarding header information field includes a destination MAC address; or the forwarding header information field includes a source IP address, a destination IP address, a source MAC address, and a destination MAC address.
  36. 根据权利要求35所述的节点,其特征在于,当所述第一节点所在的网络属于多协议标签交换MPLS网络时,所述流定义域还包括MPLS标签,所述转发头信息域还包括所述MPLS标签。The node according to claim 35, wherein when the network in which the first node is located belongs to a multi-protocol label switching MPLS network, the flow definition domain further includes an MPLS label, and the forwarding header information field further includes a Said MPLS label.
  37. 根据权利要求35任一项所述的节点,其特征在于,当所述第一节点通过通用路由封装GRE隧道转发所述协议报文时,所述流定义域还包括GRE IP头,所述转发头信息域还包括所述GRE IP头。 The node according to any one of claims 35 to 35, wherein when the first node forwards the protocol packet by using a universal routing encapsulation GRE tunnel, the flow definition domain further includes a GRE IP header, and the forwarding The header information field also includes the GRE IP header.
  38. 根据权利要求35所述的节点,其特征在于,当所述第一节点通过MAC隧道转发所述协议报文时,所述流定义域还包括MAC in MAC头,所述转发头信息域还包括所述MAC in MAC头。The node according to claim 35, wherein when the first node forwards the protocol packet through a MAC tunnel, the flow definition domain further includes a MAC in MAC header, and the forwarding header information domain further includes The MAC in MAC header.
  39. 根据权利要求35所述的节点,其特征在于,当所述第一节点通过虚拟可扩展局域网VXLAN隧道转发所述协议报文时,所述流定义域还包括VXLAN头,所述转发头信息域还包括所述VXLAN头。The node according to claim 35, wherein when the first node forwards the protocol packet through a virtual scalable local area network VXLAN tunnel, the flow definition domain further includes a VXLAN header, and the forwarding header information domain Also included is the VXLAN header.
  40. 根据权利要求33至39任一项所述的节点,其特征在于,所述协议报文还包括队列ID和层次化级别,所述队列ID和所述层次化级别用于为所述业务流建立层次化队列,并进一步为所述层次化队列进行调度部署。The node according to any one of claims 33 to 39, wherein the protocol message further includes a queue ID and a layering level, and the queue ID and the layering level are used to establish the service flow. Hierarchical queues and further scheduling deployment for the hierarchical queues.
  41. 根据权利要求33至40任一项所述的节点,其特征在于,所述协议报文还包括信息域,所述信息域包括建立QoS预留的监控信息。The node according to any one of claims 33 to 40, wherein the protocol message further comprises an information domain, and the information domain comprises monitoring information for establishing a QoS reservation.
  42. 根据权利要求33至41任一项所述的节点,其特征在于,还包括删除单元,用于:当在预设的时间段内没有业务使用所述绑定关系时,删除所述绑定关系。 The node according to any one of claims 33 to 41, further comprising a deleting unit, configured to delete the binding relationship when no binding relationship is used by a service within a preset time period .
PCT/CN2014/086343 2013-12-31 2014-09-12 Method and node for establishing quality of service reservation WO2015101066A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201310750102.0A CN104753823B (en) 2013-12-31 2013-12-31 Establish the method and node of QoS reservation
CN201310750102.0 2013-12-31

Publications (1)

Publication Number Publication Date
WO2015101066A1 true WO2015101066A1 (en) 2015-07-09

Family

ID=53493146

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/086343 WO2015101066A1 (en) 2013-12-31 2014-09-12 Method and node for establishing quality of service reservation

Country Status (2)

Country Link
CN (1) CN104753823B (en)
WO (1) WO2015101066A1 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112737889A (en) * 2020-12-29 2021-04-30 迈普通信技术股份有限公司 Flow processing method, flow monitoring method, device, system and storage medium
CN112787902A (en) * 2019-11-08 2021-05-11 中兴通讯股份有限公司 Message encapsulation method and device and message de-encapsulation method and device
CN113079091A (en) * 2020-01-03 2021-07-06 华为技术有限公司 Active stream following detection method, network equipment and communication system
EP4102789A4 (en) * 2020-03-11 2023-08-09 Huawei Technologies Co., Ltd. Message transmission method and apparatus, and network device

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107332751B (en) * 2017-06-30 2020-10-27 联想(北京)有限公司 Data transmission method, electronic device and server cluster
CN112737947B (en) * 2020-12-29 2022-08-30 优刻得科技股份有限公司 Virtual network cross-domain transmission method, system, equipment and medium based on MPLS
CN112995062B (en) * 2021-02-07 2023-07-07 中国银联股份有限公司 Data transmission method and device
CN117527680A (en) * 2022-07-29 2024-02-06 华为技术有限公司 Resource reservation path establishment and communication method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101136844A (en) * 2006-08-29 2008-03-05 华为技术有限公司 Method and system for implementing differential service flux engineering of multi-protocol label switching network
CN101151858A (en) * 2005-05-24 2008-03-26 思科技术公司 System and method for providing bandwidth reservations in a resource reservation setup protocol, RSVP, environment
US20090323698A1 (en) * 2008-06-26 2009-12-31 Cisco Technology, Inc. Pure control-plane approach for on-path connection admission control operations in multiprotocol label switching virtual private networks
CN102891830A (en) * 2011-07-18 2013-01-23 中兴通讯股份有限公司 Method and system for guaranteeing service quality of streaming service

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101009631A (en) * 2006-01-24 2007-08-01 华为技术有限公司 A QoS control method and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101151858A (en) * 2005-05-24 2008-03-26 思科技术公司 System and method for providing bandwidth reservations in a resource reservation setup protocol, RSVP, environment
CN101136844A (en) * 2006-08-29 2008-03-05 华为技术有限公司 Method and system for implementing differential service flux engineering of multi-protocol label switching network
US20090323698A1 (en) * 2008-06-26 2009-12-31 Cisco Technology, Inc. Pure control-plane approach for on-path connection admission control operations in multiprotocol label switching virtual private networks
CN102891830A (en) * 2011-07-18 2013-01-23 中兴通讯股份有限公司 Method and system for guaranteeing service quality of streaming service

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112787902A (en) * 2019-11-08 2021-05-11 中兴通讯股份有限公司 Message encapsulation method and device and message de-encapsulation method and device
CN112787902B (en) * 2019-11-08 2023-11-21 中兴通讯股份有限公司 Message encapsulation method and device and message decapsulation method and device
CN113079091A (en) * 2020-01-03 2021-07-06 华为技术有限公司 Active stream following detection method, network equipment and communication system
CN113079091B (en) * 2020-01-03 2022-07-22 华为技术有限公司 Active stream following detection method, network equipment and communication system
EP4102789A4 (en) * 2020-03-11 2023-08-09 Huawei Technologies Co., Ltd. Message transmission method and apparatus, and network device
CN112737889A (en) * 2020-12-29 2021-04-30 迈普通信技术股份有限公司 Flow processing method, flow monitoring method, device, system and storage medium
CN112737889B (en) * 2020-12-29 2022-05-17 迈普通信技术股份有限公司 Flow processing method, flow monitoring method, device, system and storage medium

Also Published As

Publication number Publication date
CN104753823B (en) 2018-04-10
CN104753823A (en) 2015-07-01

Similar Documents

Publication Publication Date Title
WO2015101066A1 (en) Method and node for establishing quality of service reservation
CN111683011B (en) Message processing method, device, equipment and system
US7636781B2 (en) System and method for realizing the resource distribution in the communication network
EP3208977A1 (en) Data forwarding method, device and system in software-defined networking
US20220191136A1 (en) Label Management Method, Data Stream Processing Method, and Device
US20120008632A1 (en) Sharing Resource Reservations Among Different Sessions In RSVP-TE
WO2017124709A1 (en) Method of establishing traffic engineering tunnel and device
US20170310581A1 (en) Communication Network, Communication Network Management Method, and Management System
CN114128228B (en) Transmitting MTNC-ID through SRv head to realize 5G transmission
US20230018292A1 (en) Packet transmission method and apparatus, and network device
US8121138B2 (en) Communication apparatus in label switching network
WO2016150020A1 (en) Scheduling flow identifier-based packet scheduling method and device
JP2009519666A (en) Resource sharing between network and tunnel
CN113055293A (en) Routing method and device in software defined wide area network and communication system
CN114128227B (en) Transmitting MTNC-ID on SRv 6-enabled data plane to enable 5G transmission
KR100585934B1 (en) Method of Dynamic Management of Traffic Conditioner Parameter and Table of Class of Service on Router
WO2022166465A1 (en) Message processing method and related apparatus
WO2016000481A1 (en) Path switching method and network device
WO2024007640A1 (en) Data transmission method, data processing method, electronic device and storage medium
CN112104539B (en) Information interaction method, device and system in segmented NGMVPN
WO2024002101A1 (en) Packet transmission method and apparatus, related device, and storage medium
WO2022237860A1 (en) Packet processing method, resource allocation method and related device
WO2023279818A1 (en) Deterministic flow forwarding method and apparatus, storage medium and electronic apparatus
WO2024027378A1 (en) Data transmission method and apparatus, and network device and storage medium
CN112929272B (en) Segment routing information transmission method, device, electronic equipment, system and storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 14877144

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 14877144

Country of ref document: EP

Kind code of ref document: A1