Method and device for executing dynamic traffic shaping and storage medium
By dynamically adjusting the timer and packet count threshold and delaying the sending of data packets, the problem of PCIe links frequently switching to power-saving mode is solved, achieving a more stable low-power state and saving the overall power consumption of the system.
Patent Information
- Application Number
- CN202310348532.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-04-03
- Publication Date
- 2024-10-15
AI Technical Summary
The PCIe link frequently switches to power-saving mode when idle, causing unstable power consumption and affecting the system's power-saving effect.
The processor dynamically adjusts the timer's expiration time and packet count threshold, delays packet sending based on transmission throughput, keeps packets until the expiration time or count threshold is met, and sends packets in batches to reduce state transitions.
It effectively reduces unnecessary transitions between low-power and high-power states of the PCIe link, saving power consumption and achieving long-term power-saving mode maintenance.
Smart Images

Figure CN118784583A_ABST
Abstract
Description
Technical Field
[0001] The present invention generally relates to power saving techniques and, more particularly, to methods, devices and storage media for performing dynamic traffic shaping. Background Art
[0002] Unless otherwise indicated, the approaches described in this section are not prior art to the claims listed below and are not admitted to be prior art by inclusion in this section.
[0003] Many modern computer systems use the PCIe (peripheral component interconnect express, a high-speed serial computer expansion bus standard) interface to communicate between two PCIe devices. An important power-saving feature of PCIe is Active State Power Management (ASPM). When the power-saving modes of ASPM (e.g., L1 substates L1.0, L1.1, and L1.2) are enabled on a given PCIe link, and the link has been idle for a period of time (e.g., tens or hundreds of microseconds), the PCIe link will transition to a power-saving mode that consumes much less power than the full-power, full-function link state L0 (the highest power state).
[0004] However, scattered data transmission between two PCIe devices may cause frequent interruptions of the power saving mode due to a large number of link accesses.
[0005] Therefore, a method and device for dynamic traffic shaping are needed to enable a PCIe link to enter a power saving mode for a long period of time without interruption. Summary of the invention
[0006] The following summary of the invention is illustrative only and is not intended to be limiting in any way. That is, the following summary of the invention is provided to introduce the concepts, key points, benefits and beneficial effects of the novel and non-obvious technologies described herein. Selected embodiments are further described in the detailed description below. Therefore, the following summary of the invention is not intended to identify the essential features of the claimed subject matter, nor is it intended to be used to determine the scope of the claimed subject matter.
[0007] Therefore, the main purpose of the present invention is to provide a method and device for dynamic traffic shaping, so that the PCIe link can enter the power saving mode for a long time without interruption and save more power consumption.
[0008] In an exemplary embodiment, a method for performing dynamic traffic shaping is provided. The method includes: adjusting, by a processor of a sending device, an expiration time of a timer and a packet count threshold according to a throughput of a transmission from an application of the sending device to a receiving device; retaining, by the processor, an application packet from the application until the expiration time expires or the number of packets exceeds the packet count threshold; and sending, by the processor, the application packet to the receiving device via an interconnect bus.
[0009] In an embodiment, a first expiration time of the timer when the throughput is in a high throughput range is shorter than a second expiration time of the timer when the throughput is in a low throughput range, and / or a first packet count threshold when the throughput is in a high throughput range is less than a second packet count threshold when the throughput is in a low throughput range.
[0010] In an embodiment, the expiration time of the timer and the packet count threshold are dynamically adjusted according to the throughput of the transmission.
[0011] In an embodiment, the application data packets are sent to the receiving device in batches.
[0012] In an embodiment, the interconnect bus is a Peripheral Component Interconnect Express (PCIe) bus.
[0013] In an embodiment, the sending device comprises a root complex and the receiving device comprises an endpoint.
[0014] In an embodiment, the sending device comprises an endpoint and the receiving device comprises a root complex.
[0015] In an exemplary embodiment, a device for performing dynamic traffic shaping is provided. The device includes: one or more processors; and one or more computer-readable media for storing one or more computer-readable instructions. The one or more processors are configured to read the instructions of the one or more computer-readable media to perform the following tasks. The processor adjusts the expiration time of the timer and the packet count threshold based on the throughput of the transmission from the application of the device to the receiving device. The processor retains the application data packet from the application until the expiration time expires or the number of data packets exceeds the packet count threshold. The processor sends the application data packet to the receiving device via an interconnect bus.
[0016] In an exemplary embodiment, a storage medium is provided, storing program instructions, which are executed by a processor of a device, so that the processor performs: adjusting an expiration time and a packet count threshold of a timer according to a throughput of transmission from an application of the sending device to a receiving device; retaining an application data packet from the application until the expiration time expires or the number of data packets exceeds the packet count threshold; and sending the application data packet to the receiving device via an interconnect bus.
[0017] The method, device and storage medium for performing dynamic traffic shaping provided by the present invention can reduce unnecessary conversion between low power consumption state and high power consumption state on a PCIe bus and save power consumption. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] The accompanying drawings are included to provide a further understanding of the invention and are incorporated into and constitute a part of the present invention. The accompanying drawings illustrate embodiments of the invention and together with the description are used to explain the principles of the invention. It is understood that in order to clearly illustrate the concepts of the present invention, the accompanying drawings are not necessarily drawn to scale, and some components shown may be shown in a scale that exceeds the size in the actual embodiment.
[0019] Figures 1A-1C is a block diagram of an example link environment for performing dynamic traffic shaping according to an embodiment of the present invention.
[0020] Figure 2 is a block diagram of a receiving device described according to an embodiment of the present invention.
[0021] Figure 3 is a block diagram of an operating system described according to an embodiment of the present invention, wherein a driver program running on a sending device is coupled to firmware running on a receiving device via a PCIe link.
[0022] Figure 4 The present invention is a flowchart for performing dynamic traffic shaping according to an embodiment of the present invention.
[0023] Figure 5A-5B It is a message sequence diagram of an exemplary dynamic traffic shaping process between a sending device and a receiving device described according to an embodiment of the present invention.
[0024] Figure 6 An example operating environment is described for implementing embodiments of the present invention. DETAILED DESCRIPTION
[0025] The various aspects of the present invention are described more fully below with reference to the accompanying drawings. However, the present invention can be implemented in many different forms and should not be interpreted as being limited to any specific structure or function presented throughout the present invention. On the contrary, these aspects are provided so that the present invention will be thorough and complete, and the scope of the present invention will be fully conveyed to those skilled in the art. Based on the teachings herein, it should be understood by those skilled in the art that the scope of the present invention is intended to cover any aspect disclosed herein, whether implemented independently of any other aspect of the present invention or implemented in combination with any other aspect of the present invention. For example, a plurality of aspects set forth herein can be used to implement a device or a method can be practiced. In addition, the scope of the present invention is intended to cover such a device or method, which is implemented using another structure, function, or structure and function other than or different from the various aspects of the present invention set forth herein. It should be understood that any aspect of the disclosure disclosed herein can be embodied by one or more of the claims.
[0026] The word "exemplary" is used herein to mean "serving as an example, instance, or illustration." Any aspect described herein as "exemplary" is not necessarily to be construed as preferred or advantageous over other aspects. In addition, like numbers refer to like elements throughout the several drawings.
[0027] It should be understood that when an element is "connected" or "coupled" to another element, it can be directly connected or coupled to the other element, or there can be an intermediate element. Conversely, when an element is "directly connected" or "directly coupled" to another element, there are no intermediate elements. Other words used to describe the relationship between elements should be interpreted in a similar manner. (e.g., "between" versus "directly between", "adjacent" versus "directly adjacent", etc.).
[0028] The described embodiments perform dynamic traffic shaping operations on an interconnectivity bus between a transmitting device and a receiving device. In the described embodiments, the interconnectivity bus is primarily a Peripheral Component Interconnect Express (PCIe) bus, and the link between the transmitting device and the receiving device may be a PCIe link compliant with the PCI Special Interest Group (PIC-SIG) PCIe specification (e.g., PCI Express 3.0 Base Specification Revision 3.0).
[0029] The transmitting device can communicate with the receiving device via a PCIe link. The receiving device can exchange data and / or other information with the transmitting device via the PCIe link. However, when the PCIe link remains idle for a period of time, the transmitting device and the receiving device can implement one of the available power saving modes to reduce the power consumption of the PCIe link when it is not in use. The transmitting device and the receiving device can reduce the power consumption of the PCIe link by transitioning from link (L) state L0 (the highest power consumption state) to a lower power consumption link (L) state (e.g., L1 substates L1.0, L1.1, and L1.2) defined by the PCIe specification. The following describes how to avoid frequent transitions of the PCIe link between the L0 state and the low power consumption L state.
[0030] Figures 1A-1C 1 is a block diagram of an exemplary link environment 100 for performing dynamic traffic shaping according to an embodiment of the present invention. The link environment 100 includes at least a sending device 110 and a receiving device 120 , wherein the sending device 110 and the receiving device 120 are connected via an interconnection bus 130 .
[0031] The transmitting device 110 may be (or may be included in) any device that communicates with the receiving device 120 via the interconnect bus 130. For example, the transmitting device 110 may be (or may be included in) a laptop computer, a desktop computer, a server, an appliance, a small notebook computer / netbook, a tablet computer, a mobile phone, a personal digital assistant (PDA), a smart phone, or other devices. It is worth noting that the transmitting device 110 may include other subsystems (not shown), including but not limited to a communication subsystem, a display subsystem, a data collection subsystem, an audio and / or video subsystem, an alarm subsystem, a media processing subsystem, an input / output (I / O) subsystem, and / or one or more other processing subsystems (e.g., a CPU) or a power subsystem (e.g., a battery, a battery management unit, and / or other power management subsystems).
[0032] The receiving device 120 may be any device that communicates with the sending device 110 via the interconnect bus 130. The receiving device 120 may be or may include one or more devices or systems (e.g., peripheral devices) that perform functions such as wireless communication, storage, and / or graphics processing. It is worth noting that in some embodiments, the receiving device 120 may be located inside the sending device 110, while in some embodiments, the receiving device 120 may be located outside the sending device 110. In combination with the following Figure 2 , the receiving device 120 is discussed in detail.
[0033] The link 140 between the transmitting device 110 and the receiving device 120 is a PCIe link that allows communication between the transmitting device 110 and the receiving device 120 using a PCIe specification such as PCIe Base Specification 3.0 of PCI-SIG.
[0034] The transmitting device 110 may include at least a system on chip (SOC) 112 and a memory 114. The SOC 112 includes at least a processor 1122 and may include other subsystems (not shown), such as memory, counters, clocks, interface regulators, power management circuits, and / or analog and / or digital interfaces. In addition, it is worth noting that in some embodiments, more than one PCIe link 140 may be connected to the processor 1122.
[0035] The processor 1122 includes one or more devices configured to perform computing operations. For example, the processor 1122 may include one or more microprocessors, each of which has one or more cores, an application specific integrated circuit (ASIC), a microcontroller, and / or a programmable logic device. In some embodiments, some or all of the functions of the SOC 112 may be replaced by one or more circuits, wherein the one or more circuits may include one or more microprocessors and / or a multi-core processing system.
[0036] Memory 114 includes one or more devices for storing data and / or instructions for a subsystem in the transmitting device 110 (e.g., processor 1122 on SOC 112). Memory 114 may include dynamic random access memory (DRAM), static random access memory (SRAM), and / or other types of memory, and may include a mechanism for controlling access to memory. In some embodiments, memory 114 includes a memory hierarchy including one or more caches coupled to a memory (not shown) in SOC 112. In some embodiments, memory 114 is coupled to one or more high-capacity mass storage devices (not shown). For example, memory 114 may be coupled to a magnetic or optical drive, a solid-state drive, or another type of mass storage device. In these embodiments, the transmitting device 110 may use memory 114 as a fast access memory for frequently used data, while the mass storage device is used to store infrequently used data.
[0037] Furthermore, in this context, one of the transmitting device 110 and the receiving device 120 may include a root complex 116 (and a switch 117), and the other may include an endpoint 118, using these terms in the PCIe standard. In an embodiment, the interconnect bus 130 is a PCIe bus 130, and the form factor of the interconnect bus 130 may be a PCIe standard connector or an M.2 connector.
[0038] It should be noted that, although the sending device and the receiving device in the present invention include a root complex and an endpoint as examples, the present invention should not be limited thereto. The sending device and the receiving device may be other PCIe devices.
[0039] Figure 2 1 is a block diagram of a receiving device 120 according to an embodiment of the present invention. The receiving device 120 includes a processing subsystem 210 and a memory subsystem 220 coupled to a bus 230. The receiving device 120 may include other subsystems (not shown), for example, a subsystem for wireless communication, mass storage and / or graphics processing, and a subsystem (not shown) for coupling to and communicating through the interconnection bus 130.
[0040] The processing subsystem 210 is any processing subsystem configured to perform computational and / or logical operations that may be used in a receiving device, and may be implemented in any technology, including but not limited to any type of hardware module, software, firmware, and / or any other general or dedicated logic. The processing subsystem 210 may include but is not limited to one or more central processing units (CPUs), microprocessors, application specific integrated circuit (ASIC) chips, field programmable gate arrays (FPGAs), other programmable logic devices, dedicated logic devices, and microcontrollers.
[0041] The memory subsystem 220 includes one or more devices for storing data and / or instructions for the processing subsystem 210 and other subsystems (not shown) in the receiving device 120. For example, the memory subsystem 220 may include dynamic random access memory (DRAM), static random access memory (SRAM), read-only memory (ROM), erasable programmable read-only memory (EPROM), flash memory, and / or other types of memory. In addition, the memory subsystem 220 may include firmware and mechanisms for controlling access to memory or other subsystems (not shown) in the receiving device 120.
[0042] The processing subsystem 210 and the memory subsystem 220 are coupled together using a bus 230. The bus 230 is an electrical, optical, or electro-optical connection used by these subsystems and other subsystems (not shown) in the receiving device 120 to transmit commands and data to each other. Although only one bus 230 is shown for clarity, different embodiments may include different numbers or configurations of electrical or other connections between the subsystems.
[0043] Although in Figure 2The processing subsystem 210 and the memory subsystem 220 are shown as separate subsystems in FIG. 1 , but the present invention is not limited thereto, and in some embodiments, one or both of these subsystems may be integrated into one or more other subsystems of the receiving device 120. Furthermore, in some embodiments, the receiving device 120 may include one or more additional processing subsystems 210 and / or memory subsystems 220, and although we use specific subsystems to describe the receiving device 120, in alternative embodiments, different subsystems may be present in the receiving device 120. Furthermore, although in FIG. Figure 2 The processing subsystem 210 and the memory subsystem 220 are shown as separate subsystems, but in some embodiments, these and other subsystems (not shown) in the receiving device 120 may be implemented as one integrated circuit.
[0044] Figure 3 3 is a block diagram of an operating system 310 according to an embodiment of the present invention, wherein a driver 312 running on a transmitting device 110 is coupled to a firmware 320 running on a receiving device 120 via a PCIe link.
[0045] In some embodiments, the operating system 310 is stored (as program code) in the memory 114 and executed by the processor 1122. Generally, the operating system 310 acts as an intermediary between the system hardware in the sending device 110 and the application programs executed by the processor 1122, for example, the application programs may be email applications, web browsers, and game applications. The operating system 310 also includes a driver 312, which enables the operating system 310 and other applications running on the processor 1122 to communicate with the receiving device 120. The operating system 310 and its general functions are well known to those skilled in the art, and therefore the details are not described herein.
[0046] The receiving device 120 includes firmware 320, which may be preloaded on the receiving device 120 and / or dynamically loaded by the driver 312, and generally includes data and / or programs for operating and controlling the receiving device 120. The firmware 320 may be stored in the memory subsystem 220 in a read-only memory (ROM), a programmable read-only memory (PROM), and / or an erasable programmable read-only memory (EPROM), and executed on the processing subsystem 210. In some embodiments, the firmware 320 may be partially or completely replaced by software stored in the memory subsystem 220 and running on the processing subsystem 202 and / or one or more hardware modules (not shown) in the receiving device 120.
[0047] In the above embodiments, the transmitting device 110 and the receiving device 120 are explained, but the present invention is not limited to these examples but can be effectively applied to embedded devices.
[0048] It should be understood that the transmitting device 110 and the receiving device 120 shown in FIG. 1 are examples of a suitable link environment 100. The transmitting device 110 and the receiving device 120 shown in FIG. 1 may be implemented as a computer system by any type of computing device, for example, Figure 6 A computing device 600 is described.
[0049] Figure 4 FIG. 4 is a flowchart 400 for performing dynamic traffic shaping according to an embodiment of the present invention. In this embodiment, the method is applied to the processor 1122 of the sending device 110 of FIG. 1 .
[0050] In step S405, the processor of the sending device adjusts the expiration time and the packet count threshold of the timer according to the transmission throughput from the application of the sending device to the receiving device, wherein the expiration time and the packet count threshold of the timer are dynamically adjusted according to the transmission throughput.
[0051] Specifically, the processor can obtain the throughput of the current transmission and dynamically adjust the expiration time and packet count threshold according to the throughput of the current transmission. For example, in the case of low throughput, the processor will increase the expiration time and packet count threshold. In the case of high throughput, the processor reduces the expiration time and packet count threshold. In another embodiment, the scenario with low throughput can be accessing a news website, playing music, or sending an email. The scenario with high throughput can be performing a network speed test, performing high-speed downloads, or playing 4K, 8K videos and live broadcasts.
[0052] Then, in step S410, the processor of the sending device holds the application data packet from the application until the expiration time expires or the number of data packets exceeds the data packet count threshold, whichever occurs first. In one embodiment, the first expiration time of the timer when the throughput is in the high throughput range is shorter than the second expiration time of the timer when the throughput is in the low throughput range.
[0053] In step S415, the processor of the sending device sends the application data packet to the receiving device via an interconnect bus, wherein the interconnect bus comprises a peripheral component interconnect express (PCIe) bus. In one embodiment, the application data packets are sent to the receiving device in batches.
[0054] In some embodiments, the sending device comprises a root complex (and a switch) and the receiving device comprises an endpoint. In another embodiment, the receiving device comprises a root complex (and a switch) and the sending device comprises an endpoint.
[0055] Figure 5A-5B It is a message sequence diagram of an exemplary dynamic traffic shaping process between a sending device and a receiving device described according to an embodiment of the present invention.
[0056] In this embodiment, the interconnection bus between the sending device and the receiving device is a PCIe bus, but the present invention is not limited thereto.
[0057] In addition, the processor of the sending device can calculate a first expiration time and a first packet count threshold for high throughput, and a second expiration time and a second packet count threshold for low throughput according to the transmission throughput before the process starts. In this embodiment, the first expiration time is less than the second expiration time, and the first packet count threshold is less than the second packet count threshold.
[0058] Figure 5A Describes the scenario where the transmission is a high-throughput transmission. Figure 5A In the present invention, the processor in the sending device can start a timer and a data packet counter (S502) when receiving an application data packet (data packet 1) sent by an application program (APP), wherein the timer counts a first expiration time and the data packet counter counts the number of first data packets.
[0059] Then, the application data packets (data packet 1, data packet 2, ... data packet N / 2) are kept in the processor until a first expiration time expires or a first data packet count exceeds a first count threshold, whichever occurs first (S504).
[0060] The processor sends the application data packets (data packet 1, data packet 2, ... data packet N / 2) to the receiving device in batches (batch processing 1: data packet 1 to data packet N / 2) via the PCIe bus (S506).
[0061] The processor in the sending device may restart the timer and the data packet counter upon receiving the application data packet (data packet N / 2+1) sent by the APP (S508).
[0062] Then, the application data packets (data packet N / 2+1, data packet N / 2+2, ... data packet N) are kept in the processor until a first expiration time expires or a first data packet count exceeds a first count threshold, whichever occurs first (S510).
[0063] The processor sends application data packets (data packet N / 2+1, data packet N / 2+2, ... data packet N) in batches (batch processing 2: data packet N / 2+1 to data packet N) to the receiving device via the PCIe bus (S512).
[0064] Figure 5B Describes the scenario where the transmission is a low-throughput transmission. Figure 5BIn the example, the processor in the sending device may start a timer and a data packet counter (S520) upon receiving an application data packet (data packet 1) sent by the APP, wherein the timer counts the second expiration time and the data packet counter counts the number of second data packets.
[0065] Then, the application data packets (data packet 1, data packet 2 ... data packet N / 2, data packet N / 2+1 ... data packet N) are kept in the processor until the second expiration time expires or the second data packet count exceeds the second count threshold, whichever occurs first (S522).
[0066] The processor sends application data packets (data packet 1, data packet 2 ... data packet N / 2, data packet N / 2+1 ... data packet N) in batches (batch processing 1: data packet 1 to data packet N) to the receiving device via the PCIe bus (S524).
[0067] like Figure 5A and 5B As shown, compared with the case of low throughput transmission, even Figure 5A and 5B The total number of application data packets in the transmitting device is the same, but in the case of high throughput transmission, the processor in the transmitting device can send more batches of application data packets to the receiving device.
[0068] As described above, the dynamic traffic shaping method and device of the present invention can dynamically adjust the expiration time of the timer and the packet counting threshold according to different transmission throughput conditions. By storing the data packet on the sending device in this way, unnecessary conversions between low power consumption state and high power consumption state on the PCIe bus are reduced, thereby saving power consumption.
[0069] The above content has described the embodiments of the present invention. The following describes an exemplary operating environment in which the embodiments of the present invention can be implemented. Figure 6 , an exemplary operating environment for implementing embodiments of the present invention is shown, and is generally referred to as computing device 600. Computing device 600 is merely an example of a suitable computing environment and is not intended to limit the scope of use or functionality of the present invention. Computing device 600 should also not be interpreted as having any dependency or requirement relating to any one or combination of components illustrated.
[0070] The present invention may be implemented via computer code or machine usable instructions, including computer executable instructions, such as program modules, executed by a computer or other machine, such as a personal digital assistant (PDA) or other handheld device. In general, program modules may include routines, programs, objects, components, data structures, etc., which refer to code that performs a specific task or implements a specific abstract data type. The present invention may be implemented in a variety of system configurations, including handheld devices, consumer electronics, general-purpose computers, more specialized computing devices, etc. The present invention may also be implemented in a distributed computing environment, where tasks are performed remotely by processing devices linked through a communications network.
[0071] refer to Figure 6 , computing device 600 may include a bus 610 that is directly or indirectly coupled to the following devices: one or more memories 612, one or more processors 614, one or more display components 616, one or more input / output (I / O) ports 618, one or more input / output components 620, and a power supply 622. Bus 610 may represent one or more buses (e.g., an address bus, a data bus, or any combination thereof). Although for clarity, Figure 6 The blocks of the computer are represented by lines, and the boundaries of the components are not clear in reality. For example, a display component such as a display device can be considered as an I / O component, and a processor can include a memory.
[0072] The computing device 600 generally includes various computer-readable media. Computer-readable media can be any available media that the computing device 600 can access, and include volatile and non-volatile media, removable and non-removable media. As an example and not limitation, computer-readable media can include computer storage media and communication media. Computer storage media can include volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information such as computer-readable instructions, data structures, program modules or other data. Computer storage media may include, but are not limited to, random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other storage technology, optical disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical disk storage, magnetic tape, disk storage or other magnetic storage device, or any other medium that can be used to store the required information and can be accessed by the computing device 600. The computer storage medium itself may not include signals.
[0073] Communication media typically embodies computer readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and includes any information delivery media. The term "modulated data signal" refers to a signal that has one or more of its characteristics set or changed in such a manner as to encode the information in the signal. By way of example, but not limitation, communication media includes wired media, such as a wired network or direct-wired connection, and wireless media, such as acoustic, RF, infrared, and other wireless media, or any combination thereof.
[0074] Memory 612 may include computer storage media in the form of volatile and / or non-volatile memory. Memory may be removable, non-removable, or a combination thereof. Exemplary hardware devices include solid-state memory, hard disk drives, optical disk drives, etc. Computing device 600 includes one or more processors that read data from various entities such as memory 612 or I / O components 620. Display component 616 presents data indications to a user or another device. Exemplary presentation components include display devices, speakers, printing components, vibration components, etc.
[0075] I / O port 618 allows computing device 600 to be logically coupled to other devices including I / O components 620, some of which may be embedded. Exemplary components include microphones, joysticks, game controllers, satellite dishes, scanners, printers, wireless devices, and the like. I / O components 620 may provide a natural user interface (NUI) for processing gestures, voice, or other physiological inputs generated by a user. For example, the input may be transmitted to an appropriate network element for further processing. NUI may implement voice recognition, touch and stylus recognition, facial recognition, biometric recognition, gesture recognition on and near the screen, air gestures, head and eye tracking, touch recognition associated with a display on computing device 600, or any combination thereof. Computing device 600 may be equipped with a depth camera, such as a stereo camera system, an infrared camera system, an RGB camera system, or any combination thereof, to enable gesture detection and recognition. In addition, computing device 600 may be equipped with an accelerometer or gyroscope capable of detecting motion. The output of the accelerometer or gyroscope may be provided to a display of computing device 600 to perform immersive augmented reality or virtual reality.
[0076] Furthermore, the processor 614 in the computing device 600 may execute program code in the memory 612 to perform the actions and steps described above or otherwise described herein.
[0077] It should be understood that any specific order or hierarchy of steps in any disclosed process is an example of an example method. Based on design preferences, it should be understood that the specific order or hierarchy of steps in the process can be rearranged while remaining within the scope of the present invention. The accompanying method claims present elements of the various steps in an example order and are not meant to be limited to the specific order or hierarchy presented.
[0078] The use of ordinal terms such as “first,” “second,” “third,” etc. in the claims to modify claim elements does not in itself imply any priority, precedence, or order of one claim element over another claim element or temporal order of performing method actions, but serves merely as labels to distinguish one claim element having a particular name from another element having the same name (but using ordinal terms) to distinguish claim elements.
[0079] Although the present invention has been described in conjunction with certain specific embodiments for illustrative purposes, the invention is not limited thereto. Accordingly, various modifications, adaptations and combinations of the various features of the described embodiments may be practiced without departing from the scope of the present invention as set forth in the claims.
Claims
1. A method for performing dynamic traffic shaping, include: adjusting, by a processor of the sending device, an expiration time of a timer and a packet count threshold based on a throughput of transmissions from an application of the sending device to a receiving device; retaining, by the processor, application data packets from the application until the expiration time expires or the number of data packets exceeds the data packet count threshold; as well as The application data packet is sent to the receiving device via the interconnection bus by the processor.
2. The method for performing dynamic traffic shaping according to claim 1, It is characterized in that When the throughput is in the high throughput range, the first expiration time of the timer is shorter than the second expiration time of the timer when the throughput is in the low throughput range, or when the throughput is in the high throughput range, the first packet count threshold is less than the second packet count threshold when the throughput is in the low throughput range.
3. The method for performing dynamic traffic shaping according to claim 1, It is characterized in that The expiration time of the timer and the data packet counting threshold are dynamically adjusted according to the throughput of the transmission.
4. The method for performing dynamic traffic shaping according to claim 1, It is characterized in that The application data packets are sent in batches to the receiving device.
5. The method for performing dynamic traffic shaping according to claim 1, It is characterized in that The interconnect bus is a Peripheral Component Interconnect Express (PCIe) bus.
6. The method for performing dynamic traffic shaping according to claim 1, It is characterized in that The sending device comprises a root complex and the receiving device comprises an endpoint.
7. The method for performing dynamic traffic shaping according to claim 1, It is characterized in that The sending device comprises an endpoint and the receiving device comprises a root complex.
8. An apparatus for performing dynamic traffic shaping, include: one or more processors; as well as One or more computer-readable media for storing one or more computer-readable instructions, wherein the one or more processors are configured to read the instructions of the one or more computer-readable media to perform the following tasks: adjusting an expiration time of a timer and a packet count threshold based on a throughput of transmission from an application of the device to a receiving device; retaining the application data packets from the application until the expiration time expires or the number of data packets exceeds the data packet count threshold; as well as The application data packet is sent to the receiving device via the interconnect bus.
9. The apparatus for performing dynamic traffic shaping according to claim 8, It is characterized in that When the throughput is in the high throughput range, the first expiration time of the timer is shorter than the second expiration time of the timer when the throughput is in the low throughput range, or when the throughput is in the high throughput range, the first packet count threshold is less than the second packet count threshold when the throughput is in the low throughput range.
10. The apparatus for performing dynamic traffic shaping according to claim 8, It is characterized in that The expiration time of the timer and the data packet counting threshold are dynamically adjusted according to the throughput of the transmission.
11. The apparatus for performing dynamic traffic shaping according to claim 8, It is characterized in that The application data packets are sent in batches to the receiving device.
12. The apparatus for performing dynamic traffic shaping according to claim 8, It is characterized in that The interconnect bus is a peripheral component high-speed interconnect bus.
13. The apparatus for performing dynamic traffic shaping according to claim 8, It is characterized in that The device comprises a root complex and the receiving device comprises an endpoint.
14. The apparatus for performing dynamic traffic shaping according to claim 1, It is characterized in that The device comprises an endpoint and the receiving device comprises a root complex.
15. A storage medium storing program instructions, wherein the program instructions are executed by a processor of a device, so that the processor executes the steps of the method for performing dynamic traffic shaping according to any one of claims 1 to 7.
