WO2016000358A1 - Outer label encoding method, traffic congestion control method and device - Google Patents

Outer label encoding method, traffic congestion control method and device Download PDF

Info

Publication number
WO2016000358A1
WO2016000358A1 PCT/CN2014/089340 CN2014089340W WO2016000358A1 WO 2016000358 A1 WO2016000358 A1 WO 2016000358A1 CN 2014089340 W CN2014089340 W CN 2014089340W WO 2016000358 A1 WO2016000358 A1 WO 2016000358A1
Authority
WO
WIPO (PCT)
Prior art keywords
packet
control
scheduling
field
node
Prior art date
Application number
PCT/CN2014/089340
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 WO2016000358A1 publication Critical patent/WO2016000358A1/en

Links

Images

Definitions

  • the present invention relates to the field of outer label coding technology and traffic congestion control technology, and in particular to an outer label coding method, a traffic congestion control method and apparatus.
  • a Multi-Protocol Label Switching (MPLS) network using an EXP-Label Switch Path (E-LSP) if there is a multi-virtual private network (Virtual Private Network) , referred to as VPN) multiplexing tunnel, the related model can not guarantee the end-to-end bandwidth requirements of the VPN.
  • MPLS Multi-Protocol Label Switching
  • E-LSP EXP-Label Switch Path
  • the actual physical link is a Gigabit Ethernet (GE) port.
  • the virtual link (Pseudo Wire, PW) 1 with lsp1 actual traffic of 800M is doing its best.
  • BE Best-effort, abbreviated as BE
  • CIR Committed Information Rate
  • EIR Excess Information Rate
  • AF Assured Forwarding
  • the P node that is, the intermediate node except the PE head node and the PE tail node, in the MPLS backbone network
  • the P node after the initial PE only reads the information of the outer label to determine the next hop, so the backbone network
  • lsp1 and lsp2 in Figure 1 will cause congestion on the outbound interface of the P node.
  • the tunnel will give priority to the cir part.
  • the specific VPN cannot be identified during P-node tunnel scheduling. Information, therefore, lsp2 will allocate 350M of bandwidth to the high-priority service according to the Priority Queuing (PQ) relationship, that is, ensure the forwarding of the AF1 service. In fact, all of them are allocated to the VPN service carried by pw3. As a result, VPN traffic carried by pw2 will not be guaranteed. It can be seen that in the case of multi-VPN service multiplexing tunnel, end-to-end QoS cannot be achieved because VPN information is not transmitted to the P node.
  • PQ Priority Queuing
  • the present invention provides an outer label encoding method, a traffic congestion control method and apparatus to solve at least the above problems.
  • the operator's edge router encodes the EXP field of the outer label of the packet according to the service type of the PHB and the packet color information after the traffic congestion control is performed.
  • the EXP field includes: a first field that is used to identify the service type of the packet, and a virtual field in the virtual link that is used to identify the packet in the virtual link that enters the PE head node.
  • the second field of the private network service message includes: a first field that is used to identify the service type of the packet, and a virtual field in the virtual link that is used to identify the packet in the virtual link that enters the PE head node.
  • the method further includes:
  • the PE head node performs traffic congestion control according to the PHB of the ingress node
  • the step of the PE head node performing traffic congestion control according to the ingress node PHB includes:
  • the PE head node performs first-level scheduling control according to the PHB of the ingress node, and performs at least port scheduling, tunnel scheduling, virtual link scheduling, and flow level scheduling in the first-level scheduling control process, where the port scheduling is performed.
  • the tunnel scheduling is used to ensure the traffic control of multiple tunnels in the port
  • the virtual link scheduling is used to ensure the traffic control of multiple virtual links in the tunnel.
  • Flow-level scheduling is used to ensure different service types in the virtual link carried by the virtual link. The scheduling forwarding requirements to be performed by the business.
  • the step of the PE head node performing traffic congestion control according to the PHB of the ingress node further includes:
  • the PE head node performs the second-level scheduling control according to the PHB of the ingress node during the packet header encapsulation process of the packet, and preferentially forwards the packet with the higher forwarding priority of the service type in the second-level scheduling control process.
  • the method further includes:
  • the intermediate node maps the PHB according to the EXP field of the received message, where the first field is mapped to a service type of the PHB, and the second field is mapped to message color information, where In the second field, the packets in the committed bandwidth are mapped green, and the packets outside the committed bandwidth are mapped to yellow.
  • the intermediate node performs the first-level scheduling control and the second-level scheduling control of the traffic according to the mapped PHB, where the first-level scheduling control is used to control the bandwidth, and the second-level scheduling control is used to control the preferential forwarding of the packet.
  • the step of the intermediate node performing the first level scheduling control of the traffic according to the mapped PHB includes:
  • the intermediate node equates the received packet with an ordered aggregate OA, and adds the received packet to the same ordered scheduling queue according to the mapped packet color information.
  • the intermediate node preferentially discards the packet whose color information is yellow in the ordered scheduling queue when congestion control is performed on the traffic.
  • the step of the intermediate node preferentially discarding the packet whose color information is yellow in the ordered scheduling queue includes:
  • the intermediate node preferentially discards the packet whose color information is yellow in the ordered scheduling queue according to the queue congestion discarding policy of the weighted random pre-detection.
  • the step of the intermediate node performing the second-level scheduling control of the traffic according to the mapped PHB includes:
  • the intermediate node encodes an EXP field of an outer label of the received packet according to the service type and the packet color information of the PHB of the packet, where the EXP field includes: a first field of the service type of the message, and a second field for identifying the color information of the message of the message;
  • the intermediate node performs forwarding priority control on the packet according to the service type of the packet mapping.
  • the method further includes:
  • the PE tail node maps the PHB according to the inner label of the received packet
  • the PE tail node performs HQoS traffic congestion control on the packet on the user-side AC interface according to the mapped PHB.
  • the PE head node or the intermediate node is coded or mapped according to the following rules:
  • the "0" in the second field indicates that the packet is a virtual private network service packet outside the committed bandwidth or the packet color information indicating the packet is yellow in the virtual link that enters the first node of the PE.
  • the value of "1" in the second field indicates that the packet is a virtual private network service packet in the promised bandwidth or the packet color information of the packet is green in the virtual link that enters the first node of the PE. .
  • An outer label encoding device is located in a first node of a carrier edge router PE, and includes an EXP encoding module, where:
  • the EXP encoding module is configured to: encode an EXP field of an outer label of the packet according to a service type of the PHB and a packet color information after the traffic congestion control is performed, and the The EXP field includes: a first field for identifying a service type of the packet, and a virtual private network service report for identifying whether the packet is a committed bandwidth in a virtual link entering the PE head node.
  • the second field of the text is configured to: encode an EXP field of an outer label of the packet according to a service type of the PHB and a packet color information after the traffic congestion control is performed, and the The EXP field includes: a first field for identifying a service type of the packet, and a virtual private network service report for identifying whether the packet is a committed bandwidth in a virtual link entering the PE head node.
  • the second field of the text is configured to: encode an EXP field of an outer label of the packet according to a service type of the PHB and a packet color information after the traffic congestion control
  • the device further includes a congestion control module, wherein:
  • the congestion control module is configured to: perform traffic congestion control according to the ingress node PHB; the congestion control module includes a first level scheduling control unit, where:
  • the first-level scheduling control unit is configured to: perform first-level scheduling control according to the ingress node PHB, and perform at least port scheduling, tunnel scheduling, virtual link scheduling, and flow-level scheduling in the first-level scheduling control process, where
  • the port scheduling is used to ensure that traffic of multiple ports does not interfere with each other.
  • the tunnel scheduling is used to ensure traffic control of multiple tunnels in a port, and the virtual link scheduling is used to ensure multiple virtual links.
  • the traffic control of the virtual link is used to ensure the scheduling and forwarding requirements of services of different service types in the tunnel carried by the virtual link.
  • the congestion control module further includes a second level scheduling control unit, where:
  • the second-level scheduling control unit is configured to perform second-level scheduling control according to the ingress node PHB during the packet header encapsulation process of the packet, and preferentially forward the forwarding priority of the service type in the second-level scheduling control process. Higher message.
  • a traffic congestion control device is located in an intermediate node, and includes a PHB mapping module and a congestion control module for each jump release, wherein:
  • the PB mapping module is configured to: map the PHB according to the EXP field of the packet received by the intermediate node, where the EXP field includes: a service type used to identify the packet. a first field, and a second field used to identify the virtual private network service packet in the committed bandwidth in the virtual link of the first node of the operator edge router PE;
  • the per-hop is a PHB mapping module that maps the first field to a PHB service type, and the second field is mapped to packet color information, and when the second field is mapped, the committed bandwidth is The packets in the packet are mapped in green, and the packets outside the committed bandwidth are mapped to yellow.
  • the congestion control module is configured to perform two-level scheduling control of traffic according to the mapped PHB, where the first-level scheduling control is used to control bandwidth, and the second-level scheduling control is used to control priority forwarding of packets.
  • the congestion control module includes a first-level scheduling control queue control unit and a first-level scheduling control packet discarding unit, where:
  • the first level scheduling control queue control unit is configured to: equate the received message with the intermediate node to an ordered aggregate OA, and add the received message to the same ordered scheduling queue according to the mapped message color information. ;
  • the first-level scheduling control packet discarding unit is configured to: in the case of performing congestion control on the traffic, preferentially discarding the packet whose color information is yellow in the ordered scheduling queue.
  • the first-level scheduling control packet discarding unit is configured to preferentially discard the packet whose color information is yellow in the ordered scheduling queue according to the following manner:
  • the packet with the yellow color of the packet in the ordered scheduling queue is discarded.
  • the congestion control module further includes a second level scheduling control EXP coding unit and a second level scheduling control message forwarding unit, where:
  • the second level scheduling control EXP encoding unit is configured to: encode an EXP field of an outer label of the packet according to the service type and the packet color information of the PHB of the packet mapping, where the EXP field includes: a first field of the service type of the message, and a second field for identifying the message color information of the message;
  • the second-level scheduling control packet forwarding unit is configured to: perform forwarding priority control on the packet according to the service type of the packet mapping.
  • a single board includes an EXP encoding chip and a buffer, wherein:
  • the EXP encoding chip is configured to: encode an EXP field of an outer label of the packet according to a service type of the PHB and a packet color information after the traffic congestion control is performed, wherein the The EXP field includes: a first field for identifying a service type of the packet, and a virtual private network for identifying whether the packet is a committed bandwidth in a virtual link entering a head node of the operator edge router PE The second field of the service message;
  • the buffer is coupled to the EXP encoding chip and configured to: buffer a message encoded by the EXP encoding chip.
  • the scheduler is coupled to the buffer, configured to perform a first-level scheduling control process according to the PHB of the ingress node, and perform at least port scheduling, tunnel scheduling, and virtual in the first-level scheduling control process.
  • Link scheduling and flow level scheduling wherein the port scheduling is used to ensure that traffic of multiple ports does not interfere with each other, and the tunnel scheduling is used to ensure traffic control of multiple tunnels in a port, and the virtual link scheduling
  • the flow rate control is used to ensure the traffic forwarding of multiple virtual links in the virtual link.
  • the flow level scheduling is used to ensure the scheduling and forwarding requirements of services of different service types in the tunnel carried by the virtual link.
  • the scheduler is further configured to: during the packet header encapsulation process of the packet, preferentially forward the packet with a higher forwarding priority of the service type in the second-level scheduling control process according to the PHB of the ingress node. .
  • a board including a processor and a scheduler, where:
  • the processor is configured to: according to the EXP field mapping of the packet received by the intermediate node, the per-jump is issued as a PHB, where the EXP field includes: a first field for identifying a service type of the packet, And a second field for identifying a virtual private network service message in the committed bandwidth in the virtual link of the first node of the operator edge router PE;
  • the processor maps the first field to a service type of the PHB, and maps the second field to packet color information.
  • mapping the second field the packet in the committed bandwidth is mapped. Green, packets outside the committed bandwidth are mapped to yellow;
  • the scheduler coupled to the processor, is configured to: perform two-level scheduling control of traffic according to the mapped PHB, where the first level scheduling control is used to control bandwidth, and the second level scheduling control is used to Controls the priority forwarding of packets.
  • a computer program comprising program instructions that, when executed by a PE head node, an intermediate node, and a tail node, cause the PE head node, the intermediate node, and the tail node to perform the outer label encoding method described above.
  • the foregoing technical solution uses the PE head node to encode the EXP field of the outer label of the packet according to the service type and the packet color information of the ingress PHB of the packet, where the EXP field includes the first service type for identifying the packet.
  • the field is used to identify whether the packet is the second field of the virtual private network service packet in the committed bandwidth in the virtual link that enters the PE head node; the PE first node solves the traffic congestion control according to the ingress node PHB.
  • the related art is based on the E-LSP MPLS network. In the case of multi-VPN service multiplexing tunnel, the end-to-end QoS control cannot be realized because the P-node cannot resolve the VPN information, and the multi-VPN service multiplexing tunnel is guaranteed. End-to-end QoS control.
  • FIG. 1 is a schematic flowchart of multiplexing a P node congestion bandwidth by an L2VPN tunnel according to the related art
  • FIG. 2 is a schematic flow chart of a traffic congestion control method according to an embodiment of the present invention.
  • FIG. 3 is a schematic structural diagram of a traffic congestion control apparatus according to an embodiment of the present invention.
  • FIG. 4 is a schematic structural diagram of another traffic congestion control apparatus according to an embodiment of the present invention.
  • FIG. 5 is a schematic diagram of a PE head node HQoS scheduling model according to an alternative embodiment of the present invention.
  • FIG. 6 is a schematic diagram of an EGR chip side scheduling and forwarding of an NP chip according to an alternative embodiment of the present invention.
  • FIG. 7 is a schematic diagram of a P-node tunnel HQoS scheduling model according to an alternative embodiment of the present invention.
  • FIG. 8 is a schematic diagram of a PE tail node HQoS scheduling model in accordance with an alternative embodiment of the present invention.
  • This embodiment provides a traffic congestion control method, which can be applied to an E-LSP based MPLS network.
  • 2 is a schematic flowchart of a traffic congestion control method according to an embodiment of the present invention. As shown in FIG. 2, the process includes the following steps:
  • Step S202 the PE head node performs traffic congestion control according to the ingress node PHB.
  • Step S204 The PE head node encodes an EXP field of an outer label of the packet according to the service type and the packet color information of the inbound PHB of the packet, where the EXP field includes a first field of the COS for identifying the packet and It is used to identify whether the packet is the second field of the virtual private network service packet in the CIR in the virtual link that enters the head node of the PE.
  • the QoS control is implemented to solve the related technology.
  • the P-node In the MPLS network based on the E-LSP, in the case of multiplexing the multi-VPN service tunnel, the P-node cannot resolve the VPN information because there is no VPN information in the outer label, and thus the end-to-end cannot be guaranteed.
  • the implementation of the end QoS guarantees the end-to-end QoS control of the multi-VPN service multiplexing tunnel.
  • the PE head node performs HQoS control on the packet traffic.
  • the first-level scheduling control process at least port scheduling is performed to ensure that the traffic of the multiple ports does not interfere with each other, and the tunnel scheduling is ensured in the port. Traffic control of multiple tunnels, performing virtual link scheduling to ensure traffic control of multiple virtual links in the tunnel, and performing flow-level scheduling to ensure scheduling and forwarding requirements for services of different service types in the virtual link.
  • the outbound node of the PE can be guaranteed Total traffic bandwidth on the node side, and try to ensure the committed bandwidth of each virtual link on the ingress side.
  • the PE first node preferentially forwards the packet with the higher forwarding priority of the service type according to the PHB of the ingress node in the process of encapsulating the packet header.
  • the forwarding priorities of the BE, AF, EF, and CS services are increased in turn, that is, the forwarding priority of the BE service is the lowest, and the forwarding priority of the CS service is the highest.
  • the second-level scheduling control ensures that services with higher forwarding priorities are preferentially forwarded and delays are reduced.
  • the priority queue scheduling mode is adopted.
  • the packet After the PE head node forwards the packet according to the packet forwarding priority, the packet is sent to the P node for processing.
  • the process of processing the packet by the P node includes: the P node mapping the PHB according to the EXP field of the received packet, where the first field is mapped to the service type of the PHB, and the second field is mapped to the report.
  • Text color information wherein the mapping rule of the second field is: the second field is identified as the message within the committed bandwidth is mapped green, and the second field is identified as the message outside the committed bandwidth is mapped to yellow;
  • the node performs two-level scheduling control of the traffic according to the mapped PHB.
  • the first-level scheduling control is used to control the bandwidth
  • the second-level scheduling control is used to control the priority forwarding of the packet.
  • the service type of the PHB to which the first field is mapped may be different from the service type of the PHB of the inbound node of the packet in the E-LSP.
  • the EXP field is 3 bits in the E-LSP, and the second field occupies at least 1 bit.
  • the first field can only occupy 2 bits at most, and can represent four service types. Therefore, the eight service types of BE, AF1, AF2, AF3, AF4, EF, CS6, and CS7 can be based on different forwarding priority requirements.
  • Mapping to the four types of services for example, remapping the BE and AF1 to the BE service in the PE head node, and identifying the packet as the BE service in the first field; in the subsequent processing of the P node, according to The first field treats the message as a BE message.
  • the foregoing first-level scheduling control includes: the P-node adds the received packet according to the mapped packet color information, and is equal to an ordered aggregate (OA), and joins the same ordered scheduling queue; When the traffic is congested, the node preferentially discards the packets whose color information is yellow in the ordered scheduling queue. In this mode, the packets received by the P-node are added to the same ordered scheduling queue, and the bandwidth control is ensured on the premise that the green packets are transmitted as much as possible.
  • OA ordered aggregate
  • the P node preferentially discards according to the queue congestion discarding policy of the weighted random prior detection.
  • the P-node encodes an EXP field of an outer label of the packet according to the service type and the packet color information of the PHB of the packet mapping, where the EXP field includes: a first field of the service type of the identifier packet, and a second field of the packet color information for identifying the packet, where the first field is encoded according to the PHB and the second field is equal to the second field of the EXP received by the uplink. , equivalent to transparent transmission. .
  • the result of the EXP field encoding is consistent with the EXP field in the PE head node. In this way, the color information of the message is transmitted to the next P node or the PE tail node.
  • the packet is forwarded to the PE tail node by the P node, and the PE tail node maps the PHB according to the inner label of the received packet;
  • the PE tail node performs HQoS traffic congestion control on the packet on the user-side AC interface according to the mapped PHB.
  • the PE head node or the P node performs coding/mapping according to the rules shown in Table 1 below.
  • the PE head node encodes, the P node performs mapping and coding, and the last node only performs decoding.
  • the "0" in the second field indicates that the packet is a virtual private network service packet outside the committed bandwidth or the packet color information of the packet is yellow in the virtual link that enters the first node of the PE.
  • the value of "1" indicates that the packet is a virtual private network service packet in the promised bandwidth or the packet color information indicating the packet is green in the virtual link that enters the first node of the PE.
  • the Assured Forwarding (AF) service has four different forwarding levels. AF1, AF2, AF3, and AF4 respectively indicate different forwarding levels to ensure forwarding services.
  • the CS is a class selection code service, which has a higher forwarding level than the fast forwarding EF service, and is generally signaling.
  • the network control message is of this level, and CS7 is higher than CS6.
  • BE means doing its best for business.
  • the encoding/mapping rules shown in Table 1 are exemplary.
  • the BE, AF1, and AF2 services of the ingress PHB may also be encoded as the same.
  • a field and is mapped to the BE service in the P node; in other embodiments, the first field may be encoded by using 2 high bits in the EXP field, and the second field may be encoded by 1 low bit, or The first field is encoded by using one high bit of the EXP field, and the first field is encoded by the two lower bits, or the first field and the second field are encoded by other bit allocation forms.
  • FIG. 3 is a schematic structural diagram of a traffic congestion control apparatus according to an embodiment of the present invention. As shown in FIG. 3, the apparatus includes: an EXP encoding module 32 and a congestion control module 34, where
  • the EXP encoding module 32 is configured to: encode an EXP field of an outer label of the packet according to the service type and the packet color information of the inbound PHB of the packet, where the EXP field includes: a service type for identifying the packet. a field, and a second field for identifying a virtual private network service message in the committed bandwidth in the virtual link entering the PE head node;
  • the congestion control module 34 is coupled to the EXP encoding module 32 and is configured to perform traffic congestion control based on the ingress node PHB.
  • the congestion control module 34 includes: a first level scheduling control unit 342, configured to: root According to the ingress node PHB, at least port scheduling, tunnel scheduling, virtual link scheduling, and flow level scheduling are performed in the first-level scheduling control process, wherein port scheduling is used to ensure that traffic of multiple ports does not interfere with each other, and tunnel scheduling is used.
  • port scheduling is used to ensure that traffic of multiple ports does not interfere with each other
  • tunnel scheduling is used.
  • virtual link scheduling is used to ensure traffic control of multiple virtual links in a virtual link.
  • Flow-level scheduling is used to ensure different service types in a tunnel carried by a virtual link. The scheduling forwarding requirements to be performed by the business.
  • the congestion control module 34 further includes: a second level scheduling control unit 344, the second level scheduling control unit 344 is coupled to the first level scheduling control unit 342, configured to: during the packet header encapsulation process of the message, according to The ingress-based PHB performs preferential forwarding of packets with a higher forwarding priority of the service type in the second-level scheduling control process.
  • This embodiment further provides another traffic congestion control device, which is located in the P node, and is also used to implement the above traffic congestion control method.
  • FIG. 4 is a schematic structural diagram of another traffic congestion control apparatus according to an embodiment of the present invention. As shown in FIG. 4, the apparatus includes: a PHB mapping module 42 and a congestion control module 44, where
  • the PHB mapping module 42 is configured to: map the PHB according to the EXP field of the packet received by the P node, where the EXP field includes: a first field for identifying a service type of the packet, and an identifier for entering the PE head node Whether the virtual link is the second field of the virtual private network service packet in the committed bandwidth; wherein the first field is mapped to the PHB service type, the second field is mapped to the packet color information, and the second field is mapped The message identified as being within the committed bandwidth is mapped green, and the second field is identified as the message outside the committed bandwidth is mapped to yellow;
  • the congestion control module 44 is coupled to the PHB mapping module 42 and configured to: perform two-level scheduling control of traffic according to the mapped PHB, wherein the first level scheduling control is used to control bandwidth, and the second level scheduling control is used to control packet priority. Forward.
  • the congestion control module 44 includes:
  • the first-level scheduling control queue control unit 442 is configured to: add the packet received by the P-node to the same ordered scheduling queue according to the mapped packet color information and equal to an ordered aggregate (OA);
  • the first-level scheduling control packet discarding unit 444 is coupled to the first-level scheduling control queue control unit 442, and configured to preferentially discard the ordered scheduling queue when congestion control is performed on the traffic.
  • the color information of the medium message is yellow.
  • the first-level scheduling control packet discarding unit 444 preferentially discards the packet color information of the ordered scheduling queue as yellow according to the queue congestion discarding policy of the weighted random pre-detection.
  • the congestion control module 44 further includes:
  • the second level scheduling control EXP encoding unit 446 is configured to: encode an EXP field of an outer label of the packet according to the service type and the packet color information of the PHB of the packet mapping, where the EXP field includes: a first field of the service type of the text, and a second field of the message color information for identifying the message;
  • the second level scheduling control message forwarding unit 448 is coupled to the second level scheduling control EXP encoding unit 446, and configured to: perform forwarding priority control on the message according to the service type of the message mapping.
  • modules and units involved in the embodiments of the present invention may be implemented by software or by hardware.
  • the described modules and units in this embodiment may also be disposed in a processor.
  • a traffic congestion control apparatus includes a processor including a PHB mapping module 42 and a congestion control module 44.
  • the name of these modules does not constitute a limitation on the module itself in some cases.
  • the PHB mapping module 42 may also be described as "a module for mapping a PHB according to an EXP field of a message received by a P node" .
  • the embodiment further provides a board, which is applied to the PE head node, and is used to implement the foregoing traffic congestion control method.
  • the board includes an EXP encoding chip and a buffer, wherein:
  • the EXP encoding chip is configured to: according to the service type and the packet color information of the inbound PHB of the packet, the EXP field of the outer label of the encoded message, where the EXP field includes: the first service type used to identify the packet. a field, and a second field for identifying a virtual private network service message in the committed bandwidth in the virtual link entering the PE head node;
  • the buffer is coupled to the EXP encoding chip and configured to: buffer the message encoded by the EXP encoding chip.
  • the board further includes: a scheduler coupled to the buffer, where the scheduler is configured to perform at least port scheduling, tunnel scheduling, virtual link scheduling, and at least in the first level scheduling control process according to the ingress node PHB.
  • Flow-level scheduling where port scheduling is used to ensure that traffic on multiple ports does not interfere with each other.
  • the tunneling is used to ensure the traffic control of multiple tunnels in the port.
  • the virtual link scheduling is used to ensure the traffic control of multiple virtual links in the virtual link.
  • the flow-level scheduling is used to ensure the tunnels carried by the virtual link. Scheduling forwarding requirements to be performed by different service types of services.
  • the scheduler is further configured to: during the packet header encapsulation process of the packet, preferentially forward the packet with a higher forwarding priority of the service type in the second-level scheduling control process according to the PHB of the ingress node.
  • This embodiment further provides another board, which is applied to an intermediate node (ie, a P node) for implementing the foregoing traffic congestion control method.
  • the board includes: a processor and a scheduler, where:
  • the processor is configured to: map the PHB according to the EXP field of the packet received by the intermediate node, where the EXP field includes: a first field for identifying the service type of the packet, and a virtual field for identifying the packet entering the first node of the PE Whether the second field of the virtual private network service packet in the committed bandwidth is in the link; wherein the first field is mapped to the PHB service type, the second field is mapped to the packet color information, and the second field is identified as The message within the committed bandwidth is mapped green, and the second field is identified as the message outside the committed bandwidth is mapped to yellow;
  • the scheduler is coupled to the processor and configured to: perform two-stage scheduling control of the traffic according to the mapped PHB, where the first-level scheduling control is used to control the bandwidth, and the second-level scheduling control is used to control the preferential forwarding of the packet.
  • the present invention provides an MPLS network E-LSP end-to-end QOS method and apparatus, and relates to multi-protocol label switching (MPLS) network tunnel end-to-end quality of service (Quality of Service (referred to as QoS) technical field, especially the end-to-end QoS guarantee technology when using the EXP-Label Switch Path (E-LSP) tunnel model.
  • MPLS multi-protocol label switching
  • QoS Quality of Service
  • An end-to-end QoS guarantee based on the E-LSP model includes:
  • Step 1 The PE first node and the P node use a custom code for the EXP field encoding of the E-LSP.
  • Step 2 The P node ingress node (INGRESS) side identifies the packet discarding level according to the custom encoding rule in step 1.
  • Step 3 The P-node tunnel service flow is treated according to an ordered aggregate (Ordered Aggregate, OA for short), and the queue congestion policy is configured to partially/all discard yellow packets when they are congested.
  • ordered aggregate Orderered Aggregate, OA for short
  • queue congestion policy is configured to partially/all discard yellow packets when they are congested.
  • the color of the P-node packet is transparently transmitted, so that the execution of the P-node congestion management policy is consistent with the coloring of the first node, and the packet is not out of order;
  • the PE first and last nodes, the P node strictly performs HQOS scheduling management.
  • the first and last nodes perform the first level of scheduling, the purpose of which is to ensure the virtual link bandwidth requirement and control the total traffic, and to ensure that the scheduling behavior of the internal flow of the same virtual link satisfies the superior forwarding relationship of the service service; It is guaranteed to preferentially forward high-priority services and ensure service delay requirements.
  • the P-node performs the first-level scheduling, and the purpose is to ensure the tunnel bandwidth requirement and control the priority to forward the green packet.
  • the second-level scheduling is consistent with the first-to-last node.
  • the end-to-end QoS of the E-LSP in the optional embodiment indicates the discarding level of the VPN service packet transmitted in the tunnel through a certain bit of the EXP field of the E-LSP to ensure that the P node preferentially forwards the VPN service to ensure the bandwidth portion of the traffic. .
  • the method for ensuring end-to-end QoS guarantee based on the E-LSP model includes the following steps:
  • Step 1 Specify the EXP field encoding (ENCODE) and decoding (DECODE) table rules for the tunnel, for example:
  • EXP ENCODE table any 2 bit indicates the service category, which can represent 4 categories: BE, AF, Expedited Forwarding (EF), Class Selector (CS); EX remaining The bit bit indicates the discard level, which can represent two discard levels: low discard level, high discard level.
  • the DECODE table of the EXP the service type (Class of Service, referred to as CoS) of the 2-bit mapping per-hop behavior (PHB) of the service level in the EXP, and the bit indicating the discarding level in the EXP indicates the discarding priority of the PHB. level.
  • DECODE and ENCODE are reversible.
  • the second step the first node processing rule of the INGRESS side PE:
  • the first-stage scheduler of the PE head node performs at least port, tunnel, pseudowire, and flow level 4-level HQoS scheduling.
  • the port scheduling is to ensure that the traffic of multiple ports does not interfere with each other;
  • the tunnel scheduling is to ensure the flow control of each tunnel in the port;
  • the pseudowire scheduling is to ensure the flow control of the pseudowire in the tunnel, and the bandwidth of the pseudowire is the VPN service in the MPLS network.
  • the bandwidth to be transmitted; the flow level scheduling is to meet the scheduling and forwarding requirements of different service level services in the VPN carried by the pseudowire.
  • One of the purposes of the second-level scheduling of the PE first-node is to preferentially forward high-priority services after the packet is encapsulated on the ENGRESS side.
  • the two-stage scheduling mechanism of the PE first node ensures the bandwidth, delay, and jitter requirements of the VPN service.
  • the mapping from PHB to EXP is mapped according to the encoding method of the above ENCODE, and can carry the above four service levels; the VPN service packet whose traffic is in the pseudowire (ie virtual link) committed bandwidth (CIR) is mapped to the tunnel EXP. Low drop level, otherwise, mapped to the high drop level of the tunnel EXP.
  • CIR committed bandwidth
  • the third step the P node decodes according to the encoding/decoding table shown in the first step.
  • a total of four service levels are supported: BE, AF, EF, CS, and 2 drop levels.
  • the first-level scheduling controls the bandwidth
  • the tunnel bearer service is equivalent to one OA, and enters an ordered queue.
  • the congestion and discarding policy is configured to cause the yellow packet to be discarded immediately after congestion.
  • the secondary scheduling controls the forwarding priority to ensure that the high-priority services are preferentially forwarded.
  • HQoS not only the bandwidth of different tunnels but also the QoS of different services in each tunnel can be realized.
  • the color-coded bit in the P-block EXP code is transparently transmitted and is not re-encoded, so that the next P-node performs congestion policy control to ensure that the yellow packet is a traffic packet in the EIR bandwidth of the first node.
  • PE tail node processing rule PHB mapping no longer pays attention to the tunnel pipeline mode, and uniformly maps the PHB with the EXP in the innermost label. To ensure end-to-end QoS, QoS control always acts on the downstream AC (VPN Access Control Interface) exit.
  • AC VPN Access Control Interface
  • the method of the alternative embodiment or the device and system based on the method has wide adaptability, and can ensure the end-to-end QoS capability of each VPN for the MPLS network adopting the E-LSP technology, and improves the QoS capability of the VPN.
  • System suitability and usability.
  • the PE first node performs HQoS processing, including: enabling the HQoS (hierarchical QoS) function of the first level scheduling at the PE head node, and setting the tunnel EXP coding mode to 4P4D (4P indicates 4 types of priority) Level service class, 4D indicates the discarding category of the four priority service classes, as shown in Table 1. Its scheduling tree structure is shown in Figure 5.
  • the pseudowire, tunnel, and port perform strict CAC check.
  • the flows of each service level in the pseudowire are scheduled according to the flow scheduling policy to meet the requirements of the traffic flow characteristic QOS.
  • the pseudowire scheduling is to meet the requirements of the pseudowire pair bandwidth resources.
  • the scheduling of the tunnel is to meet the bandwidth requirements of the tunnel.
  • Port-level scheduling is to ensure fairness and fairness of flow control between ports.
  • the flow forwarded from the node, the flow in the pseudowire is preferentially forwarded according to the service level relationship according to the PQ policy/WFQ policy/DWRR policy, and then the overall traffic of the pipeline is pseudo-wired.
  • the control method is to prioritize its guaranteed bandwidth and then try to forward its excess bandwidth traffic.
  • the tunnel is not aware of the customer service.
  • the tunnel primary scheduling ensures that the promised bandwidth of the tunnel is guaranteed and tries to forward the excess bandwidth traffic of the tunnel. And so on.
  • recoloring is turned on and the color is carried to the Network Processor (NP).
  • the color of the PIR part of the pseudowire is green, and the color of the EIR part of the pseudowire is yellow.
  • the NP encapsulates the MPLS E-LSP tunnel label, the color is changed to the low bit of the EXP. For example, the low bit 0 indicates that the packet color is yellow, 1 indicates the packet color is green, and the high 2 bit is encoded according to the first field of Table 1. .
  • the second-level scheduling is based on the NP chip scheduling tree configuration to ensure that high-priority services are forwarded without blocking priority.
  • Schematic diagram of NP chip EGRESS side scheduling and forwarding is shown in Figure 6.
  • the SMS module is divided into three types of forwarding directions: A, B, and C.
  • the SMS Class A module corresponds to the forwarding direction of the TI to SMS module.
  • the SMS implements the multicast replication direction.
  • the SMS C class module is sent to the TI (Traffic Interface) interface direction after the Pipeline to the SMS module.
  • the PT0 queue management adopts the following configurations:
  • Each queue group corresponds to one Node A, a total of 64 Node A.
  • Node B to tree mapping can be arbitrarily configured.
  • the Level A Node corresponds to the TI subport.
  • the PT1 queue management adopts the following configurations:
  • Each queue group corresponds to one node A, 64 Node A.
  • Node B to tree mapping can be arbitrarily configured.
  • Level B node corresponds to the PP subport.
  • Level A node In addition to the TI access, the Level A node also includes logical multicast and loopback access.
  • Each Level A node is connected to two queues and is divided into high and low priorities.
  • the P-node performs the HQoS processing process, including: performing uplink aggregation on the P node, indicating behavior aggregation (Behavior Aggregate, abbreviated as BA) according to the high 2 bit of the EXP, and discarding the low-bit bitmap mapping level according to Table 1.
  • BA behavior aggregation
  • An ordered queue is assigned based on the uniqueness of the tunnel.
  • the queue congestion discarding policy is Weighted Random Early Detection (WRED).
  • the primary scheduling is performed by the scheduling management chip (SA), and its scheduling tree is as shown in FIG.
  • the secondary scheduling is done by the NP, which performs strict priority (SP) scheduling in accordance with 8 service levels.
  • SA scheduling management chip
  • SP strict priority
  • the P-node downlink encapsulates the high 2-bit and the PE first node, and the low-bit replicates the uplink EXP low-bit.
  • the PE tail processing process of the PE tail node includes: at the PE tail node, if the layer 2 (L2) VPN, the PHB is mapped according to the EXP of the PW label; if the layer 3 (L3) VPN, according to the VPN routing Forwarding (VRF) tag EXP mapping PHB.
  • L2 layer 2
  • L3 layer 3
  • VRF VPN routing Forwarding
  • the sub-port scheduler in Figure 8 represents the AC interface level 1 scheduling.
  • the flow-level scheduler is connected to the scheduler.
  • the flow-level scheduler is configured to implement the user scheduling policy and preferentially forward the high-priority service.
  • the sub-port scheduler forwards the CIR part traffic preferentially, and forwards the EIR part of the traffic if the port bandwidth is sufficient.
  • Each AC occupies a sub-port scheduler to ensure that each VPN service burst does not preempt other VPN guaranteed bandwidth.
  • the sub-port scheduler CIR is converted according to the pseudowire bandwidth (for example, if the sub-port link is an Ethernet link, the total bandwidth is calculated according to the pseudo-line bandwidth minus the N-side encapsulation plus the U-side encapsulation);
  • the upstream and downstream routes are dynamic and static. Therefore, the traffic on the AC cannot be accurately estimated. This requires the user to manually set the bandwidth of the AC interface according to the networking plan. By default, the traffic is forwarded at full speed.
  • the foregoing embodiment of the present invention encapsulates the corresponding VPN information in the outer label of the MPLS packet, thereby solving the P-node in the case of multiplexing the multi-virtual private network service in the related art.
  • the problem that the VPN information cannot be resolved and the end-to-end quality of service cannot be guaranteed ensures the end-to-end QoS control of the multi-VPN service multiplexing tunnel.
  • modules or steps of the present invention described above can be implemented by a general-purpose computing device that can be centralized on a single computing device or distributed across a network of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device, such that they may be stored in a storage device by a computing device, or they may be fabricated into individual integrated circuit modules, or Multiple modules or steps are made into a single integrated circuit module. Thus, the invention is not limited to any specific combination of hardware and software.
  • the foregoing technical solution uses the PE head node to encode the EXP field of the outer label of the packet according to the service type and the packet color information of the ingress PHB of the packet, where the EXP field includes the first service type for identifying the packet.
  • the field is used to identify whether the packet is the second field of the virtual private network service packet in the committed bandwidth in the virtual link that enters the PE head node; the PE first node solves the traffic congestion control according to the ingress node PHB.
  • the related art is based on the E-LSP MPLS network. In the case of multi-VPN service multiplexing tunnel, the end-to-end QoS control cannot be realized because the P-node cannot resolve the VPN information, and the multi-VPN service multiplexing tunnel is guaranteed. End-to-end QoS control. Therefore, the present invention has strong industrial applicability.

Abstract

An outer label encoding method, traffic congestion control method and device, the outer label encoding method comprising: a PE head node encodes an EXP field of the outer label of a packet according to the class of service of an ingress node PHB of the packet and the packet color information, the EXP field comprising a first field for identifying the class of service of the packet and a second field for identifying whether the packet is a virtual private network service packet within a committed bandwidth when entering a pseudo wire of the PE head node, such that a P node can map PHB according to the EXP field, manage and control congestion of each queue in each tunnel, and conditionally perform two-level QOS scheduling management, thus solving the problem in the relevant art of being unable to achieve end-to-end QoS control due to the failure of a P node to obtain VPN information in the case of multiple VPN service multiplexing a tunnel in an E-LSP based MPLS network.

Description

外层标签编码方法、流量拥塞控制方法及装置Outer label encoding method, flow congestion control method and device 技术领域Technical field
本发明涉及外层标签编码技术及流量拥塞控制技术领域,具体而言,涉及一种外层标签编码方法、流量拥塞控制方法及装置。The present invention relates to the field of outer label coding technology and traffic congestion control technology, and in particular to an outer label coding method, a traffic congestion control method and apparatus.
背景技术Background technique
在采用基于EXP的标签交换路径(EXP-Label Switch Path,简称为E-LSP)的多协议标签交换(Multi-Protocol Label Switching,简称为MPLS)网络中,若存在多虚拟专用网络(Virtual Private Network,简称为VPN)复用隧道的情况,相关模型无法保证VPN端到端的带宽需求。In a Multi-Protocol Label Switching (MPLS) network using an EXP-Label Switch Path (E-LSP), if there is a multi-virtual private network (Virtual Private Network) , referred to as VPN) multiplexing tunnel, the related model can not guarantee the end-to-end bandwidth requirements of the VPN.
比如在图1所示的组网中,假设实际物理链路都是千兆以太网(Gigabit Ethernet,简称为GE)端口。在运营商边缘路由器(PE)首节点,经过服务质量(Quality of Service,简称为QoS)调度处理后,lsp1实际流量为800M的虚链路(Pseudo Wire,简称为PW)1承载的尽力而为(Best-effort,简称为BE)业务流cir=600M,eir=200M(其中,约定信息速率、承诺带宽,Committed Information Rate,简称为CIR;额外信息速率Excess Information Rate,简称为EIR),lsp2复用了2个VPN的业务,其中含pw2承诺带宽cir=100M的BE业务流,含pw3承诺带宽cir=200M,eir=800M的确保转发(Assured Forwarding,简称为AF)1业务流。在P节点(即,除PE首节点和PE尾节点之外的中间节点,在MPLS骨干网络中,初始PE之后的P节点均只读取外层标签的信息来决定下一跳,因此骨干网络中只是简单的标签交换),lsp1和lsp2在图1中P节点的出接口必产生拥塞。For example, in the networking shown in Figure 1, the actual physical link is a Gigabit Ethernet (GE) port. On the first node of the carrier edge router (PE), after the quality of service (QoS) scheduling, the virtual link (Pseudo Wire, PW) 1 with lsp1 actual traffic of 800M is doing its best. (Best-effort, abbreviated as BE) service flow cir=600M, eir=200M (where the agreed information rate, committed bandwidth, Committed Information Rate, referred to as CIR; Excess Information Rate, referred to as EIR), lsp2 complex The traffic of the two VPNs is used, including the BE service flow with the pw2 commitment bandwidth cir=100M, including the pw3 committed bandwidth cir=200M, and the eir=800M Assured Forwarding (AF) 1 service flow. In the P node (that is, the intermediate node except the PE head node and the PE tail node, in the MPLS backbone network, the P node after the initial PE only reads the information of the outer label to determine the next hop, so the backbone network In the simple label switching, lsp1 and lsp2 in Figure 1 will cause congestion on the outbound interface of the P node.
根据QoS调度规则,隧道将优先的cir部分。这样,lsp1将优先获得cir=600M的带宽,lsp2将优先获得cir=300M的带宽。两条隧道的cir之和为600M+300M=900M,链路带宽还剩下1G–900M=100M根据调度权重分配的lsp1和lsp2。假设权重为1:1,那么lsp1、lsp2各自均分得eir=50M的带宽。因此,lsp1实际转发流量为600M+50M=650M,lsp2实际转发流量为300M+50M=350M。但是,在P节点隧道调度时已经无法识别具体VPN 信息,因此,lsp2将根据调度优先队列(Priority Queuing,简称为PQ)关系把获得350M的带宽将全部分配给高优先级业务,也就是上述的确保转发AF1业务。实际也就是全部分配给了pw3所承载的VPN业务。这样一来,pw2所承载的VPN业务流量将得不到保证。由此可见,在多VPN业务复用隧道的情况下,由于VPN信息没有传递给P节点从而导致端到端的QoS无法实现。According to the QoS scheduling rules, the tunnel will give priority to the cir part. In this way, lsp1 will preferentially obtain the bandwidth of cir=600M, and lsp2 will preferentially obtain the bandwidth of cir=300M. The sum of the cirs of the two tunnels is 600M+300M=900M, and the link bandwidth has 1G–900M=100M allocated lsp1 and lsp2 according to the scheduling weights. Assuming a weight of 1:1, lsp1 and lsp2 each share a bandwidth of eir=50M. Therefore, the actual forwarding traffic of lsp1 is 600M+50M=650M, and the actual forwarding traffic of lsp2 is 300M+50M=350M. However, the specific VPN cannot be identified during P-node tunnel scheduling. Information, therefore, lsp2 will allocate 350M of bandwidth to the high-priority service according to the Priority Queuing (PQ) relationship, that is, ensure the forwarding of the AF1 service. In fact, all of them are allocated to the VPN service carried by pw3. As a result, VPN traffic carried by pw2 will not be guaranteed. It can be seen that in the case of multi-VPN service multiplexing tunnel, end-to-end QoS cannot be achieved because VPN information is not transmitted to the P node.
针对相关技术基于E-LSP的MPLS网络中,在多VPN业务复用隧道的情况下,由于P节点无法解析到VPN信息而导致的端到端QoS控制无法实现的问题,目前尚未提出有效解决方案,In the MPLS network based on the E-LSP related to the related technology, in the case of multi-VPN service multiplexing tunnel, the end-to-end QoS control cannot be realized due to the P-node unable to resolve the VPN information, and no effective solution has been proposed yet. ,
发明内容Summary of the invention
本发明提供了一种外层标签编码方法、流量拥塞控制方法及装置,以至少解决上述问题。The present invention provides an outer label encoding method, a traffic congestion control method and apparatus to solve at least the above problems.
为解决上述技术问题,采用如下技术方案:In order to solve the above technical problems, the following technical solutions are adopted:
一种外层标签编码方法,包括:An outer label encoding method comprising:
运营商边缘路由器PE首节点根据报文的每跳转发行为PHB的服务类型和进行流量拥塞控制后的报文颜色信息,编码所述报文的外层标签的EXP字段;The operator's edge router, the PE head node, encodes the EXP field of the outer label of the packet according to the service type of the PHB and the packet color information after the traffic congestion control is performed.
其中,所述EXP字段包括:用于标识所述报文的服务类型的第一字段、和用于标识所述报文在进入所述PE首节点的虚链路中是否为承诺带宽内的虚拟专用网业务报文的第二字段。The EXP field includes: a first field that is used to identify the service type of the packet, and a virtual field in the virtual link that is used to identify the packet in the virtual link that enters the PE head node. The second field of the private network service message.
可选地,在所述PE首节点编码所述EXP字段之前,所述方法还包括:Optionally, before the PE head node encodes the EXP field, the method further includes:
所述PE首节点根据入节点PHB进行流量拥塞控制;The PE head node performs traffic congestion control according to the PHB of the ingress node;
所述PE首节点根据入节点PHB进行流量拥塞控制的步骤包括:The step of the PE head node performing traffic congestion control according to the ingress node PHB includes:
所述PE首节点根据所述入节点PHB进行第一级调度控制,在第一级调度控制过程中至少执行端口调度、隧道调度、虚链路调度和流级调度,其中,所述端口调度用于保证多个端口流量之间互不干扰,所述隧道调度用于保证端口内多个隧道的流量控制,所述虚链路调度用于保证隧道内多个虚链路的流量控制,所述流级调度用于保证虚链路所承载的虚链路内不同服务类型的 业务所要执行的调度转发需求。The PE head node performs first-level scheduling control according to the PHB of the ingress node, and performs at least port scheduling, tunnel scheduling, virtual link scheduling, and flow level scheduling in the first-level scheduling control process, where the port scheduling is performed. To ensure that the traffic of the multiple ports is not interfered with each other, the tunnel scheduling is used to ensure the traffic control of multiple tunnels in the port, and the virtual link scheduling is used to ensure the traffic control of multiple virtual links in the tunnel. Flow-level scheduling is used to ensure different service types in the virtual link carried by the virtual link. The scheduling forwarding requirements to be performed by the business.
可选地,所述PE首节点根据入节点PHB进行流量拥塞控制的步骤还包括:Optionally, the step of the PE head node performing traffic congestion control according to the PHB of the ingress node further includes:
所述PE首节点在报文的包头封装处理过程中,根据所述入节点PHB进行第二级调度控制,在第二级调度控制过程中优先转发服务类型的转发优先级较高的报文。The PE head node performs the second-level scheduling control according to the PHB of the ingress node during the packet header encapsulation process of the packet, and preferentially forwards the packet with the higher forwarding priority of the service type in the second-level scheduling control process.
可选地,在所述PE首节点编码所述报文的外层标签的EXP字段的步骤之后,所述方法还包括:Optionally, after the step that the PE head node encodes an EXP field of an outer label of the packet, the method further includes:
中间节点根据接收到的报文的所述EXP字段映射PHB,其中,所述第一字段被映射为PHB的服务类型,所述第二字段被映射为报文颜色信息,其中,在映射所述第二字段时,在承诺带宽内的报文被映射绿色,在承诺带宽外的报文被映射为黄色;The intermediate node maps the PHB according to the EXP field of the received message, where the first field is mapped to a service type of the PHB, and the second field is mapped to message color information, where In the second field, the packets in the committed bandwidth are mapped green, and the packets outside the committed bandwidth are mapped to yellow.
所述中间节点根据映射的PHB进行流量的第一级调度控制和第二级调度控制,其中,第一级调度控制用于控制带宽,第二级调度控制用于控制报文的优先转发。The intermediate node performs the first-level scheduling control and the second-level scheduling control of the traffic according to the mapped PHB, where the first-level scheduling control is used to control the bandwidth, and the second-level scheduling control is used to control the preferential forwarding of the packet.
可选地,所述中间节点根据映射的PHB进行流量的所述第一级调度控制的步骤包括:Optionally, the step of the intermediate node performing the first level scheduling control of the traffic according to the mapped PHB includes:
所述中间节点将接收到的报文等同于一个有序聚合体OA,根据映射的报文颜色信息将接收到的报文加入同一个有序调度队列;The intermediate node equates the received packet with an ordered aggregate OA, and adds the received packet to the same ordered scheduling queue according to the mapped packet color information.
所述中间节点在对流量进行拥塞控制的情况下,优先丢弃所述有序调度队列中报文颜色信息为黄色的报文。The intermediate node preferentially discards the packet whose color information is yellow in the ordered scheduling queue when congestion control is performed on the traffic.
可选地,所述中间节点优先丢弃所述有序调度队列中报文颜色信息为黄色的报文的步骤包括:Optionally, the step of the intermediate node preferentially discarding the packet whose color information is yellow in the ordered scheduling queue includes:
所述中间节点根据加权随机先期检测的队列拥塞丢弃策略,优先丢弃所述有序调度队列中报文颜色信息为黄色的报文。The intermediate node preferentially discards the packet whose color information is yellow in the ordered scheduling queue according to the queue congestion discarding policy of the weighted random pre-detection.
可选地,所述中间节点根据映射的PHB进行流量的所述第二级调度控制的步骤包括:Optionally, the step of the intermediate node performing the second-level scheduling control of the traffic according to the mapped PHB includes:
所述中间节点根据报文映射的PHB的服务类型和报文颜色信息,编码接收到的报文的外层标签的EXP字段,其中,该EXP字段包括:用于标识所述 报文的服务类型的第一字段、和用于标识所述报文的报文颜色信息的第二字段;The intermediate node encodes an EXP field of an outer label of the received packet according to the service type and the packet color information of the PHB of the packet, where the EXP field includes: a first field of the service type of the message, and a second field for identifying the color information of the message of the message;
所述中间节点根据报文映射的服务类型,对报文进行转发优先级控制。The intermediate node performs forwarding priority control on the packet according to the service type of the packet mapping.
可选地,在所述中间节点根据映射的PHB进行流量的第一级调度控制和第二级调度控制之后,所述方法还包括:Optionally, after the intermediate node performs the first-level scheduling control and the second-level scheduling control of the traffic according to the mapped PHB, the method further includes:
PE尾节点根据接收到的报文的内层标签映射PHB;The PE tail node maps the PHB according to the inner label of the received packet;
所述PE尾节点在用户侧AC接口根据映射的PHB对报文进行HQoS的流量拥塞控制。The PE tail node performs HQoS traffic congestion control on the packet on the user-side AC interface according to the mapped PHB.
可选地,所述PE首节点或中间节点根据下列规则进行编码或映射:Optionally, the PE head node or the intermediate node is coded or mapped according to the following rules:
Figure PCTCN2014089340-appb-000001
Figure PCTCN2014089340-appb-000001
其中,所述第二字段中的“0”表示报文在进入所述PE首节点的虚链路中是承诺带宽外的虚拟专用网业务报文、或者表示报文的报文颜色信息为黄 色;所述第二字段中的“1”表示报文在进入所述PE首节点的虚链路中是承诺带宽内的虚拟专用网业务报文、或者表示报文的报文颜色信息为绿色。The "0" in the second field indicates that the packet is a virtual private network service packet outside the committed bandwidth or the packet color information indicating the packet is yellow in the virtual link that enters the first node of the PE. The value of "1" in the second field indicates that the packet is a virtual private network service packet in the promised bandwidth or the packet color information of the packet is green in the virtual link that enters the first node of the PE. .
一种外层标签编码装置,位于运营商边缘路由器PE首节点中,包括EXP编码模块,其中:An outer label encoding device is located in a first node of a carrier edge router PE, and includes an EXP encoding module, where:
所述EXP编码模块设置成:根据报文的每跳转发行为PHB的服务类型和进行流量拥塞控制后的报文颜色信息,编码所述报文的外层标签的EXP字段,其中,所述EXP字段包括:用于标识所述报文的服务类型的第一字段、和用于标识所述报文在进入所述PE首节点的虚链路中是否为承诺带宽内的虚拟专用网业务报文的第二字段。The EXP encoding module is configured to: encode an EXP field of an outer label of the packet according to a service type of the PHB and a packet color information after the traffic congestion control is performed, and the The EXP field includes: a first field for identifying a service type of the packet, and a virtual private network service report for identifying whether the packet is a committed bandwidth in a virtual link entering the PE head node. The second field of the text.
可选地,所述装置还包括拥塞控制模块,其中:Optionally, the device further includes a congestion control module, wherein:
所述拥塞控制模块设置成:根据入节点PHB进行流量拥塞控制;所述拥塞控制模块包括第一级调度控制单元,其中:The congestion control module is configured to: perform traffic congestion control according to the ingress node PHB; the congestion control module includes a first level scheduling control unit, where:
所述第一级调度控制单元设置成:根据所述入节点PHB进行第一级调度控制,在第一级调度控制过程中至少执行端口调度、隧道调度、虚链路调度和流级调度,其中,所述端口调度用于保证多个端口流量之间互不干扰,所述隧道调度用于保证端口内的多个隧道的流量控制,所述虚链路调度用于保证虚链路内多个虚链路的流量控制,所述流级调度用于保证虚链路所承载的隧道内不同服务类型的业务所要执行的调度转发需求。The first-level scheduling control unit is configured to: perform first-level scheduling control according to the ingress node PHB, and perform at least port scheduling, tunnel scheduling, virtual link scheduling, and flow-level scheduling in the first-level scheduling control process, where The port scheduling is used to ensure that traffic of multiple ports does not interfere with each other. The tunnel scheduling is used to ensure traffic control of multiple tunnels in a port, and the virtual link scheduling is used to ensure multiple virtual links. The traffic control of the virtual link is used to ensure the scheduling and forwarding requirements of services of different service types in the tunnel carried by the virtual link.
可选地,所述拥塞控制模块还包括第二级调度控制单元,其中:Optionally, the congestion control module further includes a second level scheduling control unit, where:
所述第二级调度控制单元设置成:在报文的包头封装处理过程中,根据所述入节点PHB进行第二级调度控制,在第二级调度控制过程中优先转发服务类型的转发优先级较高的报文。The second-level scheduling control unit is configured to perform second-level scheduling control according to the ingress node PHB during the packet header encapsulation process of the packet, and preferentially forward the forwarding priority of the service type in the second-level scheduling control process. Higher message.
一种流量拥塞控制装置,位于中间节点中,包括每跳转发行为PHB映射模块和拥塞控制模块,其中:A traffic congestion control device is located in an intermediate node, and includes a PHB mapping module and a congestion control module for each jump release, wherein:
所述每跳转发行为PHB映射模块设置成:根据中间节点接收的报文的EXP字段映射PHB,其中,所述EXP字段包括:用于标识所述报文的服务类型的 第一字段、和用于标识所述报文在进入运营商边缘路由器PE首节点的虚链路中是否为承诺带宽内的虚拟专用网业务报文的第二字段;The PB mapping module is configured to: map the PHB according to the EXP field of the packet received by the intermediate node, where the EXP field includes: a service type used to identify the packet. a first field, and a second field used to identify the virtual private network service packet in the committed bandwidth in the virtual link of the first node of the operator edge router PE;
其中,所述每跳转发行为PHB映射模块将所述第一字段映射为PHB的服务类型,将所述第二字段映射为报文颜色信息,在映射所述第二字段时,在承诺带宽内的报文被映射绿色,在承诺带宽外的报文被映射为黄色;The per-hop is a PHB mapping module that maps the first field to a PHB service type, and the second field is mapped to packet color information, and when the second field is mapped, the committed bandwidth is The packets in the packet are mapped in green, and the packets outside the committed bandwidth are mapped to yellow.
所述拥塞控制模块设置成:根据映射的PHB进行流量的两级调度控制,其中,第一级调度控制用于控制带宽,第二级调度控制用于控制报文的优先转发。The congestion control module is configured to perform two-level scheduling control of traffic according to the mapped PHB, where the first-level scheduling control is used to control bandwidth, and the second-level scheduling control is used to control priority forwarding of packets.
可选地,所述拥塞控制模块包括第一级调度控制队列控制单元和第一级调度控制报文丢弃单元,其中:Optionally, the congestion control module includes a first-level scheduling control queue control unit and a first-level scheduling control packet discarding unit, where:
所述第一级调度控制队列控制单元设置成:将中间节点接收到的报文等同于一个有序聚合体OA,根据映射的报文颜色信息将接收到的报文加入同一个有序调度队列;The first level scheduling control queue control unit is configured to: equate the received message with the intermediate node to an ordered aggregate OA, and add the received message to the same ordered scheduling queue according to the mapped message color information. ;
所述第一级调度控制报文丢弃单元设置成:在对流量进行拥塞控制的情况下,优先丢弃所述有序调度队列中报文颜色信息为黄色的报文。The first-level scheduling control packet discarding unit is configured to: in the case of performing congestion control on the traffic, preferentially discarding the packet whose color information is yellow in the ordered scheduling queue.
可选地,所述第一级调度控制报文丢弃单元设置成按照如下方式优先丢弃所述有序调度队列中报文颜色信息为黄色的报文:Optionally, the first-level scheduling control packet discarding unit is configured to preferentially discard the packet whose color information is yellow in the ordered scheduling queue according to the following manner:
根据加权随机先期检测的队列拥塞丢弃策略,优先丢弃所述有序调度队列中报文颜色信息为黄色的报文。According to the queue congestion discarding policy of the weighted random pre-detection, the packet with the yellow color of the packet in the ordered scheduling queue is discarded.
可选地,所述拥塞控制模块还包括第二级调度控制EXP编码单元和第二级调度控制报文转发单元,其中:Optionally, the congestion control module further includes a second level scheduling control EXP coding unit and a second level scheduling control message forwarding unit, where:
所述第二级调度控制EXP编码单元设置成:根据报文映射的PHB的服务类型和报文颜色信息,编码报文的外层标签的EXP字段,其中,该EXP字段包括:用于标识所述报文的服务类型的第一字段、和用于标识所述报文的报文颜色信息的第二字段;The second level scheduling control EXP encoding unit is configured to: encode an EXP field of an outer label of the packet according to the service type and the packet color information of the PHB of the packet mapping, where the EXP field includes: a first field of the service type of the message, and a second field for identifying the message color information of the message;
所述第二级调度控制报文转发单元设置成:根据报文映射的服务类型,对报文进行转发优先级控制。 The second-level scheduling control packet forwarding unit is configured to: perform forwarding priority control on the packet according to the service type of the packet mapping.
一种单板,包括EXP编码芯片和缓存器,其中:A single board includes an EXP encoding chip and a buffer, wherein:
所述EXP编码芯片设置成:根据报文的每跳转发行为PHB的服务类型和进行流量拥塞控制后的报文颜色信息,编码所述报文的外层标签的EXP字段,其中,所述EXP字段包括:用于标识所述报文的服务类型的第一字段、和用于标识所述报文在进入运营商边缘路由器PE首节点的虚链路中是否为承诺带宽内的虚拟专用网业务报文的第二字段;The EXP encoding chip is configured to: encode an EXP field of an outer label of the packet according to a service type of the PHB and a packet color information after the traffic congestion control is performed, wherein the The EXP field includes: a first field for identifying a service type of the packet, and a virtual private network for identifying whether the packet is a committed bandwidth in a virtual link entering a head node of the operator edge router PE The second field of the service message;
所述缓存器,耦合至所述EXP编码芯片,设置成:缓存被所述EXP编码芯片编码后的报文。The buffer is coupled to the EXP encoding chip and configured to: buffer a message encoded by the EXP encoding chip.
可选地,所述调度器,耦合至所述缓存器,设置成:根据所述入节点PHB进行第一级调度控制过程,在第一级调度控制过程中至少执行端口调度、隧道调度、虚链路调度和流级调度,其中,所述端口调度用于保证多个端口流量之间互不干扰,所述隧道调度用于保证端口内的多个隧道的流量控制,所述虚链路调度用于保证虚链路内多个虚链路的流量控制,所述流级调度用于保证虚链路所承载的隧道内不同服务类型的业务所要执行的调度转发需求。Optionally, the scheduler is coupled to the buffer, configured to perform a first-level scheduling control process according to the PHB of the ingress node, and perform at least port scheduling, tunnel scheduling, and virtual in the first-level scheduling control process. Link scheduling and flow level scheduling, wherein the port scheduling is used to ensure that traffic of multiple ports does not interfere with each other, and the tunnel scheduling is used to ensure traffic control of multiple tunnels in a port, and the virtual link scheduling The flow rate control is used to ensure the traffic forwarding of multiple virtual links in the virtual link. The flow level scheduling is used to ensure the scheduling and forwarding requirements of services of different service types in the tunnel carried by the virtual link.
可选地,所述调度器还设置成:在报文的包头封装处理过程中,根据所述入节点PHB进行在第二级调度控制过程中优先转发服务类型的转发优先级较高的报文。Optionally, the scheduler is further configured to: during the packet header encapsulation process of the packet, preferentially forward the packet with a higher forwarding priority of the service type in the second-level scheduling control process according to the PHB of the ingress node. .
一种单板,包括处理器和调度器,其中:A board, including a processor and a scheduler, where:
所述处理器设置成:根据中间节点接收的报文的所述EXP字段映射每跳转发行为PHB,其中,所述EXP字段包括:用于标识所述报文的服务类型的第一字段、和用于标识所述报文在进入运营商边缘路由器PE首节点的虚链路中是否为承诺带宽内的虚拟专用网业务报文的第二字段;The processor is configured to: according to the EXP field mapping of the packet received by the intermediate node, the per-jump is issued as a PHB, where the EXP field includes: a first field for identifying a service type of the packet, And a second field for identifying a virtual private network service message in the committed bandwidth in the virtual link of the first node of the operator edge router PE;
其中,所述处理器将所述第一字段映射为PHB的服务类型,将所述第二字段映射为报文颜色信息,在映射所述第二字段时,在承诺带宽内的报文被映射绿色,在承诺带宽外的报文被映射为黄色;The processor maps the first field to a service type of the PHB, and maps the second field to packet color information. When mapping the second field, the packet in the committed bandwidth is mapped. Green, packets outside the committed bandwidth are mapped to yellow;
所述调度器,耦合至所述处理器,设置成:根据映射的PHB进行流量的两级调度控制,其中,第一级调度控制用于控制带宽,第二级调度控制用于 控制报文的优先转发。The scheduler, coupled to the processor, is configured to: perform two-level scheduling control of traffic according to the mapped PHB, where the first level scheduling control is used to control bandwidth, and the second level scheduling control is used to Controls the priority forwarding of packets.
一种计算机程序,包括程序指令,当该程序指令被PE首节点,中间节点和尾节点执行时,使得该PE首节点,中间节点和尾节点可执行上述的外层标签编码方法。A computer program comprising program instructions that, when executed by a PE head node, an intermediate node, and a tail node, cause the PE head node, the intermediate node, and the tail node to perform the outer label encoding method described above.
一种载有上述计算机程序的载体。A carrier carrying the above computer program.
上述技术方案采用PE首节点根据报文的入节点PHB的服务类型和报文颜色信息,编码报文的外层标签的EXP字段,其中,EXP字段包括用于标识报文的服务类型的第一字段和用于标识报文在进入PE首节点的虚链路中是否为承诺带宽内的虚拟专用网业务报文的第二字段;PE首节点根据入节点PHB进行流量拥塞控制的方式,解决了相关技术基于E-LSP的MPLS网络中,在多VPN业务复用隧道的情况下由于P节点无法解析到VPN信息而导致的端到端QoS控制无法实现的问题,保证了多VPN业务复用隧道的端到端QoS控制。The foregoing technical solution uses the PE head node to encode the EXP field of the outer label of the packet according to the service type and the packet color information of the ingress PHB of the packet, where the EXP field includes the first service type for identifying the packet. The field is used to identify whether the packet is the second field of the virtual private network service packet in the committed bandwidth in the virtual link that enters the PE head node; the PE first node solves the traffic congestion control according to the ingress node PHB. The related art is based on the E-LSP MPLS network. In the case of multi-VPN service multiplexing tunnel, the end-to-end QoS control cannot be realized because the P-node cannot resolve the VPN information, and the multi-VPN service multiplexing tunnel is guaranteed. End-to-end QoS control.
附图概述BRIEF abstract
此处所说明的附图用来提供对本发明的进一步理解,构成本申请的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:The drawings described herein are intended to provide a further understanding of the invention, and are intended to be a part of the invention. In the drawing:
图1是根据相关技术的L2VPN隧道复用P节点拥塞带宽的流程示意图;1 is a schematic flowchart of multiplexing a P node congestion bandwidth by an L2VPN tunnel according to the related art;
图2是根据本发明实施例的流量拥塞控制方法的流程示意图;2 is a schematic flow chart of a traffic congestion control method according to an embodiment of the present invention;
图3是根据本发明实施例的流量拥塞控制装置的结构示意图;3 is a schematic structural diagram of a traffic congestion control apparatus according to an embodiment of the present invention;
图4是根据本发明实施例的另一流量拥塞控制装置的结构示意图;4 is a schematic structural diagram of another traffic congestion control apparatus according to an embodiment of the present invention;
图5是根据本发明可选实施例的PE首节点HQoS调度模型示意图;5 is a schematic diagram of a PE head node HQoS scheduling model according to an alternative embodiment of the present invention;
图6是根据本发明可选实施例的NP芯片EGRESS侧调度转发示意图; 6 is a schematic diagram of an EGR chip side scheduling and forwarding of an NP chip according to an alternative embodiment of the present invention;
图7是根据本发明可选实施例的P节点隧道HQoS调度模型示意图;7 is a schematic diagram of a P-node tunnel HQoS scheduling model according to an alternative embodiment of the present invention;
图8是根据本发明可选实施例的PE尾节点HQoS调度模型示意图。8 is a schematic diagram of a PE tail node HQoS scheduling model in accordance with an alternative embodiment of the present invention.
本发明的较佳实施方式Preferred embodiment of the invention
需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。下面将参考附图并结合实施例来详细说明本发明。It should be noted that the embodiments in the present application and the features in the embodiments may be combined with each other without conflict. The invention will be described in detail below with reference to the drawings in conjunction with the embodiments.
在附图的流程图示出的步骤可以在诸如一组计算机可执行指令的计算机系统中执行,并且,虽然在流程图中示出了逻辑顺序,但是在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤。The steps illustrated in the flowchart of the figures may be performed in a computer system such as a set of computer executable instructions, and although the logical order is shown in the flowchart, in some cases, may differ from this The steps shown are performed in the order shown or described.
本实施例提供了一种流量拥塞控制方法,该方法可以应用于基于E-LSP的MPLS网络中。图2是根据本发明实施例的流量拥塞控制方法的流程示意图,如图2所示,该流程包括如下步骤:This embodiment provides a traffic congestion control method, which can be applied to an E-LSP based MPLS network. 2 is a schematic flowchart of a traffic congestion control method according to an embodiment of the present invention. As shown in FIG. 2, the process includes the following steps:
步骤S202,PE首节点根据入节点PHB进行流量拥塞控制;Step S202, the PE head node performs traffic congestion control according to the ingress node PHB.
步骤S204,PE首节点根据报文的入节点PHB的服务类型和报文颜色信息,编码报文的外层标签的EXP字段,其中,EXP字段包括用于标识报文的COS的第一字段和用于标识报文在进入PE首节点的虚链路中是否为CIR内的虚拟专用网业务报文的第二字段。Step S204: The PE head node encodes an EXP field of an outer label of the packet according to the service type and the packet color information of the inbound PHB of the packet, where the EXP field includes a first field of the COS for identifying the packet and It is used to identify whether the packet is the second field of the virtual private network service packet in the CIR in the virtual link that enters the head node of the PE.
通过上述步骤,将报文在进入PE首节点的虚链路中是否为CIR内的虚拟专用网业务报文信息编码在外层标签的EXP字段中,使得P节点可以根据外层标签中的EXP字段进行QoS控制,从而解决了相关技术基于E-LSP的MPLS网络中,在多VPN业务复用隧道的情况下由于外层标签中没有VPN信息导致P节点无法解析到VPN信息,进而无法保证端到端QoS的实现的问题,保证了多VPN业务复用隧道的端到端QoS控制。Through the above steps, whether the packet is encoded in the EXP field of the outer label in the virtual link of the CIR in the virtual link that enters the head node of the PE, so that the P node can be based on the EXP field in the outer label. The QoS control is implemented to solve the related technology. In the MPLS network based on the E-LSP, in the case of multiplexing the multi-VPN service tunnel, the P-node cannot resolve the VPN information because there is no VPN information in the outer label, and thus the end-to-end cannot be guaranteed. The implementation of the end QoS guarantees the end-to-end QoS control of the multi-VPN service multiplexing tunnel.
可选地,在步骤S202中,PE首节点对报文流量进行HQoS控制,在第一级调度控制过程中,至少执行端口调度保证多个端口流量之间互不干扰,执行隧道调度保证端口内的多个隧道的流量控制,执行虚链路调度保证隧道内多个虚链路的流量控制,执行流级调度保证虚链路内不同服务类型的业务所要执行的调度转发需求。通过第一级调度控制,可以保证在PE首节点的出 节点侧的总流量带宽,并且尽量保证入节点侧各个虚链路的承诺带宽。Optionally, in step S202, the PE head node performs HQoS control on the packet traffic. In the first-level scheduling control process, at least port scheduling is performed to ensure that the traffic of the multiple ports does not interfere with each other, and the tunnel scheduling is ensured in the port. Traffic control of multiple tunnels, performing virtual link scheduling to ensure traffic control of multiple virtual links in the tunnel, and performing flow-level scheduling to ensure scheduling and forwarding requirements for services of different service types in the virtual link. Through the first level of scheduling control, the outbound node of the PE can be guaranteed Total traffic bandwidth on the node side, and try to ensure the committed bandwidth of each virtual link on the ingress side.
可选地,在PE首节点进行第二级调度控制过程中,PE首节点在对报文的包头进行封装处理的过程中,根据入节点PHB优先转发服务类型的转发优先级较高的报文。其中,BE、AF、EF、CS业务的转发优先级依次增大,即BE业务的转发优先级最低,CS业务的转发优先级最高。通过第二级调度控制可以保证转发优先级较高的业务被优先转发而降低时延。Optionally, in the process of performing the second-level scheduling control on the PE head node, the PE first node preferentially forwards the packet with the higher forwarding priority of the service type according to the PHB of the ingress node in the process of encapsulating the packet header. . The forwarding priorities of the BE, AF, EF, and CS services are increased in turn, that is, the forwarding priority of the BE service is the lowest, and the forwarding priority of the CS service is the highest. The second-level scheduling control ensures that services with higher forwarding priorities are preferentially forwarded and delays are reduced.
可选地,在根据报文转发优先级进行优先级转发的情况下,采用优先队列调度方式。Optionally, in the case of performing priority forwarding according to the packet forwarding priority, the priority queue scheduling mode is adopted.
在PE首节点根据报文转发优先级进行报文转发之后,报文被发送至P节点进行处理。After the PE head node forwards the packet according to the packet forwarding priority, the packet is sent to the P node for processing.
可选地,在P节点对报文进行处理的过程包括:P节点根据接收到的报文的EXP字段映射PHB,其中,第一字段被映射为PHB的服务类型,第二字段被映射为报文颜色信息,其中,第二字段的映射规则为:第二字段被标识为在承诺带宽内的报文被映射绿色,第二字段被标识为在承诺带宽外的报文被映射为黄色;P节点根据映射的PHB进行流量的两级调度控制,其中,第一级调度控制用于控制带宽,第二级调度控制用于控制报文的优先转发。并且,第一字段被映射为的PHB的服务类型与报文在PE首节点的入节点侧的PHB的服务类型可能不同,由于在E-LSP中,EXP字段为3bit,第二字段至少占用1bit,则第一字段最多仅能占用2bit,共可以表示4种服务类型,因此,对于BE、AF1、AF2、AF3、AF4、EF、CS6、CS7这8种服务类型可以根据不同的转发优先级需求映射到4种服务类型上,例如,在PE首节点中将BE、AF1重新映射为BE业务,并在第一字段中标识为该报文为BE业务;在P节点的后续处理过程中,根据第一字段将该报文作为BE报文看待。Optionally, the process of processing the packet by the P node includes: the P node mapping the PHB according to the EXP field of the received packet, where the first field is mapped to the service type of the PHB, and the second field is mapped to the report. Text color information, wherein the mapping rule of the second field is: the second field is identified as the message within the committed bandwidth is mapped green, and the second field is identified as the message outside the committed bandwidth is mapped to yellow; The node performs two-level scheduling control of the traffic according to the mapped PHB. The first-level scheduling control is used to control the bandwidth, and the second-level scheduling control is used to control the priority forwarding of the packet. In addition, the service type of the PHB to which the first field is mapped may be different from the service type of the PHB of the inbound node of the packet in the E-LSP. The EXP field is 3 bits in the E-LSP, and the second field occupies at least 1 bit. The first field can only occupy 2 bits at most, and can represent four service types. Therefore, the eight service types of BE, AF1, AF2, AF3, AF4, EF, CS6, and CS7 can be based on different forwarding priority requirements. Mapping to the four types of services, for example, remapping the BE and AF1 to the BE service in the PE head node, and identifying the packet as the BE service in the first field; in the subsequent processing of the P node, according to The first field treats the message as a BE message.
可选地,上述的第一级调度控制包括:P节点将接收到的报文根据映射的报文颜色信息、并等同于一个有序聚合体(OA),加入同一个有序调度队列;P节点在对流量进行拥塞控制的情况下,优先丢弃有序调度队列中报文颜色信息为黄色的报文。通过本方式,将P节点接收的报文加入同一个有序调度队列等同对待,从而在保证了绿色报文尽量传输的前提下的带宽控制。Optionally, the foregoing first-level scheduling control includes: the P-node adds the received packet according to the mapped packet color information, and is equal to an ordered aggregate (OA), and joins the same ordered scheduling queue; When the traffic is congested, the node preferentially discards the packets whose color information is yellow in the ordered scheduling queue. In this mode, the packets received by the P-node are added to the same ordered scheduling queue, and the bandwidth control is ensured on the premise that the green packets are transmitted as much as possible.
可选地,P节点根据加权随机先期检测的队列拥塞丢弃策略,优先丢弃 有序调度队列中报文颜色信息为黄色的报文。Optionally, the P node preferentially discards according to the queue congestion discarding policy of the weighted random prior detection. The packet whose color information is yellow in the ordered scheduling queue.
可选地,在上述的第二级调度控制中,P节点根据报文映射的PHB的服务类型和报文颜色信息,编码报文的外层标签的EXP字段,其中,该EXP字段包括:用于标识报文的服务类型的第一字段、和用于标识报文的报文颜色信息的第二字段,其中,第一字段根据PHB反映射编码,第二字段等于上行接收的EXP第二字段,相当于透传。。在P节点的EXP编码过程中,EXP字段编码的结果与PE首节点中EXP字段保持一致。通过该方式,将报文的颜色信息传递给下一个P节点或者PE尾节点。Optionally, in the foregoing second-level scheduling control, the P-node encodes an EXP field of an outer label of the packet according to the service type and the packet color information of the PHB of the packet mapping, where the EXP field includes: a first field of the service type of the identifier packet, and a second field of the packet color information for identifying the packet, where the first field is encoded according to the PHB and the second field is equal to the second field of the EXP received by the uplink. , equivalent to transparent transmission. . In the EXP encoding process of the P node, the result of the EXP field encoding is consistent with the EXP field in the PE head node. In this way, the color information of the message is transmitted to the next P node or the PE tail node.
可选地,在P节点根据映射的PHB进行流量的两级调度控制之后,报文经过P节点的转发被发送到PE尾节点,PE尾节点根据接收到的报文的内层标签映射PHB;PE尾节点在用户侧AC接口根据映射的PHB对报文进行HQoS的流量拥塞控制。Optionally, after the P node performs two-level scheduling control of the traffic according to the mapped PHB, the packet is forwarded to the PE tail node by the P node, and the PE tail node maps the PHB according to the inner label of the received packet; The PE tail node performs HQoS traffic congestion control on the packet on the user-side AC interface according to the mapped PHB.
可选地,PE首节点或P节点根据下表1所示的规则进行编码/映射,对于EXP,PE首节点进行编码,P节点既进行映射也进行编码,末节点只进行解码。其中,第二字段中的“0”表示报文在进入PE首节点的虚链路中是承诺带宽外的虚拟专用网业务报文、或者表示报文的报文颜色信息为黄色;第二字段中的“1”表示报文在进入PE首节点的虚链路中是承诺带宽内的虚拟专用网业务报文、或者表示报文的报文颜色信息为绿色。Optionally, the PE head node or the P node performs coding/mapping according to the rules shown in Table 1 below. For the EXP, the PE head node encodes, the P node performs mapping and coding, and the last node only performs decoding. The "0" in the second field indicates that the packet is a virtual private network service packet outside the committed bandwidth or the packet color information of the packet is yellow in the virtual link that enters the first node of the PE. The value of "1" indicates that the packet is a virtual private network service packet in the promised bandwidth or the packet color information indicating the packet is green in the virtual link that enters the first node of the PE.
表1Table 1
Figure PCTCN2014089340-appb-000002
Figure PCTCN2014089340-appb-000002
Figure PCTCN2014089340-appb-000003
Figure PCTCN2014089340-appb-000003
其中,确保转发(AF,Assured Forwarding)业务有四种不同的转发等级,AF1,AF2,AF3,AF4分别表示不同的转发等级的确保转发业务,数字越大等级越高。CS是类选择码业务,比快速转发EF业务的转发等级高,一般是信令,网络控制报文是这种级别,其中CS7高于CS6。BE表示尽力而为业务。Among them, the Assured Forwarding (AF) service has four different forwarding levels. AF1, AF2, AF3, and AF4 respectively indicate different forwarding levels to ensure forwarding services. The CS is a class selection code service, which has a higher forwarding level than the fast forwarding EF service, and is generally signaling. The network control message is of this level, and CS7 is higher than CS6. BE means doing its best for business.
此外,还需要说明的是,在表1中示出的编码/映射规则是示例性的,例如,在一些实施例中,也可以将入节点PHB的BE、AF1和AF2业务编码为相同的第一字段,并在P节点中被映射为BE业务;在另一些实施例中,可以采用EXP字段中的2个高bit位编码第一字段,而将1个低bit位编码第二字段,或者采用EXP字段的1个高bit位编码第二字段,而将2个低bit位编码第一字段,或者采用其他的bit位分配形式编码第一字段和第二字段。In addition, it should also be noted that the encoding/mapping rules shown in Table 1 are exemplary. For example, in some embodiments, the BE, AF1, and AF2 services of the ingress PHB may also be encoded as the same. a field, and is mapped to the BE service in the P node; in other embodiments, the first field may be encoded by using 2 high bits in the EXP field, and the second field may be encoded by 1 low bit, or The first field is encoded by using one high bit of the EXP field, and the first field is encoded by the two lower bits, or the first field and the second field are encoded by other bit allocation forms.
本实施例还提供了一种流量拥塞控制装置,位于PE首节点中,该装置用于实现上述流量拥塞控制方法。图3是根据本发明实施例的流量拥塞控制装置的结构示意图,如图3所示,该装置包括:EXP编码模块32和拥塞控制模块34,其中,The embodiment also provides a traffic congestion control device, which is located in the PE head node, and is used to implement the foregoing traffic congestion control method. FIG. 3 is a schematic structural diagram of a traffic congestion control apparatus according to an embodiment of the present invention. As shown in FIG. 3, the apparatus includes: an EXP encoding module 32 and a congestion control module 34, where
EXP编码模块32设置成:根据报文的入节点PHB的服务类型和报文颜色信息,编码报文的外层标签的EXP字段,其中,EXP字段包括:用于标识报文的服务类型的第一字段、和用于标识报文在进入PE首节点的虚链路中是否为承诺带宽内的虚拟专用网业务报文的第二字段;The EXP encoding module 32 is configured to: encode an EXP field of an outer label of the packet according to the service type and the packet color information of the inbound PHB of the packet, where the EXP field includes: a service type for identifying the packet. a field, and a second field for identifying a virtual private network service message in the committed bandwidth in the virtual link entering the PE head node;
拥塞控制模块34耦合至EXP编码模块32,设置成:根据入节点PHB进行流量拥塞控制。The congestion control module 34 is coupled to the EXP encoding module 32 and is configured to perform traffic congestion control based on the ingress node PHB.
可选地,拥塞控制模块34包括:第一级调度控制单元342,设置成:根 据入节点PHB进行在第一级调度控制过程中至少执行端口调度、隧道调度、虚链路调度和流级调度,其中,端口调度用于保证多个端口流量之间互不干扰,隧道调度用于保证端口内的多个隧道的流量控制,虚链路调度用于保证虚链路内多个虚链路的流量控制,流级调度用于保证虚链路所承载的隧道内不同服务类型的业务所要执行的调度转发需求。Optionally, the congestion control module 34 includes: a first level scheduling control unit 342, configured to: root According to the ingress node PHB, at least port scheduling, tunnel scheduling, virtual link scheduling, and flow level scheduling are performed in the first-level scheduling control process, wherein port scheduling is used to ensure that traffic of multiple ports does not interfere with each other, and tunnel scheduling is used. To ensure traffic control of multiple tunnels in a port, virtual link scheduling is used to ensure traffic control of multiple virtual links in a virtual link. Flow-level scheduling is used to ensure different service types in a tunnel carried by a virtual link. The scheduling forwarding requirements to be performed by the business.
可选地,拥塞控制模块34还包括:第二级调度控制单元344,第二级调度控制单元344耦合至第一级调度控制单元342,设置成:在报文的包头封装处理过程中,根据入节点PHB进行在第二级调度控制过程中优先转发服务类型的转发优先级较高的报文。Optionally, the congestion control module 34 further includes: a second level scheduling control unit 344, the second level scheduling control unit 344 is coupled to the first level scheduling control unit 342, configured to: during the packet header encapsulation process of the message, according to The ingress-based PHB performs preferential forwarding of packets with a higher forwarding priority of the service type in the second-level scheduling control process.
本实施例还提供了另一种流量拥塞控制装置,该装置位于P节点中,也用于实现上述流量拥塞控制方法。This embodiment further provides another traffic congestion control device, which is located in the P node, and is also used to implement the above traffic congestion control method.
图4是根据本发明实施例的另一流量拥塞控制装置的结构示意图,如图4所示,该装置包括:PHB映射模块42和拥塞控制模块44,其中,FIG. 4 is a schematic structural diagram of another traffic congestion control apparatus according to an embodiment of the present invention. As shown in FIG. 4, the apparatus includes: a PHB mapping module 42 and a congestion control module 44, where
PHB映射模块42设置成:根据P节点接收的报文的EXP字段映射PHB,其中,EXP字段包括:用于标识报文的服务类型的第一字段、和用于标识报文在进入PE首节点的虚链路中是否为承诺带宽内的虚拟专用网业务报文的第二字段;其中,第一字段被映射为PHB的服务类型,第二字段被映射为报文颜色信息,第二字段被标识为在承诺带宽内的报文被映射绿色,第二字段被标识为在承诺带宽外的报文被映射为黄色;The PHB mapping module 42 is configured to: map the PHB according to the EXP field of the packet received by the P node, where the EXP field includes: a first field for identifying a service type of the packet, and an identifier for entering the PE head node Whether the virtual link is the second field of the virtual private network service packet in the committed bandwidth; wherein the first field is mapped to the PHB service type, the second field is mapped to the packet color information, and the second field is mapped The message identified as being within the committed bandwidth is mapped green, and the second field is identified as the message outside the committed bandwidth is mapped to yellow;
拥塞控制模块44耦合至PHB映射模块42,设置成:根据映射的PHB进行流量的两级调度控制,其中,第一级调度控制用于控制带宽,第二级调度控制用于控制报文的优先转发。The congestion control module 44 is coupled to the PHB mapping module 42 and configured to: perform two-level scheduling control of traffic according to the mapped PHB, wherein the first level scheduling control is used to control bandwidth, and the second level scheduling control is used to control packet priority. Forward.
可选地,拥塞控制模块44包括:Optionally, the congestion control module 44 includes:
第一级调度控制队列控制单元442,设置成:将P节点接收到的报文根据映射的报文颜色信息、并等同于一个有序聚合体(OA),加入同一个有序调度队列;The first-level scheduling control queue control unit 442 is configured to: add the packet received by the P-node to the same ordered scheduling queue according to the mapped packet color information and equal to an ordered aggregate (OA);
第一级调度控制报文丢弃单元444,耦合至第一级调度控制队列控制单元442,设置成:在对流量进行拥塞控制的情况下,优先丢弃有序调度队列 中报文颜色信息为黄色的报文。The first-level scheduling control packet discarding unit 444 is coupled to the first-level scheduling control queue control unit 442, and configured to preferentially discard the ordered scheduling queue when congestion control is performed on the traffic. The color information of the medium message is yellow.
可选地,第一级调度控制报文丢弃单元444根据加权随机先期检测的队列拥塞丢弃策略,优先丢弃有序调度队列中报文颜色信息为黄色的报文。Optionally, the first-level scheduling control packet discarding unit 444 preferentially discards the packet color information of the ordered scheduling queue as yellow according to the queue congestion discarding policy of the weighted random pre-detection.
可选地,拥塞控制模块44还包括:Optionally, the congestion control module 44 further includes:
第二级调度控制EXP编码单元446,设置成:根据报文映射的PHB的服务类型和报文颜色信息,编码报文的外层标签的EXP字段,其中,该EXP字段包括:用于标识报文的服务类型的第一字段、和用于标识报文的报文颜色信息的第二字段;The second level scheduling control EXP encoding unit 446 is configured to: encode an EXP field of an outer label of the packet according to the service type and the packet color information of the PHB of the packet mapping, where the EXP field includes: a first field of the service type of the text, and a second field of the message color information for identifying the message;
第二级调度控制报文转发单元448,耦合至第二级调度控制EXP编码单元446,设置成:根据报文映射的服务类型,对报文进行转发优先级控制。The second level scheduling control message forwarding unit 448 is coupled to the second level scheduling control EXP encoding unit 446, and configured to: perform forwarding priority control on the message according to the service type of the message mapping.
需要说明的是本发明的实施例中所涉及到的模块、单元可以通过软件的方式实现,也可以通过硬件的方式来实现。本实施例中的所描述的模块、单元也可以设置在处理器中,例如,可以描述为:一种流量拥塞控制装置包括处理器,该处理器包括PHB映射模块42和拥塞控制模块44。其中,这些模块的名称在某种情况下并不构成对该模块本身的限定,例如,PHB映射模块42还可以被描述为“用于根据P节点接收的报文的EXP字段映射PHB的模块”。It should be noted that the modules and units involved in the embodiments of the present invention may be implemented by software or by hardware. The described modules and units in this embodiment may also be disposed in a processor. For example, it may be described that a traffic congestion control apparatus includes a processor including a PHB mapping module 42 and a congestion control module 44. The name of these modules does not constitute a limitation on the module itself in some cases. For example, the PHB mapping module 42 may also be described as "a module for mapping a PHB according to an EXP field of a message received by a P node" .
本实施例还提供了一种单板,该单板应用于PE首节点中,用于实现上述流量拥塞控制方法。该单板包括EXP编码芯片和缓存器,其中:The embodiment further provides a board, which is applied to the PE head node, and is used to implement the foregoing traffic congestion control method. The board includes an EXP encoding chip and a buffer, wherein:
EXP编码芯片设置成:根据报文的入节点PHB的服务类型和报文颜色信息,编码报文的外层标签的EXP字段,其中,EXP字段包括:用于标识报文的服务类型的第一字段、和用于标识报文在进入PE首节点的虚链路中是否为承诺带宽内的虚拟专用网业务报文的第二字段;The EXP encoding chip is configured to: according to the service type and the packet color information of the inbound PHB of the packet, the EXP field of the outer label of the encoded message, where the EXP field includes: the first service type used to identify the packet. a field, and a second field for identifying a virtual private network service message in the committed bandwidth in the virtual link entering the PE head node;
缓存器,耦合至EXP编码芯片设置成:缓存被EXP编码芯片编码后的报文。The buffer is coupled to the EXP encoding chip and configured to: buffer the message encoded by the EXP encoding chip.
可选地,该单板还包括:调度器,耦合至缓存器,该调度器设置成:根据入节点PHB进行在第一级调度控制过程中至少执行端口调度、隧道调度、虚链路调度和流级调度,其中,端口调度用于保证多个端口流量之间互不干 扰,隧道调度用于保证端口内的多个隧道的流量控制,虚链路调度用于保证虚链路内多个虚链路的流量控制,流级调度用于保证虚链路所承载的隧道内不同服务类型的业务所要执行的调度转发需求。Optionally, the board further includes: a scheduler coupled to the buffer, where the scheduler is configured to perform at least port scheduling, tunnel scheduling, virtual link scheduling, and at least in the first level scheduling control process according to the ingress node PHB. Flow-level scheduling, where port scheduling is used to ensure that traffic on multiple ports does not interfere with each other. The tunneling is used to ensure the traffic control of multiple tunnels in the port. The virtual link scheduling is used to ensure the traffic control of multiple virtual links in the virtual link. The flow-level scheduling is used to ensure the tunnels carried by the virtual link. Scheduling forwarding requirements to be performed by different service types of services.
可选地,上述调度器,还设置成:在报文的包头封装处理过程中,根据入节点PHB进行在第二级调度控制过程中优先转发服务类型的转发优先级较高的报文。Optionally, the scheduler is further configured to: during the packet header encapsulation process of the packet, preferentially forward the packet with a higher forwarding priority of the service type in the second-level scheduling control process according to the PHB of the ingress node.
本实施例还提供了另一种单板,该单板应用于中间节点(即P节点)中,用于实现上述流量拥塞控制方法。该单板包括:处理器和调度器,其中:This embodiment further provides another board, which is applied to an intermediate node (ie, a P node) for implementing the foregoing traffic congestion control method. The board includes: a processor and a scheduler, where:
处理器设置成:根据中间节点接收的报文的EXP字段映射PHB,其中,EXP字段包括:用于标识报文的服务类型的第一字段、和用于标识报文在进入PE首节点的虚链路中是否为承诺带宽内的虚拟专用网业务报文的第二字段;其中,第一字段被映射为PHB的服务类型,第二字段被映射为报文颜色信息,第二字段被标识为在承诺带宽内的报文被映射绿色,第二字段被标识为在承诺带宽外的报文被映射为黄色;The processor is configured to: map the PHB according to the EXP field of the packet received by the intermediate node, where the EXP field includes: a first field for identifying the service type of the packet, and a virtual field for identifying the packet entering the first node of the PE Whether the second field of the virtual private network service packet in the committed bandwidth is in the link; wherein the first field is mapped to the PHB service type, the second field is mapped to the packet color information, and the second field is identified as The message within the committed bandwidth is mapped green, and the second field is identified as the message outside the committed bandwidth is mapped to yellow;
调度器,耦合至处理器,设置成:根据映射的PHB进行流量的两级调度控制,其中,第一级调度控制用于控制带宽,第二级调度控制用于控制报文的优先转发。The scheduler is coupled to the processor and configured to: perform two-stage scheduling control of the traffic according to the mapped PHB, where the first-level scheduling control is used to control the bandwidth, and the second-level scheduling control is used to control the preferential forwarding of the packet.
为了使本发明的技术方案和实现方法更加清楚,下面将结合可选的实施例对其实现过程进行详细描述。In order to make the technical solutions and implementation methods of the present invention clearer, the implementation process will be described in detail below in conjunction with the optional embodiments.
本可选实施例提供了一种MPLS网络E-LSP端到端QOS的的方法和装置,涉及多协议标签交换(Multi-Protocol Label Switching,简称为MPLS)网络隧道端到端的服务质量(Quality of Service,简称为QoS)技术领域,尤其涉及采用基于EXP的标签交换路径(EXP-Label Switch Path,简称为E-LSP)隧道模型时端到端的QoS保证技术。The present invention provides an MPLS network E-LSP end-to-end QOS method and apparatus, and relates to multi-protocol label switching (MPLS) network tunnel end-to-end quality of service (Quality of Service (referred to as QoS) technical field, especially the end-to-end QoS guarantee technology when using the EXP-Label Switch Path (E-LSP) tunnel model.
为了克服相关技术中存在的无法端到端保证VPN的QoS问题和缺陷,本可选实施例提供的一种基于E-LSP模型下端到端QoS保证的方法和装置采用以下技术方案:In order to overcome the QoS problem and the defect that the end-to-end guarantee VPN is not available in the related art, the method and apparatus for the end-to-end QoS guarantee based on the E-LSP model provided by the alternative embodiment adopt the following technical solutions:
一种基于E-LSP模型下端到端QoS保证的方案包括: An end-to-end QoS guarantee based on the E-LSP model includes:
步骤1,PE首节点和P节点对E-LSP的EXP字段编码采用定制编码;Step 1: The PE first node and the P node use a custom code for the EXP field encoding of the E-LSP.
步骤2,P节点入节点(INGRESS)侧根据步骤1中的定制编码规则识别报文丢弃等级;Step 2: The P node ingress node (INGRESS) side identifies the packet discarding level according to the custom encoding rule in step 1.
步骤3,P节点隧道业务流按照一个有序聚合体(Ordered Aggregate,简称为OA)对待,队列拥塞策略配置为黄色报文在拥塞时部分/全部丢弃。Step 3: The P-node tunnel service flow is treated according to an ordered aggregate (Ordered Aggregate, OA for short), and the queue congestion policy is configured to partially/all discard yellow packets when they are congested.
其中,P节点报文颜色透传,以便P节点拥塞管理策略执行与首节点着色一致,包不乱序;The color of the P-node packet is transparently transmitted, so that the execution of the P-node congestion management policy is consistent with the coloring of the first node, and the packet is not out of order;
其中,PE首尾节点,P节点严格执行HQOS调度管理。有条件地执行两级调度机制。首尾节点执行第一级调度,其目的既要保证虚链路带宽需求并控制其总流量,又要保证同一个虚链路内部流的调度行为满足业务服务优级转发关系;执行第二级调度是保证优先转发高优先级业务,保证业务时延要求。P节点执行第一级调度,其目的是保证隧道带宽需求并控制其优先转发绿色报文,第二级调度与首尾节点一致。Among them, the PE first and last nodes, the P node strictly performs HQOS scheduling management. Conditionally implement a two-level scheduling mechanism. The first and last nodes perform the first level of scheduling, the purpose of which is to ensure the virtual link bandwidth requirement and control the total traffic, and to ensure that the scheduling behavior of the internal flow of the same virtual link satisfies the superior forwarding relationship of the service service; It is guaranteed to preferentially forward high-priority services and ensure service delay requirements. The P-node performs the first-level scheduling, and the purpose is to ensure the tunnel bandwidth requirement and control the priority to forward the green packet. The second-level scheduling is consistent with the first-to-last node.
本可选实施例的E-LSP端到端的QoS通过E-LSP的EXP字段的某个bit来表示VPN业务报文在隧道内传送的丢弃等级以确保P节点优先转发VPN业务确保带宽部分的流量。The end-to-end QoS of the E-LSP in the optional embodiment indicates the discarding level of the VPN service packet transmitted in the tunnel through a certain bit of the EXP field of the E-LSP to ensure that the P node preferentially forwards the VPN service to ensure the bandwidth portion of the traffic. .
可选地,本可选实施例提供的一种基于E-LSP模型下端到端QoS保证的方法,包括以下步骤:Optionally, the method for ensuring end-to-end QoS guarantee based on the E-LSP model provided by the optional embodiment includes the following steps:
第一步:指定隧道的EXP字段编码(ENCODE)和解码(DECODE)表规则,例如:Step 1: Specify the EXP field encoding (ENCODE) and decoding (DECODE) table rules for the tunnel, for example:
EXP的ENCODE表:任意2位bit表示服务类别,共可表示4种类别:BE、AF、快速转发(Expedited Forwarding,简称为EF)、类选择码(Class Selector,简称为CS);EXP剩余一个bit位表示丢弃等级,共可表示2种丢弃等级:低丢弃等级,高丢弃等级。EXP ENCODE table: any 2 bit indicates the service category, which can represent 4 categories: BE, AF, Expedited Forwarding (EF), Class Selector (CS); EX remaining The bit bit indicates the discard level, which can represent two discard levels: low discard level, high discard level.
EXP的DECODE表:EXP中表示服务等级的2bit映射每跳行为(Per Hop Behavior,简称为PHB)的服务类型(Class of Service,简称为CoS),EXP中表示丢弃等级的bit表示PHB的丢弃优先级。DECODE和ENCODE是可逆的。 The DECODE table of the EXP: the service type (Class of Service, referred to as CoS) of the 2-bit mapping per-hop behavior (PHB) of the service level in the EXP, and the bit indicating the discarding level in the EXP indicates the discarding priority of the PHB. level. DECODE and ENCODE are reversible.
第二步:INGRESS侧PE首节点处理规则:The second step: the first node processing rule of the INGRESS side PE:
PE首节点第一级调度器至少执行端口,隧道,伪线,流级4级HQoS调度。端口调度是为了确保多个端口流量之间互不干扰;隧道调度是为了确保端口内各个隧道流控;伪线调度是为了确保隧道内个伪线流控,伪线带宽为VPN业务在MPLS网络传送的带宽;流级调度是为了满足伪线所承载VPN内不同服务等级业务所要执行的调度转发需求。The first-stage scheduler of the PE head node performs at least port, tunnel, pseudowire, and flow level 4-level HQoS scheduling. The port scheduling is to ensure that the traffic of multiple ports does not interfere with each other; the tunnel scheduling is to ensure the flow control of each tunnel in the port; the pseudowire scheduling is to ensure the flow control of the pseudowire in the tunnel, and the bandwidth of the pseudowire is the VPN service in the MPLS network. The bandwidth to be transmitted; the flow level scheduling is to meet the scheduling and forwarding requirements of different service level services in the VPN carried by the pseudowire.
PE首节点第二级调度目的之一是为了报文在ENGRESS侧完成包头封装等处理后,可以优先转发高优先级业务。One of the purposes of the second-level scheduling of the PE first-node is to preferentially forward high-priority services after the packet is encapsulated on the ENGRESS side.
PE首节点两级调度机制确保了VPN业务对带宽,时延,抖动的要求。The two-stage scheduling mechanism of the PE first node ensures the bandwidth, delay, and jitter requirements of the VPN service.
PHB到EXP的映射按照上述ENCODE的编码方式映射,共可承载上述所示4种服务等级;流量在伪线(即虚链路)承诺带宽(CIR)内的VPN业务报文,映射到隧道EXP的低丢弃等级,否则,映射到隧道EXP的高丢弃等级。The mapping from PHB to EXP is mapped according to the encoding method of the above ENCODE, and can carry the above four service levels; the VPN service packet whose traffic is in the pseudowire (ie virtual link) committed bandwidth (CIR) is mapped to the tunnel EXP. Low drop level, otherwise, mapped to the high drop level of the tunnel EXP.
第三步:P节点根据第一步所示的编码/解码表进行解码。共支持4种服务等级:BE、AF、EF、CS和2种丢弃等级。在采用分层QoS(HQoS)的情况下,一级调度控制带宽,并把隧道承载业务等同一个OA,进入一个有序队列;配置此队列拥塞丢弃策略使得黄色报文一旦拥塞立即丢弃。二级调度控制转发优先级,保证高优先级业务优先转发。通过HQoS不仅能够保证不同隧道的带宽,同时也能够实现对每个隧道中不同业务的QoS。The third step: the P node decodes according to the encoding/decoding table shown in the first step. A total of four service levels are supported: BE, AF, EF, CS, and 2 drop levels. In the case of hierarchical QoS (HQoS), the first-level scheduling controls the bandwidth, and the tunnel bearer service is equivalent to one OA, and enters an ordered queue. The congestion and discarding policy is configured to cause the yellow packet to be discarded immediately after congestion. The secondary scheduling controls the forwarding priority to ensure that the high-priority services are preferentially forwarded. Through HQoS, not only the bandwidth of different tunnels but also the QoS of different services in each tunnel can be realized.
其中,P节点EXP编码中颜色标记bit位透传,不再重新编码,以便下一个P节点执行拥塞策略控制确保黄色报文为首节点EIR带宽内的流量报文。The color-coded bit in the P-block EXP code is transparently transmitted and is not re-encoded, so that the next P-node performs congestion policy control to ensure that the yellow packet is a traffic packet in the EIR bandwidth of the first node.
第四步:PE尾节点处理规则:PHB映射不再关注隧道管道模式,统一以最内层标签中的EXP映射PHB。为了保证端到端QoS,QoS控制一直作用到下行AC(VPN接入控制接口)出口。The fourth step: PE tail node processing rule: PHB mapping no longer pays attention to the tunnel pipeline mode, and uniformly maps the PHB with the EXP in the innermost label. To ensure end-to-end QoS, QoS control always acts on the downstream AC (VPN Access Control Interface) exit.
采用本可选实施例的方法或基于该方法的装置、系统,与相关技术相比,其适应性广泛,可以对采用E-LSP技术的MPLS网络保证每VPN的端到端的QoS能力,提高了系统适用性和实用性。Compared with the related technologies, the method of the alternative embodiment or the device and system based on the method has wide adaptability, and can ensure the end-to-end QoS capability of each VPN for the MPLS network adopting the E-LSP technology, and improves the QoS capability of the VPN. System suitability and usability.
下面结合附图对上述可选实施例进一步进行说明。 The above alternative embodiments will be further described below with reference to the accompanying drawings.
在第一步和第二步中,PE首节点进行HQoS处理,包括:在PE首节点开启第一级调度的HQoS(层次化QoS)功能,设置隧道EXP编码模式为4P4D(4P表示4种优先级服务类,4D表示4种优先级服务类的丢弃类别),如表1所示。其调度树结构如图5所示,伪线,隧道,端口执行严格CAC校验。伪线内各个服务等级的流根据流调度策略进行调度,以满足业务流特性QOS的要求。伪线的调度是为了满足伪线对带宽资源的要求。隧道的调度是为了满足隧道对带宽资源的要求。端口级调度是为了保证各个端口之间流控的公平与公正。按照上述层级模型,从本节点转发的流,伪线内的流优先按照服务等级关系按照PQ策略/WFQ策略/DWRR策略等进行转发,然后针对伪线这个管道整体的流量做一个总的控制。控制方式为优先保证其承诺带宽,然后尽力转发其超额带宽流量。当伪线承载的流到达隧道后,隧道已经对客户业务感知不到了。隧道一级调度确保隧道的承诺带宽得到保证,并尽力转发隧道的超额带宽流量。依次类推。In the first step and the second step, the PE first node performs HQoS processing, including: enabling the HQoS (hierarchical QoS) function of the first level scheduling at the PE head node, and setting the tunnel EXP coding mode to 4P4D (4P indicates 4 types of priority) Level service class, 4D indicates the discarding category of the four priority service classes, as shown in Table 1. Its scheduling tree structure is shown in Figure 5. The pseudowire, tunnel, and port perform strict CAC check. The flows of each service level in the pseudowire are scheduled according to the flow scheduling policy to meet the requirements of the traffic flow characteristic QOS. The pseudowire scheduling is to meet the requirements of the pseudowire pair bandwidth resources. The scheduling of the tunnel is to meet the bandwidth requirements of the tunnel. Port-level scheduling is to ensure fairness and fairness of flow control between ports. According to the above hierarchical model, the flow forwarded from the node, the flow in the pseudowire is preferentially forwarded according to the service level relationship according to the PQ policy/WFQ policy/DWRR policy, and then the overall traffic of the pipeline is pseudo-wired. The control method is to prioritize its guaranteed bandwidth and then try to forward its excess bandwidth traffic. After the flow carried by the pseudowire reaches the tunnel, the tunnel is not aware of the customer service. The tunnel primary scheduling ensures that the promised bandwidth of the tunnel is guaranteed and tries to forward the excess bandwidth traffic of the tunnel. And so on.
在SES一级调度器,开启重新着色,并把颜色携带到网络处理器(NP)。其中,伪线CIR部分报文颜色为绿色,伪线EIR部分报文颜色为黄色。NP封装MPLS E-LSP隧道标签时把颜色打到EXP低bit位,例如,低bit位的0表示报文颜色为黄色,1表示报文颜色为绿色;高2bit按照表1的第一字段编码。At the SES Level 1 scheduler, recoloring is turned on and the color is carried to the Network Processor (NP). The color of the PIR part of the pseudowire is green, and the color of the EIR part of the pseudowire is yellow. When the NP encapsulates the MPLS E-LSP tunnel label, the color is changed to the low bit of the EXP. For example, the low bit 0 indicates that the packet color is yellow, 1 indicates the packet color is green, and the high 2 bit is encoded according to the first field of Table 1. .
第二级调度根据NP芯片调度结构树配置,确保高优先级业务无阻塞优先转发。NP芯片EGRESS侧调度转发示意图如图6所示。芯片内SMS模块只有一个,本实施例中将SMS模块区分为A、B、C三类转发方向,其中:The second-level scheduling is based on the NP chip scheduling tree configuration to ensure that high-priority services are forwarded without blocking priority. Schematic diagram of NP chip EGRESS side scheduling and forwarding is shown in Figure 6. There is only one SMS module in the chip. In this embodiment, the SMS module is divided into three types of forwarding directions: A, B, and C.
SMS A类模块对应TI到SMS模块转发方向。The SMS Class A module corresponds to the forwarding direction of the TI to SMS module.
SMS B类模块对应Pipeline到SMS模块后,SMS实现多播复制方向。After the SMS B-type module corresponds to the Pipeline to SMS module, the SMS implements the multicast replication direction.
SMS C类模块对应Pipeline到SMS模块后,发送到TI(Traffic Interface)接口方向。The SMS C class module is sent to the TI (Traffic Interface) interface direction after the Pipeline to the SMS module.
其中,PT0队列管理采用如下配置:The PT0 queue management adopts the following configurations:
1)512个队列,分成64个队列组,每组8个队列。1) 512 queues, divided into 64 queue groups, each group of 8 queues.
2)每个队列组对应一个Node A,共64个Node A。 2) Each queue group corresponds to one Node A, a total of 64 Node A.
3)16个Node B,Node A到Node B的映射关系可以根据需要任意配置。3) 16 Node Bs, and the mapping relationship between Node A and Node B can be arbitrarily configured as needed.
4)2个tree,Node B到tree的映射关系可以任意配置。4) 2 trees, Node B to tree mapping can be arbitrarily configured.
5)Level A Node对应TI的subport。5) The Level A Node corresponds to the TI subport.
6)Level A Node下挂接8个队列,区分8个优先级。6) 8 queues are connected under the Level A Node to distinguish 8 priority levels.
其中,PT1队列管理采用如下配置:The PT1 queue management adopts the following configurations:
1)128个队列,分成64个队列组,每组2个队列。1) 128 queues, divided into 64 queue groups, each group of 2 queues.
2)每个队列组对应一个node A,64个Node A。2) Each queue group corresponds to one node A, 64 Node A.
3)16个Node B,Node A到Node B的映射关系可以根据需要任意配置。3) 16 Node Bs, and the mapping relationship between Node A and Node B can be arbitrarily configured as needed.
4)2个tree,Node B到tree的映射关系可以任意配置。4) 2 trees, Node B to tree mapping can be arbitrarily configured.
5)Level B node对应PP的subport。5) The Level B node corresponds to the PP subport.
6)Level A node除了对应TI接入,还包括逻辑多播和环回的接入。6) In addition to the TI access, the Level A node also includes logical multicast and loopback access.
7)每个Level A node挂接两个队列,分成高低优先级。7) Each Level A node is connected to two queues and is divided into high and low priorities.
在第三步中,P节点进行HQoS处理过程包括:在P节点上行,根据EXP高2bit位表示行为聚合(Behavior Aggregate,简称为BA),低bit位映射丢弃等级,按照表1解码。并根据隧道唯一性分配一个有序队列。队列拥塞丢弃策略为加权随机先期检测(Weighted Random Early Detection,简称为WRED)。In the third step, the P-node performs the HQoS processing process, including: performing uplink aggregation on the P node, indicating behavior aggregation (Behavior Aggregate, abbreviated as BA) according to the high 2 bit of the EXP, and discarding the low-bit bitmap mapping level according to Table 1. An ordered queue is assigned based on the uniqueness of the tunnel. The queue congestion discarding policy is Weighted Random Early Detection (WRED).
其中,WRED的参数可以配置为:高门限=队列最大允许长度,黄色业务的低门限=高门限/10,黄色业务的高门限=高门限,最大丢弃率=100%。绿色业务的低门限=高门限*0.75,绿色业务的高门限=高门限,最大丢弃率=10%。The WRED parameter can be configured as follows: high threshold = maximum allowable length of the queue, low threshold of the yellow service = high threshold/10, high threshold of the yellow service = high threshold, and maximum discard rate = 100%. The lower threshold of the green service = the high threshold * 0.75, the high threshold of the green service = the high threshold, and the maximum discard rate = 10%.
在P节点中,一级调度由调度管理芯片(SA)完成,其调度树如图7所示。二级调度由NP完成,NP按照8个服务等级执行严格优先级(SP)调度。P节点下行封装高2bit同PE首节点,低bit复制上行EXP低bit位。In the P node, the primary scheduling is performed by the scheduling management chip (SA), and its scheduling tree is as shown in FIG. The secondary scheduling is done by the NP, which performs strict priority (SP) scheduling in accordance with 8 service levels. The P-node downlink encapsulates the high 2-bit and the PE first node, and the low-bit replicates the uplink EXP low-bit.
在第四步中,PE尾节点进行HQoS处理过程包括:在PE尾节点,若是层二(L2)VPN,则根据PW标签的EXP映射PHB;若是层三(L3)VPN,则根据VPN路由选择转发(VRF)标签的EXP映射PHB。为了防止多个VPN 汇聚到一个端口后,由于其中不同路由方向局部VPN的流量突发可能导致其他VPN带宽得不到保证,因此需要启动用户侧(U侧)AC接口的HQoS控制,其调度树结构如图8所示。由于一个AC接口只容许绑定一个VPN,因此,控制AC接口总流量就相当于控制VPN业务终结报文总流量。图8中sub-port调度器就表示AC接口一级调度。该调度器下挂流级调度器,流级调度器目的是满足VPN业务服务等级需要执行用户调度策略,优先转发高优先级业务。sub-port调度器优先转发CIR部分流量,若端口带宽足够再转发EIR部分流量。每个AC占用一个sub-port调度器,保证每VPN业务突发不抢占其他VPN保证带宽。对于L2LINE业务,sub-port调度器CIR根据伪线带宽折算(比如若sub-port链路是以太网链路,则根据伪线带宽扣除N侧封装再加上U侧封装计算总带宽);若是LAN/TREE业务,则需要用户配置AC接口带宽。对于L3VPN,由于上下行路由动态静态都有,因此,在AC终结流量无法准确预估,这需要用户根据组网规划,手动设置AC接口带宽,默认全速转发。In the fourth step, the PE tail processing process of the PE tail node includes: at the PE tail node, if the layer 2 (L2) VPN, the PHB is mapped according to the EXP of the PW label; if the layer 3 (L3) VPN, according to the VPN routing Forwarding (VRF) tag EXP mapping PHB. In order to prevent multiple VPNs After the aggregation to a port, the traffic of the local VPN in different routing directions may cause other VPN bandwidths to be unguaranteed. Therefore, the HQoS control of the AC interface on the user side (U side) needs to be started. The scheduling tree structure is shown in Figure 8. Show. Since an AC interface can only be bound to one VPN, controlling the total traffic of the AC interface is equivalent to controlling the total traffic of the VPN service termination packet. The sub-port scheduler in Figure 8 represents the AC interface level 1 scheduling. The flow-level scheduler is connected to the scheduler. The flow-level scheduler is configured to implement the user scheduling policy and preferentially forward the high-priority service. The sub-port scheduler forwards the CIR part traffic preferentially, and forwards the EIR part of the traffic if the port bandwidth is sufficient. Each AC occupies a sub-port scheduler to ensure that each VPN service burst does not preempt other VPN guaranteed bandwidth. For the L2LINE service, the sub-port scheduler CIR is converted according to the pseudowire bandwidth (for example, if the sub-port link is an Ethernet link, the total bandwidth is calculated according to the pseudo-line bandwidth minus the N-side encapsulation plus the U-side encapsulation); For LAN/TREE services, you need to configure the AC interface bandwidth. For the L3VPN, the upstream and downstream routes are dynamic and static. Therefore, the traffic on the AC cannot be accurately estimated. This requires the user to manually set the bandwidth of the AC interface according to the networking plan. By default, the traffic is forwarded at full speed.
综上所述,通过本发明的上述实施例,将相应的VPN信息封装在MPLS报文的外层标签中,从而解决了相关技术中在多虚拟专用网业务复用隧道的情况下由于P节点无法解析到VPN信息从而无法保证端到端服务质量的问题,保证了多VPN业务复用隧道的端到端QoS控制。In summary, the foregoing embodiment of the present invention encapsulates the corresponding VPN information in the outer label of the MPLS packet, thereby solving the P-node in the case of multiplexing the multi-virtual private network service in the related art. The problem that the VPN information cannot be resolved and the end-to-end quality of service cannot be guaranteed ensures the end-to-end QoS control of the multi-VPN service multiplexing tunnel.
显然,本领域的技术人员应该明白,上述的本发明的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本发明不限制于任何特定的硬件和软件结合。It will be apparent to those skilled in the art that the various modules or steps of the present invention described above can be implemented by a general-purpose computing device that can be centralized on a single computing device or distributed across a network of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device, such that they may be stored in a storage device by a computing device, or they may be fabricated into individual integrated circuit modules, or Multiple modules or steps are made into a single integrated circuit module. Thus, the invention is not limited to any specific combination of hardware and software.
以上仅为本发明的可选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。 The above is only an alternative embodiment of the present invention, and is not intended to limit the present invention, and various modifications and changes can be made to the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and scope of the present invention are intended to be included within the scope of the present invention.
工业实用性Industrial applicability
上述技术方案采用PE首节点根据报文的入节点PHB的服务类型和报文颜色信息,编码报文的外层标签的EXP字段,其中,EXP字段包括用于标识报文的服务类型的第一字段和用于标识报文在进入PE首节点的虚链路中是否为承诺带宽内的虚拟专用网业务报文的第二字段;PE首节点根据入节点PHB进行流量拥塞控制的方式,解决了相关技术基于E-LSP的MPLS网络中,在多VPN业务复用隧道的情况下由于P节点无法解析到VPN信息而导致的端到端QoS控制无法实现的问题,保证了多VPN业务复用隧道的端到端QoS控制。因此本发明具有很强的工业实用性。 The foregoing technical solution uses the PE head node to encode the EXP field of the outer label of the packet according to the service type and the packet color information of the ingress PHB of the packet, where the EXP field includes the first service type for identifying the packet. The field is used to identify whether the packet is the second field of the virtual private network service packet in the committed bandwidth in the virtual link that enters the PE head node; the PE first node solves the traffic congestion control according to the ingress node PHB. The related art is based on the E-LSP MPLS network. In the case of multi-VPN service multiplexing tunnel, the end-to-end QoS control cannot be realized because the P-node cannot resolve the VPN information, and the multi-VPN service multiplexing tunnel is guaranteed. End-to-end QoS control. Therefore, the present invention has strong industrial applicability.

Claims (22)

  1. 一种外层标签编码方法,包括:An outer label encoding method comprising:
    运营商边缘路由器PE首节点根据报文的每跳转发行为PHB的服务类型和进行流量拥塞控制后的报文颜色信息,编码所述报文的外层标签的EXP字段;The operator's edge router, the PE head node, encodes the EXP field of the outer label of the packet according to the service type of the PHB and the packet color information after the traffic congestion control is performed.
    其中,所述EXP字段包括:用于标识所述报文的服务类型的第一字段、和用于标识所述报文在进入所述PE首节点的虚链路中是否为承诺带宽内的虚拟专用网业务报文的第二字段。The EXP field includes: a first field that is used to identify the service type of the packet, and a virtual field in the virtual link that is used to identify the packet in the virtual link that enters the PE head node. The second field of the private network service message.
  2. 根据权利要求1所述的外层标签编码方法,其中,在所述PE首节点编码所述EXP字段之前,所述方法还包括:The outer label encoding method according to claim 1, wherein before the PE head node encodes the EXP field, the method further comprises:
    所述PE首节点根据入节点PHB进行流量拥塞控制;The PE head node performs traffic congestion control according to the PHB of the ingress node;
    所述PE首节点根据入节点PHB进行流量拥塞控制的步骤包括:The step of the PE head node performing traffic congestion control according to the ingress node PHB includes:
    所述PE首节点根据所述入节点PHB进行第一级调度控制,在第一级调度控制过程中至少执行端口调度、隧道调度、虚链路调度和流级调度,其中,所述端口调度用于保证多个端口流量之间互不干扰,所述隧道调度用于保证端口内多个隧道的流量控制,所述虚链路调度用于保证隧道内多个虚链路的流量控制,所述流级调度用于保证虚链路所承载的虚链路内不同服务类型的业务所要执行的调度转发需求。The PE head node performs first-level scheduling control according to the PHB of the ingress node, and performs at least port scheduling, tunnel scheduling, virtual link scheduling, and flow level scheduling in the first-level scheduling control process, where the port scheduling is performed. To ensure that the traffic of the multiple ports is not interfered with each other, the tunnel scheduling is used to ensure the traffic control of multiple tunnels in the port, and the virtual link scheduling is used to ensure the traffic control of multiple virtual links in the tunnel. The flow-level scheduling is used to ensure the scheduling and forwarding requirements of services of different service types in the virtual link carried by the virtual link.
  3. 根据权利要求2所述的外层标签编码方法,其中,所述PE首节点根据入节点PHB进行流量拥塞控制的步骤还包括:The outer label encoding method according to claim 2, wherein the step of the PE head node performing traffic congestion control according to the ingress node PHB further comprises:
    所述PE首节点在报文的包头封装处理过程中,根据所述入节点PHB进行第二级调度控制,在第二级调度控制过程中优先转发服务类型的转发优先级较高的报文。The PE head node performs the second-level scheduling control according to the PHB of the ingress node during the packet header encapsulation process of the packet, and preferentially forwards the packet with the higher forwarding priority of the service type in the second-level scheduling control process.
  4. 根据权利要求2所述的外层标签编码方法,其中,在所述PE首节点编码所述报文的外层标签的EXP字段的步骤之后,所述方法还包括:The outer tag encoding method according to claim 2, wherein after the step of the PE header encoding the EXP field of the outer label of the packet, the method further comprises:
    中间节点根据接收到的报文的所述EXP字段映射PHB,其中,所述第一字段被映射为PHB的服务类型,所述第二字段被映射为报文颜色信息,其中,在映射所述第二字段时,在承诺带宽内的报文被映射绿色,在承诺带宽外的报文被映射为黄色; The intermediate node maps the PHB according to the EXP field of the received message, where the first field is mapped to a service type of the PHB, and the second field is mapped to message color information, where In the second field, the packets in the committed bandwidth are mapped green, and the packets outside the committed bandwidth are mapped to yellow.
    所述中间节点根据映射的PHB进行流量的第一级调度控制和第二级调度控制,其中,第一级调度控制用于控制带宽,第二级调度控制用于控制报文的优先转发。The intermediate node performs the first-level scheduling control and the second-level scheduling control of the traffic according to the mapped PHB, where the first-level scheduling control is used to control the bandwidth, and the second-level scheduling control is used to control the preferential forwarding of the packet.
  5. 根据权利要求4所述的外层标签编码方法,其中,所述中间节点根据映射的PHB进行流量的所述第一级调度控制的步骤包括:The outer label encoding method according to claim 4, wherein the step of the intermediate node performing the first level scheduling control of the traffic according to the mapped PHB comprises:
    所述中间节点将接收到的报文等同于一个有序聚合体OA,根据映射的报文颜色信息将接收到的报文加入同一个有序调度队列;The intermediate node equates the received packet with an ordered aggregate OA, and adds the received packet to the same ordered scheduling queue according to the mapped packet color information.
    所述中间节点在对流量进行拥塞控制的情况下,优先丢弃所述有序调度队列中报文颜色信息为黄色的报文。The intermediate node preferentially discards the packet whose color information is yellow in the ordered scheduling queue when congestion control is performed on the traffic.
  6. 根据权利要求5所述的外层标签编码方法,其中,所述中间节点优先丢弃所述有序调度队列中报文颜色信息为黄色的报文的步骤包括:The outer label encoding method according to claim 5, wherein the step of the intermediate node preferentially discarding the packet color information in the ordered scheduling queue is yellow:
    所述中间节点根据加权随机先期检测的队列拥塞丢弃策略,优先丢弃所述有序调度队列中报文颜色信息为黄色的报文。The intermediate node preferentially discards the packet whose color information is yellow in the ordered scheduling queue according to the queue congestion discarding policy of the weighted random pre-detection.
  7. 根据权利要求4所述的外层标签编码方法,其中,所述中间节点根据映射的PHB进行流量的所述第二级调度控制的步骤包括:The outer tag encoding method according to claim 4, wherein the step of the intermediate node performing the second-level scheduling control of the traffic according to the mapped PHB comprises:
    所述中间节点根据报文映射的PHB的服务类型和报文颜色信息,编码接收到的报文的外层标签的EXP字段,其中,该EXP字段包括:用于标识所述报文的服务类型的第一字段、和用于标识所述报文的报文颜色信息的第二字段;The intermediate node encodes an EXP field of the outer label of the received packet according to the service type and the packet color information of the PHB of the packet, where the EXP field includes: a service type for identifying the packet. a first field, and a second field for identifying message color information of the message;
    所述中间节点根据报文映射的服务类型,对报文进行转发优先级控制。The intermediate node performs forwarding priority control on the packet according to the service type of the packet mapping.
  8. 根据权利要求4所述的外层标签编码方法,其中,在所述中间节点根据映射的PHB进行流量的第一级调度控制和第二级调度控制之后,所述方法还包括:The outer label encoding method according to claim 4, wherein after the intermediate node performs the first level scheduling control and the second level scheduling control of the traffic according to the mapped PHB, the method further includes:
    PE尾节点根据接收到的报文的内层标签映射PHB;The PE tail node maps the PHB according to the inner label of the received packet;
    所述PE尾节点在用户侧AC接口根据映射的PHB对报文进行HQoS的流量拥塞控制。The PE tail node performs HQoS traffic congestion control on the packet on the user-side AC interface according to the mapped PHB.
  9. 根据权利要求1至8中任一项所述的外层标签编码方法,其中, The outer label encoding method according to any one of claims 1 to 8, wherein
    所述PE首节点或中间节点根据下列规则进行编码或映射:The PE head node or intermediate node is coded or mapped according to the following rules:
    Figure PCTCN2014089340-appb-100001
    Figure PCTCN2014089340-appb-100001
    其中,所述第二字段中的“0”表示报文在进入所述PE首节点的虚链路中是承诺带宽外的虚拟专用网业务报文、或者表示报文的报文颜色信息为黄色;所述第二字段中的“1”表示报文在进入所述PE首节点的虚链路中是承诺带宽内的虚拟专用网业务报文、或者表示报文的报文颜色信息为绿色。The "0" in the second field indicates that the packet is a virtual private network service packet outside the committed bandwidth or the packet color information of the packet is yellow in the virtual link that enters the first node of the PE. The "1" in the second field indicates that the packet is a virtual private network service packet in the promised bandwidth or the packet color information indicating the packet is green in the virtual link entering the first node of the PE.
  10. 一种外层标签编码装置,位于运营商边缘路由器PE首节点中,包括EXP编码模块,其中:An outer label encoding device is located in a first node of a carrier edge router PE, and includes an EXP encoding module, where:
    所述EXP编码模块设置成:根据报文的每跳转发行为PHB的服务类型和进行流量拥塞控制后的报文颜色信息,编码所述报文的外层标签的EXP字段,其中,所述EXP字段包括:用于标识所述报文的服务类型的第一字段、和用于标识所述报文在进入所述PE首节点的虚链路中是否为承诺带宽内的虚拟专用网业务报文的第二字段。 The EXP encoding module is configured to: encode an EXP field of an outer label of the packet according to a service type of the PHB and a packet color information after the traffic congestion control is performed, and the The EXP field includes: a first field for identifying a service type of the packet, and a virtual private network service report for identifying whether the packet is a committed bandwidth in a virtual link entering the PE head node. The second field of the text.
  11. 根据权利要求10所述的外层标签编码装置,所述装置还包括拥塞控制模块,其中:The outer tag encoding apparatus according to claim 10, said apparatus further comprising a congestion control module, wherein:
    所述拥塞控制模块设置成:根据入节点PHB进行流量拥塞控制;所述拥塞控制模块包括第一级调度控制单元,其中:The congestion control module is configured to: perform traffic congestion control according to the ingress node PHB; the congestion control module includes a first level scheduling control unit, where:
    所述第一级调度控制单元设置成:根据所述入节点PHB进行第一级调度控制,在第一级调度控制过程中至少执行端口调度、隧道调度、虚链路调度和流级调度,其中,所述端口调度用于保证多个端口流量之间互不干扰,所述隧道调度用于保证端口内的多个隧道的流量控制,所述虚链路调度用于保证虚链路内多个虚链路的流量控制,所述流级调度用于保证虚链路所承载的隧道内不同服务类型的业务所要执行的调度转发需求。The first-level scheduling control unit is configured to: perform first-level scheduling control according to the ingress node PHB, and perform at least port scheduling, tunnel scheduling, virtual link scheduling, and flow-level scheduling in the first-level scheduling control process, where The port scheduling is used to ensure that traffic of multiple ports does not interfere with each other. The tunnel scheduling is used to ensure traffic control of multiple tunnels in a port, and the virtual link scheduling is used to ensure multiple virtual links. The traffic control of the virtual link is used to ensure the scheduling and forwarding requirements of services of different service types in the tunnel carried by the virtual link.
  12. 根据权利要求11所述的外层标签编码装置,所述拥塞控制模块还包括第二级调度控制单元,其中:The outer tag encoding apparatus according to claim 11, wherein said congestion control module further comprises a second level scheduling control unit, wherein:
    所述第二级调度控制单元设置成:在报文的包头封装处理过程中,根据所述入节点PHB进行第二级调度控制,在第二级调度控制过程中优先转发服务类型的转发优先级较高的报文。The second-level scheduling control unit is configured to perform second-level scheduling control according to the ingress node PHB during the packet header encapsulation process of the packet, and preferentially forward the forwarding priority of the service type in the second-level scheduling control process. Higher message.
  13. 一种流量拥塞控制装置,位于中间节点中,包括每跳转发行为PHB映射模块和拥塞控制模块,其中:A traffic congestion control device is located in an intermediate node, and includes a PHB mapping module and a congestion control module for each jump release, wherein:
    所述每跳转发行为PHB映射模块设置成:根据中间节点接收的报文的EXP字段映射PHB,其中,所述EXP字段包括:用于标识所述报文的服务类型的第一字段、和用于标识所述报文在进入运营商边缘路由器PE首节点的虚链路中是否为承诺带宽内的虚拟专用网业务报文的第二字段;The PB mapping module is configured to: map the PHB according to the EXP field of the packet received by the intermediate node, where the EXP field includes: a first field for identifying a service type of the packet, and The second field of the virtual private network service packet in the committed bandwidth is determined in the virtual link of the first node of the operator edge router PE;
    其中,所述每跳转发行为PHB映射模块将所述第一字段映射为PHB的服务类型,将所述第二字段映射为报文颜色信息,在映射所述第二字段时,在承诺带宽内的报文被映射绿色,在承诺带宽外的报文被映射为黄色;The per-hop is a PHB mapping module that maps the first field to a PHB service type, and the second field is mapped to packet color information, and when the second field is mapped, the committed bandwidth is The packets in the packet are mapped in green, and the packets outside the committed bandwidth are mapped to yellow.
    所述拥塞控制模块设置成:根据映射的PHB进行流量的两级调度控制,其中,第一级调度控制用于控制带宽,第二级调度控制用于控制报文的优先转发。The congestion control module is configured to perform two-level scheduling control of traffic according to the mapped PHB, where the first-level scheduling control is used to control bandwidth, and the second-level scheduling control is used to control priority forwarding of packets.
  14. 根据权利要求13所述的流量拥塞控制装置,其中,所述拥塞控制模 块包括第一级调度控制队列控制单元和第一级调度控制报文丢弃单元,其中:The traffic congestion control apparatus according to claim 13, wherein said congestion control mode The block includes a first-level scheduling control queue control unit and a first-level scheduling control packet discarding unit, where:
    所述第一级调度控制队列控制单元设置成:将中间节点接收到的报文等同于一个有序聚合体OA,根据映射的报文颜色信息将接收到的报文加入同一个有序调度队列;The first level scheduling control queue control unit is configured to: equate the received message with the intermediate node to an ordered aggregate OA, and add the received message to the same ordered scheduling queue according to the mapped message color information. ;
    所述第一级调度控制报文丢弃单元设置成:在对流量进行拥塞控制的情况下,优先丢弃所述有序调度队列中报文颜色信息为黄色的报文。The first-level scheduling control packet discarding unit is configured to: in the case of performing congestion control on the traffic, preferentially discarding the packet whose color information is yellow in the ordered scheduling queue.
  15. 根据权利要求14所述的流量拥塞控制装置,其中,所述第一级调度控制报文丢弃单元设置成按照如下方式优先丢弃所述有序调度队列中报文颜色信息为黄色的报文:The traffic congestion control apparatus according to claim 14, wherein the first-level scheduling control packet discarding unit is configured to preferentially discard the packet whose color information is yellow in the ordered scheduling queue according to the following manner:
    根据加权随机先期检测的队列拥塞丢弃策略,优先丢弃所述有序调度队列中报文颜色信息为黄色的报文。According to the queue congestion discarding policy of the weighted random pre-detection, the packet with the yellow color of the packet in the ordered scheduling queue is discarded.
  16. 根据权利要求13所述的流量拥塞控制装置,其中,所述拥塞控制模块还包括第二级调度控制EXP编码单元和第二级调度控制报文转发单元,其中:The traffic congestion control apparatus according to claim 13, wherein the congestion control module further comprises a second level scheduling control EXP encoding unit and a second level scheduling control message forwarding unit, wherein:
    所述第二级调度控制EXP编码单元设置成:根据报文映射的PHB的服务类型和报文颜色信息,编码报文的外层标签的EXP字段,其中,该EXP字段包括:用于标识所述报文的服务类型的第一字段、和用于标识所述报文的报文颜色信息的第二字段;The second level scheduling control EXP encoding unit is configured to: encode an EXP field of an outer label of the packet according to the service type and the packet color information of the PHB of the packet mapping, where the EXP field includes: a first field of the service type of the message, and a second field for identifying the message color information of the message;
    所述第二级调度控制报文转发单元设置成:根据报文映射的服务类型,对报文进行转发优先级控制。The second-level scheduling control packet forwarding unit is configured to: perform forwarding priority control on the packet according to the service type of the packet mapping.
  17. 一种单板,包括EXP编码芯片和缓存器,其中:A single board includes an EXP encoding chip and a buffer, wherein:
    所述EXP编码芯片设置成:根据报文的每跳转发行为PHB的服务类型和进行流量拥塞控制后的报文颜色信息,编码所述报文的外层标签的EXP字段,其中,所述EXP字段包括:用于标识所述报文的服务类型的第一字段、和用于标识所述报文在进入运营商边缘路由器PE首节点的虚链路中是否为承诺带宽内的虚拟专用网业务报文的第二字段;The EXP encoding chip is configured to: encode an EXP field of an outer label of the packet according to a service type of the PHB and a packet color information after the traffic congestion control is performed, wherein the The EXP field includes: a first field for identifying a service type of the packet, and a virtual private network for identifying whether the packet is a committed bandwidth in a virtual link entering a head node of the operator edge router PE The second field of the service message;
    所述缓存器,耦合至所述EXP编码芯片,设置成:缓存被所述EXP编码芯片编码后的报文。 The buffer is coupled to the EXP encoding chip and configured to: buffer a message encoded by the EXP encoding chip.
  18. 根据权利要求17所述的单板,所述单板还包括调度器,其中:The board of claim 17, the board further comprising a scheduler, wherein:
    所述调度器,耦合至所述缓存器,设置成:根据所述入节点PHB进行第一级调度控制过程,在第一级调度控制过程中至少执行端口调度、隧道调度、虚链路调度和流级调度,其中,所述端口调度用于保证多个端口流量之间互不干扰,所述隧道调度用于保证端口内的多个隧道的流量控制,所述虚链路调度用于保证虚链路内多个虚链路的流量控制,所述流级调度用于保证虚链路所承载的隧道内不同服务类型的业务所要执行的调度转发需求。The scheduler, coupled to the buffer, is configured to perform a first-level scheduling control process according to the ingress node PHB, and perform at least port scheduling, tunnel scheduling, virtual link scheduling, and the first-level scheduling control process. Flow-level scheduling, where the port scheduling is used to ensure that traffic of multiple ports does not interfere with each other. The tunnel scheduling is used to ensure traffic control of multiple tunnels in a port, and the virtual link scheduling is used to ensure virtual The flow control of multiple virtual links in the link is used to ensure the scheduling and forwarding requirements of services of different service types in the tunnel carried by the virtual link.
  19. 根据权利要求18所述的单板,其中,所述调度器还设置成:在报文的包头封装处理过程中,根据所述入节点PHB进行在第二级调度控制过程中优先转发服务类型的转发优先级较高的报文。The board according to claim 18, wherein the scheduler is further configured to: during the packet header encapsulation process of the packet, preferentially forward the service type in the second-level scheduling control process according to the ingress node PHB Forwards packets with higher priority.
  20. 一种单板,包括处理器和调度器,其中:A board, including a processor and a scheduler, where:
    所述处理器设置成:根据中间节点接收的报文的所述EXP字段映射每跳转发行为PHB,其中,所述EXP字段包括:用于标识所述报文的服务类型的第一字段、和用于标识所述报文在进入运营商边缘路由器PE首节点的虚链路中是否为承诺带宽内的虚拟专用网业务报文的第二字段;The processor is configured to: according to the EXP field mapping of the packet received by the intermediate node, the per-jump is issued as a PHB, where the EXP field includes: a first field for identifying a service type of the packet, And a second field for identifying a virtual private network service message in the committed bandwidth in the virtual link of the first node of the operator edge router PE;
    其中,所述处理器将所述第一字段映射为PHB的服务类型,将所述第二字段映射为报文颜色信息,在映射所述第二字段时,在承诺带宽内的报文被映射绿色,在承诺带宽外的报文被映射为黄色;The processor maps the first field to a service type of the PHB, and maps the second field to packet color information. When mapping the second field, the packet in the committed bandwidth is mapped. Green, packets outside the committed bandwidth are mapped to yellow;
    所述调度器,耦合至所述处理器,设置成:根据映射的PHB进行流量的两级调度控制,其中,第一级调度控制用于控制带宽,第二级调度控制用于控制报文的优先转发。The scheduler, coupled to the processor, is configured to perform two-level scheduling control of traffic according to the mapped PHB, where the first level scheduling control is used to control bandwidth, and the second level scheduling control is used to control message Priority forwarding.
  21. 一种计算机程序,包括程序指令,当该程序指令被PE首节点,中间节点和尾节点执行时,使得该PE首节点,中间节点和尾节点可执行权利要求1-9中任一项所述的外层标签编码方法。A computer program comprising program instructions, when the program instructions are executed by a PE head node, an intermediate node, and a tail node, such that the PE head node, the intermediate node, and the tail node can perform any one of claims 1-9 The outer label encoding method.
  22. 一种载有权利要求21所述计算机程序的载体。 A carrier carrying the computer program of claim 21.
PCT/CN2014/089340 2014-06-30 2014-10-23 Outer label encoding method, traffic congestion control method and device WO2016000358A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410307128.2 2014-06-30
CN201410307128.2A CN105282029B (en) 2014-06-30 2014-06-30 Outer label coding method, traffic congestion control method and device

Publications (1)

Publication Number Publication Date
WO2016000358A1 true WO2016000358A1 (en) 2016-01-07

Family

ID=55018373

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/089340 WO2016000358A1 (en) 2014-06-30 2014-10-23 Outer label encoding method, traffic congestion control method and device

Country Status (2)

Country Link
CN (1) CN105282029B (en)
WO (1) WO2016000358A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109274601A (en) * 2018-08-15 2019-01-25 迈普通信技术股份有限公司 Service quality scheduling method and device
CN111698165A (en) * 2020-04-30 2020-09-22 新华三信息安全技术有限公司 Message transmission method, device, equipment and machine readable storage medium
CN111865812A (en) * 2020-07-06 2020-10-30 北京合众方达科技有限公司 SDN-supported high-performance service mixed transmission method in distributed network

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10819632B2 (en) 2017-01-18 2020-10-27 Synology Inc. Routers and methods for traffic management
CN112910914A (en) * 2017-01-18 2021-06-04 群晖科技股份有限公司 Router, flow control method and flow monitoring method
CN108683611A (en) * 2018-05-17 2018-10-19 国网山东省电力公司经济技术研究院 Energy communication service traffic classification control method based on PTN network and system
CN108933739A (en) * 2018-06-13 2018-12-04 烽火通信科技股份有限公司 A kind of end-to-end QoS guarantee realization method and system
WO2021134621A1 (en) * 2019-12-31 2021-07-08 华为技术有限公司 Message scheduling method and apparatus
CN112383450A (en) * 2020-11-30 2021-02-19 盛科网络(苏州)有限公司 Network congestion detection method and device
CN112468411B (en) * 2020-12-11 2022-11-15 中盈优创资讯科技有限公司 Method, device and equipment for deploying QOS (quality of service) of network equipment

Citations (5)

* 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
CN101212412A (en) * 2006-12-30 2008-07-02 中兴通讯股份有限公司 MPLS network service scheduling system
CN101212467A (en) * 2006-12-29 2008-07-02 中兴通讯股份有限公司 MPLS network service scheduling method
CN101453400A (en) * 2007-12-07 2009-06-10 中国电信股份有限公司 Method and forwarding device for ensuring quality of service of virtual private network service
CN102340435A (en) * 2010-07-16 2012-02-01 中国电信股份有限公司 End-to-end service bandwidth guarantee method for packet network

Patent Citations (5)

* 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
CN101212467A (en) * 2006-12-29 2008-07-02 中兴通讯股份有限公司 MPLS network service scheduling method
CN101212412A (en) * 2006-12-30 2008-07-02 中兴通讯股份有限公司 MPLS network service scheduling system
CN101453400A (en) * 2007-12-07 2009-06-10 中国电信股份有限公司 Method and forwarding device for ensuring quality of service of virtual private network service
CN102340435A (en) * 2010-07-16 2012-02-01 中国电信股份有限公司 End-to-end service bandwidth guarantee method for packet network

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109274601A (en) * 2018-08-15 2019-01-25 迈普通信技术股份有限公司 Service quality scheduling method and device
CN111698165A (en) * 2020-04-30 2020-09-22 新华三信息安全技术有限公司 Message transmission method, device, equipment and machine readable storage medium
CN111698165B (en) * 2020-04-30 2023-12-26 新华三信息安全技术有限公司 Message transmission method, device, equipment and machine-readable storage medium
CN111865812A (en) * 2020-07-06 2020-10-30 北京合众方达科技有限公司 SDN-supported high-performance service mixed transmission method in distributed network
CN111865812B (en) * 2020-07-06 2023-04-07 北京合众方达科技有限公司 SDN-supported high-performance service mixed transmission method in distributed network

Also Published As

Publication number Publication date
CN105282029B (en) 2020-02-07
CN105282029A (en) 2016-01-27

Similar Documents

Publication Publication Date Title
WO2016000358A1 (en) Outer label encoding method, traffic congestion control method and device
US9413611B2 (en) Generating and enforcing a holistic quality of service policy in a network
US10044627B2 (en) QoS on a virtual interface over multi-path transport
US7006440B2 (en) Aggregate fair queuing technique in a communications system using a class based queuing architecture
US8223642B2 (en) Differentiated services using weighted quality of service (QoS)
US8917597B2 (en) Providing a quality of service for various classes of service for transfer of electronic data packets
US8804728B2 (en) Ethernet differentiated services conditioning
US20040213264A1 (en) Service class and destination dominance traffic management
CN107454015B (en) OF-DiffServ model-based QoS control method and system
US8264957B1 (en) Control of preemption-based beat-down effect
WO2021213711A1 (en) Virtual dual queue core stateless active queue management (aqm) for communication networks
CN103973590B (en) A kind of QoS dispatching methods and device
Wadekar Enhanced ethernet for data center: Reliable, channelized and robust
EP1712035A1 (en) Ethernet differentiated services
Lipu et al. Quality of service model selection criteria and traffic controlling algorithm of a native IP Network for telecommunication services
ES2530542B1 (en) Communications system, network element and procedure to facilitate the routing of data packets
Chen QoS and Over-subscription for IP/MPLS Networks
WO2021254202A1 (en) Data scheduling method and device, and storage medium
Yip Traffic engineering prioritized IP packets over multi-protocol label switching networks
KR20160130593A (en) Packet Drop Method for Differentiated Services in Wireless/Wired Ship and Indoor Area Networks
Castro Lechtaler et al. MPLS technology: class of service
US20170142019A1 (en) Communication apparatus, communication system, and bandwidth control method
KR20230061977A (en) Method and Apparatus for port-based traffic regulation
CN114501544A (en) Data transmission method, device and storage medium
Choi et al. Integrated flow management in packet transport system

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

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

Country of ref document: EP

Kind code of ref document: A1