A kind of network traffic cache method and system based on positive guide
Technical field
The present invention relates to the network traffic cache system based on positive guide, be applicable to internet traffic caching system field, namely the invention provides a kind of network traffic cache method and system based on positive guide.
Background technology
The application service of Internet user is progressively changed to information-based, life-stylize by entertainment orientation in recent ten years, application service is from the original File Transfer mainly concentrating on web page browsing and instant messaging, change into gradually mainly concentrate on Online Video, the application service such as high-speed downloads, limit are broadcast below, video request program, the demand of resource is also pursued by original nothing, changes pursuit that is abundant, high definition resource into.
These application services mainly adopt http protocol or the transmission of P2P protocol realization data on network, and P2P agreement has polytype, and different agreements is based upon on different transport layer protocols, comprises TCP and UDP two kinds of host-host protocols.
These internet, applications service request telecommunications networks of constantly weeding out the old and bring forth the new can provide higher upstream and downstream bandwidth, are used for ensureing the good service experience of user.For medium and small operator, want the experience ensureing user, constantly must promote network egress bandwidth, and the lifting of network egress bandwidth means the constantly soaring of operation cost; For large-scale operator, although the bandwidth in net is not enough to become bottleneck, outgoing access problem is not still solved well, still can not ensure the experience of user well.
In order to solve the problem, there are two kinds of solutions in operator: the first scheme is restriction, and this is a kind of stifled method, can alleviate the pressure of network egress, but the experience problem of user does not solve, and if things go on like this will cause the loss of user; First scheme is buffer memory, this is a kind of method of dredging, by network traffic cache net in after again for user provides service, both the bandwidth pressure of network egress can have been reduced, simultaneously because the distance of caching server and user is nearer, bandwidth situation is better, and therefore the experience of user also can be met to greatest extent.The concrete scheme of flow buffering mainly comprises following two kinds:
Scheme one, seals in mode.Seal in seven layer switch at network egress or adopt WCCP mode to turn to caching system to process particular flow rate, thus realize buffer service.The advantage of this mode is that all flows all can be taken over by system row relax of going forward side by side, and can realize the maximization of buffer memory effect in theory.Shortcoming is owing to have employed the mode of sealing in, larger on the impact of legacy network, and seals in the bottleneck that equipment may become network, once this equipment failure, may cause the disconnecting of user and outer net.This mode operator is generally unwilling to accept.
Scheme two, bypass mode.With the message in the outlet of bypass mode monitoring network, agreement in network traffics is analyzed, by the network traffic cache that meets the demands to local cache server, and then initiatively user is directed to local cache server service is provided, cut off linking of Intranet user and external network server simultaneously.Which can not destroy original network configuration, only needs by network traffics mirror image portion to caching system, and after caching system reaches process bottleneck or equipment failure, can not affect the use of user.This mode operator is more acceptant.
The present invention is on the basis of scheme two, proposes a kind of network traffic cache method of improvement.The method is according to different procotols, adopt different positive guide modes respectively, realize that user is directed to local cache system and service is provided, effectively make use of caching server, for P2P agreement, effectively can dispatch the interconnected of the interior user of net simultaneously, make full use of the service ability of user, thus improve the integrity service performance of caching system further.
Summary of the invention
The object of this invention is to provide a kind of method improving network traffic cache performance, on the one hand, for the host-host protocol that network traffics use, adopt different positive guide methods that user's request is directed to caching server respectively; On the other hand, for P2P agreement, make full use of the resource uploading of user in net, carry out interconnected between positive guide user.
To achieve these goals, the invention provides a kind of network traffic cache method based on positive guide, described method comprises:
Step 101) agreement that the network traffics of certain Intranet adopt is analyzed, by the network traffic cache that meets the demands to local cache server, described interior network refers to the network belonging to same operator, and the concrete enforcement of this step belongs to prior art and do not repeat at this;
Step 102) protocol type that adopts of the service of asking according to user selects a kind of positive guide mode that the user sending service request is actively directed to local cache server from following several mode provides service for it, cut off linking between the Intranet at this user place with external network server simultaneously;
Mode one, for the service using HTTP as application layer communication protocol, and when supporting redirection message, adopts redirected guiding mechanism that this user is directed to local cache server;
Mode two, for the service adopting domain name mode, caching system support is simultaneously acted on behalf of this service, adopts intelligent DNS guidance mode that user is directed to local cache server;
Mode three, for employing udp protocol, or the service adopting Transmission Control Protocol but do not support to be redirected, adopt camouflage message guidance mode that user is directed to local cache server;
Mode four, for employing http protocol, in the URL that server comprises in returned packet, HOST is IP address, and this IP address belongs in the net of caching system deployment, adopts the guidance mode distorting message that user is directed to local cache server.
In technique scheme, described mode one comprises following sub-step further:
In being netted with in operator by intelligent domain name resolution server, dns server is connected, and configures operator DNS server and adopt DNS Forwarding mode that the DNS request of user in net is forwarded to intelligent domain name resolution server;
First intelligent domain name resolution server judges whether the domain name that user asks belongs to caching system service range, if the domain name of user's request is in caching system service range, then caching server address is returned to user; If the domain name of user's request is not in caching system service range, then intelligent domain name resolution server agent user is to upper level dns server nslookup, and Query Result is returned to user;
Caching server is directed into, by this caching server for user provides service needed for it according to above-mentioned return cache server address user request.
In technique scheme, described mode two comprises following sub-step further:
Utilize the image feature of optical splitter or the network equipment, network flow data is imported to network traffics detect and Control Server analyze;
When network traffics detect and Control Server finds that the request of user meets redirected message characteristic, and when caching system can provide service, send redirection message to user; Outwards net destination server sends break link message simultaneously;
After user gets redirection message, for video or download request, initiate download request directly to caching server, caching server proxy user downloading data;
For the acquisition Peer list request of P2P agreement, user is connected to the tracking server of caching system, by tracking server to other Peer address lists in user's return cache server and Home Network;
For the request of P2P agreement, user, after acquisition Peer list, initiates downloading data request to caching server, and caching server reads data or proxy user after external network server downloading data from this locality, return to user; User initiates data download request to user in Home Network simultaneously, and the net realizing data is interior mutual.
In technique scheme, described mode three comprises following sub-step further:
Utilize the image feature of optical splitter or the network equipment, network flow data is imported to network traffics detect and Control Server analyze;
When network traffics detect and Control Server finds that the request of user meets P2P protocol massages feature, and when caching system can provide service, send camouflage message to user, in message, comprise Peer address list in caching server address and Home Network; If transport layer protocol is Transmission Control Protocol, also need to send break link message to external network server simultaneously;
After user receives camouflage message, in caching server and Home Network, other Peer initiate data download request.
In technique scheme, described mode four comprises following sub-step further:
Use intelligent domain name resolution server or network traffics detection and Control Server that the request of user is directed to caching server;
Caching server proxy user performs reciprocal process;
Caching server analyzes the message of reciprocal process, and when the message finding that external network server returns is address list message, user cache server address replaces the server address in message, then the message after replacement is returned to user;
User is directed into caching server download data.
A kind of network traffic cache system based on positive guide is present invention also offers based on said method, this caching system comprises the some caching servers being positioned at carrier network exit with bypass mode, it is characterized in that, described caching system also comprises: positive guide way selection decision-making subsystem, the agreement that this subsystem is used for adopting according to network traffics selects a kind of positive guide mode that user is actively directed to local cache server from following several mode provides service for it, wherein said several mode specifically comprises: be redirected guiding mechanism, intelligent DNS guidance mode, camouflage message guidance mode and the guidance mode distorting message, with
Disconnect subsystem, for cutting off linking between Intranet user with external network server when user is directed to caching server;
Wherein, described positive guide mode decision-making subsystem comprises further: intelligent domain name resolution server, network traffics protocol detection and Control Server, traffic service proxy caching server and tracking server;
Described intelligent domain name resolution server, for carrying out parsing and positive guide to the domain name adopting http protocol to carry out transfer of data; And this intelligent domain name resolution server net with in operator in dns server be connected, and configure operator DNS server and adopt DNS Forwarding mode;
Described network traffics detect and Control Server, for monitoring network traffics, controlling and positive guide; And the detection of these network traffics and Control Server utilize the image feature of optical splitter or the network equipment, network flow data is imported and wherein analyzes;
Described network traffic cache server, for carrying out buffer memory and downloading for user provides or play service to file;
Described tracking server, for serving P2P agreement, guides user to connect other clients in Home Network and caching server.
In technique scheme, described intelligent domain name resolution server comprises further:
Resolve and positive guide module, for carrying out parsing and positive guide to the domain name adopting http protocol to carry out transfer of data;
Judge module, for judging whether domain name that user asks belongs to the service range of cache subsystem;
Return module, for when the domain name that user asks is positioned at cache subsystem, the address of caching server is fed back to user;
Wherein, also comprise when judge module judges that the domain name of the user's request drawn is not positioned at cache subsystem: inquiry of the domain name module, for proxy user to upper level dns server nslookup, and returns to user by Query Result.
In technique scheme, described network traffics detect and Control Server comprises further:
Traffic identification detection module, for analyzing the protocol type identifying that the network flow data in carrier network exit adopts; With
Sending module, for the request based on user, sends redirection message to user, pretends message or distort message, is responsible for outside net destination server simultaneously and sends break link message.
Compared with prior art, technical advantage of the present invention is:
1, be easy to dispose, very little to network environment influence
Caching system adopts bypass mode to carry out treatment and analysis to network traffics, and it is convenient to dispose, and operator's acceptance level is high.After disposal ability bottleneck or server failure appear in caching system, the normal online application of user can not be affected.
2, positive guide mode enriches the agreement of network traffics and work-based logic change is various, single positive guide mode is adopted to be not enough to all application all to override, native system supports multiple positive guide mode, after these modes combine use, can go up to greatest extent and network traffics are directed to caching system serve.
3, caching server quantity is reduced, energy-saving and emission-reduction
Native system is dispatched user in net to greatest extent for P2P agreement and is carried out interconnected, reduces the service pressure of caching server, thus can reduce the deployment quantity of caching server to a certain extent, realize the target of energy-saving and emission-reduction.
4, save network egress bandwidth, cut operating costs
Network traffics are directed to caching system by multiple means by native system, in scheduling net, (network of same operator forms a local area network (LAN) simultaneously, the user being positioned at local area network (LAN) constitutes Intranet, outside local area network (LAN) to be net outer) user carries out data sharing, greatly reduce the flow pressure of outlet, for medium and small operator, then mean the significantly reduction of operation cost.
5, after promoting the deployment of user's experience native system, while saving network egress bandwidth, user is from caching system downloading data, and because distance is nearer, bandwidth is secure, and the experience for user has larger lifting.
6, realize input to increase
After disposing this system, the experience of user can be greatly improved, and user's stickiness can promote, and the user of other operators can be attracted simultaneously to use the network disposing native system, thus achieve revenue growth.Simultaneously, the a large amount of data of caching system buffer memory, possibility is provided for next step provides value added service, the ARPU value of user can be promoted further, wherein ARPU mono-word is from English Average Revenue Per User, its Chinese is meant to the average income of each user, and the important indicator weighed user and be worth be used as in recent years in this word by telecom operators, increases operator's income.
Make in this way, effectively can improve the service performance of caching system, make to dispose a small amount of caching server, and under not affecting the prerequisite of user's experience, reach the object optimizing ISP's outlet bandwidth.
Accompanying drawing explanation
Fig. 1: the structure chart of the network traffic cache system based on positive guide of the present invention;
Fig. 2: based on the working-flow figure of intelligent domain name resolution positive guide;
Fig. 3: based on the working-flow figure-1 sending redirection message positive guide;
Fig. 4: based on the working-flow figure-2 sending redirection message positive guide;
Fig. 5: based on the working-flow figure of camouflage message positive guide;
Fig. 6: based on the working-flow figure replacing message content positive guide.
Embodiment
Below in conjunction with the drawings and specific embodiments, the present invention will be described in detail.
As shown in Figure 1, the network traffic cache method that proposes of the present invention by intelligent domain name resolution server, network traffics detect and Control Server, traffic service proxy caching server, tracking server four parts have been worked in coordination with.Wherein intelligent domain name resolution server is used for carrying out parsing and positive guide to the domain name adopting http protocol to carry out transfer of data; Network traffics and Control Server are used for monitoring network traffics, controlling and positive guide; Network traffic cache server carries out buffer memory to file and downloads for user provides or play service; Tracking server serves primarily in P2P agreement, guides user to connect other clients in Home Network and caching server.
Positive guide is divided into following Four types:
1) based on intelligent domain name resolution positive guide;
2) based on transmission redirection message positive guide;
3) based on camouflage message positive guide;
4) based on replacement message content positive guide;
These four kinds of positive guide modes are applied to different scene respectively.
Based on intelligent domain name resolution positive guide
As shown in Figure 2, the service request which is applicable to user adopts domain name mode, uses http protocol as the application scenarios of host-host protocol.The scope of application comprises Online Video, video request program, high-speed downloads, limit are broadcast below, the tracking server etc. of P2P agreement.
The job step of which is as follows:
1, intelligent domain name resolution server is netted with in operator in dns server be connected, and configure operator DNS server and adopt DNS Forwarding mode that the DNS request of user in net is forwarded to intelligent domain name resolution server;
2, first intelligent domain name resolution server judges whether the domain name that user asks belongs to caching system service range, wherein judge according to as the service range of buffer service subsystem be multiple IP address fields, be configured on intelligent domain name resolution server by configuration file mode, if the caching server address being arranged in cache subsystem in cache subsystem service range, is then returned to user by the domain name of user's request; If the domain name of user's request is not in cache subsystem service range, then intelligent domain name resolution server agent user is to upper level dns server nslookup, and Query Result is returned to user, what user took has been exactly the address of public network server, then uses service.
3, caching system is directed into according to above-mentioned return cache server address user request, by caching system server for user provides service needed for it.
Based on transmission redirection message positive guide
As shown in Figure 3 and Figure 4, the service request which is applicable to user adopts non-domain name mode, although or adopt domain name mode, comprise in this domain name and only can't provide the request of its required service for user by cache subsystem, use http protocol as the application scenarios of host-host protocol.The scope of application comprises Online Video, video request program, high-speed downloads, limit are broadcast below, tracking server etc.
The job step of which is as follows:
1, the image feature of optical splitter or the network equipment is utilized, by network flow data (namely, be positioned at the uplink traffic in carrier network exit) import to network traffics detect and Control Server analyze, these network traffics detect and Control Server is used on the one hand the protocol type that recognition network data on flows adopts, and are also responsible on the other hand identifying and process the request message that user sends.
2, first network traffics detection and Control Server judge whether the request that user sends meets redirected message characteristic, if it is judge whether cache subsystem can provide service for it further, if cache subsystem can not provide service needed for it for user, abandon the request message that this user sends; If can provide service for user, then network traffics detection and Control Server send redirection message to user, and outwards net destination server sends break link message simultaneously.
3, after user gets redirection message, initiate request to certain caching server being arranged in cache subsystem, caching server provides the service needed for it for user;
In addition, for the acquisition Peer list request adopting P2P agreement, user is connected to the tracking server of cache subsystem, by tracking server to other Peer address lists in user's return cache server and Home Network; And for the request of P2P agreement, user, after acquisition Peer list, initiates downloading data request to caching server, caching server reads data or proxy user after external network server downloading data from this locality, return to user; User initiates data download request to user in Home Network simultaneously, and the net realizing data is interior mutual.This section of text description scheme belongs to the guiding of redirected mode, but prerequisite adopts P2P agreement acquisition Peer list to be adopt http protocol to realize.In the P2P scene that hypomere describes, obtain Peer list and adopt UDP mode or do not support the TCP mode that is redirected.
Based on the positive guide of camouflage message
As shown in Figure 5, which is applicable to the application scenarios of service request based on P2P agreement of user.The scope of application comprises video request program, high-speed downloads, limit are broadcast below.
The job step of which is as follows:
1, utilize the image feature of optical splitter or the network equipment, network flow data is imported to network traffics detect and Control Server analyze.
2, when network traffics detect and Control Server finds that the request of user meets P2P protocol massages feature, and when caching system can provide service, send camouflage message to user, in message, comprise Peer address list in caching server address and Home Network; If transport layer protocol is Transmission Control Protocol, also need to send break link message to external network server simultaneously.
3, after user receives camouflage message, in caching server and Home Network, other Peer initiate data download request.
Based on replacement message content positive guide
As shown in de-6, the service request which is applicable to user adopts interactive mode to obtain the application scenarios of download server address list.The scope of application is Online Video mainly.
The job step of which is as follows:
1, use intelligent domain name resolution server or network traffics detection and Control Server that the request of user is directed to caching server.
2, caching server proxy user performs reciprocal process.
3, caching server analyzes the message of reciprocal process, when the message finding that external network server returns is address list message, replaces the server address in message with caching server address, then the message after replacement is returned to user.
4, user is directed into caching server download data.
Above four kinds of modes join together to use, to greatest extent caching server will be used, a large amount of data download request is made to stay in net, simultaneously for the application service adopting P2P agreement, the user that the method can also be dispatched in Home Network carries out interconnected, while guarantee user experience, the deployment quantity of caching server can be reduced
Embodiment accesses many special downloads for user, and the working mechanism based on intelligent domain name resolution server positive guide is described.
User's open any browser access Duo Te website, select certain software download, browser first initiates DNS request to dns server before downloading, user's request is redirect to intelligent domain name resolution server by dns server, caching server address is returned to dns server by intelligent domain name resolution server, and caching server address is returned to user by dns server.User initiates download request to caching server, and caching server is to user's return data.User finally completes download.
Access excellent cruel video for user, the working mechanism based on sending redirection message positive guide is described.
User opens Yoqoo station, select certain video playback, player initiates downloading data request to source station data server, and network traffics detect and Control Server monitors this download request, have sent redirection message to user, send break link message to source station server simultaneously.User uses address in redirection message to initiate data download request to caching server, and caching server provides data, user's displaying video for user.
Access potato video for user, the working mechanism based on replacing message content positive guide is described.
User accesses potato video website, selects certain video playback, and caching server address is returned to user by intelligent domain name resolution server, and user initiates interaction request to caching server, and caching server proxy user initiates interaction request to external network server.Caching server checks the message that external network server returns, if message comprises download server address list, then use the download server address in caching server address replacement message, the message after then content being replaced returns to user.User initiates downloading data request to caching server, and caching server is to user's return data, and user starts displaying video.
Use EMule to download for user, the working mechanism based on camouflage message positive guide is described.
User opens EMule client downloads resource, network traffics detection and Control Server monitor the Peer list request of user, network traffics detect and Control Server camouflage Peer list message, are put into Peer address in caching server address and Home Network in camouflage message and return to user.User uses the Peer list after camouflage to initiate downloading data request to other Peer in caching server and Home Network.User finally completes file download.
It should be noted that, embodiment of the present invention of above introduction and and unrestricted.It will be understood by those of skill in the art that any amendment to technical solution of the present invention or the equivalent alternative spirit and scope not departing from technical solution of the present invention, it all should be encompassed in right of the present invention.