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
Internet user's application service is progressively changed to information-based, life-stylize by entertainment orientation in recent ten years, application service is from the original text transmission that mainly concentrates on web page browsing and instant messaging, change into gradually and mainly concentrate on the application services such as Online Video, high-speed downloads, limit bottom are broadcast, video request program, demand to resource is also pursued by original nothing, changes pursuit abundant, the high definition resource into.
These application services mainly adopt http protocol or P2P agreement to realize the transmission of data on network, and the P2P agreement has polytype, and different agreements is based upon on the different transport layer protocols, comprises two kinds of host-host protocols of TCP and UDP.
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 guaranteeing the service experience that the user is good.For medium and small operator, want to guarantee user's experience, must constantly promote the 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 the net is not enough to become bottleneck, the outgoing access problem is not still solved well, still can not guarantee well user's experience.
In order to address the above 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 user's experience problem does not solve, and if things go on like this will cause user's loss; First scheme is buffer memory, this is a kind of method of dredging, after network traffic cache is in net, provide service for the user again, both can reduce the bandwidth pressure of network egress, simultaneously because caching server and user's distance is nearer, bandwidth situation is better, so user's experience also can be satisfied to greatest extent.The concrete scheme of flow buffering mainly comprises following two kinds:
Scheme one seals in mode.Seal in seven layer switch or adopt the WCCP mode to turn to caching system to process particular flow rate at network egress, thereby realize the buffer memory service.The advantage of this mode is that all flows all can be taken over and process by system, can realize in theory the maximization of buffer memory effect.Shortcoming is owing to having adopted the mode of sealing in, and is larger on the impact of legacy network, and seals in the bottleneck that equipment may become network, in case this equipment failure may cause the disconnecting of user and outer net.This mode operator generally is unwilling to accept.
Scheme two, bypass mode.With the message in the outlet of bypass mode monitoring network, agreement in the network traffics is analyzed, with the network traffic cache that meets the demands to the local cache server, and then initiatively the user is directed to the local cache server service is provided, cut off simultaneously linking of Intranet user and outer network server.This mode can not destroyed original network configuration, only a caching system that arrives of network traffics mirror image need to be got final product, and after caching system reaches processing bottleneck or equipment failure, can not affect user's use.This mode operator is more acceptant.
The present invention is on the basis of scheme two, proposes a kind of improved network traffic cache method.The method is according to different procotols, adopt respectively different positive guide modes, realization is directed to the local cache system with the user service is provided, effectively utilized caching server, for the P2P agreement, can effectively dispatch simultaneously the interconnected of the interior user of net, take full advantage of user's service ability, thereby further promoted the integrity service performance of caching system.
Summary of the invention
The purpose of this invention is to provide a kind of method that improves the network traffic cache performance, on the one hand, for the host-host protocol that network traffics are used, adopt respectively different positive guide methods that user's request is directed to caching server; On the other hand, for the P2P agreement, take full advantage of the resource uploading of user in the 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 is adopted is analyzed, with the network traffic cache that meets the demands to the local cache server, described interior network refers to belong to the network of same operator, and the implementation of this step belongs to prior art not to be done at this and give unnecessary details;
Step 102) protocol type that adopts of the User service of asking user's positive guide of selecting a kind of positive guide mode will send service request from following several modes provides service to the local cache server for it, linking between the Intranet of cutting off simultaneously this user place and the outer network server;
Mode one for the service of using HTTP as application layer communication protocol, and when supporting redirection message, adopts and is redirected guiding mechanism this user is directed to the local cache server;
Mode two, for the service of adopting the domain name mode, simultaneously caching system support is acted on behalf of this service, adopts intelligent DNS guidance mode that the user is directed to the local cache server;
Mode three for adopting udp protocol, perhaps adopts Transmission Control Protocol but the service not supporting to be redirected, adopts camouflage message guidance mode that the user is directed to the local cache server;
Mode four, for adopting http protocol, HOST is the IP address among the URL that server comprises in returned packet, and this IP address belongs in the net that caching system disposes, and adopts the guidance mode of distorting message that the user is directed to the local cache server.
In the technique scheme, described mode one further comprises following substep:
Intelligent domain name resolution server is linked to each other with dns server in operator's net, and the DNS request that configuration operator DNS server adopts DNS Forwarding mode will net interior user is forwarded to intelligent domain name resolution server;
The intelligence domain name resolution server judges at first whether the domain name that the user asks belongs to the caching system service range, if the domain name of user's request then returns to the user with the caching server address in the caching system service range; If the domain name of user request is not in the caching system service range, then intelligent domain name analysis server agent user is to upper level dns server nslookup, and Query Result is returned to the user;
Be directed into caching server according to above-mentioned return cache server address user request, provide its required service by this caching server for the user.
In the technique scheme, described mode two further comprises following substep:
Utilize the image feature of optical splitter or the network equipment, network flow data is imported to network traffics detect and Control Server is analyzed;
When network traffics detect and Control Server finds that user's request meets redirected message characteristic, and caching system sends redirection message to the user when service can be provided; Outwards the server of mesh sends the break link message simultaneously;
After the user gets access to redirection message, for video or download request, directly initiate download request, caching server proxy user downloading data to caching server;
For the P2P agreement obtain the Peer list request, the user is connected to the tracking server of caching system, by tracking server other Peer address lists in user's return cache server and the Home Network;
For the request of P2P agreement, the user initiates the downloading data request to caching server after obtaining the Peer tabulation, and caching server returns to the user behind local reading out data or the outside network server downloading data of proxy user; The user simultaneously in the Home Network user initiate the data download request, realize in the net of data mutual.
In the technique scheme, described mode three further comprises following substep:
Utilize the image feature of optical splitter or the network equipment, network flow data is imported to network traffics detect and Control Server is analyzed;
When network traffics detect and Control Server finds that user's request meets P2P protocol massages feature, and caching system sends the camouflage message to the user when service can be provided, and comprises Peer address list in caching server address and the Home Network in the message; If transport layer protocol is Transmission Control Protocol, outwards also needing simultaneously, network server sends the break link message;
After the user received the camouflage message, other Peer initiated data download requests in caching server and the Home Network.
In the technique scheme, described mode four further comprises following substep:
Use the detection of intelligent domain name resolution server or network traffics and Control Server that user's request is directed to caching server;
The caching server proxy user is carried out reciprocal process;
Caching server is analyzed the message of reciprocal process, and when the message that network server returns outside finding was the address list message, the user cache server address was replaced the server address in the message, and the message after then will replacing returns to the user;
The user is directed into downloading data on the caching server.
Also provide a kind of network traffic cache system based on positive guide based on said method the present invention, this caching system comprises the some caching servers that are positioned at the carrier network exit with bypass mode, it is characterized in that, described caching system also comprises: positive guide mode trade-off decision subsystem, the agreement that this subsystem is used for adopting according to network traffics selects a kind of positive guide mode to provide service to the local cache server for it with user's positive guide from following several mode, and wherein said several mode specifically comprises: be redirected guiding mechanism, intelligence DNS guidance mode, camouflage message guidance mode and the guidance mode of distorting message; With
Disconnect subsystem, be used for linking between the cut-out Intranet user and outer network server when the user is directed to caching server;
Wherein, described positive guide mode decision-making subsystem further comprises: 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 is used for the domain name that adopts http protocol to carry out transfer of data is resolved and positive guide; And should link to each other with dns server in operator's net by the intelligence domain name resolution server, and configuration operator DNS server adopts DNS Forwarding mode;
Described network traffics detect and Control Server, be used for to network traffics monitor, control and positive guide; And this network traffics detection and Control Server utilize the image feature of optical splitter or the network equipment, network flow data is imported wherein analyze;
Described network traffic cache server is used for file is carried out buffer memory and downloads or play service for the user provides;
Described tracking server is used for serving the P2P agreement, and the guiding user connects other clients and the caching server in the Home Network.
In the technique scheme, described intelligent domain name resolution server further comprises:
Resolve and the positive guide module, be used for the domain name that adopts http protocol to carry out transfer of data is resolved and positive guide;
Judge module is used for judging whether the domain name of user's request belongs to the service range of cache subsystem;
Return module, be used for when domain name that the user asks is positioned at cache subsystem, the address of caching server is fed back to the user;
Wherein, judge the domain name of the user's request that draws when judge module and also do not comprise when not being positioned at cache subsystem: the inquiry of the domain name module is used for proxy user to upper level dns server nslookup, and Query Result is returned to the user.
In the technique scheme, described network traffics detect and Control Server further comprises:
Flow recognition detection module is used for analysis and identifies the protocol type that the network flow data in carrier network exit adopts; With
Sending module is used for the request based on the user, sends redirection message, pretends message or distorts message to the user, and the server of being responsible for simultaneously outside mesh sends the 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 that network traffics are analyzed and processed, and it is convenient to dispose, and operator's acceptance level is high.After disposal ability bottleneck or server inefficacy appearred in caching system, the normal online that can not affect the user was used.
2, the positive guide mode is enriched the agreement of network traffics and work-based logic changes various, adopt single positive guide mode to be not enough to all application are all override, native system is supported 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, reduce caching server quantity, energy-saving and emission-reduction
Native system is dispatched to greatest extent in the net user for the P2P agreement and is carried out interconnectedly, reduces the service pressure of caching server, thereby can reduce to a certain extent the deployment quantity of caching server, realizes the target of energy-saving and emission-reduction.
4, save the network egress bandwidth, cut operating costs
Native system is directed to caching system by multiple means with network traffics, (network of same operator consists of a local area network (LAN) in the scheduling net simultaneously, the user who is positioned at local area network (LAN) has consisted of Intranet, being outside the net outside the local area network (LAN)) user carries out data sharing, greatly reduced the flow pressure of outlet, for medium and small operator, then mean the decrease of operation cost.
5, promote user's experience native system and dispose after, when saving the network egress bandwidth, the user is from the caching system downloading data because distance is nearer, bandwidth is secure, has larger lifting for user's experience.
6, realize that input increases
After disposing this system, user's experience can be greatly improved, and user's stickiness can promote, and can attract simultaneously the user of other operators to use the network of disposing native system, thereby realize revenue growth.Simultaneously, the caching system buffer memory a large amount of data, for providing value added service, next step provides possibility, can further promote user's ARPU value, wherein ARPU one word is from English Average Revenue Per User, its the Chinese meaning is each user's average income, and this word is used as the important indicator of weighing user's value by telecom operators in recent years, increases operator's income.
After making in this way, can effectively improve the service performance of caching system, so that dispose a small amount of caching server, and do not affect under the prerequisite of user's experience, reach the purpose of optimizing ISP's outlet bandwidth.
Description of drawings
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 analysis positive guide;
Fig. 3: based on the working-flow figure-1 that sends the redirection message positive guide;
Fig. 4: based on the working-flow figure-2 that sends the 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 that replaces the message content positive guide.
Embodiment
The present invention will be described in detail below in conjunction with the drawings and specific embodiments.
As shown in Figure 1, the network traffic cache method of the present invention's proposition is worked in coordination with and is finished by intelligent domain name resolution server, network traffics detection and Control Server, traffic service proxy caching server, four parts of tracking server.Wherein intelligent domain name resolution server is used for the domain name that adopts http protocol to carry out transfer of data is resolved and positive guide; Network traffics and Control Server be used for to network traffics monitor, control and positive guide; The network traffic cache server carries out buffer memory and downloads or play service for the user provides file; The tracking server main services is in the P2P agreement, and the guiding user connects other clients and the caching server in the Home Network.
Positive guide is divided into following Four types:
1) based on intelligent domain name analysis positive guide;
2) based on sending the redirection message positive guide;
3) based on camouflage message positive guide;
4) based on replacing the message content positive guide;
These four kinds of positive guide modes are applied to respectively different scenes.
Based on intelligent domain name analysis positive guide
As shown in Figure 2, the service request that this mode is applicable to the user adopts the domain name mode, uses http protocol as the application scenarios of host-host protocol.The scope of application comprises that Online Video, video request program, high-speed downloads, limit bottom are broadcast, the tracking server of P2P agreement etc.
The job step of this mode is as follows:
1, intelligent domain name resolution server is linked to each other with dns server in operator's net, and the DNS request that configuration operator DNS server adopts DNS Forwarding mode will net interior user is forwarded to intelligent domain name resolution server;
2, intelligent domain name resolution server judges at first whether the domain name that the user asks belongs to the caching system service range, the foundation of wherein judging is that the service range of buffer memory service subsystem is a plurality of IP address fields, be configured on the intelligent domain name resolution server by the configuration file mode, if the domain name of user's request is in the cache subsystem service range, the caching server address that then will be arranged in cache subsystem returns to the user; If the domain name of user's request is not in the cache subsystem service range, then intelligent domain name analysis server agent user is to upper level dns server nslookup, and Query Result returned to the user, what the user took has been exactly the address of public network server, then uses service.
3, be directed into caching system according to above-mentioned return cache server address user request, provide its required service by the caching system server for the user.
Based on sending the redirection message positive guide
As shown in Figure 3 and Figure 4, the service request that this mode is applicable to the user adopts non-domain name mode, although perhaps adopt the domain name mode, comprise the request that its required service only can't be provided for the user by cache subsystem in this domain name, use http protocol as the application scenarios of host-host protocol.The scope of application comprises that Online Video, video request program, high-speed downloads, limit bottom are broadcast, tracking server etc.
The job step of this mode is as follows:
1, utilizes the image feature of optical splitter or the network equipment, with network flow data (namely, be positioned at the uplink traffic in carrier network exit) import to that network traffics detect and Control Server is analyzed, these network traffics detect and Control Server is used for the protocol type that the recognition network data on flows adopts on the one hand, also are responsible on the other hand the request message that identification and process user are sent.
2, network traffics detection and Control Server judge at first whether the request that the user sends meets redirected message characteristic, judge further if it is whether cache subsystem can be for it provides service, if cache subsystem can not provide its required service for the user then abandon the request message that this user sends; If can provide service for the user, then network traffics detection and Control Server send redirection message to the user, and outwards the server of mesh sends the break link message simultaneously.
3, after the user gets access to redirection message, initiate request to certain caching server that is arranged in cache subsystem, caching server provides its required service for the user;
In addition, obtain the Peer list request for what adopt the P2P agreement, the user is connected to the tracking server of cache subsystem, by tracking server other Peer address lists in user's return cache server and the Home Network; And for the request of P2P agreement, the user initiates the downloading data request to caching server after obtaining the Peer tabulation, and caching server returns to the user behind local reading out data or the outside network server downloading data of proxy user; The user simultaneously in the Home Network user initiate the data download request, realize in the net of data mutual.This section text description scheme belongs to the guiding of the mode that is redirected, but prerequisite is that to adopt the P2P agreement to obtain the Peer tabulation be to adopt http protocol to realize.In the P2P scene that hypomere is described, obtain the TCP mode that the Peer tabulation is adopted the UDP mode or do not supported to be redirected.
Positive guide based on the camouflage message
As shown in Figure 5, this mode is applicable to user's service request based on the application scenarios of P2P agreement.The scope of application comprises that video request program, high-speed downloads, limit bottom broadcast etc.
The job step of this mode is as follows:
1, utilizes the image feature of optical splitter or the network equipment, network flow data is imported to network traffics detect and Control Server is analyzed.
2, detect and Control Server finds that user's request meets P2P protocol massages feature when network traffics, and caching system sends the camouflage message to the user when service can be provided, comprise Peer address list in caching server address and the Home Network in the message; If transport layer protocol is Transmission Control Protocol, outwards also needing simultaneously, network server sends the break link message.
3, after the user received the camouflage message, other Peer initiated data download requests in caching server and the Home Network.
Based on replacing the message content positive guide
As take off shown in the of 6, the service request that this mode is applicable to the user adopts interactive mode to obtain the application scenarios of Download Server address list.The scope of application mainly is Online Video.
The job step of this mode is as follows:
1, use the detection of intelligent domain name resolution server or network traffics and Control Server that user's request is directed to caching server.
2, the caching server proxy user is carried out reciprocal process.
3, caching server is analyzed the message of reciprocal process, and when the message that network server returns outside finding was the address list message, with the server address in the caching server address replacement message, the message after then will replacing returned to the user.
4, the user is directed into downloading data on the caching server.
Above four kinds of modes join together to use, to to greatest extent caching server be used, a large amount of data download requests is stayed in the net, simultaneously for the application service of adopting the P2P agreement, the user that the method can also be dispatched in the Home Network carries out interconnected, when guaranteeing user's experience, can reduce the deployment quantity of caching server
Embodiment accesses many special downloads as example take the 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 to download, browser is initiated the DNS request to dns server first before download, dns server redirect to intelligent domain name resolution server with user's request, the intelligence domain name resolution server returns to dns server with the caching server address, and dns server returns to the user with the caching server address.The user initiates download request to caching server, and caching server is to user's return data.The user finally finishes download.
Access excellent cruel video as example take the user, illustrate based on the working mechanism that sends the redirection message positive guide.
The user opens the Yoqoo station, select certain video playback, player is initiated the downloading data request to the source station data server, and network traffics detect and Control Server monitors this download request, send redirection message to the user, sent the break link message to the source station server simultaneously.The user uses in the redirection message address to initiate the data download request to caching server, and caching server provides data for the user, user's displaying video.
Access the potato video as example take the user, illustrate based on the working mechanism that replaces the message content positive guide.
The user accesses the potato video website, selects certain video playback, and intelligent domain name resolution server returns to the user with the caching server address, and the user initiates mutual request to caching server, and the outside network server of caching server proxy user is initiated mutual request.The message that the outer network server of caching server inspection returns if message comprises the Download Server address list, then uses the Download Server address in the caching server address replacement message, then the message behind the content replacement is returned to the user.The user initiates the downloading data request to caching server, and caching server is to user's return data, and the user begins displaying video.
Use EMule to download as example with the user, the working mechanism based on camouflage message positive guide is described.
The user opens EMule client downloads resource, network traffics detection and Control Server monitor user's Peer list request, network traffics detect and Control Server camouflage Peer tabulation message, Peer address in caching server address and the Home Network is put in the camouflage message returns to the user.The user uses Peer tabulation other Peer in caching server and the Home Network after the camouflage to initiate downloading data requests.The user finally finishes file and downloads.
Need to prove, embodiment of the present invention of above introduction and and unrestricted.It will be understood by those of skill in the art that any modification to technical solution of the present invention or be equal to substitute the spirit and scope that do not break away from technical solution of the present invention, it all should be encompassed in the claim scope of the present invention.