CN116760774B - Data processing method and device, electronic equipment and storage medium - Google Patents

Data processing method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN116760774B
CN116760774B CN202311024566.3A CN202311024566A CN116760774B CN 116760774 B CN116760774 B CN 116760774B CN 202311024566 A CN202311024566 A CN 202311024566A CN 116760774 B CN116760774 B CN 116760774B
Authority
CN
China
Prior art keywords
tokens
uplink
downlink
token
flow
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202311024566.3A
Other languages
Chinese (zh)
Other versions
CN116760774A (en
Inventor
王福成
胡剑飞
谢昌龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Mobile Communications Group Co Ltd
China Mobile Suzhou Software Technology Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
China Mobile Suzhou Software Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Mobile Communications Group Co Ltd, China Mobile Suzhou Software Technology Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN202311024566.3A priority Critical patent/CN116760774B/en
Publication of CN116760774A publication Critical patent/CN116760774A/en
Application granted granted Critical
Publication of CN116760774B publication Critical patent/CN116760774B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/215Flow control; Congestion control using token-bucket

Landscapes

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

Abstract

The invention provides a data processing method, a device, electronic equipment and a storage medium, and relates to the technical field of communication, wherein the method comprises the following steps: acquiring the uplink flow and the downlink flow of a target gateway in a plurality of gateways; and under the condition that the difference value between the uplink flow and the downlink flow is larger than or equal to a preset difference value, adjusting the number of uplink tokens and the number of downlink tokens in a first token bucket corresponding to the target gateway, wherein the uplink tokens are used for controlling the uplink flow, and the downlink tokens are used for controlling the downlink flow. The number of uplink tokens and the number of downlink tokens in the first token bucket corresponding to the target gateway are adjusted, so that the number of the uplink tokens and the number of the downlink tokens in the first token bucket are in a stable difference interval, the situation of unidirectional traffic burst is relieved, and the stability of service quality is improved.

Description

Data processing method and device, electronic equipment and storage medium
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a data processing method, a data processing device, an electronic device, and a storage medium.
Background
Distributed data processing is a basic stone of information technology, has the advantages of compatibility, usability and the like, and is widely applied to storage systems. Because the importance of the services is different, different service quality guarantees are needed, and the service quality of the core and sensitive high-priority service is guaranteed not to be impacted by other applications. Therefore, the demand for quality of service (Quality of service, qos) for distributed storage is increasing.
However, when faced with situations such as unidirectional traffic bursts, the existing data processing method is prone to traffic imbalance, resulting in poor quality of service stability.
Disclosure of Invention
The embodiment of the invention provides a data processing method, a data processing device, electronic equipment and a storage medium, which are used for solving the problem of poor service quality stability when unidirectional traffic bursts.
In order to solve the technical problems, the invention is realized as follows:
in a first aspect, an embodiment of the present invention provides a data processing method, including:
acquiring the uplink flow and the downlink flow of a target gateway in a plurality of gateways;
and under the condition that the difference value between the uplink flow and the downlink flow is larger than or equal to a preset difference value, adjusting the number of uplink tokens and the number of downlink tokens in a first token bucket corresponding to the target gateway, wherein the uplink tokens are used for controlling the uplink flow, and the downlink tokens are used for controlling the downlink flow.
Optionally, the adjusting the number of uplink tokens and the number of downlink tokens in the first token bucket corresponding to the target gateway when the difference between the uplink traffic and the downlink traffic is greater than or equal to a preset difference includes:
when the uplink flow is greater than the downlink flow and the difference between the uplink flow and the downlink flow is greater than or equal to a preset difference, determining the difference between the uplink flow and the downlink flow as a first difference;
and converting part of tokens in the downlink tokens into uplink tokens based on the first difference value.
Optionally, the adjusting the number of uplink tokens and the number of downlink tokens in the first token bucket corresponding to the target gateway when the difference between the uplink traffic and the downlink traffic is greater than or equal to a preset difference includes:
when the uplink flow is smaller than the downlink flow and the difference between the uplink flow and the downlink flow is larger than or equal to a preset difference, determining the difference between the uplink flow and the downlink flow as a second difference;
and converting part of tokens in the uplink tokens into downlink tokens based on the second difference value.
Optionally, the conversion between the uplink token and the downlink token includes at least one of the following:
transferring part of the tokens in the uplink token from a first area of a first token bucket to a second area of the first token bucket, or transferring part of the tokens in the downlink token from the second area of the first token bucket to the first area of the first token bucket, wherein the first area of the first token bucket is used for storing the uplink token, and the second area of the first token bucket is used for storing the downlink token;
and converting the color of the token transferred to the second area in the uplink token from a first color to a second color, or converting the color of the token transferred to the first area in the downlink token from the second color to the first color, wherein the first color is used for identifying the uplink token, and the second color is used for identifying the downlink token.
Optionally, after the adjusting the number of uplink tokens and the number of downlink tokens in the first token bucket corresponding to the target gateway, the method further includes:
determining the consumption quantity of the tokens in a first token bucket corresponding to the target gateway according to the adjusted quantity of the uplink tokens and the adjusted quantity of the downlink tokens, wherein the consumption quantity of the tokens comprises the consumption quantity of the uplink tokens and the consumption quantity of the downlink tokens;
And determining the token distribution quantity in the current period in a second token bucket corresponding to the target gateway according to the token consumption quantity in the first token bucket corresponding to the target gateway.
Optionally, the determining, according to the number of consumed tokens in the first token bucket corresponding to the target gateway, the number of distributed tokens in the current period in the second token bucket corresponding to the target gateway includes:
and determining the token distribution quantity in the current period in a second token bucket corresponding to the target gateway according to the consumption quantity of tokens in the first token bucket corresponding to the target gateway in the plurality of gateways, the sum of the consumption quantity of tokens in the first token bucket corresponding to each gateway in the plurality of gateways and the total quota of the whole data directory.
Optionally, after the adjusting the number of uplink tokens and the number of downlink tokens in the first token bucket corresponding to the target gateway, the method further includes:
and recording and storing the number of the adjusted uplink tokens and the number of the downlink tokens.
In a second aspect, an embodiment of the present invention further provides a data processing apparatus, including:
the acquisition module is used for acquiring the uplink flow and the downlink flow of a target gateway in the plurality of gateways;
The adjustment module is used for adjusting the number of uplink tokens and the number of downlink tokens in the first token bucket corresponding to the target gateway when the difference value between the uplink flow and the downlink flow is greater than or equal to a preset difference value, wherein the uplink tokens are used for controlling the uplink flow, and the downlink tokens are used for controlling the downlink flow.
Optionally, the adjusting module includes:
the first determining submodule is used for determining the difference value between the uplink flow and the downlink flow as a first difference value when the uplink flow is larger than the downlink flow and the difference value between the uplink flow and the downlink flow is larger than or equal to a preset difference value;
and the first conversion sub-module is used for converting part of the tokens in the downlink tokens into uplink tokens based on the first difference value.
Optionally, the adjusting module includes:
the second determining submodule is used for determining the difference value between the uplink flow and the downlink flow as a second difference value when the uplink flow is smaller than the downlink flow and the difference value between the uplink flow and the downlink flow is larger than or equal to a preset difference value;
and the second conversion sub-module is used for converting part of the tokens in the uplink tokens into downlink tokens based on the second difference value.
Optionally, the conversion between the uplink token and the downlink token includes at least one of the following:
transferring part of the tokens in the uplink token from a first area of a first token bucket to a second area of the first token bucket, or transferring part of the tokens in the downlink token from the second area of the first token bucket to the first area of the first token bucket, wherein the first area of the first token bucket is used for storing the uplink token, and the second area of the first token bucket is used for storing the downlink token;
and converting the color of the token transferred to the second area in the uplink token from a first color to a second color, or converting the color of the token transferred to the first area in the downlink token from the second color to the first color, wherein the first color is used for identifying the uplink token, and the second color is used for identifying the downlink token.
Optionally, the apparatus further comprises:
the first determining module is used for determining the consumption quantity of the tokens in the first token bucket corresponding to the target gateway according to the adjusted quantity of the uplink tokens and the adjusted quantity of the downlink tokens, wherein the consumption quantity of the tokens comprises the consumption quantity of the uplink tokens and the consumption quantity of the downlink tokens;
And the second determining module is used for determining the token distribution number in the current period in the second token bucket corresponding to the target gateway according to the token consumption number in the first token bucket corresponding to the target gateway.
Optionally, the determining, according to the number of consumed tokens in the first token bucket corresponding to the target gateway, the number of distributed tokens in the current period in the second token bucket corresponding to the target gateway includes:
and determining the token distribution quantity in the current period in a second token bucket corresponding to the target gateway according to the consumption quantity of tokens in the first token bucket corresponding to the target gateway in the plurality of gateways, the sum of the consumption quantity of tokens in the first token bucket corresponding to each gateway in the plurality of gateways and the total quota of the whole data directory.
Optionally, the apparatus further comprises:
and the recording module is used for recording and storing the number of the adjusted uplink tokens and the number of the downlink tokens.
In a third aspect, embodiments of the present invention also provide an electronic device, including a transceiver and a processor,
the transceiver is used for acquiring the uplink flow and the downlink flow of a target gateway in the plurality of gateways;
the processor is configured to adjust, when a difference between the uplink flow and the downlink flow is greater than or equal to a preset difference, a number of uplink tokens and a number of downlink tokens in a first token bucket corresponding to the target gateway, where the uplink tokens are used to control the uplink flow, and the downlink tokens are used to control the downlink flow.
In a fourth aspect, an embodiment of the present invention further provides an electronic device, including: the data processing method comprises a processor, a memory and a program stored in the memory and capable of running on the processor, wherein the program is executed by the processor to realize the steps of the data processing method.
In a fifth aspect, an embodiment of the present invention further provides a computer readable storage medium, where a computer program is stored, where the computer program is executed by a processor to implement the steps of the data processing method described above.
In the embodiment of the invention, an uplink token is arranged in a first token bucket corresponding to a target gateway to control the uplink flow of the target gateway, a downlink token is arranged in the first token bucket corresponding to the target gateway to control the downlink flow of the target gateway, a token balance mechanism is triggered by detecting the uplink flow and the downlink flow of the target gateway, and the number of the uplink tokens and the number of the downlink tokens in the first token bucket are in a stable difference interval by adjusting the number of the uplink tokens and the number of the downlink tokens in the first token bucket under the condition that the difference between the uplink flow and the downlink flow of the target gateway is larger than or equal to a preset difference value, so that the situation of unidirectional flow burst is relieved, and the stability of service quality is improved. And the scheme without a central architecture is adopted, so that the performance requirement of multi-gateway concurrent service is met.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the embodiments or the description of the prior art will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is one of the flowcharts of a data processing method according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a design architecture of a data processing method according to an embodiment of the present invention;
FIG. 3 is a second flowchart of a data processing method according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of a token balancing mechanism for a data processing method according to an embodiment of the present invention;
FIG. 5 is a schematic diagram of a persistent module according to an embodiment of the present invention;
FIG. 6 is a schematic diagram of a data processing apparatus according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all embodiments of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The architecture of distributed data storage mainly includes: with a centered architecture and a non-centered architecture. For the Qos function with the central architecture, although the unified decision can be made on the whole, under the high concurrency service scene, the central node is easy to become a bottleneck, influences the service performance, has single-point fault risk and has limited lateral expansion capability. For Qos functions without a central architecture, the Qos functions are generally served in a single gateway manner, and when the Qos functions face unidirectional traffic bursts and other conditions, traffic imbalance is easy to occur, so that stability of service quality is poor. In order to solve the above problems, the present application provides a data processing method.
Referring to fig. 1, fig. 1 is one of flowcharts of a data processing method according to an embodiment of the present application, as shown in fig. 1, the method includes the following steps:
step 101, obtaining the uplink flow and the downlink flow of a target gateway in a plurality of gateways;
in this embodiment, a centerless architecture is adopted, so that when a plurality of gateways serve concurrently, the service performance is improved. The number of access users and service pressure of each gateway in the plurality of gateways can be continuously changed and uneven, the implementation of the Qos function can be in the gateway part of each node, and the Qos service of each node can comprise three functional modules: the system comprises a persistence module, a calculation distribution module and a flow control module, as shown in fig. 2 to 4.
The flow management and control module can adopt a Token-Bucket (Token-Bucket) mechanism to count and manage the flow. The flow management and control module is provided with a first token bucket (marked as a token bucket 1) and a second token bucket (marked as a token bucket 2), and after input/output requests sequentially acquire tokens in the token bucket 1 and tokens in the token bucket 2, subsequent processing can be performed. The service pressure of the target gateway is larger as the io request quantity of the target gateway is larger, the service pressure condition of the target gateway is acquired through the flow management and control module and reported to the persistence module, and the service pressure can comprise uplink flow and downlink flow.
The upstream traffic and the downstream traffic in different gateways are different, for example, a unidirectional traffic burst occurs in a target gateway in multiple gateways, that is, the difference between the upstream traffic and the downstream traffic is larger in a certain period, so that the upstream or downstream pressure of the traffic is further adjusted in step 102.
And 102, adjusting the number of uplink tokens and the number of downlink tokens in a first token bucket corresponding to the target gateway when the difference value between the uplink flow and the downlink flow is greater than or equal to a preset difference value, wherein the uplink tokens are used for controlling the uplink flow, and the downlink tokens are used for controlling the downlink flow.
The first token bucket corresponding to the target gateway is divided, so that the first token bucket is actually divided into two sub-parts of an uplink token and a downlink token, and the number of the uplink tokens and the number of the downlink tokens are equally divided in an initial state. Before the terminal sends a request to the server, the terminal needs to acquire an uplink token, the server returns the request to acquire a downlink token, namely, the uplink token controls uplink flow, and the downlink token controls downlink flow.
Considering the interference factors such as processing capacity of a client/server of the distributed data storage, retransmission of a transmission control protocol (Transmission Control Protocol, TCP) and the like, larger deviation of uplink traffic and downlink traffic of a target gateway in a certain period can be caused, namely, larger deviation of usage rates of an uplink token and a downlink token can be caused. And under the condition that the difference value is greater than or equal to a preset difference value, triggering a token balance mechanism to adjust the number of uplink tokens and the number of downlink tokens in a first token bucket corresponding to the target gateway, so that the number of the uplink tokens and the number of the downlink tokens in the first token bucket are in a stable difference value interval. Thereby alleviating the situation of unidirectional traffic bursts.
It should be understood that the target gateway is any gateway of a plurality of gateways, and other gateways of the plurality of gateways may have the same structure as the target gateway, which is not described herein.
In the embodiment of the invention, an uplink token is arranged in a first token bucket corresponding to a target gateway to control the uplink flow of the target gateway, a downlink token is arranged in the first token bucket corresponding to the target gateway to control the downlink flow of the target gateway, a token balance mechanism is triggered by detecting the uplink flow and the downlink flow of the target gateway, and the number of the uplink tokens and the number of the downlink tokens in the first token bucket are in a stable difference interval by adjusting the number of the uplink tokens and the number of the downlink tokens in the first token bucket under the condition that the difference between the uplink flow and the downlink flow of the target gateway is larger than or equal to a preset difference value, so that the situation of unidirectional flow burst is relieved, and the stability of service quality is improved. And the scheme without a central architecture is adopted, so that the performance requirement of multi-gateway concurrent service is met.
When the difference value between the uplink flow and the downlink flow is greater than or equal to the preset difference value, a token balancing mechanism is triggered, and the specific flow is as follows:
And dividing the first token bucket corresponding to each gateway in the plurality of gateways, taking a target gateway in the plurality of gateways as an example. Dividing a first token bucket corresponding to the target gateway, marking the token in the first token bucket in an equal division manner after updating each period, and marking an uplink token as T u The downstream token is marked T d . The first token bucket may be differentiated by a different color, for example, upstream tokens may be identified by yellow and downstream tokens may be identified by red.
And obtaining the uplink flow and the downlink flow of the target gateway so as to keep the difference value between the number of uplink tokens and the number of downlink tokens in the first token bucket in a stable difference value interval. It should be understood that, before the request (i.e. the uplink traffic) sent by the terminal to the server side is processed, the uplink token needs to be acquired, and the server side returns the request (i.e. the downlink traffic) to the terminal to acquire the downlink token, that is, the number of the uplink traffic corresponds to the number of the consumed uplink tokens, and the number of the downlink traffic corresponds to the number of the consumed downlink tokens. Thus, the difference between the upstream traffic and the downstream traffic can be characterized by the difference between the upstream token consumption number and the downstream token consumption number.
The conditions that trigger the token balancing mechanism may be set to be:. Wherein T is ru The number of uplink tokens in the first token bucket corresponding to the target gateway can be T rd The number of the downlink tokens in the first token bucket corresponding to the target gateway may be X% may be a preset value, for example, may be 30%, and the specific value may be adjusted according to the actual situation, which is not limited herein. In the initial state, T in the first token bucket rd And T is ru Equal and T rd And T is ru The sum is the Limit of the whole data catalogue total Is a number of (3). For example, limit total At 50 ten thousand, T in initial state rd Equal to T ru 25 ten thousand. As the io requests in the target gateway differ in the number of consumption of upstream and/or downstream tokens in the first token bucket, therefore T rd And T is ru An imbalance occurs between them. When the difference between the upstream flow and the downstream flow is greater than or equal to the preset difference, T rd And T is ru In the case of a difference of greater than or equal to the preset difference, i.e. +.>Under the condition of (1), adjusting the number of uplink tokens and the number of downlink tokens in a first token bucket corresponding to the target gateway so that T in the first token bucket rd And T is ru And the balance is achieved again, so that the situation of unidirectional traffic burst is relieved, and the stability of the service quality is improved.
It should be noted that, for other gateways in the multiple gateways, the dynamic adjustment of the uplink token number and the downlink token number in the corresponding first token bucket may be performed with reference to the target gateway to achieve the same technical effects, which is not described herein again.
Optionally, the adjusting the number of uplink tokens and the number of downlink tokens in the first token bucket corresponding to the target gateway when the difference between the uplink traffic and the downlink traffic is greater than or equal to a preset difference includes:
when the uplink flow is greater than the downlink flow and the difference between the uplink flow and the downlink flow is greater than or equal to a preset difference, determining the difference between the uplink flow and the downlink flow as a first difference;
and converting part of tokens in the downlink tokens into uplink tokens based on the first difference value.
In an embodiment, limit of the first token bucket corresponding to the target gateway is used total The number is 100 ten thousand as an example, and in the initial stateT rd And T is ru 50 ten thousand each. When the uplink traffic is greater than the downlink traffic in the target gateway, for example, the uplink traffic is 40 ten thousand and the downlink traffic is 10 ten thousand in a period, the number of consumed uplink tokens is 40 ten thousand, and the number of consumed downlink tokens is 10 ten thousand. Thus, the current upstream token holds (or: remains) a number T ru 10 ten thousand current downstream tokens hold number T rd 40 ten thousand. The preset value X% for setting the trigger token balance mechanism may be 30%. At this time T ru And T is rd The following are satisfied:. That is, the difference between the upstream flow and the downstream flow is greater than or equal to the preset difference, the upstream token conversion is triggered, and the difference between the upstream flow and the downstream flow (i.e. T ru And T is rd Is determined as a first difference, which in this example is: />
And converting part of the tokens in the downlink tokens into uplink tokens based on the first difference value, so that the number of the uplink tokens and the number of the downlink tokens in the first token bucket reach balance again, thereby relieving the situation of unidirectional flow burst and improving the stability of service quality.
Optionally, a part of the downlink tokens are converted into uplink tokens, including at least one of the following:
transferring part of the tokens in the downlink token from the second area of the first token bucket to the first area of the first token bucket, wherein the first area of the first token bucket is used for storing uplink tokens, and the second area of the first token bucket is used for storing downlink tokens;
and converting the color of the tokens transferred to the first area in the downlink tokens from the second color into the first color, wherein the first color is used for identifying uplink tokens, and the second color is used for identifying downlink tokens.
Specifically, when T ru <<T rd I.e. when the upstream flow is greater than the downstream flow and the difference between the upstream flow and the downstream flow is greater than or equal to the preset difference, based on T ru And T is rd A first difference between the downstream tokens T d Part of the tokens in (1) are marked as T u . In part downstream tokens (T d ) Up token (T) u ) In the conversion process of (2), the part (T) originally used for monitoring the downlink flow d Changing position in first token bucket, i.e. part T originally used for monitoring downstream traffic d Moving from the second area of the first token bucket to the first area of the first token bucket through the balancing channel and/or the portion T originally used for monitoring the downstream traffic d Changing the colour of tokens, i.e. the part T originally intended for monitoring downstream traffic d Converted from a second colour (e.g. red) to a first colour (e.g. yellow) so that this portion T d Changing to T for monitoring upstream traffic u
Wherein T is d Conversion to T u The number of (2) is:
after the conversion of the downlink token to the uplink token part is completed, the number of the uplink tokens in the first token bucket corresponding to the target gateway is as follows: t'. ru =T ru +T rc1 10 ten thousand+15 ten thousand=25 ten thousand; after the conversion of the downlink token to the uplink token part is completed, the number of the downlink tokens in the first token bucket corresponding to the target gateway is as follows: t'. rd =T rd —T rc1 =40-15-25-ten thousand. Thus, after finishing the conversion from the downstream token to the upstream token, T 'in the first token bucket corresponding to the target gateway' ru And T' rd And the balance is achieved again, so that the situation of unidirectional traffic burst is relieved, and the stability of the service quality is improved.
Further, after each update, marking the tokens in the first token bucket in an equal division manner, so that: t'. ru =T’ rd =0.5×Limit total
Optionally, the adjusting the number of uplink tokens and the number of downlink tokens in the first token bucket corresponding to the target gateway when the difference between the uplink traffic and the downlink traffic is greater than or equal to a preset difference includes:
when the uplink flow is smaller than the downlink flow and the difference between the uplink flow and the downlink flow is larger than or equal to a preset difference, determining the difference between the uplink flow and the downlink flow as a second difference;
and converting part of tokens in the uplink tokens into downlink tokens based on the second difference value.
In another embodiment, limit of the first token bucket corresponding to the target gateway is used total 100 ten thousand as an example, T in the initial state rd And T is ru 50 ten thousand each. When the uplink traffic is smaller than the downlink traffic in the target gateway, for example, the uplink traffic is 0 ten thousand and the downlink traffic is 50 ten thousand in a period, the number of consumed uplink tokens is 0 ten thousand and the number of consumed downlink tokens is 50 ten thousand. Thus, the current upstream token holds (or: remains) a number T ru 50 ten thousand current downstream tokens hold number T rd 0 ten thousand. The preset value X% for setting the trigger token balance mechanism may be 30%. At this time T ru And T is rd The following are satisfied:. That is, the difference between the upstream flow and the downstream flow is greater than or equal to the preset difference, the downstream token conversion action is triggered, and the difference between the upstream flow and the downstream flow (i.e. T ru And T is rd Is determined as a second difference, which in this example is: />
And converting part of the tokens in the uplink tokens into downlink tokens based on the second difference value, so that the number of the uplink tokens and the number of the downlink tokens in the first token bucket reach balance again, thereby relieving the situation of unidirectional flow burst and improving the stability of service quality.
Optionally, a part of the uplink tokens are converted into downlink tokens, including at least one of the following:
transferring part of the tokens in the uplink token from a first area of a first token bucket to a second area of the first token bucket, wherein the first area of the first token bucket is used for storing the uplink token, and the second area of the first token bucket is used for storing the downlink token;
and converting the color of the tokens transferred to the second area in the uplink tokens from a first color to a second color, wherein the first color is used for identifying the uplink tokens, and the second color is used for identifying the downlink tokens.
Specifically, when T ru >>T rd I.e. under the condition that the upstream flow is smaller than the downstream flow and the difference between the upstream flow and the downstream flow is larger than or equal to the preset difference, the method is based on T ru And T is rd A second difference between the two, will go up the token T u Part of the tokens in (1) are marked as T d . In part upstream token (T) u ) Downstream token (T) d ) In the switching process of (2), the part (T) originally used for monitoring the uplink flow u Changing position in first token bucket, i.e. part T originally used for monitoring upstream traffic u Moving from a first area of a first token bucket to a second area of said first token bucket through a balancing channel and/or a portion T originally intended for monitoring upstream traffic u Changing the colour of tokens, i.e. the part T originally intended for monitoring upstream traffic u Converted from a first colour (e.g. yellow) to a second colour (e.g. red) so that this portion T u Changing to T for monitoring downstream traffic d
Wherein T is u Conversion to T d The number of (2) is:
after the conversion from the uplink token to the downlink token is completed, the number of the uplink tokens in the first token bucket corresponding to the target gateway is as follows: t'. ru =T ru —T rc2 =50-25-ten thousand; completing the uplink token downAfter the conversion of the token part, the number of the downlink tokens in the first token bucket corresponding to the target gateway is as follows: t'. rd =T rd +T rc2 =0ten thousand+25ten thousand=25ten thousand. Thus, after finishing the conversion from the downstream token to the upstream token, T 'in the first token bucket corresponding to the target gateway' ru And T' rd And the balance is achieved again, so that the situation of unidirectional traffic burst is relieved, and the stability of the service quality is improved.
Further, after each update, marking the tokens in the first token bucket in an equal division manner, so that: t'. ru =T’ rd =0.5×Limit total
In other implementations, limit of the first token bucket corresponding to the target gateway is used total 100 ten thousand as an example, T in the initial state rd And T is ru 50 ten thousand each. When the uplink traffic is smaller than the downlink traffic in the target gateway, for example, the uplink traffic is 0 ten thousand and the downlink traffic is 60 ten thousand in a period, the number of consumed uplink tokens is 0 ten thousand and the number of consumed downlink tokens is 50 ten thousand. At this time, for the part (10 ten thousand) exceeding 50 ten thousand in the downlink flow, the downlink token can be acquired in the next period, so as to reduce the situation of data packet loss and improve the stability of the service quality.
Optionally, after the adjusting the number of uplink tokens and the number of downlink tokens in the first token bucket corresponding to the target gateway, the method further includes:
and recording and storing the number of the adjusted uplink tokens and the number of the downlink tokens.
In one example, as shown in fig. 5, there is a hybrid deployment remote dictionary service (Remote Dictionary Serve, redis) database cluster in the server cluster, where the database contains a hash table named with each node identification number (Identity document, id). And each gateway takes 5s as a persistence period, updates the number of tokens consumed in a first token bucket of the last period of the flow management and control module in a hash table of the gateway id, and records and stores the number of adjusted uplink tokens and the number of adjusted downlink tokens in a value.
Optionally, after the adjusting the number of uplink tokens and the number of downlink tokens in the first token bucket corresponding to the target gateway, the method further includes:
determining the consumption quantity of the tokens in a first token bucket corresponding to the target gateway according to the adjusted quantity of the uplink tokens and the adjusted quantity of the downlink tokens, wherein the consumption quantity of the tokens comprises the consumption quantity of the uplink tokens and the consumption quantity of the downlink tokens;
and determining the token distribution quantity in the current period in a second token bucket corresponding to the target gateway according to the token consumption quantity in the first token bucket corresponding to the target gateway.
The determining the token distribution number in the current period in the second token bucket corresponding to the target gateway according to the token consumption number in the first token bucket corresponding to the target gateway comprises the following steps:
and determining the token distribution quantity in the current period in a second token bucket corresponding to the target gateway according to the consumption quantity of tokens in the first token bucket corresponding to the target gateway in the plurality of gateways, the sum of the consumption quantity of tokens in the first token bucket corresponding to each gateway in the plurality of gateways and the total quota of the whole data directory.
Specifically, determining the number of token allocation in the current period in the second token bucket corresponding to the target gateway can be determined according to the following formula:
wherein Qos i Allocating quantity, C1, of tokens in the current period in a second token bucket corresponding to the target gateway i For the consumption quantity of tokens in a first token bucket corresponding to a target gateway, limit total And (3) the total quota for the whole data directory, wherein n is the number of gateways, and n is a positive integer.
Therefore, by means of the design of the double token barrels, the actual service pressure is monitored, the management and control of gateway service quality are also realized, and the situations of gateway exit, new addition, unidirectional traffic burst and the like can be dealt with. The first token bucket can dynamically adjust the uplink and downlink flow pressure of the gateway and maintain flow balance; and calculating and dynamically adjusting the token distribution quantity in the second token bucket according to the service load condition of each gateway, thereby dynamically adjusting the service quality share of each gateway. And the stability of the service quality is improved. The gateways can be independently calculated, the influence of a certain gateway fault on other gateways is reduced, the concurrency calculation force of the cluster is strong, and the communication overhead is low.
In an embodiment, n gateways may be provided, and the Qos service of each gateway may include three functional modules: the system comprises a persistence module, a calculation distribution module and a flow control module.
Flow control module: and the statistics and the control of the flow are realized by a token bucket mechanism. And the service pressure information processing module is responsible for reporting the service pressure condition of the corresponding gateway to the persistence module, updating the number of tokens in the local token bucket according to the service pressure balancing result of the calculation distribution module aiming at the corresponding gateway, and further adjusting the service quality share of the gateway.
A persistence module: the server cluster is provided with a redis database cluster which is mixed and deployed, and the database comprises a hash table named by each node id.
The calculation and distribution module is used for: the function of the module is to directly update the token quantity Qos in the second token bucket in the target gateway flow management and control module after the specific weight calculation result of the target gateway access service in the whole system i As a result, persistence is not needed, and the data source is a hash table corresponding to the target gateway id of the persistence module.
In an example, the plurality of gateways includes a first gateway and a second gateway. The target gateway may be either one of the first gateway and the second gateway. Limit of first token bucket corresponding to target gateway total The number is 100 ten thousand as an example, and the T corresponding to the target gateway in the initial state rd And T is ru 50 ten thousand each. In other words, limit of the first token bucket corresponding to each gateway total The number can be 100 ten thousand, and the number of the T corresponding to each gateway in the initial state rd And T is ru 50 ten thousand each.
When the acquired flow of the first gateway is 60 ten thousand and the acquired flow of the second gateway is 100 ten thousand. The flow of the first gateway can comprise uplink flow and/or downlink flow, and a first token bucket in the first gateway can dynamically adjust the pressure of the uplink flow and the downlink flow corresponding to the first gateway to maintain flow balance; the flow of the second gateway can comprise uplink flow and/or downlink flow, and the first token bucket in the second gateway can dynamically adjust the pressure of the uplink flow and the downlink flow corresponding to the second gateway to maintain flow balance. The number of uplink tokens and the number of downlink tokens in the first token bucket are balanced through the conversion between the uplink tokens and the downlink tokens in the first token bucket, so that the situation of unidirectional traffic burst is relieved, the stability of service quality is improved, and the method is described in the above embodiment and is not repeated here.
After the number of uplink tokens and the number of downlink tokens in the first token bucket reach balance, a token supplementing operation can be performed on the token bucket 1 according to the period, so that the number of uplink tokens and the number of downlink tokens in the first token bucket reach the initial state number.
The second token bucket acts to govern the quality of service of the target gateway. The token number is updated according to the result of calculation of each period of the calculation distribution module. The sum of the number of tokens in the second token bucket of all the gateways is the Limit of the whole data directory total
And in the reporting period, the service conditions of the uplink token and the downlink token are summarized and reported to the calculation and distribution module. The calculation distribution module determines the consumption quantity of the tokens in the first token bucket corresponding to the target gateway according to the adjusted quantity of the uplink tokens and the adjusted quantity of the downlink tokens, wherein the consumption quantity of the tokens comprises the consumption quantity of the uplink tokens and the consumption quantity of the downlink tokens; for example, if the flow rate of the first gateway is 60 ten thousand and the flow rate of the second gateway is 100 ten thousand, the number of consumed tokens in the first token bucket corresponding to the first gateway is 60 ten thousand, and the number of consumed tokens in the first token bucket corresponding to the second gateway is 100 ten thousand.
The token distribution number in the current period in the second token bucket corresponding to the target gateway can be determined according to the token consumption number in the first token bucket corresponding to the target gateway. For example, the whole of the settingLimit Limit of data catalogue total The number of token allocation in the current period in the second token bucket corresponding to the first gateway is 100 ten thousand:
The number of token allocation in the current period in the second token bucket corresponding to the second gateway is as follows:
thus, the first token bucket can dynamically adjust the uplink and downlink flow pressure of the gateway and maintain flow balance; and calculating and dynamically adjusting the token distribution quantity in the second token bucket according to the service load condition of each gateway, thereby dynamically adjusting the service quality share of each gateway. And the stability of the service quality is improved.
For abnormal situations such as no traffic load, exit or joining of part of gateways, the execution result may be:
in one example, when traffic pressure of an individual gateway is zero or the cluster is exited due to a failure, the token assignment is set to 0 according to the calculation mode of the statistical distribution layer.
In one example, when a new gateway is added, reporting of token usage in the first token bucket reassigns a quality of service share to the gateway.
By the design of the double token barrels, the actual service pressure is monitored, the management and control of the gateway service quality are also realized, and the situations of gateway exit, new addition, unidirectional traffic burst and the like can be dealt with.
Referring to fig. 6, fig. 6 is a schematic structural diagram of a data processing apparatus according to an embodiment of the present invention, and as shown in fig. 6, a data processing apparatus 600 includes:
An obtaining module 601, configured to obtain an uplink traffic and a downlink traffic of a target gateway in a plurality of gateways;
the adjusting module 602 is configured to adjust, when the difference between the uplink flow and the downlink flow is greater than or equal to a preset difference, the number of uplink tokens and the number of downlink tokens in a first token bucket corresponding to the target gateway, where the uplink tokens are used to control the uplink flow, and the downlink tokens are used to control the downlink flow.
Optionally, the adjustment module 602 includes:
the first determining submodule is used for determining the difference value between the uplink flow and the downlink flow as a first difference value when the uplink flow is larger than the downlink flow and the difference value between the uplink flow and the downlink flow is larger than or equal to a preset difference value;
and the first conversion sub-module is used for converting part of the tokens in the downlink tokens into uplink tokens based on the first difference value.
Optionally, the adjustment module 602 includes:
the second determining submodule is used for determining the difference value between the uplink flow and the downlink flow as a second difference value when the uplink flow is smaller than the downlink flow and the difference value between the uplink flow and the downlink flow is larger than or equal to a preset difference value;
And the second conversion sub-module is used for converting part of the tokens in the uplink tokens into downlink tokens based on the second difference value.
Optionally, the conversion between the uplink token and the downlink token includes at least one of the following:
transferring part of the tokens in the uplink token from a first area of a first token bucket to a second area of the first token bucket, or transferring part of the tokens in the downlink token from the second area of the first token bucket to the first area of the first token bucket, wherein the first area of the first token bucket is used for storing the uplink token, and the second area of the first token bucket is used for storing the downlink token;
and converting the color of the token transferred to the second area in the uplink token from a first color to a second color, or converting the color of the token transferred to the first area in the downlink token from the second color to the first color, wherein the first color is used for identifying the uplink token, and the second color is used for identifying the downlink token.
Optionally, the apparatus further comprises:
the first determining module is used for determining the consumption quantity of the tokens in the first token bucket corresponding to the target gateway according to the adjusted quantity of the uplink tokens and the adjusted quantity of the downlink tokens, wherein the consumption quantity of the tokens comprises the consumption quantity of the uplink tokens and the consumption quantity of the downlink tokens;
And the second determining module is used for determining the token distribution number in the current period in the second token bucket corresponding to the target gateway according to the token consumption number in the first token bucket corresponding to the target gateway.
Optionally, the determining, according to the number of consumed tokens in the first token bucket corresponding to the target gateway, the number of distributed tokens in the current period in the second token bucket corresponding to the target gateway includes:
and determining the token distribution quantity in the current period in a second token bucket corresponding to the target gateway according to the consumption quantity of tokens in the first token bucket corresponding to the target gateway in the plurality of gateways, the sum of the consumption quantity of tokens in the first token bucket corresponding to each gateway in the plurality of gateways and the total quota of the whole data directory.
Optionally, the apparatus further comprises:
and the recording module is used for recording and storing the number of the adjusted uplink tokens and the number of the downlink tokens.
The data processing apparatus 600 is capable of implementing each process of each embodiment of the data processing method, technical features are in one-to-one correspondence, and the same technical effects can be achieved, and for avoiding repetition, a detailed description is omitted herein.
The embodiment of the invention also provides electronic equipment, which comprises: the processor, the memory and the program stored in the memory and capable of running on the processor, when executed by the processor, realize the processes of the data processing method embodiment, and achieve the same technical effects, and in order to avoid repetition, the description is omitted here.
Specifically, referring to fig. 7, an embodiment of the present invention further provides an electronic device, including a bus 701, a transceiver 702, an antenna 703, a bus interface 704, a processor 705, and a memory 706.
The transceiver 702 is configured to obtain an uplink traffic and a downlink traffic of a target gateway in the plurality of gateways;
and the processor 705 is configured to adjust, when the difference between the uplink flow and the downlink flow is greater than or equal to a preset difference, the number of uplink tokens and the number of downlink tokens in a first token bucket corresponding to the target gateway, where the uplink tokens are used to control the uplink flow, and the downlink tokens are used to control the downlink flow.
Optionally, the processor 705 is further configured to determine, as a first difference, a difference between the upstream flow and the downstream flow when the upstream flow is greater than the downstream flow and the difference between the upstream flow and the downstream flow is greater than or equal to a preset difference;
processor 705 is further configured to convert a portion of the downstream tokens to upstream tokens based on the first difference.
Optionally, the processor 705 is further configured to determine, as a second difference, a difference between the upstream flow and the downstream flow when the upstream flow is smaller than the downstream flow and the difference between the upstream flow and the downstream flow is greater than or equal to a preset difference;
Processor 705 is further configured to convert a portion of the upstream tokens to downstream tokens based on the second difference.
Optionally, the conversion between the uplink token and the downlink token includes at least one of the following:
transferring part of the tokens in the uplink token from a first area of a first token bucket to a second area of the first token bucket, or transferring part of the tokens in the downlink token from the second area of the first token bucket to the first area of the first token bucket, wherein the first area of the first token bucket is used for storing the uplink token, and the second area of the first token bucket is used for storing the downlink token;
and converting the color of the token transferred to the second area in the uplink token from a first color to a second color, or converting the color of the token transferred to the first area in the downlink token from the second color to the first color, wherein the first color is used for identifying the uplink token, and the second color is used for identifying the downlink token.
Optionally, the processor 705 is further configured to determine, according to the adjusted number of uplink tokens and the adjusted number of downlink tokens, a number of token consumption in a first token bucket corresponding to the target gateway, where the number of token consumption includes the number of uplink tokens and the number of downlink tokens consumption;
Processor 705 is further configured to determine, according to the number of token consumption in the first token bucket corresponding to the target gateway, the number of token allocation in the current period in the second token bucket corresponding to the target gateway.
Optionally, the determining, according to the number of consumed tokens in the first token bucket corresponding to the target gateway, the number of distributed tokens in the current period in the second token bucket corresponding to the target gateway includes:
and determining the token distribution quantity in the current period in a second token bucket corresponding to the target gateway according to the consumption quantity of tokens in the first token bucket corresponding to the target gateway in the plurality of gateways, the sum of the consumption quantity of tokens in the first token bucket corresponding to each gateway in the plurality of gateways and the total quota of the whole data directory.
Optionally, the processor 705 is further configured to record and store the adjusted number of uplink tokens and the adjusted number of downlink tokens.
In FIG. 7, a bus architecture (represented by bus 701), the bus 701 may include any number of interconnected buses and bridges, with the bus 701 linking together various circuits, including one or more processors, represented by the processor 705, and memory, represented by the memory 706. The bus 701 may also link together various other circuits such as peripheral devices, voltage regulators, power management circuits, etc., which are well known in the art and, therefore, will not be described further herein. Bus interface 704 provides an interface between bus 701 and transceiver 702. The transceiver 702 may be one element or a plurality of elements, such as a plurality of receivers and transmitters, providing a means for communicating with various other apparatus over a transmission medium. The data processed by the processor 705 is transmitted over a wireless medium via the antenna 703, and further, the antenna 703 receives and transmits data to the processor 705.
The processor 705 is responsible for managing the bus 701 and general processing and may also provide various functions including timing, peripheral interfaces, voltage regulation, power management, and other control functions. And memory 706 may be used to store data used by processor 705 in performing operations.
Alternatively, the processor 705 may be a central processing unit (Central Processing Unit, CPU), an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), a field programmable gate array (Field Programmable Gate Array, FPGA), or a complex programmable logic device (Complex Programmable Logic Device, CPLD).
The embodiment of the invention also provides a computer readable storage medium, on which a computer program is stored, which when executed by a processor, implements the respective processes of the above-mentioned data processing method embodiment, and can achieve the same technical effects, and in order to avoid repetition, the description is omitted here. Wherein the computer readable storage medium is selected from Read-Only Memory (ROM), random access Memory (Random Access Memory, RAM), magnetic disk or optical disk.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Furthermore, it should be noted that the scope of the methods and apparatus in the embodiments of the present invention is not limited to performing the functions in the order discussed, but may also include performing the functions in a substantially simultaneous manner or in an opposite order depending on the functions involved, e.g., the described methods may be performed in an order different from that described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising instructions for causing a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the method according to the embodiments of the present invention.
The embodiments of the present invention have been described above with reference to the accompanying drawings, but the present invention is not limited to the above-described embodiments, which are merely illustrative and not restrictive, and many forms may be made by those having ordinary skill in the art without departing from the spirit of the present invention and the scope of the claims, which are to be protected by the present invention.

Claims (10)

1. A method of data processing, comprising:
acquiring the uplink flow and the downlink flow of a target gateway in a plurality of gateways;
and under the condition that the difference value between the uplink flow and the downlink flow is larger than or equal to a preset difference value, adjusting the number of uplink tokens and the number of downlink tokens in a first token bucket corresponding to the target gateway, wherein the uplink tokens are used for controlling the uplink flow, and the downlink tokens are used for controlling the downlink flow.
2. The method of claim 1, wherein the adjusting the number of uplink tokens and the number of downlink tokens in the first token bucket corresponding to the target gateway if the difference between the uplink traffic and the downlink traffic is greater than or equal to a preset difference comprises:
When the uplink flow is greater than the downlink flow and the difference between the uplink flow and the downlink flow is greater than or equal to a preset difference, determining the difference between the uplink flow and the downlink flow as a first difference;
and converting part of tokens in the downlink tokens into uplink tokens based on the first difference value.
3. The method of claim 1, wherein the adjusting the number of uplink tokens and the number of downlink tokens in the first token bucket corresponding to the target gateway if the difference between the uplink traffic and the downlink traffic is greater than or equal to a preset difference comprises:
when the uplink flow is smaller than the downlink flow and the difference between the uplink flow and the downlink flow is larger than or equal to a preset difference, determining the difference between the uplink flow and the downlink flow as a second difference;
and converting part of tokens in the uplink tokens into downlink tokens based on the second difference value.
4. A method according to claim 2 or 3, wherein the transition between the upstream token and the downstream token comprises at least one of:
transferring part of the tokens in the uplink token from a first area of a first token bucket to a second area of the first token bucket, or transferring part of the tokens in the downlink token from the second area of the first token bucket to the first area of the first token bucket, wherein the first area of the first token bucket is used for storing the uplink token, and the second area of the first token bucket is used for storing the downlink token;
And converting the color of the token transferred to the second area in the uplink token from a first color to a second color, or converting the color of the token transferred to the first area in the downlink token from the second color to the first color, wherein the first color is used for identifying the uplink token, and the second color is used for identifying the downlink token.
5. A method according to any one of claims 1 to 3, wherein after said adjusting the number of upstream tokens and the number of downstream tokens in the first token bucket corresponding to the target gateway, the method further comprises:
determining the consumption quantity of the tokens in a first token bucket corresponding to the target gateway according to the adjusted quantity of the uplink tokens and the adjusted quantity of the downlink tokens, wherein the consumption quantity of the tokens comprises the consumption quantity of the uplink tokens and the consumption quantity of the downlink tokens;
and determining the token distribution quantity in the current period in a second token bucket corresponding to the target gateway according to the token consumption quantity in the first token bucket corresponding to the target gateway.
6. The method of claim 5, wherein determining the number of token allocations in the current period in the second token bucket corresponding to the target gateway according to the number of token consumptions in the first token bucket corresponding to the target gateway comprises:
And determining the token distribution quantity in the current period in a second token bucket corresponding to the target gateway according to the consumption quantity of tokens in the first token bucket corresponding to the target gateway in the plurality of gateways, the sum of the consumption quantity of tokens in the first token bucket corresponding to each gateway in the plurality of gateways and the total quota of the whole data directory.
7. A method according to any one of claims 1 to 3, wherein after said adjusting the number of upstream tokens and the number of downstream tokens in the first token bucket corresponding to the target gateway, the method further comprises:
and recording and storing the number of the adjusted uplink tokens and the number of the downlink tokens.
8. A data processing apparatus, comprising:
the acquisition module is used for acquiring the uplink flow and the downlink flow of a target gateway in the plurality of gateways;
the adjustment module is used for adjusting the number of uplink tokens and the number of downlink tokens in the first token bucket corresponding to the target gateway when the difference value between the uplink flow and the downlink flow is greater than or equal to a preset difference value, wherein the uplink tokens are used for controlling the uplink flow, and the downlink tokens are used for controlling the downlink flow.
9. An electronic device, comprising: a processor, a memory and a program stored on the memory and executable on the processor, which when executed by the processor implements the steps of the data processing method according to any one of claims 1 to 7.
10. A computer-readable storage medium, on which a computer program is stored, which computer program, when being executed by a processor, implements the steps of the data processing method according to any of claims 1 to 7.
CN202311024566.3A 2023-08-15 2023-08-15 Data processing method and device, electronic equipment and storage medium Active CN116760774B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311024566.3A CN116760774B (en) 2023-08-15 2023-08-15 Data processing method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311024566.3A CN116760774B (en) 2023-08-15 2023-08-15 Data processing method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN116760774A CN116760774A (en) 2023-09-15
CN116760774B true CN116760774B (en) 2023-11-03

Family

ID=87950001

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311024566.3A Active CN116760774B (en) 2023-08-15 2023-08-15 Data processing method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116760774B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007221529A (en) * 2006-02-17 2007-08-30 Kddi Corp Traffic controller by token bucket, traffic control method, and program for allowing computer to function as traffic controller
CN115460153A (en) * 2022-07-26 2022-12-09 青岛海尔科技有限公司 Dynamic adjustment method for token bucket capacity, storage medium and electronic device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007221529A (en) * 2006-02-17 2007-08-30 Kddi Corp Traffic controller by token bucket, traffic control method, and program for allowing computer to function as traffic controller
CN115460153A (en) * 2022-07-26 2022-12-09 青岛海尔科技有限公司 Dynamic adjustment method for token bucket capacity, storage medium and electronic device

Also Published As

Publication number Publication date
CN116760774A (en) 2023-09-15

Similar Documents

Publication Publication Date Title
US6578082B1 (en) Distributed flow control system and method for GPRS networks based on leaky buckets
US6594234B1 (en) System and method for scheduling traffic for different classes of service
US6826193B1 (en) Data transmission in a telecommunications network
EP1256214B1 (en) Multi-level scheduling method for multiplexing packets in a communications network
US10110300B2 (en) Bandwidth management across logical groupings of access points in a shared access broadband network
CN110651494B (en) System and method for adaptive tracking and capacity allocation in widely distributed wireless networks
US7545744B2 (en) Method and system for fairly adjusting bandwidth among distributed network elements
CN101828361A (en) Be used for method and apparatus in the communications network system schedule data packets
JPWO2005039209A1 (en) Signaling method, system, base station and mobile station
CN102934403A (en) Controlling data transmission over a network
CN107835133B (en) Stream priority control method based on multi-attribute decision
US20030112762A1 (en) Method of radio resource management for integrated voice and data CDMA networks
US20040037306A1 (en) Adaptive network resource control
US8228797B1 (en) System and method for providing optimum bandwidth utilization
US20080130501A1 (en) Bandwidth packing rate controller for optimizing resource utilization
EP3834371B1 (en) Congestion based throttling in satellite based networks
US20040057461A1 (en) Dynamic bandwidth allocation for variable bit rate streaming data
CN107370686A (en) A kind of flow control methods and device
CN116760774B (en) Data processing method and device, electronic equipment and storage medium
CN101765033A (en) Dynamic time slot allocating method applied to coaxial load-bearing Ethernet equipment
CN107770875A (en) Aeronautical Ad hoc networks hybrid MAC protocols
CN112995058A (en) Token adjusting method and device
EP1506644B1 (en) Shared-communications channel utilization for applications having different class of service requirements
JP6281347B2 (en) Packet switching apparatus and packet switching method
US20060088032A1 (en) Method and system for flow management with scheduling

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant