WO2012116540A1 - Traffic management method and management device - Google Patents

Traffic management method and management device Download PDF

Info

Publication number
WO2012116540A1
WO2012116540A1 PCT/CN2011/079173 CN2011079173W WO2012116540A1 WO 2012116540 A1 WO2012116540 A1 WO 2012116540A1 CN 2011079173 W CN2011079173 W CN 2011079173W WO 2012116540 A1 WO2012116540 A1 WO 2012116540A1
Authority
WO
WIPO (PCT)
Prior art keywords
token
scheduled
board
tokens
queue
Prior art date
Application number
PCT/CN2011/079173
Other languages
French (fr)
Chinese (zh)
Inventor
卢胜文
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2012116540A1 publication Critical patent/WO2012116540A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/50Queue scheduling
    • H04L47/52Queue scheduling by attributing bandwidth to queues
    • H04L47/527Quantum based scheduling, e.g. credit or deficit based scheduling or token bank

Definitions

  • the present invention relates to the field of communications, and more particularly to a method and a management apparatus for traffic management in the field of communications. Background technique
  • IP Internet Protocol
  • data services gradually replaced traditional voice services, and gradually became the main body of communication services.
  • traffic management needs to be performed on network devices (Traffic Management,
  • a service board is a board in a network device. Each board can perform various types of service processing, such as data stream access, forwarding, multiplexing, routing, labeling, flow control, traffic shaping, and so on. Multi-level traffic management enables the traffic to pass through the board in a single-level management manner, which meets the requirements of the total output of the board.
  • traffic management can only be performed independently within each board. For example, in order to control the ingress traffic of a card, you can perform traffic management on the data stream input from the inbound interface of the card, discard excessive packets, prevent impact on the device, affect device performance, and perform traffic management on the ingress traffic. After that, the business process of the business board is performed. In order to control the egress traffic of the service board, traffic management is performed after the service processing of the service board. In this case, the data stream after the service processing needs to be cached before traffic management can be performed, so a large amount of storage space is consumed.
  • traffic management independently within each board cannot meet the needs of traffic management. For example, when traffic of the same service enters a network device from different inbound interfaces and enters different boards, or when the same service When the traffic is distributed to the boards that are output from different outbound interfaces, the traffic that is originally associated with traffic management is no longer able to manage traffic. The management of the boards can be performed separately. The traffic of the service output from the network device does not meet predetermined requirements such as bandwidth and delay requirements, which affects the effectiveness of traffic management. Summary of the invention
  • the embodiment of the invention provides a method and a management device for the traffic management, which can solve the problem that the data traffic distributed to multiple boards cannot be uniformly managed, so that the data streams distributed to different boards can be effectively managed to meet the requirements of traffic management.
  • the embodiment of the present invention provides a method for traffic management, including: receiving a notification of a request token sent by at least two boards, the number of tokens requested by each board, and the to-be-scheduled message in the board.
  • the number of packets to be transmitted in the queue corresponds to each other; according to the number of requested tokens, the packets to be scheduled are transmitted.
  • an embodiment of the present invention provides a management apparatus for traffic management, including: a receiving module, configured to receive a notification of a request token sent by at least two boards, and the number of tokens requested by each board is An allocation module is configured to allocate a token to the to-be-scheduled message queue according to the number of requested tokens, so that the card root is according to the present invention.
  • the management device allocates the token according to the notification of the plurality of board request tokens, so as to control the packet transmission of the board through the allocation of the token, so that the traffic in the board that is originally independent of the traffic management is performed.
  • Unified, centralized scheduling can be achieved, unlike the prior art, the traffic in each board is managed separately, independently, and isolated. Therefore, the centralized traffic management performed by the management device can uniformly and effectively manage data streams that may be associated with each other on different boards, thereby satisfying the requirements of traffic management.
  • FIG. 1 is a flow chart showing a method of traffic management according to an embodiment of the present invention
  • FIG. 2 is a flow chart showing another method of traffic management according to an embodiment of the present invention
  • FIG. 3 is a schematic diagram showing an example of traffic management according to an embodiment of the present invention
  • FIG. 4 is a schematic diagram of a board using a method of traffic management according to an embodiment of the present invention
  • FIG. 5 is a schematic diagram showing another example of traffic management according to an embodiment of the present invention
  • FIG. 7 is a block diagram showing the structure of another management apparatus for traffic management according to an embodiment of the present invention.
  • the method 100 includes: in S110, receiving a notification of a request token sent by at least two boards, and the number of tokens requested by each board and the queue to be scheduled in the board need to be transmitted.
  • the token is allocated to the to-be-scheduled message queue according to the number of the requested tokens, so that the board transmits the packet in the message queue to be scheduled according to the allocated token.
  • a management device that performs centralized traffic management on at least two boards receives notifications from the boards.
  • the card requests a token from the management device by using the notification.
  • the number of the requested tokens can correspond to the number of packets to be transmitted in the queue to be scheduled in the card.
  • the management device allocates a token to the queue to be scheduled in the board according to the number of tokens requested by the board. After receiving the token, the board transmits the packet in the queue to be scheduled according to the token assigned by the management device.
  • the management device allocates a token according to the notification of the plurality of board request tokens, so as to control the transmission of the packet by using the token allocation, so that the traffic management is originally performed independently.
  • the traffic in the board can be uniformly and centralizedly scheduled. Unlike the prior art, the traffic in each board is managed separately, independently, and isolated. Therefore, by using centralized traffic management, data flows that may be associated with each other on different boards can be managed uniformly and efficiently, thereby meeting the requirements of traffic management.
  • S110 and S120 according to an embodiment of the present invention will be specifically described.
  • the notification of the request token sent by the at least two boards is received, and the number of tokens requested by each board corresponds to the number of packets to be transmitted in the queue of the to-be-scheduled message in the board.
  • the management device manages at least two boards and performs centralized unified scheduling of traffic in at least two boards.
  • the board can cache the packets to be transmitted in different queues to be scheduled according to a predetermined policy, for example, based on the packet type, the user who sent the packet, the destination address of the packet, and the output port of the packet.
  • the packet to be transmitted may be a packet received from another board or a packet generated by the board itself.
  • the board can cache the packet according to the type of the packet, and store the packet carrying the voice information in the queue of the message to be scheduled dedicated to the voice information, and store the message carrying the video information in the video dedicated to the video.
  • the message queue to be scheduled is medium.
  • the number of the requested tokens can be represented by the number of packets to be transmitted, the number of bytes of the packets, the number of packets, or the increment of the number of bytes in the queue.
  • the number of tokens requested by the notification is determined based on the packets to be transmitted in the queue to be scheduled, the number of tokens requested can be considered to correspond to the number of packets to be transmitted.
  • each report is assumed.
  • the packet has 100 bytes, and the board carries the first to-be-scheduled message queue with 300 bytes to be transmitted in the notification, and the second to-be-scheduled message queue has 500 bytes of information to be transmitted, to the management device.
  • Request a total of 800 tokens (assuming 1 token corresponds to 1 byte).
  • the number of 800 tokens requested corresponds to the number of packets to be transmitted in the queue of scheduled packets in the card.
  • the board in the S110 can be the service board of the network device. Those skilled in the art may think that the board in the S110 may also be other devices that may process data in the network device and transmit data in the future, and the traffic needs to be uniformly scheduled and managed.
  • the notification received by the management device from the board may be a notification that the board sends independently.
  • the notification may also be a notification that the management device itself determines based on the information carried by the traffic transmitted by the board.
  • the notification determined by the management device itself can also be regarded as a notification that the management device receives from the board, because this still needs to be determined by means of information from the board. For example, the management device determines that there are a large number of video packets that need to be transmitted on the board according to the traffic transmitted by the board, and the maximum size that the board is allowed to send according to the board. Bandwidth allocates tokens to the board.
  • a token is allocated to the to-be-scheduled message queue according to the number of the requested tokens, so that the board transmits the packet in the message queue to be scheduled according to the allocated token.
  • the management device allocates a token according to the number of tokens requested by the board. For example, based on the above example, the management device may allocate 300 tokens to the first to-be-scheduled message queue of the board, and allocate 500 tokens to the second to-be-scheduled message queue of the board.
  • the board transmits the packets in the queue to be scheduled according to the token allocated by the management device. For example, after the board acquisition management device allocates 300 tokens to the first to-be-scheduled message queue, the three packets in the first to-be-scheduled message queue are transmitted, and the acquisition management device allocates the second to-be-scheduled report. After the 500 tokens of the text queue, the five texts in the second queue of the scheduled message are transmitted.
  • the management device may assign a token to the queue of messages to be scheduled in the board based on a plurality of predetermined policies.
  • the predetermined policy can be set in the management device in advance, or can be dynamically adjusted according to the statistics of the data traffic in each board.
  • the traffic management policy known in the prior art may be used, or the traffic management policy may be adopted in the future, as long as it can send packets and send packets in different queues to be scheduled. Just wait for control.
  • the management device may assign a token to the queue to be scheduled based on the priority scheduling policy or the load balancing policy.
  • the management device schedules the packets according to the priority of the queues to be scheduled, so that the important packets are stored in the queue with the highest priority of the packets to be scheduled, and the packets are preferentially scheduled. For example, if a packet is cached according to the packet type, there is a voice to-be-scheduled message queue for storing voice packets, a video to-be-scheduled message queue for storing video packets, and data for storing data packets such as pictures, emails, and texts. Schedule message queues. The priorities of the voice to-be-scheduled message queue, the video to-be-scheduled message queue, and the data to-be-scheduled message queue are sequentially decreased.
  • the message When a message indicating that the message to be scheduled in the queue is to be transmitted, the message is preferentially assigned to the voice to-be-scheduled message queue. If there are remaining tokens, the message waiting to be transmitted in the queue to be scheduled is further satisfied. The packet finally meets the packet to be transmitted in the data queue to be scheduled.
  • the management device allocates a token to the to-be-scheduled message queue of the requesting token, so that the to-be-scheduled message queue can be uniformly scheduled, so that the traffic of each board can be uniformly balanced, and one board is avoided.
  • the traffic in the middle is always in a waiting state and the phenomenon of transmission is not obtained.
  • the management device determines that there are packets in the boards to be transmitted at a certain token allocation time, the tokens can be evenly distributed to the boards.
  • the traffic in the board can be treated equally.
  • the management device can allocate more tokens to the specific board when the traffic of other boards is balanced. More traffic can be transferred to avoid load buildup.
  • the management device may periodically assign a token to the message queue to be scheduled.
  • the number of tokens requested by the board may not be met by the management device at one time.
  • the management device can only allocate a fixed number of tokens to a to-be-scheduled message queue in the board at a time, or the total number of tokens that can be allocated by the management device each time is less than the total number of tokens requested.
  • the management device may not be able to satisfy the number of tokens requested by the board at one time. In this way, the management device needs to periodically assign a token to the queue to be scheduled, and flexibly allocate the token by sending the token multiple times to satisfy the predetermined scheduling policy.
  • the time interval between periodically assigning tokens may be equal or unequal.
  • the first to-be-scheduled message queue requires 300 tokens as an example.
  • the management device may assign 300 tokens to the first to-be-scheduled message queue at a time, or may assign tokens to it multiple times periodically.
  • the token may be allocated in such a manner that 100 tokens are allocated each time, three times in total, or the available tokens may be allocated multiple times according to the current token usage until the demand of 300 tokens is satisfied.
  • those skilled in the art can also easily think of determining how to assign a token based on a predetermined policy, and if the token requirement cannot be met at one time, the token requirement is satisfied by multiple allocations.
  • the board may transmit the message in the message queue to be scheduled according to the allocated token based on the token bucket technology.
  • the board can store the token received from the management device in the token bucket.
  • each token in the token bucket can correspond to one byte, or multiple bytes, and can directly correspond to one packet. If there is a token in the token bucket, then Traffic is allowed to be sent, otherwise, traffic is not allowed to be sent. If the number of tokens in the token bucket satisfies the transmission of a complete packet, the packet is transmitted and the corresponding number of tokens are deleted. If the number of tokens in the token bucket is insufficient to satisfy a complete packet.
  • the tokens in the token bucket can also be the tokens shared by the queues to be scheduled.
  • the tokens are used according to the rules for using the tokens in the queues to be scheduled. For example, the voice to-be-scheduled message queue in the board preferentially uses the token. If there are remaining tokens in the token bucket, it is used by the video to-be-scheduled message queue, and then used by the data to-be-scheduled message queue.
  • the management device allocates the token according to the notification of the plurality of board request tokens, so as to control the packet transmission of the board through the allocation of the token, so that the traffic management is originally performed independently.
  • the traffic in the board can be uniformly and centralizedly scheduled. Unlike the prior art, the traffic in each board is managed separately, independently, and isolated. Therefore, by using centralized traffic management, it is possible to uniformly and effectively manage data flows that may be associated with each other on different boards, thereby meeting the needs of traffic management.
  • FIG. 2 a flow diagram of another method 200 of traffic management in accordance with an embodiment of the present invention is shown.
  • S210 and S220 in FIG. 2 are substantially the same as S110 and S120 in FIG. 1, and therefore will not be described again.
  • the method 200 may further include, after S220, S230, when the number of allocated tokens is equal to the number of requested tokens, stopping the allocation of the queues to be scheduled to be scheduled for the board in the management device.
  • Two counters are set for the queue to be scheduled. The first counter is used to record the number of tokens requested by the board for the queue of the message to be scheduled, and the other counter is used to record the number of tokens allocated by the management device to the queue of messages to be scheduled. When the count values of the two counters are equal, it indicates that the assigned token can satisfy the packet to be transmitted in the queue of the message to be scheduled, and therefore, the token is stopped.
  • the initial value of the counter is the number of tokens that the board requests for the queue of the message to be scheduled.
  • the counter is subtracted from the assigned number of tokens, when the management device When the board receives a new notification for the queue to be scheduled, it adds the counter to the requested number of tokens.
  • the counter's count value is zero, the assignment token is stopped.
  • the method 200 may further include S240 after S220. If the board determines that the number of assigned tokens is less than the requested number of tokens, the notification of the request token is sent again.
  • the board After the management device assigns a token to the queue to be scheduled in the board, the board needs to determine whether the token allocation is over. In the case that the management device receives the notification and performs the token allocation only once, if the board receives the token, it determines that the token allocation ends. If the board does not receive the token and waits for the token to expire, Determine the end of the token assignment. The management device may send the specific information to indicate the end of the token allocation when the management device receives the notification, and may periodically allocate the tokens multiple times. If the board receives the specific information, Then, it is determined that the token allocation ends. If the board does not receive the specific message and the time of waiting for the token expires, it is determined that the token allocation ends.
  • the board determines that the token allocation is over, if the number of tokens that the management device allocates to the board cannot be full, the number of tokens that are requested cannot be transmitted, and the board requests the management device again. Token.
  • the number of tokens that are requested at this time may be the number of tokens corresponding to the packet that has not been acquired by the previous one, or the number of tokens corresponding to the number of packets that need to be transmitted in the queue to be scheduled.
  • the message that needs to be transmitted currently includes the packet that has not yet obtained the token, and also includes the newly buffered packet that needs to be transmitted.
  • the board sends a notification again by actively discovering that the number of assigned tokens cannot satisfy the requested number of tokens, and can timely request re-scheduling of the unscheduled packets, and can also reduce errors caused by the token allocation process.
  • the packets scheduled to be scheduled are not scheduled in time, and thus have an impact on traffic management performance.
  • S240 is executed after S230 in Fig. 2, S240 may be executed before S230, and S230 and S240 may be simultaneously executed.
  • the traffic management method when the traffic of the same service enters the network device from different inbound interfaces and enters different boards, or when the traffic of the same service is distributed differently
  • centralized traffic management is performed by the management device, and unified traffic management can be performed on these originally associated data flows that are desired to be uniformly managed.
  • the board is managed separately. Therefore, the requirements of traffic management can be met, and the effectiveness of traffic management can be improved.
  • the traffic management can be performed on the board in the process of data processing (such as forwarding, labeling, etc.), and the packet buffer can be shared with the service processing of the board, and the packet is directly transmitted according to the token bucket technology. Therefore, it is no longer necessary to open up new storage space and then cache the message, thereby saving storage space and improving performance.
  • 3 and 5 respectively show schematic diagrams of examples of traffic management according to an embodiment of the present invention.
  • the management device 340 performs centralized traffic management of the traffic of the boards 310, 320, and 330.
  • Each board can have multiple queues to be scheduled and cache the corresponding packets in the queue to be scheduled.
  • the management device 340 records the scheduling characteristics of each queue to be scheduled to be scheduled, and the characteristics may include at least one of the following: scheduling priority, queue scheduling mode, number of packets owned by the queue, and traffic shaping of the total egress traffic of the queue. parameter.
  • the management device 340 can manage the queues of the to-be-scheduled messages to be scheduled in the boards 310, 320, and 330 according to the set. These to-be-scheduled message queues can be divided into different sets by a predetermined policy.
  • the voice to be scheduled packet queues of the buffered voice packets in the boards 310, 320, and 330 are divided into voice sets, and the video packets of the video packets are buffered in the boards 310, 320, and 330.
  • the scheduling message queue is divided into a video set, and the data to-be-scheduled message queues of the data packets such as pictures, mails, and texts in the boards 310, 320, and 330 are divided into data sets, and the like.
  • different sets may be scheduled according to a predetermined policy, for example, based on a priority scheduling policy or a load balancing policy, the voice to-be-scheduled message queues in the voice set are preferentially scheduled, or an equal order is assigned to each set. Cards are dispatched.
  • different queue scheduling and traffic shaping strategies can also be implemented independently. For example, for the voice collection, different queues of the to-be-scheduled message can be set according to the user, and the packets in the queue of the to-be-scheduled message of the specific user are preferentially scheduled.
  • different to-be-scheduled reports can be set according to the destination address. The text queue, and allocates a specific transmission bandwidth for the queue of messages to be scheduled for a specific destination address, and so on.
  • the packets are cached in the queues of the to-be-scheduled packets of the board.
  • the real-time queue-to-queue or egress scheduling is performed by the board.
  • the management device 340 manages and controls the packets to be scheduled. The scheduling of messages in the queue. Between the boards 310, 320, and 330 and the management device 340 Message links are connected, and messages are not transmitted by means of data packets.
  • the message link can require small delay and high link reliability, which enables fast and efficient centralized management.
  • the board can be configured with the to-be-scheduled message queues to be managed by the management device 340, and the set of the to-be-scheduled message queues to be centrally managed by the management device 340 can be configured to facilitate the management device 340 according to the predetermined policy. Perform centralized scheduling.
  • Each board can periodically notify the management device 340 of the number of bytes of the message to be transmitted in the respective queues to be scheduled.
  • the advertising unit can be advertised in bytes or in byte blocks (for example, 128 bytes is a byte block). Notifying the management device 340 of the number of bytes of text can be considered as requesting scheduling control from the management device 340.
  • the number of advertised message bytes is mainly used by the management device 340 to determine whether the queue of the message to be scheduled is empty and whether the token needs to be allocated, regardless of the number of specific tokens allocated each time.
  • the board can be advertised.
  • the board can advertise the number of packets to be transmitted in the queues of the packets to be scheduled at one time, or the number of packets to be transmitted in the queue of the packets to be scheduled.
  • the board can adjust the frequency of sending notifications according to the ratio of the number of bytes of packets in the queue to be scheduled that do not acquire tokens to the total number of bytes. The higher the ratio, the faster the transmission.
  • the management device 340 After receiving the notification sent by the board, the management device 340 allocates the token based on the number of tokens requested.
  • the management device 340 can control the number of messages to be transmitted by the board according to a predetermined policy by assigning tokens.
  • the number of tokens allocated by the management device 340 may be determined by an egress flow parameter of the set to which the to-be-scheduled message queue belongs (for example, a committed burst size CBS, an excess burst size EBS, a committed information rate CIR, a peak information rate PIR, etc.). determine.
  • the traffic shaping can be performed based on the token.
  • the token bucket technology can be used to schedule a packet that acquires a token from a token bucket to a subordinate queue or an egress.
  • the single board 400 may be any one of the boards 310, 320, and 330 of FIG.
  • the board 400 includes a queue management module 410, a to-be-scheduled message queue 420, a token bucket 430, and a lower-level queue or outlet 440.
  • the queue management module 410 can advertise the unscheduled message bytes to the management device to request the acquisition of a corresponding number of tokens and receive the token assigned by the management device. After receiving the token, the queue management module 410 also delivers the assigned token to the token bucket 430. When the token in the token bucket 430 is full, Discard the newly issued token. In addition, the queue management module 410 also manages the message queue 420 to be scheduled, in which the message to be transmitted is buffered. The packets buffered in the to-be-scheduled message queue 420 are sent to the lower-level queue or the egress 440 after the tokens in the token bucket 430 are acquired, and the corresponding number of tokens are deleted from the token bucket 430. The queue management module 410 controls the transmission of the packets in the to-be-scheduled message queue 420 based on the tokens in the token bucket 430, thereby completing traffic shaping in the board 400.
  • the board 310 has a queue A to be scheduled
  • the board 320 has a queue B to be scheduled
  • the board 330 has a queue to be scheduled (:. from A, B, and C)
  • the packets output by the inbound interface are respectively cached in the queues of the to-be-scheduled packets (called "queues") A, B, and C of the three access boards of the access device (that is, the example of the board).
  • the load balancing policy is scheduled in a polling manner.
  • the total number of bytes is 15000, and 30 packets are input from the access point C, and the total number of bytes is 20000.
  • the unit is allocated with 1000 bytes as the token, that is, one token is allocated corresponding to 1000 bytes.
  • the boards 310, 320, and 330 can advertise the number of message bytes waiting to be scheduled to the management device 340 in units of byte blocks. In this example, assuming that 1 byte block also has 1000 bytes, the boards 310, 320, and 330 respectively advertise to the management device 340 that the packets in the respective queues A, B, and C that do not acquire the token have 8 , 15 and 20 byte blocks. At this time, one byte block corresponds to one token allocation unit.
  • the management device 340 assigns a token to the eight queues of eight, B, and C at a rate of 5M total outlet bandwidth, and assumes that a total of 12 token blocks can be assigned a token within the time interval in which the token is allocated.
  • the management device 340 simulates three queues for polling scheduling, and assigns four tokens to each of the three queues A, B, and C. After obtaining four tokens, the three queues A, B, and C can respectively send 4000 bytes of packets.
  • the management device 340 On the second poll, the management device 340 still allocates four tokens to each of the three queues A, B, and C. After obtaining four tokens, the three queues A, B, and C respectively send 4,000-byte packets.
  • the A queue since the A queue has no packets to send, it is no longer assigned to the A queue. New token. At this point, there are 7 byte blocks in the B queue that need to be sent, and there are 12 byte blocks in the C queue that need to be sent.
  • the management device 340 allocates six tokens to the C queue based on the load balancing policy. In this way, the B and C queues can respectively send 6,000-byte packets.
  • the management device 340 receives the notifications from the boards 310, 320, and 330, the traffic in each board can be centrally managed, and the tokens are allocated multiple times based on the load balancing policy to meet the requirements of the traffic management, and the A is guaranteed.
  • the total bandwidth transmitted by the three queues, B, and C matches the scheduling bandwidth (ie, 5M) configured for the set to which the three queues belong.
  • FIG. 5 shows another example of traffic management in accordance with an embodiment of the present invention.
  • the notification sent by the board to the management device can carry the number of packets.
  • the token is assigned to the board that sent the notification independently and periodically.
  • the management device assigns a token to the board to carry the token allocation information by confirming the ACK message, and the ACK message can also respond to the receipt of the notification. If the board finds the loss of the ACK message (for example, timeout, error correction, etc.), it waits for the specific information indicating the end of the token allocation to be received, and then recalculates the report waiting to be transmitted in the queue of the to-be-scheduled message in the board. The number of texts, the notification of the request token is sent again.
  • the management device 520 that performs centralized traffic management sequentially receives notifications of sequence numbers 1, 2, and 3 from the board 510, and the notifications carry " ⁇ bytes increments of 2000, 500, and 500, respectively. 520 sends an ACK message in response to each sequence number to the board 510 multiple times according to the predetermined scheduling policy.
  • Each ACK message carries token allocation information indicating that 500 tokens are allocated (1 token corresponds to 1 byte).
  • the board 510 expires when the timer expires.
  • the loss of the ACK message is found, and continues to wait for the management device 520 to assign the token.
  • the ACK message 3 in response to the notification of sequence number 3 is correctly transmitted, and an ACK message 3 carrying the specific information indicating the end of the token allocation is transmitted.
  • the board 510 When receiving the ACK message with the specific information from the management device 520, the board 510 recalculates the number of bytes of the message waiting to be transmitted in the queue of the to-be-scheduled message of the board 510, and The number of bytes of the message is carried in the notification with sequence number 4 and sent to management device 520.
  • FIG. 6 shows a block diagram of a structure of a management apparatus 600 for traffic management according to an embodiment of the present invention.
  • the management device 600 includes a receiving module 610 and an allocation module 620.
  • the receiving module 610 is configured to receive the notification of the request token sent by the at least two boards, and the number of tokens requested by each board corresponds to the number of packets to be transmitted in the queue of the to-be-scheduled message in the board.
  • the allocating module 620 can be configured to allocate a token to the to-be-scheduled message queue according to the number of requested tokens, so that the board transmits the packet in the message queue to be scheduled according to the allocated token.
  • the management apparatus may allocate a token based on the notification of the plurality of board request tokens, so as to control the packet transmission of the board through the allocation of the token, so that the traffic in the board that originally performs traffic management independently Unified, centralized scheduling can be achieved, unlike the prior art, the traffic in each board is managed separately, independently, and isolated. Therefore, by using the management device for centralized traffic management, it is possible to uniformly and efficiently manage data streams that may be associated with each other on different boards, thereby satisfying the requirements of traffic management.
  • Fig. 7 is a block diagram showing the structure of a management apparatus 700 for traffic management according to an embodiment of the present invention.
  • the receiving module 710 and the assigning module 720 in the management device 700 are substantially the same as the receiving module 610 and the assigning module 620 in the managing device 600 of FIG.
  • the allocating module 720 can be configured to allocate a token to the to-be-scheduled message queue based on a priority scheduling policy or a load balancing policy.
  • the allocation module 720 can be configured to periodically assign tokens to the queue of messages to be scheduled.
  • Management device 700 may also include a stop module 730, in accordance with an embodiment of the present invention.
  • the stop module 730 can be configured to stop assigning tokens to the queue of pending messages when the number of assigned tokens is equal to the number of tokens requested.
  • the scheduling module performs the scheduling based on the priority scheduling policy, so that the important packets, that is, the packets stored in the queue with the highest priority, are preferentially scheduled.
  • the load balancing policy is used for scheduling, so that the queues of the packets to be scheduled can be uniformly scheduled, so that the traffic of each board can be uniformly balanced, and the traffic in one board is always in a waiting state and cannot be transmitted.
  • the token is periodically allocated by the distribution module, so that when the management device cannot satisfy the requested number of tokens at one time, the token can be flexibly allocated by sending the token multiple times to satisfy the predetermined scheduling policy. By stopping the module, it is possible to determine when to stop the assignment of the token.
  • RAM random access memory
  • ROM read only memory
  • EEPROM electrically programmable ROM
  • EEPROM electrically erasable programmable ROM
  • registers hard disk, removable disk, CD-ROM or technology Any other form of storage medium known.

Abstract

Provided in embodiments of the present invention are a traffic management method and a management device. The method comprises: receiving notifications transmitted by at least two single boards requesting for a token, the number of tokens corresponds to the number of packets requiring transmission in a to-be-scheduled-packet queue of the single board; on the basis of the number of tokens requested, distributing tokens to the to-be-scheduled-packet queue, thus allowing the single board to transmit, on the basis of the token distributed, the packets in the to-be-scheduled-packet queue. The management device comprises a receiving module and a distributing module. In the method and management device provided in embodiments of the present invention, by using the management device for centralizing traffic management, collective and centralized scheduling is allowed for previously independently managed traffic of the single boards, thereby allowing collective and effective management of data streams having possible association with each other and distributed on different single boards, and satisfying the needs of traffic management.

Description

流量管理的方法和管理装置 技术领域  Method and management device for traffic management
本发明涉及通信领域, 更具体地, 涉及通信领域中流量管理的方法和管 理装置。 背景技术  The present invention relates to the field of communications, and more particularly to a method and a management apparatus for traffic management in the field of communications. Background technique
随着互联网的兴起, 各种业务开始在互联网协议(Internet Protocol, IP ) 网络上承载, 同时 IP 网络向传统的电信领域渗透, 数据业务逐渐取代传统 的语音业务, 从而逐渐成为通信业务的主体。 为保证各种电信服务能够满足 用户的业务要求, 需要在网络设备上进行流量管理 ( Traffic Management , With the rise of the Internet, various services began to be carried on the Internet Protocol (IP) network. At the same time, IP networks penetrated into the traditional telecommunications field, and data services gradually replaced traditional voice services, and gradually became the main body of communication services. To ensure that various telecommunication services can meet the user's business requirements, traffic management needs to be performed on network devices (Traffic Management,
ΤΜ ), 保证各种业务的流量能够受控。 ΤΜ ), to ensure that the traffic of various services can be controlled.
为了适应复杂业务的流量管理需求, 通常在每个业务板上进行多级流量 管理, 但管理的流量仅限于该业务板内的流量。 业务板是指网络设备中的单 板。 每个单板可以进行各种各样的业务处理, 例如数据流的接入、 转发、 复 用、 路由、 加标、 流量控制、 流量整形等。 多级流量管理使得流量能够在单 板内部按级管理而通过该单板, 满足该单板的输出总流量等的限制需求。  In order to meet the traffic management requirements of complex services, multi-level traffic management is usually performed on each service board, but the managed traffic is limited to the traffic in the service board. A service board is a board in a network device. Each board can perform various types of service processing, such as data stream access, forwarding, multiplexing, routing, labeling, flow control, traffic shaping, and so on. Multi-level traffic management enables the traffic to pass through the board in a single-level management manner, which meets the requirements of the total output of the board.
随着技术的发展,为了提高系统的处理能力和接口数量,在诸如交换机、 路由器、 无线数据业务的网关设备之类的网络设备中, 采用了分布式处理技 术, 也就是将业务处理分布在多个单板(即业务板)上进行处理, 以提高网 络设备整体的处理能力。 由于将流量分布到了不同的单板, 流量管理也相应 地分布到了不同的单板, 形成了分布式的流量管理。  With the development of technology, in order to improve the processing power and the number of interfaces of the system, distributed processing technology is adopted in network devices such as switches, routers, and gateway devices of wireless data services, that is, the service processing is distributed more. The processing is performed on the boards (that is, the service boards) to improve the overall processing capability of the network devices. Traffic is distributed to different boards, and traffic management is distributed to different boards. Distributed traffic management is formed.
在现有技术中, 只能在每个单板内部独立地进行流量管理。 例如, 为了 控制单板的入口流量, 可以对从单板的入接口输入的数据流进行流量管理, 丟弃过多的报文, 防止对设备造成冲击, 影响设备性能, 将入口流量进行流 量管理之后, 再进行业务板的业务处理。 为了控制业务板的出口流量, 在进 行业务板的业务处理之后进行流量管理, 此时需要将业务处理后的数据流再 进行緩存, 才能进行流量管理, 因此将消耗大量的存储空间。  In the prior art, traffic management can only be performed independently within each board. For example, in order to control the ingress traffic of a card, you can perform traffic management on the data stream input from the inbound interface of the card, discard excessive packets, prevent impact on the device, affect device performance, and perform traffic management on the ingress traffic. After that, the business process of the business board is performed. In order to control the egress traffic of the service board, traffic management is performed after the service processing of the service board. In this case, the data stream after the service processing needs to be cached before traffic management can be performed, so a large amount of storage space is consumed.
然而, 随着流量被分布到不同单板来处理的情况的出现, 在每个单板内 部独立地进行流量管理已经不能满足流量管理的需要了。 例如, 当同一业务 的流量从不同入接口输入网络设备而进入不同的单板时, 或者当同一业务的 流量分布到从不同出接口输出的单板上时, 这些原本有关联、 希望统一进行 流量管理的数据流不再能进行统一流量管理了, 而只能由各单板单独进行管 理, 将会造成从网络设备输出的该业务的流量不满足诸如带宽、 延时需求之 类的预定需求, 影响流量管理的有效性。 发明内容 However, as traffic is distributed to different boards for processing, traffic management independently within each board cannot meet the needs of traffic management. For example, when traffic of the same service enters a network device from different inbound interfaces and enters different boards, or when the same service When the traffic is distributed to the boards that are output from different outbound interfaces, the traffic that is originally associated with traffic management is no longer able to manage traffic. The management of the boards can be performed separately. The traffic of the service output from the network device does not meet predetermined requirements such as bandwidth and delay requirements, which affects the effectiveness of traffic management. Summary of the invention
本发明实施例提供了流量管理的方法和管理装置, 能够解决分布到多个 单板的数据流量不能统一管理的问题, 使得能够有效管理分布到不同单板的 数据流, 满足流量管理的需求。  The embodiment of the invention provides a method and a management device for the traffic management, which can solve the problem that the data traffic distributed to multiple boards cannot be uniformly managed, so that the data streams distributed to different boards can be effectively managed to meet the requirements of traffic management.
一方面, 本发明实施例提供了一种流量管理的方法, 包括: 接收至少两 个单板发送的请求令牌的通知, 各单板请求的令牌数量与该单板中的待调度 报文队列中需要传送的报文数量相对应; 根据请求的令牌数量, 向待调度报 进行传送。  On the one hand, the embodiment of the present invention provides a method for traffic management, including: receiving a notification of a request token sent by at least two boards, the number of tokens requested by each board, and the to-be-scheduled message in the board. The number of packets to be transmitted in the queue corresponds to each other; according to the number of requested tokens, the packets to be scheduled are transmitted.
另一方面, 本发明实施例提供了一种用于流量管理的管理装置, 包括: 接收模块, 用于接收至少两个单板发送的请求令牌的通知, 各单板请求的令 牌数量与该单板中的待调度报文队列中需要传送的报文数量相对应; 分配模 块, 用于根据请求的令牌数量, 向待调度报文队列分配令牌, 使得该单板根 根据本发明实施例提供的技术方案, 管理装置根据多个单板请求令牌的 通知来分配令牌, 以通过令牌的分配控制单板的报文传送, 使得原本独立进 行流量管理的单板中的流量能够得到统一、 集中的调度, 而不像现有技术, 各单板中的流量分别、 独立、 隔离地进行管理。 因此, 通过利用管理装置进 行的集中流量管理, 能够统一有效地管理分布在不同单板上可能彼此有关联 的数据流, 从而满足流量管理的需求。 附图说明  On the other hand, an embodiment of the present invention provides a management apparatus for traffic management, including: a receiving module, configured to receive a notification of a request token sent by at least two boards, and the number of tokens requested by each board is An allocation module is configured to allocate a token to the to-be-scheduled message queue according to the number of requested tokens, so that the card root is according to the present invention. In the technical solution provided by the embodiment, the management device allocates the token according to the notification of the plurality of board request tokens, so as to control the packet transmission of the board through the allocation of the token, so that the traffic in the board that is originally independent of the traffic management is performed. Unified, centralized scheduling can be achieved, unlike the prior art, the traffic in each board is managed separately, independently, and isolated. Therefore, the centralized traffic management performed by the management device can uniformly and effectively manage data streams that may be associated with each other on different boards, thereby satisfying the requirements of traffic management. DRAWINGS
为了更清楚地说明本发明实施例的技术方案, 下面将对实施例中所需要 使用的附图作筒单地介绍, 显而易见地, 下面描述中的附图仅仅是本发明的 一些实施例, 对于本领域技术人员来讲, 在不付出创造性劳动的前提下, 还 可以根据这些附图获得其他的附图。 图 1示出了^^据本发明实施例的流量管理的方法的流程图; In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the embodiments will be briefly described below. It is obvious that the drawings in the following description are only some embodiments of the present invention. Those skilled in the art can obtain other drawings according to these drawings without paying any creative work. 1 is a flow chart showing a method of traffic management according to an embodiment of the present invention;
图 2示出了根据本发明实施例的流量管理的另一方法的流程图; 图 3示出了才艮据本发明实施例的流量管理的例子的示意图;  2 is a flow chart showing another method of traffic management according to an embodiment of the present invention; FIG. 3 is a schematic diagram showing an example of traffic management according to an embodiment of the present invention;
图 4示出了根据本发明实施例的利用流量管理的方法的单板的示意图; 图 5示出了才艮据本发明实施例的流量管理的另一例子的示意图; 图 6示出了根据本发明实施例的用于流量管理的管理装置的结构框图; 图 7示出了根据本发明实施例的用于流量管理的另一管理装置的结构框 图。 具体实施方式  4 is a schematic diagram of a board using a method of traffic management according to an embodiment of the present invention; FIG. 5 is a schematic diagram showing another example of traffic management according to an embodiment of the present invention; A block diagram of a management apparatus for traffic management according to an embodiment of the present invention; FIG. 7 is a block diagram showing the structure of another management apparatus for traffic management according to an embodiment of the present invention. detailed description
下面将结合本发明实施例中的附图,对本发明实施例的技术方案进行清 楚、 完整地描述, 显然, 所描述的实施例是本发明的一部分实施例, 而不是 全部实施例。 基于本发明中的所述实施例, 本领域技术人员在没有做出创造 性劳动的前提下所获得的所有其他实施例, 都应属于本发明保护的范围。  BRIEF DESCRIPTION OF THE DRAWINGS The technical solutions of the embodiments of the present invention will be clearly and completely described in the following description of the embodiments of the present invention. It is obvious that the described embodiments are a part of the embodiments of the present invention, and not all embodiments. All other embodiments obtained by a person skilled in the art based on the described embodiments of the present invention without creative work shall fall within the protection scope of the present invention.
首先, 结合图 1描述根据本发明实施例的流量管理的方法 100。  First, a method 100 of traffic management in accordance with an embodiment of the present invention will be described in conjunction with FIG.
如图 1所示, 方法 100包括: 在 S110中, 接收至少两个单板发送的请 求令牌的通知,各单板请求的令牌数量与该单板中的待调度报文队列中需要 传送的报文数量相对应; 在 S120中, 根据请求的令牌数量, 向待调度报文 队列分配令牌,使得该单板根据所分配的令牌对待调度报文队列中的报文进 行传送。  As shown in FIG. 1, the method 100 includes: in S110, receiving a notification of a request token sent by at least two boards, and the number of tokens requested by each board and the queue to be scheduled in the board need to be transmitted. In S120, the token is allocated to the to-be-scheduled message queue according to the number of the requested tokens, so that the board transmits the packet in the message queue to be scheduled according to the allocated token.
对至少两个单板进行集中流量管理的管理装置接收来自这些单板的通 知。 单板通过通知来向管理装置请求令牌, 请求的令牌数量可以与单板中的 待调度报文队列中需要传送的报文数量相对应。 管理装置根据单板请求的令 牌数量, 向单板中的待调度报文队列分配令牌。 单板在接收到令牌之后, 根 据管理装置分配的令牌, 对待调度报文队列中的报文进行传送。  A management device that performs centralized traffic management on at least two boards receives notifications from the boards. The card requests a token from the management device by using the notification. The number of the requested tokens can correspond to the number of packets to be transmitted in the queue to be scheduled in the card. The management device allocates a token to the queue to be scheduled in the board according to the number of tokens requested by the board. After receiving the token, the board transmits the packet in the queue to be scheduled according to the token assigned by the management device.
根据本发明实施例提供的流量管理的方法, 管理装置根据多个单板请求 令牌的通知来分配令牌, 以通过令牌的分配控制单板报文的传送, 使得原本 独立进行流量管理的单板中的流量能够得到统一、 集中的调度, 而不像现有 技术, 各单板中的流量分别、 独立、 隔离地进行管理。 因此, 通过利用集中 流量管理, 能够统一有效地管理分布在不同单板上可能彼此有关联的数据 流, 从而满足流量管理的需求。 下面, 具体描述根据本发明实施例的 S110和 S120。 According to the method for traffic management provided by the embodiment of the present invention, the management device allocates a token according to the notification of the plurality of board request tokens, so as to control the transmission of the packet by using the token allocation, so that the traffic management is originally performed independently. The traffic in the board can be uniformly and centralizedly scheduled. Unlike the prior art, the traffic in each board is managed separately, independently, and isolated. Therefore, by using centralized traffic management, data flows that may be associated with each other on different boards can be managed uniformly and efficiently, thereby meeting the requirements of traffic management. Hereinafter, S110 and S120 according to an embodiment of the present invention will be specifically described.
在 S110 中, 接收至少两个单板发送的请求令牌的通知, 各单板请求的 令牌数量与该单板中的待调度报文队列中需要传送的报文数量相对应。  In S110, the notification of the request token sent by the at least two boards is received, and the number of tokens requested by each board corresponds to the number of packets to be transmitted in the queue of the to-be-scheduled message in the board.
管理装置管理至少两个单板,对至少两个单板中的流量进行集中的统一 调度。  The management device manages at least two boards and performs centralized unified scheduling of traffic in at least two boards.
在每个单板中, 可以只有一个待调度报文队列, 也可以存在多个待调度 报文队列。 单板可以根据预定策略, 例如基于报文类型、 发送报文的用户、 报文的目的地址、 报文的输出端口等, 将需要传送的报文緩存在不同的待调 度报文队列中。 需要传送的报文可以是从其它单板接收的报文, 也可以是该 单板自身产生的报文。 例如, 单板可以根据报文的类型对报文进行緩存, 将 携带语音信息的 4艮文存储在专用于语音信息的待调度报文队列中, 将携带视 频信息的报文存储在专用于视频信息的待调度报文队列中等。  On each board, there can be only one queue to be scheduled, or multiple queues to be scheduled. The board can cache the packets to be transmitted in different queues to be scheduled according to a predetermined policy, for example, based on the packet type, the user who sent the packet, the destination address of the packet, and the output port of the packet. The packet to be transmitted may be a packet received from another board or a packet generated by the board itself. For example, the board can cache the packet according to the type of the packet, and store the packet carrying the voice information in the queue of the message to be scheduled dedicated to the voice information, and store the message carrying the video information in the video dedicated to the video. The message queue to be scheduled is medium.
单板可以通过在通知中携带某待调度报文队列中需要传送的报文数量、 报文字节数、 报文数量增量或报文字节数增量, 来表征请求的令牌数量。 当 然, 本领域技术人员还可以想到在通知中携带其他信息来表征请求的令牌数 量。 由于通过通知请求的令牌数量是基于待调度报文队列中需要传送的报文 确定的,因此,可以认为请求的令牌数量与需要传送的报文数量是相对应的。  The number of the requested tokens can be represented by the number of packets to be transmitted, the number of bytes of the packets, the number of packets, or the increment of the number of bytes in the queue. Of course, those skilled in the art will also appreciate carrying other information in the notification to characterize the number of tokens requested. Since the number of tokens requested by the notification is determined based on the packets to be transmitted in the queue to be scheduled, the number of tokens requested can be considered to correspond to the number of packets to be transmitted.
例如, 如果单板具有两个待调度 4艮文队列, 当第一待调度报文队列中需 要传送三个报文, 第二待调度报文队列需要传送五个报文时, 假设每个报文 具有 100个字节, 则单板在通知中携带第一待调度报文队列有 300个字节需 要传送、 第二待调度报文队列有 500个字节需要传送的信息, 来向管理装置 请求总共 800个令牌(假设 1个令牌对应 1个字节)。 请求的 800个令牌数 量与单板中的调度报文队列中需要传送的报文数量是相对应的。  For example, if the board has two queues to be scheduled, when the first queue to be scheduled needs to transmit three packets, and the second queue to be scheduled needs to transmit five packets, each report is assumed. The packet has 100 bytes, and the board carries the first to-be-scheduled message queue with 300 bytes to be transmitted in the notification, and the second to-be-scheduled message queue has 500 bytes of information to be transmitted, to the management device. Request a total of 800 tokens (assuming 1 token corresponds to 1 byte). The number of 800 tokens requested corresponds to the number of packets to be transmitted in the queue of scheduled packets in the card.
S110 中的单板可以是网络设备的业务板。 本领域技术人员可以想到, S110 中的单板也可以是未来可能出现的在网络设备中处理数据并进行数据 传送的其他装置, 对于其中的流量需要进行统一的调度和管理。  The board in the S110 can be the service board of the network device. Those skilled in the art may think that the board in the S110 may also be other devices that may process data in the network device and transmit data in the future, and the traffic needs to be uniformly scheduled and managed.
管理装置接收的来自单板的通知可以是单板独立发送的通知。 该通知也 可以是管理装置自身根据单板传送的流量所携带的信息而确定的通知。 管理 装置自身确定的通知也可以认为是管理装置从单板接收的通知, 因为这仍需 借助于来自单板的信息才可以确定。 例如, 管理装置根据单板传送的流量判 断在该单板中存在大量需要传送的视频报文, 则根据该单板允许发送的最大 带宽向该单板分配令牌。 The notification received by the management device from the board may be a notification that the board sends independently. The notification may also be a notification that the management device itself determines based on the information carried by the traffic transmitted by the board. The notification determined by the management device itself can also be regarded as a notification that the management device receives from the board, because this still needs to be determined by means of information from the board. For example, the management device determines that there are a large number of video packets that need to be transmitted on the board according to the traffic transmitted by the board, and the maximum size that the board is allowed to send according to the board. Bandwidth allocates tokens to the board.
在 S120 中, 根据请求的令牌数量, 向待调度报文队列分配令牌, 使得 单板根据所分配的令牌对待调度报文队列中的报文进行传送。  In S120, a token is allocated to the to-be-scheduled message queue according to the number of the requested tokens, so that the board transmits the packet in the message queue to be scheduled according to the allocated token.
管理装置根据单板请求的令牌数量分配令牌。例如,仍然基于上述例子, 管理装置可以向单板的第一待调度报文队列分配 300个令牌, 向单板的第二 待调度报文队列分配 500个令牌。 单板根据管理装置所分配的令牌来传送待 调度报文队列中的报文。 例如, 单板获取管理装置分配给第一待调度报文队 列的 300个令牌后, 传送第一待调度报文队列中的那三个报文, 而获取管理 装置分配给第二待调度报文队列的 500个令牌后,传送第二待调度报文队列 中的那五个 文。  The management device allocates a token according to the number of tokens requested by the board. For example, based on the above example, the management device may allocate 300 tokens to the first to-be-scheduled message queue of the board, and allocate 500 tokens to the second to-be-scheduled message queue of the board. The board transmits the packets in the queue to be scheduled according to the token allocated by the management device. For example, after the board acquisition management device allocates 300 tokens to the first to-be-scheduled message queue, the three packets in the first to-be-scheduled message queue are transmitted, and the acquisition management device allocates the second to-be-scheduled report. After the 500 tokens of the text queue, the five texts in the second queue of the scheduled message are transmitted.
管理装置可以基于多种预定策略来向单板中的待调度报文队列分配令 牌。 预定策略可以提前设置在管理装置中, 也可以根据对各单板中数据流量 的统计情况来进行动态调整。 可以采用现有技术中已知的进行流量管理的策 略, 也可以采用未来可能出现的用于流量管理的策略, 只要能够对在不同待 调度报文队列中何时发送报文、 发送多少报文等进行控制即可。  The management device may assign a token to the queue of messages to be scheduled in the board based on a plurality of predetermined policies. The predetermined policy can be set in the management device in advance, or can be dynamically adjusted according to the statistics of the data traffic in each board. The traffic management policy known in the prior art may be used, or the traffic management policy may be adopted in the future, as long as it can send packets and send packets in different queues to be scheduled. Just wait for control.
根据本发明的一个实施例, 管理装置可以基于优先级调度策略或负载均 衡策略, 向待调度报文队列分配令牌。  According to an embodiment of the present invention, the management device may assign a token to the queue to be scheduled based on the priority scheduling policy or the load balancing policy.
在优先级调度策略中, 管理装置基于待调度报文队列的优先级来进行调 度, 使得重要的报文即存储在优先级高的待调度报文队列中的报文, 优先得 到调度。 例如, 假设按照报文类型緩存报文, 存在存储语音报文的语音待调 度报文队列、存储视频报文的视频待调度报文队列以及存储诸如图片、邮件、 文本等数据报文的数据待调度报文队列。 设置语音待调度报文队列、 视频待 调度报文队列和数据待调度报文队列的优先级依次递减。 当通知中指示语音 待调度报文队列中有报文需要传送时, 优先向语音待调度报文队列分配令 牌, 如果还有剩余的令牌, 再满足视频待调度报文队列中需要传送的报文, 最后再满足数据待调度报文队列中需要传送的报文。  In the priority scheduling policy, the management device schedules the packets according to the priority of the queues to be scheduled, so that the important packets are stored in the queue with the highest priority of the packets to be scheduled, and the packets are preferentially scheduled. For example, if a packet is cached according to the packet type, there is a voice to-be-scheduled message queue for storing voice packets, a video to-be-scheduled message queue for storing video packets, and data for storing data packets such as pictures, emails, and texts. Schedule message queues. The priorities of the voice to-be-scheduled message queue, the video to-be-scheduled message queue, and the data to-be-scheduled message queue are sequentially decreased. When a message indicating that the message to be scheduled in the queue is to be transmitted, the message is preferentially assigned to the voice to-be-scheduled message queue. If there are remaining tokens, the message waiting to be transmitted in the queue to be scheduled is further satisfied. The packet finally meets the packet to be transmitted in the data queue to be scheduled.
再例如, 假设按照用户緩存报文, 存在存储 A用户发送报文的 A待调 度报文队列、 存储 B用户发送报文的 B待调度报文队列以及存储 C用户发 送 ·|艮文的 C待调度 4艮文队列。 由于付费等原因, Α用户的优先级高于 B用 户的优先级、 B用户的优先级高于 C用户的优先级。 则首先满足 A用户的 发送需求, 当 A待调度报文队列中出现需要传送的报文时, 优先向 A待调 度报文队列分配令牌, 其次是 B待调度报文队列, 再其次是 C待调度报文 队列。 For example, it is assumed that, according to the user buffered message, there is a queue of A to be scheduled to store the message sent by the A user, a queue of the B to be scheduled to store the message sent by the B user, and a C to be sent by the C user to send the message. Schedule 4 essay queues. Due to reasons such as payment, the priority of the user is higher than the priority of the B user, and the priority of the B user is higher than the priority of the C user. First, the A user needs to be sent. When a message to be transmitted appears in the queue to be scheduled A, the priority is adjusted to A. The message queue is assigned a token, followed by the B queue to be scheduled, and then the C queue to be scheduled.
在负载均衡策略中, 管理装置向请求令牌的待调度报文队列均衡地分配 令牌, 使得待调度报文队列可以得到均衡地调度, 从而可以均衡调度各单板 的流量, 避免一个单板中的流量始终处于等待状态而得不到传送的现象的出 现。  In the load balancing policy, the management device allocates a token to the to-be-scheduled message queue of the requesting token, so that the to-be-scheduled message queue can be uniformly scheduled, so that the traffic of each board can be uniformly balanced, and one board is avoided. The traffic in the middle is always in a waiting state and the phenomenon of transmission is not obtained.
例如, 假设有多个单板有报文需要传送, 如果管理装置在某一令牌分配 时刻确定这些单板中有报文需要传送, 则可以将自己的令牌平均分配给这些 单板, 使得单板中的流量可以被同等对待而传送。  For example, if a plurality of boards have packets to be transmitted, if the management device determines that there are packets in the boards to be transmitted at a certain token allocation time, the tokens can be evenly distributed to the boards. The traffic in the board can be treated equally.
再例如, 假设某一特定单板的流量比其他单板的流量大, 则管理装置可 以在兼顾其他单板的流量时, 向该特定单板分配更多的令牌, 使得负载大的 单板可以更多地传送流量, 避免负载堆积。  For example, if the traffic of a particular board is larger than the traffic of other boards, the management device can allocate more tokens to the specific board when the traffic of other boards is balanced. More traffic can be transferred to avoid load buildup.
根据本发明的一个实施例, 管理装置可以周期性地向待调度报文队列分 配令牌。 单板请求的令牌数量, 管理装置可能无法一次性满足。 例如, 由于 调度策略而使得管理装置一次只能向单板中的某待调度报文队列分配固定 个数的令牌, 或者管理装置每次可分配的令牌总数小于所请求的令牌总数, 或者由于该单板优先级较低而已经没有足够的令牌可以分配等,使得管理装 置可能无法一次性满足单板请求的令牌数量。 这样, 就需要管理装置周期性 地多次向待调度 ^艮文队列分配令牌, 通过多次发送令牌的方式来灵活分配令 牌, 满足预定的调度策略。 另外, 周期性分配令牌所间隔的时间可以相等, 也可以不等。  According to an embodiment of the present invention, the management device may periodically assign a token to the message queue to be scheduled. The number of tokens requested by the board may not be met by the management device at one time. For example, the management device can only allocate a fixed number of tokens to a to-be-scheduled message queue in the board at a time, or the total number of tokens that can be allocated by the management device each time is less than the total number of tokens requested. Or because the board has a lower priority and there are not enough tokens to be allocated, etc., the management device may not be able to satisfy the number of tokens requested by the board at one time. In this way, the management device needs to periodically assign a token to the queue to be scheduled, and flexibly allocate the token by sending the token multiple times to satisfy the predetermined scheduling policy. In addition, the time interval between periodically assigning tokens may be equal or unequal.
例如, 仍以第一待调度报文队列需要 300个令牌为例。 管理装置可以一 次性向第一待调度报文队列分配 300个令牌, 也可以周期性地多次向其分配 令牌。 例如, 可以以每次分配 100个令牌、 共分配三次的方式来分配令牌, 也可以根据当前令牌的使用情况来多次分配可用令牌, 直到满足 300个令牌 的需求。 当然, 本领域技术人员还可以容易地想到, 基于预定策略来确定如 何分配令牌,如果一次不能满足令牌需求,则通过多次分配来满足令牌需求。  For example, the first to-be-scheduled message queue requires 300 tokens as an example. The management device may assign 300 tokens to the first to-be-scheduled message queue at a time, or may assign tokens to it multiple times periodically. For example, the token may be allocated in such a manner that 100 tokens are allocated each time, three times in total, or the available tokens may be allocated multiple times according to the current token usage until the demand of 300 tokens is satisfied. Of course, those skilled in the art can also easily think of determining how to assign a token based on a predetermined policy, and if the token requirement cannot be met at one time, the token requirement is satisfied by multiple allocations.
根据本发明的一个实施例, 单板可以基于令牌桶技术, 根据所分配的令 牌对待调度报文队列中的报文进行传送。单板可以将从管理装置接收的令牌 存储在令牌桶中。根据不同的设置,令牌桶中的每个令牌可以对应一个字节, 也可以对应多个字节, 还可以直接对应一个报文。 如果令牌桶中有令牌, 则 允许发送流量, 反之, 则不允许发送流量。 如果令牌桶中的令牌数量满足一 个完整报文的传送, 则将该报文传送出去, 并删除相应数量的令牌, 如果令 牌桶中的令牌数量不足以满足一个完整报文的传送, 则暂时不传送该报文, 直到接收到新的令牌并满足该完整报文时, 再将该报文传送出去。 文队列中的报文只可以使用针对它的那些令牌。令牌桶中的令牌也可以是待 调度报文队列共享的令牌,根据单板中的待调度报文队列使用令牌的规则来 使用这些令牌。 例如, 单板中的语音待调度报文队列优先使用令牌, 如果令 牌桶中还有剩余令牌, 再由视频待调度报文队列使用, 其次再由数据待调度 报文队列使用。 According to an embodiment of the present invention, the board may transmit the message in the message queue to be scheduled according to the allocated token based on the token bucket technology. The board can store the token received from the management device in the token bucket. According to different settings, each token in the token bucket can correspond to one byte, or multiple bytes, and can directly correspond to one packet. If there is a token in the token bucket, then Traffic is allowed to be sent, otherwise, traffic is not allowed to be sent. If the number of tokens in the token bucket satisfies the transmission of a complete packet, the packet is transmitted and the corresponding number of tokens are deleted. If the number of tokens in the token bucket is insufficient to satisfy a complete packet. If the message is transmitted, the message is not transmitted temporarily, and the message is transmitted until the new message is received and the complete message is satisfied. Messages in the text queue can only use those tokens for it. The tokens in the token bucket can also be the tokens shared by the queues to be scheduled. The tokens are used according to the rules for using the tokens in the queues to be scheduled. For example, the voice to-be-scheduled message queue in the board preferentially uses the token. If there are remaining tokens in the token bucket, it is used by the video to-be-scheduled message queue, and then used by the data to-be-scheduled message queue.
根据本发明实施例提供的流量管理的方法, 管理装置根据多个单板请求 令牌的通知来分配令牌, 以通过令牌的分配控制单板的报文传送, 使得原本 独立进行流量管理的单板中的流量能够得到统一、 集中的调度, 而不像现有 技术, 各单板中的流量分别、 独立、 隔离地进行管理。 因此, 通过利用集中 流量管理, 能够统一有效地管理分布在不同单板上可能彼此有关联的数据 流, 从而满足流量管理的需求。  According to the method of the traffic management provided by the embodiment of the present invention, the management device allocates the token according to the notification of the plurality of board request tokens, so as to control the packet transmission of the board through the allocation of the token, so that the traffic management is originally performed independently. The traffic in the board can be uniformly and centralizedly scheduled. Unlike the prior art, the traffic in each board is managed separately, independently, and isolated. Therefore, by using centralized traffic management, it is possible to uniformly and effectively manage data flows that may be associated with each other on different boards, thereby meeting the needs of traffic management.
在图 2中, 示出了根据本发明实施例的流量管理的另一方法 200的流程 图。  In Fig. 2, a flow diagram of another method 200 of traffic management in accordance with an embodiment of the present invention is shown.
相比于图 1的方法 100, 图 2中的 S210和 S220与图 1的 S110和 S120 基本相同, 因此不再赘述。  Compared with the method 100 of FIG. 1, S210 and S220 in FIG. 2 are substantially the same as S110 and S120 in FIG. 1, and therefore will not be described again.
根据本发明的一个实施例, 方法 200在 S220之后还可以包括 S230, 当 所分配的令牌数量等于请求的令牌数量时, 停止向待调度报文队列分配令 可以在管理装置中针对单板的待调度艮文队列设置两个计数器。 第一计 数器用于记录单板针对待调度报文队列请求的令牌数量, 另一计数器用于记 录管理装置向待调度报文队列分配的令牌数量。 当两个计数器的计数值相等 时, 说明所分配的令牌可以满足待调度报文队列中需要传送的报文, 因此, 停止分配令牌。  According to an embodiment of the present invention, the method 200 may further include, after S220, S230, when the number of allocated tokens is equal to the number of requested tokens, stopping the allocation of the queues to be scheduled to be scheduled for the board in the management device. Two counters are set for the queue to be scheduled. The first counter is used to record the number of tokens requested by the board for the queue of the message to be scheduled, and the other counter is used to record the number of tokens allocated by the management device to the queue of messages to be scheduled. When the count values of the two counters are equal, it indicates that the assigned token can satisfy the packet to be transmitted in the queue of the message to be scheduled, and therefore, the token is stopped.
还可以在管理装置中针对单板的待调度 4艮文队列设置一个计数器。计数 器的初始值为单板针对待调度报文队列请求的令牌数量。 当管理装置向待调 度报文队列分配令牌后, 将该计数器减去所分配的令牌数量, 当管理装置从 单板接收到针对待调度报文队列发送的新的通知时, 将该计数器加上所请求 的令牌数量。 当该计数器的计数值为零时, 停止分配令牌。 It is also possible to set a counter for the to-be-scheduled queue of the board in the management device. The initial value of the counter is the number of tokens that the board requests for the queue of the message to be scheduled. After the management device allocates a token to the queue to be scheduled, the counter is subtracted from the assigned number of tokens, when the management device When the board receives a new notification for the queue to be scheduled, it adds the counter to the requested number of tokens. When the counter's count value is zero, the assignment token is stopped.
当然, 还可以在管理装置中针对单板设置两个计数器或一个计数器。 与 如上描述类似, 当针对单板的两个计数器的计数值相等时, 或者针对单板的 一个计数器的值为零时,说明向单板分配的令牌可以满足单板中所有待调度 报文队列需要传送的报文, 则停止分配令牌。  Of course, it is also possible to set two counters or one counter for the board in the management device. Similar to the above description, when the count values of the two counters of the board are equal, or the value of one of the counters of the board is zero, the tokens allocated to the board can satisfy all the to-be-scheduled messages in the board. If the queue needs to transmit a message, the token is stopped.
根据本发明的一个实施例, 方法 200在 S220之后还可以包括 S240, 如 果单板确定所分配的令牌数量少于请求的令牌数量, 则再次发送请求令牌的 通知。  According to an embodiment of the present invention, the method 200 may further include S240 after S220. If the board determines that the number of assigned tokens is less than the requested number of tokens, the notification of the request token is sent again.
管理装置向单板中的待调度报文队列分配令牌之后,单板需要确定令牌 分配是否结束。 在管理装置每接收到通知、 只进行一次令牌分配的情况下, 如果单板接收到令牌, 则确定令牌分配结束, 如果单板没接收到令牌并且等 待令牌的时间届满, 则确定令牌分配结束。 在管理装置每接收到通知、 可能 多次周期性地分配令牌的情况下, 可以让管理装置在令牌分配结束时发送特 定信息来指示令牌分配结束, 如果单板接收到该特定信息, 则确定令牌分配 结束, 如果单板没接收到该特定消息并且等待令牌的时间届满, 则确定令牌 分配结束。  After the management device assigns a token to the queue to be scheduled in the board, the board needs to determine whether the token allocation is over. In the case that the management device receives the notification and performs the token allocation only once, if the board receives the token, it determines that the token allocation ends. If the board does not receive the token and waits for the token to expire, Determine the end of the token assignment. The management device may send the specific information to indicate the end of the token allocation when the management device receives the notification, and may periodically allocate the tokens multiple times. If the board receives the specific information, Then, it is determined that the token allocation ends. If the board does not receive the specific message and the time of waiting for the token expires, it is determined that the token allocation ends.
当单板确定令牌分配结束时, 如果管理装置分配给单板的令牌数量不能 满则请求的令牌数量, 说明还有部分需要传送的报文不能传送, 则单板再次 向管理装置请求令牌。此时请求的令牌数量可以是与前一次还没有获取令牌 的报文所对应的令牌数量, 也可以是与待调度报文队列中当前需要传送的报 文数量相对应的令牌数量, 而当前需要传送的报文包括上一次还没有获取令 牌的报文, 还包括新緩存的需要传送的报文。  When the board determines that the token allocation is over, if the number of tokens that the management device allocates to the board cannot be full, the number of tokens that are requested cannot be transmitted, and the board requests the management device again. Token. The number of tokens that are requested at this time may be the number of tokens corresponding to the packet that has not been acquired by the previous one, or the number of tokens corresponding to the number of packets that need to be transmitted in the queue to be scheduled. The message that needs to be transmitted currently includes the packet that has not yet obtained the token, and also includes the newly buffered packet that needs to be transmitted.
这样, 单板通过主动发现分配的令牌数量不能满足请求的令牌数量而再 次发送通知, 可以及时请求对没有调度的报文进行重新调度, 还可以降低在 令牌分配过程中出现错误而造成本该调度的报文没有及时调度、从而对流量 管理性能产生的影响。  In this way, the board sends a notification again by actively discovering that the number of assigned tokens cannot satisfy the requested number of tokens, and can timely request re-scheduling of the unscheduled packets, and can also reduce errors caused by the token allocation process. The packets scheduled to be scheduled are not scheduled in time, and thus have an impact on traffic management performance.
虽然在图 2中在 S230之后再执行 S240, 但是也可以在 S230之前执行 S240, 还可以 S230和 S240同时执行。  Although S240 is executed after S230 in Fig. 2, S240 may be executed before S230, and S230 and S240 may be simultaneously executed.
根据本发明实施例提供的流量管理的方法, 当同一业务的流量从不同入 接口输入网络设备而进入不同单板时, 或者当同一业务的流量分布到从不同 出接口输出的不同单板上时, 通过管理装置进行集中流量管理, 能够对这些 原本有关联、 希望统一进行流量管理的数据流进行统一流量管理, 而不像现 有技术, 只能由各单板单独进行管理。 从而, 可以满足流量管理的需求, 提 高流量管理的有效性。 并且, 由于可以在单板进行数据处理(如转发、 加标 等)的同时完成流量管理, 可以与单板的业务处理共享报文緩存, 而在传送 报文时直接根据令牌桶技术进行传送, 所以不再需要开辟新的存储空间再来 緩存报文, 从而可以节省存储空间, 提高性能。 The traffic management method according to the embodiment of the present invention, when the traffic of the same service enters the network device from different inbound interfaces and enters different boards, or when the traffic of the same service is distributed differently When the outbound interface outputs different boards, centralized traffic management is performed by the management device, and unified traffic management can be performed on these originally associated data flows that are desired to be uniformly managed. However, unlike the prior art, only the individual policies can be used. The board is managed separately. Therefore, the requirements of traffic management can be met, and the effectiveness of traffic management can be improved. In addition, the traffic management can be performed on the board in the process of data processing (such as forwarding, labeling, etc.), and the packet buffer can be shared with the service processing of the board, and the packet is directly transmitted according to the token bucket technology. Therefore, it is no longer necessary to open up new storage space and then cache the message, thereby saving storage space and improving performance.
接下来, 举例说明根据本发明实施例的流量管理的例子。 图 3和图 5分 别示出了根据本发明实施例的流量管理的例子的示意图。  Next, an example of traffic management according to an embodiment of the present invention will be exemplified. 3 and 5 respectively show schematic diagrams of examples of traffic management according to an embodiment of the present invention.
在图 3中, 管理装置 340对单板 310、 320和 330的流量进行集中流量 管理。 各单板可以具有多个待调度报文队列, 并在待调度报文队列中緩存相 应的 4艮文。  In Figure 3, the management device 340 performs centralized traffic management of the traffic of the boards 310, 320, and 330. Each board can have multiple queues to be scheduled and cache the corresponding packets in the queue to be scheduled.
管理装置 340记录有每个需要调度的待调度报文队列的调度特性,这些 特性可以包括如下至少一个: 调度优先级、 队列调度方式、 队列拥有的报文 数、 队列的总出口流量的流量整形参数。  The management device 340 records the scheduling characteristics of each queue to be scheduled to be scheduled, and the characteristics may include at least one of the following: scheduling priority, queue scheduling mode, number of packets owned by the queue, and traffic shaping of the total egress traffic of the queue. parameter.
管理装置 340可以对单板 310、 320和 330中需要调度的待调度报文队 列按照集合来进行管理。 可以通过预定策略将这些待调度报文队列划分为不 同的集合。 以按照类型来划分为例, 将单板 310、 320和 330中緩存语音类 报文的语音待调度报文队列划分为语音集合, 将单板 310、 320和 330中緩 存视频报文的视频待调度报文队列划分为视频集合,将单板 310、 320和 330 中緩存诸如图片、 邮件、 文本等数据报文的数据待调度报文队列划分为数据 集合, 等等。 在不同的集合之间, 可以根据预定策略来调度不同的集合, 例 如基于优先级调度策略或负载均衡策略,优先调度语音集合中的语音待调度 报文队列, 或者向每个集合分配均等的令牌来调度。 在每个集合中, 还可以 独立实施不同的队列调度和流量整形策略。 例如, 对于语音集合, 可以按照 用户来设置不同的待调度报文队列, 并优先调度特定用户的待调度报文队列 中的报文;对于视频集合,可以按照目的地址来设置不同的待调度报文队列, 并为特定目的地址的待调度报文队列分配特定传输带宽, 等等。  The management device 340 can manage the queues of the to-be-scheduled messages to be scheduled in the boards 310, 320, and 330 according to the set. These to-be-scheduled message queues can be divided into different sets by a predetermined policy. The voice to be scheduled packet queues of the buffered voice packets in the boards 310, 320, and 330 are divided into voice sets, and the video packets of the video packets are buffered in the boards 310, 320, and 330. The scheduling message queue is divided into a video set, and the data to-be-scheduled message queues of the data packets such as pictures, mails, and texts in the boards 310, 320, and 330 are divided into data sets, and the like. Between different sets, different sets may be scheduled according to a predetermined policy, for example, based on a priority scheduling policy or a load balancing policy, the voice to-be-scheduled message queues in the voice set are preferentially scheduled, or an equal order is assigned to each set. Cards are dispatched. In each set, different queue scheduling and traffic shaping strategies can also be implemented independently. For example, for the voice collection, different queues of the to-be-scheduled message can be set according to the user, and the packets in the queue of the to-be-scheduled message of the specific user are preferentially scheduled. For the video collection, different to-be-scheduled reports can be set according to the destination address. The text queue, and allocates a specific transmission bandwidth for the queue of messages to be scheduled for a specific destination address, and so on.
报文緩存在单板的待调度报文队列中, 由各单板完成真正的入队列到出 队列或出口调度, 而管理装置 340则通过分配令牌来管理并控制各单板对待 调度报文队列中的报文的调度。 单板 310、 320和 330与管理装置 340之间 有消息链路相通, 而并不通过数据报文的方式进行消息的传送。 消息链路可 以要求延时小, 链路可靠性高, 这样可以实现快速有效地集中管理。 The packets are cached in the queues of the to-be-scheduled packets of the board. The real-time queue-to-queue or egress scheduling is performed by the board. The management device 340 manages and controls the packets to be scheduled. The scheduling of messages in the queue. Between the boards 310, 320, and 330 and the management device 340 Message links are connected, and messages are not transmitted by means of data packets. The message link can require small delay and high link reliability, which enables fast and efficient centralized management.
单板可以配置其中所管理的哪些待调度报文队列需要由管理装置 340进 行集中管理,还可以配置需要由管理装置 340集中管理的待调度报文队列所 属的集合, 便于管理装置 340按照预定策略进行集中调度。  The board can be configured with the to-be-scheduled message queues to be managed by the management device 340, and the set of the to-be-scheduled message queues to be centrally managed by the management device 340 can be configured to facilitate the management device 340 according to the predetermined policy. Perform centralized scheduling.
各单板可以定时通过通知向管理装置 340通告各自的待调度报文队列中 需要传送的报文字节数。 通告单位可以按字节来通告, 也可以按字节块来通 告 (例如 128字节为一个字节块)。 向管理装置 340通告 文字节数, 可以 视为是向管理装置 340请求调度控制。 所通告的报文字节数主要用于由管理 装置 340判断待调度报文队列是否为空、 是否需要分配令牌, 而与每次所分 配的具体令牌数量无关。  Each board can periodically notify the management device 340 of the number of bytes of the message to be transmitted in the respective queues to be scheduled. The advertising unit can be advertised in bytes or in byte blocks (for example, 128 bytes is a byte block). Notifying the management device 340 of the number of bytes of text can be considered as requesting scheduling control from the management device 340. The number of advertised message bytes is mainly used by the management device 340 to determine whether the queue of the message to be scheduled is empty and whether the token needs to be allocated, regardless of the number of specific tokens allocated each time.
如果单板的待调度报文队列中所有报文都获取有令牌、或者待调度报文 队列为空, 则单板可以不进行通告。 单板可以一次通告多个待调度报文队列 中需要传送的报文数量, 也可以一次只通告一个待调度报文队列中需要传送 的报文数量。单板可以根据待调度报文队列中没有获取令牌的报文字节数占 总报文字节数的比例, 来调整发送通知的频率, 比例越高发送越快。  If all the packets in the queue to be scheduled are obtained, the board can be advertised. The board can advertise the number of packets to be transmitted in the queues of the packets to be scheduled at one time, or the number of packets to be transmitted in the queue of the packets to be scheduled. The board can adjust the frequency of sending notifications according to the ratio of the number of bytes of packets in the queue to be scheduled that do not acquire tokens to the total number of bytes. The higher the ratio, the faster the transmission.
管理装置 340接收单板发送的通知之后,基于请求的令牌数量分配令牌。 管理装置 340可以通过令牌的分配, 来根据预定策略控制单板将传送的报文 的数量。 而管理装置 340分配的令牌数量可以通过待调度报文队列所属的集 合的出口流量参数 (例如, 承诺突发尺寸 CBS、 超额突发尺寸 EBS、 承诺信 息速率 CIR、 峰值信息速率 PIR等 ) 来确定。  After receiving the notification sent by the board, the management device 340 allocates the token based on the number of tokens requested. The management device 340 can control the number of messages to be transmitted by the board according to a predetermined policy by assigning tokens. The number of tokens allocated by the management device 340 may be determined by an egress flow parameter of the set to which the to-be-scheduled message queue belongs (for example, a committed burst size CBS, an excess burst size EBS, a committed information rate CIR, a peak information rate PIR, etc.). determine.
单板接收管理装置 340向待调度报文队列分配的令牌之后, 可以基于令 牌进行流量整形。 例如, 可以通过令牌桶技术, 将从令牌桶获取令牌的报文 调度到下级队列或者出口。  After the token received by the board receiving management device 340 to the queue to be scheduled, the traffic shaping can be performed based on the token. For example, the token bucket technology can be used to schedule a packet that acquires a token from a token bucket to a subordinate queue or an egress.
图 4示出了根据本发明实施例的利用流量管理的方法的单板 400的示意 图。 单板 400可以是图 3的单板 310、 320和 330中的任一个。  4 shows a schematic diagram of a single board 400 utilizing a method of traffic management in accordance with an embodiment of the present invention. The single board 400 may be any one of the boards 310, 320, and 330 of FIG.
单板 400包括队列管理模块 410、 待调度报文队列 420、 令牌桶 430和 下级队列或出口 440。  The board 400 includes a queue management module 410, a to-be-scheduled message queue 420, a token bucket 430, and a lower-level queue or outlet 440.
队列管理模块 410可以向管理装置通告未调度的报文字节数以请求获取 相应数量的令牌, 并接收由管理装置分配的令牌。 接收到令牌之后, 队列管 理模块 410还向令牌桶 430下发所分配的令牌。当令牌桶 430中的令牌满时, 丟弃新下发的令牌。 另外, 队列管理模块 410还管理待调度报文队列 420, 在其中緩存将被传送的报文。待调度报文队列 420中緩存的报文在获取令牌 桶 430中的令牌之后, 传送到下级队列或出口 440, 并从令牌桶 430中删除 相应数量的令牌。 队列管理模块 410基于令牌桶 430中的令牌, 控制待调度 报文队列 420中报文的传送, 从而在单板 400内完成流量整形。 The queue management module 410 can advertise the unscheduled message bytes to the management device to request the acquisition of a corresponding number of tokens and receive the token assigned by the management device. After receiving the token, the queue management module 410 also delivers the assigned token to the token bucket 430. When the token in the token bucket 430 is full, Discard the newly issued token. In addition, the queue management module 410 also manages the message queue 420 to be scheduled, in which the message to be transmitted is buffered. The packets buffered in the to-be-scheduled message queue 420 are sent to the lower-level queue or the egress 440 after the tokens in the token bucket 430 are acquired, and the corresponding number of tokens are deleted from the token bucket 430. The queue management module 410 controls the transmission of the packets in the to-be-scheduled message queue 420 based on the tokens in the token bucket 430, thereby completing traffic shaping in the board 400.
下面, 以各单板仅仅具有一个待调度报文队列为例, 具体描述根据本发 明实施例的流量管理的方法。 在该例子中, 进行集中流量管理来限制出口带 宽。 本领域技术人员可以很容易地想到, 各单板具有多个待调度报文队列的 情形与此相似。  In the following, a method for traffic management according to an embodiment of the present invention is specifically described by taking each of the boards as having only one queue to be scheduled. In this example, centralized traffic management is performed to limit the export bandwidth. Those skilled in the art can easily imagine that the situation in which each board has multiple queues of messages to be scheduled is similar.
再次参见图 3 , 假设单板 310具有待调度报文队列 A, 单板 320具有待 调度报文队列 B, 以及单板 330具有待调度报文队列(:。 从 A、 B和 C三个 接入点输出的报文分别緩存在接入设备的三个接入板 (即单板的例子)的待 调度报文队列 (筒称为 "队列") A、 B和 C 中。 三个队列基于负载均衡策 略按照轮询方式来调度。  Referring to FIG. 3 again, it is assumed that the board 310 has a queue A to be scheduled, the board 320 has a queue B to be scheduled, and the board 330 has a queue to be scheduled (:. from A, B, and C) The packets output by the inbound interface are respectively cached in the queues of the to-be-scheduled packets (called "queues") A, B, and C of the three access boards of the access device (that is, the example of the board). The load balancing policy is scheduled in a polling manner.
假设从接入点 A输入 10个报文、 总字节数为 8000, 从接入点 B输入 Assume that 10 messages are input from access point A, and the total number of bytes is 8000, input from access point B.
20个报文、总字节数为 15000,从接入点 C输入 30个报文、总字节数 20000。 以 1000个字节为令牌分配单位, 即分配 1个令牌对应 1000个字节。 20 packets, the total number of bytes is 15000, and 30 packets are input from the access point C, and the total number of bytes is 20000. The unit is allocated with 1000 bytes as the token, that is, one token is allocated corresponding to 1000 bytes.
单板 310、 320和 330可以以字节块为单位向管理装置 340通告等待调 度的报文字节数。 在该例子中, 假设 1个字节块也具有 1000个字节, 那么 单板 310、 320和 330分别向管理装置 340通告各自的队列 A、 B、 C中没有 获取令牌的报文具有 8、 15和 20个字节块。 此时, 1个字节块对应着 1个令 牌分配单位。  The boards 310, 320, and 330 can advertise the number of message bytes waiting to be scheduled to the management device 340 in units of byte blocks. In this example, assuming that 1 byte block also has 1000 bytes, the boards 310, 320, and 330 respectively advertise to the management device 340 that the packets in the respective queues A, B, and C that do not acquire the token have 8 , 15 and 20 byte blocks. At this time, one byte block corresponds to one token allocation unit.
管理装置 340按照出口总带宽 5M的速率向八、 B、 C三个队列分配令 牌, 并假设分配令牌的时间间隔内总共可以向 12个字节块分配令牌。  The management device 340 assigns a token to the eight queues of eight, B, and C at a rate of 5M total outlet bandwidth, and assumes that a total of 12 token blocks can be assigned a token within the time interval in which the token is allocated.
第一次轮询时, 管理装置 340模拟轮询调度三个队列, 为 A、 B、 C三 个队列各分配 4个令牌。 A、 B、 C三个队列在获得 4个令牌之后, 分别可 以发送 4000个字节的报文。  On the first poll, the management device 340 simulates three queues for polling scheduling, and assigns four tokens to each of the three queues A, B, and C. After obtaining four tokens, the three queues A, B, and C can respectively send 4000 bytes of packets.
第二次轮询时, 管理装置 340仍然向 A、 B、 C三个队列各分配 4个令 牌。 A、 B、 C三个队列在获取 4个令牌之后, 再次分别发送 4000个字节的 报文。  On the second poll, the management device 340 still allocates four tokens to each of the three queues A, B, and C. After obtaining four tokens, the three queues A, B, and C respectively send 4,000-byte packets.
第三次轮询时, 由于 A队列已经没有报文发送, 则不再向 A队列分配 新的令牌。 此时, B队列还有 7个字节块需要发送, C队列还有 12个字节 块需要发送。 管理装置 340基于负载均衡策略, 向 C队列分别分配 6个 令牌。 这样, B、 C队列分别可以发送 6000个字节的报文。 In the third round of polling, since the A queue has no packets to send, it is no longer assigned to the A queue. New token. At this point, there are 7 byte blocks in the B queue that need to be sent, and there are 12 byte blocks in the C queue that need to be sent. The management device 340 allocates six tokens to the C queue based on the load balancing policy. In this way, the B and C queues can respectively send 6,000-byte packets.
第四次轮询时, 由于 B队列还有 1个字节块, 而 C队列还有 6个字节 块, 所以只需向 B队列分配 1个令牌、 向 C队列分配 6个令牌即可。  In the fourth polling, since the B queue has 1 byte block and the C queue has 6 byte blocks, it is only necessary to assign 1 token to the B queue and 6 tokens to the C queue. can.
这样, 当管理装置 340接收到来自单板 310、 320和 330的通知之后, 可以集中管理各单板中的流量,基于负载均衡策略来多次分配令牌以满足流 量管理的需求, 并保证 A、 B、 C三个队列传送的总带宽与为这三个队列所 属的集合配置的调度带宽 (即 5M )相符。  In this way, after the management device 340 receives the notifications from the boards 310, 320, and 330, the traffic in each board can be centrally managed, and the tokens are allocated multiple times based on the load balancing policy to meet the requirements of the traffic management, and the A is guaranteed. The total bandwidth transmitted by the three queues, B, and C matches the scheduling bandwidth (ie, 5M) configured for the set to which the three queues belong.
图 5示出了才艮据本发明实施例的流量管理的另一例子。  FIG. 5 shows another example of traffic management in accordance with an embodiment of the present invention.
在图 5所示的例子中,单板向管理装置发送的通知可以携带报文数量增 量。 管理装置每接收到一个通知, 就独立地、 周期性地为发送通知的单板分 配令牌。 管理装置向单板分配令牌可以通过确认 ACK消息来携带令牌分配 信息, 同时 ACK消息还可以响应通知的接收。如果单板发现 ACK消息的丢 失 (例如超时、 纠错失败等), 则等待接收到用于指示令牌分配结束的特定 信息之后, 重新计算单板中的待调度报文队列中等待传送的报文数量, 再次 发送请求令牌的通知。  In the example shown in Figure 5, the notification sent by the board to the management device can carry the number of packets. Each time the management device receives a notification, the token is assigned to the board that sent the notification independently and periodically. The management device assigns a token to the board to carry the token allocation information by confirming the ACK message, and the ACK message can also respond to the receipt of the notification. If the board finds the loss of the ACK message (for example, timeout, error correction, etc.), it waits for the specific information indicating the end of the token allocation to be received, and then recalculates the report waiting to be transmitted in the queue of the to-be-scheduled message in the board. The number of texts, the notification of the request token is sent again.
如图 5所示,进行集中流量管理的管理装置 520从单板 510依次接收序 列号为 1、 2、 3的通知, 通知中分别携带" ^文字节数增量 2000、 500和 500。 管理装置 520按照预定调度策略, 多次向单板 510发送响应于各序列号的 ACK消息, 每个 ACK消息携带指示分配 500个令牌的令牌分配信息 ( 1个 令牌对应 1个字节)。 但由于传输的错误, 在响应于序列号 1的通知的 ACK 消息 1中,有一个 ACK消息丟失, 而响应于序列号 2的通知的 ACK消息也 丢失。 那么, 单板 510在定时器届满时发现 ACK消息的丢失, 并继续等待 管理装置 520分配令牌。 响应于序列号 3的通知的 ACK消息 3正确传输, 并发送了携带用于指示令牌分配结束的特定信息的 ACK消息 3。 当单板 510 从管理装置 520接收到具有特定信息的 ACK消息时, 重新计算单板 510的 待调度报文队列中等待传送的报文字节数, 将该报文字节数携带在序列号为 4的通知中, 发送给管理装置 520。  As shown in FIG. 5, the management device 520 that performs centralized traffic management sequentially receives notifications of sequence numbers 1, 2, and 3 from the board 510, and the notifications carry "^ bytes increments of 2000, 500, and 500, respectively. 520 sends an ACK message in response to each sequence number to the board 510 multiple times according to the predetermined scheduling policy. Each ACK message carries token allocation information indicating that 500 tokens are allocated (1 token corresponds to 1 byte). However, due to a transmission error, in the ACK message 1 in response to the notification of the sequence number 1, one ACK message is lost, and the ACK message in response to the notification of the sequence number 2 is also lost. Then, the board 510 expires when the timer expires. The loss of the ACK message is found, and continues to wait for the management device 520 to assign the token. The ACK message 3 in response to the notification of sequence number 3 is correctly transmitted, and an ACK message 3 carrying the specific information indicating the end of the token allocation is transmitted. When receiving the ACK message with the specific information from the management device 520, the board 510 recalculates the number of bytes of the message waiting to be transmitted in the queue of the to-be-scheduled message of the board 510, and The number of bytes of the message is carried in the notification with sequence number 4 and sent to management device 520.
上面描述了根据本发明实施例的流量管理的方法, 下面结合图 6和图 7 描述根据本发明实施例的用于流量管理的管理装置的结构框图。 图 6示出了根据本发明实施例的用于流量管理的管理装置 600的结构框 图。 The method of traffic management according to an embodiment of the present invention has been described above, and a structural block diagram of a management apparatus for traffic management according to an embodiment of the present invention will be described below with reference to FIGS. 6 and 7. FIG. 6 shows a block diagram of a structure of a management apparatus 600 for traffic management according to an embodiment of the present invention.
管理装置 600包括接收模块 610和分配模块 620。 接收模块 610可用于 接收至少两个单板发送的请求令牌的通知 , 各单板请求的令牌数量与该单板 中的待调度报文队列中需要传送的报文数量相对应。 分配模块 620可用于根 据请求的令牌数量, 向待调度报文队列分配令牌, 使得该单板根据所分配的 令牌对待调度报文队列中的报文进行传送。  The management device 600 includes a receiving module 610 and an allocation module 620. The receiving module 610 is configured to receive the notification of the request token sent by the at least two boards, and the number of tokens requested by each board corresponds to the number of packets to be transmitted in the queue of the to-be-scheduled message in the board. The allocating module 620 can be configured to allocate a token to the to-be-scheduled message queue according to the number of requested tokens, so that the board transmits the packet in the message queue to be scheduled according to the allocated token.
管理装置 600的接收模块 610和分配模块 620的上述和其他操作和 /或功 能可以参考上述图 1的流量管理的方法 100的 S110和 S120,为了避免重复, 在此不再赘述。  For the above-mentioned and other operations and/or functions of the receiving module 610 and the allocating module 620 of the management device 600, reference may be made to S110 and S120 of the method 100 of the traffic management of FIG. 1 above. To avoid repetition, details are not described herein again.
根据本发明实施例的管理装置可以基于多个单板请求令牌的通知来分 配令牌, 以通过令牌的分配控制单板的报文传送, 使得原本独立进行流量管 理的单板中的流量能够得到统一、 集中的调度, 而不像现有技术, 各单板中 的流量分别、 独立、 隔离地进行管理。 因此, 通过利用管理装置来进行集中 流量管理, 能够统一有效地管理分布在不同单板上可能彼此有关联的数据 流, 从而满足流量管理的需求。  The management apparatus according to the embodiment of the present invention may allocate a token based on the notification of the plurality of board request tokens, so as to control the packet transmission of the board through the allocation of the token, so that the traffic in the board that originally performs traffic management independently Unified, centralized scheduling can be achieved, unlike the prior art, the traffic in each board is managed separately, independently, and isolated. Therefore, by using the management device for centralized traffic management, it is possible to uniformly and efficiently manage data streams that may be associated with each other on different boards, thereby satisfying the requirements of traffic management.
图 7示出了根据本发明实施例的用于流量管理的管理装置 700的结构框 图。 管理装置 700中的接收模块 710和分配模块 720与图 6的管理装置 600 中的接收模块 610和分配模块 620基本相同。  Fig. 7 is a block diagram showing the structure of a management apparatus 700 for traffic management according to an embodiment of the present invention. The receiving module 710 and the assigning module 720 in the management device 700 are substantially the same as the receiving module 610 and the assigning module 620 in the managing device 600 of FIG.
根据本发明的一个实施例, 分配模块 720可用于基于优先级调度策略或 负载均衡策略, 向待调度报文队列分配令牌。  According to an embodiment of the present invention, the allocating module 720 can be configured to allocate a token to the to-be-scheduled message queue based on a priority scheduling policy or a load balancing policy.
根据本发明的一个实施例, 分配模块 720可用于周期性地向待调度报文 队列分配令牌。  According to one embodiment of the invention, the allocation module 720 can be configured to periodically assign tokens to the queue of messages to be scheduled.
根据本发明的一个实施例, 管理装置 700还可以包括停止模块 730。 停 止模块 730可用于当所分配的令牌数量等于请求的令牌数量时,停止向待调 度报文队列分配令牌。  Management device 700 may also include a stop module 730, in accordance with an embodiment of the present invention. The stop module 730 can be configured to stop assigning tokens to the queue of pending messages when the number of assigned tokens is equal to the number of tokens requested.
分配模块 720、停止模块 730的上述和其他操作和 /或功能可以参考上述 图 1的流量管理的方法 100的 S120和图 2的流量管理的方法 200的 S230, 为了避免重复, 在此不再赘述。  For the above-mentioned and other operations and/or functions of the allocation module 720 and the stop module 730, reference may be made to S120 of the method 100 of the traffic management of FIG. 1 and S230 of the method 200 of the traffic management of FIG. 2, in order to avoid redundancy, details are not described herein again. .
通过分配模块基于优先级调度策略来进行调度, 可以使得重要的报文即 存储在优先级高的待调度报文队列中的报文优先得到调度。 通过分配模块基 于负载均衡策略来进行调度, 使得待调度报文队列可以得到均衡地调度, 从 而可以均衡调度各单板的流量, 避免一个单板中的流量始终处于等待状态而 得不到传送的现象的出现。 通过分配模块周期性地分配令牌, 使得在管理装 置不能一次性满足请求的令牌数量时, 可以通过多次发送令牌的方式来灵活 分配令牌, 满足预定的调度策略。 而通过停止模块, 则可以确定何时停止令 牌的分配。 The scheduling module performs the scheduling based on the priority scheduling policy, so that the important packets, that is, the packets stored in the queue with the highest priority, are preferentially scheduled. By assigning module base The load balancing policy is used for scheduling, so that the queues of the packets to be scheduled can be uniformly scheduled, so that the traffic of each board can be uniformly balanced, and the traffic in one board is always in a waiting state and cannot be transmitted. . The token is periodically allocated by the distribution module, so that when the management device cannot satisfy the requested number of tokens at one time, the token can be flexibly allocated by sending the token multiple times to satisfy the predetermined scheduling policy. By stopping the module, it is possible to determine when to stop the assignment of the token.
本领域技术人员可以意识到, 结合本文中所公开的实施例中描述的各方 法步骤和单元, 能够以电子硬件、 计算机软件或者二者的结合来实现, 为了 清楚地说明硬件和软件的可互换性, 在上述说明中已经按照功能一般性地描 述了各实施例的步骤及组成。 这些功能究竟以硬件还是软件方式来执行, 取 决于技术方案的特定应用和设计约束条件。 本领域技术人 可以对每个特定 的应用使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发 明的范围。  Those skilled in the art will appreciate that the various method steps and elements described in connection with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both, in order to clearly illustrate the interoperability of hardware and software. The steps and composition of the various embodiments have been generally described in terms of function in the above description. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the solution. A person skilled in the art can use different methods for implementing the described functions for each particular application, but such implementation should not be considered to be beyond the scope of the present invention.
结合本文中所公开的实施例描述的方法步骤可以用硬件、处理器执行的 软件程序、 或者二者的结合来实施。 软件程序可以置于随机存取存储器 ( RAM )、 内存、 只读存储器 (ROM )、 电可编程 ROM、 电可擦除可编程 ROM、 寄存器、 硬盘、 可移动磁盘、 CD-ROM 或技术领域内所公知的任意 其它形式的存储介质中。  The method steps described in connection with the embodiments disclosed herein may be implemented in hardware, a software program executed by a processor, or a combination of both. Software programs can be placed in random access memory (RAM), memory, read only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM or technology Any other form of storage medium known.
尽管已示出和描述了本发明的一些实施例, 但本领域技术人员应该理 解,在不脱离本发明的原理和精神的情况下,可对这些实施例进行各种修改, 这样的修改应落入本发明的范围内。  While some embodiments of the present invention have been shown and described, it will be understood by those skilled in the art It is within the scope of the invention.

Claims

权利要求 Rights request
1. 一种流量管理的方法, 其特征在于, 包括: A method for traffic management, comprising:
接收至少两个单板发送的请求令牌的通知, 各单板请求的令牌数量与该 单板中的待调度报文队列中需要传送的报文数量相对应;  Receiving the notification of the request token sent by the at least two boards, the number of tokens requested by each board corresponds to the number of packets to be transmitted in the queue of the to-be-scheduled message in the board;
根据请求的令牌数量, 向所述待调度报文队列分配令牌, 使得该单板根  Assigning a token to the to-be-scheduled message queue according to the number of requested tokens, so that the board root
2. 根据权利要求 1 所述的方法, 其特征在于, 所述向所述待调度报文 队列分配令牌包括: 基于优先级调度策略或负载均衡策略, 向所述待调度报 文队列分配令牌。 The method according to claim 1, wherein the assigning a token to the to-be-scheduled message queue includes: assigning a command to the to-be-scheduled message queue based on a priority scheduling policy or a load balancing policy brand.
3. 根据权利要求 1 所述的方法, 其特征在于, 所述向所述待调度报文 队列分配令牌包括: 周期性地向所述待调度 4艮文队列分配令牌。  The method according to claim 1, wherein the assigning a token to the to-be-scheduled message queue comprises: periodically allocating a token to the to-be-scheduled queue.
4. 根据权利要求 1所述的方法, 其特征在于, 还包括:  4. The method according to claim 1, further comprising:
当所分配的令牌数量等于所述请求的令牌数量时,停止向所述待调度报 文队列分配令牌。  When the number of assigned tokens is equal to the requested number of tokens, the allocation of tokens to the to-be-scheduled message queue is stopped.
5. 根据权利要求 1 所述的方法, 其特征在于, 所述该单板根据所分配 基于令牌桶技术, 该单板根据所分配的令牌对所述待调度报文队列中的 报文进行传送。  The method according to claim 1, wherein the board is configured according to the token bucket technology, and the board is configured to send packets in the queue to be scheduled according to the allocated token. Transfer.
6. 根据权利要求 1所述的方法 , 其特征在于, 还包括:  6. The method according to claim 1, further comprising:
如果该单板确定所分配的令牌数量少于所述请求的令牌数量, 则再次发 送请求令牌的通知。  If the board determines that the number of assigned tokens is less than the number of tokens requested, then the notification of the request token is sent again.
7. 一种用于流量管理的管理装置, 其特征在于, 包括:  A management device for traffic management, comprising:
接收模块, 用于接收至少两个单板发送的请求令牌的通知, 各单板请求 的令牌数量与该单板中的待调度报文队列中需要传送的报文数量相对应; 分配模块,用于根据请求的令牌数量,向所述待调度报文队列分配令牌, 使得该单板根据所分配的令牌对所述待调度报文队列中的报文进行传送。  a receiving module, configured to receive a notification of a request token sent by at least two boards, where the number of tokens requested by each board corresponds to the number of packets to be transmitted in the queue of the to-be-scheduled message in the board; And assigning a token to the to-be-scheduled message queue according to the requested number of tokens, so that the board transmits the packet in the to-be-scheduled message queue according to the allocated token.
8. 根据权利要求 7所述的管理装置, 其特征在于, 所述分配模块用于 基于优先级调度策略或负载均衡策略, 向所述待调度报文队列分配令牌。  The management device according to claim 7, wherein the allocation module is configured to allocate a token to the to-be-scheduled message queue based on a priority scheduling policy or a load balancing policy.
9. 根据权利要求 7所述的管理装置, 其特征在于, 所述分配模块用于 周期性地向所述待调度报文队列分配令牌。 The management device according to claim 7, wherein the allocating module is configured to periodically allocate a token to the to-be-scheduled message queue.
10. 根据权利要求 7所述的管理装置, 其特征在于, 还包括: 停止模块, 用于当所分配的令牌数量等于所述请求的令牌数量时, 停止 向所述待调度 4艮文队列分配令牌。 The management device according to claim 7, further comprising: a stopping module, configured to stop to the queue to be scheduled when the number of assigned tokens is equal to the number of requested tokens Assign a token.
PCT/CN2011/079173 2011-02-28 2011-08-31 Traffic management method and management device WO2012116540A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201110047631.5 2011-02-28
CN 201110047631 CN102118314A (en) 2011-02-28 2011-02-28 Flow management method and management device

Publications (1)

Publication Number Publication Date
WO2012116540A1 true WO2012116540A1 (en) 2012-09-07

Family

ID=44216916

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2011/079173 WO2012116540A1 (en) 2011-02-28 2011-08-31 Traffic management method and management device

Country Status (2)

Country Link
CN (1) CN102118314A (en)
WO (1) WO2012116540A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110365580A (en) * 2019-07-26 2019-10-22 新华三大数据技术有限公司 Service quality scheduling method, device, electronic equipment and computer readable storage medium

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102118314A (en) * 2011-02-28 2011-07-06 华为技术有限公司 Flow management method and management device
CN103581056A (en) * 2013-10-25 2014-02-12 盛科网络(苏州)有限公司 Method for achieving congestion management in network communication through layered queue scheduling
US9479610B2 (en) 2014-04-14 2016-10-25 Microsoft Technology Licensing, Llc Battery efficient synchronization of communications using a token bucket
WO2017173601A1 (en) * 2016-04-06 2017-10-12 华为技术有限公司 Traffic control method and apparatus in software defined network
CN108768873B (en) * 2018-05-29 2021-09-28 腾讯科技(深圳)有限公司 Flow control method and related equipment
CN109672627A (en) * 2018-09-26 2019-04-23 深圳壹账通智能科技有限公司 Method for processing business, platform, equipment and storage medium based on cluster server
CN112104568B (en) * 2020-11-17 2021-07-23 北京达佳互联信息技术有限公司 Data transmission control method and gateway

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1646192A2 (en) * 2000-03-22 2006-04-12 Fujitsu Ltd. Packet switch, scheduling device, drop control circuit, multicast control circuit and QOS control device
CN101272345A (en) * 2008-04-29 2008-09-24 杭州华三通信技术有限公司 Method, system and device for controlling data flux
CN101282305A (en) * 2008-05-22 2008-10-08 杭州华三通信技术有限公司 Bandwidth control method for distributed system as well as service plate
CN101808037A (en) * 2010-03-15 2010-08-18 中兴通讯股份有限公司 Method and device for traffic management in switch network
CN102118314A (en) * 2011-02-28 2011-07-06 华为技术有限公司 Flow management method and management device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100466593C (en) * 2003-01-13 2009-03-04 华为技术有限公司 Method of implementing integrated queue scheduling for supporting multi service
DE10306293B4 (en) * 2003-02-14 2006-08-31 Siemens Ag Method for transmission bandwidth allocation in a packet-oriented communication device
CN101789895B (en) * 2009-01-24 2012-12-12 华为技术有限公司 Method and device for sending/receiving data packets

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1646192A2 (en) * 2000-03-22 2006-04-12 Fujitsu Ltd. Packet switch, scheduling device, drop control circuit, multicast control circuit and QOS control device
CN101272345A (en) * 2008-04-29 2008-09-24 杭州华三通信技术有限公司 Method, system and device for controlling data flux
CN101282305A (en) * 2008-05-22 2008-10-08 杭州华三通信技术有限公司 Bandwidth control method for distributed system as well as service plate
CN101808037A (en) * 2010-03-15 2010-08-18 中兴通讯股份有限公司 Method and device for traffic management in switch network
CN102118314A (en) * 2011-02-28 2011-07-06 华为技术有限公司 Flow management method and management device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110365580A (en) * 2019-07-26 2019-10-22 新华三大数据技术有限公司 Service quality scheduling method, device, electronic equipment and computer readable storage medium
CN110365580B (en) * 2019-07-26 2022-02-22 新华三大数据技术有限公司 Service quality scheduling method and device, electronic equipment and computer readable storage medium

Also Published As

Publication number Publication date
CN102118314A (en) 2011-07-06

Similar Documents

Publication Publication Date Title
WO2012116540A1 (en) Traffic management method and management device
US9800513B2 (en) Mapped FIFO buffering
US20200169513A1 (en) Fabric control protocol for data center networks with packet spraying over multiple alternate data paths
US20190104207A1 (en) Network access node virtual fabrics configured dynamically over an underlay network
US20210320820A1 (en) Fabric control protocol for large-scale multi-stage data center networks
JP5205519B2 (en) Bandwidth allocation method and routing device
US10263906B2 (en) Flow scheduling device and method
WO2020177263A1 (en) Traffic management method and system and fabric network processor
US20140226660A1 (en) Reducing the maximum latency of reserved streams
Li et al. OPTAS: Decentralized flow monitoring and scheduling for tiny tasks
CN111181873A (en) Data transmission method, data transmission device, storage medium and electronic equipment
US9985902B2 (en) Method and system for providing deterministic quality of service for communication devices
CN102223311A (en) Queue scheduling method and device
WO2012119414A1 (en) Method and device for controlling traffic of switching network
WO2011113264A1 (en) Traffic management method and apparatus in switching network
Ousterhout et al. Just in time delivery: Leveraging operating systems knowledge for better datacenter congestion control
US9083617B2 (en) Reducing latency of at least one stream that is associated with at least one bandwidth reservation
US10990447B1 (en) System and method for controlling a flow of storage access requests
Jarma et al. Dynamic service contract enforcement in service-oriented networks
WO2021254475A1 (en) Method and apparatus for scheduling queue
US20230412522A1 (en) Control apparatus, resource allocation method and program
Li et al. Congestion‐free routing strategy in software defined data center networks
WO2022237860A1 (en) Packet processing method, resource allocation method and related device
CN115242727B (en) User request processing method, device, equipment and medium
WO2023174081A1 (en) Queue scheduling method and apparatus

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 11859757

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 11859757

Country of ref document: EP

Kind code of ref document: A1