P4-assisted cloud EIP gateway shared bandwidth traffic monitoring method and system

By using the speedometer and virtual buffer register configuration in the cloud EIP gateway, the problem of packet loss and delay caused by insufficient storage resources in the shared bandwidth traffic management of the P4 programmable device in the cloud EIP gateway is solved, and the communication quality and Bandwidth usage efficiency.

WO2024212619A1PCT designated stage expired Publication Date: 2024-10-17CHINA TELECOM CLOUD TECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2023/143228
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-12-12
Filing Date
2023-12-29
Publication Date
2024-10-17

AI Technical Summary

Technical Problem

In the existing technology, when the shared bandwidth traffic management function of the cloud EIP gateway is offloaded to the P4 programmable device, due to limited on-chip storage resources, a large buffer cannot be provided, causing the overspeed data packets to be directly discarded, resulting in a high packet loss rate and long burst traffic. The delay jitter is large, which reduces the communication quality.

Method used

When the data packet enters the P4 pipeline segment, the data packet flow information is obtained according to the cloud EIP gateway, the speed meter is used to detect the rate, and the virtual buffer register is configured according to the preset peak bandwidth and time interval fields, coloring fields, etc., for selective buffering. , reduce packet loss rate and delay jitter.

Benefits of technology

It achieves the reduction of packet loss rate and delay jitter of burst traffic when users use shared bandwidth, improves communication quality, and reduces actual traffic unit price.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2023143228_17102024_PF_FP_ABST
    Figure CN2023143228_17102024_PF_FP_ABST
Patent Text Reader

Abstract

Provided are a P4-assisted cloud EIP gateway shared bandwidth traffic monitoring method and system, which relate to the field of cloud computing. An embodiment comprises: when first data packets enter a first P4 pipeline segment, obtaining first data packet traffic information according to a cloud EIP gateway, and obtaining a first data packet rate; when less than or equal to a preset peak bandwidth, and when a time interval field is equal to 1, setting a reduce buffer field to 0; when the time interval field is equal to 0, and when a first coloring field is a first color, subtracting one from the reduce buffer field; when the time interval field is equal to 0, and when the first coloring field is a second color, do not change the reduce buffer field and or an increase buffer field; and when the time interval field is equal to 0, and when the first coloring field is a third color, adding one to the increase buffer field. The present invention solves the technical problem where in the prior art rate-exceeding data packets are usually directly discarded, resulting in poor adaptability in offloading an EIP gateway shared bandwidth traffic management function to a P4 programmable device.
Need to check novelty before this filing date? Find Prior Art

Description

P4-assisted cloud EIP gateway shared bandwidth traffic monitoring method and system Technical Field

[0001] The present invention relates to the technical field of cloud computing, and in particular to a P4-assisted cloud EIP gateway shared bandwidth traffic monitoring method and system. Background Art

[0002] Software-defined networking (SDN) is a core technology in network virtualization. It divides the network into a control plane and a data plane, centralizing the network control plane. However, the increasing performance overhead of pure software has reduced its practicality. Programmable dedicated switch chips combine the high performance of fixed-function dedicated chips with the flexibility of NFV. They offload virtualized network functions to programmable switch chips, creating a programmable data plane and becoming a new trend in cloud network development.

[0003] The protocol-independent packet processor, the P4, can be reprogrammed to parse custom protocols and execute custom functions. Therefore, P4 is widely used to describe the forwarding behavior of this programmable data plane. For cloud EIP gateway shared bandwidth traffic management applications, offloading EIP gateway shared bandwidth traffic management functions to P4 programmable devices holds great promise. However, due to the extremely limited on-chip memory resources of P4 programmable devices, they cannot provide a large buffer for general traffic shaping. The current solution is to simply discard overspeeding packets. While this approach can strictly limit the shared bandwidth packet rate, it results in a high burst packet loss rate and high latency jitter, increasing the actual unit price of shared bandwidth usage for users and reducing communication quality.

[0004] The existing technology usually discards overspeed data packets directly, resulting in a technical problem of poor adaptability in offloading the EIP gateway shared bandwidth traffic management function to the P4 programmable device.

[0005] Summary of the Invention

[0006] This application provides a P4-assisted cloud EIP gateway shared bandwidth traffic supervision method and system, which is used to solve the technical problem that the existing technology usually directly discards overspeed data packets, resulting in poor adaptability of offloading EIP gateway shared bandwidth traffic management functions to P4 programmable devices.

[0007] In view of the above problems, the present application provides a P4-assisted cloud EIP gateway shared bandwidth traffic monitoring method and system.

[0008] A first aspect of the present application provides a P4-assisted cloud EIP gateway shared bandwidth traffic policing method, comprising: when a first data packet enters a first P4 pipeline segment, obtaining first data packet traffic information according to the cloud EIP gateway, inputting the information into a speed meter for detection, and obtaining a first data packet rate; when the first data packet rate is less than or equal to a preset peak bandwidth, forwarding the first data packet to a P4 traffic manager and a second P4 pipeline segment, obtaining a time interval field, a down buffer field, an up buffer field, and a first color field; when the time interval field is equal to 1, setting the down buffer field to 0; when the time interval field is equal to 0 and the first color field is a first color, decrementing the down buffer field by one; when the time interval field is equal to 0 and the first color field is a second color, leaving the down buffer field and the up buffer field unchanged; and when the time interval field is equal to 0 and the first color field is a third color, incrementing the up buffer field by one.

[0009] A second aspect of the present application provides a P4-assisted cloud EIP gateway shared bandwidth traffic policing system, comprising: a first processing unit, configured to, when a first data packet enters a first P4 pipeline segment, obtain, according to the cloud EIP gateway, traffic information of the first data packet, input the information into a speed meter for detection, and obtain a first data packet rate; a second processing unit, configured to, when the first data packet rate is less than or equal to a preset peak bandwidth, forward the first data packet to a P4 traffic manager and a second P4 pipeline segment, and obtain a time interval field, a down buffer field, an up buffer field, and a first color field; a first execution unit, configured to, when the time interval field is equal to 1, set the down buffer field to 0; a second execution unit, configured to, when the time interval field is equal to 0 and the first color field is a first color, decrement the down buffer field by one; a third execution unit, configured to, when the time interval field is equal to 0 and the first color field is a second color, leave the down buffer field and the up buffer field unchanged; and a fourth execution unit, configured to, when the time interval field is equal to 0 and the first color field is a third color, increment the up buffer field by one.

[0010] One or more technical solutions provided in this application have at least the following technical effects or advantages:

[0011] The present application obtains the first data packet flow information according to the cloud EIP gateway when the first data packet enters the first P4 pipeline segment, inputs the speed meter for detection, and obtains the first data packet rate; when the first data packet rate is less than or equal to the preset peak bandwidth, the first data packet is forwarded to the P4 traffic manager and the second P4 pipeline segment, and the time interval field, the down buffer field, the up buffer field and the first color field are obtained; when the time interval field is equal to 1, the down buffer field is set to 0; when the time interval field is equal to 0 and when the first color field is the first color, the down buffer field is reduced by one; when the time interval field is equal to 0 and when the first color field is the second color, keeping the down buffer field and the up buffer field unchanged; when the time interval field is equal to 0, and when the first coloring field is the third color, adding one to the up buffer field, by obtaining the time interval field, down buffer field, up buffer field and first coloring field configured on the P4 traffic manager and the second P4 pipeline segment when the rate of the first data packet is less than or equal to the preset peak bandwidth, selecting a virtual buffer register for buffering the data packet according to a specific division rule, compared with the direct packet loss method, achieving the technical effect of reducing the burst traffic loss rate, small delay jitter, reducing the actual traffic unit price of the user's shared bandwidth usage, and improving the communication quality. BRIEF DESCRIPTION OF THE DRAWINGS

[0012] FIG1 is a flow chart of a P4-assisted cloud EIP gateway shared bandwidth traffic monitoring method provided by this application;

[0013] FIG2 is a flow diagram of a subdivided speedometer in the P4-assisted cloud EIP gateway shared bandwidth traffic monitoring method provided by this application;

[0014] FIG3 is a schematic diagram of the structure of the pipeline processing module obtained in the P4-assisted cloud EIP gateway shared bandwidth traffic supervision method provided by this application;

[0015] FIG4 is a schematic diagram of the structure of the P4-assisted cloud EIP gateway shared bandwidth traffic monitoring system provided in this application.

[0016] Explanation of the reference numerals: first processing unit 100 , second processing unit 200 , first execution unit 300 , second execution unit 400 , third execution unit 500 , fourth execution unit 600 . DETAILED DESCRIPTION

[0017] This application provides a P4-assisted cloud EIP gateway shared bandwidth traffic management method and system to address the existing problem of directly discarding overspeeding data packets. Although this method can strictly limit the rate of shared bandwidth packets, it can lead to a high burst traffic packet loss rate and large latency jitter, increasing the actual traffic unit price of users' shared bandwidth usage and reducing communication quality. This leads to the technical problem of poor adaptability when offloading the EIP gateway shared bandwidth traffic management function to P4 programmable devices. By obtaining the time interval field, down buffer field, up buffer field, and first coloring field configured on the P4 traffic manager and the second P4 pipeline segment when the rate of the first data packet is less than or equal to the preset peak bandwidth, and selecting a virtual buffer register for buffering according to specific division rules, compared with the direct packet discarding method, this method achieves the technical effect of reducing the high burst traffic packet loss rate, reducing latency jitter, reducing the actual traffic unit price of users' shared bandwidth usage, and improving communication quality.

[0018] Example 1

[0019] As shown in FIG1 , this application provides a P4-assisted cloud EIP gateway shared bandwidth traffic policing method, including the following steps:

[0020] In a preferred embodiment, before implementing shared bandwidth traffic policing for data packets on P4 programmable devices, it is necessary to configure a P4-assisted cloud EIP gateway shared bandwidth traffic policing function module to implement P4-assisted cloud EIP gateway shared bandwidth traffic policing. The detailed process is as follows:

[0021] Furthermore, when the first data packet enters the first P4 pipeline stage, traffic information of the first data packet is obtained according to the cloud EIP gateway, and input into the speed meter for detection to obtain the first data packet rate, which also includes:

[0022] In the programmable data plane, a timestamp record register, a subdivision speed meter, a priority table, a priority probability table and n packet loss limit capacities are configured;

[0023] Configure the time interval field, color field, up buffer field, and down buffer field for the P4 pipeline data packet header;

[0024] Configure the upper limit of the interval between the arrival of adjacent data packets and set it as the time interval threshold;

[0025] Among them, the time interval field is used to process the output value of the timestamp recording register in combination with the time interval duration threshold, the coloring field is used to store the output value of the subdivision tachometer, the rising buffer field is used to store the output value of the priority table, and the falling buffer field is used to store the output value of the priority probability table.

[0026] In a preferred embodiment, a timestamp recording register, a subdivision speedometer, a priority table, a priority probability table, and n packet loss limit capacities are configured in the programmable data plane. The timestamp recording register is used to record the time when data packets enter and exit the cloud EIP gateway, the time interval between different data packets passing through the P4 pipeline, and other components of preset time data. Preferably, a timestamp processing table is constructed based on the recorded value of the timestamp recording register.

[0027] As shown in Figure 2, the subdivision speed meter is a functional component used to measure and classify the flow rate of data packets. For example, the cloud EIP gateway is tested using the speed meter to obtain the peak information rate, which is set as the shared bandwidth speed limit of the cloud EIP gateway. The preset agreed information rate is set as the subdivision detection rate. The root node of the tree represents the rate interval [0, B], where B is the maximum bandwidth allowed by the link and B is the maximum bandwidth allowed by the link. c The rate limit of the EIP bandwidth package is the agreed information rate mentioned above. B0 is the user-preset rate threshold; a dual-rate three-color token bucket tachometer resource is allocated at the root node of the tree, and the interval [0, B] can be further subdivided into [0, B0], [B0, B c ],[B c , B] three intervals, which constitute the left cotyledon node, the middle cotyledon node and the right cotyledon node, and realize the coloring of different speed measurement results according to the dual-rate three-color token bucket speedometer resource. For example: when the speed meter measures the speed as green, it enters the left cotyledon node [0, B0], and if it is yellow, it enters the middle cotyledon node [B0, B c ], if it is red, then enter the right cotyledon node [B c ,B]. The subdivision speed meter is used to achieve subdivision coloring of the data packet flow rate, which is convenient for implementing classification processing of data packets.

[0028] The priority table analyzes the priority parameters of packets matching a virtual buffer register. The priority probability table analyzes the probability of a packet being flushed from the buffer. The higher the packet priority, the higher the probability of the buffer being flushed. The n packet loss limit refers to the maximum capacity of the virtual buffer register.

[0029] Specifically, the configuration process of a timestamp recording register, a subdivision speed meter, a priority table, a priority probability table, and n packet loss limit capacities is as follows:

[0030] Furthermore, a timestamp record register, a subdivision speed meter, a priority table, a priority probability table, and n packet loss limit capacities are configured in the programmable data plane, including:

[0031] In the programmable data plane, n virtual buffer registers are configured for the cloud EIP gateway shared bandwidth package, wherein the n virtual buffer registers have n priority tags and n limit capacity tags;

[0032] Constructing a priority table according to the n priority labels;

[0033] According to the n priority tags, in combination with a pseudo-random number generator, a priority probability table is configured, wherein the priority probability represents the probability of clearing the cache at different priorities, and the higher the priority, the greater the priority probability;

[0034] configuring n packet loss limit capacities of the n virtual buffer registers according to the n limit capacity labels;

[0035] A subdivision tachometer is configured to monitor the flow rate in the assembly line;

[0036] A timestamp recording register is configured, where the timestamp recording register is used to record the arrival timestamp of a data packet.

[0037] In a preferred embodiment, n virtual buffer registers are configured for each cloud EIP gateway shared bandwidth package in the programmable data plane. Each of the n virtual buffer registers has n priority tags and n limit capacity tags. The n priority tags are determined based on the traffic volume of the n virtual buffer registers. The higher the traffic volume, the larger the priority tag; otherwise, the smaller the priority tag. The n limit capacity tags represent the limit capacity of the n virtual buffer registers. The limit capacity refers to the maximum number of data elements that the buffer can accommodate.

[0038] Furthermore, a priority table is constructed based on the n priority labels, which is used to analyze the traffic size of the data packets and then perform priority division. Preferably, the n priority labels of the priority table are marked in the diffserv field of the IP header, and the diffserv field is deployed in the IP header to implement priority division of the data packets.

[0039] Furthermore, based on the n priority tags, combined with a pseudo-random number generator, a priority probability table is configured, wherein the priority probability represents the cache clearing probability of different priorities. The higher the priority, the greater the priority probability. The pseudo-random number generator is used to generate the priority probability, and its generation principle is: the higher the priority, the greater the priority probability.

[0040] Furthermore, a subdivision tachometer is configured to monitor the flow rate within the pipeline. The detailed process has been described above. A timestamp recording register is configured to record the timestamp of the data packet arriving at the pipeline.

[0041] Furthermore, the detailed process of configuring the time interval field, color field, up buffer field, and down buffer field for the P4 pipeline data packet header is as follows:

[0042] Furthermore, the P4 pipeline data packet header is configured with a time interval field, a color field, an up buffer field, and a down buffer field, including:

[0043] The length of the time interval field is 1 bit, the length of the color field is 2 bits, the length of the up buffer field is log2n bits, and the length of the down buffer field is log2n bits.

[0044] Furthermore, it also includes: a time interval field for analyzing whether the timestamp interval of the adjacent data packets arriving between the Ingress and Egress of the P4 pipeline has timed out, and setting the upper limit of the interval between the adjacent data packets arriving, preferably 30 seconds, that is, the time interval duration threshold described later; when the timestamp interval of the adjacent data packets arriving is greater than the time interval duration threshold, the time interval field is set to 1, and if the timestamp interval of the adjacent data packets arriving is less than or equal to the time interval duration threshold, the time interval field is set to 0. Preferably, in the IP header, the time interval field is represented by hdr.tout1 or hdr.tout0, and the length is 1 bit. The coloring field is used to store the field of the coloring result of the subdivided speedometer, and different field identifiers correspond to different coloring results, and different field identifiers are customized. Preferably, in the IP header, the coloring field is represented by hdr.clr+ characters. The Up Buffer field is used to record the priority of the buffer used when caching and recording overspeed packets. It is preferably represented by hdr.buf_id, where id is the priority of the overspeed packet. The Down Buffer field is used to record the priority of the buffer used when the cache needs to be cleared due to insufficient bandwidth utilization. It is preferably represented by hdr.buf_id, where id is the priority of the buffer needing to be cleared due to insufficient bandwidth utilization. The length of the Up Buffer field is log2n bits, and the length of the Down Buffer field is log2n bits.

[0045] Furthermore, in the P4 pipeline, a SIP-EIP table or a DIP-EIP table is configured. The SIP-EIP table determines the EIP gateway based on the outbound traffic of the packet and the source IP address in the SIP-EIP table. The DIP-EIP table determines the inbound EIP gateway based on the inbound traffic of the packet and the source IP address in the DIP-EIP table. This allows you to determine the EIP gateway for speed testing.

[0046] In summary, as shown in Figure 3, the P4 pipeline is configured with a timestamp processing table, a priority table, a priority probability table, a SIP-EIP table or a DIP-EIP table, a peak broadband speed meter, and a subdivision speed meter to perform pre-marking processing of data packets. t is the timestamp identifier, P is the priority probability, M1~M n is the maximum capacity of n buffers, R1~R n Represents n virtual buffer registers.

[0047] S10: When the first data packet enters the first P4 pipeline stage, traffic information of the first data packet is obtained according to the cloud EIP gateway, and the information is input into the speed meter for detection to obtain the first data packet rate;

[0048] In a preferred embodiment, when the first P4 pipeline segment receives the first data packet, it uses the SIP-EIP table or the DIP-EIP table to determine whether it matches the cloud EIP gateway, obtains the peak bandwidth of the cloud EIP gateway, and extracts the first data packet flow information of the first data packet. The peak bandwidth of the cloud EIP gateway is preferably twice the EIP shared bandwidth limit. The first data packet flow information is measured using a peak broadband speed meter to obtain a first data packet rate representing the flow rate of the first data packet flow.

[0049] S20: When the first data packet rate is less than or equal to the preset peak bandwidth, forward the first data packet to the P4 traffic manager and the second P4 pipeline stage, and obtain the time interval field, the down buffer field, the up buffer field, and the first color field;

[0050] Furthermore, when the first data packet rate is less than or equal to the preset peak bandwidth, the first data packet is forwarded to the P4 traffic manager and the second P4 pipeline segment, and the time interval field, the down buffer field, the up buffer field, and the first coloring field are obtained, including:

[0051] Obtaining a first data packet timestamp identifier of the first data packet;

[0052] Inputting the timestamp identifier of the first data packet into a timestamp processing table to generate a first timestamp record register record value;

[0053] According to the record value of the first timestamp record register, configure the time interval field;

[0054] Matching a first priority field of the first data packet according to a priority table, wherein the first priority field is a boost buffer field;

[0055] Matching the second priority field of the first data packet in the priority probability table according to the result of the pseudo-random number generator, wherein the first priority field is a drop buffer field;

[0056] The first data packet rate is colored according to the subdivision speed meter to obtain a first colored field.

[0057] In a preferred embodiment, when the first data packet rate exceeds the preset peak bandwidth (i.e., the peak bandwidth in step S10), the packet is discarded. As shown in Figure 3, whenever an EIP gateway accesses the P4 pipeline, an overspeed packet discard table is constructed based on the preset peak bandwidth. This determines whether to discard overspeed packets. When the first data packet rate is less than or equal to the preset peak bandwidth, the packet is not discarded. At this point, the time interval field, down buffer field, up buffer field, and first color field are determined based on the timestamp processing table, priority table, priority probability table, and subdivision tachometer.

[0058] S30: When the time interval field is equal to 1, the drop buffer field is set to 0;

[0059] S40: when the time interval field is equal to 0 and when the first coloring field is the first color, subtract one from the drop buffer field;

[0060] S50: when the time interval field is equal to 0, and when the first coloring field is the second color, leaving the down buffer field and the up buffer field unchanged;

[0061] S60: When the time interval field is equal to 0, and when the first coloring field is the third color, increase the up buffer field by one.

[0062] In a preferred embodiment, the buffer update table is configured with processing rules for the time interval field, the buffer drop field, the buffer increase field, and the first coloring field, as detailed below:

[0063] When the time interval field is equal to 1, the down buffer field is set to 0. This indicates that the arrival timestamps of adjacent data packets have timed out, and the virtual buffer corresponding to the EIP needs to be cleared and its size set to 0. When the time interval field is equal to 0, and the first color field is the first color (in the example of Figure 2, the first color is green), the down buffer field is decremented by one, ensuring that it is non-negative. When the time interval field is equal to 0, and the first color field is the second color (in the example of Figure 2, the second color is yellow), the down buffer field and the up buffer field remain unchanged. When the time interval field is equal to 0, and the first color field is the third color (in the example of Figure 2, the third color is red), the up buffer field is incremented by one.

[0064] The embodiment of the present application converts underutilized P4 switch bandwidth resources into virtual buffer resources, defines their priority and size through software, implements EIP traffic control within the pipeline, implements selective packet loss, reduces packet loss rate and jitter under burst traffic, and reduces the actual unit price of traffic used by users' EIP shared bandwidth.

[0065] Furthermore, configuring the time interval field according to the record value of the first timestamp record register includes:

[0066] Configure a time interval threshold and trace back a first time identifier, where the first time identifier is the timestamp register value recorded when the last data packet entered the pipeline;

[0067] Calculating a first time difference between the first timestamp record register record value and the first time identifier;

[0068] When the first time difference is greater than the time interval length threshold, setting the time interval field to 1;

[0069] When the first time difference is less than or equal to the time interval duration threshold, the time interval field is configured to be 0.

[0070] In a preferred embodiment, the processing rules of the timestamp processing table are as follows:

[0071] Configure a time interval threshold, that is, a time interval timeout threshold for adjacent data packets passing through the P4 pipeline, and trace back to the first time identifier, wherein the first time identifier is the timestamp register record value of the previous data packet entering the pipeline; calculate the time interval of the first timestamp record register record value of the current data packet entering the pipeline, and the first time identifier to obtain the first time difference; when the first time difference is greater than the time interval threshold, configure the time interval field to 1; when the first time difference is less than or equal to the time interval threshold, configure the time interval field to 0.

[0072] Furthermore, it also includes:

[0073] When the time interval field is equal to 0, and when the first coloring field is the third color, and when the buffer upgrade field is greater than the corresponding packet loss buffer limit capacity, the first data packet is discarded.

[0074] In a preferred embodiment, as shown in FIG3 , a buffer overflow packet discard table is also configured in the P4 pipeline, and its execution rules are as follows: when the time interval field is equal to 0, and when the first coloring field is the third color, and when the buffer increase field is greater than the corresponding packet loss buffer limit capacity, the first data packet is discarded.

[0075] Furthermore, it also includes:

[0076] When the rate of the first data packet is greater than the preset peak bandwidth, the first data packet is discarded.

[0077] In a preferred embodiment, as shown in FIG3 , an overspeed packet discard table is further configured in the P4 pipeline, and its execution rule is as follows: when the rate of the first data packet is greater than the preset peak bandwidth, the first data packet is discarded.

[0078] In summary, the embodiments of the present application have at least the following technical effects:

[0079] The P4-assisted cloud EIP gateway shared bandwidth traffic policing method provided in an embodiment of the present application obtains the time interval field, down-buffer field, up-buffer field, and first coloring field configured on the P4 traffic manager and the second P4 pipeline segment when the rate of the first data packet is less than or equal to the preset peak bandwidth. According to a specific partitioning rule, a virtual buffer register is selected for buffering the data packet. Compared with a direct packet loss method, this method achieves the technical effects of reducing the burst traffic loss rate, minimizing latency jitter, reducing the actual traffic unit price of the user's shared bandwidth usage, and improving communication quality.

[0080] Example 2

[0081] Based on the same inventive concept as the P4-assisted cloud EIP gateway shared bandwidth traffic policing method in the aforementioned embodiment, as shown in FIG4 , the present application provides a P4-assisted cloud EIP gateway shared bandwidth traffic policing system, including:

[0082] The first processing unit 100 is configured to obtain, from the cloud EIP gateway, traffic information of the first data packet when the first data packet enters the first P4 pipeline stage, and input the traffic information of the first data packet into a speed meter for detection to obtain a first data packet rate;

[0083] The second processing unit 200 is configured to forward the first data packet to the P4 traffic manager and the second P4 pipeline segment when the first data packet rate is less than or equal to the preset peak bandwidth, and obtain the time interval field, the down buffer field, the up buffer field, and the first coloring field;

[0084] The first execution unit 300 is configured to set the drop buffer field to 0 when the time interval field is equal to 1;

[0085] The second execution unit 400 is configured to, when the time interval field is equal to 0 and the first color field is a first color, decrement the drop buffer field by one;

[0086] The third execution unit 500 is configured to, when the time interval field is equal to 0 and the first color field is a second color, keep the down buffer field and the up buffer field unchanged;

[0087] The fourth execution unit 600 is configured to increase the boost buffer field by one when the time interval field is equal to 0 and when the first coloring field is a third color.

[0088] Furthermore, the second processing unit 200 executes the steps including:

[0089] Obtaining a first data packet timestamp identifier of the first data packet;

[0090] Inputting the timestamp identifier of the first data packet into a timestamp processing table to generate a first timestamp record register record value;

[0091] According to the record value of the first timestamp record register, configure the time interval field;

[0092] Matching a first priority field of the first data packet according to a priority table, wherein the first priority field is a boost buffer field;

[0093] Matching the second priority field of the first data packet in the priority probability table according to the result of the pseudo-random number generator, wherein the first priority field is a drop buffer field;

[0094] The first data packet rate is colored according to the subdivision speed meter to obtain a first colored field.

[0095] Furthermore, the second processing unit 200 executes the steps including:

[0096] Configure a time interval threshold and trace back a first time identifier, where the first time identifier is the timestamp register value recorded when the last data packet entered the pipeline;

[0097] Calculating a first time difference between the first timestamp record register record value and the first time identifier;

[0098] When the first time difference is greater than the time interval length threshold, setting the time interval field to 1;

[0099] When the first time difference is less than or equal to the time interval duration threshold, the time interval field is configured to be 0.

[0100] Furthermore, the fourth execution unit 600 executes the steps further including:

[0101] When the time interval field is equal to 0, and when the first coloring field is the third color, and when the buffer upgrade field is greater than the corresponding packet loss buffer limit capacity, the first data packet is discarded.

[0102] Furthermore, the second processing unit 200 executes the following steps:

[0103] When the rate of the first data packet is greater than the preset peak bandwidth, the first data packet is discarded.

[0104] Furthermore, the first processing unit 100 executes the steps further including:

[0105] In the programmable data plane, a timestamp record register, a subdivision speed meter, a priority table, a priority probability table and n packet loss limit capacities are configured;

[0106] Configure the time interval field, color field, up buffer field, and down buffer field for the P4 pipeline data packet header;

[0107] Configure the upper limit of the interval between the arrival of adjacent data packets and set it as the time interval threshold;

[0108] Among them, the time interval field is used to process the output value of the timestamp recording register in combination with the time interval duration threshold, the coloring field is used to store the output value of the subdivision tachometer, the rising buffer field is used to store the output value of the priority table, and the falling buffer field is used to store the output value of the priority probability table.

[0109] Furthermore, the first processing unit 100 executes the steps further including:

[0110] In the programmable data plane, n virtual buffer registers are configured for the cloud EIP gateway shared bandwidth package, wherein the n virtual buffer registers have n priority tags and n limit capacity tags;

[0111] Constructing a priority table according to the n priority labels;

[0112] According to the n priority tags, in combination with a pseudo-random number generator, a priority probability table is configured, wherein the priority probability represents the probability of clearing the cache at different priorities, and the higher the priority, the greater the priority probability;

[0113] configuring n packet loss limit capacities of the n virtual buffer registers according to the n limit capacity labels;

[0114] A subdivision tachometer is configured to monitor the flow rate in the assembly line;

[0115] A timestamp recording register is configured, where the timestamp recording register is used to record the arrival timestamp of a data packet.

[0116] Furthermore, the second processing unit 200 executes the following steps:

[0117] The length of the time interval field is 1 bit, the length of the color field is 2 bits, the length of the up buffer field is log2n bits, and the length of the down buffer field is log2n bits.

[0118] Furthermore, the second processing unit 200 executes the following steps:

[0119] The buffer up field is used to record the priority of the buffer used when overspeed data packets need to be cached, and the buffer down field is used to record the priority of the buffer used when the cache needs to be cleared due to insufficient bandwidth utilization.

[0120] This specification and drawings are merely illustrative of the present application and are intended to cover any and all modifications, variations, combinations, or equivalents within the scope of this application. Obviously, those skilled in the art may make various modifications and variations to this application without departing from the scope of this application. Thus, this application is intended to include such modifications and variations as fall within the scope of this application and its equivalents.

Claims

1. A P4-assisted cloud EIP gateway shared bandwidth traffic monitoring method, It is characterized in that include: When the first data packet enters the first P4 pipeline stage, the flow information of the first data packet is obtained according to the cloud EIP gateway, and the flow information is input into the speed meter for detection to obtain the first data packet rate; When the first data packet rate is less than or equal to the preset peak bandwidth, forward the first data packet to the P4 traffic manager and the second P4 pipeline segment, and obtain the time interval field, the down buffer field, the up buffer field and the first coloring field; When the time interval field is equal to 1, the drop buffer field is set to 0; When the time interval field is equal to 0, and when the first color field is the first color, the drop buffer field is reduced by one; When the time interval field is equal to 0, and when the first color field is the second color, the down buffer field and the up buffer field are left unchanged; When the time interval field is equal to 0, and when the first color field is the third color, the up buffer field is incremented by one.

2. The method according to claim 1, It is characterized in that When the first data packet rate is less than or equal to the preset peak bandwidth, the first data packet is forwarded to the P4 traffic manager and the second P4 pipeline segment, and the time interval field, the down buffer field, the up buffer field and the first coloring field are obtained, including: Obtain a first data packet timestamp identifier of the first data packet; Inputting the timestamp identifier of the first data packet into a timestamp processing table to generate a first timestamp record register record value; According to the record value of the first timestamp record register, configure the time interval field; According to the priority table, matching a first priority field of the first data packet, wherein the first priority field is a boost buffer field; Matching the second priority field of the first data packet in the priority probability table according to the result of the pseudo-random number generator, wherein the first priority field is a drop buffer field; The first data packet rate is colored according to the subdivision speed meter to obtain a first colored field.

3. The method according to claim 2, It is characterized in that Configuring the time interval field according to the first timestamp record register record value includes: Configure a time interval duration threshold and trace back a first time identifier, wherein the first time identifier is a timestamp register record value of the last data packet entering the pipeline; Calculate a first time difference between the first timestamp record register record value and the first time identifier; When the first time difference is greater than the time interval duration threshold, configuring the time interval field to be 1; When the first time difference is less than or equal to the time interval duration threshold, the time interval field is configured to be 0.

4. The method according to claim 1, It is characterized in that Also includes: When the time interval field is equal to 0, and when the first coloring field is the third color, and when the buffer upgrade field is greater than the corresponding packet loss buffer limit capacity, the first data packet is discarded.

5. The method according to claim 1, It is characterized in that Also includes: When the rate of the first data packet is greater than the preset peak bandwidth, the first data packet is discarded.

6. The method according to claim 1, It is characterized in that When the first data packet enters the first P4 pipeline stage, the flow information of the first data packet is obtained according to the cloud EIP gateway, and the flow information is input into the speed meter for detection to obtain the first data packet rate. The above also includes: In the programmable data plane, a timestamp record register, a subdivision speed meter, A priority table, a priority probability table and n packet loss limit capacities; For the P4 pipeline data packet header, configure the time interval field, the color field, the up buffer field and the down buffer field; Configure the upper limit of the interval between the arrival of adjacent data packets and set it as the time interval threshold; Among them, the time interval field is used to process the output value of the timestamp recording register in combination with the time interval duration threshold, the coloring field is used to store the output value of the subdivision tachometer, the up buffer field is used to store the output value of the priority table, and the down buffer field is used to store the output value of the priority probability table.

7. The method according to claim 6, It is characterized in that In the programmable data plane, a timestamp record register, a subdivision speed meter, a priority table, a priority probability table and n packet loss limit capacities are configured, including: In the programmable data plane, n virtual buffer registers are configured for the cloud EIP gateway shared bandwidth package, wherein the n virtual buffer registers have n priority labels and n limit capacity labels; Constructing a priority table according to the n priority labels; According to the n priority tags, in combination with a pseudo-random number generator, a priority probability table is configured, wherein the priority probability represents the probability of clearing caches of different priorities, and the higher the priority, the greater the priority probability; According to the n limit capacity labels, configure n packet loss limit capacities of the n virtual buffer registers; A subdivision tachometer is configured, and the subdivision tachometer is used to monitor the flow rate in the assembly line; A timestamp recording register is configured, where the timestamp recording register is used to record the arrival timestamp of the data packet.

8. The method according to claim 2, It is characterized in that For the P4 pipeline data packet header, configure the time interval field, color field, up buffer field and down buffer field, including: The length of the time interval field is 1 bit, the length of the color field is 2 bits, and the length of the buffer field is log 2 n bits, the length of the drop buffer field is log 2 n bits.

9. The method according to claim 1, It is characterized in that Also includes: The buffer up field is used to record the priority of the buffer used when the overspeed data packet needs to be cached, and the buffer down field is used to record the priority of the buffer used when the bandwidth utilization is insufficient and the cache needs to be cleared.

10. P4-assisted cloud EIP gateway shared bandwidth traffic monitoring system, It is characterized in that include: The first processing unit is configured to obtain, according to the cloud EIP gateway, flow information of the first data packet when the first data packet enters the first P4 pipeline stage, input the flow information of the first data packet into the speed meter for detection, and obtain the first data packet rate; A second processing unit is configured to forward the first data packet to the P4 traffic manager and the second P4 pipeline segment when the first data packet rate is less than or equal to the preset peak bandwidth, and obtain the time interval field, the down buffer field, the up buffer field and the first coloring field; A first execution unit, configured to set the drop buffer field to 0 when the time interval field is equal to 1; A second execution unit, configured to, when the time interval field is equal to 0 and when the first coloring field is a first color, reduce the drop buffer field by one; A third execution unit, configured to keep the down buffer field and the up buffer field unchanged when the time interval field is equal to 0 and when the first coloring field is a second color; The fourth execution unit is configured to increase the boost buffer field by one when the time interval field is equal to 0 and when the first coloring field is a third color.

Citation Information

Patent Citations

  • Message flow monitoring system and method based on switch

    CN113839885A

  • Host side data packet processing delay measurement method based on software defined network

    CN114710424A

  • Large-flow quintuple query method based on P4 programmable switch

    CN115967673A

  • Programmable traffic management engine

    US20220109613A1

  • Nodes and methods for handling packet flows

    WO2016198112A1