Communication method and device

文档序号:1908210 发布日期:2021-11-30 浏览:14次 中文

阅读说明:本技术 通信方法及装置 (Communication method and device ) 是由 张庆军 于 2021-07-12 设计创作,主要内容包括:本申请提供一种通信方法及装置,该方法应用于应用于第一接口板,所述第一接口板处于第一框内,所述第一接口板内设置第一令牌桶,所述方法包括:接收第一业务报文;根据所述第一业务报文,判断所述第一令牌桶内是否存在满足转发所述第一业务报文的第一数量个令牌;若满足,则转发所述第一业务报文,并从所述第一令牌桶中扣除所述第一数量个令牌;向第二接口板发送第一通知消息,所述第一通知消息包括第一值,所述第一值表示所述第一数量个令牌,以使得所述第二接口板从所述第二接口板内设置的第二令牌桶中扣除所述第一数量个令牌;其中,所述第二接口板处于第二框内。(The application provides a communication method and a device, the method is applied to a first interface board, the first interface board is positioned in a first frame, a first token bucket is arranged in the first interface board, and the method comprises the following steps: receiving a first service message; judging whether a first token bucket has a first number of tokens which meet the requirement of forwarding the first service message or not according to the first service message; if yes, forwarding the first service message, and deducting the first number of tokens from the first token bucket; sending a first notification message to a second interface board, wherein the first notification message includes a first value, and the first value represents the first number of tokens, so that the second interface board deducts the first number of tokens from a second token bucket arranged in the second interface board; wherein the second interface board is in the second frame.)

1. A communication method applied to a first interface board, the first interface board being in a first frame, and a first token bucket being disposed in the first interface board, the method comprising:

receiving a first service message;

judging whether a first token bucket has a first number of tokens which meet the requirement of forwarding the first service message or not according to the first service message;

if yes, forwarding the first service message, and deducting the first number of tokens from the first token bucket;

sending a first notification message to a second interface board, wherein the first notification message includes a first value, and the first value represents the first number of tokens, so that the second interface board deducts the first number of tokens from a second token bucket arranged in the second interface board;

wherein the second interface board is in the second frame.

2. The method of claim 1, further comprising:

receiving a second notification message sent by the second interface board, where the second notification message includes a second value, and the second value represents a second number of tokens;

deducting the second number of tokens from the first token bucket based on the second number of tokens;

and the second number of tokens is obtained by judging whether tokens which meet the requirement of forwarding the second service message exist in the second token bucket after the second interface board receives the second service message.

3. The method of claim 1, wherein before sending the first notification message to the second interface board, the method further comprises:

judging whether a third notification message sent by the second interface board has been received, wherein the third notification message comprises a third value, and the third value represents a third number of tokens;

if the third notification message is received and the third number of tokens are deducted from the first token bucket according to the third number of tokens, the first notification message is sent to the second interface board;

and if the third notification message is not received, the first notification message is not sent to the second interface board.

4. The method of claim 1, wherein before sending the first notification message to the second interface board, the method further comprises:

judging whether a fourth notification message sent by the second interface board is received or not within a preset time period, wherein the fourth notification message comprises a fourth value, and the fourth value represents a fourth number of tokens;

if the fourth notification message is received before the preset time period is ended and the fourth number of tokens are deducted from the first token bucket according to the fourth number of tokens, sending the first notification message to the second interface board;

and if the fourth notification message is not received within the preset time period or at the end of the preset time period, not sending the first notification message to the second interface board.

5. The method of claim 1, further comprising:

releasing tokens into the first token bucket according to a preset releasing rate;

and the launching rate is not greater than the speed limit bandwidth of the first interface board.

6. A communication apparatus, applied to a first interface board, the first interface board being in a first frame, a first token bucket being provided in the first interface board, the apparatus comprising:

a receiving unit, configured to receive a first service packet;

a first determining unit, configured to determine, according to the first service packet, whether a first number of tokens that satisfy forwarding of the first service packet exist in the first token bucket;

a sending unit, configured to forward the first service packet if the first service packet is satisfied, and deduct the first number of tokens from the first token bucket;

the sending unit is further configured to send a first notification message to a second interface board, where the first notification message includes a first value, and the first value indicates the first number of tokens, so that the second interface board deducts the first number of tokens from a second token bucket set in the second interface board;

wherein the second interface board is in the second frame.

7. The apparatus according to claim 6, wherein the receiving unit is further configured to receive a second notification message sent by the second interface board, and the second notification message includes a second value, and the second value represents a second number of tokens;

the device further comprises: a deduction unit configured to deduct the second number of tokens from the first token bucket according to the second number of tokens;

and the second number of tokens is obtained by judging whether tokens which meet the requirement of forwarding the second service message exist in the second token bucket after the second interface board receives the second service message.

8. The apparatus of claim 6, further comprising:

a second determining unit, configured to determine whether a third notification message sent by the second interface board has been received, where the third notification message includes a third value, and the third value indicates a third number of tokens;

the sending unit is further configured to send the first notification message to the second interface board if the third notification message is received and the third number of tokens are deducted from the first token bucket according to the third number of tokens;

the sending unit is further configured to not send the first notification message to the second interface board if the third notification message is not received.

9. The apparatus of claim 6, further comprising:

a third determining unit, configured to determine, within a preset time period, whether a fourth notification message sent by the second interface board has been received, where the fourth notification message includes a fourth value, and the fourth value indicates a fourth number of tokens;

the sending unit is further configured to send the first notification message to the second interface board if the fourth notification message is received before the preset time period ends and the fourth number of tokens are deducted from the first token bucket according to the fourth number of tokens;

the sending unit is further configured to not send the first notification message to the second interface board if the fourth notification message is not received within the preset time period or when the preset time period ends.

10. The apparatus of claim 6, further comprising:

the releasing unit is used for releasing tokens into the first token bucket according to a preset releasing rate;

and the launching rate is not greater than the speed limit bandwidth of the first interface board.

Technical Field

The present application relates to the field of communications technologies, and in particular, to a communication method and apparatus.

Background

For network traffic, factors affecting quality of service (QoS) include bandwidth of transmission, delay of transmission, packet loss rate of data, and the like. In the network, the service quality can be improved by measures of ensuring the transmission bandwidth, reducing the transmission time delay, reducing the packet loss rate of data, reducing the time delay jitter and the like.

Since network resources are limited, the quality of service of a certain type of service may be compromised while the quality of service of other services is guaranteed. Therefore, a network manager needs to reasonably plan and allocate network resources according to the characteristics of various services, so that the network resources are efficiently utilized.

In order to make the limited network resources to be more effective and to better serve more users, the traffic of the users needs to be limited. Traffic policing, traffic shaping, and rate limiting may implement a rate limiting function for traffic that requires measurement of traffic through the network device. The traffic is typically measured using Token buckets (Token buckets).

A token bucket may be considered a container that holds a certain number of tokens. The software system places tokens into the bucket at a set speed, and when the tokens in the bucket are full, the excess tokens overflow and the tokens in the bucket are not increased any more.

When the token bucket is used for evaluating the traffic specification, the number of tokens in the token bucket is determined according to whether the number of tokens in the token bucket is enough to satisfy the forwarding of the data message. If enough tokens exist in the bucket and the forwarding of the data message is satisfied, the flow of the data message is considered to be in compliance or in compliance with the specification, otherwise, the flow is considered to be in compliance or out of compliance.

Flow supervision refers to controlling flow, and by supervising the flow rate entering the network, the excess flow is punished, so that the entering flow is limited within a reasonable range, and the network resources and the benefits of operators are protected. For example, HTTP messages may be limited from occupying more than 50% of the network bandwidth. If it is determined that the traffic is out of specification, the traffic policing may choose to discard out-of-specification messages, or to reconfigure the priority of the out-of-specification messages.

At present, as shown in fig. 1, fig. 1 is a schematic diagram of forwarding a service packet by a member port in an existing aggregation port. In fig. 1, the aggregation port includes two member ports, the two member ports are respectively in two interface boards, and each interface board is provided with a token bucket. If traffic policing is implemented on the aggregation port, it will result in actual traffic being many times the anticipated policing. The dotted line range indicates that the aggregation port is formed by aggregating cross-board member ports, and the service messages in the member port 1 and the service messages in the member port 2 respectively realize token bucket speed limitation in respective interface boards, but the service flow is 2 times of the speed-limited flow.

In order to solve the defect that the service flow exceeds the speed-limiting flow, in practical application, all service messages of each member port in the aggregation port are transmitted to an interface board to realize the speed limitation of the token bucket. As shown in fig. 2, fig. 2 is a schematic diagram of all service messages of each member port in the existing aggregation port being transmitted to an interface board. In fig. 2, a token bucket is arranged in the member port 2, the service messages in the member port 1 are all transmitted to the member port 2, and after the speed of the token bucket is limited, the service messages meeting the specification are transmitted to the member port 1 and are forwarded by the member port 1.

However, the above-mentioned manner of transmitting all the service packets of each member port to an interface board to implement token bucket speed limit also brings the following disadvantages: 1) the bandwidth of a channel used for transmitting the service message between the interface boards is smaller, and when the service flow of a member port needing transmitting is larger than the bandwidth of the channel between the interface boards, the service flow is largely discarded; 2) the mutual transparent transmission of service messages between interface boards consumes more CPU, and affects the working efficiency of CPU.

Disclosure of Invention

In view of this, the present application provides a communication method and apparatus, so as to solve the problems that a large amount of service messages are discarded and the working efficiency of a CPU is affected in the process of mutual transparent transmission of service messages between the existing interface boards.

In a first aspect, the present application provides a communication method, where the method is applied to a first interface board, where the first interface board is in a first frame, and a first token bucket is disposed in the first interface board, where the method includes:

receiving a first service message;

judging whether a first token bucket has a first number of tokens which meet the requirement of forwarding the first service message or not according to the first service message;

if yes, forwarding the first service message, and deducting the first number of tokens from the first token bucket;

sending a first notification message to a second interface board, wherein the first notification message includes a first value, and the first value represents the first number of tokens, so that the second interface board deducts the first number of tokens from a second token bucket arranged in the second interface board;

wherein the second interface board is in the second frame.

In a second aspect, the present application provides a communication apparatus, which is applied to a first interface board, where the first interface board is located in a first frame, and a first token bucket is disposed in the first interface board, and the apparatus includes:

a receiving unit, configured to receive a first service packet;

a first determining unit, configured to determine, according to the first service packet, whether a first number of tokens that satisfy forwarding of the first service packet exist in the first token bucket;

a sending unit, configured to forward the first service packet if the first service packet is satisfied, and deduct the first number of tokens from the first token bucket;

the sending unit is further configured to send a first notification message to a second interface board, where the first notification message includes a first value, and the first value indicates the first number of tokens, so that the second interface board deducts the first number of tokens from a second token bucket set in the second interface board;

wherein the second interface board is in the second frame.

In a third aspect, the present application provides a network device comprising a processor and a machine-readable storage medium storing machine-executable instructions executable by the processor, the processor being caused by the machine-executable instructions to perform the method provided by the first aspect of the present application.

Therefore, by applying the communication method and the communication device provided by the application, the first interface board receives the first service message; according to the first service message, the first interface board judges whether a first token bucket has a first number of tokens which meet the requirement of forwarding the first service message; if yes, the first interface board forwards the first service message, and deducts a first number of tokens from the first token bucket; the first interface board sends a first notification message to the second interface board, wherein the first notification message comprises a first value, and the first value represents a first number of tokens, so that the second interface board deducts the first number of tokens from a second token bucket arranged in the second interface board; and the second interface board is positioned in the second frame.

Therefore, the interface boards in different frames only transmit the number of tokens deducted by the interface boards, and do not transmit the service messages mutually, so that the problems that the service messages are largely discarded and the working efficiency of a CPU is influenced in the process of transmitting the service messages mutually among the interface boards are solved. The token bucket processing performance is improved, and meanwhile, the consumption of a CPU and the pressure of inter-frame communication are reduced.

Drawings

Fig. 1 is a schematic diagram of forwarding a service packet by a member port in an existing aggregation port;

fig. 2 is a schematic diagram of all service messages of each member port in the existing aggregation port being transmitted to an interface board;

fig. 3 is a flowchart of a communication method provided in an embodiment of the present application;

fig. 4 is a schematic diagram illustrating that notification messages are mutually sent between interface boards according to an embodiment of the present application;

fig. 5 is a structural diagram of a communication device according to an embodiment of the present application;

fig. 6 is a hardware structure of a network device according to an embodiment of the present disclosure.

Detailed Description

Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.

The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in this application and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the corresponding listed items.

It is to be understood that although the terms first, second, third, etc. may be used herein to describe various information, such information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of the present application. The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination", depending on the context.

The detection method provided in the embodiments of the present application is explained in detail below. Referring to fig. 3, fig. 3 is a flowchart of a communication method according to an embodiment of the present disclosure. The method is applied to a mainboard, and the communication method provided by the embodiment of the application can comprise the following steps.

Step 310, receiving a first service packet.

Specifically, the first interface board receives a service traffic, for example, receives a first service packet.

In this embodiment of the application, the first interface board is located in the first frame, and a first token bucket is disposed in the first interface board.

The first interface board includes a first interface, which may be a selected member port of the aggregation ports. The aggregation port also includes other selected member ports, such as the second interface. The second interface is arranged in a second interface board, and the second interface board is arranged in a second frame.

It is understood that the aggregation port has a rate-limiting bandwidth (e.g., 10M), and the limit bandwidth of each member port in the aggregation port inherits the rate-limiting bandwidth of the aggregation port, i.e., the rate-limiting bandwidth of each member port is also 10M. The speed-limiting bandwidth of the interface board where each member port is located is also the speed-limiting bandwidth of each member port.

Further, the first interface receives the first service packet.

Step 320, according to the first service packet, determining whether a first number of tokens satisfying the forwarding of the first service packet exist in the first token bucket.

Specifically, according to the description of step 310, after receiving the first service packet, the first interface board determines whether a first number of tokens satisfying the forwarding of the first service packet exists in the first token bucket.

If so, go to step 330; if the token number does not exist, the number of the tokens in the first token bucket is insufficient at the moment, and the first interface board discards the first service message.

And step 330, if yes, forwarding the first service packet, and deducting the first number of tokens from the first token bucket.

Specifically, according to the description of step 320, if there are a first number of tokens satisfying the forwarding of the first service packet in the first token bucket, the first interface board forwards the first service packet, and deducts the first number of tokens from the first token bucket.

Step 340, sending a first notification message to a second interface board, where the first notification message includes a first value, and the first value indicates the first number of tokens, so that the second interface board deducts the first number of tokens from a second token bucket set in the second interface board.

Specifically, according to the description of step 340, after the first interface board deducts the first number of tokens from the first token bucket, the first interface board generates a first notification message, where the first notification message includes a first value, and the first value represents the first number of tokens.

The first interface board sends a first notification message to the second interface board. And after receiving the first notification message, the second interface board acquires a first value from the first notification message. And the second interface board deducts a first number of tokens from a second token bucket set by the second interface board.

Further, in this embodiment of the application, the second interface board is located in the second frame, and a second token bucket is disposed in the second interface board. A token bucket channel is established between the first interface board and the second interface board, and the token bucket channel is used for mutually sending the number of tokens consumed by the first interface board and the second interface board.

As shown in fig. 4, fig. 4 is a schematic diagram illustrating that the interface boards provided in the embodiment of the present application send notification messages to each other. In fig. 4, a token bucket is set in each interface board, and the token buckets have the same capacity and the same dropping rate for dropping tokens. The interface board establishes a token bucket channel for transmitting a notification message including the number of tokens currently consumed by the interface board.

In the embodiment of the application, the release rate is not greater than the speed limit bandwidth of the interface board. For example, the rate-limited bandwidths of all the interface boards are the same and 10M, and the dropping rate of the token bucket is not greater than the rate-limited bandwidth of the interface board, that is, the dropping rate is 10M at most.

Further, in this embodiment of the present application, the first interface board puts tokens into the first token bucket according to a preset putting rate.

Therefore, by applying the communication method and the communication device provided by the application, the first interface board receives the first service message; according to the first service message, the first interface board judges whether a first token bucket has a first number of tokens which meet the requirement of forwarding the first service message; if yes, the first interface board forwards the first service message, and deducts a first number of tokens from the first token bucket; the first interface board sends a first notification message to the second interface board, wherein the first notification message comprises a first value, and the first value represents a first number of tokens, so that the second interface board deducts the first number of tokens from a second token bucket arranged in the second interface board; and the second interface board is positioned in the second frame.

Therefore, the interface boards in different frames only transmit the number of tokens deducted by the interface boards, and do not transmit the service messages mutually, so that the problems that the service messages are largely discarded and the working efficiency of a CPU is influenced in the process of transmitting the service messages mutually among the interface boards are solved. The token bucket processing performance is improved, and meanwhile, the consumption of a CPU and the pressure of inter-frame communication are reduced.

Optionally, in this embodiment of the present application, a process in which the first interface board receives the second notification message sent by the second interface board is further included.

Specifically, the second interface board receives the service traffic, for example, receives the second service packet. Further, the second interface receives a second service packet.

And after receiving the second service message, the second interface board judges whether a second token bucket has a second number of tokens which meet the requirement of forwarding the second service message. If the token number does not exist, the number of the tokens in the second token bucket is insufficient at the moment, and the second service message is discarded by the second interface board.

And if a second quantity of tokens meeting the requirement of forwarding the second service message exists in the second token bucket, the second interface board forwards the second service message and deducts the second quantity of tokens from the second token bucket.

After the second interface board deducts a second number of tokens from the second token bucket, the second interface board generates a second notification message, where the second notification message includes a second value, and the second value represents the second number of tokens.

The second interface board sends a second notification message to the first interface board. And after receiving the second notification message, the first interface board acquires a second value from the second notification message.

And according to the second quantity of tokens, the first interface board deducts the second quantity of tokens from the first token bucket.

In this embodiment of the present application, when each member port (each member port selected in the aggregation group) in the aggregation port is on a different interface board, the token bucket in the interface board where one member port is located subtracts a token, and at the same time, the same token is subtracted from the token bucket in the interface board where another member port is located, so that it can be ensured that the speed-limited bandwidth of the aggregation port can be ensured regardless of whether the traffic flows pass through the interface boards where the different member ports are located.

Optionally, before step 340 of the present application, a process that the first interface board determines whether to receive the notification message sent by another interface board, and determines whether to send the first notification message according to a determination result is further included.

Specifically, the first interface board determines whether a third notification message sent by the second interface board has been received, where the third notification message includes a third value, and the third value indicates a third number of tokens.

And if the first interface board receives the third notification message and deducts a third number of tokens from the first token bucket according to the third number of tokens, the first interface board sends the first notification message to the second interface board.

And if the first interface board does not receive the third notification message, the first interface board does not send the first notification message to the second interface board.

In the embodiment of the present application, if only the traffic flow exists in the first interface board and the traffic flow does not exist in the second interface board, the token bucket in the second interface board may be caused to blindly deduct the token, and thus the way of deducting the token is meaningless. Therefore, through the foregoing determination process, if there is token consumption in the token bucket in the first interface board and the token bucket in the first interface board does not deduct the token when the service packet is forwarded by another interface board, the notification message is not sent to another interface board after the token consumption of the first interface board, so as to avoid a meaningless token deduction manner.

Optionally, before step 340 in this embodiment of the present application, a process that the first interface board determines whether to receive the notification message sent by another interface board within a preset time period, and determines whether to send the first notification message according to a determination result is further included.

Specifically, within a preset time period, the first interface board determines whether a fourth notification message sent by the second interface board has been received, where the fourth notification message includes a fourth value, and the fourth value indicates a fourth number of tokens.

In the embodiment of the application, the preset time period is based on milliseconds, and the smaller the configured time period value is, the more sensitive the service flow is. The preset time period may be set to 50ms in general.

And if a fourth notification message is received before the preset time period is ended and a fourth number of tokens are deducted from the first token bucket according to the fourth number of tokens, the first interface board sends the first notification message to the second interface board.

And if the fourth notification message is not received within the preset time period or at the end of the preset time period, the first interface board does not send the first notification message to the second interface board.

In the embodiment of the present application, an interface board may have a scene where traffic flow is discontinuous. If the traffic flow in the first interface board is intermittent and the traffic flow in the second interface board is stable, the token bucket in the first interface board can be caused to blindly deduct the token, and thus the way of deducting the token is meaningless.

Therefore, by combining the preset time period with the judgment process, if the preset time period is over, the first interface board receives the notification messages sent by other interface boards, the first interface board does not send the notification messages to other interface boards any more, and unless the subsequent other interface boards send the notification messages again, the first interface board is awakened to send the notification messages to other interface boards. The shorter the preset time period is, the more sensitive to the traffic flow, and conversely, the less sensitive to the traffic flow.

Based on the same inventive concept, the embodiment of the application also provides a communication device corresponding to the communication method. Referring to fig. 5, fig. 5 is a structural diagram of a communication device according to an embodiment of the present application. The device is applied to a first interface board, the first interface board is positioned in a first frame, a first token bucket is arranged in the first interface board, and the device comprises:

a receiving unit 510, configured to receive a first service packet;

a first determining unit 520, configured to determine, according to the first service packet, whether a first number of tokens that satisfy forwarding of the first service packet exist in the first token bucket;

a sending unit 530, configured to forward the first service packet if the first service packet is satisfied, and deduct the first number of tokens from the first token bucket;

the sending unit 530 is further configured to send a first notification message to a second interface board, where the first notification message includes a first value, and the first value indicates the first number of tokens, so that the second interface board deducts the first number of tokens from a second token bucket set in the second interface board;

wherein the second interface board is in the second frame.

Optionally, the receiving unit 510 is further configured to receive a second notification message sent by the second interface board, where the second notification message includes a second value, and the second value represents a second number of tokens;

the device further comprises: a deduction unit (not shown) for deducting the second number of tokens from the first token bucket according to the second number of tokens;

and the second number of tokens is obtained by judging whether tokens which meet the requirement of forwarding the second service message exist in the second token bucket after the second interface board receives the second service message.

Optionally, the apparatus further comprises: a second determining unit (not shown in the figure), configured to determine whether a third notification message sent by the second interface board has been received, where the third notification message includes a third value, and the third value indicates a third number of tokens;

the sending unit 530 is further configured to send the first notification message to the second interface board if the third notification message is received and the third number of tokens are deducted from the first token bucket according to the third number of tokens;

the sending unit 530 is further configured to not send the first notification message to the second interface board if the third notification message is not received.

Optionally, the apparatus further comprises: a third determining unit (not shown in the figure), configured to determine, within a preset time period, whether a fourth notification message sent by the second interface board has been received, where the fourth notification message includes a fourth value, and the fourth value indicates a fourth number of tokens;

the sending unit 530 is further configured to send the first notification message to the second interface board if the fourth notification message is received before the preset time period ends and the fourth number of tokens are deducted from the first token bucket according to the fourth number of tokens;

the sending unit 530 is further configured to not send the first notification message to the second interface board if the fourth notification message is not received within the preset time period or when the preset time period ends.

Optionally, the apparatus further comprises: a throwing unit (not shown in the figure) for throwing tokens into the first token bucket according to a preset throwing rate;

and the launching rate is not greater than the speed limit bandwidth of the first interface board.

Therefore, by applying the communication device provided by the present application, the first interface board receives the first service packet; according to the first service message, the first interface board judges whether a first token bucket has a first number of tokens which meet the requirement of forwarding the first service message; if yes, the first interface board forwards the first service message, and deducts a first number of tokens from the first token bucket; the first interface board sends a first notification message to the second interface board, wherein the first notification message comprises a first value, and the first value represents a first number of tokens, so that the second interface board deducts the first number of tokens from a second token bucket arranged in the second interface board; and the second interface board is positioned in the second frame.

Therefore, the interface boards in different frames only transmit the number of tokens deducted by the interface boards, and do not transmit the service messages mutually, so that the problems that the service messages are largely discarded and the working efficiency of a CPU is influenced in the process of transmitting the service messages mutually among the interface boards are solved. The token bucket processing performance is improved, and meanwhile, the consumption of a CPU and the pressure of inter-frame communication are reduced.

Based on the same inventive concept, the embodiment of the present application further provides a network device, as shown in fig. 6, including a processor 610, a transceiver 620, and a machine-readable storage medium 630, where the machine-readable storage medium 630 stores machine-executable instructions capable of being executed by the processor 610, and the processor 610 is caused by the machine-executable instructions to perform the communication method provided by the embodiment of the present application. The detection apparatus shown in fig. 5 can be implemented by using the hardware structure of the network device shown in fig. 6.

The computer-readable storage medium 630 may include a Random Access Memory (RAM) or a Non-volatile Memory (NVM), such as at least one disk Memory. Optionally, the computer-readable storage medium 630 may also be at least one memory device located remotely from the processor 610.

The Processor 610 may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; the Integrated Circuit can also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA), or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components.

In the embodiment of the present application, the processor 610 reads the machine executable instructions stored in the machine readable storage medium 630, and the machine executable instructions cause the processor 610 itself and the call transceiver 620 to perform the communication method described in the embodiment of the present application.

Additionally, embodiments of the present application provide a machine-readable storage medium 630, the machine-readable storage medium 630 storing machine-executable instructions that, when invoked and executed by the processor 610, cause the processor 610 itself and the invoking transceiver 620 to perform the communication methods described in embodiments of the present application.

The implementation process of the functions and actions of each unit in the above device is specifically described in the implementation process of the corresponding step in the above method, and is not described herein again.

For the device embodiments, since they substantially correspond to the method embodiments, reference may be made to the partial description of the method embodiments for relevant points. The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the scheme of the application. One of ordinary skill in the art can understand and implement it without inventive effort.

As for the embodiments of the communication apparatus and the machine-readable storage medium, since the contents of the related methods are substantially similar to those of the foregoing embodiments of the methods, the description is relatively simple, and for the relevant points, reference may be made to the partial description of the embodiments of the methods.

The above description is only exemplary of the present application and should not be taken as limiting the present application, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the scope of protection of the present application.

15页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种通用与专用混合流量控制方法、计算机设备和存储介质

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!