CN106657217A - Routing device-based APP downloading and caching method - Google Patents
Routing device-based APP downloading and caching method Download PDFInfo
- Publication number
- CN106657217A CN106657217A CN201610834035.4A CN201610834035A CN106657217A CN 106657217 A CN106657217 A CN 106657217A CN 201610834035 A CN201610834035 A CN 201610834035A CN 106657217 A CN106657217 A CN 106657217A
- Authority
- CN
- China
- Prior art keywords
- caching
- routing device
- app
- network
- rule
- 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.)
- Pending
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
- H04L67/568—Storing data temporarily at an intermediate stage, e.g. caching
- H04L67/5681—Pre-fetching or pre-delivering data based on network characteristics
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/14—Details of searching files based on file metadata
- G06F16/148—File search processing
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/17—Details of further file system functions
- G06F16/172—Caching, prefetching or hoarding of files
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/955—Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L49/00—Packet switching elements
- H04L49/25—Routing or path finding in a switch fabric
- H04L49/252—Store and forward routing
-
- 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/01—Protocols
- H04L67/06—Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
-
- 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/568—Storing data temporarily at an intermediate stage, e.g. caching
- H04L67/5682—Policies or rules for updating, deleting or replacing the stored data
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Databases & Information Systems (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Library & Information Science (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The invention discloses a routing device-based APP downloading and caching method comprising the following steps: in a first step, network caching service is deployed on a routing device; in a second step, a processing script file is deployed on the routing device; in a third step, network agent service is deployed on the routing device; in a fourth step, an APP downloading URL request is sent to the routing device via a network browser after an intelligent terminal accesses the routing device via wireless WiFi, the URL request is identified via a processing script of the routing device, and the URL request which conforms with caching rules and network agent forwarding rules is forwarded to the network caching service; in a fifth step, according to the URL request, the network caching service searches for a corresponding cached APP installation file in a cache file system index; in a sixth step, the intelligent terminal receives the APP installation file upon response by the routing device via a wireless WiFi network, and a user is reminded to install the APP. Via the method disclosed in the invention, external network uplink flows can be saved, response speed can be improved, and APP downloading speed can be enhanced.
Description
Technical field
The present invention relates to a kind of method that APP based on routing device downloads caching.
Background technology
At present the mobile communication route system of exploitation, only provides uplink network passage, not under smart mobile phone APP
Carry the function that caching is provided;
And limited by domestic mobile communications network rate, completely APP is downloaded by network, the substantial amounts of network of user will be consumed
Cost;
The in addition impact of limited telecom operators' base station construction and planning, uplink network speed is more unstable, APP files at least 2,
30000000, at most up to a hundred million, download the often unstable situations of Jing;
In view of this, the present invention proposes a kind of method that APP based on routing device downloads caching, and thus this case produces.
The content of the invention
It is an object of the present invention to provide a kind of method that APP based on routing device downloads caching, using route
The forwarded and routing function of device, carries out local parsing and is redirected to cache file to request target address, so as to reach section
About outer net uplink traffic, accelerates the effect of response speed, improves the speed of APP downloads.
To achieve these goals, technical scheme is as follows:
A kind of method that APP based on routing device downloads caching, comprises the following steps:
Step 1, the deployment network-caching service on routing device, deployment content includes allocating cache rule and caches file system
Index rule, the caching rule includes URL request matched rule, cache file system, cache size and time, the cache file
The conversion map rule of system index rule including file path in URL request and cache file system, by caching rule and
Cache file system index rule guarantees that subsequent URL requests can hit the A PP installation files of caching;
Step 2, on routing device deployment process script file, process script file be used for recognize and change dynamic URL please
Ask, and the parameter that dynamic in URL request is produced is removed, it is ensured that the URL request matched rule of network-caching service can hit
The APP installation files of caching;
Step 3, external network proxy services are disposed on routing device, deployment content is Configuration network agency's forwarding rule, the network
Agency's forwarding rule includes source IP section, URL request matched rule, Target IP section, process script file path, by the network
Agency's forwarding rule guarantees that routing device can intercept response URL request, and execution is redirected to network-caching service, and guarantees
Subsequent URL requests can hit the APP installation files of caching;
Step 4, intelligent terminal are accessed after routing device by wireless WiFi, and download is sent to routing device by web browser
The URL request of APP, the process script of routing device is identified to the URL request, will meet caching rule and network agent turns
The URL request for sending out rule is forwarded to network-caching service;The URL for such as not meeting caching rule or network agent forwarding rule please
Ask, give URL request clearance and directly access external server address;Described URL request contains server outside clothes
Business device address or domain name and APP file path information;
Step 5, network-caching service search the corresponding APP for having cached according to the URL request from caching file system index
Installation file, and return the APP installation files to intelligent terminal;If not finding the APP installation files for having cached, root
The corresponding external servers of the URL are accessed according to the URL request, and APP installation files are downloaded to caching text from the external server
Part system, and cached according to cache file system index rule, continue to intelligent end after the completion of APP installation files caching
The cached APP installation files of end passback;Described is cached according to cache file system index rule, exactly makees URL
For the index of the cache file system of corresponding A PP installation file so that network-caching service just can be with caching according to the URL request
After file system index matching, the APP installation files for having cached are found;
Step 6, intelligent terminal receive the APP installation files of routing device response by WiFi networks, remind user's peace
Fill the APP.
It is concrete that the routing device downloads the storage mode after APP installation files to cache file system from external server
It is:APP installation files are downloaded to after routing device and form buffer culture, and buffer culture is according to filename, file type and file
Download time information is encrypted and waits size that data block file, then each data block file of index of reference file identification are formed after splitting
The position at place, when obtaining file, will again splice restructuring and form according to index.
After using such scheme, the invention has the beneficial effects as follows:Mobile routing equipment is saved in institute of mobile communication carrier
The uplink traffic cost for needing, accelerates the download of APP, also has the characteristics that:
First, after cache resources hit, without the need for upstream server request is sent, you can realize that APP is downloaded in local area network,
Speed is limited solely by the WIFI speed of routing device, in theory far above the speed of download from upstream server
2nd, mobile communication carrier's cost is embodied in the statistics of the flow to passing through in data channel, the use of caching, Ke Yigui
The data traffic into the passage is kept away or reduced, please be criticize so as to save flow cost.
Below in conjunction with the drawings and specific embodiments, the present invention will be further described.
Description of the drawings
It is the general flow chart of the method that a kind of APP based on routing device of the present invention downloads caching described in Fig. 1.
Specific embodiment
As shown in figure 1, the method that a kind of APP based on routing device that the present invention is disclosed downloads caching, it includes:
Step 1, dispose on routing device network-caching(Cache)Service, deployment content includes allocating cache rule and caching
File system index rule, the caching rule includes URL request matched rule, cache file system, cache size and time, should
Cache file system index rule is regular with the conversion map of file path in cache file system including URL request, by slow
Depositing rule and caching file system index rule guarantees that subsequent URL requests can hit the APP installation files of caching;
Step 2, on routing device deployment process script file, process script file be used for recognize and change dynamic URL please
Ask, and the parameter that dynamic in URL request is produced is removed, it is ensured that the URL request matched rule of network-caching service can hit
The APP installation files of caching;For example:URL request is:http://www.99zjb.com/xmhb.apkAccessKey=123,
Wherein parameter "AccessKey=123 " is that in time motor-driven state is produced according to request equipment, during caching rule can be avoided after removing
URL request matched rule fails;
Step 3, dispose on routing device network agent(Proxy)Service, deployment content is Configuration network agency's forwarding rule,
The network agent forwarding rule includes source IP section, URL request matched rule, Target IP section, process script file path, passes through
The network agent forwarding rule guarantees that routing device can intercept response URL request, and execution is redirected to network-caching service,
And guarantee that subsequent URL requests can hit the APP installation files of caching;
Step 4, intelligent terminal are accessed after routing device by wireless WiFi, and download is sent to routing device by web browser
The URL request of APP, the process script of routing device is identified to the URL request, will meet caching rule and network agent turns
The URL request for sending out rule is forwarded to network-caching service;The URL for such as not meeting caching rule or network agent forwarding rule please
Ask, give URL request clearance and directly access external server address;Described URL request contains server outside clothes
Business device address or domain name and APP file path information;
Step 5, network-caching service search the corresponding APP for having cached according to the URL request from caching file system index
Installation file, and return the APP installation files to intelligent terminal;If not finding the APP installation files for having cached, root
The corresponding external servers of the URL are accessed according to the URL request, and APP installation files are downloaded to caching text from the external server
Part system, and cached according to cache file system index rule, continue to intelligent end after the completion of APP installation files caching
The cached APP installation files of end passback;Described is cached according to cache file system index rule, exactly makees URL
For the index of the cache file system of corresponding A PP installation file so that network-caching service just can be with caching according to the URL request
After file system index matching, the APP installation files for having cached are found;
Step 6, intelligent terminal receive the APP installation files of routing device response by WiFi networks, remind user's peace
Fill the APP.
Routing device downloads the storage mode after APP installation files to cache file system specifically from external server:
APP installation files are downloaded to after routing device and form buffer culture, and buffer culture is according to filename, file type and file download
Temporal information is encrypted and waits size that data block file is formed after splitting, then each data block file of index of reference file identification is located
Position, obtain file when, according to index again splice restructuring form.It is using the benefit of the storage mode:(1)Plus tight defense
Distort;(2)Distributed caching can be realized, the speed of cache request is improved;(3)Avoid the excessive initiation other problemses of monofile.
Network-caching service technology is realized using the open source technology of similar SQUID.
The present invention adopts buffer service program, and Portal authentication services are serviced and route with reference to route agent, there is provided
The system that a set of APP downloads caching.Portal certifications are a kind of internet access authentication modes, are widely used in business router
In ad system, to access device a kind of identification service is provided;APP described in the present invention is application program
(Application)Abbreviation, refer in particular to a kind of document form that can be run on current smart mobile phone, can be with such as in Android mobile phone
The apk files of installation and operation, can be with ipa files of installation and operation etc. on i Phone;URL described in the present invention refers to unified money
Source finger URL, is position and a kind of succinct expression of access method of resource to obtaining from internet, is interconnection
The address of online standard resource.
The regular configuration example of caching:
refresh_pattern -i \.ipa(.*)$ 1440 90% 2880 ignore-reload
refresh_pattern -i \.apk$ 1440 90% 2880 ignore-reload
External network proxy services configuration example:
config zone
option name lan
list network 'lan'
option input ACCEPT
option output ACCEPT
option forward ACCEPT
config zone
option name wan
list network 'wan'
list network 'wan6'
option input REJECT
option output ACCEPT
option forward REJECT
option masq 1
option mtu_fix 1
config forwarding
option src lan
option dest wan
Script file (Shell) example:
#!/bin/sh
while true
do
read info
a1="${info#*iosapps.itunes.apple.com}"
a2="iosapps.itunes.apple.com""${a1%?accessKey*}""\n"
echo $a2>&1
Done。
The specific embodiment of the present invention is these are only, not to the restriction of protection scope of the present invention.All setting according to this case
The equivalent variations that meter thinking is done, each fall within the protection domain of this case.
Claims (2)
1. a kind of method that APP based on routing device downloads caching, it is characterised in that include:
Step 1, the deployment network-caching service on routing device, deployment content includes allocating cache rule and caches file system
Index rule, the caching rule includes URL request matched rule, cache file system, cache size and time, the cache file
The conversion map rule of system index rule including file path in URL request and cache file system, by caching rule and
Cache file system index rule guarantees that subsequent URL requests can hit the A PP installation files of caching;
Step 2, on routing device deployment process script file, process script file be used for recognize and change dynamic URL please
Ask, and the parameter that dynamic in URL request is produced is removed, it is ensured that the URL request matched rule of network-caching service can hit
The APP installation files of caching;
Step 3, external network proxy services are disposed on routing device, deployment content is Configuration network agency's forwarding rule, the network
Agency's forwarding rule includes source IP section, URL request matched rule, Target IP section, process script file path, by the network
Agency's forwarding rule guarantees that routing device can intercept response URL request, and execution is redirected to network-caching service, and guarantees
Subsequent URL requests can hit the APP installation files of caching;
Step 4, intelligent terminal are accessed after routing device by wireless WiFi, and download is sent to routing device by web browser
The URL request of APP, the process script of routing device is identified to the URL request, will meet caching rule and network agent turns
The URL request for sending out rule is forwarded to network-caching service;The URL for such as not meeting caching rule or network agent forwarding rule please
Ask, give URL request clearance and directly access external server address;Described URL request contains server outside clothes
Business device address or domain name and APP file path information;
Step 5, network-caching service search the corresponding APP for having cached according to the URL request from caching file system index
Installation file, and return the APP installation files to intelligent terminal;If not finding the APP installation files for having cached, root
The corresponding external servers of the URL are accessed according to the URL request, and APP installation files are downloaded to caching text from the external server
Part system, and cached according to cache file system index rule, continue to intelligent end after the completion of APP installation files caching
The cached APP installation files of end passback;Described is cached according to cache file system index rule, exactly makees URL
For the index of the cache file system of corresponding A PP installation file so that network-caching service just can be with caching according to the URL request
After file system index matching, the APP installation files for having cached are found;
Step 6, intelligent terminal receive the APP installation files of routing device response by WiFi networks, remind user's peace
Fill the APP.
2. the method that a kind of APP based on routing device as claimed in claim 1 downloads caching, it is characterised in that:The road
The storage mode after APP installation files to cache file system is downloaded by equipment specifically from external server:APP installation files
It is downloaded to after routing device and forms buffer culture, buffer culture enters according to filename, file type and file download temporal information
Row encryption simultaneously waits size that data block file, then the position that each data block file of index of reference file identification is located are formed after splitting, and obtains
When taking file, restructuring spliced according to index again and be formed.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610834035.4A CN106657217A (en) | 2016-09-20 | 2016-09-20 | Routing device-based APP downloading and caching method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610834035.4A CN106657217A (en) | 2016-09-20 | 2016-09-20 | Routing device-based APP downloading and caching method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106657217A true CN106657217A (en) | 2017-05-10 |
Family
ID=58852064
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610834035.4A Pending CN106657217A (en) | 2016-09-20 | 2016-09-20 | Routing device-based APP downloading and caching method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106657217A (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107493350A (en) * | 2017-09-30 | 2017-12-19 | 迈普通信技术股份有限公司 | Caching method, apparatus and system |
CN107800804A (en) * | 2017-11-13 | 2018-03-13 | 迈普通信技术股份有限公司 | NM server, security gateway, with outer file download system and method |
CN110113743A (en) * | 2019-04-28 | 2019-08-09 | 上海上湖信息技术有限公司 | A kind of application program method for pushing and wireless router |
CN110120917A (en) * | 2019-06-28 | 2019-08-13 | 北京百度网讯科技有限公司 | Method for routing and device based on content |
CN110247996A (en) * | 2019-06-12 | 2019-09-17 | 珠海读书郎网络教育有限公司 | The wireless router device of configurable cache system based on wisdom classroom |
CN111432033A (en) * | 2020-04-22 | 2020-07-17 | 深信服科技股份有限公司 | Application program downloading method, device and system, IOS equipment and medium |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104065749A (en) * | 2014-07-10 | 2014-09-24 | 上海斐讯数据通信技术有限公司 | Method and device for accessing web through proxy |
CN104202360A (en) * | 2014-08-13 | 2014-12-10 | 小米科技有限责任公司 | Webpage access method, device and router |
CN104836821A (en) * | 2014-02-10 | 2015-08-12 | 腾讯科技(深圳)有限公司 | Method, device and equipment for network acceleration based on router |
CN104994058A (en) * | 2015-05-15 | 2015-10-21 | 北京京东尚科信息技术有限公司 | Method, device, and system for achieving accelerated access for a router |
CN105610927A (en) * | 2015-12-24 | 2016-05-25 | 南京创维信息技术研究院有限公司 | Caching downloading method and system based on intelligent router |
CN105657046A (en) * | 2016-02-24 | 2016-06-08 | 中国科学技术大学 | Method for injecting advertisements based on Openwrt router |
CN105763601A (en) * | 2016-01-29 | 2016-07-13 | 北京小米移动软件有限公司 | File sharing method and device |
CN105871731A (en) * | 2016-03-28 | 2016-08-17 | 深圳市双赢伟业科技股份有限公司 | Router and download method based on router |
-
2016
- 2016-09-20 CN CN201610834035.4A patent/CN106657217A/en active Pending
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104836821A (en) * | 2014-02-10 | 2015-08-12 | 腾讯科技(深圳)有限公司 | Method, device and equipment for network acceleration based on router |
CN104065749A (en) * | 2014-07-10 | 2014-09-24 | 上海斐讯数据通信技术有限公司 | Method and device for accessing web through proxy |
CN104202360A (en) * | 2014-08-13 | 2014-12-10 | 小米科技有限责任公司 | Webpage access method, device and router |
CN104994058A (en) * | 2015-05-15 | 2015-10-21 | 北京京东尚科信息技术有限公司 | Method, device, and system for achieving accelerated access for a router |
CN105610927A (en) * | 2015-12-24 | 2016-05-25 | 南京创维信息技术研究院有限公司 | Caching downloading method and system based on intelligent router |
CN105763601A (en) * | 2016-01-29 | 2016-07-13 | 北京小米移动软件有限公司 | File sharing method and device |
CN105657046A (en) * | 2016-02-24 | 2016-06-08 | 中国科学技术大学 | Method for injecting advertisements based on Openwrt router |
CN105871731A (en) * | 2016-03-28 | 2016-08-17 | 深圳市双赢伟业科技股份有限公司 | Router and download method based on router |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107493350A (en) * | 2017-09-30 | 2017-12-19 | 迈普通信技术股份有限公司 | Caching method, apparatus and system |
CN107800804A (en) * | 2017-11-13 | 2018-03-13 | 迈普通信技术股份有限公司 | NM server, security gateway, with outer file download system and method |
CN107800804B (en) * | 2017-11-13 | 2021-01-29 | 迈普通信技术股份有限公司 | Network management server, security gateway, out-of-band file downloading system and method |
CN110113743A (en) * | 2019-04-28 | 2019-08-09 | 上海上湖信息技术有限公司 | A kind of application program method for pushing and wireless router |
CN110247996A (en) * | 2019-06-12 | 2019-09-17 | 珠海读书郎网络教育有限公司 | The wireless router device of configurable cache system based on wisdom classroom |
CN110120917A (en) * | 2019-06-28 | 2019-08-13 | 北京百度网讯科技有限公司 | Method for routing and device based on content |
CN110120917B (en) * | 2019-06-28 | 2024-02-02 | 北京瑛菲网络科技有限公司 | Routing method and device based on content |
CN111432033A (en) * | 2020-04-22 | 2020-07-17 | 深信服科技股份有限公司 | Application program downloading method, device and system, IOS equipment and medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106657217A (en) | Routing device-based APP downloading and caching method | |
US9749403B2 (en) | Managing content distribution in a wireless communications environment | |
US9749400B2 (en) | Cooperative loading of webpages based on shared meta information | |
US11223500B2 (en) | Traffic acceleration in mobile network | |
US20140222967A1 (en) | Transparent media delivery and proxy | |
US20120184258A1 (en) | Hierarchical Device type Recognition, Caching Control & Enhanced CDN communication in a Wireless Mobile Network | |
EP4002796A1 (en) | Resource acquisition method and edge computing scheduling server | |
CN104994079B (en) | The treating method and apparatus of access request accelerates server | |
CN107251524A (en) | The mobile device user of management prognostic prefetching content is ordered and service preferences | |
CN107025234A (en) | A kind of information-pushing method and caching server | |
US9876877B2 (en) | Special handling of a landing page | |
CN103220371A (en) | Method and system for conducting content adaptation | |
WO2017025052A1 (en) | Resource caching method and device | |
Carofiglio et al. | Scalable mobile backhauling via information-centric networking | |
CN108207012A (en) | A kind of flow control methods, device, terminal and system | |
Gomes et al. | Feasibility of information-centric networking integration into LTE mobile networks | |
WO2017097092A1 (en) | Method and system for processing cache cluster service | |
CN107087013B (en) | CDN system of mobile base station and service method thereof | |
CN103416027B (en) | The system of the method, buffer and cache optimization of cache optimization | |
US10382981B2 (en) | Cellular network protocol optimizations | |
EP2850809B1 (en) | Providing data to a network terminal | |
Fahrianto et al. | Migrating From IP to NDN Using Dual-Channel Translation Gateway | |
Sehati et al. | Network assisted latency reduction for mobile web browsing | |
EP2997489B1 (en) | Method and device for efficient mobile data transmission | |
CN117319500A (en) | Content providing method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20170510 |
|
WD01 | Invention patent application deemed withdrawn after publication |