A method and device for transmitting data
The sending device automatically adjusts the sending rate based on the priority information of the data flow in the tunnel, which solves the problem of resource occupation and delay in SD-WAN when the network is congested, ensures that high-priority data flows are sent first, and improves transmission efficiency and user experience.
Patent Information
- Application Number
- CN201911025600.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-10-25
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2039-10-25
AI Technical Summary
In the SD-WAN scenario, the existing technology uses the controller to control the data traffic sent by the link to avoid congestion, which requires multiple interactions, takes up a lot of network resources and has a long delay, and cannot solve network congestion in a timely manner.
By obtaining the priority information of the data flow in the tunnel, the sending device automatically adjusts the sending rate, reduces interaction with the controller, realizes intelligent adjustment of the tunnel sending rate, and ensures that data flows with high priority are sent first.
It reduces network resource occupation and delay when solving network congestion, improves data transmission efficiency and user experience, and avoids indiscriminate packet loss during the transmission process of high-priority data streams.
Smart Images

Figure CN112714071B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and in particular to a data sending method and device. Background Art
[0002] The main principle of software-defined wide area network (SD-WAN) technology is to rent the operator's physical network and build its own overlay network to provide SD-WAN services. Since users do not need to create a physical network, the cost of networking can be reduced, so it is widely used by SD-WAN service providers.
[0003] Currently, in SD-WAN scenarios, the controller centrally controls the data traffic sent by each link in the SD-WAN to avoid congestion. For example, the customer premises equipment (CPE) in the SD-WAN scenario can measure the available bandwidth of the link on which it is located and report it to the controller. The controller can determine whether it is necessary to control the data traffic sent by the link based on the bandwidth used last time by each link and the current available bandwidth, and then send an adjustment instruction to the CPE. After receiving the adjustment instruction, the CPE controls the data traffic it sends.
[0004] In the above method, multiple interactions are required between the controller and the CPE to achieve the goal. Therefore, although the data traffic sent by the controller to control the link can avoid network congestion, it will occupy more network resources, and multiple interactions will also cause delays, and network congestion cannot be solved in time. Summary of the invention
[0005] The present application provides a data sending method and device for reducing the network resources and delays occupied when resolving network congestion in an SD-WAN scenario.
[0006] In a first aspect, a data sending method is provided, in which a sending device first obtains first information including priority information of a data stream set, where the data stream set is carried on a tunnel between the sending device and a receiving device. Then, the sending device adjusts the sending rate of the tunnel according to the first information, and sends the data stream to the receiving device according to the adjusted sending rate.
[0007] In the above technical solution, the sending device can promptly sense tunnel congestion and can automatically adjust the sending rate of the tunnel according to the priority information of the data flow carried in the tunnel, thereby reducing the interaction process between the sending device and the controller, and can reduce the network resources and delays occupied when resolving network congestion.
[0008] In a possible implementation, the sending device adjusts the sending rate of the tunnel according to the first information, including: the sending device adjusts the sending rate of the first data stream carried in the tunnel, and the first data stream is a data stream in the data stream set whose priority is lower than the first priority.
[0009] In the above technical solution, the sending device adjusts the sending rate of the tunnel by adjusting the rate of the data flow with a priority lower than the first priority. The data flow with a priority lower than the first priority can be understood as a data flow with a lower priority. That is to say, before and after the sending rate of the tunnel is adjusted, the sending rate of the data flow with a higher priority does not change, thereby avoiding the problem of discarding the data flow with a higher priority due to indiscriminate packet loss during the transmission process of the SD-WAN network after the tunnel is congested, and achieving priority sending of the data flow with a higher priority after the tunnel is congested.
[0010] In a possible implementation, the sending device adjusts the sending rate of the tunnel according to the first information, which may include but is not limited to the following three methods:
[0011] The first adjustment method:
[0012] The sending device adjusts the sending rate of the tunnel to a first rate, wherein the first rate is the sum of the rates of the data flows in the data flow set whose priorities are not lower than the second priority.
[0013] That is to say, the adjusted tunnel sending rate can ensure that data flows with a priority not lower than the second priority are sent first. For example, data flows of high-priority services such as voice or video can be sent first, which can improve user experience.
[0014] The second adjustment method:
[0015] The sending device increases the sending rate of the tunnel by a rate adjustment value, where the rate adjustment value is a preset value or a rate of a data flow whose priority is lower than the second priority.
[0016] When the available bandwidth of the tunnel is large, the sending device can also increase the sending rate of the tunnel, thereby improving the utilization of transmission resources.
[0017] The third adjustment method is that if the first information also includes the rate information of the data flow set, then when the ratio of the first rate to the rate of the data flow set is not greater than the bandwidth share threshold, the sending device adjusts the sending rate of the tunnel to the product of the sending rate of the tunnel and the bandwidth share threshold; wherein the first rate is the sum of the rates of the data flows with a priority higher than the second priority in the data flow set. When the ratio of the first rate to the rate of the data flow set is greater than the bandwidth share threshold, the sending device adjusts the sending rate of the tunnel to the first rate.
[0018] In the above technical solution, when the sending device adjusts the sending rate of the tunnel, it compares the rate share of the data flow with a higher priority with the bandwidth share threshold to ensure that the adjusted sending rate can ensure that the data flow with a higher priority is sent first.
[0019] In addition, in the above technical solution, the sending device can adjust the sending rate of the tunnel in a variety of ways, which can increase the flexibility of the sending device.
[0020] In one possible implementation, the sending device may first receive second information including network status information of the tunnel from the receiving device, where the network status information includes at least one of delay, jitter, and packet loss information, and determine whether the tunnel is congested or uncongested based on the second information, and then adjust the sending rate based on the first information.
[0021] In a possible implementation, the sending device may first receive third information for requesting the sending device to adjust the sending rate from the receiving device, and then adjust the sending rate according to the first information.
[0022] In this way, the sending device adjusts the sending rate of the tunnel only when the tunnel is congested or uncongested or receives a speed adjustment request from the receiving device, which can reduce the calculation amount of the sending device.
[0023] In a possible implementation, the third information also includes a second rate or an adjustment ratio, and the adjusted sending rate does not exceed the second rate, or does not exceed the product of the sending rate and the adjustment ratio.
[0024] In the above technical solution, the receiving device can send the adjustment requirement to the sending device through the third information, so that the sending device can determine the adjusted sending rate according to the third information and the first information, thereby improving the accuracy of the rate adjustment.
[0025] In a second aspect, the present application provides a data sending device, which includes a processor, configured to implement the method described in the first aspect.
[0026] The data sending device may further include a memory for storing program instructions and data. The memory is coupled to the processor, and the processor may call and execute the program instructions stored in the memory to implement any one of the methods described in the first aspect. The data sending device may further include a communication interface, and the communication interface is used for the device to communicate with other devices. Exemplarily, the other device is a receiving device.
[0027] In a possible implementation, the data sending device processor and the communication interface, wherein:
[0028] The communication interface is used to obtain first information, wherein the first information includes priority information of a set of data streams carried in a tunnel between the data sending device and the receiving device;
[0029] The processor is configured to adjust a sending rate of the tunnel according to the first information; and control the communication interface to send the data stream to the receiving device according to the adjusted sending rate.
[0030] In a possible implementation, the processor is specifically configured to:
[0031] The sending rate of a first data flow carried in the tunnel is adjusted, where the first data flow is a data flow in the data flow set whose priority is lower than the first priority.
[0032] In a possible implementation, the processor is specifically configured to:
[0033] adjusting the transmission rate of the tunnel to a first rate, wherein the first rate is the sum of the rates of data flows in the data flow set whose priorities are not lower than the second priority; or,
[0034] The sending rate of the tunnel is increased by a rate adjustment value, where the rate adjustment value is a preset value or a rate of a data flow with a priority lower than the second priority.
[0035] In a possible implementation, the first information further includes rate information of the data flow set, the adjustment module adjusts the sending rate of the tunnel according to the first information, and the processor is specifically configured to:
[0036] When the ratio of the first rate to the rate of the data flow set is not greater than the bandwidth share threshold, adjusting the sending rate of the tunnel to the product of the sending rate of the tunnel and the bandwidth share threshold; wherein the first rate is the sum of the rates of the data flows with a higher priority than the second priority in the data flow set;
[0037] When the ratio of the first rate to the rate of the data flow set is greater than a bandwidth share threshold, the sending rate of the tunnel is adjusted to the first rate.
[0038] In a possible implementation, the communication interface is further used for:
[0039] receiving second information from the receiving device, where the second information includes network status information of the tunnel, where the network status information includes at least one of latency, jitter, and packet loss information;
[0040] The processor is further configured to determine, according to the second information, whether congestion occurs or congestion is relieved in the tunnel.
[0041] In a possible implementation, the communication interface is further used for:
[0042] The third information is received from the receiving device, where the third information is used to request the data sending apparatus to adjust the sending rate.
[0043] In a possible implementation, the third information also includes a second rate or an adjustment ratio, and the adjusted sending rate does not exceed the second rate, or does not exceed the product of the sending rate and the adjustment ratio.
[0044] In a third aspect, the present application provides a data sending device, which may be a sending device or a device in a sending device. The data sending device may include an acquisition module, an adjustment module, and a communication module. These modules may perform the corresponding functions performed by the network device in any implementation example of the first aspect above, specifically:
[0045] A communication module, configured to obtain first information, wherein the first information includes priority information of a set of data flows carried in a tunnel between the data sending device and the receiving device;
[0046] A processing module, configured to adjust a sending rate of the tunnel according to the first information;
[0047] The communication module is further configured to send the data stream to the receiving device according to the adjusted sending rate.
[0048] In a possible implementation, the processing module adjusts the sending rate of the tunnel according to the first information, specifically for:
[0049] The sending rate of a first data flow carried in the tunnel is adjusted, where the first data flow is a data flow in the data flow set whose priority is lower than the first priority.
[0050] In a possible implementation, the processing module adjusts the sending rate of the tunnel according to the first information, specifically for:
[0051] adjusting the transmission rate of the tunnel to a first rate, wherein the first rate is the sum of the rates of data flows in the data flow set whose priorities are not lower than the second priority; or,
[0052] The sending rate of the tunnel is increased by a rate adjustment value, where the rate adjustment value is a preset value or a rate of a data flow with a priority lower than the second priority.
[0053] In a possible implementation, the first information further includes rate information of the data flow set, and the processing module adjusts the sending rate of the tunnel according to the first information, specifically for:
[0054] When the ratio of the first rate to the rate of the data flow set is not greater than the bandwidth share threshold, the adjustment module adjusts the sending rate of the tunnel to the product of the sending rate of the tunnel and the bandwidth share threshold; wherein the first rate is the sum of the rates of the data flows with a higher priority than the second priority in the data flow set;
[0055] When the ratio of the first rate to the rate of the data flow set is greater than a bandwidth share threshold, the adjustment module adjusts the sending rate of the tunnel to the first rate.
[0056] In a possible implementation, the communication module is further used for:
[0057] receiving second information from the receiving device, where the second information includes network status information of the tunnel, where the network status information includes at least one of latency, jitter, and packet loss information;
[0058] The processing module is further configured to determine whether congestion occurs or congestion is relieved in the tunnel according to the second information.
[0059] In a possible implementation, the communication module is further used for:
[0060] The third information is received from the receiving device, where the third information is used to request the data sending apparatus to adjust the sending rate.
[0061] In a possible implementation, the third information further includes a second rate or an adjustment ratio, and the adjusted sending rate does not exceed the second rate, or does not exceed the product of the sending rate and the adjustment ratio.
[0062] In a fourth aspect, the present application provides a communication system, comprising a sending device as described in the second aspect or the third aspect, and a receiving device. The sending device communicates with the receiving device via a tunnel.
[0063] In a fifth aspect, the present application also provides a computer-readable storage medium, comprising instructions, which, when executed on a computer, enables the computer to execute the method described in the first aspect.
[0064] In a sixth aspect, the present application also provides a computer program product, comprising instructions, which, when executed on a computer, enables the computer to execute the method described in the first aspect.
[0065] In a seventh aspect, an embodiment of the present application provides a chip system, which includes a processor and may also include a memory, for implementing the method described in the first aspect. The chip system may be composed of a chip, or may include a chip and other discrete devices.
[0066] The beneficial effects of the above-mentioned second to seventh aspects and their implementation methods can refer to the description of the beneficial effects of the method of the first aspect and its implementation method. BRIEF DESCRIPTION OF THE DRAWINGS
[0067] Figure 1 An exemplary architecture diagram of a communication system provided in an embodiment of the present application;
[0068] Figure 2 A flowchart of an example of a data sending method provided in an embodiment of the present application;
[0069] Figure 3 A flowchart of another example of a data sending method provided in an embodiment of the present application;
[0070] Figure 4 A schematic diagram of an example of a data sending device provided in an embodiment of the present application;
[0071] Figure 5 A structural diagram of another example of a data sending device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0072] In order to make the purpose, technical solutions and advantages of the embodiments of the present application clearer, the embodiments of the present application will be further described in detail below with reference to the accompanying drawings.
[0073] To facilitate those skilled in the art to understand the present solution, the technical terms involved in the embodiments of the present application are explained below.
[0074] 1) SD-WAN technology can be understood as a software-controlled network that uses virtual networking technology to allocate network resources and provide service level agreement (SLA) guarantees for both parties using the network for communication. The virtual networking technology can be, for example, a virtual private network (VPN), an Internet protocol security (IPsec) tunnel, a multi-protocol label switching (MPLS) tunnel, and other virtual network management mechanisms, etc., which are not limited here. In the embodiment of the present application, the network established using SD-WAN technology can be called an SD-WAN network.
[0075] 2) In the embodiments of the present application, "multiple" refers to two or more than two. In view of this, in the embodiments of the present application, "multiple" can also be understood as "at least two". "At least one" can be understood as one or more, for example, one, two or more. For example, including at least one means including one, two or more, and there is no restriction on which ones are included. For example, including at least one of A, B and C, then A, B, C, A and B, A and C, B and C, or A, B and C may be included. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / ", unless otherwise specified, generally indicates that the previously and subsequently associated objects are in an "or" relationship.
[0076] Unless otherwise specified, the ordinal numbers such as "first" and "second" mentioned in the embodiments of the present application are used to distinguish multiple objects and are not used to limit the order, timing, priority or importance of the multiple objects.
[0077] First, the application scenarios involved in the embodiments of the present application are introduced.
[0078] Please refer to Figure 1 , is an exemplary architecture diagram of a communication system 100 applicable to an embodiment of the present application. Figure 1 Included are a first site 110, a SD-WAN network 120, a second site 130, and a third site 140.
[0079] Among them, the first site 110, the second site 130 and the third site 140 can be physically independent small networks. The small network can be the headquarters network of an enterprise user, the network of a cloud data center and a branch office, etc., and can be created using local area network (LAN) technology or other communication technologies, without limitation here.
[0080] like Figure 1 As shown, the first site 110, the second site 130 and the third site 140 are connected to the SD-WAN network 120 through CPEs, for example, the first site 110 is connected to the SD-WAN network 120 through the first CPE 111, the second site 130 is connected to the SD-WAN network 120 through the second CPE 131, and the third site 140 is connected to the SD-WAN network 120 through the third CPE 141. CPE, for example, the first CPE 111, the second CPE 131 and the third CPE 141, may be a router, a switch, a modem, etc., or may also be a gateway device or a relay node (RN), etc., for providing access to Internet services such as wired broadband, Internet protocol television (IPTV), and voice over internet protocol (VoIP) for terminal devices in each site (the first site 110, the second site 130 and the third site 140). A terminal device may be a device that provides voice and / or data connectivity to a user, and may include, for example, a handheld device with wired or wireless connection capabilities, a computer, etc., a mobile device built into a computer or mounted in a vehicle, smart wearable devices such as smart glasses or smart watches, a virtual reality (VR) device, or a wireless or wired terminal device in a smart home, etc.
[0081] The SD-WAN network 120 may be operated on one or more operator networks including provider edge (PE) devices. The SD-WAN network 120 may be managed by a software defined network (SDN) controller 121. As an example, the SDN controller 121 may control the CPE devices of each site to access the SD-WAN network 120 through different PE devices. The PE device connected to the CPE may be a PE device attached to the operator network and closest to the physical location of the CPE, such as Figure 1As shown, the SDN controller 121 determines that the PE device connected to the first CPE 111 is the first PE device 122, the PE device connected to the second CPE 131 is the second PE device 123, and the PE device connected to the third CPE 141 is the third PE device 124. Then the SDN controller 121 sends registration responses to the first CPE 111, the second CPE 131, and the third CPE 141 respectively to indicate the information of the PE devices connected thereto, so that the first CPE 111 is connected to the SD-WAN network 120 through the first PE device 122, the second CPE 131 is connected to the second PE device 123, and the third CPE 141 is connected to the third PE device 124. Multiple CPEs connected to the SD-WAN network 120 communicate with each other through virtual network tunnels to interconnect various sites. As an example, the virtual network tunnel between any two CPEs may include but is not limited to the following two types. The first type of virtual network tunnel may be a virtual network tunnel that needs to ensure the quality of service (QoS) of the data flow, for example, a virtual network tunnel using multi-protocol label switching (MPLS) technology or a virtual network tunnel using virtual private network (VPN) technology, etc.; the second type of virtual network tunnel may be a virtual network tunnel that does not need to ensure the QoS of the data flow, for example, a virtual network tunnel using Internet protocol (IP) technology. Multiple CPEs can communicate many-to-one or one-to-many through the virtual network tunnel. The CPEs included in each site are respectively connected to the SD-WAN controller 150 of the enterprise user and are uniformly managed by the SD-WAN controller 150. For example, the data traffic sent by the tunnel between any two CPEs can be controlled.
[0082] It should be noted that Figure 1 The number of sites, CPEs, and PE devices in the example is only an example. In actual applications, the communication system 100 provided in this application can provide services for more sites or CPEs and may include more PEs. Figure 1 In the communication system 100 shown, although sites, CPE, PE, SD-WAN controller and SDN controller are shown, the architecture of the communication system may not be limited to the above contents. For example, it may also include devices for carrying virtualized network functions, wireless relay devices, etc., which are not described in detail here.
[0083] The network architecture of the communication system provided in the embodiment of the present application can also be applied to the fifth generation communication system (the 5th generation, 5G), advanced long term evolution (advanced long term evolution, LTE-A) system, etc.
[0084] In addition, the communication system can also be applied to future-oriented communication technologies. The communication system described in the embodiment of the present application is to more clearly illustrate the technical solution of the embodiment of the present application, and does not constitute a limitation on the technical solution provided in the embodiment of the present application. Ordinary technicians in this field can know that with the evolution of network architecture, the technical solution provided in the embodiment of the present application is also applicable to similar technical problems.
[0085] exist Figure 1 In the communication system shown, the communication between CPEs is performed based on a virtual network tunnel. Since the bandwidth of each virtual network tunnel (can be referred to as a tunnel for short) is limited, when the rate of the data stream sent in the tunnel is too high, congestion will be caused.
[0086] In order to alleviate congestion, a common congestion optimization method is to control the data traffic sent by the tunnel through the SD-WAN controller. Specifically, the SD-WAN controller can determine whether it is necessary to adjust the data traffic sent by the link based on the bandwidth used by each link last time and the available bandwidth of the link measured by the CPE, and then send an adjustment instruction to the CPE. After receiving the adjustment instruction, the CPE controls the data traffic it sends according to the adjustment instruction. However, when the data traffic sent by the tunnel is controlled by the SD-WAN controller, multiple interactions between the SD-WAN controller and the CPE are required to achieve it, which will occupy more network resources, and multiple interactions will also cause delays, and network congestion cannot be resolved in time.
[0087] In view of this, an embodiment of the present application provides a data sending method, whereby the CPE can promptly sense tunnel congestion and intelligently adjust the sending rate to alleviate the congestion.
[0088] The technical solution provided by the embodiments of the present application is described below in conjunction with the accompanying drawings.
[0089] Please refer to Figure 2 , which is a flowchart of a data sending method provided in an embodiment of the present application.
[0090] In the following introduction, this method is applied to Figure 1 The communication system 100 shown in the figure is taken as an example, that is, the sending device described below can be Figure 1For any one of the first CPE 111, the second CPE 131, and the third CPE 141 in the communication system 100 shown, the receiving device may be another CPE different from the sending device. For example, the sending device may be the first CPE 111, and the receiving device may be the second CPE 131, or the sending device may be the first CPE 111, and the receiving device may be the third CPE 141.
[0091] S201. A sending device receives a data stream from a terminal device.
[0092] exist Figure 1 In the communication system shown, the CPE of a site receives data streams from terminal devices in the site, for example, the first CPE 111 receives at least one data stream from a terminal device in the first site 110. For ease of description, the sending device is taken as the first CPE 111 as an example below.
[0093] As an example, the first CPE 111 receives 10 data streams from a terminal device (which may be the same terminal device or different terminal devices), which are marked as data stream 1 to data stream 10. Each data stream includes service type information and an identifier of a destination terminal device. The service type information may be a service name or service type defined by a standard, or an index number corresponding to a service type, etc. The identifier of the destination terminal device may be an IP address of the destination terminal device, etc., which is not limited here.
[0094] As an example, each CPE can obtain, for example, from the SD-WAN controller 150, a set of identifiers of terminal devices in the site where other CPEs in the SD-WAN are located. For example, if the identifier of the terminal device is an IP address, the set of identifiers of the terminal device can be a range of IP addresses (also called an IP address segment, usually expressed in the form of an IP address prefix). Specifically, after each site is connected to the SD-WAN network 120, the SD-WAN controller 150 can configure a range of IP addresses that can be used for the terminal devices in the site, and send the range of IP addresses to the CPE in the site. At this time, the site can be regarded as a subnet, and the CPE of the site is regarded as the gateway of the subnet. In this way, when the terminal device accesses the CPE, the CPE can select an IP address from the IP address range to assign to the terminal device. Therefore, after the first CPE 111 receives the data stream, the first CPE 111 can obtain the range of IP addresses corresponding to the CPE in each site from the SD-WAN controller 150. Of course, the first CPE 111 can also use other methods to obtain the range of IP addresses corresponding to each CPE, which is not limited here. Then, the first CPE111 can determine the CPE to which the IP address of the destination terminal device carried by each data stream belongs. For example, the range of IP addresses allocated by the second CPE131 is IP address 1 to IP address 200, and the range of IP addresses allocated by the third CPE141 is IP address 201 to IP address 400. The first CPE111 determines that the IP addresses of the destination terminal devices carried by data streams 1 to 10 are all within the range of IP addresses corresponding to the second CPE131.
[0095] In the embodiment of the present application, at least one data stream received by the same receiving device (CPE) can be regarded as a data stream set. Since the data streams sent by the terminal devices in the site are dynamically changing, the data stream set is also dynamically changing, and data streams can be added or deleted after the data streams are sent.
[0096] S202: The sending device sends the data stream to the receiving device.
[0097] After receiving the data stream, the sending device can determine the receiving device corresponding to each data stream according to the identifier of the destination terminal device indicated in the data stream, and then send the data stream to the corresponding receiving device through the tunnel between the sending device and the receiving device.
[0098] Continuing with the above example, the first CPE111 determines that the IP addresses of the destination terminal devices carried by data streams 1 to 10 are all within the range of the IP address corresponding to the second CPE131. Then, the first CPE111 sends data streams 1 to 10 to the second CPE131 according to the preset sending rate of the tunnel between the first CPE111 and the second CPE131.
[0099] Of course, the first CPE111 can also send another data stream set to the third CPE141 at the same time. The specific sending method is similar to the above process and will not be repeated here. For the convenience of explanation, the communication process between the first CPE111 and the second CPE131 is used as an example for explanation, that is, the receiving device is the second CPE131.
[0100] S203: The sending device obtains first information.
[0101] In the embodiment of the present application, the first information includes but is not limited to the following two situations.
[0102] In the first case, the first information includes the priority information of the data stream set carried in the tunnel between the sending device and the receiving device. In the second case, the first information includes the priority information of the data stream set and the rate information of the data stream set.
[0103] It should be noted that the priority information and rate information of the data stream set are counted in units of tunnels, and the data streams sent by the terminal devices in the same site may be sent to different destination terminal devices. It can be considered that if multiple data streams are sent to the same destination terminal device, the multiple data streams are carried in the same tunnel. Therefore, in the embodiment of the present application, after the sending device sends the data stream, the tunnel corresponding to each data stream can be determined according to the identifier of the destination terminal device included in each data stream, and then the priority information or rate information in the data stream set carried by each tunnel is counted.
[0104] The following describes how to obtain the priority information and rate information of the data flow set in the tunnel between the first CPE 111 and the second CPE 131 .
[0105] Priority information of data stream set:
[0106] The priorities may be divided into only two priorities, high and low, or may be divided into four priorities, 1 to 4, or eight priorities, 1 to 8, or sixteen priorities, 1 to 16.
[0107] In the first example, the header of the data flow may carry priority information, for example, the differentiated services code point (DSCP) in the message header carries priority information. In this case, the priority corresponding to each data flow can be determined directly based on the message header of each data flow.
[0108] In the second example, the priority can also be pre-configured according to the service type. For example, different priorities are pre-configured for different service types in the first CPE 111, as shown in Table 1. In Table 1, the priorities corresponding to service types A to G are priority 1 to priority 7, and the priority levels of priority 1 to priority 7 decrease in sequence.
[0109] Table 1
[0110] Business Type Priority Level A 1 B 2 C 3 D 4 E 5 F 6 G 7
[0111] After receiving the data stream set sent by the terminal device, the first CPE111 determines the priority corresponding to each data stream according to the correspondence between the service type and the priority level shown in Table 1 and the service type information carried in each data stream. For example, the first CPE111 receives 10 data streams sent by the terminal device, which are marked as data stream 1 to data stream 10 respectively. The identifiers of the destination terminal devices carried in the 10 data streams are the same, and the 10 data streams are carried in the same tunnel. Using the above method, the priorities of data streams 1 to 10 are determined to be priority 1, priority 2, priority 3, priority 4, priority 5, priority 6, priority 7, priority 1, priority 2, and priority 3, respectively.
[0112] Of course, the priority can also be fixedly set according to customer needs during network deployment. In this case, obtaining the priority of each data stream is similar to that in the second example and will not be repeated here.
[0113] In the embodiment of the present application, the priority information of the data stream set can be understood as the priority of each data stream in the data stream set.
[0114] Rate information of a data stream set:
[0115] As an example, the sending device may obtain the rate of each data flow in the set of data flows carried by each tunnel to obtain the total rate of the data flows carried by the tunnel.
[0116] For example, the first CPE 111 receives 10 data streams sent by a terminal device, which are marked as data streams 1 to 10 respectively. The identifiers of the destination terminal devices carried in the 10 data streams are the same, and the 10 data streams are carried in the same tunnel. Then, the first CPE 111 determines that the rates of data streams 1 to 10 are 10MB, 30MB, 20MB, 10MB, 10MB, 30MB, 30MB, 20MB, 10MB, and 10MB, respectively, so that the total rate of the data streams carried by the tunnel is 180MB.
[0117] Alternatively, the rate information may also be the rate of each data flow in the data flow set.
[0118] As another example, the sending device may obtain a ratio of a first rate to a rate of a data flow set of the tunnel, where the first rate is the sum of the rates of data flows in the data flow set with a priority higher than the second priority; or, the sending device may obtain a ratio of a second rate to a rate of a data flow set of the tunnel, where the second rate is the sum of the rates of data flows in the data flow set with a priority lower than or equal to the third priority. The second priority and the third priority may be the same or different, and are not limited here.
[0119] In this example, the rate information of the data flow set can be understood as the rate proportion of the high-priority data flow or the rate proportion of the low-priority data flow in the data flow set.
[0120] Taking the rate information of the data stream set as the rate ratio of the high-priority data stream as an example, the second priority can be priority 4, and the priorities of data streams 1 to 10 obtained by the first CPE 111 are priority 1, priority 2, priority 3, priority 4, priority 5, priority 6, priority 7, priority 1, priority 2, priority 3, and the rates of data streams 1 to 10 are 10MB, 30MB, 20MB, 10MB, 10MB, 30MB, 30MB, 20MB, 10MB, 10MB. Among them, the data streams with priorities higher than or equal to priority 4 are 7 data streams, namely, data streams 1 to 4 and data streams 8 to 10. The total rate of these 7 data streams is 110MB, and the total rate of data streams 1 to 10 is 180MB. Therefore, the rate ratio of the high-priority data streams is 110 / 180=11 / 18.
[0121] In the above example, the multiple data streams received by the sending device correspond to the same tunnel. When the multiple data streams correspond to different tunnels, the processing method for the data stream set in each tunnel is similar to the above process and will not be repeated here.
[0122] Of course, the first information may also include other content, which is not limited here.
[0123] S204: The sending device receives second information from the receiving device.
[0124] In an embodiment of the present application, the second information includes network status information of the tunnel, for example, the network status information includes at least one of latency, jitter, and packet loss information (such as packet loss rate and / or number of packet loss, etc.). As an example, taking the case where the network status information includes packet loss rate, when the second CPE131 receives a data stream set sent by the first CPE111, it can determine whether a packet is lost based on the sequence number of the data packet in each data stream. For example, if the second CPE131 receives a data packet with a sequence number of 1 and a data packet with a sequence number of 4 in a data stream, it is determined that the data stream includes a total of 4 data packets, and two data packets with sequence numbers 2 and 3 are lost. The lost data packets in each data stream are determined in the same manner, and the packet loss rate is determined through all the data packets from the data stream set and all the lost data packets.
[0125] After the second CPE 131 obtains the second information, it can carry the second information in the feedback information of the data stream and send it to the first CPE 111, for example, the second information can be carried in an acknowledgement (ACK). Alternatively, the second information can be sent to the first CPE 111 as an independent information. In the embodiment of the present application, the sending method of the second information is not limited.
[0126] It should be noted that, in the embodiment of the present application, step S204 is an optional step, that is, it is not necessary to execute. Figure 3 In addition, the execution order of step S203 and step S204 is not limited. For example, step S204 may be executed first and then step S204, or step S204 may be executed first and then step S203, or step S203 and step S204 may be executed simultaneously. Figure 3 In the example, step S203 is first executed and then step S204 is executed.
[0127] S205: The sending device determines that the tunnel is congested.
[0128] After the first CPE111 receives the second information, the first CPE111 can determine whether the tunnel between the first CPE111 and the second CPE131 is congested based on the second information. For example, taking the second information as the packet loss rate as an example, the first CPE111 pre-stores a judgment threshold for judging whether congestion occurs. If the first CPE111 determines that the second information includes a packet loss rate exceeding the judgment threshold, the first CPE111 determines that the tunnel between the first CPE111 and the second CPE131 is congested, otherwise, the tunnel is not congested. For example, the judgment threshold is 40%, and the packet loss rate obtained by the first CPE111 is 50%>40%, so the first CPE111 determines that the tunnel is congested. Of course, other methods can also be used to determine whether the physical link is congested based on the packet loss rate, which is not limited here.
[0129] When the second information includes other content, such as packet loss information or jitter information, the first CPE 111 may determine whether the tunnel is congested in a manner similar to the above, which will not be described in detail herein.
[0130] S206: The sending device adjusts the sending rate of the tunnel according to the first information.
[0131] In the embodiment of the present application, the tunnel refers to a tunnel between a sending device and a receiving device, for example, a tunnel between a first CPE 111 and a second CPE 131. The sending device adjusts the sending rate of the tunnel according to the first information, which can be understood as the sending device adjusting the sending rate of the first data stream carried in the tunnel, and the first data stream is a data stream with a priority lower than the first priority in the data stream set. Of course, there may be multiple data streams with a priority lower than the first priority in the data stream set, such as a second data stream, a third data stream, etc., and the sending device also adjusts the sending rate of the second data stream.
[0132] Specifically, the sending device adjusts the sending rate of the tunnel according to the first information in the following two scenarios:
[0133] The first scenario is that congestion occurs in the tunnel, and the sending device reduces the sending rate of the tunnel according to the first information;
[0134] The second scenario is that after the tunnel is not congested or is relieved of congestion, the sending device increases the sending rate of the tunnel according to the first information.
[0135] In the first scenario, depending on the content included in the first information, there are multiple implementation methods, including but not limited to the following.
[0136] In the first adjustment mode, the first information only includes the priority information of the data flow set, and the sending device adjusts the sending rate of the tunnel according to the first information, specifically including:
[0137] The sending device adjusts the sending rate of the tunnel to a first rate, wherein the first rate is the sum of the rates of the data flows in the data flow set whose priorities are not lower than the second priority.
[0138] As an example, if the first information is the priority information of each data stream in the data stream set, the sending device first determines the data streams in the data stream set whose priority is not lower than the second priority according to the first information. For example, the priorities of data streams 1 to 10 are priority 1, priority 2, priority 3, priority 4, priority 5, priority 6, priority 7, priority 1, priority 2, priority 3, and the second priority is priority 4. The sending device compares the priority of each data stream with the second priority and determines that the data streams whose priority is not lower than the second priority are data streams 1 to 4 and data streams 8 to 10. Thus, the sending rate of the tunnel is adjusted to the rate of data streams 1 to 4 and data streams 8 to 10.
[0139] In the second adjustment mode, the first information includes the priority information of the data flow set and the rate information of the data flow set, and the sending device adjusts the sending rate of the tunnel according to the first information, specifically including:
[0140] When the ratio of the first rate to the rate of the data flow set is not greater than the bandwidth share threshold, the sending device adjusts the sending rate of the tunnel to the product of the sending rate of the tunnel and the bandwidth share threshold; wherein the first rate is the sum of the rates of the data flows with a higher priority than the second priority in the data flow set;
[0141] When the ratio of the first rate to the rate of the data flow set is greater than the bandwidth share threshold, the sending device adjusts the sending rate of the tunnel to the first rate.
[0142] It should be noted that the bandwidth usage threshold can be pre-set by the sending device for adjusting the sending rate of the tunnel. If there is no need to ensure that data streams with higher priority can be sent first, then when the sending device needs to adjust the sending rate of the tunnel, the sending rate of the tunnel can be adjusted to the product of the sending rate of the tunnel before the adjustment and the bandwidth usage threshold, wherein the sending rate of the tunnel before the adjustment can be a pre-set sending rate or the sending rate after the last adjustment.
[0143] As an example, assuming that the bandwidth usage threshold is 5 / 10, using the previous example, the first rate can be obtained from the first information as 110MB, and the ratio of the first rate to the rate of the data flow set is 11 / 18. Since 11 / 18>5 / 10, the sending device adjusts the sending rate of the tunnel to the first rate, that is, 110MB.
[0144] In the above technical solution, in order to ensure that data streams with higher priority can be sent first, when the sending device adjusts the sending rate of the tunnel, it will compare the rate ratio of the data stream with higher priority with the bandwidth ratio threshold. If the rate ratio of the data stream with higher priority is not greater than the bandwidth ratio threshold, the sending device determines the adjusted sending rate to be the product of the sending rate of the tunnel before the adjustment and the bandwidth ratio threshold, so as to satisfy the priority sending of data streams with higher priority, and because the sending rate of the tunnel is reduced, the congestion of the tunnel can be alleviated when the tunnel is congested. If the rate ratio of the data stream with higher priority is greater than the bandwidth ratio threshold, in order to give priority to the sending of data streams with higher priority, the adjusted sending rate is determined to be the rate of the data stream with higher priority.
[0145] As another example, if the rate information also includes the total rate of the data streams carried by the tunnel, then before the sending device adjusts the sending rate of the tunnel, it can also first determine whether the total rate of the data streams carried by the tunnel is greater than or equal to the second threshold. If the total rate of the data streams carried by the tunnel is less than the second threshold, it means that there are fewer data streams in the data stream set. In this case, even if the sending rate of the tunnel is adjusted, it cannot alleviate the congestion of the tunnel. Therefore, in this case, the sending device may not adjust the sending rate of the tunnel. If the total rate of the data streams carried by the tunnel is greater than the second threshold, the sending device can adjust the sending rate of the tunnel in the aforementioned manner.
[0146] It should be noted that, from the description of the rate information of the data stream set in the aforementioned step S203, it can be seen that the rate information may include a variety of different contents, for example, it may be the rate of each data stream, the total rate of the data streams in the data stream set, or the rate ratio of low-priority data streams, etc. Therefore, when the rate information is not the rate ratio of high-priority data streams in the data stream set, the sending device first needs to determine the rate ratio of high-priority data streams in the data stream set based on the rate information, and then determine the adjusted sending rate according to the above method.
[0147] In the second scenario, the first information includes priority information of the data flow set and rate information of the data flow set, and the sending device adjusts the sending rate of the tunnel according to the first information, specifically including:
[0148] The sending device increases the sending rate of the tunnel by a rate adjustment value, where the rate adjustment value is a preset value or a rate of a data flow whose priority is lower than the second priority.
[0149] As an example, the preset value may be a fixed rate, for example, 10MB. Alternatively, the rate adjustment value may be the rate of a certain data stream, and the data stream may be a data stream of a certain priority. For example, the sending device may preset the rate adjustment value to be the rate of a data stream of priority 5, and the sending device determines the data stream of priority 5 as data stream 5 from the data stream set according to the first information, thereby adjusting the sending rate of the tunnel to the sum of the sending rate at the current moment plus the rate of data stream 5. The sending rate at the current moment may be understood as the sending rate of the tunnel before this adjustment is made, for example, it may be a preset sending rate or a sending rate after the last adjustment.
[0150] In addition, it should be noted that the first priority and the second priority may be the same or different, which is not limited here. The bandwidth proportion threshold may also be other names, which is not limited here.
[0151] It can be seen from the above technical solution that the sending device adjusts the sending rate in combination with the data flow in the data flow set whose priority is not lower than the second priority. That is to say, after adjusting the sending rate of the tunnel, the sending rate of the data flow with a higher priority can be guaranteed, and the problem of the higher priority data flow being discarded due to indiscriminate packet loss during the transmission process of the SD-WAN network 120 after the tunnel is congested can be avoided. This ensures that the data flow with a higher priority can be sent first after the tunnel is congested.
[0152] S207: The sending device sends the data stream to the receiving device according to the adjusted sending rate.
[0153] After determining the adjusted sending rate, the first CPE 111 sends the data flows in the data flow set according to the adjusted sending rate and from high to low priority, thereby ensuring that the data flows with high priority can be sent first.
[0154] It should be noted that if there are two types of tunnels between the sending device and the receiving device, namely, a first type of virtual network tunnel that needs to guarantee the QoS of the data flow and a second type of virtual network tunnel that does not need to guarantee the QoS of the data flow, the above-mentioned sending rate adjustment process can be performed on the first type of virtual network tunnel. In this case, if the adjusted sending rate is less than the sending rate of the tunnel before the adjustment, the sending device can migrate part of the data flow to the second type of virtual network tunnel for transmission, so as to reduce the sending rate of the first type of virtual network tunnel.
[0155] In the above technical solution, the sending device can promptly sense tunnel congestion and can automatically adjust the sending rate of the tunnel according to the priority information of the data flow carried in the tunnel, thereby reducing the interaction process between the sending device and the controller, and can reduce the network resources and delays occupied when resolving network congestion.
[0156] Furthermore, since the sending rate of the tunnel is determined according to the priority of the data flow, it can be ensured that the data flow with high priority can be sent first. For example, the data flow of high priority services such as voice or video can be sent first, which can improve the user experience.
[0157] exist Figure 2 In the embodiment shown, the sending device can adjust the sending rate of the tunnel in combination with the network status information of the tunnel fed back by the receiving device and the priority information of the data stream set. In other embodiments, the sending device can also adjust the sending rate of the tunnel in combination with the request for adjusting the sending rate sent by the receiving device. Figure 3 , is a flowchart of another example of the data sending method of an embodiment of the present application, and the flowchart is described as follows:
[0158] S301: A sending device receives a data stream from a terminal device.
[0159] S302: The sending device sends the data stream to the receiving device.
[0160] Steps S301 and S302 are similar to steps S201 and S202 and will not be described in detail herein.
[0161] S303: The sending device receives third information from the receiving device.
[0162] In the embodiment of the present application, the third information is used to request the sending device to adjust the sending rate of the tunnel.
[0163] In the embodiment of the present application, the third information includes but is not limited to the following two situations.
[0164] In the first case, the third information is only used to request the sending device to adjust the sending rate of the tunnel, and the adjustment of the sending rate can be to increase the sending rate or reduce the sending rate. In this case, the receiving device only indicates that the sending device needs to adjust the sending rate of the tunnel, and the adjustment value is determined by the sending device.
[0165] In the second case, the third information also includes the second rate or the adjustment ratio, and the adjusted sending rate does not exceed the second rate, or does not exceed the product of the sending rate of the tunnel before the adjustment and the adjustment ratio. In this case, the receiving device is not only used to indicate that the sending device needs to adjust the sending rate of the tunnel, but the adjustment value is also indicated by the receiving device.
[0166] Specifically, the receiving device may determine whether it is necessary to adjust the transmission rate of the tunnel of the sending device according to at least one of the delay, jitter, and packet loss information (such as packet loss rate and / or number of packet loss, etc.) of the data stream received in step S402. As an example, the second CPE 131 may determine whether the delay of the data stream exceeds the delay threshold. If the delay of the data stream exceeds the delay threshold, it means that the tunnel between the first CPE 111 and the second CPE 131 is congested, and the second CPE 131 may determine that it is necessary to adjust the transmission rate of the sending device, and then generate the third information; if the delay of the data stream does not exceed the delay threshold, the third information may not be generated.
[0167] The manner in which the receiving device determines whether to generate the third information based on the packet loss information or jitter information is similar to the above content and will not be repeated here.
[0168] S304: The sending device obtains first information.
[0169] Step S304 is similar to step S203 and will not be described again.
[0170] S305: The sending device adjusts the sending rate of the tunnel according to the first information and / or the third information.
[0171] In the embodiment of the present application, the sending device adjusts the sending rate of the tunnel according to the first information and / or the third information, which may include but is not limited to the following methods:
[0172] In the first method, the third information is only used to request the sending device to adjust the sending rate of the tunnel. The sending device can determine whether to accept the request for adjusting the sending rate of the tunnel sent by the receiving device based on the first information. For example, it can determine whether the total rate of the data stream set exceeds the preset rate based on the first information. If the total rate exceeds the preset rate, the adjusted sending rate is determined based on the first information. If the total rate does not exceed the preset rate, the request for adjusting the sending rate of the tunnel sent by the receiving device is not accepted, and the sending rate is not adjusted.
[0173] In the second method, the third information also includes a second rate or an adjustment ratio. The sending device can determine whether to receive the request for adjusting the sending rate of the tunnel sent by the first information. If the request for adjusting the sending rate of the tunnel sent by the receiving device is accepted, the adjusted sending rate is determined according to the third information.
[0174] In the third method, the third information also includes the second rate or the adjustment ratio. The sending device can determine whether to receive the request for adjusting the sending rate of the tunnel sent by the receiving device based on the first information. If the request for adjusting the sending rate of the tunnel sent by the receiving device is accepted, the adjusted sending rate is determined according to the first information. After determining the adjusted sending rate, the sending device can also determine whether the adjusted sending rate is greater than the second rate in the third information, or determine whether the adjusted rate is greater than the product of the sending rate before the adjustment and the adjustment ratio in the third information. If so, the sending rate of the tunnel is determined to be the second rate or the product of the sending rate before the adjustment and the adjustment ratio in the third information. If not, the sending rate of the tunnel is determined to be the adjusted sending rate.
[0175] In addition, if the sending device determines to increase the sending rate of the tunnel by the rate adjustment value, the rate adjustment value may also be determined based on the second rate or the adjustment ratio in the third information. For example, the rate adjustment value may be the product of the second rate and a preset ratio, and the preset ratio may be 10% or 20%, etc. Alternatively, the rate adjustment value is the product of the sending rate before the adjustment and the adjustment ratio. Then, the sending device determines the adjusted sending rate using the rate adjustment value determined based on the third information.
[0176] S306: The sending device sends the data stream to the receiving device according to the adjusted sending rate.
[0177] Specifically, the sending device sends the data streams in the data stream set according to the priority from high to low according to the adjusted sending rate, thereby ensuring that the data streams with high priority can be sent first.
[0178] Step S306 is similar to step S207 and will not be described again.
[0179] The sending device can promptly sense tunnel congestion and automatically adjust the tunnel sending rate based on the priority information of the data flow carried in the tunnel, thereby reducing the interaction process between the sending device and the controller, and reducing the network resources and latency occupied when resolving network congestion.
[0180] In the embodiments provided by the present application, the methods provided by the embodiments of the present application are introduced from the perspective of the sending device. In order to implement the functions in the methods provided by the embodiments of the present application, the sending device may include a hardware structure and / or a software module to implement the functions in the form of a hardware structure, a software module, or a hardware structure plus a software module. Whether one of the functions is executed in the form of a hardware structure, a software module, or a hardware structure plus a software module depends on the specific application of the technical solution and the constraints of the implementation.
[0181] Figure 4 A schematic diagram of the structure of a data sending device 400 is shown. The data sending device 400 may be a sending device or a device built into a sending device, and may implement the function of the sending device in the method provided in the embodiment of the present application. The data sending device 400 may be a hardware structure, a software module, or a hardware structure plus a software module. The data sending device 400 may be implemented by a chip system. In the embodiment of the present application, the chip system may be composed of a chip, or may include a chip and other discrete devices.
[0182] The data transmitting device 400 may include a processing module 401 and a communication module 402 .
[0183] The processing module 401 is used to obtain first information, which includes priority information of a set of data streams carried in a tunnel between a sending device and a receiving device; adjust the sending rate of the tunnel according to the first information; and send the data stream to the receiving device using the communication module 402 according to the adjusted sending rate.
[0184] Specifically, the processing module 401 can be used to execute Figure 2 Step S203, step S205 to step S206 in the embodiment shown, or for executing Figure 3 Step S304 and step S305 in the illustrated embodiment, and / or other processes for supporting the technology described herein. The communication module 402 is used for the data transmission device 400 to communicate with other modules, and can be a circuit, a device, an interface, a bus, a software module, a transceiver or any other device capable of achieving communication.
[0185] Processing module 401 uses communication module 402 to execute Figure 2 In the embodiment shown in FIG. 1 , steps S201 to S202, step S204 and step S207 are performed, or Figure 3 Steps S301 to S303 and step S306 in the illustrated embodiment, and / or other processes for supporting the technology described herein.
[0186] Among them, all relevant contents of each step involved in the above method embodiment can be referred to the functional description of the corresponding functional module, and will not be repeated here.
[0187] The division of modules in the embodiments of the present application is schematic and is only a logical function division. There may be other division methods in actual implementation. In addition, each functional module in each embodiment of the present application may be integrated into a processor, or may exist physically separately, or two or more modules may be integrated into one module. The above-mentioned integrated modules may be implemented in the form of hardware or in the form of software functional modules.
[0188] like Figure 5 The data transmission device 500 provided in the embodiment of the present application is shown, wherein the data transmission device 500 may be Figure 2 , Figure 3 The sending device or the device built into the sending device in the embodiment shown can realize the function of the sending device in the method provided in the embodiment of the present application. Among them, the data sending device 500 can be a chip system. In the embodiment of the present application, the chip system can be composed of a chip, or it can include a chip and other discrete devices.
[0189] The data transmitting device 500 includes a communication interface 510 and a processor 520 .
[0190] The processor 520 is used to implement or support the data sending device 500 to implement the function of the sending device in the method provided in the embodiment of the present application. Exemplarily, the processor 520 can adjust the sending rate of the tunnel according to the first information. For details, please refer to the detailed description in the method example, which will not be repeated here.
[0191] The data transmission device 500 may also include at least one memory 530 for storing program instructions and / or data. The memory 530 is coupled to the processor 520. The coupling in the embodiment of the present application is an indirect coupling or communication connection between devices, units or modules, which may be electrical, mechanical or other forms, and is used for information exchange between devices, units or modules. The processor 520 may operate in coordination with the memory 530. The processor 520 may execute program instructions stored in the memory 530. At least one of the at least one memory may be included in the processor.
[0192] The data transmitting apparatus 500 can communicate with other devices through the communication interface 510. For example, the other device can be a receiving device. The processor 520 can use the communication interface 510 to send a data stream to the receiving device.
[0193] The communication interface 510 may be a wired communication interface, a wireless communication interface or a combination thereof, wherein the wired communication interface may be, for example, an Ethernet interface. The Ethernet interface may be an optical interface, an electrical interface or a combination thereof. The wireless communication interface may be a WLAN interface, a cellular network communication interface or a combination thereof, etc.
[0194] The specific connection medium between the communication interface 510, the processor 520 and the memory 530 is not limited in the embodiment of the present application. Figure 5 In the embodiment, the memory 530, the processor 520 and the communication interface 510 are connected via a bus 540. Figure 5The connections between the other components are shown in bold lines, which are only for illustration and are not intended to be limiting. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 5 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0195] The memory 530 may be used to store the above-mentioned Table 1.
[0196] In the embodiment of the present application, the processor 520 may be a central processing unit (CPU), a network processor (NP), or a combination of a CPU and a NP. The processor 520 may also include a hardware chip. The above-mentioned hardware chip may be an application specific integrated circuit (ASIC), a programmable logic device (PLD) or a combination thereof. The above-mentioned PLD may be a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL) or any combination thereof. The steps of the method disclosed in the embodiment of the present application may be directly embodied as being executed by a hardware processor, or may be executed by a combination of hardware and software modules in the processor.
[0197] In the embodiment of the present application, the memory 530 can be a non-volatile memory, such as a hard disk drive (HDD) or a solid-state drive (SSD), etc., and can also be a volatile memory (volatile memory), such as a random access memory (RAM). The memory is any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited to this. The memory in the embodiment of the present application can also be a circuit or any other device that can realize a storage function, for storing program instructions and / or data.
[0198] The present application also provides a computer-readable storage medium including instructions, which, when executed on a computer, causes the computer to execute Figure 2 or Figure 3 A method executed by a sending device in any one of the embodiments.
[0199] The present application also provides a computer program product, including instructions, which, when executed on a computer, causes the computer to execute Figure 2 or Figure 3 A method executed by a sending device in any one of the embodiments.
[0200] The embodiment of the present application provides a chip system, which includes a processor and may also include a memory, for implementing the function of the sending device in the above method. The chip system may be composed of a chip, or may include a chip and other discrete devices.
[0201] The embodiment of the present application provides a communication system, the communication system includes the aforementioned sending device and also includes a receiving device. The sending device and the receiving device communicate with each other through a tunnel.
[0202] In the method provided in the embodiment of the present application, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present invention is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, a network device, a user device or other programmable device. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from one website, computer, server or data center to another website, computer, server or data center via wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server or data center that includes one or more available media integrated therein. The available medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a magnetic tape), an optical medium (e.g., a digital video disc (DVD)), or a semiconductor medium (e.g., an SSD), etc.
[0203] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.
Claims
1. A data transmission method, characterized in that: include: The sending device obtains first information, where the first information includes priority information of a set of data flows carried in a tunnel between the sending device and the receiving device; The sending device adjusts the sending rate of the tunnel according to the first information; The sending device sends the data stream to the receiving device according to the adjusted sending rate; The sending device adjusts the sending rate of the tunnel according to the first information, including: The tunnel is congested, and the sending device adjusts the sending rate of the tunnel to a first rate; or, The tunnel is congested, the first information further includes rate information of the data flow set, and when the ratio of the first rate to the rate of the data flow set is not greater than a bandwidth share threshold, the sending device adjusts the sending rate of the tunnel to the product of the sending rate of the tunnel and the bandwidth share threshold; or, The tunnel is congested, the first information further includes rate information of the data flow set, and when the ratio of the first rate to the rate of the data flow set is greater than a bandwidth share threshold, the sending device adjusts the sending rate of the tunnel to the first rate; or, The tunnel is not congested or is relieved of congestion, and the sending device increases the sending rate of the tunnel by a rate adjustment value, where the rate adjustment value is a preset value or a rate of a second data flow with a priority lower than a second priority; The first rate is the sum of the rates of data flows in the data flow set whose priorities are not lower than the second priority.
2. The method according to claim 1, characterized in that The sending device adjusts the sending rate of the tunnel according to the first information, including: The sending device adjusts a sending rate of a first data flow carried in the tunnel, where the first data flow is a data flow in the data flow set whose priority is lower than the first priority.
3. The method according to claim 1 or 2, characterized in that: Before the sending device adjusts the sending rate according to the first information, the method further includes: The sending device receives second information from the receiving device, where the second information includes network status information of the tunnel, where the network status information includes at least one of delay, jitter, and packet loss information; The sending device determines, according to the second information, that congestion occurs or congestion is relieved in the tunnel.
4. The method according to claim 1 or 2, characterized in that: Before the sending device adjusts the sending rate according to the first information, the method further includes: The sending device receives third information from the receiving device, where the third information is used to request the sending device to adjust the sending rate.
5. The method according to claim 4, characterized in that The third information also includes a second rate or an adjustment ratio, and the adjusted sending rate does not exceed the second rate, or does not exceed the product of the sending rate of the tunnel and the adjustment ratio.
6. A data sending device, characterized in that: include: A communication module, configured to obtain first information, wherein the first information includes priority information of a set of data flows carried in a tunnel between the data sending device and the receiving device; A processing module, configured to adjust a sending rate of the tunnel according to the first information; The communication module is further configured to send the data stream to the receiving device according to the adjusted sending rate; Wherein, when adjusting the sending rate of the tunnel according to the first information, the processing module is specifically used to: The tunnel is congested, and the sending rate of the tunnel is adjusted to the first rate; or, The tunnel is congested, and the first information further includes rate information of the data flow set, and when the ratio of the first rate to the rate of the data flow set is not greater than a bandwidth share threshold, the sending rate of the tunnel is adjusted to the product of the sending rate of the tunnel and the bandwidth share threshold; or, The tunnel is congested, the first information further includes rate information of the data flow set, and when the ratio of the first rate to the rate of the data flow set is greater than a bandwidth share threshold, the sending rate of the tunnel is adjusted to the first rate; or, The tunnel is not congested or is relieved of congestion, increasing the sending rate of the tunnel by a rate adjustment value, where the rate adjustment value is a preset value or a rate of a second data flow with a priority lower than a second priority; The first rate is the sum of the rates of data flows in the data flow set whose priorities are not lower than the second priority.
7. The device according to claim 6, characterized in that The processing module adjusts the sending rate of the tunnel according to the first information, specifically for: The sending rate of a first data flow carried in the tunnel is adjusted, where the first data flow is a data flow in the data flow set whose priority is lower than the first priority.
8. The device according to claim 6 or 7, characterized in that The communication module is also used for: receiving second information from the receiving device, where the second information includes network status information of the tunnel, where the network status information includes at least one of latency, jitter, and packet loss information; The processing module is further configured to determine whether congestion occurs or congestion is relieved in the tunnel according to the second information.
9. The device according to claim 6 or 7, characterized in that The communication module is also used for: The third information is received from the receiving device, where the third information is used to request the data sending apparatus to adjust the sending rate.
10. The device according to claim 9, characterized in that The third information also includes a second rate or an adjustment ratio, and the adjusted sending rate does not exceed the second rate, or does not exceed the product of the sending rate and the adjustment ratio.
11. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein the computer program includes program instructions, and when the program instructions are executed by a computer, the computer executes the method according to any one of claims 1 to 5.
12. A computer program product, characterized in that The computer program product stores a computer program, wherein the computer program includes program instructions, and when the program instructions are executed by a computer, the computer is caused to execute the method according to any one of claims 1 to 5.
Citation Information
Patent Citations
Network bandwidth self-adaptive QOS (quality of service) transmission method and system and terminal device
CN102231898A
Method for video transmission queue scheduling based on approximate time delay
CN103248965A
Dynamic priority safeguard method for application network bandwidth based on Storm real-time flow computing framework
CN104639466A
Bandwidth resource optimization configuration method based on decoding priority in congestion environment
CN108737861A
Controlling Data Rates of Data Flows Based on Information Indicating Congestion
US20150334024A1
