CN107743096B - Network optimization method, device, terminal and storage medium - Google Patents

Network optimization method, device, terminal and storage medium Download PDF

Info

Publication number
CN107743096B
CN107743096B CN201710955118.3A CN201710955118A CN107743096B CN 107743096 B CN107743096 B CN 107743096B CN 201710955118 A CN201710955118 A CN 201710955118A CN 107743096 B CN107743096 B CN 107743096B
Authority
CN
China
Prior art keywords
application program
data packet
current application
current
preset
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
CN201710955118.3A
Other languages
Chinese (zh)
Other versions
CN107743096A (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.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software 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 Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201710955118.3A priority Critical patent/CN107743096B/en
Publication of CN107743096A publication Critical patent/CN107743096A/en
Application granted granted Critical
Publication of CN107743096B publication Critical patent/CN107743096B/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
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0852Delays
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0876Network utilisation, e.g. volume of load or congestion level
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The disclosure relates to a network optimization method, device, terminal and storage medium. The method comprises the following steps: determining current network congestion; when the operation of a user on the current application program is acquired, judging whether the current application program is the application program needing data transmission preferentially; and if the current application program is the application program needing to transmit data preferentially, preferentially transmitting the data packet to be transmitted of the current application program, and limiting the transmission of the data packets to be transmitted of other application programs. The method and the device improve the fluency of interaction and improve the user experience.

Description

Network optimization method, device, terminal and storage medium
Technical Field
The present disclosure relates to the field of data transmission technologies, and in particular, to a network optimization method, apparatus, terminal, and storage medium.
Background
Network optimization is an important means for improving the utilization rate of network resources and optimizing transmission quality. When the terminal needs to perform data interaction, the network allocates a certain network bandwidth to the terminal. When network congestion occurs, the control network element limits the transmission rate of the data packet of the terminal according to the network bandwidth allocated to the terminal, so that the transmission rate of the data packet of the terminal does not exceed the maximum transmission rate which can be borne by the network bandwidth allocated to the terminal by the network.
Disclosure of Invention
To overcome the problems in the related art, the present disclosure provides a network optimization method, apparatus, terminal, and storage medium.
According to a first aspect of the embodiments of the present disclosure, there is provided a network optimization method, including:
determining current network congestion;
when the operation of a user on the current application program is acquired, judging whether the current application program is the application program needing data transmission preferentially;
and if the current application program is the application program needing to transmit data preferentially, preferentially transmitting the data packet to be transmitted of the current application program, and limiting the transmission of the data packets to be transmitted of other application programs.
Further, the determining the current network congestion includes:
judging whether the time delay of the data packet is greater than or equal to the preset time delay or not and whether the total flow of the data packet in the current network is greater than or equal to the preset flow or not;
and if the time delay of the data packet is greater than or equal to the preset time delay and the total flow of the data packet in the current network is greater than or equal to the preset flow, determining that the current network is congested.
Further, the determining whether the current application is an application that needs to preferentially transmit data includes:
judging whether the priority of the current application program is greater than or equal to a preset priority;
if the priority of the current application program is greater than or equal to the preset priority, determining the current application program as an application program needing to transmit data preferentially;
and if the priority of the current application program is greater than the preset priority, determining that the current application program is not the application program needing to transmit data preferentially.
Further, the limiting the sending of the data packet to be sent of the other application includes:
and limiting the total flow of the data packets to be sent of other application programs to be less than a preset value.
Further, the limiting the sending of the data packet to be sent of the other application includes:
and suspending the transmission of the data packets to be transmitted of other application programs.
Further, the method further comprises:
if the current application program is an application program which needs to transmit data preferentially, sending a notification message to the network element equipment, wherein the notification message is used for notifying the network element equipment to forward the first data packet to be forwarded preferentially and to limit the forwarding of the second data packet to be forwarded; the first data packet to be forwarded is a data packet which needs to be forwarded to the current application program and the packet size of which is smaller than a preset threshold value, and the second data packet to be forwarded is a data packet which needs to be forwarded to the current application program and the packet size of which is larger than or equal to the preset threshold value.
According to a second aspect of the embodiments of the present disclosure, there is provided a network optimization apparatus, including:
a determination module configured to determine a current network congestion;
the judging module is configured to judge whether the current application program is the application program needing data transmission preferentially or not when the operation of the current application program by the user is acquired;
and the sending module is configured to preferentially send the data packet to be sent of the current application program and limit sending of the data packets to be sent of other application programs if the current application program is the application program needing preferential data transmission.
Further, the determining module includes:
the first judgment submodule is configured to judge whether the time delay of the data packet is greater than or equal to a preset time delay or not and whether the total flow of the data packet in the current network is greater than or equal to a preset flow or not;
the first determining submodule is configured to determine that the current network is congested if the packet delay is greater than or equal to the preset delay and the total flow of the packets in the current network is greater than or equal to the preset flow.
Further, the judging module includes:
a second judgment sub-module configured to judge whether the priority of the current application is greater than or equal to a preset priority;
a second determining submodule configured to determine that the current application program is an application program requiring priority data transmission if the priority of the current application program is greater than or equal to a preset priority;
and the third determining submodule is configured to determine that the current application program is not the application program needing the priority transmission data if the priority of the current application program is greater than the preset priority.
Further, the sending module includes: and the first sending submodule is configured to limit the total flow of the data packets to be sent of other application programs to be less than a preset value.
Further, the sending module includes: and the second sending submodule is configured to suspend the sending of the data packet to be sent of other application programs.
Further, the apparatus further comprises: a notification module configured to send a notification message to the network element device if the current application program is an application program that needs to transmit data preferentially, where the notification message is used to notify the network element device to forward a first to-be-forwarded data packet preferentially and to forward a second to-be-forwarded data packet restrictively; the first data packet to be forwarded is a data packet which needs to be forwarded to the current application program and the packet size of which is smaller than a preset threshold value, and the second data packet to be forwarded is a data packet which needs to be forwarded to the current application program and the packet size of which is larger than or equal to the preset threshold value.
According to a third aspect of the embodiments of the present disclosure, there is provided a terminal, including:
a processor and a memory for storing computer instructions; the processor executing the computer instructions performs the method of any of the above first aspects.
According to a fourth aspect of embodiments of the present disclosure, there is provided a computer-readable storage medium having stored thereon computer instructions which, when executed by a processor, implement the method of any one of the above first aspects.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: by determining current network congestion, when the operation of a user on a current application program is acquired, whether the current application program is the application program needing data transmission preferentially is judged, if the current application program is the application program needing data transmission preferentially, a to-be-sent data packet of the current application program is preferentially sent, and the to-be-sent data packets of other application programs are limited to be sent, so that when the current network is congested, on the basis of reducing the flow of the to-be-sent data packet of a terminal so as to reduce the load and the flow of the network, the data packet of the application program which is interacted by the user and needs data transmission preferentially can be sent in time, the interaction smoothness is improved, and the user experience is improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
FIG. 1 is a flow diagram illustrating a method of network optimization in accordance with an exemplary embodiment;
FIG. 2 is a flow chart illustrating a method of network optimization according to another exemplary embodiment;
FIG. 3 is a flow chart illustrating a method of network optimization according to yet another exemplary embodiment;
FIG. 4 is a block diagram illustrating a network optimization device in accordance with an exemplary embodiment;
FIG. 5 is a block diagram illustrating a network optimization device in accordance with another exemplary embodiment;
FIG. 6 is a block diagram illustrating a network optimization device in accordance with yet another exemplary embodiment;
FIG. 7 is a block diagram illustrating a network optimization device in accordance with yet another exemplary embodiment;
FIG. 8 is a block diagram illustrating a network optimization device in accordance with yet another exemplary embodiment;
FIG. 9 is a block diagram illustrating a network optimization device in accordance with yet another exemplary embodiment;
FIG. 10 is a block diagram illustrating a terminal in accordance with an exemplary embodiment;
fig. 11 is a block diagram illustrating a terminal 800 according to another example embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
Fig. 1 is a flowchart illustrating a network optimization method according to an exemplary embodiment, where an execution subject of the method may be a terminal, and the terminal may be, for example, a mobile phone, a tablet computer, or the like. As shown in fig. 1, the following steps may be included:
in step 101, the current network congestion is determined.
In this step, the current network may be a network to which the terminal is currently connected, and the network may be, for example, a Wireless Fidelity (WiFi) network, a cellular network, or the like. Wherein it may be determined whether the current network is congested by the delay of one or more data packets. For example, when the delay of a packet is greater than or equal to a preset time, the current network congestion may be determined; when the delay of the data packet is less than or equal to the preset duration, it may be determined that the current network is not congested.
In step 102, when an operation performed on a current Application (App) by a user is acquired, it is determined whether the current Application is an Application that requires data to be preferentially transmitted.
In this step, the operation is specifically an operation performed by the user on the current application program through an input device of the terminal. Optionally, when the input device is a touch screen, the operation may be a touch screen operation; when the input device is a keyboard, the operation may be a keyboard operation; when the input device is a mouse, the operation may be a mouse operation. The touch screen operation may be, for example, a click operation, a slide operation, or the like; the keyboard operation may be, for example, a character input operation or the like; the mouse operation may be, for example, a click operation. For example, assume that the shopping App is the current application and the terminal presents the user with a merchandise detail page of the shopping App; when the user clicks a 'purchase' button on a commodity detail page through a touch screen of the terminal, whether the shopping App is an application program requiring data transmission priority can be further judged. In this step, the current application may be understood as the application that the user is interacting with.
Optionally, whether the current application program is the application program requiring preferential data transmission may be determined according to a set of application programs requiring preferential data transmission, which is set in advance. Specifically, when the current application program belongs to the set, it may be determined that the current application program is an application program that needs to preferentially transmit data; when the current application does not belong to the set, it may be determined that the current application is an application that does not require preferential transmission of data. The application program requiring preferential data transmission can be a game App, a shopping App and the like.
In step 103, if the current application is an application that needs to transmit data preferentially, the to-be-transmitted data packet of the current application is preferentially transmitted, and the to-be-transmitted data packets of other applications are limited to be transmitted.
In this step, the to-be-sent data packet of the current application program is preferentially sent, specifically, the priority of the to-be-sent data packet of the current application program may be set to be the highest. The other application may specifically be an application other than the current application among all applications. In this step, the to-be-sent data packets of the current application program are preferentially sent, and the to-be-sent data packets of other application programs are limited to be sent, so that the data packets of the application programs which are interacted by the user and need to preferentially transmit data can be sent in time on the basis of reducing the traffic of the to-be-sent data packets of the terminal so as to reduce the load and the traffic of the network, and the interaction fluency is improved. It should be noted that, because of the purpose of sending the data packet by the application program, the data packet is usually sent to interact with the server corresponding to the application program to receive the response of the server. For example, the application sends a data packet for requesting data to the server, and the server returns the requested data packet to the application according to the request of the application. Therefore, the uplink flow of the network is reduced by limiting the transmission of the data packets to be transmitted of other application programs, and meanwhile, the data packets transmitted to the terminal by the server are also reduced, so that the downlink flow of the network can also be reduced.
According to the network optimization method, the current network congestion is determined, when the operation of the current application program by a user is obtained, whether the current application program is the application program needing data transmission preferentially is judged, if the current application program is the application program needing data transmission preferentially, the data packet to be sent of the current application program is preferentially sent, and the data packet to be sent of other application programs is limited to be sent, so that when the current network is congested, on the basis of reducing the flow of the data packet to be sent of a terminal so as to reduce the load and the flow of the network, the data packet of the application program which is interacted by the user and needs data transmission preferentially can be sent in time, the interaction smoothness is improved, and the user experience is improved.
Fig. 2 is a flow chart illustrating a method of network optimization according to another exemplary embodiment. This embodiment mainly describes an alternative implementation manner of determining current network congestion on the basis of the embodiment shown in fig. 1. As shown in fig. 2, the method of the present example may include:
step 201, determining whether the time delay of the data packet is greater than or equal to a preset time delay, and whether the total flow of the data packet in the current network is greater than or equal to a preset flow.
In this step, the packet delay may be specifically determined according to the delay of all the transmitted packets in the last period of time. For example, it may be the average delay of all transmitted packets in the last 10 seconds. The total traffic of the data packets in the current network may specifically be the total traffic of the data packets being transmitted in the current network. In this step, consideration is simultaneously given to the two aspects of the packet delay and the total flow of the packet in the current network.
Step 202, if the delay of the data packet is greater than or equal to the preset delay and the total flow of the data packet in the current network is greater than or equal to the preset flow, determining that the current network is congested.
In this step, when the delay of the data packet is greater than or equal to the preset delay and the total flow of the data packet in the current network is greater than or equal to the preset flow, it is described that the case where the delay of the data packet is greater than or equal to the preset delay is not an instantaneous case, and in order to enable timely flow control, it may be determined that the current network is congested.
Step 203, if the delay of the data packet is smaller than the preset delay, or the total flow of the data packet in the current network is smaller than the preset flow, it is determined that the current network is not congested.
In this step, when the packet delay is less than the preset delay, it may be determined that the current network is not congested. When the delay of the data packet is greater than or equal to the preset delay, but the total flow of the data packet in the current network is smaller than the preset flow, it is described that the case where the delay of the data packet is greater than or equal to the preset delay is an instant case, and in order to avoid unnecessary flow control, it may be determined that no congestion occurs in the current network.
In the network optimization method of this embodiment, whether the delay of the data packet is greater than or equal to the preset delay or not and whether the total flow of the data packet in the current network is greater than or equal to the preset flow or not are judged, if the delay of the data packet is greater than or equal to the preset delay or the total flow of the data packet in the current network is greater than or equal to the preset flow, it is determined that the current network is congested, if the delay of the data packet is less than the preset delay or the total flow of the data packet in the current network is less than the preset flow, it is determined that the current network is not congested, it is realized that whether the current network is congested or not is determined based on two aspects of the delay of the data packet and the total flow of the data packet in the current network at the same time, and the accuracy.
Fig. 3 is a flow chart illustrating a method of network optimization according to yet another exemplary embodiment. The present embodiment mainly describes a further optional implementation manner of network optimization on the basis of the embodiments shown in fig. 1 or fig. 2. As shown in fig. 3, the method of this embodiment may include:
in step 301, the current network congestion is determined.
In this step, the specific implementation manner of determining the current network congestion may refer to the above embodiments, which are not described herein again.
In step 302, when an operation performed on the current application program by the user is acquired, it is determined whether the current application program is an application program that needs to preferentially transmit data.
In this step, optionally, it may also be determined whether the current application program is an application program that needs to preferentially transmit data according to the priority of the current application program. Specifically, whether the priority of the current application program is greater than or equal to a preset priority is judged; if the priority of the current application program is greater than or equal to the preset priority, determining the current application program as an application program needing to transmit data preferentially; and if the priority of the current application program is greater than the preset priority, determining that the current application program is not the application program needing to transmit data preferentially.
In step 303, if the current application is an application that needs to transmit data preferentially, the to-be-transmitted data packet of the current application is preferentially transmitted, and the to-be-transmitted data packets of other applications are limited to be transmitted.
In this step, optionally, the limiting of sending the to-be-sent data packet of the other application program may include: limiting the total flow of the data packets to be sent of other application programs to be less than a preset value; or suspending the transmission of the data packets to be transmitted of other application programs. When limiting to send the to-be-sent data packets of the other application programs specifically includes limiting the total flow of the to-be-sent data packets of the other application programs to be smaller than the preset value, step 303 may specifically be: and when the data packet to be sent of the current application program exists, the data packet to be sent of the current application program is preferentially sent, and the total flow for sending the data packets to be sent of other application programs is required to be less than a preset value. When limiting the sending of the to-be-sent data packet of the other application program includes suspending the sending of the to-be-sent data packet of the other application program, step 303 may specifically be: and transmitting the data packet to be transmitted of the current application program, and not transmitting the data packets to be transmitted of other application programs.
Optionally, step 303 may be followed by: after the preset time length, the preferential sending of the data packet to be sent of the application program is cancelled, and the limited sending of the data packets to be sent of other application programs is removed.
In step 304, if the current application is an application that needs to transmit data preferentially, a notification message is sent to the network element device, where the notification message is used to notify the network element device to forward the first to-be-forwarded data packet preferentially and to forward the second to-be-forwarded data packet restrictively.
In this step, the first packet to be forwarded may be a packet that needs to be forwarded to the current application and has a packet size smaller than a preset threshold, and the second packet to be forwarded may be a packet that needs to be forwarded to the current application and has a packet size greater than or equal to the preset threshold. Here, the first packet to be forwarded may be regarded as a small packet, and the second packet to be forwarded may be regarded as a large packet. The big data packet is usually related to page updating, for example, the big data packet includes data required for updating a game page, data required for updating a commodity detail page, and the like; the small data packet typically includes the results of calculations requested by the application from the server, such as whether the user hit a target, and whether the user purchased successfully. It can be seen that in large and small packets, users are generally more concerned about the data in the small packets. Therefore, the network element equipment can perform priority forwarding on the small data packets and perform limited forwarding on the large data packets. In this step, the notification message is sent to the network element device to notify the network element device to forward the small data packet of the current application program preferentially and to forward the large data packet of the current application program in a limited manner, so that the network element device can forward the data packet which is more concerned by the user in time on the basis of reducing the flow of the data packet to be forwarded so as to relieve or eliminate congestion, thereby further improving user experience. Wherein, the network element device may be a gateway, for example.
It should be noted that there is no restriction on the order between step 304 and step 303.
In the congestion control method of this embodiment, a notification message is sent to a network element device, where the notification message is used to notify the network element device to preferentially forward a first to-be-forwarded data packet and to limit and forward a second to-be-forwarded data packet, the first to-be-forwarded data packet is a data packet that needs to be forwarded to the current application and has a packet size smaller than a preset threshold, and the second to-be-forwarded data packet is a data packet that needs to be forwarded to the current application and has a packet size greater than or equal to the preset threshold, so that when a current network is congested, the network element device can forward a data packet more concerned by a user in time on the basis of reducing the flow of the to-be-forwarded data packet to alleviate or eliminate congestion, thereby further improving user experience.
The following are embodiments of the disclosed apparatus that may be used to perform embodiments of the disclosed methods. For details not disclosed in the embodiments of the apparatus of the present disclosure, refer to the embodiments of the method of the present disclosure.
Fig. 4 is a block diagram illustrating a network optimization device according to an example embodiment. The apparatus may be implemented as part or all of the terminal by software, hardware or a combination of both. Referring to fig. 4, the apparatus includes: a determining module 401, a judging module 402 and a sending module 403. Wherein the content of the first and second substances,
a determining module 401 configured to determine a current network congestion;
a determining module 402, configured to determine whether a current application program is an application program that needs to preferentially transmit data when an operation performed on the current application program by a user is acquired;
the sending module 403 is configured to, if the current application is an application that needs to transmit data preferentially, preferentially send a to-be-sent data packet of the current application, and limit sending of to-be-sent data packets of other applications.
To sum up, the network optimization device provided in this disclosure determines current network congestion through the determination module, determines whether the current application is an application that needs to transmit data preferentially when the determination module obtains an operation performed by a user on the current application, and if the current application is an application that needs to transmit data preferentially, the sending module preferentially sends a to-be-sent data packet of the current application and limits sending of to-be-sent data packets of other applications, so that when the current network is congested, on the basis of reducing traffic of the to-be-sent data packet of a terminal, data packets of the application that are being interacted by the user and need to transmit data preferentially can be sent in time, thereby improving smoothness of interaction and improving user experience.
Fig. 5 is a block diagram illustrating a network optimization device according to another example embodiment. Referring to fig. 5, the apparatus is based on the block diagram shown in fig. 4, and optionally, the determining module 401 may include: a first judgment sub-module 4011 and a first determination sub-module 4012.
The first judging submodule 4011 is configured to judge whether the packet delay is greater than or equal to a preset delay and whether the total flow of the packet in the current network is greater than or equal to a preset flow;
the first determining sub-module 4012 is configured to determine that the current network is congested if the packet delay is greater than or equal to the preset delay and the total traffic of the packets in the current network is greater than or equal to the preset traffic.
To sum up, in the network optimization device provided in the embodiment of the present disclosure, the first determining sub-module determines whether the time delay of the data packet is greater than or equal to the preset time delay, and whether the total flow of the data packet in the current network is greater than or equal to the preset flow, if the time delay of the data packet is greater than or equal to the preset time delay, and the total flow of the data packet in the current network is greater than or equal to the preset flow, the first determining sub-module determines that the current network is congested, and if the time delay of the data packet is less than the preset time delay, or the total flow of the data packet in the current network is less than the preset flow, the current network is not congested, so that whether the current network is congested is determined based on the two aspects of the time delay of the data packet and the total flow of the data packet in the current network, and the accuracy of the.
Fig. 6 is a block diagram illustrating a network optimization device according to yet another example embodiment. Referring to fig. 6, the apparatus is based on the block diagram shown in fig. 4, and optionally, the determining module 402 may include: a second decision sub-module 4021, a second determination sub-module 4022 and a third determination sub-module 4023.
The second determining sub-module 4021 is configured to determine whether the priority of the current application is greater than or equal to a preset priority;
a second determining sub-module 4022, configured to determine that the current application program is an application program that needs to transmit data preferentially if the priority of the current application program is greater than or equal to a preset priority;
the third determining sub-module 4023 is configured to determine that the current application is not an application that needs to preferentially transmit data if the priority of the current application is greater than the preset priority.
Fig. 7 is a block diagram illustrating a network optimization device according to yet another example embodiment. Referring to fig. 7, on the basis of the block diagram shown in fig. 4, optionally, the sending module 403 may include: the first sending submodule 4031 is configured to limit the total flow of data packets to be sent of other applications to be less than a preset value.
To sum up, the network optimization device provided in the embodiment of the present disclosure limits, by the first sending sub-module, that the total flow of the data packets to be sent of other application programs is smaller than the preset value, so that the data packets to be sent of other application programs are limited to be sent.
Fig. 8 is a block diagram illustrating a network optimization device according to yet another example embodiment. Referring to fig. 8, on the basis of the block diagram shown in fig. 4, optionally, the sending module 403 may include: a second sending submodule 4032 configured to suspend sending of data packets to be sent of other applications.
To sum up, the network optimization device provided in the embodiment of the present disclosure suspends, by using the second sending submodule, sending of the to-be-sent data packet of the other application program, so as to limit sending of the to-be-sent data packet of the other application program.
Fig. 9 is a block diagram illustrating a network apparatus according to yet another example embodiment. Referring to fig. 9, the apparatus is based on the block diagram shown in fig. 4, and optionally, the apparatus may further include: a notification module 404, configured to send a notification message to the network element device if the current application program is an application program that needs to preferentially transmit data, where the notification message is used to notify the network element device to preferentially forward the first to-be-forwarded data packet and to perform restricted forwarding on the second to-be-forwarded data packet; the first data packet to be forwarded is a data packet which needs to be forwarded to the current application program and the packet size of which is smaller than a preset threshold value, and the second data packet to be forwarded is a data packet which needs to be forwarded to the current application program and the packet size of which is larger than or equal to the preset threshold value.
To sum up, the network optimization device provided in the embodiment of the present disclosure sends a notification message to the network element device through the notification module, where the notification message is used to notify the network element device to preferentially forward a first to-be-forwarded data packet and to limit and forward a second to-be-forwarded data packet, the first to-be-forwarded data packet is a data packet that needs to be forwarded to the current application program and has a packet size smaller than a preset threshold, and the second to-be-forwarded data packet is a data packet that needs to be forwarded to the current application program and has a packet size greater than or equal to the preset threshold, so that when a current network is congested, the network element device can forward a data packet most concerned by a user in time on the basis of reducing the flow of the to-be-forwarded data packet to alleviate or eliminate congestion, thereby further improving user experience.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Fig. 10 is a block diagram illustrating a terminal according to an example embodiment, and as shown in fig. 10, the terminal may include: a processor 1001 and a memory 1002 for storing computer instructions.
The processor 1001 executes the computer instructions to execute the following method:
determining current network congestion;
when the operation of a user on the current application program is acquired, judging whether the current application program is the application program needing data transmission preferentially;
and if the current application program is the application program needing to transmit data preferentially, preferentially transmitting the data packet to be transmitted of the current application program, and limiting to transmit the data packets to be transmitted of other application programs.
Optionally, the determining the current network congestion includes:
judging whether the time delay of the data packet is greater than or equal to the preset time delay or not and whether the total flow of the data packet in the current network is greater than or equal to the preset flow or not;
and if the time delay of the data packet is greater than or equal to the preset time delay and the total flow of the data packet in the current network is greater than or equal to the preset flow, determining that the current network is congested.
Optionally, the determining whether the current application is an application that needs to preferentially transmit data includes:
judging whether the priority of the current application program is greater than or equal to a preset priority;
if the priority of the current application program is greater than or equal to the preset priority, determining the current application program as an application program needing to transmit data preferentially;
and if the priority of the current application program is greater than the preset priority, determining that the current application program is not the application program needing to transmit data preferentially.
Optionally, the limiting sending the to-be-sent data packet of the other application includes:
and limiting the total flow of the data packets to be sent of other application programs to be less than a preset value.
Optionally, the limiting sending the to-be-sent data packet of the other application includes:
and suspending the transmission of the data packets to be transmitted of other application programs.
Optionally, the method further includes:
if the current application program is an application program which needs to transmit data preferentially, sending a notification message to the network element equipment, wherein the notification message is used for notifying the network element equipment to forward the first data packet to be forwarded preferentially and to limit the forwarding of the second data packet to be forwarded; the first data packet to be forwarded is a data packet which needs to be forwarded to the current application program and the packet size of which is smaller than a preset threshold value, and the second data packet to be forwarded is a data packet which needs to be forwarded to the current application program and the packet size of which is larger than or equal to the preset threshold value.
Fig. 11 is a block diagram illustrating a terminal 800 according to another example embodiment. For example, the terminal 800 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, and the like.
Referring to fig. 11, terminal 800 may include one or more of the following components: a processing component 802, a memory 804, a power component 806, a multimedia component 808, an audio component 810, an input/output (I/O) interface 812, a sensor component 814, and a communication component 816.
The processing component 802 generally controls overall operation of the terminal 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing components 802 may include one or more processors 820 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 802 can include one or more modules that facilitate interaction between the processing component 802 and other components. For example, the processing component 802 can include a multimedia module to facilitate interaction between the multimedia component 808 and the processing component 802.
The memory 804 is configured to store various types of data to support operation at the device 800. Examples of such data include instructions for any application or method operating on terminal 800, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 804 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
Power components 806 provide power to the various components of terminal 800. Power components 806 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for terminal 800.
The multimedia component 808 includes a screen providing an output interface between the terminal 800 and the user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front facing camera and/or a rear facing camera. The front-facing camera and/or the rear-facing camera may receive external multimedia data when the device 800 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 810 is configured to output and/or input audio signals. For example, the audio component 810 includes a Microphone (MIC) configured to receive external audio signals when the terminal 800 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 804 or transmitted via the communication component 816. In some embodiments, audio component 810 also includes a speaker for outputting audio signals.
The I/O interface 812 provides an interface between the processing component 802 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
Sensor assembly 814 includes one or more sensors for providing various aspects of state assessment for terminal 800. For example, sensor assembly 814 can detect the open/closed state of device 800, the relative positioning of components, such as a display and keypad of terminal 800, sensor assembly 814 can also detect a change in position of terminal 800 or a component of terminal 800, the presence or absence of user contact with terminal 800, orientation or acceleration/deceleration of terminal 800, and a change in temperature of terminal 800. Sensor assembly 814 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
Communication component 816 is configured to facilitate communications between terminal 800 and other devices in a wired or wireless manner. The terminal 800 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the terminal 800 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the methods shown in fig. 1-3 and described above.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as the memory 804 comprising instructions, executable by the processor 820 of the terminal 800 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
A non-transitory computer readable storage medium in which instructions, when executed by a processor of a terminal, enable the terminal to perform a network optimization method, the method comprising:
determining current network congestion;
when the operation of a user on the current application program is acquired, judging whether the current application program is the application program needing data transmission preferentially;
and if the current application program is the application program needing to transmit data preferentially, preferentially transmitting the data packet to be transmitted of the current application program, and limiting to transmit the data packets to be transmitted of other application programs.
Optionally, the determining the current network congestion includes:
judging whether the time delay of the data packet is greater than or equal to the preset time delay or not and whether the total flow of the data packet in the current network is greater than or equal to the preset flow or not;
and if the time delay of the data packet is greater than or equal to the preset time delay and the total flow of the data packet in the current network is greater than or equal to the preset flow, determining that the current network is congested.
Optionally, the determining whether the current application is an application that needs to preferentially transmit data includes:
judging whether the priority of the current application program is greater than or equal to a preset priority;
if the priority of the current application program is greater than or equal to the preset priority, determining the current application program as an application program needing to transmit data preferentially;
and if the priority of the current application program is greater than the preset priority, determining that the current application program is not the application program needing to transmit data preferentially.
Optionally, the limiting sending the to-be-sent data packet of the other application includes:
and limiting the total flow of the data packets to be sent of other application programs to be less than a preset value.
Optionally, the limiting sending the to-be-sent data packet of the other application includes:
and suspending the transmission of the data packets to be transmitted of other application programs.
Optionally, the method further includes:
if the current application program is an application program which needs to transmit data preferentially, sending a notification message to the network element equipment, wherein the notification message is used for notifying the network element equipment to forward the first data packet to be forwarded preferentially and to limit the forwarding of the second data packet to be forwarded; the first data packet to be forwarded is a data packet which needs to be forwarded to the current application program and the packet size of which is smaller than a preset threshold value, and the second data packet to be forwarded is a data packet which needs to be forwarded to the current application program and the packet size of which is larger than or equal to the preset threshold value.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (10)

1. A method for network optimization, comprising:
judging whether the time delay of the data packet is greater than or equal to the preset time delay or not and whether the total flow of the data packet in the current network is greater than or equal to the preset flow or not;
if the time delay of the data packet is greater than or equal to the preset time delay and the total flow of the data packet in the current network is greater than or equal to the preset flow, determining that the current network is congested;
when the operation of a user on the current application program is acquired, judging whether the current application program is the application program needing data transmission preferentially;
if the current application program is the application program needing to transmit data preferentially, the data packet to be transmitted of the current application program is preferentially transmitted, and the data packets to be transmitted of other application programs are limited to be transmitted; sending a notification message to network element equipment, wherein the notification message is used for notifying the network element equipment to preferentially forward a first data packet to be forwarded and to limit and forward a second data packet to be forwarded; the first data packet to be forwarded is a data packet which needs to be forwarded to the current application program and the size of the data packet is smaller than a preset threshold value, and the second data packet to be forwarded is a data packet which needs to be forwarded to the current application program and the size of the data packet is larger than or equal to the preset threshold value.
2. The method of claim 1, wherein the determining whether the current application is an application that needs to transmit data preferentially comprises:
judging whether the priority of the current application program is greater than or equal to a preset priority;
if the priority of the current application program is greater than or equal to the preset priority, determining that the current application program is the application program needing to transmit data preferentially;
and if the priority of the current application program is greater than the preset priority, determining that the current application program is not the application program needing to transmit data preferentially.
3. The method of claim 1, wherein limiting the sending of data packets to be sent by other applications comprises:
and limiting the total flow of the data packets to be sent of other application programs to be less than a preset value.
4. The method of claim 1, wherein limiting the sending of data packets to be sent by other applications comprises:
and suspending the transmission of the data packets to be transmitted of other application programs.
5. A network optimization apparatus, comprising:
a determination module, the determination module comprising: a first judgment submodule and a first determination submodule;
the first judging submodule is configured to judge whether the time delay of the data packet is greater than or equal to a preset time delay or not and whether the total flow of the data packet in the current network is greater than or equal to a preset flow or not;
the first determining submodule is configured to determine that the current network is congested if the packet delay is greater than or equal to a preset delay and the total flow of the packets in the current network is greater than or equal to a preset flow;
the judging module is configured to judge whether the current application program is the application program needing data transmission preferentially or not when the operation of the user on the current application program is acquired;
the sending module is configured to preferentially send a data packet to be sent of the current application program and limit sending of data packets to be sent of other application programs if the current application program is an application program which needs to preferentially transmit data;
a notification module configured to send a notification message to a network element device if the current application program is an application program that needs to transmit data preferentially, where the notification message is used to notify the network element device to forward a first to-be-forwarded data packet preferentially and to forward a second to-be-forwarded data packet restrictively; the first data packet to be forwarded is a data packet which needs to be forwarded to the current application program and the packet size of which is smaller than a preset threshold value, and the second data packet to be forwarded is a data packet which needs to be forwarded to the current application program and the packet size of which is larger than or equal to the preset threshold value.
6. The apparatus of claim 5, wherein the determining module comprises:
a second judgment submodule configured to judge whether the priority of the current application program is greater than or equal to a preset priority;
the second determining submodule is configured to determine that the current application program is the application program needing to transmit data preferentially if the priority of the current application program is greater than or equal to a preset priority;
and the third determining submodule is configured to determine that the current application program is not the application program needing to transmit data preferentially if the priority of the current application program is greater than the preset priority.
7. The apparatus of claim 5, wherein the sending module comprises: and the first sending submodule is configured to limit the total flow of the data packets to be sent of other application programs to be less than a preset value.
8. The apparatus of claim 5, wherein the sending module comprises: and the second sending submodule is configured to suspend the sending of the data packet to be sent of other application programs.
9. A terminal, comprising:
a processor and a memory for storing computer instructions; the processor executes the computer instructions to perform the method of any of claims 1-4.
10. A computer readable storage medium having computer instructions stored thereon, wherein the computer instructions, when executed by a processor, implement the method of any of claims 1-4.
CN201710955118.3A 2017-10-13 2017-10-13 Network optimization method, device, terminal and storage medium Active CN107743096B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710955118.3A CN107743096B (en) 2017-10-13 2017-10-13 Network optimization method, device, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710955118.3A CN107743096B (en) 2017-10-13 2017-10-13 Network optimization method, device, terminal and storage medium

Publications (2)

Publication Number Publication Date
CN107743096A CN107743096A (en) 2018-02-27
CN107743096B true CN107743096B (en) 2021-06-08

Family

ID=61237557

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710955118.3A Active CN107743096B (en) 2017-10-13 2017-10-13 Network optimization method, device, terminal and storage medium

Country Status (1)

Country Link
CN (1) CN107743096B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108989244B (en) * 2018-08-20 2022-08-05 Oppo广东移动通信有限公司 Data processing method, data processing device, storage medium and electronic equipment
CN111343666A (en) * 2018-12-19 2020-06-26 中国移动通信集团四川有限公司 Congestion adjustment method, device, equipment and medium based on LTE network
CN109656718A (en) * 2018-12-20 2019-04-19 四川长虹电器股份有限公司 Smart television application control method
CN110290559B (en) * 2019-07-10 2021-01-26 维沃移动通信有限公司 Data transmission method and terminal
CN113300974B (en) * 2020-07-10 2024-04-26 阿里巴巴集团控股有限公司 Congestion control method, device and computer readable medium
CN114430370B (en) * 2020-10-29 2023-07-25 成都鼎桥通信技术有限公司 Method, device, equipment and storage medium for determining network slice

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103209186A (en) * 2013-04-08 2013-07-17 浪潮电子信息产业股份有限公司 Design method for ensuring quality of service of businesses in heterogeneous network
CN104115534A (en) * 2012-05-18 2014-10-22 联发科技股份有限公司 Enhanced ue data transmission for power consumption optimization
CN104982006A (en) * 2013-04-10 2015-10-14 华为技术有限公司 System and method for providing a software defined protocol stack
EP2941051A1 (en) * 2012-12-28 2015-11-04 Ntt Docomo, Inc. Wireless base station, router device, and mobile station
CN107079331A (en) * 2014-09-11 2017-08-18 三星电子株式会社 For the method and apparatus for the business for controlling electronic installation in a wireless communication system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104115534A (en) * 2012-05-18 2014-10-22 联发科技股份有限公司 Enhanced ue data transmission for power consumption optimization
EP2941051A1 (en) * 2012-12-28 2015-11-04 Ntt Docomo, Inc. Wireless base station, router device, and mobile station
CN103209186A (en) * 2013-04-08 2013-07-17 浪潮电子信息产业股份有限公司 Design method for ensuring quality of service of businesses in heterogeneous network
CN104982006A (en) * 2013-04-10 2015-10-14 华为技术有限公司 System and method for providing a software defined protocol stack
CN107079331A (en) * 2014-09-11 2017-08-18 三星电子株式会社 For the method and apparatus for the business for controlling electronic installation in a wireless communication system

Also Published As

Publication number Publication date
CN107743096A (en) 2018-02-27

Similar Documents

Publication Publication Date Title
CN107743096B (en) Network optimization method, device, terminal and storage medium
CN109474538B (en) Data transmission method and device, terminal equipment and storage medium
US11082877B2 (en) Method and device for configuring operating bandwidth
EP3226432B1 (en) Method and devices for sharing media data between terminals
CN109698794B (en) Congestion control method and device, electronic equipment and storage medium
CN107094094B (en) Application networking method and device and terminal
CN106792892B (en) Access control method and device for application program
CN108702763B (en) Method and device for sending lead code and scheduling request
WO2021046674A1 (en) Data processing method and apparatus, and electronic device and computer readable storage medium
US11291042B2 (en) Method and apparatus for configuring random access
WO2020034072A1 (en) Method and apparatus for sending uplink scheduling request, device, and storage medium
CN106658587B (en) Network condition prompting method and device
EP3917116A1 (en) Detecting maximum transmission unit value
CN113420338A (en) Data processing method and device and data processing device
CN105227426B (en) Application interface switching method and device and terminal equipment
CN104572230B (en) Script file loading method and device and script file generating method and device
US11184941B2 (en) Method and apparatus for protecting user equipment, user equipment and base station
US11134413B2 (en) User equipment protection method, device, user equipment and base station
CN106357558B (en) Bandwidth allocation methods and device
WO2018195913A1 (en) Method and apparatus for transmitting cache state
WO2017031900A1 (en) Time delay control method and apparatus
EP3876580B1 (en) Configuration adjustment method and apparatus, electronic device, and computer readable storage medium
CN109451788B (en) Data transmission method and device
CN109565718B (en) Method and device for transmitting message
WO2020143717A1 (en) Data feedback processing method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant