CN112737971B - Data processing method, device, storage medium and network equipment - Google Patents

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

Info

Publication number
CN112737971B
CN112737971B CN201911030396.3A CN201911030396A CN112737971B CN 112737971 B CN112737971 B CN 112737971B CN 201911030396 A CN201911030396 A CN 201911030396A CN 112737971 B CN112737971 B CN 112737971B
Authority
CN
China
Prior art keywords
data
target network
speed
data transmission
network
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201911030396.3A
Other languages
Chinese (zh)
Other versions
CN112737971A (en
Inventor
肖建军
刘泓昊
韩瑞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201911030396.3A priority Critical patent/CN112737971B/en
Publication of CN112737971A publication Critical patent/CN112737971A/en
Application granted granted Critical
Publication of CN112737971B publication Critical patent/CN112737971B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/26Flow control; Congestion control using explicit feedback to the source, e.g. choke packets
    • H04L47/263Rate modification at the source after receiving feedback
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/25Flow control; Congestion control with rate being modified by the source upon detecting a change of network conditions
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/50Reducing energy consumption in communication networks in wire-line communication networks, e.g. low power modes or reduced link rate

Abstract

The embodiment of the invention discloses a data processing method, a device, a storage medium and network equipment, wherein the method comprises the following steps: and in the process that the first equipment sends data to the second equipment through the target network, acquiring the data blocking quantity of the target network, determining the data transmission state of the target network according to the data blocking quantity, if the target network is in a congestion state, acquiring the data transmission speed of the target network, and adjusting the speed of sending data from the first equipment to the second equipment according to the data transmission speed of the target network. The embodiment of the invention can realize congestion control on the network and improve the efficiency of data transmission.

Description

Data processing method, device, storage medium and network equipment
Technical Field
The present invention relates to the field of internet technologies, and in particular, to a data processing method, a data processing apparatus, a computer storage medium, and a network device.
Background
Communication networks refer to the physical connection of individual devices, enabling person-to-person, person-to-computer, and the network for information exchange between computers can achieve the purposes of resource sharing and communication. In the process of information exchange between computers, the communication network is easily in a congestion state due to the influence of external interference or self performance change. Once the communication network is in a congestion state, information is lost or information received by a receiving end is abnormal, so how to congestion control the communication network is a current urgent problem to be solved.
Disclosure of Invention
The technical problem to be solved by the embodiment of the invention is to provide a data processing method, a device, a storage medium and network equipment, which can realize congestion control on a network and improve the efficiency of data transmission.
In one aspect, an embodiment of the present invention provides a data processing method, including:
acquiring data blocking amount of a target network in the process that a first device sends data to a second device through the target network, wherein the data blocking amount comprises data amount corresponding to data to be forwarded to the second device in a transmission layer of the target network and data amount corresponding to data cached in an application layer of the target network;
determining the data transmission state of the target network according to the data blocking quantity;
if the target network is in a congestion state, acquiring the data transmission speed of the target network;
and adjusting the speed of the first equipment for sending data to the second equipment according to the data transmission speed of the target network.
In one aspect, an embodiment of the present invention provides a data processing apparatus, including:
the device comprises an acquisition unit, a data transmission unit and a control unit, wherein the acquisition unit is used for acquiring the data blocking amount of a target network in the process that a first device sends data to a second device through the target network, wherein the data blocking amount comprises the data amount corresponding to data to be forwarded to the second device in a transmission layer of the target network and the data amount corresponding to data cached in an application layer of the target network;
a determining unit, configured to determine a data transmission state of the target network according to the data blocking amount;
the obtaining unit is further configured to obtain a data transmission speed of the target network if the target network is in a congestion state;
and the adjusting unit is also used for adjusting the speed of the first equipment for sending the data to the second equipment according to the data transmission speed of the target network.
In yet another aspect, an embodiment of the present invention provides a network device, including an input device and an output device, further including:
a processor adapted to implement one or more instructions; the method comprises the steps of,
a computer storage medium having a program code embodied therein, the computer storage medium stores one or more instructions, the one or more instructions are adapted to be loaded by the processor and perform the steps of:
in the process that the first equipment sends data to the second equipment through the target network, the data blocking amount of the target network is obtained, the data blocking amount comprises data amount corresponding to data to be forwarded to the second device in a transmission layer of the target network and data amount corresponding to data cached by an application layer of the target network;
determining the data transmission state of the target network according to the data blocking quantity;
if the target network is in a congestion state, acquiring the data transmission speed of the target network;
and adjusting the speed of the first equipment for sending data to the second equipment according to the data transmission speed of the target network.
In yet another aspect, embodiments of the present invention provide a computer storage medium storing one or more instructions adapted to be loaded by a processor and to perform the steps of:
acquiring data blocking amount of a target network in the process that a first device sends data to a second device through the target network, wherein the data blocking amount comprises data amount corresponding to data to be forwarded to the second device in a transmission layer of the target network and data amount corresponding to data cached in an application layer of the target network;
determining the data transmission state of the target network according to the data blocking quantity;
if the target network is in a congestion state, acquiring the data transmission speed of the target network;
and adjusting the speed of the first equipment for sending data to the second equipment according to the data transmission speed of the target network.
In the embodiment of the invention, the data transmission state of the target network can be determined according to the data blocking amount of the target network, namely whether the target network is in a congestion state can be verified through the data blocking amount of the target network, and whether the target network is in the congestion state does not need to be verified according to the receiving time of the data, so that the problem of the blocking of the target network can be rapidly discovered; when the target network is in a congestion state, the speed of sending data from the first device to the second device is adjusted through the data transmission speed of the target network, so that the target network can be prevented from being in the congestion state for a long time, the target network can be quickly restored to a normal state, the communication service in the target network is ensured to be restored to be normal, and the user experience is improved.
Drawings
In order to more clearly illustrate the embodiments of the invention or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic diagram of a data processing system according to an example of the present invention;
FIG. 2 is a schematic flow chart of data exchange according to an embodiment of the present invention;
FIG. 3 is a schematic flow chart of a data processing method according to an embodiment of the present invention;
FIG. 4 is a flowchart of another data processing method according to an embodiment of the present invention;
FIG. 5 is a schematic diagram of a data processing apparatus according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a network device according to an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The network in a congestion state may also be referred to as a network having a stuck state, which specifically means that the amount of data to be transmitted in the communication network is too large, so that the communication network cannot timely transmit data, thereby reducing the data transmission performance of the communication network and even causing interruption of communication service in the communication network. In order to avoid congestion status of a communication network, an embodiment of the present invention provides a congestion control scheme, and first, a data processing system implementing the congestion control scheme is introduced, where the data processing system includes at least one first device, at least one second device, and a target network, as shown in fig. 1.
The first device and the second device may refer to a receiving end of data, or a sending end of data, that is, the first device and the second device may be both used for sending data or for receiving data. For example, when a first device transmits data to a second device, the first device may be referred to as a transmitting end of the data and the second device may be referred to as a receiving end of the data. Similarly, when the second device transmits data to the first device, the second device may be referred to as a transmitting end of the data, and the first device may be referred to as a receiving end of the data. Specifically, the first device and the second device may each refer to a smart phone, a tablet computer, a portable personal computer, a smart watch, a bracelet, a smart television, and a server.
The target network may be a network for exchanging data between the first device and the second device, and the target network may include network devices for forwarding data exchanged between the first device and the second device, that is, the first device may send data to the second device through the target network; for example, the first device may send the first data to the target network, which forwards the first data to the second device, where the first data may be any data that the first device needs to send to the second device. Similarly, the second device may send data to the first device via the target network; for example, the second device may send second data to the target network, which is forwarded by the target network to the first device, where the second data may be any data that the second device needs to send to the first device. The network devices may include, but are not limited to: gateway devices, routers, switches, base stations, etc. The first data or the second data may refer to audio-visual data (e.g., video conference data, video live data), image data, game application data, and the like. The target network may refer to a wireless network or a wired network, which may include a mobile data network or a wireless fidelity (Wireless Fidelity, wiFi) network. In one embodiment, taking an example that the first device transmits the first data to the second device through the target network, a process of exchanging data between the first device and the second device is described, and as shown in fig. 2, the process of exchanging data includes the following steps s1 to s5.
s1, the first device encodes the first data to be transmitted to obtain encoded data.
s2, the first device generates a data forwarding request, wherein the data forwarding request comprises the encoded data and attribute information. The attribute information includes an identification of the first device, an identification of the second device, a data transmission time, and the like, and the identification may refer to an IP address, a telephone number, a serial number, or the like of the device.
And s3, the first equipment sends the data forwarding request to the target network.
In step s1-s3, in order to improve the data transmission security of the target network and save the data transmission resources, the first device may use a preset encoding algorithm to encode the first data to be sent, so as to obtain encoded data. The preset encoding algorithm may refer to an encoding algorithm agreed between the first device and the second device, and the preset encoding algorithm may include, but is not limited to: adaptive differential pulse code modulation (Adaptive Differential Pulse Code Modulation, ADPCM), pulse code modulation (Pulse Code Modulation, PCM), base64 (an encoding algorithm), and the like. Further, the first device may generate a data forwarding request and send the data forwarding request to the second device.
And s4, the target network sends the encoded data to the second device. Specifically, the target network may receive the data forwarding request, query a path for sending the encoded data to the second device according to the identifier of the second device included in the data forwarding request, and send the encoded data to the second device according to the path.
And s5, the second equipment decodes the encoded data to obtain first data. Specifically, the second device may receive the encoded data from the target network, and decode the encoded data according to a preset decoding algorithm to obtain the first data. The preset decoding algorithm may refer to a decoding algorithm agreed between the first device and the second device, and the preset decoding algorithm may be a decoding algorithm corresponding to the above-mentioned preset encoding algorithm.
The steps s1 to s5 show a basic flow of data exchange, in which, in order to avoid that the target network is in a congestion state, the embodiment of the present invention provides a congestion control scheme, which specifically includes the following steps (1) - (4). (1) And when the first device sends data through the target network, acquiring the blocking data quantity in the target network, wherein the blocking service quantity can be the data quantity corresponding to the data waiting to be sent to the second device by the target network. (2) And determining the data transmission state of the target network according to the blocking data quantity, wherein the data transmission state comprises a congestion state, a saturated state or an unsaturated state and the like. The congestion state means that the target network has excessive data quantity waiting to be forwarded to the second device, and the target network cannot forward the data sent by the first device in time; the saturation state means that the target network can just forward the data sent by the first device in time, and the non-saturation state means that the target network can forward the data sent by the first device in time, and the target network can also forward more data. (3) When the target network is in a congestion state, the data transmission speed of the target network can be acquired. (4) And adjusting the speed of the first device sending the data to the second device according to the data transmission speed. The congestion control method can quickly determine whether the target network is in a congestion state according to the data blocking amount in the target network, and when the target network is in the congestion state, the speed of sending data to the second device by the first device is adjusted through the data transmission speed of the target network, so that the target network can be prevented from being in the congestion state for a long time, the target network can be quickly restored to a normal state, the communication service in the target network is ensured to be restored to be normal, and the user experience is improved.
Based on the above description of the data processing system, please refer to fig. 3, fig. 3 shows a data processing method according to an embodiment of the present invention, where the method is applied to the network device in fig. 1, and the method specifically includes the following steps S101 to S104.
S101, in the process that the first device sends data to the second device through the target network, the amount of data blocking of the target network is obtained, the data blocking amount includes an amount of data to be forwarded to the second device in a transport layer of the target network and an amount of data buffered by an application layer of the target network.
When the first device needs to send data to the second device, the first device detects an available network, connects to the available network, and determines the available network as a target network. The usable network herein may refer to a network that can be used for transmitting data, wherein when the number of usable networks is plural, a network with the best communication quality may be regarded as a target communication network. In the process that the first device sends data to the second device through the target network, in order to avoid that the target network is in a congestion state, the network device may acquire the data blocking amount of the target network. The data blocking amount includes the amount of data to be forwarded to the second device in the transport layer of the target network, and the amount of data buffered in the application layer of the target network, that is, the data blocking amount may be the sum of the amount of data blocking in the transport layer of the target network (that is, the amount of data to be forwarded to the second device in the transport layer of the target network) and the amount of data buffered in the application layer of the target network, that is, the amount of data blocking is the amount of data corresponding to the data waiting for the target network to forward to the second device in the data sent by the first device.
S102, determining the data transmission state of the target network according to the data blocking quantity.
The more the data blocking amount of the target network is, the more the data amount of the target network needs to be forwarded is indicated, namely the probability that the target network is in a congestion state is relatively high; the smaller the data blocking amount of the target network, the smaller the data amount which the target network needs to forward, i.e. the smaller the probability that the target network is in a congestion state. Thus, the network device may determine the data transmission status of the target network based on the data blocking amount, where the data transmission status includes congestion status, saturation status, non-saturation status.
And S103, if the target network is in a congestion state, acquiring the data transmission speed of the target network.
If the target network is in a congestion state, the target network indicates that there is an excessive data volume to be forwarded in the target network, and if the target network is in the congestion state for a long time, the communication service in the target network is easily interrupted. Thus, the network device may obtain the data transmission speed of the target network, where the data transmission speed of the target network may be determined according to the historical data transmission speed of the target network or according to the real-time data transmission speed of the target network.
S104, adjusting the speed of the first equipment for sending data to the second equipment according to the data transmission speed of the target network.
The network device may adjust the speed of the first device sending data to the second device according to the data transmission speed of the target network, i.e. may reduce the speed of the first device sending data to the second device according to the data transmission speed of the target network. Therefore, the data volume sent by the first equipment to the target network can be reduced, the data blocking volume of the target data network is further reduced, and the target network can be quickly restored to a normal state.
In the embodiment of the invention, the data transmission state of the target network can be determined according to the data blocking amount of the target network, namely whether the target network is in a congestion state can be verified through the data blocking amount of the target network, and whether the target network is in the congestion state does not need to be verified according to the receiving time of the data, so that the problem of the blocking of the target network can be rapidly discovered; when the target network is in a congestion state, the speed of sending data from the first device to the second device is adjusted through the data transmission speed of the target network, so that the target network can be prevented from being in the congestion state for a long time, the target network can be quickly restored to a normal state, the communication service in the target network is ensured to be restored to be normal, and the user experience is improved.
In one embodiment, step S102 may include the following steps S11-S12.
And s11, determining the data transmission delay of the target network in a preset time period according to the data blocking quantity.
And s12, if the data transmission delay of the target network in the preset time period is greater than a preset delay threshold, determining that the target network is in a congestion state.
In steps s11 to s12, in order to improve accuracy of determining the data transmission state of the target network, the network device may determine, according to the data blocking amount, a data transmission delay of the target network in a preset time period, where the data transmission delay is smaller, which indicates that the data transmission speed of the target network is faster, and that the target network has no problem of blocking; the data transmission delay is larger, which indicates that the data transmission speed of the target network is lower, and the target network has the problem of blocking. Therefore, if the data transmission delay of the target network in the preset time period is greater than the preset delay threshold, determining that the target network is in a congestion state.
In one embodiment, step s11 may include the following steps s 21-s 22.
s21, obtaining a first encoding speed of the first device in the preset time period and a data blocking amount of the target network in the preset time period.
s22, determining the data transmission delay of the target network according to the quotient of the data blocking amount and the first coding speed.
In steps s21 to s22, the network device may acquire a first encoding speed of the first device in the preset period of time, and a data blocking amount of the target network in the preset period of time, where the first encoding speed may be sent to the network device by the first device. Optionally, the network device may obtain an average value of the encoding speeds of the first device in a preset time period, determine the average value as the first encoding speed, determine an average data blocking amount of the target network in the preset time period, and determine the average data blocking amount as the data blocking amount of the target network in the preset time period. The preset time period may refer to the first device going to the second device any one of the time periods within which the device transmits data. Further, the network device may calculate a quotient of the data blocking amount and the first encoding speed, and determine the quotient of the data blocking amount and the first encoding speed as the data transmission delay of the target network.
Optionally, step S102 may include: the network device may acquire, using the preset time interval as a sampling unit, first encoding speeds of the first device at a plurality of moments in a preset time period, and acquire, using the preset time interval as a sampling unit, data blocking amounts of the target network at the plurality of moments in the preset time period. And determining the quotient of the data blocking quantity at each moment and the first coding speed as the data transmission delay of the target network at the moment, and determining that the target network is in a congestion state when the data transmission delays at a plurality of adjacent moments are all larger than a preset delay threshold.
In one embodiment, step S103 may include the following steps S31-S32.
s31, acquiring the data transmission speed of the target network in a plurality of historical time periods.
And s32, carrying out weighted summation on the data transmission speeds in the plurality of historical time periods to obtain the data transmission speed of the target network.
In steps s31 to s32, since the target network is affected by external interference or its own performance, the fluctuation of the data transmission speed of the target network is relatively large, if the speed of the first device for transmitting data is adjusted according to the current real-time speed of the target network, the congestion state of the target network is likely to occur frequently. Therefore, the network device can acquire the data transmission speed of the target network in a plurality of historical time periods, and the data transmission speeds in the plurality of historical time periods are weighted and summed to obtain the data transmission speed of the target network. The data transmission speed of the target network can be expressed by using formula (1).
Figure BDA0002249988990000081
Wherein AR n For the data transmission speed of the target network, AR k For the data transmission speed of the target network in the kth history period, n represents the number of history periods, x represents the weight coefficient, x e (0, 1), which may refer to a default value of the network device or set by the user.
In one embodiment, step S104 may include steps S41-S42 as follows.
s41, obtaining the decoding speed of the received data by the second device, and a rate of change of the data transmission speed of the target network.
s42, determining the minimum speed value from the data transmission speed and the decoding speed of the target network.
s43, adjusting the speed of the first device sending data to the second device according to the minimum speed value and the change rate.
In steps s41 to s42, the network device may acquire the decoding speed of the received data by the second device and the rate of change of the data transmission speed of the target network. The change rate can be calculated according to the data transmission speed of the target network in a plurality of historical time periods, and the change rate can be used for indicating the change speed of the data transmission speed of the target network data, namely, the larger the change rate is, the faster the change of the data transmission speed of the target network is, namely, the larger the fluctuation of the data transmission speed of the target network is; the smaller the rate of change, the slower the change in the data transmission speed of the target network, i.e., the smaller the fluctuation in the data transmission speed of the target network. The decoding speed of the second device can influence the data quality, namely if the decoding speed of the second device is higher, the data received by the second device can be decoded in time, and the probability of abnormality of the data is lower; if the decoding speed of the second device is slower, the data received by the second device cannot be decoded in time, and the data redundancy has abnormal problems such as jamming or messy codes, namely the probability of the data abnormality is higher. Therefore, the network device can determine a minimum speed value from the data transmission speed and the decoding speed of the target network, and adjust the speed of the first device sending data to the second device according to the minimum speed value and the change rate. Therefore, the target network can be quickly restored, and abnormal problems such as jamming and the like of the data in the second equipment can be avoided. Wherein the minimum speed value may be expressed by formula (2).
SR=min(AR n ,CR n ) (2)
Wherein CR in equation (2) n The decoding speed of the second device is the decoding speed of the second device, and the decoding speed of the second device can be reported to the network device by the second device; SR is the minimum speed value.
In this embodiment, step s43 may include the following steps s51 to s52.
s51, calculating a second encoding speed according to the minimum speed value and the change rate.
s52, sending the second coding speed to the first device, so that the first device adjusts the coding speed of the first device according to the second coding speed to adjust the speed of the first device sending data to the second device.
In steps s51 to s52, since the data transmission speed of the target network stores the volatility, the network device may calculate the second encoding speed according to the minimum speed value and the change rate, and send the second encoding speed to the first device, so that the first device encodes the data to be transmitted at the second encoding speed, that is, the second device reduces the encoding speed of the data to be transmitted, so that the speed of the first device transmitting the data to the second device can be reduced. Wherein the second encoding speed can be expressed by formula (3).
RR=SR·(1-μ) (3)
Wherein RR in the formula (3) is the second encoding speed, and μ represents the rate of change of the data transmission speed of the target network.
In one embodiment, after step S104, the method may further include: if the target network is restored to a normal state, the first coding speed is sent to the first device, so that the first device adjusts the coding speed of the first device according to the first coding speed, and the speed of the first device sending data to the second device is adjusted.
The first encoding speed is the encoding speed of the first device when the target network is in a normal state, the second encoding speed is the encoding speed of the first device when the target network is in a congestion state, and the first encoding speed is greater than the second encoding speed, wherein the normal state can refer to a saturated state or a non-saturated state. If the target network is restored to a normal state, the data blocking amount in the target network is less or zero, and the first device can be controlled to encode the data to be transmitted at a higher encoding speed, so that the data transmission efficiency is improved. That is, the network device may send the first encoding speed to the first device, so that the first device encodes the data to be sent according to the first encoding speed, so as to adjust the speed at which the first device sends the data to the second device.
The data processing method provided by the embodiment of the invention can be applied to scenes such as audio and video data (such as video conference data and video live broadcast data), image data and game application data. The following describes in detail a data processing method in the embodiment of the present invention, taking an example that a first device sends streaming media data to a second device. The streaming media data may refer to data transmitted in a target network in a streaming manner, and the streaming manner may specifically refer to that the first device collects the streaming media data and issues the collected streaming media data to the target network, the target network sends the collected streaming media data to the second device in real time, and the second device can know the data collected by the first device in real time by displaying the streaming media data. Streaming media data may specifically refer to video live data, such as event live data, teaching live data, game live data, and so forth. As shown in fig. 4, the data processing method may include the following steps s61-s63.
s61, the first device may send streaming media data to the second device through the target network. The first device adopts streaming media data, and sends the acquired streaming media data to the target network while acquiring the streaming media data, and the target network forwards the acquired streaming media data to the second device. The specific process of the first device sending the streaming media data to the second device may refer to steps s1 to s5.
And s62, in the process that the first device sends the streaming media data to the second device through the target network, the network device can acquire the data blocking amount in the target network. The data blocking amount is the data amount corresponding to the streaming media data waiting for the target network to forward to the second device in the streaming media data sent by the first device, that is, the data blocking amount is the data amount corresponding to the streaming media data buffered by the application layer of the target network and the data blocking amount of the transmission layer of the target network.
s63, the network device may determine the data transmission status of the target network according to the data blocking amount of the target network. If the data blocking amount of the target network is larger, the fact that a large amount of streaming media data exists in the target network is indicated that the streaming media data is not forwarded in time, and therefore when the data blocking amount of the target network is larger than a preset data amount threshold value, the target network is determined to be in a congestion state. Or determining the data transmission delay of the target network in the preset time period according to the data blocking amount of the target network in the preset time period and the first coding speed of the first device to the streaming media data to be transmitted, and determining that the target network is in a congestion state when the data transmission delay of the target network in the preset time period is larger than a preset delay threshold.
And s64, if the target network is in a congestion state, acquiring the data transmission speed of the target network. The data transmission speed of the target network may be determined based on the transmission speed of the streaming media data by the target network over a plurality of historical time periods.
s65, the network device may send the data transmission speed of the target network to the first device.
And s66, the first equipment reduces the coding speed of the streaming media data to be sent according to the data transmission speed of the target network so as to reduce the speed of sending the streaming media data to the second equipment, thereby reducing the data quantity corresponding to the streaming media data sent to the target network and enabling the target network to quickly recover to a normal state.
An embodiment of the present invention provides a data processing apparatus, which may be disposed in a network device, referring to fig. 5, and the apparatus includes:
the obtaining unit 501 is configured to obtain, in a process that a first device sends data to a second device through a target network, a data blocking amount of the target network, where the data blocking amount includes a data amount corresponding to data to be forwarded to the second device in a transport layer of the target network, and a data amount corresponding to data buffered in an application layer of the target network.
A determining unit 502, configured to determine a data transmission state of the target network according to the data blocking amount.
The obtaining unit 501 is further configured to obtain a data transmission speed of the target network if the target network is in a congestion state.
An adjusting unit 503, configured to adjust a speed at which the first device sends data to the second device according to a data transmission speed of the target network.
Optionally, the determining unit 502 is specifically configured to determine a data transmission delay of the target network in a preset time period according to the data blocking amount; and if the data transmission delay of the target network in the preset time period is greater than a preset delay threshold, determining that the target network is in a congestion state.
Optionally, the determining unit 502 is specifically configured to obtain a first encoding speed of the first device in the preset time period and a data blocking amount of the target network in the preset time period; and determining the data transmission delay of the target network according to the quotient of the data blocking quantity and the first coding speed.
Optionally, the adjusting unit 503 is specifically configured to obtain a decoding speed of the received data by the second device and a rate of change of a data transmission speed of the target network; determining a minimum speed value from the data transmission speed and the decoding speed of the target network; and adjusting the speed of the first equipment for sending data to the second equipment according to the minimum speed value and the change rate.
Optionally, the adjusting unit 503 is specifically configured to calculate a second encoding speed according to the minimum speed value and the rate of change; and sending the second coding speed to the first device, so that the first device adjusts the coding speed of the first device according to the second coding speed to adjust the speed of the first device for sending data to the second device.
The apparatus further comprises:
and a sending unit 504, configured to send the first encoding speed to the first device if the target network returns to a normal state, so that the first device adjusts the encoding speed of the first device according to the first encoding speed, so as to adjust the speed of sending data from the first device to the second device.
Optionally, the acquiring unit 501 is configured to acquire data transmission speeds of the target network in a plurality of historical time periods; and carrying out weighted summation on the data transmission speeds in the plurality of historical time periods to obtain the data transmission speed of the target network.
In the embodiment of the invention, the data transmission state of the target network can be determined according to the data blocking amount of the target network, namely whether the target network is in a congestion state can be verified through the data blocking amount of the target network, and whether the target network is in the congestion state does not need to be verified according to the receiving time of the data, so that the problem of the blocking of the target network can be rapidly discovered; when the target network is in a congestion state, the speed of sending data from the first device to the second device is adjusted through the data transmission speed of the target network, so that the target network can be prevented from being in the congestion state for a long time, the target network can be quickly restored to a normal state, the communication service in the target network is ensured to be restored to be normal, and the user experience is improved.
The embodiment of the invention provides a network device, please refer to fig. 6. The network device includes: the processor 151, the user interface 152, the network interface 154, and the storage device 155 are connected via the bus 153.
A user interface 152 for enabling human-machine interaction, which may include a display screen or keyboard, etc. A network interface 154 for communication connection with external devices. A storage device 155 is coupled to the processor 151 for storing various software programs and/or sets of instructions. In particular implementations, storage 155 may include high-speed random access memory, and may also include non-volatile memory, such as one or more disk storage devices, flash memory devices, or other non-volatile solid state storage devices. The storage 155 may store an operating system (hereinafter referred to as a system), such as ANDROID, IOS, WINDOWS, or an embedded operating system, such as LINUX. The storage 155 may also store a network communication program that may be used to communicate with one or more additional devices, one or more application servers, and one or more network devices. The storage 155 may also store a user interface program that can vividly display the content image of the application program through a graphical operation interface, and receive control operations of the application program from a user through input controls such as menus, dialog boxes, buttons, and the like. The storage 155 may also store video data or the like.
In one embodiment, the storage 155 may be used to store one or more instructions; the processor 151 may be capable of implementing a data processing method when invoking the one or more instructions, specifically, the processor 151 invokes the one or more instructions to perform the following steps:
acquiring data blocking amount of a target network in the process that a first device sends data to a second device through the target network, wherein the data blocking amount comprises data amount corresponding to data to be forwarded to the second device in a transmission layer of the target network and data amount corresponding to data cached in an application layer of the target network;
determining the data transmission state of the target network according to the data blocking quantity;
if the target network is in a congestion state, acquiring the data transmission speed of the target network;
and adjusting the speed of the first equipment for sending data to the second equipment according to the data transmission speed of the target network.
Optionally, the processor invokes an instruction to execute the following steps:
determining the data transmission delay of the target network in a preset time period according to the data blocking quantity;
and if the data transmission delay of the target network in the preset time period is greater than a preset delay threshold, determining that the target network is in a congestion state.
Optionally, the processor invokes an instruction to execute the following steps:
acquiring a first encoding speed of the first device in the preset time period and a data blocking amount of the target network in the preset time period;
and determining the data transmission delay of the target network according to the quotient of the data blocking quantity and the first coding speed.
Optionally, the processor invokes an instruction to execute the following steps:
acquiring the decoding speed of the received data and the change rate of the data transmission speed of the target network by the second equipment;
determining a minimum speed value from the data transmission speed and the decoding speed of the target network;
and adjusting the speed of the first equipment for sending data to the second equipment according to the minimum speed value and the change rate.
Optionally, the processor invokes an instruction to execute the following steps:
calculating a second encoding speed according to the minimum speed value and the change rate;
and sending the second coding speed to the first device, so that the first device adjusts the coding speed of the first device according to the second coding speed to adjust the speed of the first device for sending data to the second device.
Optionally, the processor invokes an instruction to execute the following steps:
and if the target network is restored to a normal state, the first coding speed is sent to the first device, so that the first device adjusts the coding speed of the first device according to the first coding speed, and the speed of the first device sending data to the second device is adjusted.
Optionally, the processor invokes an instruction to execute the following steps:
acquiring data transmission speeds of the target network in a plurality of historical time periods;
and carrying out weighted summation on the data transmission speeds in the plurality of historical time periods to obtain the data transmission speed of the target network.
In the embodiment of the invention, the data transmission state of the target network can be determined according to the data blocking amount of the target network, namely whether the target network is in a congestion state can be verified through the data blocking amount of the target network, and whether the target network is in the congestion state does not need to be verified according to the receiving time of the data, so that the problem of the blocking of the target network can be rapidly discovered; when the target network is in a congestion state, the speed of sending data from the first device to the second device is adjusted through the data transmission speed of the target network, so that the target network can be prevented from being in the congestion state for a long time, the target network can be quickly restored to a normal state, the communication service in the target network is ensured to be restored to be normal, and the user experience is improved.
The embodiment of the present invention further provides a computer readable storage medium, on which a computer program is stored, and the implementation and beneficial effects of the program for solving the problem may be referred to the implementation and beneficial effects of a data processing method described in fig. 3, and the repetition is omitted.
The above disclosure is illustrative only of some embodiments of the invention and is not intended to limit the scope of the invention, which is defined by the claims and their equivalents.

Claims (9)

1. A method of data processing, the method comprising:
acquiring data blocking amount of a target network in the process that a first device sends data to a second device through the target network, wherein the data blocking amount comprises data amount corresponding to data to be forwarded to the second device in a transmission layer of the target network and data amount corresponding to data cached in an application layer of the target network;
determining the data transmission state of the target network according to the data blocking quantity;
if the target network is in a congestion state, acquiring the data transmission speed of the target network;
acquiring the decoding speed of the received data and the change rate of the data transmission speed of the target network by the second equipment;
determining a minimum speed value from the data transmission speed and the decoding speed of the target network;
and adjusting the speed of the first equipment for sending data to the second equipment according to the minimum speed value and the change rate.
2. The method of claim 1, wherein the determining the data transmission status of the target network based on the data blocking amount comprises:
determining the data transmission delay of the target network in a preset time period according to the data blocking quantity;
and if the data transmission delay of the target network in the preset time period is greater than a preset delay threshold, determining that the target network is in a congestion state.
3. The method of claim 2, wherein the determining the data transmission delay of the target network for the preset time period according to the data blocking amount comprises:
acquiring a first encoding speed of the first device in the preset time period and a data blocking amount of the target network in the preset time period;
and determining the data transmission delay of the target network according to the quotient of the data blocking quantity and the first coding speed.
4. The method of claim 3, wherein said adjusting the speed at which the first device sends data to the second device based on the minimum speed value and the rate of change comprises:
calculating a second encoding speed according to the minimum speed value and the change rate;
and sending the second coding speed to the first device, so that the first device adjusts the coding speed of the first device according to the second coding speed to adjust the speed of the first device for sending data to the second device.
5. The method of claim 4, wherein after said adjusting the speed at which the first device sends data to the second device based on the minimum speed value and the rate of change, the method further comprises:
and if the target network is restored to a normal state, the first coding speed is sent to the first device, so that the first device adjusts the coding speed of the first device according to the first coding speed, and the speed of the first device sending data to the second device is adjusted.
6. The method according to any one of claims 1-5, wherein said obtaining a data transmission speed of the target network comprises:
acquiring data transmission speeds of the target network in a plurality of historical time periods;
and carrying out weighted summation on the data transmission speeds in the plurality of historical time periods to obtain the data transmission speed of the target network.
7. A data processing apparatus, the apparatus comprising:
the device comprises an acquisition unit, a data transmission unit and a control unit, wherein the acquisition unit is used for acquiring the data blocking amount of a target network in the process that a first device sends data to a second device through the target network, wherein the data blocking amount comprises the data amount corresponding to data to be forwarded to the second device in a transmission layer of the target network and the data amount corresponding to data cached in an application layer of the target network;
a determining unit, configured to determine a data transmission state of the target network according to the data blocking amount;
the obtaining unit is further configured to obtain a data transmission speed of the target network if the target network is in a congestion state;
the adjusting unit is used for acquiring the decoding speed of the received data and the change rate of the data transmission speed of the target network; determining a minimum speed value from the data transmission speed and the decoding speed of the target network; and adjusting the speed of the first equipment for sending data to the second equipment according to the minimum speed value and the change rate.
8. A network device comprising an input device and an output device, further comprising:
a processor adapted to implement one or more instructions; the method comprises the steps of,
a computer storage medium storing one or more instructions adapted to be loaded by the processor and to perform the method of any one of claims 1-6.
9. A computer storage medium storing computer program instructions which, when executed, implement the method of any one of claims 1-6.
CN201911030396.3A 2019-10-28 2019-10-28 Data processing method, device, storage medium and network equipment Active CN112737971B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911030396.3A CN112737971B (en) 2019-10-28 2019-10-28 Data processing method, device, storage medium and network equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911030396.3A CN112737971B (en) 2019-10-28 2019-10-28 Data processing method, device, storage medium and network equipment

Publications (2)

Publication Number Publication Date
CN112737971A CN112737971A (en) 2021-04-30
CN112737971B true CN112737971B (en) 2023-06-23

Family

ID=75588788

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911030396.3A Active CN112737971B (en) 2019-10-28 2019-10-28 Data processing method, device, storage medium and network equipment

Country Status (1)

Country Link
CN (1) CN112737971B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113518246B (en) * 2021-09-10 2022-02-01 腾讯科技(深圳)有限公司 Data transmission method, data transmission device, computer equipment, storage medium and program product

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103051554A (en) * 2013-01-05 2013-04-17 北京航空航天大学 TCP (transmission control protocol) congestion control method based on throughout change rate and ECN (Explicit Congestion Notification) mechanism
CN109818874A (en) * 2017-11-21 2019-05-28 华为技术有限公司 Data transmission method, equipment and computer storage medium
CN110022268A (en) * 2018-01-09 2019-07-16 腾讯科技(深圳)有限公司 A kind of data transfer control method, device and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050021830A1 (en) * 2001-09-21 2005-01-27 Eduardo Urzaiz Data communications method and system using buffer size to calculate transmission rate for congestion control

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103051554A (en) * 2013-01-05 2013-04-17 北京航空航天大学 TCP (transmission control protocol) congestion control method based on throughout change rate and ECN (Explicit Congestion Notification) mechanism
CN109818874A (en) * 2017-11-21 2019-05-28 华为技术有限公司 Data transmission method, equipment and computer storage medium
CN110022268A (en) * 2018-01-09 2019-07-16 腾讯科技(深圳)有限公司 A kind of data transfer control method, device and storage medium

Also Published As

Publication number Publication date
CN112737971A (en) 2021-04-30

Similar Documents

Publication Publication Date Title
US11349900B2 (en) Voice encoding and sending method and apparatus
US10182022B2 (en) Dynamic jitter buffer size adjustment
Wu et al. Enabling adaptive high-frame-rate video streaming in mobile cloud gaming applications
JP6023368B1 (en) Interactive real-time media transfer protocol
CN111135569A (en) Cloud game processing method and device, storage medium and electronic equipment
CN111628847A (en) Data transmission method and device
CN109600610B (en) Data encoding method, terminal and computer readable storage medium
CN109862377B (en) Video transmission method, device, system and computer readable storage medium
CN109660467B (en) Method and apparatus for controlling flow
JP6147939B1 (en) Transport accelerator for selective use of redundant encoded content data function
CN111786901B (en) Transmission parameter self-adaptive adjustment method and acceleration service system
CN114389959B (en) Network congestion control method, device, electronic equipment and storage medium
CN115484240A (en) Decoding method, decoding device, data transmission method, data transmission device, terminal and server
CN112737971B (en) Data processing method, device, storage medium and network equipment
US20140099040A1 (en) Image processing device and image processing method
EP3560152B1 (en) Determining the bandwidth of a communication link
KR102307447B1 (en) Server, method, and client terminal for http adaptive streaming based on network environment mornitoring
CN112383775A (en) Video data transmission method based on cloud mobile phone
US10666381B2 (en) Dynamically partitioning media streams
JP2022501924A (en) Increasing the video bitrate while maintaining video quality
CN115037416A (en) Data forward error correction processing method, device, electronic equipment and storage medium
KR102123839B1 (en) System and method for adaptive transmitting of text stream data in network environment
Tamizhselvi et al. Adaptive video streaming in mobile cloud computing
CN112468759A (en) Dynamic redundancy
CN104521222A (en) Communication system, server apparatus, server apparatus controlling method and program

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 40042614

Country of ref document: HK

SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant