CN107659600B - Router HTTP file service system and method based on P2P - Google Patents

Router HTTP file service system and method based on P2P Download PDF

Info

Publication number
CN107659600B
CN107659600B CN201610597247.5A CN201610597247A CN107659600B CN 107659600 B CN107659600 B CN 107659600B CN 201610597247 A CN201610597247 A CN 201610597247A CN 107659600 B CN107659600 B CN 107659600B
Authority
CN
China
Prior art keywords
file
uplink data
network
http
service module
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.)
Expired - Fee Related
Application number
CN201610597247.5A
Other languages
Chinese (zh)
Other versions
CN107659600A (en
Inventor
韩锐
周学志
郭志川
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Institute of Acoustics CAS
Shanghai 3Ntv Network Technology Co Ltd
Original Assignee
Institute of Acoustics CAS
Shanghai 3Ntv Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Institute of Acoustics CAS, Shanghai 3Ntv Network Technology Co Ltd filed Critical Institute of Acoustics CAS
Priority to CN201610597247.5A priority Critical patent/CN107659600B/en
Publication of CN107659600A publication Critical patent/CN107659600A/en
Application granted granted Critical
Publication of CN107659600B publication Critical patent/CN107659600B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/10Architectures or entities
    • H04L65/1045Proxies, e.g. for session initiation protocol [SIP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/104Peer-to-peer [P2P] networks
    • H04L67/1044Group management mechanisms 
    • H04L67/1046Joining mechanisms
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/104Peer-to-peer [P2P] networks
    • H04L67/1074Peer-to-peer [P2P] networks for supporting data block transmission mechanisms
    • H04L67/1078Resource delivery mechanisms
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/104Peer-to-peer [P2P] networks
    • H04L67/1087Peer-to-peer [P2P] networks using cross-functional networking aspects
    • H04L67/1091Interfacing with client-server systems or between P2P systems

Abstract

The invention provides a router HTTP file service method based on P2P, which utilizes P2P network transmission between routers to acquire files, thereby reducing the flow of CDN; the router adopts a proxy service module, HTTP file requests of the user equipment are automatically filtered, forwarded and file acquired by using the set matching rules, and the user equipment can acquire files through the P2P network without any modification or manual setting of a proxy server.

Description

Router HTTP file service system and method based on P2P
Technical Field
The invention relates to the field of computer networks, in particular to a router HTTP file service method based on P2P.
Background
Meanwhile, with the development of the mobile internet and the popularization of the mobile devices, the streaming media service becomes the most typical application in the mobile internet, and not a few emerging streaming media services are based on the HTTP protocol, for example, the streaming media service of the H L S/BS architecture proposed by apple for the streaming media service consumes a large amount of CDN flow, if the characteristics of the P2P can be fully utilized, the CDN flow can be greatly reduced by utilizing the uplink bandwidth of other user devices, because the router is used as an entrance of home access to the internet, the characteristics of long-term online and large-capacity storage are provided, how to fully utilize the characteristics of the router, and realizing the combination of the P2P network and the HTTP P streaming media is an urgent problem to be solved.
Disclosure of Invention
The invention aims to solve the technical problem that a large amount of CDN flow is consumed when HTTP streaming media are transmitted by a router in the prior art, and provides a router HTTP file service method based on P2P, wherein the method can provide a P2P obtaining method for HTTP files without modifying software on user equipment.
In order to achieve the above object, the present invention provides a P2P-based router HTTP file service method, which specifically includes:
step 1) filtering uplink data of user equipment by using a router, and analyzing uplink data packets meeting matching rules;
step 2) reading the destination IP address of the uplink data packet meeting the matching rule through a router, setting an uplink data forwarding rule, and forwarding the uplink data of which the destination IP address is in the same network segment to a proxy service module by using the uplink data forwarding rule;
step 3) analyzing the received uplink data by using a proxy service module, analyzing an application layer protocol, analyzing and filtering an HTTP GET signaling, and sending a file link and a file name in the HTTP GET signaling to a P2P client;
the proxy service module analyzes an application layer protocol of uplink data, and matching contents comprise an HTTP protocol, an HTTP GET command, a file link, a file name and the like in the HTTP GET command.
Step 4) inquiring the required file in the P2P network through the P2P client, and returning the inquiry result to the proxy service module, and if the required file is obtained, forwarding the file to the user equipment through the proxy service module; if the required file is not available in the P2P network, the required file is obtained from the original website through the proxy service module, and then the file data is sent to the user equipment.
As a further improvement of the above technical solution, the content matched in the matching rule includes: destination port number, network transport protocol type, network transport protocol version, network application layer protocol.
As a further improvement of the above technical solution, the step 4) further includes: the P2P client is used to inquire whether the router holds the required file locally, if the required file is obtained locally from the router, the file is forwarded to the user device through the proxy service module, if the router does not have the required file locally, the P2P client is used to inquire the required file in the P2P network.
As a further improvement of the above technical solution, the P2P client obtains files from the P2P network, and the P2P client requests the files by slicing, sorts the downloaded slices, sends the slices to the proxy service module in sequence, and sends the slices while downloading.
The router HTTP file service method based on P2P of the invention has the advantages that:
the method of the invention utilizes the P2P network transmission between the routers to obtain the file, thereby reducing the flow of the CDN; the router adopts a proxy service module, HTTP file requests of the user equipment are automatically filtered, forwarded and file acquired by using the set matching rules, and the user equipment can acquire files through the P2P network without any modification or manual setting of a proxy server.
Drawings
Fig. 1 is a system architecture diagram of the router HTTP file service method based on P2P for data interaction in the present invention.
Fig. 2 is an operation flowchart of the P2P-based router HTTP file service method in the present invention.
Detailed Description
The following describes a router HTTP file service method based on P2P in detail with reference to the accompanying drawings and embodiments.
The invention provides a router HTTP file service method based on P2P, which comprises the following steps: the router firstly analyzes the uplink data packet and forwards the uplink data which accords with the matched filtering rule to the proxy service module; then, analyzing the forwarded uplink data by using the proxy service module, analyzing an application layer protocol, analyzing and filtering HTTP GET signaling, and sending a file link and a file name in the HTTP GET signaling to the P2P client; secondly, the P2P client queries and acquires the required files in the P2P network, and returns the query result to the proxy service module; and finally, sending the file data to the user equipment by using the proxy service module.
As shown in fig. 1, the method for serving an HTTP file of a router based on P2P specifically includes:
step 1) filtering uplink data of the user equipment by using a router, and analyzing uplink data packets meeting the matching rules. In a specific implementation, the matching rule may be a TCP transport protocol, the destination port number is 80, the application layer protocol is an HTTP protocol, and the HTTP signaling is HTTP GET signaling.
And step 2) reading the destination IP address of the uplink data packet meeting the matching rule through the router, setting an uplink data forwarding rule, and forwarding the uplink data of which the destination IP address is in the same network segment to the proxy service module by using the uplink data forwarding rule.
In specific implementation, a destination IP address of an uplink data packet is read, a subnet mask of the IPv4 is 255.255.255.0 by default, and uplink data in the same network segment can be forwarded through an iptables tool and forwarded to a monitoring port of the proxy service module.
And step 3) analyzing the received uplink data through the proxy service module, analyzing an application layer protocol, analyzing and filtering the HTTP GET signaling, and sending the file link and the file name in the HTTP GET signaling meeting the matching rule to the P2P client. In specific implementation, the proxy service module analyzes the uplink data, analyzes the file link and the file name in the HTTP GET signaling, matches the filter file type, and sends the file link and the file name that meet the rules to the P2P client.
And step 4) inquiring the required files in the P2P network through the P2P client, and returning the inquiry result to the proxy service module. In a specific implementation, the P2P client firstly queries the local storage of the router, and when the router locally has a required file, sends the file to the proxy service module, and forwards the file to the user equipment; when the router does not locally have the required file, the P2P client is used for inquiring other nodes in the P2P network, at the moment, if the required file exists in the P2P network, the P2P client downloads and sends the file to the proxy service module, if the required file does not exist in the P2P network or the inquiry is overtime due to other reasons, the inquiry result is returned to the proxy service module, and when the proxy service module fails to acquire the file from the P2P client, the required file is acquired from the original website and the acquired file is sent to the user equipment.
Finally, it should be noted that the above embodiments are only used for illustrating the technical solutions of the present invention and are not limited. Although the present invention has been described in detail with reference to the embodiments, it will be understood by those skilled in the art that various changes may be made and equivalents may be substituted without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (3)

1. A P2P-based router HTTP file serving system, the system comprising:
the data forwarding module is used for filtering uplink data of the user equipment and analyzing uplink data packets meeting the matching rules; reading a target IP address of an uplink data packet meeting the matching rule, setting an uplink data forwarding rule, and forwarding uplink data of which the target IP address is in the same network segment to the proxy service module by using the uplink data forwarding rule;
the proxy service module is used for analyzing the received uplink data, analyzing an application layer protocol, analyzing and filtering HTTP GET signaling, and sending a file link and a file name in the HTTP GET signaling to the P2P client; the server is also used for forwarding the file acquired from the P2P network to the user equipment; the client side is also used for forwarding the required file to the user equipment after acquiring the required file from the original website when the required file cannot be acquired from the P2P network;
and the P2P client is used for inquiring the required file in the P2P network, requesting the file from the P2P network fragment if the file exists, downloading the fragment and sequencing, sending the fragment to the proxy service module in sequence, and sending the fragment while downloading.
2. A router HTTP file service method based on P2P, implemented based on the system of claim 1, comprising:
step 1), the data forwarding module filters uplink data of user equipment and analyzes an uplink data packet meeting a matching rule; reading a target IP address of an uplink data packet meeting the matching rule, setting an uplink data forwarding rule, and forwarding uplink data of which the target IP address is in the same network segment to the proxy service module by using the uplink data forwarding rule;
step 2) the proxy service module analyzes the received uplink data, analyzes an application layer protocol and analyzes and filters HTTP GET signaling, and sends a file link and a file name in the HTTP GET signaling to the P2P client;
step 3) the P2P client inquires the needed file in the P2P network, if the file exists, the file is requested to the P2P network fragment, then the fragment is downloaded and sequenced, and the sequence is sent to the agent service module, and the downloading and the sending are carried out simultaneously; otherwise, the agent service module acquires the required file from the original website;
and 4) the proxy service module forwards the required file to the user equipment.
3. The P2P-based router HTTP file serving method of claim 2, wherein the content matched in the matching rule comprises: destination port number, network transport protocol type, network transport protocol version, network application layer protocol.
CN201610597247.5A 2016-07-26 2016-07-26 Router HTTP file service system and method based on P2P Expired - Fee Related CN107659600B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610597247.5A CN107659600B (en) 2016-07-26 2016-07-26 Router HTTP file service system and method based on P2P

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610597247.5A CN107659600B (en) 2016-07-26 2016-07-26 Router HTTP file service system and method based on P2P

Publications (2)

Publication Number Publication Date
CN107659600A CN107659600A (en) 2018-02-02
CN107659600B true CN107659600B (en) 2020-07-17

Family

ID=61126705

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610597247.5A Expired - Fee Related CN107659600B (en) 2016-07-26 2016-07-26 Router HTTP file service system and method based on P2P

Country Status (1)

Country Link
CN (1) CN107659600B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101212646A (en) * 2006-12-31 2008-07-02 中国科学院声学研究所 System and method for implementing video-on-demand with peer-to-peer network technique
CN101902346A (en) * 2009-05-31 2010-12-01 国际商业机器公司 P2P (Point to Point) content caching system and method
CN102780779A (en) * 2012-07-23 2012-11-14 北京星网锐捷网络技术有限公司 Gateway equipment and method and device for optimization of campus network export P2P (peer-to-peer) traffic
WO2012153173A3 (en) * 2011-01-29 2013-01-03 Redthorne Media, Llc Feedback oriented private overlay network for content distribution
CN103581032A (en) * 2012-08-03 2014-02-12 盛乐信息技术(上海)有限公司 Router and P2P data sharing system and method
CN104253838A (en) * 2013-06-27 2014-12-31 北京世纪互联宽带数据中心有限公司 CDN (content delivery network) node and CDN service system
CN104618506A (en) * 2015-02-24 2015-05-13 庄奇东 Crowd-sourced content delivery network system, method and device
CN104836821A (en) * 2014-02-10 2015-08-12 腾讯科技(深圳)有限公司 Method, device and equipment for network acceleration based on router

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8064479B2 (en) * 2008-01-02 2011-11-22 Harmonic, Inc. Methods and system for efficient data transfer over hybrid fiber coax infrastructure

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101212646A (en) * 2006-12-31 2008-07-02 中国科学院声学研究所 System and method for implementing video-on-demand with peer-to-peer network technique
CN101902346A (en) * 2009-05-31 2010-12-01 国际商业机器公司 P2P (Point to Point) content caching system and method
WO2012153173A3 (en) * 2011-01-29 2013-01-03 Redthorne Media, Llc Feedback oriented private overlay network for content distribution
CN102780779A (en) * 2012-07-23 2012-11-14 北京星网锐捷网络技术有限公司 Gateway equipment and method and device for optimization of campus network export P2P (peer-to-peer) traffic
CN103581032A (en) * 2012-08-03 2014-02-12 盛乐信息技术(上海)有限公司 Router and P2P data sharing system and method
CN104253838A (en) * 2013-06-27 2014-12-31 北京世纪互联宽带数据中心有限公司 CDN (content delivery network) node and CDN service system
CN104836821A (en) * 2014-02-10 2015-08-12 腾讯科技(深圳)有限公司 Method, device and equipment for network acceleration based on router
CN104618506A (en) * 2015-02-24 2015-05-13 庄奇东 Crowd-sourced content delivery network system, method and device

Also Published As

Publication number Publication date
CN107659600A (en) 2018-02-02

Similar Documents

Publication Publication Date Title
KR101567386B1 (en) Method and apparatus for internet protocol based content router
CN113037500B (en) Network device and method for network communication
EP1487871B1 (en) Method, network and apparatus for configuring and controlling network resources in content delivery with distributed rules
US8942619B2 (en) Relay device
US20060136987A1 (en) Communication apparatus
US20140040353A1 (en) Return-link optimization for file-sharing traffic
MXPA04012488A (en) Applying session services based on packet flows.
CN102984223B (en) A kind of message method, the network equipment and system
US20180219790A1 (en) Scalable multicast for notification-driven content delivery in information centric networks
US9705762B2 (en) Systems and methods for detecting device identity at a proxy background
EP3735768B1 (en) Improving qoe for video and web services using cross-layer information
DE202021103381U1 (en) Computer readable medium and systems for implementing a regionally contiguous proxy service
WO2014101661A1 (en) Service flow mirroring method and mirroring device
US20090067419A1 (en) Transmission control apparatus and method
CN112565262A (en) Flow data processing method, system, network equipment and storage medium
US20150127837A1 (en) Relay apparatus and data transfer method
EP1950917A1 (en) Methods for peer-to-peer application message identifying and operating realization and their corresponding devices
CN107409047B (en) Method for coordinated packet delivery for encrypted sessions
RU2621961C2 (en) Gateway and corresponding method, computer program and storage media
WO2016202224A1 (en) Method and device for adjusting transport layer parameter
US20120072612A1 (en) Method and an Arrangement of Identifying Traffic Flows in a Communication Network
US9277014B2 (en) Handling of auxiliary NAS
CN111064825B (en) Method and device for realizing DPI data acquisition and control based on ARP
CN107659600B (en) Router HTTP file service system and method based on P2P
CN105306608A (en) QOS parameter configuration method, device and system

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
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20200717

CF01 Termination of patent right due to non-payment of annual fee