CN112737971A - 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
CN112737971A
CN112737971A CN201911030396.3A CN201911030396A CN112737971A CN 112737971 A CN112737971 A CN 112737971A CN 201911030396 A CN201911030396 A CN 201911030396A CN 112737971 A CN112737971 A CN 112737971A
Authority
CN
China
Prior art keywords
data
target network
speed
data transmission
equipment
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.)
Granted
Application number
CN201911030396.3A
Other languages
Chinese (zh)
Other versions
CN112737971B (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

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Communication Control (AREA)

Abstract

The embodiment of the invention discloses a data processing method, a data processing device, a storage medium and network equipment, wherein the method comprises the following steps: the method comprises the steps that in the process that a first device sends data to a second device through a target network, the data blocking amount of the target network is obtained, the data transmission state of the target network is determined according to the data blocking amount, if the target network is in the congestion state, the data transmission speed of the target network is obtained, and the speed of sending the data to the second device by the first device is adjusted 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
The communication network is a network for physically connecting each isolated device to realize information exchange between people, people and computers, so as to achieve the purposes of resource sharing and communication. In the process of information exchange between computers, a communication network is easily in a congestion state due to the influence of external interference or performance change of the communication network. Once the communication network is in a congestion state, information may be lost or information received by a receiving end may be abnormal, so how to control the congestion of the communication network is a problem to be solved.
Disclosure of Invention
The technical problem to be solved by the embodiments of the present invention is to provide a data processing method, an apparatus, a storage medium, and a network device, which can implement congestion control on a network and improve data transmission efficiency.
In one aspect, an embodiment of the present invention provides a data processing method, where the method includes:
in the process that a first device sends data to a second device through a target network, acquiring a data blocking amount of the target network, wherein the data blocking amount comprises a data amount corresponding to the data to be forwarded to the second device in a transmission layer of the target network and a data amount corresponding to the data cached by an application layer of the target network;
determining the data transmission state of the target network according to the data blocking amount;
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 to the second equipment by the first 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, where the apparatus includes:
an obtaining unit, configured to obtain, in a process in which 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 cached by 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 acquiring unit is further configured to acquire a data transmission speed of the target network if the target network is in a congestion state;
and the adjusting unit is further used for adjusting the speed of sending data to the second device by the first device according to the data transmission speed of the target network.
In 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; and the number of the first and second groups,
a computer storage medium storing one or more instructions adapted to be loaded by the processor and to perform the steps of:
in the process that a first device sends data to a second device through a target network, acquiring a data blocking amount of the target network, wherein the data blocking amount comprises a data amount corresponding to the data to be forwarded to the second device in a transmission layer of the target network and a data amount corresponding to the data cached by an application layer of the target network;
determining the data transmission state of the target network according to the data blocking amount;
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 to the second equipment by the first equipment according to the data transmission speed of the target network.
In yet another aspect, an embodiment of the present invention provides a computer storage medium storing one or more instructions adapted to be loaded by a processor and perform the following steps:
in the process that a first device sends data to a second device through a target network, acquiring a data blocking amount of the target network, wherein the data blocking amount comprises a data amount corresponding to the data to be forwarded to the second device in a transmission layer of the target network and a data amount corresponding to the data cached by an application layer of the target network;
determining the data transmission state of the target network according to the data blocking amount;
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 to the second equipment by the first 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 the congestion state can be verified through the data blocking amount of the target network, whether the target network is in the congestion state is not required to be verified according to the data receiving time, and the blocking problem of the target network can be quickly found; 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 a normal state, and the user experience is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a block diagram of a data processing system according to an embodiment of the present invention;
FIG. 2 is a flow chart of data exchange provided by an embodiment of the present invention;
FIG. 3 is a flow chart of a data processing method according to an embodiment of the present invention;
FIG. 4 is a flow chart illustrating another data processing method according to an embodiment of the present invention;
FIG. 5 is a schematic structural 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 technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The network being in a congested state may also be referred to as a network being stuck, and specifically means that the amount of data to be transmitted in the communication network is too much, so that the communication network cannot transmit data in time, thereby reducing the data transmission performance of the communication network, and even causing a communication service interruption in the communication network. To avoid congestion in a communication network, an embodiment of the present invention provides a congestion control scheme, and first introduces a data processing system implementing the scheme, as shown in fig. 1, where the data processing system includes at least one first device, at least one second device, and a target network.
The first device and the second device may refer to a receiving end of data, or a transmitting end of data, that is, both the first device and the second device may be configured to transmit data or receive 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 sends data to the first device, the second device may be referred to as a sending 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 can be 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 refer to a network for exchanging data between the first device and the second device, and the target network may include network devices, where the network devices are configured to forward 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, a first device may send first data to a target network, which forwards the first data to a 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 through the target network; for example, the second device may send the second data to the target network, which forwards the second data to the first device, where the second data may be any data that the second device needs to send to the first device. Network devices may specifically include, but are not limited to: gateway devices, routers, switches, base stations, etc. The first data or the second data may refer to audio-video data (e.g., video conferencing data, video live data), image data, game application data, and so forth. The target network may refer to a Wireless network or a wired network, and the Wireless network may include a mobile data network or a Wireless Fidelity (WiFi) network. In an embodiment, a process of data exchange between a first device and a second device is described by taking an example that the first device sends first data to the second device through a target network, and as shown in fig. 2, the process of data exchange includes the following steps s1 to s 5.
s1, the first device encodes the first data to be sent to obtain encoded data.
s2, the first device generates a data forwarding request, the data forwarding request including the encoded data and the attribute information. The attribute information includes an identifier of the first device, an identifier of the second device, a data transmission time, and the like, where the identifier may refer to an IP address, a telephone number, a serial number, or the like of the device.
s3, the first device sends the data forwarding request to the target network.
In steps s1-s3, to improve the data transmission security of the target network and save data transmission resources, the first device may encode the first data to be sent by using a preset encoding algorithm, 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 (ADPCM), 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.
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 an identifier of the second device included in the data forwarding request, and send the encoded data to the second device according to the path.
s5, the second device decodes the encoded data to obtain the first data. Specifically, the second device may receive 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 preset encoding algorithm.
The above steps s1 to s5 show a basic flow of data exchange, and in the flow, in order to avoid that the target network is in a congested state, an embodiment of the present invention provides a congestion control scheme, which specifically includes the following steps (1) to (4). (1) When the first device sends data through the target network, the amount of blocking data in the target network may be obtained, where the amount of blocking traffic may refer to the amount of data corresponding to the data that the target network waits to send to the second device. (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 saturation state or a non-saturation state and the like. The congestion state refers to that the target network has too much data volume waiting for being forwarded to the second device, and the target network cannot forward the data sent by the first device in time; the saturated state means that the target network can just forward the data sent by the first device in time, and the unsaturated state means that the target network can forward the data sent by the first device in time, and the target network can forward more data. (3) When the target network is in a congested state, the data transmission speed of the target network may be acquired. (4) And adjusting the speed of the first equipment for sending data to the second equipment according to the data transmission speed. The congestion control method can rapidly determine whether the target network is in the congestion state according to the data congestion amount in the target network, and when the target network is in the congestion state, the speed of sending data to the second equipment by the first equipment 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 rapidly recovered to the normal state, the communication service in the target network can be ensured to be recovered to the normal state, and the user experience is improved.
Based on the above description of the data processing system, please refer to fig. 3, fig. 3 is a data processing method according to an embodiment of the present invention, which 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 a first device sends data to a second device through a target network, obtaining the data blocking amount of the target network, wherein the data blocking amount comprises the data amount to be forwarded to the second device in a transmission layer of the target network and the data amount cached 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 and connects to the available network, and the available network is determined as a target network. The available network herein may refer to a network that can be used to transmit data, wherein when the number of available networks is plural, a network with the best communication quality may be taken 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 obtain a data congestion amount of the target network. Here, the data blocking amount includes a data amount to be forwarded to the second device in the transport layer of the target network, and a data amount buffered by the application layer of the target network, that is, the data blocking amount may be a sum of the data blocking amount of the transport layer of the target network (that is, the data amount to be forwarded to the second device in the transport layer of the target network) and the data buffering amount of the application layer of the target network, that is, the data blocking amount is a data amount corresponding to data to be forwarded to the second device by the target network in the data sent by the first device.
And S102, determining the data transmission state of the target network according to the data blocking amount.
The more the data blocking amount of the target network is, the more the data amount which needs to be forwarded by the target network is, namely the probability that the target network is in a congestion state is higher; the smaller the data blocking amount of the target network is, the smaller the data amount that the target network needs to forward is, i.e. the probability that the target network is in a congestion state is smaller. Therefore, the network device may determine the data transmission status of the target network according to the data blocking amount, where the data transmission status includes a congestion status, a saturation status, and a non-saturation status.
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 the congestion state, it indicates that there is an excessive amount of data to be forwarded in the target network, and if the target network is in the congestion state for a long time, it is easy to cause interruption of the communication service in the target network. Accordingly, 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.
And S104, adjusting the speed of the first device for sending data to the second device according to the data transmission speed of the target network.
The network device may adjust the speed at which the first device sends data to the second device according to the data transmission speed of the target network, that is, the speed at which the first device sends data to the second device may be reduced according to the data transmission speed of the target network. Therefore, the data volume sent to the target network by the first equipment can be reduced, the data blocking volume of the target data network is further reduced, and the target network can be quickly recovered 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 the congestion state can be verified through the data blocking amount of the target network, whether the target network is in the congestion state is not required to be verified according to the data receiving time, and the blocking problem of the target network can be quickly found; 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 a normal state, and the user experience is improved.
In one embodiment, step S102 may include steps S11-S12 as follows.
And s11, determining the data transmission delay of the target network in a preset time period according to the data blocking amount.
s12, 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 the congestion state.
In steps s11 to s12, in order to improve the accuracy of determining the data transmission state of the target network, the network device may determine, according to the data congestion amount, a data transmission delay of the target network within a preset time period, where the data transmission delay is small, which indicates that the data transmission speed of the target network is fast and the target network is not stuck; the data transmission delay is large, which indicates that the data transmission speed of the target network is low and the target network has a jamming problem. Therefore, if the data transmission delay of the target network in the preset time period is greater than the preset delay threshold, it is determined that the target network is in the congestion state.
In one embodiment, step s11 may include steps s 21-s 22 as follows.
s21, obtaining the first encoding speed of the first device in the preset time period, and the 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 s 21-s 22, the network device may 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, where the first encoding speed may be transmitted from the first device to the network device. Optionally, the network device may obtain an average value of the coding speed of the first device in a preset time period, determine the average value as the first coding 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 any time period within a time period in which the first device transmits data to the second device. 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 obtain, by using a preset time interval as a sampling unit, first encoding speeds of the first device at multiple times within a preset time period, and obtain, by using the preset time interval as the sampling unit, data congestion amounts of the target network at the multiple times within the preset time period. And determining the quotient of the data blocking amount and the first coding speed at each moment 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 value.
In one embodiment, step S103 may include steps S31-S32 as follows.
And 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 s 31-s 32, since the target network is affected by external interference or its performance, the fluctuation of the data transmission speed of the target network is relatively large, and if the speed of the first device sending data is adjusted according to the current real-time speed of the target network, the target network is likely to be in a congestion state frequently. Therefore, the network device may obtain the data transmission speeds of the target network in a plurality of historical time periods, and perform weighted summation on the data transmission speeds in the plurality of historical time periods to obtain the data transmission speed of the target network. Wherein, the data transmission speed of the target network can be expressed by formula (1).
Figure BDA0002249988990000081
Wherein, ARnData transmission speed, AR, for the target networkkThe data transmission speed of the target network in the kth historical time period is shown, n represents the number of the historical time periods, x represents a weight coefficient, x belongs to (0, 1), and the weight coefficient can refer to a default value of the network equipment or can be set by a user.
In one embodiment, step S104 may include steps S41-S42 as follows.
s41, obtaining the decoding speed of the second device to the received data and the change rate 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 s 41-s 42, the network device can obtain the decoding speed of the second device for the received data and the change rate 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 change rate is larger, the change speed of the data transmission speed of the target network is faster, namely, the data transmission speed fluctuation of the target network is larger; the smaller the change rate is, the slower the change of the data transmission speed of the target network is, i.e., the data transmission speed of the target network has less fluctuation. The decoding speed of the second device affects the data quality, that is, if the decoding speed of the second device is high, the data received by the second device can be decoded in time, and the probability of the data being abnormal is low; if the decoding speed of the second device is low, the data received by the second device cannot be decoded in time, and the data redundancy has abnormal problems such as jamming or code messing, that is, the probability of the data abnormality is high. Therefore, the network device may determine a minimum speed value from the data transmission speed and the decoding speed of the target network, and adjust the speed at which the first device sends data to the second device according to the minimum speed value and the change rate. Therefore, the target network can be recovered to be normal quickly, and abnormal problems such as blocking and the like of data in the second equipment can be avoided. Wherein the minimum speed value can be expressed by formula (2).
SR=min(ARn,CRn) (2)
Wherein, CR in the formula (2)nThe decoding speed of the second device may be a decoding speed reported by the second device to the network device; SR is the minimum velocity value.
In this embodiment, step s43 may include steps s 51-s 52 as follows.
s51, calculating a second encoding speed according to the minimum speed value and the change rate.
s52, sending the second encoding speed to the first device, and enabling the first device to adjust the encoding speed of the first device according to the second encoding speed, so as to adjust the speed of sending data to the second device by the first device.
In steps s51 to s52, since the data transmission speed of the target network stores the volatility, the network device may calculate a second encoding speed according to the minimum speed value and the change rate, and transmit 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, so that the second device reduces the encoding speed of the data to be transmitted, which can reduce the speed of the data transmitted from the first device to the second device. Wherein the second encoding speed can be expressed by formula (3).
RR=SR·(1-μ) (3)
Where RR in the formula (3) is the second coding 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: and if the target network is recovered to the normal state, sending the first coding speed to the first equipment, so that the first equipment adjusts the coding speed of the first equipment according to the first coding speed to adjust the speed of sending data to the second equipment by the first equipment.
The first coding speed is the coding speed of the first device when the target network is in a normal state, the second coding speed is the coding speed of the first device when the target network is in a congestion state, the first coding speed is greater than the second coding speed, and the normal state can be a saturated state or an unsaturated state. If the target network returns to the normal state, indicating that the data blocking amount in the target network is less or zero, the first device may be controlled to encode the data to be transmitted at a higher encoding speed, so as to improve the transmission efficiency of the data. That is, the network device may send the first coding speed to the first device, so that the first device codes the data to be sent according to the first coding 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 of transmitting audio and video data (such as video conference data and video live broadcast data), image data, game application data and the like. The following describes the data processing method in the embodiment of the present invention in detail by taking an example of sending streaming media data from a first device to a second device. The streaming media data may be data transmitted in a target network by using a streaming transmission method, and the streaming transmission method may specifically be that the first device issues the acquired streaming media data to the target network while acquiring the streaming media data, and the target network sends the acquired streaming media data to the second device in real time, and the second device may display the streaming media data to know the data acquired by the first device in real time. The streaming media data may specifically refer to video live broadcast data, such as event live broadcast data, teaching live broadcast data, game live broadcast data, and the like. As shown in fig. 4, the data processing method may include the following steps s61-s 63.
s61, the first device may send the streaming media data to the second device through the target network. The first device adopts the streaming media data, and sends the collected streaming media data to the target network while collecting the streaming media data, and the target network forwards the collected 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 the above steps s1 to s 5.
s62, in the process of the first device sending the streaming media data to the second device through the target network, the network device may obtain the data blocking amount in the target network. Here, the data blocking amount is a data amount corresponding to streaming media data, which is 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 a data amount corresponding to the streaming media data cached 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 based on the amount of data congestion of the target network. If the data blocking amount of the target network is large, it indicates that a large amount of streaming media data in the target network is not forwarded in time, and therefore, when the data blocking amount of the target network is larger than a preset data amount threshold, it is determined that the target network is in a congestion state. Or, determining the data transmission delay of the target network in a 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 streaming media data to be sent by the first device, 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 greater than a preset delay threshold.
s64, if the target network is in the 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.
s66, the first device reduces the encoding 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 device, thereby reducing the data volume corresponding to the streaming media data sent to the target network, so that the target network can be quickly restored to a normal state.
An embodiment of the present invention provides a data processing apparatus, which can be disposed in a network device, please refer to fig. 5, and the apparatus includes:
an obtaining unit 501, 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 cached by 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 the data transmission speed of the target network.
Optionally, the determining unit 502 is specifically configured to determine, according to the data blocking amount, a data transmission delay of the target network within a preset time period; 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 change rate 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 change rate; and sending the second coding speed to the first equipment, so that the first equipment adjusts the coding speed of the first equipment according to the second coding speed to adjust the speed of sending data to the second equipment by the first equipment.
The device further comprises:
a sending unit 504, configured to send the first coding speed to the first device if the target network recovers to a normal state, so that the first device adjusts the coding speed of the first device according to the first coding speed, so as to adjust a speed at which the first device sends data to the second device.
Optionally, the obtaining unit 501 is configured to obtain 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 the congestion state can be verified through the data blocking amount of the target network, whether the target network is in the congestion state is not required to be verified according to the data receiving time, and the blocking problem of the target network can be quickly found; 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 a normal state, and the user experience is improved.
An embodiment of the present 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 a bus 153.
A user interface 152 for enabling human-computer interaction, which may include a display screen or a keyboard, among others. And a network interface 154 for communication connection with an external device. A storage device 155 is coupled to 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 magnetic disk storage devices, flash memory devices, or other non-volatile solid state storage devices. The storage device 155 may store an operating system (hereinafter referred to simply as a system), such as an embedded operating system like ANDROID, IOS, WINDOWS, or 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, one or more network devices. The storage device 155 may further store a user interface program, which may vividly display the content of the application program through a graphical operation interface, and receive a user's control operation of the application program through input controls such as menus, dialog boxes, and buttons. The storage device 155 may also store video data and 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, and specifically, the processor 151 invokes the one or more instructions to perform the following steps:
in the process that a first device sends data to a second device through a target network, acquiring a data blocking amount of the target network, wherein the data blocking amount comprises a data amount corresponding to the data to be forwarded to the second device in a transmission layer of the target network and a data amount corresponding to the data cached by an application layer of the target network;
determining the data transmission state of the target network according to the data blocking amount;
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 to the second equipment by the first equipment according to the data transmission speed of the target network.
Optionally, the processor calls an instruction to perform the following steps:
determining the 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 processor calls an instruction to perform the following steps:
acquiring a first coding 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 calls an instruction to perform the following steps:
acquiring the decoding speed of the second equipment to 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.
Optionally, the processor calls an instruction to perform the following steps:
calculating a second coding speed according to the minimum speed value and the change rate;
and sending the second coding speed to the first equipment, so that the first equipment adjusts the coding speed of the first equipment according to the second coding speed to adjust the speed of sending data to the second equipment by the first equipment.
Optionally, the processor calls an instruction to perform the following steps:
and if the target network is restored to a normal state, sending the first coding speed to the first equipment, and enabling the first equipment to adjust the coding speed of the first equipment according to the first coding speed so as to adjust the speed of sending data to the second equipment by the first equipment.
Optionally, the processor calls an instruction to perform 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 the congestion state can be verified through the data blocking amount of the target network, whether the target network is in the congestion state is not required to be verified according to the data receiving time, and the blocking problem of the target network can be quickly found; 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 a normal state, and the user experience is improved.
An embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored, and the implementation and the beneficial effects of the program for solving the problem may refer to the implementation and the beneficial effects of the data processing method described in fig. 3, and repeated details are not repeated.
The above disclosure is intended to be illustrative of only some embodiments of the invention, and is not intended to limit the scope of the invention.

Claims (10)

1. A method of data processing, the method comprising:
in the process that a first device sends data to a second device through a target network, acquiring a data blocking amount of the target network, wherein the data blocking amount comprises a data amount corresponding to the data to be forwarded to the second device in a transmission layer of the target network and a data amount corresponding to the data cached by an application layer of the target network;
determining the data transmission state of the target network according to the data blocking amount;
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 to the second equipment by the first equipment according to the data transmission speed of the target network.
2. The method of claim 1, wherein said determining a data transmission status of said target network based on said amount of data congestion comprises:
determining the 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.
3. The method of claim 2, wherein the determining the data transmission delay of the target network within a preset time period according to the data blocking amount comprises:
acquiring a first coding 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 data transfer speed of the target network comprises:
acquiring the decoding speed of the second equipment to 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.
5. The method of claim 4, wherein said adjusting the rate at which the first device sends data to the second device based on the minimum rate value and the rate of change comprises:
calculating a second coding speed according to the minimum speed value and the change rate;
and sending the second coding speed to the first equipment, so that the first equipment adjusts the coding speed of the first equipment according to the second coding speed to adjust the speed of sending data to the second equipment by the first equipment.
6. The method of claim 5, wherein after adjusting the speed at which the first device sends data to the second device based on the data transmission speed of the target network, the method further comprises:
and if the target network is restored to a normal state, sending the first coding speed to the first equipment, and enabling the first equipment to adjust the coding speed of the first equipment according to the first coding speed so as to adjust the speed of sending data to the second equipment by the first equipment.
7. The method of any one of claims 1-6, 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.
8. A data processing apparatus, characterized in that the apparatus comprises:
an obtaining unit, configured to obtain, in a process in which 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 cached by 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 acquiring unit is further configured to acquire a data transmission speed of the target network if the target network is in a congestion state;
and the adjusting unit is used for adjusting the speed of the first equipment for sending data to the second equipment according to the data transmission speed of the target network.
9. A network device comprising an input device and an output device, further comprising:
a processor adapted to implement one or more instructions; and the number of the first and second groups,
a computer storage medium having one or more instructions stored thereon, the one or more instructions adapted to be loaded by the processor and to perform the method of any of claims 1-7.
10. A computer storage medium, characterized in that the computer storage medium stores computer program instructions which, when executed, implement the method of any one of claims 1-7.
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 true CN112737971A (en) 2021-04-30
CN112737971B 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)

Cited By (1)

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

Citations (4)

* 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
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

Patent Citations (4)

* 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
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

Cited By (1)

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

Also Published As

Publication number Publication date
CN112737971B (en) 2023-06-23

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
EP3780542B1 (en) Data transmission method and device
RU2634908C2 (en) Method and device for mediadata delivery management
CN109600610B (en) Data encoding method, terminal and computer readable storage medium
CN109862377B (en) Video transmission method, device, system and computer readable storage medium
US9413797B2 (en) Data communication system and method
WO2018121742A1 (en) Method and device for transmitting stream data
CN107634908B (en) Data transmission method and equipment
JP6147939B1 (en) Transport accelerator for selective use of redundant encoded content data function
CN115037416A (en) Data forward error correction processing method, device, electronic equipment and storage medium
CN112866746A (en) Multi-path streaming cloud game control method, device, equipment and storage medium
CN114389959B (en) Network congestion control method, device, electronic equipment and storage medium
CN113141314A (en) Congestion control method and equipment
JPH10336626A (en) Transfer method and transfer device for video data
WO2017161124A1 (en) System for video streaming using delay-aware fountain codes
US20140099040A1 (en) Image processing device and image processing method
CN112737971B (en) Data processing method, device, storage medium and network equipment
CN112771875B (en) Improving video bit rate while maintaining video quality
CN113726817B (en) Streaming media data transmission method, device and medium
EP3526918A1 (en) Dynamically partitioning media streams
CN114401208A (en) Data transmission method and device, electronic equipment and storage medium
Tamizhselvi et al. Adaptive video streaming in mobile cloud computing
US12041303B1 (en) Bandwidth estimation for video encoding

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