CN109120541A - Limit method, apparatus, terminal device and the storage medium of network speed - Google Patents
Limit method, apparatus, terminal device and the storage medium of network speed Download PDFInfo
- Publication number
- CN109120541A CN109120541A CN201810862590.7A CN201810862590A CN109120541A CN 109120541 A CN109120541 A CN 109120541A CN 201810862590 A CN201810862590 A CN 201810862590A CN 109120541 A CN109120541 A CN 109120541A
- Authority
- CN
- China
- Prior art keywords
- terminal
- network
- request message
- internet business
- type
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/10—Flow control; Congestion control
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/10—Flow control; Congestion control
- H04L47/24—Traffic characterised by specific attributes, e.g. priority or QoS
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/70—Admission control; Resource allocation
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The embodiment of the present application discloses a kind of method, apparatus, first terminal and storage medium for limiting network speed.Wherein the method is applied to first terminal, first terminal has bridge module, bridge module is used to N number of second terminal bridging to the network that first terminal provides, so that the network that N number of second terminal uses first terminal to provide, which comprises determine the maximum downstream rate that the network that first terminal provides can carry;Receive the network data request message that each second terminal is sent;The network data request message of each second terminal is parsed, with the internet business type of each second terminal of determination;The network speed of each second terminal is controlled according to maximum downstream rate and internet business type.This method may be implemented to ensure that each scene can meet user's online experience to the network speed progress Control for Speed Limitation for each connection equipment for being bridged to first terminal to achieve the purpose that reasonably to distribute network speed.
Description
Technical field
This application involves Network Data Control field more particularly to it is a kind of limit the method, apparatus of network speed, terminal device and
Computer readable storage medium.
Background technique
With the continuous development of mobile network and terminal device, more and more terminal devices can pass through WiFi
(Wireless Fidelity, Wireless Fidelity) bridging functionality is realized to be connected with other terminal devices (hereinafter referred to as connecting equipment),
The purpose of network is provided to be reached for connection equipment.Inevitably there are some problems in the process, such as: when connection equipment is more, by
It is different in the network demand of each connection equipment, for example, have browsing webpage, chat, see video or downloading etc., due to seeing video
Or the flow of downloading consumption is larger, may result in the terminal device for providing network because flow is using excessively causing economically
Loss, additionally, due to connection equipment the resource occupying for increasing or connecting equipment it is excessive, offer net is provided
The terminal device of network can not normal use network.
Summary of the invention
The embodiment of the present application proposes a kind of method, apparatus, terminal device and storage medium for limiting network speed, can solve existing
Have in technology, since the resource occupying for increasing or connecting equipment of connection equipment is excessive, may result in offer network
Terminal device can not normal use network the technical issues of.
In a first aspect, the embodiment of the present application proposes a kind of method for limiting network speed, it is applied to first terminal, described first eventually
End has bridge module, and the bridge module is used to N number of second terminal bridging to the network that the first terminal provides, with
The network for providing N number of second terminal using the first terminal, N are positive integer, which comprises determine described
The maximum downstream rate that the network that one terminal provides can carry;Receive the network data request message that each second terminal is sent;
The network data request message of each second terminal is parsed, with the internet business of determination each second terminal
Type;The network speed of each second terminal is controlled according to the maximum downstream rate and the internet business type.
Second aspect, the embodiment of the present application propose a kind of device for limiting network speed, are applied to first terminal, described first eventually
End has bridge module, and the bridge module is used to N number of second terminal bridging to the network that the first terminal provides, with
The network for providing N number of second terminal using the first terminal, N are positive integer, and described device includes: maximum downstream speed
Rate determining module, the maximum downstream rate that can be carried for determining the network that the first terminal provides;Message receiving module is used
In the network data request message for receiving each second terminal transmission;Internet business determination type module, for described each
The network data request message of second terminal is parsed, with the internet business type of determination each second terminal;Control
Module, for being controlled according to the maximum downstream rate and the internet business type to the network speed of each second terminal
System.
The third aspect, the embodiment of the present application propose a kind of terminal device, including memory, processor and are stored in memory
Computer program that is upper and can running on a processor, when the processor executes described program, realizes the application first aspect
The method of network speed is limited described in embodiment.
Fourth aspect, the embodiment of the present application propose a kind of non-transitorycomputer readable storage medium, are stored thereon with meter
Calculation machine program realizes the method that network speed is limited described in the application first aspect embodiment when described program is executed by processor.
It, can according to method, apparatus, terminal device and the computer readable storage medium of the limitation network speed of the embodiment of the present application
To receive the network data request message that each second terminal is sent, and to the network data request message of each second terminal into
Row parsing, with the internet business type of each second terminal of determination, and the maximum that can be carried according to the network that first terminal provides
Downstream rate and internet business type carry out Control for Speed Limitation to the network speed of each second terminal, thus in terminal device as bridge joint
When device, other different online applications and scene of connection equipment can be recognized, and applied according to different online and scene come
Intelligent Dynamic distributes broadband, to achieve the purpose that reasonably to distribute network speed, ensure that each scene can meet the upper dictyosome of user
It tests.
The additional aspect of the application and advantage will be set forth in part in the description, and will partially become from the following description
It obtains obviously, or recognized by the practice of the application.
Detailed description of the invention
The application is above-mentioned and/or additional aspect and advantage will become from the following description of the accompanying drawings of embodiments
Obviously and it is readily appreciated that, in which:
Fig. 1 is the exemplary diagram according to the system of the limitation network speed of the embodiment of the present application;
Fig. 2 is the flow chart according to the method for the limitation network speed of the application one embodiment;
Fig. 3 is the flow chart for establishing the type of service home banking according to the embodiment of the present application;
Fig. 4 is the flow chart according to the method for the limitation network speed of the application another embodiment;
Fig. 5 is the structural schematic diagram according to the device of the limitation network speed of the application one embodiment;
Fig. 6 is the structural schematic diagram according to the device of the limitation network speed of one specific embodiment of the application;
Fig. 7 is the structural schematic diagram according to the first terminal of the application one embodiment.
Specific embodiment
Embodiments herein is described below in detail, examples of the embodiments are shown in the accompanying drawings, wherein from beginning to end
Same or similar label indicates same or similar element or element with the same or similar functions.Below with reference to attached
The embodiment of figure description is exemplary, it is intended to for explaining the application, and should not be understood as the limitation to the application.
Below with reference to the accompanying drawings method, apparatus, terminal device and the computer for describing the limitation network speed of the embodiment of the present application can
Read storage medium.
As shown in Figure 1, the system of the limitation network speed for the embodiment of the present application.The system may include first terminal A and N number of
Two terminal B, wherein N is positive integer.In this example, first terminal A can have bridge module, which can be used for
N number of second terminal B is bridged on the network that first terminal A is provided, so that N number of second terminal B was provided using first terminal A
Network.That is, first terminal A can provide personal hot spot function, and second terminal B is bridged to by this by bridge module
In hot spot networks provided by first terminal A, so that the hot spot networks of first terminal A offer can be used in second terminal B.As
A kind of example, first terminal A and second terminal B can be such as mobile phone, tablet computer, personal digital assistant respectively with various
The hardware device of operating system.
In order to make first terminal when as bridge, the different online of other connection equipment can be recognized and answered
With and scene, and applied according to different online and scene come Intelligent Dynamic distributes broadband, to reach reasonable distribution network speed
Purpose, the embodiment of the present application propose a kind of method for limiting network speed.It should be noted that the limitation network speed of the embodiment of the present application
Method be applied to first terminal (terminal device of such as the embodiment of the present application), which can have bridge module, the bridge
Connection module can be used for being bridged to N number of second terminal in the hot spot networks that the first terminal provides, so that N number of second terminal
The hot spot networks provided using the first terminal.
As shown in Fig. 2, the method for the limitation network speed may include:
S210 determines the maximum downstream rate that the network that first terminal provides can carry.
Optionally, first terminal (such as mobile terminal) can be used as WiFi bridge so that other second terminals using this
The network that one terminal provides.It is detecting that first terminal is being currently used the WiFi bridging functionality of itself, and is passing through WLAN net
After bridging connects router, it can detect the maximum downstream rate R that current WLAN bridge can carry, mentioned with the determination first terminal
The maximum downstream rate that the network of confession can carry, the number N of also statistics available second terminal connection and respectively connection second terminal
IP address information.
S220 receives the network data request message that each second terminal is sent.
It is appreciated that the network request that second terminal is shared by WLAN bridge can be carried out transfer by first terminal to be sent to
The server of corresponding service, therefore, when second terminal sends network data request to service server by WLAN bridge, first
Terminal can receive the network data request message that each second terminal is initiated.
S230 parses the network data request message of each second terminal, with the upper of each second terminal of determination
Network service type.
That is, the WLAN bridge that first terminal provides can pass through as forwarding when second terminal has network request
The network protocol of second terminal is parsed, HOST, Content-Type of protocol type (such as RTP, RTSP), http protocol are obtained
The service features such as field, the IP triple of TCP/UDP stream (wherein, source IP address is second terminal IP address), and according to these
Service feature determines the internet business type of each second terminal.Wherein it is possible to understand, second terminal exists the process for identification
The network data access of which kind of type of service is carried out, such as video uses wechat, game etc..
As an example, the network data request message of each second terminal can be parsed, is obtained each
The service feature of network data request message, and by the service feature of each network data request message with pre-establish
Service feature in type of service home banking is matched, and the online industry of each second terminal is determined according to matching result
Service type.
For example, can parse to the network data request message of obtained each second terminal, each network data is obtained
All types of fields in request message in Transmission Control Protocol or http protocol, the numerical value of all types of fields is service feature value.It lifts
For example, it may be determined that network protocol used in the network data request message of each second terminal, and it is based on network number
According to network protocol used in request message, each network data request message is parsed, obtains each network number
According to the service feature of request message, wherein the service feature includes purpose IP address information, port information, http protocol
One of Host field, URL keyword segment identification are a variety of.
That is, it may be determined that network protocol used in each network data request message, as Transmission Control Protocol or HTTP are assisted
View, and each network data request message is parsed based on Transmission Control Protocol or http protocol, it obtains each network data and asks
Seek the service feature of message, for example, the service feature can for purpose IP address information, port information, http protocol Host field,
URL keyword segment identification etc..
After the service feature for obtaining each network data request message, it may be determined that in the type of service home banking with
The target service feature that the service feature of each network data request message is matched to, and from the type of service home banking
It is middle to search corresponding with the target service feature being matched to type of service, and described in the type of service found is determined as
The internet business type of each second terminal.
That is, can by the request message being resolved to service feature (such as purpose IP address information, port information,
The fields such as http protocol Host field, URL keyword segment identification), it is special with the business in the type of service home banking that pre-establishes
Sign is matched, to match in the determination type of service home banking with the service feature of each network data request message
The target service feature arrived, and lookup is corresponding with the target service feature being matched to from the type of service home banking
Type of service, and the type of service found is determined as to the internet business type of each second terminal, to recognize
Which kind of business is second terminal carrying out.
It should be noted that the type of service home banking, which can be, to be pre-established in one embodiment of the application
's.As an example, as shown in figure 3, what the type of service home banking can be pre-established by following steps:
S310 is based on packet capturing mode, grabs the network packet of multiple business in mobile Internet;
Optionally, by packet catcher (such as WireShark packet catcher) to the network number of mobile Internet mainstream business
Grasping manipulation is carried out according to packet, to obtain multiple network packets for each mainstream business.
S320 determines the type of service of each business;
Optionally, type analysis is carried out to each business, with the type of service of each business of determination, for example plays some game, sees
See some video, access some websites etc..
S330 determines the service feature of each business according to the network packet;
Optionally, the network packet is parsed based on the parsing of various network protocols, to obtain the industry of each business
It is engaged in feature, wherein the service feature may include but be not limited to the IP address of each business, port numbers, the Host field of http agreement,
URL keyword segment identification etc..For example, the service feature that can be resolved to the business is " industry so that type of service is to play game A as an example
The IP address of business is 211.211.211.211;Port information is 443 ".
S340 determines the corresponding relationship between the type of service and service feature of each business;
For example, in the service feature for obtaining each business, " IP address, port numbers, the Host field of http agreement, URL are crucial
When field identification ", the service feature of each business and the corresponding relationship of its type of service foundation can be established.For example service feature is
" IP address of business is 211.211.211.211;Port information is 443 ", and corresponding type of service is " playing game A ".
S350 establishes the type of service according to the type of service of each business, service feature and the corresponding relationship
Home banking.
Optionally, by pair between the type of service and service feature of the type of service of each business and each business
It should be related to and be combined to constitute a structure table, wherein one in the structure table is by type of service and service feature group
At data can be as follows, < type of service, " Host field ", " URL keyword section ", [dstIP1, dstPort1],
[dstIP2,dstPort2],……}>.It as a result, can be using the structure table of composition as the type of service home banking.It can see
Out, include multiple types of service in the type of service home banking, and each type of service corresponds to its service feature, as a result, from
Type of service corresponding with the service feature can be found in the type of service home banking.
S240 carries out Control for Speed Limitation to the network speed of each second terminal according to maximum downstream rate and internet business type.
Optionally, using Linux system TC (Traffic Controller, network bandwidth controller) tool, according to institute
The internet business type that the network maximum downstream rate that can be carried and each second terminal of first terminal offer are provided, to each the
The network speed of two terminals dynamically distribute or Control for Speed Limitation, each online scene of guarantee can meet user's online experience.
As an example, corresponding internet business net can be determined according to the internet business type of each second terminal
The priority orders of fast demand, and according to the priority orders of the internet business network speed demand and the maximum downstream rate,
The network speed of the second terminal is dynamically distributed.
For example, determining that wherein second terminal A internet business type is to play game, on second terminal B or C in addition
Network service type is that can determine the online industry of second terminal A respectively when downloading or seeing that video etc. consumes the type of service of flow
The priority of internet business network speed demand of the priority for network speed demand of being engaged in higher than second terminal B and C, at this point, can be according to online
The priority orders of business network speed demand and the maximum downstream rate carry out dynamic to the network speed of second terminal A, B and C respectively
Distribution, for example, can be quicker by the network speed of second terminal A, more slowly by the network speed of second terminal B and C, to guarantee second terminal A
Network speed supply, wherein assuming that be connected to first terminal offer network in second terminal only include second terminal A, second
Terminal B and second terminal C, the then network that the network speed summation of second terminal A, B and C is no more than that the first terminal provides can carry
Maximum downstream rate.
As another example, the network speed demand of corresponding internet business can be determined according to the internet business type, and
Judge whether the network speed demand of the internet business is greater than preset threshold, if so, according to the maximum downstream rate, to online
The network speed that the network speed demand of business is greater than the second terminal of the preset threshold carries out Control for Speed Limitation.For example, determining wherein the
Two terminal A internet business types are to play game, and second terminal B or C internet business type in addition is to download or seeing view
When the type of service of the consumption flow such as frequency, it can determine that the network speed demand of second terminal B or C are greater than certain threshold value, at this point, needle can be distinguished
Flow is limited to B or C, to guarantee the network speed supply of second terminal A.
According to the method for the limitation network speed of the embodiment of the present application, it can receive the network data that each second terminal is sent and ask
Message is sought, and the network data request message of each second terminal is parsed, with the online industry of each second terminal of determination
Service type, and the maximum downstream rate and internet business type that can be carried according to the network that first terminal provides are whole to each second
The network speed at end carries out Control for Speed Limitation, and thus when terminal device is as bridge, it is different can to recognize other connection equipment
Online application and scene, and applied according to different online and distribute broadband with scene come Intelligent Dynamic, to reach reasonable distribution
The purpose of network speed ensure that each scene can meet user's online experience.
In order to realize that the network speed to application program in each connection equipment for being bridged to first terminal carries out Control for Speed Limitation,
To achieve the purpose that reasonably to distribute network speed, in embodiments herein, it may be determined which of second terminal or which answer
Network data request message has been initiated with program, and these network data request messages have been parsed to determine in second terminal
Each application program internet business type, and according to the internet business type and first terminal of each application program provide network
The maximum downstream rate that can be carried carries out Control for Speed Limitation to the network speed of each application program in second terminal, for example, eventually by second
The application program that network speed demand is excessive in end carries out speed limit, to guarantee the network speed supply of the application program of other second terminals.Tool
Body, as shown in figure 4, the method for the limitation network speed may include:
S410 determines the maximum downstream rate that the network that first terminal provides can carry.
S420 receives the network data request message that each second terminal is sent.
It should be noted that the implementation of the step S410 and S420 is retouched in one embodiment of the application
The description that can be found in the implementation of above-mentioned steps S210 and step S220 is stated, details are not described herein.
S430 determines the mesh of each second terminal according to the network data request message of each second terminal
Application program is marked, the destination application is used to indicate the application program for initiating the network data request message.
That is, it may be determined which application program has initiated network data request message in each second terminal, and will hair
The application program of network data request message has been played as the destination application, has been sent out so as to subsequent according to destination application
The network data request message sent determines the internet business type of the destination application, and then according to the internet business type
Control for Speed Limitation is carried out to destination application in each second terminal.
S440, the network data request message initiated destination application in each second terminal parse,
With the internet business type of destination application in determination each second terminal.
As an example, the network data request message that can be initiated each destination application parses, and obtains every
The service feature of a network data request message, and by the service feature of each network data request message with pre-establish
Type of service home banking in service feature matched, and the upper of each destination application is determined according to matching result
Network service type.
For example, it may be determined that the association of network used in the network data request message of each destination application
View, and based on network protocol used in network data request message, each network data request message is parsed, is obtained
The service feature of each network data request message, wherein the service feature includes purpose IP address information, port letter
One of breath, http protocol Host field, URL keyword segment identification are a variety of.
After the service feature for obtaining each network data request message, it may be determined that in the type of service home banking with
The target service feature that the service feature of each network data request message is matched to, and from the type of service home banking
It is middle to search type of service corresponding with the target service feature being matched to, and the type of service found is determined as each mesh
Mark the internet business type of application program.
It should be noted that the type of service home banking, which can be, to be pre-established in one embodiment of the application
, for example, what the type of service home banking can be pre-established by step as shown in Figure 3.
S450, according to the internet business class of destination application in the maximum downstream rate and each second terminal
Type carries out Control for Speed Limitation to the network speed of destination application in each second terminal.
As an example, it can be determined according to the internet business type of destination application in each second terminal corresponding
The priority orders of internet business network speed demand, and according to the priority orders and the maximum of the internet business network speed demand
Downstream rate dynamically distributes the network speed of destination application in each second terminal.
As another example, the network speed demand of corresponding internet business can be determined according to the internet business type, and
Judge whether the network speed demand of the internet business is greater than preset threshold, if so, according to the maximum downstream rate, to online
The network speed that the network speed demand of business is greater than the destination application of the preset threshold carries out Control for Speed Limitation.
According to the method for the limitation network speed of the embodiment of the present application, it may be determined which of second terminal or which application program
Network data request message has been initiated, and these network data request messages have been parsed to determine respectively answering in second terminal
It can be carried with the internet business type of program, and according to the network that the internet business type and first terminal of each application program provide
Maximum downstream rate, Control for Speed Limitation is carried out to the network speed of each application program in second terminal, for example, by net in second terminal
The excessive application program of fast demand carries out speed limit, to guarantee the network speed supply of the application program of other second terminals, to realize
Control for Speed Limitation is carried out to the network speed for being bridged to application program in each connection equipment of first terminal, to reach reasonable distribution net
The purpose of speed.
In order to realize that the network speed to application program in each connection equipment for being bridged to first terminal carries out Control for Speed Limitation, to reach
Purpose to reasonable distribution network speed optionally in one embodiment of the application, can obtain each second terminal
Historical data, wherein the historical data includes the internet behavior of current second terminal whithin a period of time, and is gone through described in analysis
History data are with the network speed use demand of determination each second terminal, and according to the network speed use demand to described each
The network speed of two terminals is allocated.
That is, the history internet behavior of each second terminal whithin a period of time can be obtained, and in history to these
Net behavior is analyzed, with the network speed use demand of each second terminal of determination, for example, second terminal B is passed through whithin a period of time
Often game is played in online, then can determine the network speed use demand of second terminal B, at this time can be according to the network speed use demand to each second
The network speed of terminal is dynamically distributed, to guarantee the network speed supply of second terminal B.
Corresponding with the limitation method of network speed that above-mentioned several embodiments provide, a kind of embodiment of the application also provides one
The device of kind limitation network speed, due to the device of limitation network speed provided by the embodiments of the present application and the limit of above-mentioned several embodiments offers
The method of network speed processed is corresponding, therefore the embodiment of the method in aforementioned limitation network speed is also applied for limit provided in this embodiment
The device of network speed processed, is not described in detail in the present embodiment.Fig. 5 is the dress according to the limitation network speed of the application one embodiment
The structural schematic diagram set.It should be noted that the device of the limitation network speed of the embodiment of the present application can be applied to first terminal (i.e. originally
Apply for the terminal device of embodiment), the first terminal has bridge module, and the bridge module is used for N number of second terminal
It bridges on the network that the first terminal provides, so that the network that N number of second terminal is provided using the first terminal,
N is positive integer.Wherein, in embodiments herein, the first terminal can be mobile terminal, such as mobile phone, plate electricity
Brain, personal digital assistant etc. have the hardware device of various operating systems.
As shown in figure 5, the device 500 of the limitation network speed may include: that maximum downstream rate determining module 510, message connect
Receive module 520, internet business determination type module 530 and control module 540.
Specifically, maximum downstream rate determining module 510 is used to determine the maximum that the network that first terminal provides can carry
Downstream rate.
Message receiving module 520 is used to receive the network data request message that each second terminal is sent.
Internet business determination type module 530 is used to parse the network data request message of each second terminal,
With the internet business type of each second terminal of determination.As an example, as shown in fig. 6, the internet business type determines mould
Block 530 can include: packet parsing unit 531, matching unit 532 and determination unit 533.Wherein, packet parsing unit 531 is used for
The network data request message of each second terminal is parsed, the business for obtaining each network data request message is special
Sign;Matching unit 532 is used for the service feature of each network data request message and the type of service mark pre-established
The service feature known in library is matched;Determination unit 533 is used to determine each second terminal according to matching result
Network service type.
Optionally, in one embodiment of the application, packet parsing unit 531 can determine each second terminal
Network protocol used in network data request message, and based on network protocol used in network data request message, to every
A network data request message is parsed, and obtains the service feature of each network data request message, wherein the industry
Business feature include one of purpose IP address information, port information, http protocol Host field, URL keyword segment identification or
It is a variety of.
In one embodiment of the application, determination unit 533 can determine in the type of service home banking with it is described every
The target service feature that the service feature of a network data request message is matched to, and searched from the type of service home banking
Type of service corresponding with the target service feature being matched to, and the type of service found is determined as described each
The internet business type of two terminals.
Control module 540 is used to carry out the network speed of each second terminal according to maximum downstream rate and internet business type
Control for Speed Limitation.As an example, control module 540 can be determined according to the internet business type of each second terminal and be corresponded to
Internet business network speed demand priority orders, and according to the priority orders of the internet business network speed demand and it is described most
Big downstream rate dynamically distributes the network speed of the second terminal.
As another example, control module 540 can determine corresponding internet business according to the internet business type
Network speed demand, and judge whether the network speed demand of the internet business is greater than preset threshold, if so, according to the maximum downstream
Rate, the network speed for being greater than the second terminal of the preset threshold to the network speed demand of internet business carry out Control for Speed Limitation.
In order to realize that the network speed to application program in each connection equipment for being bridged to first terminal carries out Control for Speed Limitation,
To achieve the purpose that reasonably to distribute network speed, optionally, in one embodiment of the application, it may be determined which in second terminal
A or which application program has initiated network data request message, and is parsed these network data request messages with determination
The internet business type of each application program in second terminal, and according to the internet business type and first terminal of each application program
The maximum downstream rate that the network of offer can carry carries out Control for Speed Limitation to the network speed of each application program in second terminal, than
Such as, the excessive application program of network speed demand in second terminal is subjected to speed limit, to guarantee the application program of other second terminals
Network speed supply.Specifically, in embodiments herein, internet business determination type module 530 can be according to described each second
The network data request message of terminal determines that the destination application of each second terminal, the destination application are used
The application program of the network data request message is initiated in instruction, and destination application in each second terminal is sent out
The network data request message risen is parsed, with the internet business class of destination application in determination each second terminal
Type.Control module 540 can be according to the online industry of destination application in the maximum downstream rate and each second terminal
Service type carries out Control for Speed Limitation to the network speed of destination application in each second terminal.
According to the device of the limitation network speed of the embodiment of the present application, it can receive the network data that each second terminal is sent and ask
Message is sought, and the network data request message of each second terminal is parsed, with the online industry of each second terminal of determination
Service type, and the maximum downstream rate and internet business type that can be carried according to the network that first terminal provides are whole to each second
The network speed at end carries out Control for Speed Limitation, and thus when terminal device is as bridge, it is different can to recognize other connection equipment
Online application and scene, and applied according to different online and distribute broadband with scene come Intelligent Dynamic, to reach reasonable distribution
The purpose of network speed ensure that each scene can meet user's online experience.
In order to realize above-described embodiment, the application also proposed a kind of terminal device.
Fig. 7 is the structural schematic diagram according to the terminal device of the application one embodiment.As shown in fig. 7, the terminal device
700 may include: memory 710, processor 720 and be stored in the calculating that can be run on memory 710 and on processor 720
Machine program 730 when processor 720 executes described program 730, realizes limitation network speed described in any of the above-described a embodiment of the application
Method.
In order to realize above-described embodiment, the application also proposed a kind of non-transitorycomputer readable storage medium, thereon
It is stored with computer program, limitation net described in any of the above-described a embodiment of the application is realized when described program is executed by processor
The method of speed.
In the description of the present application, it is to be understood that term " first ", " second " are used for description purposes only, and cannot
It is interpreted as indication or suggestion relative importance or implicitly indicates the quantity of indicated technical characteristic.Define as a result, " the
One ", the feature of " second " can explicitly or implicitly include at least one of the features.In the description of the present application, " multiple "
It is meant that at least two, such as two, three etc., unless otherwise specifically defined.
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show
The description of example " or " some examples " etc. means specific features, structure, material or spy described in conjunction with this embodiment or example
Point is contained at least one embodiment or example of the application.In the present specification, schematic expression of the above terms are not
It must be directed to identical embodiment or example.Moreover, particular features, structures, materials, or characteristics described can be in office
It can be combined in any suitable manner in one or more embodiment or examples.In addition, without conflicting with each other, the skill of this field
Art personnel can tie the feature of different embodiments or examples described in this specification and different embodiments or examples
It closes and combines.
Any process described otherwise above or method description are construed as in flow chart or herein, and expression includes
It is one or more for realizing specific logical function or process the step of executable instruction code module, segment or portion
Point, and the range of the preferred embodiment of the application includes other realization, wherein can not press shown or discussed suitable
Sequence, including according to related function by it is basic simultaneously in the way of or in the opposite order, to execute function, this should be by the application
Embodiment person of ordinary skill in the field understood.
Expression or logic and/or step described otherwise above herein in flow charts, for example, being considered use
In the order list for the executable instruction for realizing logic function, may be embodied in any computer-readable medium, for
Instruction execution system, device or equipment (such as computer based system, including the system of processor or other can be held from instruction
The instruction fetch of row system, device or equipment and the system executed instruction) it uses, or combine these instruction execution systems, device or set
It is standby and use.For the purpose of this specification, " computer-readable medium ", which can be, any may include, stores, communicates, propagates or pass
Defeated program is for instruction execution system, device or equipment or the dress used in conjunction with these instruction execution systems, device or equipment
It sets.The more specific example (non-exhaustive list) of computer-readable medium include the following: there is the electricity of one or more wirings
Interconnecting piece (electronic device), portable computer diskette box (magnetic device), random access memory (RAM), read-only memory
(ROM), erasable edit read-only storage (EPROM or flash memory), fiber device and portable optic disk is read-only deposits
Reservoir (CDROM).In addition, computer-readable medium can even is that the paper that can print described program on it or other are suitable
Medium, because can then be edited, be interpreted or when necessary with it for example by carrying out optical scanner to paper or other media
His suitable method is handled electronically to obtain described program, is then stored in computer storage.
It should be appreciated that each section of the application can be realized with hardware, software, firmware or their combination.Above-mentioned
In embodiment, software that multiple steps or method can be executed in memory and by suitable instruction execution system with storage
Or firmware is realized.It, and in another embodiment, can be under well known in the art for example, if realized with hardware
Any one of column technology or their combination are realized: having a logic gates for realizing logic function to data-signal
Discrete logic, with suitable combinational logic gate circuit specific integrated circuit, programmable gate array (PGA), scene
Programmable gate array (FPGA) etc..
Those skilled in the art are understood that realize all or part of step that above-described embodiment method carries
It suddenly is that relevant hardware can be instructed to complete by program, the program can store in a kind of computer-readable storage medium
In matter, which when being executed, includes the steps that one or a combination set of embodiment of the method.
It, can also be in addition, can integrate in a processing module in each functional unit in each embodiment of the application
It is that each unit physically exists alone, can also be integrated in two or more units in a module.Above-mentioned integrated mould
Block both can take the form of hardware realization, can also be realized in the form of software function module.The integrated module is such as
Fruit is realized and when sold or used as an independent product in the form of software function module, also can store in a computer
In read/write memory medium.
Storage medium mentioned above can be read-only memory, disk or CD etc..Although having been shown and retouching above
Embodiments herein is stated, it is to be understood that above-described embodiment is exemplary, and should not be understood as the limit to the application
System, those skilled in the art can be changed above-described embodiment, modify, replace and become within the scope of application
Type.
Claims (17)
1. a kind of method for limiting network speed, which is characterized in that it is applied to first terminal, the first terminal has bridge module,
The bridge module is used to N number of second terminal bridging to the network that the first terminal provides, so that described N number of second is whole
The network provided using the first terminal is held, N is positive integer, which comprises
Determine the maximum downstream rate that the network that the first terminal provides can carry;
Receive the network data request message that each second terminal is sent;
The network data request message of each second terminal is parsed, with the online of determination each second terminal
Type of service;
The network speed of each second terminal is controlled according to the maximum downstream rate and the internet business type.
2. the method as described in claim 1, which is characterized in that the network data to each second terminal requests report
Text is parsed, with the internet business type of determination each second terminal, comprising:
The network data request message of each second terminal is parsed, the industry of each network data request message is obtained
Business feature;
Business in the service feature of each network data request message and the type of service home banking pre-established is special
Sign is matched;
The internet business type of each second terminal is determined according to matching result.
3. method according to claim 2, which is characterized in that the network data to each second terminal requests report
Text is parsed, and the service feature of each network data request message is obtained, comprising:
Determine network protocol used in the network data request message of each second terminal;
Based on network protocol used in network data request message, each network data request message is parsed, is obtained
The service feature of each network data request message, wherein the service feature includes purpose IP address information, port letter
One of breath, http protocol Host field, URL keyword segment identification are a variety of.
4. method according to claim 2, which is characterized in that described to determine each second terminal according to matching result
Internet business type, comprising:
Determine the target being matched in the type of service home banking with the service feature of each network data request message
Service feature;
Type of service corresponding with the target service feature being matched to is searched from the type of service home banking, and will be looked into
The type of service found is determined as the internet business type of each second terminal.
5. the method as described in claim 1, which is characterized in that described according to the maximum downstream rate and the internet business
Type controls the network speed of each second terminal, comprising:
The priority orders of corresponding internet business network speed demand are determined according to the internet business type of each second terminal;
According to the priority orders of the internet business network speed demand and the maximum downstream rate, to the net of the second terminal
Speed is dynamically distributed.
6. the method as described in claim 1, which is characterized in that described according to the maximum downstream rate and the internet business
Type controls the network speed of each second terminal, comprising:
The network speed demand of corresponding internet business is determined according to the internet business type;
Judge whether the network speed demand of the internet business is greater than preset threshold;
If so, being greater than the second end of the preset threshold to the network speed demand of internet business according to the maximum downstream rate
The network speed at end carries out Control for Speed Limitation.
7. such as method described in any one of claims 1 to 6, which is characterized in that the net to each second terminal
Network request of data message is parsed, with the internet business type of determination each second terminal, comprising:
According to the network data request message of each second terminal, the target application journey of each second terminal is determined
Sequence, the destination application are used to indicate the application program for initiating the network data request message;
The network data request message initiated destination application in each second terminal parses, described in determination
The internet business type of destination application in each second terminal;
It is described that the network speed of each second terminal is controlled according to the maximum downstream rate and the internet business type
System, comprising:
According to the internet business type of destination application in the maximum downstream rate and each second terminal, to described
The network speed of destination application carries out Control for Speed Limitation in each second terminal.
8. the method as described in claim 1, which is characterized in that further include:
Obtain the historical data of each second terminal, wherein the historical data includes current second terminal at one section
Interior internet behavior;
The historical data is analyzed with the network speed use demand of determination each second terminal;
It is allocated according to network speed of the network speed use demand to each second terminal.
9. a kind of device for limiting network speed, which is characterized in that it is applied to first terminal, the first terminal has bridge module,
The bridge module is used to N number of second terminal bridging to the network that the first terminal provides, so that described N number of second is whole
The network provided using the first terminal is held, N is positive integer, and described device includes:
Maximum downstream rate determining module, the maximum downstream rate that can be carried for determining the network that the first terminal provides;
Message receiving module, the network data request message sent for receiving each second terminal;
Internet business determination type module is parsed for the network data request message to each second terminal, with
Determine the internet business type of each second terminal;
Control module, for the net according to the maximum downstream rate and the internet business type to each second terminal
Speed is controlled.
10. device as claimed in claim 9, which is characterized in that the internet business determination type module includes:
Packet parsing unit parses for the network data request message to each second terminal, obtains each net
The service feature of network request of data message;
Matching unit, for identifying the service feature of each network data request message with the type of service pre-established
Service feature in library is matched;
Determination unit, for determining the internet business type of each second terminal according to matching result.
11. device as claimed in claim 10, which is characterized in that the packet parsing unit is specifically used for:
Determine network protocol used in the network data request message of each second terminal;
Based on network protocol used in network data request message, each network data request message is parsed, is obtained
The service feature of each network data request message, wherein the service feature includes purpose IP address information, port letter
One of breath, http protocol Host field, URL keyword segment identification are a variety of.
12. device as claimed in claim 10, which is characterized in that the determination unit is specifically used for:
Determine the target being matched in the type of service home banking with the service feature of each network data request message
Service feature;
Type of service corresponding with the target service feature being matched to is searched from the type of service home banking, and will be looked into
The type of service found is determined as the internet business type of each second terminal.
13. device as claimed in claim 9, which is characterized in that the control module is specifically used for:
The priority orders of corresponding internet business network speed demand are determined according to the internet business type of each second terminal;
According to the priority orders of the internet business network speed demand and the maximum downstream rate, to the net of the second terminal
Speed is dynamically distributed.
14. device as claimed in claim 9, which is characterized in that the control module is specifically used for:
The network speed demand of corresponding internet business is determined according to the internet business type;
Judge whether the network speed demand of the internet business is greater than preset threshold;
If so, being greater than the second end of the preset threshold to the network speed demand of internet business according to the maximum downstream rate
The network speed at end carries out Control for Speed Limitation.
15. the device as described in any one of claim 9 to 14, which is characterized in that
The internet business determination type module is specifically used for:
According to the network data request message of each second terminal, the target application journey of each second terminal is determined
Sequence, the destination application are used to indicate the application program for initiating the network data request message, and to described each
The network data request message that destination application is initiated in two terminals is parsed, with mesh in determination each second terminal
Mark the internet business type of application program;
The control module is specifically used for:
According to the internet business type of destination application in the maximum downstream rate and each second terminal, to described
The network speed of destination application carries out Control for Speed Limitation in each second terminal.
16. a kind of terminal device including memory, processor and stores the calculating that can be run on a memory and on a processor
Machine program, which is characterized in that when the processor executes described program, realize such as limit described in any item of the claim 1 to 8
The method of network speed processed.
17. a kind of non-transitorycomputer readable storage medium, is stored thereon with computer program, which is characterized in that the journey
The method such as limitation network speed described in any item of the claim 1 to 8 is realized when sequence is executed by processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810862590.7A CN109120541B (en) | 2018-08-01 | 2018-08-01 | Method, device, terminal equipment and storage medium for limiting network speed |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810862590.7A CN109120541B (en) | 2018-08-01 | 2018-08-01 | Method, device, terminal equipment and storage medium for limiting network speed |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109120541A true CN109120541A (en) | 2019-01-01 |
CN109120541B CN109120541B (en) | 2022-09-09 |
Family
ID=64862512
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810862590.7A Active CN109120541B (en) | 2018-08-01 | 2018-08-01 | Method, device, terminal equipment and storage medium for limiting network speed |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109120541B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110177348A (en) * | 2019-04-22 | 2019-08-27 | 中国移动通信集团河北有限公司 | Flow authentication control method and device |
CN114338543A (en) * | 2022-03-14 | 2022-04-12 | 北京指掌易科技有限公司 | Network access speed limiting method, device, equipment and storage medium |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101902484A (en) * | 2009-05-25 | 2010-12-01 | 北京启明星辰信息技术股份有限公司 | Method and system for classifying local area network http application services |
CN102883449A (en) * | 2012-09-21 | 2013-01-16 | 腾讯科技(深圳)有限公司 | Method, related terminals and system for implementing data sharing |
CN104254083A (en) * | 2013-06-28 | 2014-12-31 | 华为技术有限公司 | Method and device for predicting business hot spots |
CN105159781A (en) * | 2015-08-25 | 2015-12-16 | 广东欧珀移动通信有限公司 | Method and apparatus for adjusting network speed of application of intelligent terminal and intelligent terminal |
CN105704757A (en) * | 2016-01-05 | 2016-06-22 | 广东欧珀移动通信有限公司 | Internet speed control method, device and system and mobile terminal |
CN105915360A (en) * | 2015-10-23 | 2016-08-31 | 乐视致新电子科技(天津)有限公司 | Method for adjusting equipment network speed on router and device and system thereof |
CN106332088A (en) * | 2015-06-28 | 2017-01-11 | 上海无线通信研究中心 | Spectrum sharing method based on user fairness among different operators |
CN106533988A (en) * | 2016-10-26 | 2017-03-22 | 维沃移动通信有限公司 | Control method for network speed of application and mobile terminal |
CN107948093A (en) * | 2017-11-01 | 2018-04-20 | 北京小米移动软件有限公司 | Adjust the method and device that network speed is applied in terminal device |
-
2018
- 2018-08-01 CN CN201810862590.7A patent/CN109120541B/en active Active
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101902484A (en) * | 2009-05-25 | 2010-12-01 | 北京启明星辰信息技术股份有限公司 | Method and system for classifying local area network http application services |
CN102883449A (en) * | 2012-09-21 | 2013-01-16 | 腾讯科技(深圳)有限公司 | Method, related terminals and system for implementing data sharing |
CN104254083A (en) * | 2013-06-28 | 2014-12-31 | 华为技术有限公司 | Method and device for predicting business hot spots |
CN106332088A (en) * | 2015-06-28 | 2017-01-11 | 上海无线通信研究中心 | Spectrum sharing method based on user fairness among different operators |
CN105159781A (en) * | 2015-08-25 | 2015-12-16 | 广东欧珀移动通信有限公司 | Method and apparatus for adjusting network speed of application of intelligent terminal and intelligent terminal |
CN105915360A (en) * | 2015-10-23 | 2016-08-31 | 乐视致新电子科技(天津)有限公司 | Method for adjusting equipment network speed on router and device and system thereof |
CN105704757A (en) * | 2016-01-05 | 2016-06-22 | 广东欧珀移动通信有限公司 | Internet speed control method, device and system and mobile terminal |
CN106533988A (en) * | 2016-10-26 | 2017-03-22 | 维沃移动通信有限公司 | Control method for network speed of application and mobile terminal |
CN107948093A (en) * | 2017-11-01 | 2018-04-20 | 北京小米移动软件有限公司 | Adjust the method and device that network speed is applied in terminal device |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110177348A (en) * | 2019-04-22 | 2019-08-27 | 中国移动通信集团河北有限公司 | Flow authentication control method and device |
CN110177348B (en) * | 2019-04-22 | 2021-03-19 | 中国移动通信集团河北有限公司 | Flow authorization control method and device |
CN114338543A (en) * | 2022-03-14 | 2022-04-12 | 北京指掌易科技有限公司 | Network access speed limiting method, device, equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN109120541B (en) | 2022-09-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109150997A (en) | Internet behavior monitoring method, device, terminal device and storage medium | |
CN108989240A (en) | Method for controlling network flow, device, terminal device and storage medium | |
CN104468401B (en) | A kind of message processing method and device | |
CN106549878A (en) | A kind of service shunting method and device | |
US10284434B1 (en) | Virtual network function (VNF) relocation in a software defined network (SDN) | |
CN103457956B (en) | HTTP streaming media live broadcasting method and system based on multiple TCP links | |
CN105897850A (en) | Response processing method and system and scheduling proxy server for CDN platform | |
CN105099803B (en) | A kind of method for recognizing flux, application server and network element device | |
CN105847264A (en) | Method and system of providing streaming media service | |
CN105099769B (en) | Abnormal operation processing method, equipment and the system of business platform | |
CN106993014A (en) | The method of adjustment of cache contents, apparatus and system | |
CN109982293A (en) | Flow product method for pushing, system, electronic equipment and storage medium | |
CN109120541A (en) | Limit method, apparatus, terminal device and the storage medium of network speed | |
CN109167762A (en) | A kind of IEC104 message checking method and device | |
CN107920108A (en) | A kind of method for pushing of media resource, client and server | |
CN110061892A (en) | Method, system, storage medium and the electronic equipment of real-time display Network status | |
CN107347015A (en) | A kind of recognition methods of content distributing network, apparatus and system | |
CN110061931A (en) | Clustering method, device, system and the computer storage medium of industry control agreement | |
CN105281987B (en) | Router and data uploading method, device, system | |
CN106331106B (en) | Information issuing method and system | |
EP3926922B1 (en) | Over-the-top media service testing and qoe issues isolation | |
CN107592554A (en) | Live video retransmission method and device | |
Lehrieder et al. | Mitigating unfairness in locality‐aware peer‐to‐peer networks | |
CN110096305A (en) | Gray scale dissemination method, device, equipment and storage medium | |
CN105099802B (en) | A kind of method for recognizing flux, terminal and network element 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 |