Flexible scheduling method and system based on programmable switching chip

By using programmable switching chips for DSCP marking and tunnel forwarding in cloud services, and combining it with PBR for supplementary matching, it solves the problems in the existing technology that cloud service orchestration cannot be flexibly linked and occupies large hardware resources, and achieves flexible matching, scheduling and high efficiency. deal with.

CN118694728APending Publication Date: 2024-09-24CHINA TELECOM CLOUD TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410827137.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-25
Publication Date
2024-09-24

AI Technical Summary

Technical Problem

In the existing technology, all cloud service orchestration is delivered by the vDCI controller to vDCI-SW for execution, which cannot achieve flexible linkage with cloud services. Moreover, cloud service scenarios require precise matching of PBR, occupying a large amount of hardware resources, and the PBR operation is complex and error-prone. .

Method used

Adopt a flexible scheduling method based on programmable switching chips, mark different services through the DSCP field, obtain the mapping relationship between cloud services and DSCP, perform DSCP marking and tunnel forwarding, and combine with PBR for supplementary matching to achieve flexible matching and scheduling and reduce hardware resources. occupy and improve processing efficiency.

Benefits of technology

It achieves flexible linkage of cloud services, reduces hardware resource usage, reduces errors, improves cloud service processing efficiency, and meets the needs of multiple business types.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118694728A
    Figure CN118694728A
Patent Text Reader

Abstract

The invention relates to a flexible scheduling method and system based on a programmable switching chip, and belongs to the field of data processing, and the method comprises the steps: obtaining a mapping relation between a cloud service and a DSCP; acquiring cloud service traffic; according to the mapping relation, performing DSCP marking on each cloud service in the cloud service flow; dragging the cloud service flow to an edge switch through a detail route; on the basis of a programmable switching chip, through a programmable technology, matching a DSCP value for each cloud service in the cloud service traffic on the edge switch; and performing tunnel forwarding on each cloud service according to the DSCP value. According to the method, flexible matching scheduling can be realized, flexible linkage with the cloud service is realized, meanwhile, less chip hardware resources are occupied, errors are reduced, and the cloud service processing efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the field of data processing, and in particular relates to a flexible scheduling method and system based on a programmable switching chip. Background Art

[0002] At present, with the development of artificial intelligence and CHAT-GPT, the innovation of DCN&DCI network architecture has been driven. The network transmission requirements between different DCN computing cloud platforms and storage data sources are higher, among which DCI network tunnel technology and its scheduling have become the basic requirements for transmission in cloud networks.

[0003] The current technical implementation method generally uses PBR to specify forwarding. The computing cloud platform GW pulls the traffic to vDCI-SW, and vDCI-SW implements service diversion based on destination IP & source IP scheduling. The vDCI controller then sends it down, specifies the corresponding tunnel group for forwarding through service orchestration, and finally selects a certain tunnel.

[0004] In the above technical solution, all cloud service orchestration is sent from the vDCI controller to the vDCI-SW for execution, which cannot achieve flexible linkage with cloud services. In addition, cloud service scenarios require precise PBR matching, which occupies a large amount of hardware resources. PBR operations are relatively complex and prone to errors. Summary of the invention

[0005] In view of the above deficiencies in the prior art, the purpose of the invention is to provide a flexible scheduling method and system based on a programmable switching chip, which can mark different services through the DSCP field, can distinguish and satisfy multiple service types, based on the programmable switching chip, through programmable technology, match the DSCP value of each cloud service in the cloud service traffic, and then forward each cloud service through a tunnel according to the DSCP value, to achieve flexible matching and scheduling, and achieve flexible linkage with cloud services. At the same time, it occupies less chip hardware resources, reduces errors, and improves cloud service processing efficiency.

[0006] A first aspect of the present invention provides a flexible scheduling method based on a programmable switching chip, comprising:

[0007] S1, obtain the mapping relationship between cloud services and DSCP;

[0008] S2, obtains cloud service traffic;

[0009] S3, performing DSCP marking on each cloud service in the cloud service traffic according to the mapping relationship;

[0010] S4, pulling the cloud service traffic to the edge switch through detailed routing;

[0011] S5, based on a programmable switching chip, through programmable technology, on the edge switch, matching a DSCP value for each cloud service in the cloud service traffic;

[0012] S6: Perform tunnel forwarding on each cloud service according to the DSCP value.

[0013] Furthermore, when all DSCP values ​​are mapped to cloud services, the flexible scheduling method based on a programmable switching chip further includes:

[0014] Use PBR to supplement and match cloud services.

[0015] Furthermore, the S5 specifically includes:

[0016] In the Parsing component and the Editing component, extract the DSCP field information in the cloud service message;

[0017] Put the extracted DSCP field information into the data bus Bus and assign the value to ing_data_bus.dscp;

[0018] Put the extracted DSCP field information into the control bus and assign the value to ing_cmd_bus.dscp_ctl;

[0019] Insert a table before ECMP0;

[0020] If there is an identifier, ECMP path selection is skipped directly;

[0021] The key information transmitted by the bus is matched with the DSCP relationship table.

[0022] Furthermore, the specific method of inserting a table before ECMP0 is:

[0023] key: dscp+ecmp level 0id;

[0024] field: nh_1&nh_2 / ecmp level 1group id.

[0025] Furthermore, the tunnel forwarding of each cloud service in S6 specifically includes:

[0026] Get the routing table L3 IIF through VFI;

[0027] Get encapsulation information vxlan overlay header and dvp through overlay ecmp;

[0028] Get tunnel encapsulation information through dvp;

[0029] Through underlay ecmp, obtain underlay nexthop, encapsulation information vxlan underlay header and tunnel exit information underlay;

[0030] After the cloud service message is encapsulated, the cloud service message is forwarded through a tunnel from the underlay.

[0031] A second aspect of the present invention provides a flexible scheduling system based on a programmable switching chip, comprising:

[0032] A first acquisition module is used to obtain a mapping relationship between a cloud service and a DSCP;

[0033] The second acquisition module is used to acquire cloud service traffic;

[0034] A marking module, configured to perform DSCP marking on each cloud service in the cloud service traffic according to the mapping relationship;

[0035] A traction module, used to pull the cloud service traffic to the edge switch through detailed routing;

[0036] A matching module, configured to match a DSCP value for each cloud service in the cloud service traffic on the edge switch through a programmable technology based on a programmable switching chip;

[0037] The forwarding module is used to perform tunnel forwarding on each cloud service according to the DSCP value.

[0038] Furthermore, the flexible scheduling system based on the programmable switching chip also includes:

[0039] The supplementary matching module is used to use PBR to perform supplementary matching on cloud services.

[0040] Furthermore, the matching module is specifically used for:

[0041] In the Parsing component and the Editing component, extract the DSCP field information in the cloud service message;

[0042] Put the extracted DSCP field information into the data bus Bus and assign the value to ing_data_bus.dscp;

[0043] Put the extracted DSCP field information into the control bus and assign the value to ing_cmd_bus.dscp_ctl;

[0044] Insert a table before ECMP0;

[0045] If there is an identifier, ECMP path selection is skipped directly;

[0046] The key information transmitted by the bus is matched with the DSCP relationship table.

[0047] Furthermore, the specific method of inserting a table before ECMP0 is:

[0048] key: dscp+ecmp level 0id;

[0049] field: nh_1&nh_2 / ecmp level 1group id.

[0050] Furthermore, the forwarding module is specifically used for:

[0051] Get the routing table L3 IIF through VFI;

[0052] Get encapsulation information vxlan overlay header and dvp through overlay ecmp;

[0053] Get tunnel encapsulation information through dvp;

[0054] Through underlay ecmp, obtain underlay nexthop, encapsulation information vxlan underlay header and tunnel exit information underlay;

[0055] After the cloud service message is encapsulated, the cloud service message is forwarded through a tunnel from the underlay.

[0056] The beneficial effects of the present invention are as follows:

[0057] The method and system of the present invention mark different services through the DSCP field, can distinguish and satisfy multiple service types, and match the DSCP value of each cloud service in the cloud service traffic based on a programmable switching chip through programmable technology, and then tunnel forward each cloud service according to the DSCP value, so as to realize flexible matching and scheduling, and realize flexible linkage with the cloud service. At the same time, it occupies less chip hardware resources, reduces errors, and improves the processing efficiency of cloud services. BRIEF DESCRIPTION OF THE DRAWINGS

[0058] The accompanying drawings are only used to illustrate specific embodiments and are not considered to limit the present invention. In the entire drawings, the same reference symbols represent the same components. Obviously, the drawings described below are only some embodiments recorded in the embodiments of the present invention. For those of ordinary skill in the art, other drawings can also be obtained based on these drawings.

[0059] Figure 1 A schematic diagram of a flow chart of a flexible scheduling method based on a programmable switching chip provided by an embodiment of the present invention;

[0060] Figure 2 A schematic diagram of the structure of a flexible scheduling system based on a programmable switching chip provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0061] In order to enable those skilled in the art to better understand the technical solutions in the embodiments of the present invention, the technical solutions of the present invention will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the described embodiments are part of the embodiments of the present invention, rather than all of the embodiments. It should be understood that these descriptions are only exemplary and are not intended to limit the scope of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in the field without making creative work should fall within the scope of protection of the present invention.

[0062] Furthermore, in the following description, descriptions of well-known structures and technologies are omitted to avoid unnecessarily obscuring the concepts disclosed in the present invention.

[0063] In the description of the present invention, it should be noted that, unless otherwise clearly specified and limited, the orientation or position relationship indicated by the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inside", "outside", etc. is based on the orientation or position relationship shown in the drawings, which is only for the convenience of describing the present invention and simplifying the description, and does not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation of the present invention. In addition, the terms "first", "second", and "third" are only used for descriptive purposes and cannot be understood as indicating or implying relative importance. The terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be a connection between the two elements. For those of ordinary skill in the art, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0064] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Instead, they are merely examples of methods and systems consistent with some aspects of the present invention as detailed in the appended claims.

[0065] The present invention proposes a flexible scheduling method and system based on a programmable switching chip, which solves the problem that all cloud service orchestrations in the prior art are all sent from the vDCI controller to the vDCI-SW for execution, and cannot be flexibly linked with cloud services. In addition, cloud service scenarios require PBR fine matching, occupy a large amount of hardware resources, and PBR operations are relatively complex and prone to errors.

[0066] Method Embodiment

[0067] Reference Manual Attached Figure 1 , showing a flow chart of a flexible scheduling method based on a programmable switching chip provided in an embodiment of the present invention.

[0068] An embodiment of the present invention provides a flexible scheduling method based on a programmable switching chip, comprising:

[0069] Specifically, the method includes steps S1 to S6.

[0070] S1: Obtain the mapping relationship between cloud services and DSCP.

[0071] Among them, DSCP (Differentiated Services Code Point) is a field in the IP packet header that is used to classify and manage network traffic to provide different levels of quality of service (QoS). The DSCP field is located in the TOS (Type of Service) byte or traffic class byte of the IPv4 and IPv6 headers and occupies 6 bits. DSCP distinguishes different types of traffic by marking the quality of service requirements of each data packet. For example, voice and video traffic may be marked as high priority, while ordinary data transmission may be marked as low priority. Network devices (such as routers and switches) classify and process data packets based on DSCP values ​​to ensure that critical business traffic obtains the required bandwidth and priority.

[0072] It should be noted that by matching the DSCP field to mark different services, multiple service types can be distinguished. By associating cloud services with specific DSCP values, traffic can be classified and prioritized according to different service quality requirements. For example, critical cloud services (such as voice and video conferencing) can be marked as high priority to ensure that they are forwarded preferentially in the network, reducing latency and jitter, and improving user experience.

[0073] In a possible implementation manner, when all DSCP values ​​are mapped to cloud services, the flexible scheduling method based on the programmable switching chip further includes:

[0074] Use PBR to supplement and match cloud services.

[0075] Among them, PBR (Policy-Based Routing) is a routing technology that determines the forwarding path of data packets by specifying policies (rather than just based on the destination address). PBR uses access control lists (ACLs) or other matching conditions to define policies, and then processes data packets based on these policies.

[0076] In some cases, relying solely on DSCP marking may not be sufficient to achieve optimal traffic management. By introducing PBR, path selection and resource allocation can be further optimized during traffic scheduling, thereby improving network performance and efficiency. For example, traffic paths can be dynamically adjusted according to real-time network conditions and business needs to avoid congestion and bottlenecks.

[0077] In the present invention, when all DSCP values ​​are mapped to cloud services, PBR is used to supplement and match cloud services, which can significantly enhance the flexibility and precise control of traffic scheduling, improve network performance and efficiency, enhance security, and support complex business scenarios. At the same time, this method is compatible with existing network infrastructure, improves the manageability and maintainability of policies. Combining the advantages of DSCP and PBR, it can better meet the changing and complex business needs in modern cloud environments.

[0078] S2, obtains cloud service traffic.

[0079] S3: Perform DSCP marking on each cloud service in the cloud service traffic according to the mapping relationship.

[0080] It should be noted that by performing DSCP marking on each cloud service in the cloud service traffic, the traffic can be classified and prioritized according to different service quality requirements.

[0081] S4, through detailed routing, pulls cloud service traffic to the edge switch.

[0082] Among them, Detail Routing, commonly known as fine-grained routing, is a network routing strategy that aims to provide precise path selection and traffic management for specific traffic. This strategy uses detailed routing rules and policies to ensure that specific types of traffic are forwarded along predefined paths, thereby achieving more precise traffic control and optimization.

[0083] Furthermore, an underlay backbone network can be established between the DCI data center interconnect edge server and the DR data center interconnect core server, and a vDCI-SW data center interconnect edge switch can be set up next to the DR.

[0084] S5, based on a programmable switching chip, uses programmable technology to match the DSCP value of each cloud service in the cloud service traffic on the edge switch.

[0085] Optionally, the programmable switching chip can be TD4. TD4 incorporates the following flexible packet processing components. Parsing: can adapt to existing, custom and new protocols; Editing: can add, rewrite, delete headers at various header offsets; Lookup Databases: fine-grained flow selection, flexible key-value operations, programmable tables; Flexible Switch Logic: programmable flow-based switch decisions; Bus Structures: can define metadata for transmission across stages and across pipelines;

[0086] In-chip Packet Processing - With the help of flexible bus architecture, the flexible bus carries the packet data and metadata derived in the packet processing pipeline. The bus starts and terminates at the end of the respective pipeline. The context is passed between the pipelines through different bus structures through the MMU.

[0087] NPL (Network Programming Language) is a high-level network programming language unique to the chip. It transmits data through the bus and makes programmable logical decisions in FSL.

[0088] In a possible implementation, S5 specifically includes sub-steps S501 to S506:

[0089] S501: In the Parsing component and the Editing component, DSCP field information in the cloud service message is extracted.

[0090] S502, putting the extracted DSCP field information into the data bus Bus, and assigning the value to ing_data_bus.dscp.

[0091] It should be noted that the DSCP information is transmitted through the data bus so that subsequent processing modules can access and use the information to perform traffic scheduling.

[0092] S503, putting the extracted DSCP field information into the control bus and assigning the value to ing_cmd_bus.dscp_ctl.

[0093] It should be noted that the DSCP information is transmitted through the control bus to ensure that the control logic can accurately make decisions and process according to the DSCP value.

[0094] S504, insert a table before ECMP0.

[0095] In a possible implementation, a specific method of inserting a table before ECMP0 is as follows:

[0096] key: dscp+ecmp level 0id.

[0097] field: nh_1&nh_2 / ecmp level 1group id.

[0098] It should be noted that by inserting a matching table before ECMP0, DSCP values ​​and ECMP levels are used to perform more refined traffic classification and path selection, thereby improving the flexibility and accuracy of traffic scheduling.

[0099] S505: If there is an identifier, ECMP path selection is directly skipped.

[0100] S506: Use the key information transmitted by the bus to match the DSCP relationship table.

[0101] S6: Perform tunnel forwarding on each cloud service based on the DSCP value.

[0102] In a possible implementation, the tunnel forwarding of each cloud service in S6 specifically includes sub-steps S601 to S605:

[0103] S601, obtain the routing table L3 IIF through VFI.

[0104] It should be noted that the use of VFI and L3 IIF ensures that traffic is properly processed in a virtualized environment, providing good isolation and security, which is particularly suitable for multi-tenant cloud environments.

[0105] S602, obtain the encapsulation information inner message layer 2 header vxlan overlay header and dvp through overlay ecmp.

[0106] S603, obtain tunnel encapsulation information through DVP.

[0107] S604, through underlay ecmp, obtain underlay nexthop, encapsulation information outer layer message layer 2 header vxlan underlay header and tunnel exit information underlay.

[0108] It should be noted that VXLAN tunnel technology is used to achieve efficient and transparent connections between different networks, adapt to complex network architecture and topology changes, and support large-scale data center interconnection.

[0109] S605: When the cloud service message is encapsulated, the cloud service message is forwarded from the underlay through a tunnel.

[0110] It should be noted that PBR technology and service protocol network tunnel selection have been widely used, but also bring about cumbersome deployment of related configurations. In the present invention, by establishing a relationship table, the DSCP carried by different levels of cloud service models are mapped to different tunnel exits, and the mapping table relationship can be refined at different granularities according to the scenario. By using the DSCP relationship table to associate cloud services with network tunnels, the configuration can be simplified and the chip resource occupancy rate can be reduced.

[0111] In the present invention, by forwarding cloud service tunnels based on DSCP values, the advantages of programmable switching chips can be fully utilized to optimize network resource utilization, improve network reliability and performance, and ensure service quality and user experience. In a complex and changing cloud environment, this flexible and efficient traffic scheduling method can better meet business needs and provide robust network support.

[0112] The beneficial effects of the present invention are as follows:

[0113] The method and system of the present invention mark different services through the DSCP field, can distinguish and satisfy multiple service types, and match the DSCP value of each cloud service in the cloud service traffic based on the programmable switching chip through programmable technology, and then tunnel forward each cloud service according to the DSCP value, so as to realize flexible matching and scheduling, and realize flexible linkage with the cloud service. At the same time, it occupies less chip hardware resources, reduces errors, and improves the processing efficiency of cloud services.

[0114] System Example

[0115] Reference Manual Attached Figure 2 , showing a schematic diagram of the structure of a flexible scheduling system based on a programmable switching chip provided in an embodiment of the present invention.

[0116] An embodiment of the present invention provides a flexible scheduling system 20 based on a programmable switching chip, comprising:

[0117] A first acquisition module 201 is used to acquire a mapping relationship between a cloud service and a DSCP;

[0118] The second acquisition module 202 is used to acquire cloud service traffic;

[0119] The marking module 203 is used to perform DSCP marking on each cloud service in the cloud service traffic according to the mapping relationship;

[0120] A traction module 204 is used to pull the cloud service traffic to the edge switch through detailed routing;

[0121] A matching module 205 is used to match a DSCP value for each cloud service in the cloud service traffic on the edge switch through a programmable technology based on a programmable switching chip;

[0122] The forwarding module 206 is used to perform tunnel forwarding on each cloud service according to the DSCP value.

[0123] Furthermore, the flexible scheduling system 20 based on the programmable switching chip also includes:

[0124] The supplementary matching module is used to use PBR to perform supplementary matching on cloud services.

[0125] Furthermore, the matching module 205 is specifically used for:

[0126] In the Parsing component and the Editing component, extract the DSCP field information in the cloud service message;

[0127] Put the extracted DSCP field information into the data bus Bus and assign the value to ing_data_bus.dscp;

[0128] Put the extracted DSCP field information into the control bus and assign the value to ing_cmd_bus.dscp_ctl;

[0129] Insert a table before ECMP0;

[0130] If there is an identifier, ECMP path selection is skipped directly;

[0131] The key information transmitted by the bus is matched with the DSCP relationship table.

[0132] Furthermore, the specific method of inserting a table before ECMP0 is:

[0133] key: dscp+ecmp level 0id;

[0134] field: nh_1&nh_2 / ecmp level 1group id.

[0135] Furthermore, the forwarding module 206 is specifically configured to:

[0136] Get the routing table L3 IIF through VFI;

[0137] Get encapsulation information vxlan overlay header and dvp through overlay ecmp;

[0138] Get tunnel encapsulation information through dvp;

[0139] Through underlay ecmp, obtain underlay nexthop, encapsulation information vxlan underlay header and tunnel exit information underlay;

[0140] After the cloud service message is encapsulated, the cloud service message is forwarded through a tunnel from the underlay.

[0141] The present invention provides a flexible scheduling system 20 based on a programmable switching chip, which can implement the various steps and technical effects of the above-mentioned flexible scheduling method based on a programmable switching chip. To avoid repetition, the present invention will not elaborate on them.

[0142] The beneficial effects of the present invention are as follows:

[0143] The method and system of the present invention mark different services through the DSCP field, can distinguish and satisfy multiple service types, and match the DSCP value of each cloud service in the cloud service traffic based on a programmable switching chip through programmable technology, and then tunnel forward each cloud service according to the DSCP value, so as to realize flexible matching and scheduling, and realize flexible linkage with the cloud service. At the same time, it occupies less chip hardware resources, reduces errors, and improves the processing efficiency of cloud services.

[0144] The applicant of the present invention has made a detailed explanation and description of the implementation examples of the present invention in conjunction with the drawings in the specification. However, those skilled in the art should understand that the above implementation examples are only preferred implementation schemes of the present invention, and the detailed description is only to help readers better understand the spirit of the present invention, but not to limit the scope of protection of the present invention. On the contrary, any improvements or modifications based on the inventive spirit of the present invention should fall within the scope of protection of the present invention.

[0145] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the embodiments of the present invention, rather than to limit them. Although the present invention has been described in detail with reference to the above embodiments, those skilled in the art should understand that they can still modify the technical solutions recorded in the above embodiments, or replace some of the technical features therein by equivalents; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention. Any changes or replacements that can be easily thought of by those skilled in the art within the technical scope disclosed in the present invention should be covered within the protection scope of the present invention.

Claims

1. A flexible scheduling method based on a programmable switching chip, characterized in that: include: S1, obtain the mapping relationship between cloud services and DSCP; S2, obtains cloud service traffic; S3, performing DSCP marking on each cloud service in the cloud service traffic according to the mapping relationship; S4, pulling the cloud service traffic to the edge switch through detailed routing; S5, based on a programmable switching chip, through programmable technology, on the edge switch, matching a DSCP value for each cloud service in the cloud service traffic; S6: Perform tunnel forwarding on each cloud service according to the DSCP value.

2. The flexible scheduling method based on a programmable switching chip according to claim 1, characterized in that: In the case where all DSCP values ​​are mapped to cloud services, the flexible scheduling method based on a programmable switching chip further includes: Use PBR to supplement and match cloud services.

3. The flexible scheduling method based on a programmable switching chip according to claim 1, characterized in that: The S5 specifically includes: In the Parsing component and the Editing component, extract the DSCP field information in the cloud service message; Put the extracted DSCP field information into the data bus Bus and assign the value to ing_data_bus.dscp; Put the extracted DSCP field information into the control bus and assign the value to ing_cmd_bus.dscp_ctl; Insert a table before ECMP0; If there is an identifier, ECMP path selection is skipped directly; The key information transmitted by the bus is matched with the DSCP relationship table.

4. The flexible scheduling method based on a programmable switching chip according to claim 3 is characterized in that: The specific method of inserting a table before ECMP0 is: key: dscp+ecmp level 0id; field: nh_1&nh_2 / ecmp level 1group id.

5. The flexible scheduling method based on a programmable switching chip according to claim 1, characterized in that: The tunnel forwarding of each cloud service in S6 specifically includes: Get the routing table L3 IIF through VFI; Get encapsulation information vxlan overlay header and dvp through overlay ecmp; Get tunnel encapsulation information through dvp; Through underlay ecmp, obtain underlay nexthop, encapsulation information vxlan underlay header and tunnel exit information underlay; After the cloud service message is encapsulated, the cloud service message is forwarded through a tunnel from the underlay.

6. A flexible scheduling system based on a programmable switching chip, characterized in that: include: A first acquisition module is used to obtain a mapping relationship between a cloud service and a DSCP; The second acquisition module is used to acquire cloud service traffic; A marking module, configured to perform DSCP marking on each cloud service in the cloud service traffic according to the mapping relationship; A traction module, used to pull the cloud service traffic to the edge switch through detailed routing; A matching module, configured to match a DSCP value for each cloud service in the cloud service traffic on the edge switch through a programmable technology based on a programmable switching chip; The forwarding module is used to perform tunnel forwarding on each cloud service according to the DSCP value.

7. The flexible scheduling system based on a programmable switching chip according to claim 6 is characterized in that: Also includes: The supplementary matching module is used to use PBR to perform supplementary matching on cloud services.

8. The flexible scheduling system based on a programmable switching chip according to claim 6, characterized in that: The matching module is specifically used for: In the Parsing component and the Editing component, extract the DSCP field information in the cloud service message; Put the extracted DSCP field information into the data bus Bus and assign the value to ing_data_bus.dscp; Put the extracted DSCP field information into the control bus and assign the value to ing_cmd_bus.dscp_ctl; Insert a table before ECMP0; If there is an identifier, ECMP path selection is skipped directly; The key information transmitted by the bus is matched with the DSCP relationship table.

9. The flexible scheduling system based on a programmable switching chip according to claim 8, characterized in that: The specific method of inserting a table before ECMP0 is: key: dscp+ecmp level 0id; field: nh_1&nh_2 / ecmp level 1group id.

10. The flexible scheduling system based on programmable switching chip according to claim 6, characterized in that: The forwarding module is specifically used for: Get the routing table L3 IIF through VFI; Get encapsulation information vxlan overlay header and dvp through overlay ecmp; Get tunnel encapsulation information through dvp; Through underlay ecmp, obtain underlay nexthop, encapsulation information vxlan underlay header and tunnel exit information underlay; After the cloud service message is encapsulated, the cloud service message is forwarded through a tunnel from the underlay.