CN106878412A - Data communications method and device - Google Patents
Data communications method and device Download PDFInfo
- Publication number
- CN106878412A CN106878412A CN201710077216.1A CN201710077216A CN106878412A CN 106878412 A CN106878412 A CN 106878412A CN 201710077216 A CN201710077216 A CN 201710077216A CN 106878412 A CN106878412 A CN 106878412A
- Authority
- CN
- China
- Prior art keywords
- data
- mobile terminal
- proxy server
- packet
- activation
- 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
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/56—Provisioning of proxy services
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/56—Provisioning of proxy services
- H04L67/563—Data redirection of data network streams
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W24/00—Supervisory, monitoring or testing arrangements
- H04W24/02—Arrangements for optimising operational condition
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/24—Accounting or billing
Abstract
The invention discloses a kind of data communications method, comprise the following steps:Corresponding first data of application program of mobile terminal currently operation are obtained, first data are the data for being sent to application server;Based on mobile network by first data is activation to proxy server, for the proxy server by first data is activation to the application server, wherein, the mobile terminal configuration has the orientation flow package bag of the correspondence proxy server.The invention also discloses a kind of data communication equipment.The present invention is effectively reduced the campus network of mobile terminal.
Description
Technical field
The present invention relates to mobile communication technology field, more particularly to a kind of data communications method and device.
Background technology
With developing rapidly for science and technology, the mobile terminal such as smart mobile phone, PAD (panel computer) is had become in user's life
Indispensable equipment, such as, the behaviour such as web page browsing, video-see, wechat chat are can be carried out by using mobile network
Make, brought great convenience to user's life.Due to that can expend certain data traffic when these operations are carried out, user needs
Corresponding campus network is paid, in order to reduce campus network, at present, user can buy the orientation flow package of some applications
Bag, such as wechat orientation flow package bag, Netease's cloud music orientation flow package bag etc., if run these using when disappeared
The flow of consumption is not more than the flow threshold of orientation flow package bag, extra campus network would not be produced, so that flow
Expense decreases.But, the flow that the other application of running of mobile terminal is consumed needs for additional charges, therefore,
Or the campus network of mobile terminal cannot be effectively reduced.
The content of the invention
It is a primary object of the present invention to propose a kind of data communications method and device, it is intended to which solution is moved in the prior art
The campus network of terminal technical problem higher.
To achieve the above object, a kind of data communications method that the present invention is provided, the data communications method includes following
Step:
Corresponding first data of application program of mobile terminal currently operation are obtained, first data are to be sent to answer
With the data of server;
Based on mobile network by first data is activation to proxy server, so that the proxy server is by described
One data is activation to the application server, wherein, the mobile terminal configuration has the oriented flow of the correspondence proxy server
Amount set meal bag.
Preferably, it is described based on mobile network by first data is activation to before the step of proxy server, also wrap
Include:
By first data compression packing, the first packet is generated;
It is described based on mobile network by first data is activation to proxy server, so that the proxy server is by institute
The step of stating the first data is activation to the application server includes:
First packet is sent to the proxy server based on mobile network, for the proxy server solution
First packet is pressed to obtain first data, and by first data is activation to the application server.
Preferably, the data communications method also includes step:
The second packet that the proxy server sends is received, wherein, the proxy server is receiving described answering
During the second data sent with server, by second data compression packing the second packet of generation, and described second is counted
Sent to the mobile terminal according to bag;
Second packet is decompressed, second data are obtained, performed accordingly with according to second data
Operation.
Preferably, it is described obtain mobile terminal currently operation application program corresponding first data the step of include:
Default Microsoft Loopback Adapter in the mobile terminal is called, the application program pair of the mobile terminal currently operation is obtained
The first data answered.
Preferably, it is described obtain mobile terminal currently operation application program corresponding first data the step of after, also
Including:
Detect whether the mobile terminal currently accesses WLAN WLANs;
If the mobile terminal is currently accessed wlan network, based on the wlan network by first data is activation extremely
The application server;
If the mobile terminal does not access wlan network currently, execution is described to be based on mobile network by first data
The step of sending to proxy server.
Additionally, to achieve the above object, the present invention also proposes a kind of data communication equipment, the data communication equipment bag
Include:
Acquisition module, corresponding first data of application program for obtaining mobile terminal currently operation, first number
According to be sent to the data of application server;
Communication module, for based on mobile network by first data is activation to proxy server, for the agency
Server by first data is activation to the application server, wherein, the mobile terminal configuration has the correspondence agency
The orientation flow package bag of server.
Preferably, the data communication equipment also includes:
Processing module, for by first data compression packing, generating the first packet;
The communication module, for first packet to be sent to the proxy server based on mobile network, with
First packet is decompressed for the proxy server obtain first data, and by first data is activation to described
Application server.
Preferably, the communication module, is additionally operable to receive the second packet that the proxy server sends, wherein, institute
Proxy server is stated when the second data that the application server sends are received, second data compression is packed and is generated
Second packet, and second packet is sent to the mobile terminal;
The processing module, is additionally operable to decompress second packet, second data is obtained, with according to institute
State the second data and perform corresponding operation.
Preferably, the acquisition module is used for:
Default Microsoft Loopback Adapter in the mobile terminal is called, the application program pair of the mobile terminal currently operation is obtained
The first data answered.
Preferably, the data communication equipment also includes:
Detection module, for detecting whether the mobile terminal currently accesses wlan network;
The communication module, if being currently accessed wlan network for the mobile terminal, will based on the wlan network
First data is activation is to the application server;If the mobile terminal does not access wlan network currently, based on movement
Network is by first data is activation to proxy server.
Data communications method proposed by the present invention and device, pre-set correspondence when mobile terminal moves network service
Proxy server orientation flow package bag, during running of mobile terminal application program, when getting application program
During corresponding first data, based on mobile network by first data is activation to proxy server, proxy server by this first
Data is activation is to application server.Mobile network is not directly based upon due to mobile terminal to take the first data is activation to application
Business device, but based on mobile network the first data is activation to proxy server, then turned the first data by proxy server
Application server is sent to, so, no matter first data are the corresponding data of what application program, it is right that the flow of consumption is all counted
Answer in the orientation flow package bag of proxy server, therefore, no matter which is applied running of mobile terminal, as long as the flow for being consumed
No more than the flow threshold of orientation flow package bag, just without additional charges again, so as to be effectively reduced the flow of mobile terminal
Expense.
Brief description of the drawings
Fig. 1 is the schematic flow sheet of data communications method first embodiment of the present invention;
Fig. 2 is the schematic flow sheet of data communications method second embodiment of the present invention;
Fig. 3 is the schematic flow sheet of data communications method 3rd embodiment of the present invention;
Fig. 4 is the schematic flow sheet of data communications method fourth embodiment of the present invention;
Fig. 5 is the high-level schematic functional block diagram of data communication equipment first embodiment of the present invention;
Fig. 6 is the high-level schematic functional block diagram of data communication equipment second embodiment of the present invention;
Fig. 7 is the high-level schematic functional block diagram of data communication equipment fourth embodiment of the present invention.
The object of the invention is realized, functional characteristics and advantage will be described further referring to the drawings in conjunction with the embodiments.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
The present invention provides a kind of data communications method, reference picture 1, and Fig. 1 is data communications method first embodiment of the present invention
Schematic flow sheet.
In this embodiment, the data communications method is comprised the following steps:
Step S10, obtains corresponding first data of application program of mobile terminal currently operation, and first data are to treat
Send to the data of application server;
Step S20, based on mobile network by first data is activation to proxy server, for the proxy server
By first data is activation to the application server, wherein, the mobile terminal configuration has the correspondence proxy server
Orientation flow package bag.
With developing rapidly for science and technology, the mobile terminal such as smart mobile phone, PAD (panel computer) is had become in user's life
Indispensable equipment, such as, the behaviour such as web page browsing, video-see, wechat chat are can be carried out by using mobile network
Make, brought great convenience to user's life.Due to that can expend certain data traffic when these operations are carried out, user needs
Corresponding campus network is paid, in order to reduce campus network, at present, user can buy the orientation flow package of some applications
Bag, such as wechat orientation flow package bag, Netease's cloud music orientation flow package bag etc., if run these using when disappeared
The flow of consumption is not more than the flow threshold of orientation flow package bag, extra campus network would not be produced, so that flow
Expense decreases.But, the flow that the other application of running of mobile terminal is consumed needs for additional charges, therefore,
Or the campus network of mobile terminal cannot be effectively reduced.
In order to solve this problem, in the present embodiment, mobile terminal is set and moves corresponding agency during network service
Server, user pre-purchase the orientation flow package bag for pointing to the proxy server, namely mobile terminal configuration has to should
The orientation flow package bag of proxy server.
When a certain application program of running of mobile terminal, treating corresponding to the application program that acquisition for mobile terminal currently runs
Send to the data of corresponding application server.For the ease of description, the number of corresponding application server will be hereafter sent to
Represented according to the first data.
Alternatively, the step S10 includes:
Step a, calls default Microsoft Loopback Adapter in the mobile terminal, obtains the application of the mobile terminal currently operation
Corresponding first data of program.
Alternatively, a Microsoft Loopback Adapter is preset with the present embodiment, in mobile terminal, when running of mobile terminal application program
When, call the Microsoft Loopback Adapter to rob corresponding first data of application program for taking current operation.It will be appreciated by those skilled in the art that
, the mode of the data of acquisition for mobile terminal first is not limited to call Microsoft Loopback Adapter, it is also possible to obtain by other means
One data, such as carry out HOOK, setting mobile terminal to mobile terminal application layer network interface and locally forward proxy module etc.
Obtain the first data, for obtain the first data mode this is not restricted.
After acquisition for mobile terminal to the first data, based on mobile network by first data is activation to agency service
Device.When proxy server receives first data, the application institute that the first data is activation to the mobile terminal is currently run
Corresponding application server.After application server receives first data of proxy server transmission, according to first number
According to, perform corresponding response operation, such as, return to corresponding response data, or by first data forwarding to other users
Corresponding other mobile terminals etc..
Mobile network is not directly based upon due to mobile terminal by the first data is activation to application server, but is based on
Mobile network the first data is activation to proxy server, then by proxy server by the first data forwarding to application service
Device, so, no matter first data are the corresponding data of what application program, no matter namely mobile terminal currently operation which
Using, the flow of consumption is all counted in the orientation flow package bag of correspondence proxy server, therefore, as long as the flow for being consumed is not
More than the flow threshold of orientation flow package bag, just without additional charges again, so as to be effectively reduced the traffic fee of mobile terminal
With.
Below by taking wechat application as an example, data communications method of the invention is described in detail:
When user will carry out wechat with a certain good friend to communicate, user is based on mobile terminal input and is sent to the micro- of the good friend
Letter message, the wechat message of acquisition for mobile terminal user input is then based on mobile network and sends to agency the wechat message
Server.When proxy server receives the wechat message, then the wechat message is forwarded to wechat application server.When micro-
When letter application server receives the wechat message, the wechat message is sent corresponding to user good friend by wechat application server
Mobile terminal, so as to receive the wechat message for the good friend of user.
The scheme that the present embodiment is provided, pre-sets mobile terminal and moves corresponding proxy server during network service
Orientation flow package bag, during running of mobile terminal application program, when get application program it is corresponding first number
According to when, based on mobile network by first data is activation to proxy server, proxy server is by first data is activation to should
Use server.Mobile network is not directly based upon due to mobile terminal by the first data is activation to application server, but base
In mobile network the first data is activation to proxy server, then by proxy server by the first data forwarding to application service
Device, so, no matter first data are the corresponding data of what application program, the flow of consumption all counts correspondence proxy server
Orientation flow package bag in, therefore, though running of mobile terminal which application, as long as the flow for being consumed be no more than oriented flow
The flow threshold of set meal bag is measured, just without additional charges again, so as to be effectively reduced the campus network of mobile terminal.
Further, as shown in Fig. 2 proposing data communications method second embodiment of the present invention based on first embodiment,
In the present embodiment, before the step S20, also include:
Step S30, by first data compression packing, generates the first packet;
The step S20 includes:
Step S21, is sent to the proxy server first packet based on mobile network, for the agency
Server decompresses first packet and obtains first data, and by first data is activation to the application service
Device.
Further, in order to reduce the flow that mobile terminal is consumed during application program is run, the present embodiment
In, after acquisition for mobile terminal to corresponding first data of application program of current operation, mobile terminal is by first data
It is compressed packing, the corresponding packet of the first data of generation.For the ease of description, hereafter first is represented with the first packet
The corresponding packet of data.
Afterwards, mobile terminal is sent to proxy server the first packet for generating based on mobile network, when agency takes
When business device receives first packet, first packet is decompressed, get the first data.Then, agency service
First data is activation to application server is performed corresponding response operation by device by application server according to first data.
The scheme that the present embodiment is provided, during running of mobile terminal application program, when getting application program pair
During the first data answered, first first data compression is packed, generate corresponding first packet, being then based on mobile network will
First packet is sent to proxy server, and first packet decompression is got the first data by proxy server, then
By the first data is activation to application server.Because the first data are to be compressed to be packaged into corresponding first packet and be transmitted
, therefore, reduce the flow that mobile terminal is consumed during application program is run.
Further, as shown in figure 3, proposing data communications method of the present invention the based on first embodiment or second embodiment
Three embodiments, in the present embodiment, the data communications method also includes step:
Step S40, receives the second packet that the proxy server sends, wherein, the proxy server is being received
During the second data sent to the application server, second data compression packing is generated into the second packet, and by institute
The second packet is stated to send to the mobile terminal;
Step S50, decompresses to second packet, second data is obtained, with according to second data
Perform corresponding operation.
In the first embodiment and the second embodiment, all relate to the situation of the first data is activation to application server,
And in a practical situation, also application server by the situation of corresponding data is activation to mobile terminal, in the present embodiment, just
This situation is described in detail.For the ease of description, application server is hereafter sent to the corresponding data of mobile terminal
Represented with the second data.
Specifically, in the present embodiment, second data are not sent directly to mobile terminal by application server, but
By second data is activation to proxy server.When proxy server receives second data, second data are carried out
Compression packing, the corresponding packet of the second data of generation.For the ease of description, the second data are hereafter represented with the second packet
Corresponding packet.Then, proxy server sends to mobile terminal second packet.
Mobile terminal is based on the second packet that mobile network's Receiving Agent server sends, when receiving second data
Bao Shi, mobile terminal is decompressed to second packet, gets the second data.Afterwards, can be performed according to second data
Corresponding operation, such as, show second data etc..
It is understood that when proxy server receives the second data of application server transmission, proxy server
Second data compression can not also be packed, but directly by second data is activation to mobile terminal, mobile terminal is based on
Mobile network receives second data.
The scheme that the present embodiment is provided, when application server will send the second data to mobile terminal, application server
Second data are not sent directly to mobile terminal, but by second data is activation to proxy server, proxy server
Second data are compressed with packing, corresponding second packet is generated, then second packet is sent to movement eventually
End, mobile terminal is based on the second packet that mobile network's Receiving Agent server sends, and then decompresses the acquisition of the second packet
To the second data.Therefore, the flow that mobile terminal is consumed in this scenario remains the orientation for counting correspondence proxy server
In flow package bag, so as to further be effectively reduced the campus network of mobile terminal.
Further, as shown in figure 4, proposing that data communications method the 4th of the present invention is implemented based on any of the above-described embodiment
Example, in the present embodiment, after the step S10, also includes:
Step S60, detects whether the mobile terminal currently accesses wlan network;If so, then performing step S70;If it is not,
Then perform the step S20.
Step S70, based on the wlan network by first data is activation to the application server.
In order to further reduce the flow that mobile terminal is consumed during application program is run, the present embodiment
In, after acquisition for mobile terminal is to the first data for being sent to application server, first detect whether mobile terminal currently accesses
WLAN (Wireless Local Area Networks, WLAN) network.If mobile terminal is currently accessed wlan network,
Then mobile terminal is directly based upon wlan network by the first data is activation to application server.If mobile terminal does not access WLAN currently
Network, namely mobile terminal cannot currently use wlan network, and now, mobile terminal is again sent out the first data based on mobile network
Proxy server is delivered to, by proxy server by first data is activation to application server.
Alternatively, when mobile terminal does not currently access wlan network, the first data compression is first packed and given birth to by mobile terminal
Into the first packet, it is then based on mobile network and sends to proxy server the first packet.By proxy server by this
After one packet decompression gets the first data, by first data is activation to application server.
The scheme that the present embodiment is provided, mobile terminal get current operation corresponding first data of application program it
Afterwards, first whether detection mobile terminal currently accesses wlan network, if mobile terminal is currently accessed wlan network, mobile terminal is straight
Connect the first data is activation to application server based on wlan network;If mobile terminal does not access wlan network currently, move
Terminal is based on mobile network by the first data is activation to proxy server, is extremely applied first data is activation by proxy server
Server.Therefore, when mobile terminal is currently accessed wlan network, mobile network is not just used, so as to reduce further shifting
The flow that dynamic terminal is consumed during application program is run.
The present invention provides a kind of data communication equipment.
Reference picture 5, Fig. 5 is the high-level schematic functional block diagram of data communication equipment first embodiment of the present invention.
It is emphasized that it will be apparent to those skilled in the art that functional block diagram shown in Fig. 5 is only one preferably real
The exemplary plot of example is applied, those skilled in the art can be carried out new easily around the functional module of the data communication equipment shown in Fig. 5
Functional module supplement;The title of each functional module is self-defined title, is only used for aiding in understanding the data communication equipment
Each program function block, is not used in restriction technical scheme, and the core of technical solution of the present invention is, each self-defined title
The function to be reached of functional module.
In the present embodiment, the data communication equipment includes:
Acquisition module 10, corresponding first data of application program for obtaining mobile terminal currently operation, described first
Data are the data for being sent to application server;
Communication module 20, for based on mobile network by first data is activation to proxy server, for the generation
Server is managed by first data is activation to the application server, wherein, the mobile terminal configuration has the correspondence generation
Manage the orientation flow package bag of server.
With developing rapidly for science and technology, the mobile terminal such as smart mobile phone, PAD (panel computer) is had become in user's life
Indispensable equipment, such as, the behaviour such as web page browsing, video-see, wechat chat are can be carried out by using mobile network
Make, brought great convenience to user's life.Due to that can expend certain data traffic when these operations are carried out, user needs
Corresponding campus network is paid, in order to reduce campus network, at present, user can buy the orientation flow package of some applications
Bag, such as wechat orientation flow package bag, Netease's cloud music orientation flow package bag etc., if run these using when disappeared
The flow of consumption is not more than the flow threshold of orientation flow package bag, extra campus network would not be produced, so that flow
Expense decreases.But, the flow that the other application of running of mobile terminal is consumed needs for additional charges, therefore,
Or the campus network of mobile terminal cannot be effectively reduced.
In order to solve this problem, in the present embodiment, mobile terminal is set and moves corresponding agency during network service
Server, user pre-purchase the orientation flow package bag for pointing to the proxy server, namely mobile terminal configuration has to should
The orientation flow package bag of proxy server.Also, data communication equipment is applied to mobile terminal, alternatively, the data communication
Device is arranged in mobile terminal.
When a certain application program of running of mobile terminal, acquisition module 10 is obtained corresponding to the application program of current operation
It is sent to the data of corresponding application server.For the ease of description, will hereafter corresponding application server be sent to
Data are represented with the first data.
Alternatively, the acquisition module 10 is used for:
Default Microsoft Loopback Adapter in the mobile terminal is called, the application program pair of the mobile terminal currently operation is obtained
The first data answered.
Alternatively, a Microsoft Loopback Adapter is preset with the present embodiment, in mobile terminal, when running of mobile terminal application program
When, acquisition module 10 calls the Microsoft Loopback Adapter to rob corresponding first data of application program for taking current operation.People in the art
Member is it is understood that the mode that acquisition module 10 obtains the first data is not limited to call Microsoft Loopback Adapter, it is also possible to by other
Mode obtains the first data, such as HOOK is carried out to mobile terminal application layer network interface, mobile terminal is set and is locally forwarded
Proxy module etc. obtains the first data, and for the mode that obtains first data, this is not restricted.
After acquisition module 10 gets the first data, communication module 20 is based on mobile network by first data is activation
To proxy server.When proxy server receives first data, the first data is activation to the mobile terminal is currently transported
Application server corresponding to capable application.After application server receives first data of proxy server transmission, root
According to first data, corresponding response operation is performed, such as, return to corresponding response data, or by first data forwarding
To corresponding other mobile terminals of other users etc..
Because communication module 20 is not directly based upon mobile network by the first data is activation to application server, but base
In mobile network the first data is activation to proxy server, then by proxy server by the first data forwarding to application service
Device, so, no matter first data are the corresponding data of what application program, no matter namely mobile terminal currently operation which
Using, the flow of consumption is all counted in the orientation flow package bag of correspondence proxy server, therefore, as long as the flow for being consumed is not
More than the flow threshold of orientation flow package bag, just without additional charges again, so as to be effectively reduced the traffic fee of mobile terminal
With.
Below by taking wechat application as an example, data communication equipment of the invention is described in detail:
When user will carry out wechat with a certain good friend to communicate, user is based on mobile terminal input and is sent to the micro- of the good friend
Letter message, acquisition module 10 obtains the wechat message of user input, and then communication module 20 is disappeared the wechat based on mobile network
Breath is sent to proxy server.When proxy server receives the wechat message, then by the wechat message be forwarded to wechat should
Use server.When wechat application server receives the wechat message, wechat application server by the wechat message send to
The corresponding mobile terminal of user good friend, so as to receive the wechat message for the good friend of user.
The scheme that the present embodiment is provided, pre-sets mobile terminal and moves corresponding proxy server during network service
Orientation flow package bag, during running of mobile terminal application program, when acquisition module 10 gets application program pair
During the first data answered, communication module 20 is based on mobile network by first data is activation to proxy server, proxy server
By first data is activation to application server.The first data are sent out because communication module 20 is not directly based upon mobile network
Application server is delivered to, but based on mobile network the first data is activation to proxy server, then will by proxy server
First data forwarding to application server, so, no matter first data are the corresponding data of what application program, the stream of consumption
Amount is all counted in the orientation flow package bag of correspondence proxy server, therefore, no matter which is applied running of mobile terminal, as long as institute
The flow of consumption is no more than the flow threshold of orientation flow package bag, just without additional charges again, so as to be effectively reduced movement
The campus network of terminal.
Further, as shown in fig. 6, proposing data communication equipment second embodiment of the present invention based on first embodiment,
In the present embodiment, the data communication equipment also includes:
Processing module 30, for by first data compression packing, generating the first packet;
The communication module 20, for first packet to be sent to the proxy server based on mobile network,
First data are obtained so that the proxy server decompresses first packet, and by first data is activation to institute
State application server.
Further, in order to reduce the flow that mobile terminal is consumed during application program is run, the present embodiment
In, after acquisition module 10 gets corresponding first data of application program of current operation, processing module 30 by this first
Data are compressed packing, the corresponding packet of the first data of generation.For the ease of description, hereafter represented with the first packet
The corresponding packet of first data.
Afterwards, communication module 20 is sent to proxy server the first packet for generating based on mobile network, works as agency
When server receives first packet, first packet is decompressed, get the first data.Then, agency's clothes
First data is activation to application server is performed corresponding response behaviour by business device by application server according to first data
Make.
The scheme that the present embodiment is provided, during running of mobile terminal application program, when acquisition module 10 gets
During corresponding first data of application program, processing module 30 first packs first data compression, generates corresponding first data
Bag, then communication module 20 be based on mobile network and send to proxy server first packet, proxy server by this
One packet decompression gets the first data, then by the first data is activation to application server.Because the first data are to be pressed
Contracting be packaged into what corresponding first packet was transmitted, therefore, reduce mobile terminal run application program during
The flow for being consumed.
Further, data communication equipment 3rd embodiment of the present invention is proposed based on second embodiment, in the present embodiment,
The communication module 20 is additionally operable to:
The second packet that the proxy server sends is received, wherein, the proxy server is receiving described answering
During the second data sent with server, by second data compression packing the second packet of generation, and described second is counted
Sent to the mobile terminal according to bag;
The processing module 30 is additionally operable to:
Second packet is decompressed, second data are obtained, performed accordingly with according to second data
Operation.
In the first embodiment and the second embodiment, all relate to the situation of the first data is activation to application server,
And in a practical situation, also application server by the situation of corresponding data is activation to mobile terminal, in the present embodiment, just
This situation is described in detail.For the ease of description, application server is hereafter sent to the corresponding data of mobile terminal
Represented with the second data.
Specifically, in the present embodiment, second data are not sent directly to mobile terminal by application server, but
By second data is activation to proxy server.When proxy server receives second data, second data are carried out
Compression packing, the corresponding packet of the second data of generation.For the ease of description, the second data are hereafter represented with the second packet
Corresponding packet.Then, proxy server sends to mobile terminal second packet.
Communication module 20 be based on mobile network's Receiving Agent server send the second packet, when receive this second number
During according to bag, processing module 30 pairs second packet is decompressed, and gets the second data.Afterwards, processing module 30 can basis
Second data, perform corresponding operation, such as, show second data etc..
It is understood that when proxy server receives the second data of application server transmission, proxy server
Second data compression can not also be packed, but directly by second data is activation to mobile terminal, the base of communication module 20
Second data are received in mobile network.
The scheme that the present embodiment is provided, when application server will send the second data to mobile terminal, application server
Second data are not sent directly to mobile terminal, but by second data is activation to proxy server, proxy server
Second data are compressed with packing, corresponding second packet is generated, then second packet is sent to movement eventually
End, communication module 20 is based on the second packet that mobile network's Receiving Agent server sends, then the decompression of processing module 30 the
Two packets get the second data.Therefore, the flow that mobile terminal is consumed in this scenario is remained and counts correspondence agency
In the orientation flow package bag of server, so as to further be effectively reduced the campus network of mobile terminal.
Further, as shown in fig. 7, proposing that data communication equipment the 4th of the present invention is implemented based on any of the above-described embodiment
Example, in the present embodiment, the data communication equipment also includes:
Detection module 40, for detecting whether the mobile terminal currently accesses wlan network;
The communication module 20, if being currently accessed wlan network for the mobile terminal, based on the wlan network
By first data is activation to the application server;If the mobile terminal does not access wlan network currently, based on shifting
Network is moved by first data is activation to proxy server.
In order to further reduce the flow that mobile terminal is consumed during application program is run, the present embodiment
In, after acquisition module 10 gets the first data for being sent to application server, detection module 40 first detects mobile terminal
Currently whether access WLAN (Wireless Local Area Networks, WLAN) network.If mobile terminal is current
Wlan network is accessed, then communication module 20 is directly based upon wlan network by the first data is activation to application server;If mobile whole
Wlan network is not currently accessed in end, then communication module 20 is based on mobile network by the first data is activation to proxy server, by generation
Server is managed by first data is activation to application server.
Alternatively, when mobile terminal does not currently access wlan network, processing module 30 first packs the first data compression
The first packet is generated, then communication module 20 is sent to proxy server the first packet based on mobile network.By acting on behalf of
After first packet decompression is got the first data by server, by first data is activation to application server.
The scheme that the present embodiment is provided, acquisition module 10 is getting corresponding first data of application program of current operation
Afterwards, detection module 40 first detects whether mobile terminal currently accesses wlan network, if mobile terminal is currently accessed wlan network,
Then communication module 20 is directly based upon wlan network by the first data is activation to application server;If mobile terminal is not accessed currently
Wlan network, then communication module 20 be based on mobile network by the first data is activation to proxy server, should by proxy server
First data is activation is to application server.Therefore, when mobile terminal is currently accessed wlan network, mobile network is not just used,
So as to reduce further the flow that mobile terminal is consumed during application program is run.
It should be noted that herein, term " including ", "comprising" or its any other variant be intended to non-row
His property is included, so that process, method, article or device including a series of key elements not only include those key elements, and
And also include other key elements being not expressly set out, or also include for this process, method, article or device institute are intrinsic
Key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that including this
Also there is other identical element in the process of key element, method, article or device.
The embodiments of the present invention are for illustration only, and the quality of embodiment is not represented.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases
The former is more preferably implementation method.Based on such understanding, technical scheme is substantially done to prior art in other words
The part for going out contribution can be embodied in the form of software product, and the computer software product is stored in a storage medium
In (such as ROM/RAM, magnetic disc, CD), including some instructions are used to so that a station terminal equipment (can be mobile phone, computer, clothes
Business device, or the network equipment etc.) perform method described in each embodiment of the invention.
The preferred embodiments of the present invention are these are only, the scope of the claims of the invention is not thereby limited, it is every to utilize this hair
Equivalent structure or equivalent flow conversion that bright specification and accompanying drawing content are made, or directly or indirectly it is used in other related skills
Art field, is included within the scope of the present invention.
Claims (10)
1. a kind of data communications method, it is characterised in that the data communications method includes step:
Corresponding first data of application program of mobile terminal currently operation are obtained, first data are to be sent to using clothes
The data of business device;
Based on mobile network by first data is activation to proxy server, so that the proxy server is counted described first
According to transmission to the application server, wherein, the mobile terminal configuration has the orientation flow set of the correspondence proxy server
Meal bag.
2. data communications method as claimed in claim 1, it is characterised in that it is described based on mobile network by first data
Send to before the step of proxy server, also include:
By first data compression packing, the first packet is generated;
It is described based on mobile network by first data is activation to proxy server, so that the proxy server is by described
The step of one data is activation to application server, includes:
First packet is sent to the proxy server based on mobile network, so that the proxy server decompresses institute
State the first packet and obtain first data, and by first data is activation to the application server.
3. data communications method as claimed in claim 2, it is characterised in that the data communications method also includes step:
The second packet that the proxy server sends is received, wherein, the proxy server is receiving the application clothes
During the second data that business device sends, second data compression packing is generated into the second packet, and by second packet
Send to the mobile terminal;
Second packet is decompressed, second data are obtained, corresponding behaviour is performed with according to second data
Make.
4. data communications method as claimed in claim 1, it is characterised in that the application of the acquisition mobile terminal currently operation
The step of program corresponding first data, includes:
Default Microsoft Loopback Adapter in the mobile terminal is called, the application program for obtaining the mobile terminal currently operation is corresponding
First data.
5. the data communications method as described in claim any one of 1-4, it is characterised in that the acquisition mobile terminal is currently transported
After the step of capable application program corresponding first data, also include:
Detect whether the mobile terminal currently accesses WLAN WLANs;
If the mobile terminal is currently accessed wlan network, based on the wlan network by first data is activation to described
Application server;
If the mobile terminal does not access wlan network currently, execution is described to be based on mobile network by first data is activation
The step of to proxy server.
6. a kind of data communication equipment, it is characterised in that the data communication equipment includes:
Acquisition module, for obtaining corresponding first data of application program that mobile terminal currently runs, first data are
It is sent to the data of application server;
Communication module, for based on mobile network by first data is activation to proxy server, for the agency service
Device by first data is activation to the application server, wherein, the mobile terminal configuration has the correspondence agency service
The orientation flow package bag of device.
7. data communication equipment as claimed in claim 6, it is characterised in that the data communication equipment also includes:
Processing module, for by first data compression packing, generating the first packet;
The communication module, for being sent to the proxy server first packet based on mobile network, for institute
State proxy server and decompress first packet and obtain first data, and by first data is activation to the application
Server.
8. data communication equipment as claimed in claim 7, it is characterised in that the communication module, is additionally operable to receive the generation
The second packet that reason server sends, wherein, the proxy server is receiving the application server sends second
During data, by second data compression packing the second packet of generation, and second packet is sent to the movement
Terminal;
The processing module, is additionally operable to decompress second packet, obtains second data, with according to described the
Two data perform corresponding operation.
9. data communication equipment as claimed in claim 6, it is characterised in that the acquisition module is used for:
Default Microsoft Loopback Adapter in the mobile terminal is called, the application program for obtaining the mobile terminal currently operation is corresponding
First data.
10. the data communication equipment as described in claim any one of 6-9, it is characterised in that the data communication equipment is also wrapped
Include:
Detection module, for detecting whether the mobile terminal currently accesses wlan network;
The communication module, if being currently accessed wlan network for the mobile terminal, will be described based on the wlan network
First data is activation is to the application server;If the mobile terminal does not access wlan network currently, based on mobile network
By first data is activation to proxy server.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710077216.1A CN106878412B (en) | 2017-02-13 | 2017-02-13 | Data communication method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710077216.1A CN106878412B (en) | 2017-02-13 | 2017-02-13 | Data communication method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106878412A true CN106878412A (en) | 2017-06-20 |
CN106878412B CN106878412B (en) | 2020-11-13 |
Family
ID=59167517
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710077216.1A Active CN106878412B (en) | 2017-02-13 | 2017-02-13 | Data communication method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106878412B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114245324A (en) * | 2020-09-09 | 2022-03-25 | 中国移动通信集团安徽有限公司 | Data flow reminding method and device, computer equipment and readable storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104506644A (en) * | 2014-12-30 | 2015-04-08 | 北京奇虎科技有限公司 | Method, device and mobile terminal for accessing network data |
CN104902452A (en) * | 2015-06-30 | 2015-09-09 | 北京奇虎科技有限公司 | Mobile terminal and network access method thereof |
CN104902433A (en) * | 2015-06-30 | 2015-09-09 | 北京奇虎科技有限公司 | Method for accessing network by application program in mobile terminal, distribution server and system |
CN104936159A (en) * | 2015-06-18 | 2015-09-23 | 广东隆之源科技有限公司 | Device and method for lowering traffic charge of mobile terminal |
CN105357019A (en) * | 2015-11-04 | 2016-02-24 | 江西掌中无限网络科技股份有限公司 | Intelligent directional traffic cost relief method and system |
CN106101177A (en) * | 2016-05-27 | 2016-11-09 | 北京小米移动软件有限公司 | Network access method and device |
-
2017
- 2017-02-13 CN CN201710077216.1A patent/CN106878412B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104506644A (en) * | 2014-12-30 | 2015-04-08 | 北京奇虎科技有限公司 | Method, device and mobile terminal for accessing network data |
CN104936159A (en) * | 2015-06-18 | 2015-09-23 | 广东隆之源科技有限公司 | Device and method for lowering traffic charge of mobile terminal |
CN104902452A (en) * | 2015-06-30 | 2015-09-09 | 北京奇虎科技有限公司 | Mobile terminal and network access method thereof |
CN104902433A (en) * | 2015-06-30 | 2015-09-09 | 北京奇虎科技有限公司 | Method for accessing network by application program in mobile terminal, distribution server and system |
CN105357019A (en) * | 2015-11-04 | 2016-02-24 | 江西掌中无限网络科技股份有限公司 | Intelligent directional traffic cost relief method and system |
CN106101177A (en) * | 2016-05-27 | 2016-11-09 | 北京小米移动软件有限公司 | Network access method and device |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114245324A (en) * | 2020-09-09 | 2022-03-25 | 中国移动通信集团安徽有限公司 | Data flow reminding method and device, computer equipment and readable storage medium |
CN114245324B (en) * | 2020-09-09 | 2023-04-07 | 中国移动通信集团安徽有限公司 | Data flow reminding method and device, computer equipment and readable storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN106878412B (en) | 2020-11-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR100695475B1 (en) | Radio terminal with browser | |
CN108684073A (en) | It is a kind of registration and session establishment method, terminal and AMF entities | |
US20190349811A1 (en) | Data transmission method, sending device and receiving device | |
CN106411560A (en) | Data transmission method and device | |
CN103581248A (en) | Method and device for providing content distribution network CDN service | |
EP1847137B1 (en) | Implementation of a session based service in a mobile communication network | |
JP2002543676A5 (en) | ||
CN108738071A (en) | A kind of method and device that resource is established | |
CN100452656C (en) | Arrangement for application message decompression | |
CN107800597A (en) | Data transmission method, device and the computer-readable recording medium of home appliance | |
CN107969165A (en) | Quickly access telecommunications tunnel clone | |
WO2022237566A1 (en) | System and method for transmitting rich media information during call, and device | |
GB2364486A (en) | Information retrieval, in particular via a wireless link,in accordance with cl ient capabilities | |
CN105828387B (en) | A kind of wireless communication system, method for processing business and device | |
CN106878412A (en) | Data communications method and device | |
KR100729654B1 (en) | Radio terminal with browser | |
CN107277882A (en) | A kind of data routing method, device and base station | |
CN101312566A (en) | Method for mobile phone to download large resource | |
CN108076535A (en) | Control method, device, terminal and the storage medium of wireless heterogeneous networks connection | |
CN110035465A (en) | A kind of data transmission method, device, equipment and computer readable storage medium | |
CN107612957A (en) | The method and system of channel transmission downlink data, client, server | |
CN107529186A (en) | The method and system of channel transmission upstream data, client, server | |
CN109039928A (en) | Transmission method, device and the Wireless Fidelity router of data | |
Beji et al. | An overview of mobile applications architecture and the associated technologies | |
CN104283927A (en) | Information real-time sharing method based on wireless local area network |
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 |