CN106941507A - The dispatching method and device of request message - Google Patents

The dispatching method and device of request message Download PDF

Info

Publication number
CN106941507A
CN106941507A CN201610005842.5A CN201610005842A CN106941507A CN 106941507 A CN106941507 A CN 106941507A CN 201610005842 A CN201610005842 A CN 201610005842A CN 106941507 A CN106941507 A CN 106941507A
Authority
CN
China
Prior art keywords
caching servers
cdn caching
lan
cdn
address
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201610005842.5A
Other languages
Chinese (zh)
Other versions
CN106941507B (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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN201610005842.5A priority Critical patent/CN106941507B/en
Publication of CN106941507A publication Critical patent/CN106941507A/en
Application granted granted Critical
Publication of CN106941507B publication Critical patent/CN106941507B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
    • 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/1001Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers

Abstract

The invention provides a kind of dispatching method of request message and device.Wherein, this method includes:The dispatch request that receiving terminal is sent by router, wherein dispatch request are used for the object content distribution network CDN caching servers for asking for terminal scheduling to be located in LAN, and router is connected between wide area network and the LAN;Obtain the router address of the router for sending dispatch request;LAN according to where router address searches terminal, a CDN caching server, which is dispatched, from the CDN caching servers in LAN is used as target CDN caching servers, and the server address of target CDN caching servers is issued to terminal, so that the content cached in terminal access target CDN caching servers.By the present invention, solve terminal caused by GSLB GSLB equipment to the resource in the terminal scheduling wide area network server of LAN in correlation technique and obtain the problem of resource time delay is larger.

Description

The dispatching method and device of request message
Technical field
The present invention relates to the communications field, in particular to the dispatching method and device of a kind of request message.
Background technology
Content distributing network (Content Delivery Network, referred to as CDN), the purpose is in trunk web portal Increase a set of buffer memory device, by user from the content caching obtained on internet servers into complete equipment Cache, Subsequent user accesses same resource, it is possible to directly obtained from buffer memory device Cache, without going to obtain from source station Take.Small ingress bandwidth between netting, network congestion, the situation of congestion can be thus solved, and improves user access resources Response speed.This user bad to network condition and operator are highly useful, strengthen Consumer's Experience.
Current GSLB (Global Server Load Balance, referred to as GSLB) device redirection system Realize the flow allocating on wide area network (including internet) between the server of different geographical, it is ensured that use optimal server The client nearest from oneself is serviced, so that it is guaranteed that accessing quality.
But GSLB GSLB equipment and CDN caching systems are typically all feature in same Wide Area Network It is that can determine the availability of server by judging the data such as the load of server, including CPU occupancy, bandwidth occupancy, Link circuit condition of the user (visitor) between server, the best server of selection link circuit condition can be judged simultaneously.Therefore it is complete Office load balancing GSLB is that server and link are carried out comprehensive descision to determine to be provided by the server in which place Service, realizes the guarantee of strange land server zone service quality, the GSLB in wide area network occurs substantially in implementation above Situation about being dispatched between GSLB and server.
As can be seen here, GSLB GSLB and the wide area network server in wide area network mainly are realized in correlation technique Between situation about dispatching, and the server being deep into LAN.
For in correlation technique, GSLB GSLB equipment is to the terminal scheduling wide area network server positioned at LAN In resource caused by terminal obtain resource time delay it is larger the problem of, not yet propose effective solution.
The content of the invention
It is equal at least to solve global load in correlation technique the invention provides a kind of dispatching method of request message and device When terminal obtains resource caused by the GSLB equipment to the resource in the terminal scheduling wide area network server of LAN that weighs The problem of prolonging larger.
According to an aspect of the invention, there is provided a kind of dispatching method of request message, including:Receiving terminal passes through road The dispatch request sent by device, wherein, the dispatch request is used for the mesh for asking for the terminal scheduling to be located in LAN Content distributing network CDN caching servers are marked, the router is connected between wide area network and the LAN;Obtain For the router address for the router for sending the dispatch request;The terminal is searched according to the router address The LAN at place, a CDN caching server is dispatched from the CDN caching servers in the LAN Institute is issued to as the target CDN caching servers, and by the server address of the target CDN caching servers Terminal is stated, so that the content cached in target CDN caching servers described in the terminal access.
Alternatively, before the dispatch request that the receiving terminal is sent by router, also include:It is located at described in receiving The registration request that CDN caching servers in the LAN are sent;Store and carried in the registration request for referring to Show the information of one of following relation:The first mapping between the lan address section of the router address and the LAN Relation;Between the router address, lan address section and the server address of the CDN caching servers The second mapping relations;And the router address, the lan address section and the CDN caching servers The 3rd mapping relations between status information, wherein, the status information of the CDN caching servers is described for indicating The use state of CDN caching servers.
Alternatively, when the information for indicating first mapping relations is carried in the registration request, the basis The LAN where the router address searches the terminal includes:Search with the router address with described The lan address section of first mapping relations;One is dispatched from the CDN caching servers in the LAN CDN caching servers include as the target CDN caching servers:It is located at the local entoilage from server address One CDN caching servers, which are dispatched, in CDN caching servers in the section of location caches clothes as the target CDN Business device.
Alternatively, when the information for indicating second mapping relations is carried in the registration request, the basis The LAN where the router address searches the terminal includes:Search with the router address with described The lan address section and the server address of the CDN caching servers of second mapping relations;From positioned at described CDN caching servers in LAN dispatch a CDN caching server and are used as the target CDN caching servers Including:One CDN is dispatched in the CDN caching servers being located at from server address in lan address section Caching server is used as the target CDN caching servers.
Alternatively, when the information for indicating the 3rd mapping relations is carried in the registration request, the basis The LAN where the router address searches the terminal includes:Search with the router address with described The lan address section and the status information of the CDN caching servers of 3rd mapping relations;From positioned at the office CDN caching servers in the net of domain dispatch a CDN caching server and are used as the target CDN caching server bags Include:Dispatching the status information in the CDN caching servers being located at from server address in lan address section expires One CDN caching servers of sufficient predetermined condition are used as the target CDN caching servers.
Alternatively, it is issued to after the terminal, also wraps by the server address of the target CDN caching servers Include:Judge whether the target CDN caching servers include the content that the terminal is accessed;Judging the mesh In the case of the content that mark CDN caching servers are accessed comprising the terminal, the content that the terminal is accessed is sent out Give the terminal;Judging the feelings for the content that the target CDN caching servers are accessed not comprising the terminal Under condition, sent to global server load balancing GSLB and redirect request, with obtaining and being accessed comprising the terminal The address of the source server of appearance;The terminal institute is obtained from the source server indicated by the address of the source server The content of access.
Alternatively, after the registration request that the CDN caching servers in the LAN are sent is received, Also include:After succeeding in registration, the state new information that the CDN caching servers are sent is received;Wherein, in institute State state new information and indicate that the CDN caching servers are changed into state good for use from abnormal down state, then will The server address of the CDN caching servers and the mapping relations of lan address section are reflected added to described second Penetrate in relation, and add the status information of the CDN caching servers in the 3rd mapping relations;In the shape State new information indicates that the CDN caching servers are changed into the abnormal down state from the state good for use, And the time in the abnormal down state exceedes predetermined threshold, then deletes the CDN caching servers corresponding Second mapping relations, and delete the status information of the CDN caching servers in the 3rd mapping relations.
Alternatively, institute is dispatched in the CDN caching servers being located at from server address in lan address section State status information and meet one CDN caching servers of predetermined condition as the target CDN caching server bags Include:Judge whether the load for the CDN caching servers being located in lan address section is less than predetermined threshold value;If institute State load and be less than the predetermined threshold value, then regard one CDN caching servers as the target CDN buffer services Device;Wherein, the load of CDN caching servers includes at least one of:CDN caching servers center processing Device CPU usage, the storage utilization rate of the CDN caching servers, the CDN caching servers take to public network The bandwidth of device request resource of being engaged in and the service bandwidth of the CDN caching servers.
According to another aspect of the present invention there is provided a kind of dispatching device of request message, including:First receiver module, The dispatch request sent for receiving terminal by router, wherein, the dispatch request is used to ask to adjust for the terminal Degree is located at the object content distribution network CDN caching servers in LAN, and the router is connected to wide area network and institute State between LAN;Acquisition module, the router address for obtaining the router for being used to send the dispatch request; Scheduler module, the LAN where for searching the terminal according to the router address, from positioned at the local CDN caching servers in net dispatch a CDN caching server as the target CDN caching servers, and The server address of the target CDN caching servers is issued to the terminal, so that mesh described in the terminal access The content cached in mark CDN caching servers.
Alternatively, described device also includes:Second receiver module, for what is sent in the receiving terminal by router Before dispatch request, the registration request that the CDN caching servers in the LAN are sent is received;Storage Module, for storing the information carried in the registration request for indicating one of following relation:The router address The first mapping relations between the lan address section of the LAN;The router address, the lan address The second mapping relations between section and the server address of the CDN caching servers;And the router address, The 3rd mapping relations between the lan address section and the status information of the CDN caching servers, wherein, institute State the use state that the status information of CDN caching servers is used to indicate the CDN caching servers.
Alternatively, the scheduler module includes:First searching unit, is used to refer to for carrying in the registration request When showing the information of first mapping relations, the office that there are first mapping relations with the router address is searched Domain net address section;First scheduling unit, for the CDN cachings being located at from server address in lan address section One CDN caching servers are dispatched in server as the target CDN caching servers.
Alternatively, the scheduler module also includes:Second searching unit, is used for for being carried in the registration request When indicating the information of second mapping relations, lookup has the described of second mapping relations with the router address The server address of lan address section and the CDN caching servers;Second scheduling unit, for from server One CDN caching servers are dispatched as institute in the CDN caching servers that location is located in lan address section State target CDN caching servers.
Alternatively, the scheduler module also includes:3rd searching unit, is used for for being carried in the registration request When indicating the information of the 3rd mapping relations, lookup has the described of the 3rd mapping relations with the router address The status information of lan address section and the CDN caching servers;3rd scheduling unit, for from server address The status information is dispatched in the CDN caching servers in lan address section to meet described in predetermined condition One CDN caching server is used as the target CDN caching servers.
Alternatively, described device also includes:Judge module, for by the service of the target CDN caching servers Device address is issued to after the terminal, judges whether the target CDN caching servers are accessed comprising the terminal Content;Sending module, in judging that the target CDN caching servers are accessed comprising the terminal In the case of appearance, the content that the terminal is accessed is sent to the terminal;Processing module, for judge it is described In the case that target CDN caching servers do not include the content that the terminal is accessed, to global server load balancing GSLB, which is sent, redirects request, with the address for the source server for obtaining the content accessed comprising the terminal;From described The content that the terminal is accessed is obtained in the source server indicated by the address of source server.
Alternatively, described device also includes:3rd receiver module, for receiving described be located in the LAN After the registration request that CDN caching servers are sent, after succeeding in registration, receive the CDN caching servers and send State new information;Wherein, indicate the CDN caching servers by abnormal unavailable in the state new information State is changed into state good for use, then by the server address of the CDN caching servers and lan address section Mapping relations be added to second mapping relations in, and add the CDN in the 3rd mapping relations caching The status information of server;Indicate the CDN caching servers by the shape good for use in the state new information State is changed into the abnormal down state, and the time in the abnormal down state exceedes predetermined threshold, then deletes Corresponding second mapping relations of the CDN caching servers, and delete described in the 3rd mapping relations The status information of CDN caching servers.
Alternatively, the 3rd scheduling unit includes:Judgment sub-unit, for judging to be located in lan address section CDN caching servers load whether be less than predetermined threshold value;Subelement is set, it is described for being less than in the load Predetermined threshold value, regard one CDN caching servers as the target CDN caching servers;Wherein, CDN The load of caching server includes at least one of:The CDN caching servers central processor CPU utilization rate, The storage utilization rate of the CDN caching servers, the CDN caching servers ask the band of resource to public network server The service bandwidth of wide and described CDN caching servers.
By the present invention, the dispatch request sent using receiving terminal by router, wherein, the dispatch request is used for please The object content distribution network CDN caching servers being located at for the terminal scheduling in LAN are sought, the router is connected to Between wide area network and the LAN;Obtain the router address of the router for sending the dispatch request;According to the road As the LAN where the device address search terminal, one is dispatched from the CDN caching servers in the LAN CDN caching servers are as target CDN caching servers, and by the server of target CDN caching servers Address is issued to the terminal, so that the content cached in terminal access target CDN caching servers.That is, LAN of the present invention according to where the router address being connected between wide area network and LAN searches terminal, from positioned at office CDN caching servers in the net of domain dispatch a CDN caching server as target CDN caching servers, so that The scheduling of the CDN caching servers in wide area network local area network is realized, GSLB in correlation technique is solved Caused by GSLB equipment to the resource in the terminal scheduling wide area network server of LAN terminal obtain resource time delay compared with Big the problem of, and then reach the effect for shortening terminal acquisition resource time delay.
Brief description of the drawings
Accompanying drawing described herein is used for providing a further understanding of the present invention, constitutes the part of the application, the present invention Schematic description and description be used for explain the present invention, do not constitute inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 is the dispatching method flow chart of request message according to embodiments of the present invention;
Fig. 2 is wide area network GSLB scheduling LANs CDN according to embodiments of the present invention system block diagram;
Fig. 3 be in the embodiment of the present invention LAN CDN to wide area network GSLB registration message figures;
Fig. 4 is that address according to embodiments of the present invention corresponds conversion map graph of a relation;
Fig. 5 is the one-to-many conversion map graph of a relation in address according to embodiments of the present invention;
Fig. 6 is that LAN CDN performance statistics according to embodiments of the present invention report figure;
Fig. 7 is OTT business service flow charts under wide area network according to embodiments of the present invention and LAN scene;
Fig. 8 is LAN subscriber request scheduling message FB(flow block) according to embodiments of the present invention;
Fig. 9 is the structured flowchart of the dispatching device of request message according to embodiments of the present invention;
Figure 10 is the structured flowchart (one) of the dispatching device of request message according to embodiments of the present invention;
Figure 11 is the structured flowchart (two) of the dispatching device of request message according to embodiments of the present invention;
Figure 12 is the structured flowchart (three) of the dispatching device of request message according to embodiments of the present invention;
Figure 13 is the structured flowchart (four) of the dispatching device of request message according to embodiments of the present invention;
Figure 14 is the structured flowchart (five) of the dispatching device of request message according to embodiments of the present invention;
Figure 15 is the structured flowchart (six) of the dispatching device of request message according to embodiments of the present invention;
Figure 16 is the structured flowchart (seven) of the dispatching device of request message according to embodiments of the present invention;
Figure 17 is the composition schematic diagram of wide area network and LAN dispatching control device in the embodiment of the present invention.
Embodiment
Describe the present invention in detail below with reference to accompanying drawing and in conjunction with the embodiments.It should be noted that in the feelings not conflicted Under condition, the feature in embodiment and embodiment in the application can be mutually combined.
It should be noted that term " first ", " second " in description and claims of this specification and above-mentioned accompanying drawing Etc. being for distinguishing similar object, without for describing specific order or precedence.
Embodiment 1
A kind of dispatching method of request message is provided in the present embodiment, and Fig. 1 is that request according to embodiments of the present invention disappears The dispatching method flow chart of breath, as shown in figure 1, the flow comprises the following steps:
Step S102, the dispatch request that receiving terminal is sent by router, wherein, the dispatch request is for request The terminal scheduling is located at the object content distribution network CDN caching servers in LAN, and the router is connected to wide area Between net and the LAN;
Step S104, obtains the router address of the router for sending the dispatch request;
Step S106, LAN according to where the router address searches the terminal, from the LAN CDN caching servers dispatch a CDN caching server as target CDN caching servers, and by the target The server address of CDN caching servers is issued to the terminal, so that terminal access target CDN caching servers The content of middle caching.
Alternatively, in the present embodiment, the application scenarios of the dispatching method of above-mentioned request message include but is not limited to:Office In the wide area of the online one-level in domain in public global load balancing system GSLB and LAN CDN caching systems in intranet and extranet In the case of separation.
The application scenarios of the dispatching method of the above-mentioned request message of the present embodiment are described in detail with reference to Fig. 2.Its In, wide area network is by taking public network as an example, and LAN is by taking private network as an example, and router is by taking universal network equipment router as an example.As schemed Shown in 2, including public GSLB GSLB equipment, universal network equipment router, intelligent terminal (Smart phone, PC, Android STB, PAD etc.), CDN caching systems, family's CDN webmasters, service (SERVICE) node Or resources bank etc..
GSLB GSLB equipment is responsible for carrying out Rational Decision scheduling to user's request, finds optimal CDN cachings Server is that the user asks service, and GSLB can manage the CDN caching servers in multiple private network/LANs.
Universal network equipment router is a kind of based on MAC Address identification, can complete to encapsulate the net of forwarding data frame function Network equipment.Interchanger " can learn " MAC Address, and it is stored in internal table of addresses, by data frame Originator and target receiver between set up interim switching path, data frame is directly arrived at location by source address.
Universal network equipment router is responsible for isolating the public network of private network and the upper level of the private network, can be by heterogeneous networks or the network segment Between data message carry out " translation ", enable them to mutually " reading " understand the data of other side, so as to constitute one Bigger network.
Intelligent terminal is usually conventional embedded or computer equipment, such as personal computer, smart mobile phone, Android machine Top box, PAD etc. can carry out the embedded computer system equipment of the Internet activity.
CDN caching servers are also referred to as proxy caching, can be located at the edge of network, and in distance users, " last is public In " on.Meanwhile, caching system is a mirror point of the original contents server of content supplier.Such framework makes Content provider can be represented by obtaining CDN service provider, to the service experience that end user's offer is as well as possible, and this A little users, which can't stand request response time, any delay.
Service (SERVICE) node or resources bank are usually higher level's CDN node (region is cached or central cache) Either content provides the specific content resource for having it to be responsible for issue on the original contents server provided, its server.
Under above-mentioned application scenarios, the GSLB GSLB equipment receiving terminals in wide area network are sent by router Dispatch request, wherein, the dispatch request be used for ask for the terminal scheduling be located at LAN in object content distribution net Network CDN caching servers, the router is connected between wide area network and the LAN;Obtaining please for sending the scheduling The router address for the router asked;LAN according to where the router address searches the terminal, from positioned at this CDN caching servers in LAN dispatch a CDN caching server as target CDN caching servers, And the server address of target CDN caching servers is issued to the terminal, so that terminal access target CDN The content cached in caching server.That is, the present embodiment is according to the route being connected between wide area network and LAN LAN where device address search terminal, a CDN caching is dispatched from the CDN caching servers in LAN Server is as target CDN caching servers, so as to realize the tune of the CDN caching servers in wide area network local area network Degree, solves in correlation technique GSLB GSLB equipment to the terminal scheduling wide area network server positioned at LAN In resource caused by terminal obtain resource time delay it is larger the problem of, and then reach shorten terminal obtain resource time delay effect.
Alternatively, in the present embodiment, the terminal being related in above-mentioned steps can with but be not limited to:PC, PAD intelligence Energy mobile phone or Intelligent set top box, are not limited herein.
In one alternatively embodiment, before the dispatch request that receiving terminal is sent by router, also including with Lower step:
Step S11, receives the registration request that the CDN caching servers being located in the LAN are sent;
Step S12, stores the information carried in the registration request for indicating one of following relation:The router address The first mapping relations between the lan address section of the LAN;The router address, lan address section are with being somebody's turn to do The second mapping relations between the server address of CDN caching servers;And the router address, the local entoilage The 3rd mapping relations between location section and the status information of the CDN caching servers, wherein, the CDN caching servers Status information be used to indicate the use states of the CDN caching servers.
It should be noted that in the present embodiment, first between the lan address section of router address and LAN reflects The relation of penetrating includes but is not limited to:Man-to-man mapping relations;Router address, lan address section are cached with CDN The second mapping relations between the server address of server include but is not limited to:One-to-one or one-to-many mapping is closed System, is man-to-man mapping relations between router address and lan address section specifically, lan address section with Can be one-to-one between CDN caching servers or with to many mapping relations;Router address, lan address The 3rd mapping relations between section and the status information of CDN caching servers include but is not limited to:Router address with It is man-to-man mapping relations, lan address section and the status information of CDN caching servers between lan address section Between be one-to-many mapping relations.
By above-mentioned steps, before the request message that dispatch terminal is sent, receive the CDN being located in the LAN and delay The registration request for depositing server transmission caches clothes as wide area network GSLB for the CDN in terminal scheduling lan address section Business device foundation, furthermore achieved that GSLB, can be accurate method of the user's request in LAN by the embodiment of the present invention The true CDN caching systems that correspondence LAN is dispatched to asking up, by correspondence LAN CDN caching systems to this The effect that terminal request is serviced.
In an optional embodiment, when carrying the information for indicating first mapping relations in the registration request, The LAN according to where the router address searches the terminal comprises the following steps:
Step S21, searches the lan address section for having first mapping relations with the router address;
A CDN caching server, which is dispatched, from the CDN caching servers in the LAN is used as target CDN Caching server includes:
This is dispatched in step S22, the CDN caching servers being located at from server address in lan address section CDN caching servers are used as target CDN caching servers.
Alternatively, in the present embodiment, reflected by first between the lan address section of router address and the LAN Penetrate relation and search lan address section, after lan address section is found, be located at the local entoilage from server address A CDN caching server is dispatched as target CDN caching servers in CDN caching servers in the section of location, Can also further search for a CDN with reference to the mapping relations between lan address section and CDN caching servers to delay Server is deposited as target CDN caching servers, be can also be with reference to lan address section and CDN caching servers Status information search a CDN caching server as target CDN caching servers, so that realize can accurately be by Request is dispatched to the CDN caching systems of correspondence LAN up, please to the terminal by correspondence LAN CDN caching systems Seek the effect serviced.
By above-mentioned steps, the lan address section that there are the first mapping relations with router address is searched, it is further real Having showed will can accurately ask be dispatched to the CDN caching systems for corresponding to LAN up, be cached by correspondence LAN CDN The effect that system is serviced the terminal request.
In an optional embodiment, when carrying the information for indicating second mapping relations in the registration request, The LAN according to where the router address searches the terminal includes step:
Step S31, searches the lan address section for having second mapping relations with the router address and the CDN The server address of caching server;
A CDN caching server, which is dispatched, from the CDN caching servers in the LAN is used as target CDN Caching server includes:
This is dispatched in step S32, the CDN caching servers being located at from server address in lan address section CDN caching servers are used as target CDN caching servers.
Alternatively, in the present embodiment, router address, lan address section and the clothes of CDN caching servers are passed through The second mapping relationship searching target CDN caching servers between business device address are for terminal service or according to road By the first mapping relationship searching lan address section between the lan address section of device address and the LAN, finding After lan address section, scheduling is somebody's turn to do in the CDN caching servers being located at from server address in lan address section One CDN caching server as target CDN caching servers, or, router address, lan address section A CDN caching server is searched as target CDN caching servers with the status information of CDN caching servers, It can accurately will ask be dispatched to the CDN caching systems for corresponding to LAN up to realize, be delayed by correspondence LAN CDN The effect that deposit system is serviced the terminal request.
By above-mentioned steps, search the lan address section that there are the second mapping relations with router address and CDN is cached The server address of server, will more accurately ask to be dispatched to the CDN caching systems for corresponding to LAN up, by right The effect for answering LAN CDN caching systems to service the terminal request.
In an optional mode, when the information for indicating the 3rd mapping relations is carried in the registration request, The LAN according to where the router address searches the terminal includes:
Step S41, searches the lan address section for having the 3rd mapping relations with the router address and the CDN The status information of caching server;
A CDN caching server, which is dispatched, from the CDN caching servers in the LAN is used as target CDN Caching server includes:
The state is dispatched in step S42, the CDN caching servers being located at from server address in lan address section Information meets a CDN caching server for predetermined condition as target CDN caching servers.
Alternatively, in the present embodiment, router address, lan address section and the shape of CDN caching servers are passed through The logical target CDN caching servers of searching of the 3rd mapping relations between state information are for terminal service or according to road By the first mapping relationship searching lan address section between the lan address section of device address and the LAN, finding After lan address section, scheduling is somebody's turn to do in the CDN caching servers being located at from server address in lan address section One CDN caching server as target CDN caching servers, or, router address, lan address section One CDN caching server conduct of the second mapping relationship searching between the server address of the CDN caching servers Target CDN caching servers, will can accurately ask to be dispatched on the CDN caching systems of correspondence LAN to realize Go, the effect serviced by correspondence LAN CDN caching systems the terminal request.
By above-mentioned steps, by router address, lan address section and CDN caching servers status information it Between the 3rd mapping relations, realize more accurately will ask be dispatched to correspondence LAN CDN caching systems up, The effect serviced by correspondence LAN CDN caching systems the terminal request.
With reference to specific example, the present embodiment is illustrated.
Proposing for the embodiment of the present invention is a kind of based on tune between intranet and extranet global load balancing system and private network caching system The implementation method of degree, comprises the following steps:
, it is necessary to which CDN information reporting is registered to GSLB after electricity on step S51, LAN CDN.The note In volume message, there are CDN LANs/lan address and the wide area network address of router and the corresponding relation of its state. GSLB can preserve the mapping relations in case subsequently using.
Step S52, after succeeding in registration, CDN sends heartbeat message to GSLB and used with making report work, if CDN goes out It is now abnormal, then GSLB updates CDN state to control scheduling.
Step S53, LAN CDN can carry out heartbeat, system data (cpu according to self-operating state to GSLB Utilization rate, storage utilization rate, return source bandwidth, service bandwidth etc.) statistical report quasi real time, so as to follow-up monitoring system Operation conditions.
Step S54, personal PC or intelligent terminal send http dispatch requests to GSLB;GSLB is received after request, CDN LAN/office is found according to the source ip (the wide area network ip of router) of the request mapping relations for inquiring about registration message ip Domain net address;To the message of intelligent terminal response 302, location therein is just to include CDN LAN/LAN Address information.
Step S55, personal PC or intelligent terminal are according to the location of 302 responses, then to LAN/LAN CDN sends link setup request;LAN/LAN CDN is if content, then directly to user service;Otherwise Home CDN carries out Hui Yuan to the service node of wide area network, pulls down content and in caching to user service.
In an optional mode, by the server address of target CDN caching servers be issued to the terminal it Afterwards, it is further comprising the steps of:
Step S61, judges whether target CDN caching servers include the content that the terminal is accessed;
Step S62, in the case where judging the content that target CDN caching servers are accessed comprising the terminal, The content that the terminal is accessed is sent to the terminal;
Step S63, in the case where judging that target CDN caching servers do not include the content that the terminal is accessed, Sent to global server load balancing GSLB and redirect request, taken with the source for obtaining the content accessed comprising the terminal The address of business device;The content that the terminal is accessed is obtained from the source server indicated by the address of the source server.
Alternatively, in the present embodiment, in judging that target CDN caching servers are accessed comprising the terminal In the case of appearance, the content that terminal is accessed is transmitted directly to the terminal;Judging target CDN caching servers In the case of the content accessed not comprising the terminal, then sent to global server load balancing GSLB and redirect request, With the address for the source server for obtaining the content accessed comprising the terminal, from the source indicated by the address of the source server The content that the terminal is accessed is obtained in server.
It should be noted that in the present embodiment, judging that target CDN caching servers are visited not comprising the terminal In the case of the content asked, then sent to global server load balancing GSLB and redirect request, the end is included to obtain Other targets CDN caching servers of the accessed content in end, without the source indicated by the address from source server The content that the terminal is accessed is obtained in server.
By above-mentioned steps, in the case where judging that target CDN caching servers do not include the content that terminal is accessed, The content that the terminal is accessed is obtained to the source server of the content accessed comprising terminal, furthermore achieved that terminal can be with The effect of Internet resources efficiently, is quickly obtained in a local network.
In an optional mode, the registration request for the CDN caching servers transmission being located in the LAN is being received Afterwards, it is further comprising the steps of:
Step S71, after succeeding in registration, receives the state new information of CDN caching servers transmission;Wherein, Indicate that the CDN caching servers are changed into state good for use from abnormal down state in the state new information, then will The server address of the CDN caching servers and the mapping relations of lan address section are added to second mapping relations In, and add the status information of the CDN caching servers in the 3rd mapping relations;
Indicate that the CDN caching servers are changed into the unavailable shape of the exception from the state good for use in the state new information State, and the time in the abnormal down state is more than predetermined threshold, then deletes the CDN caching servers corresponding Second mapping relations, and delete the status information of the CDN caching servers in the 3rd mapping relations.
With reference to specific example, above-mentioned steps S71 is illustrated.
For example, the present embodiment on embodiment from LAN CDN to public network GSLB GSLB registration messages: Wherein, LAN (i.e. private network) CDN is according to the GSLB of configuration address information, when upper electricity is restarted actively to GSLB Send the lan address section at least containing LAN CDN, LAN after succeeding in registration in registration message, registration message CDN may proceed to send keep-alive heartbeat to GSLB, so as to GSLB Maintain LANs CDN state, as shown in Figure 3.
Again for example, outside the present embodiment Maintain LAN CDN lan address on GSLB router corresponding with its The one-to-one corresponding transformational relation embodiment of portal address:Wherein, router address is by taking router public network address as an example, CDN Caching server address is by taking CDN private net addresses as an example.Pass through mapping relations (router public network address, the CDN private networks Address, private network CDN ID etc.), GSLB can find corresponding private network CDN buffer services when being scheduled Device, and redirected to user's request to it, wide area network and lan address are to correspond mapping relations in the present embodiment, As shown in Figure 4;And by heartbeat message, a state can be safeguarded to every corresponding relation, whether to represent the entry It can use, and it is unavailable more than certain time, and GSLB can delete the entry aging.
For another example the present embodiment Maintain LAN CDN lan address also on GSLB router corresponding with its The many-one corresponding conversion relationship embodiment of outer portal address:Router address information and LAN CDN address informations are not Certain is entirely the one-to-one relationship shown in Fig. 4;Can also be many in router address one LAN of correspondence Individual CDN addresses, as shown in figure 5, the user that now GSLB comes according to router asks, can find the local Multiple CDN cachings in net, but GSLB can select the CDN of a most lightly loaded to cache to user service, and And by heartbeat message, a state can be safeguarded to every corresponding relation, to represent whether the entry can use, and exceeded Certain time is unavailable, and GSLB can delete the entry aging.
By above-mentioned steps, the state new information of CDN caching servers transmission, and then real-time update CDN are received The status information of caching server, realize can accurately will request be dispatched to correspondence LAN service can be normally provided CDN caching systems get on, and user request is serviced by correspondence LAN CDN caching systems.
In an optional embodiment, it is located at the CDN buffer services in lan address section from server address The status information is dispatched in device and meets a CDN caching server for predetermined condition as target CDN buffer services Device comprises the following steps:
Step S81, judges whether the load for the CDN caching servers being located in lan address section is less than predetermined threshold value;
Step S82, if load is less than the predetermined threshold value, delays a CDN caching server as target CDN Deposit server;
Wherein, the load of CDN caching servers includes at least one of:The CDN caching server central processing units CPU usage, the storage utilization rate of the CDN caching servers, the CDN caching servers please to public network server Ask the bandwidth of resource and the service bandwidth of the CDN caching servers.
It should be noted that the predetermined threshold value being related in above-mentioned steps can be the CDN in lan address section Corresponding load value, is not limited herein during the most lightly loaded of caching server.
Alternatively, in the present embodiment, the status information for the CDN caching servers being related in above-mentioned steps is loaded onto The mode stated in the 3rd mapping relations includes but is not limited to:CDN is delayed according to the ID addresses of CDN caching servers The status information for depositing server is loaded onto above-mentioned 3rd mapping relations.
With reference to specific example, above-mentioned steps S81 to S82 is illustrated.
Present embodiments provide the Maintain LAN CDN performance statistic embodiments on GSLB:Wherein, LAN By taking private network as an example, router address is by taking router public network address as an example, and LAN CDN caching servers address is with private network Exemplified by CDN addresses.The performance statistic that LAN CDN caching servers are reported, first according to router public network Location and the address in lan address mapping table, find possibility portion in LAN CDN caching servers, a LAN Affix one's name to multiple LAN CDN caching servers, at this moment according in performance data with LAN CDN caching servers Id information, compares the id information in early stage log-on data, finds corresponding entry, performance data can thus be loaded In public lan address mapping table on to correspondence GSLB, as shown in Figure 6.
By above-mentioned steps, according to the load of CDN caching servers, in multiple CDN in lan address section A target CDN caching server is selected in caching server, enabling request is accurately dispatched to correspondence local CDN caching servers in net get on, and user's request is serviced by correspondence LAN CDN caching servers, carried The high Experience Degree of user.
With reference to specific example, the present invention is illustrated.
It should be noted that following exemplary locals are by taking private network as an example, exemplified by wide area network and public network.
For example, the schematic diagram of a scenario of the private network CDN user request scheduling in certain hotel, specific implementation step below figure Shown in 7, the corresponding sequence number in each step corresponding diagram 8 described below represents the mistake of private network CDN user request scheduling Journey.Wherein, the step in the step of Fig. 7 is related to and the corresponding Fig. 8 of the step is as follows:
Step S201, terminal UE is after private network/LAN CDN installs version operation, through router from trend GSLB Send the 1/2nd step in registration message, correspondence scene Fig. 8.
Step S202, GSLB receive pair for the big net address that the private net address for safeguarding CDN and router are needed after message Table is answered, as the strategy of user scheduling, while being succeeded in registration response message to intelligent terminal.
Step S203, terminal sends service (such as http) request through router to GSLB, the in such as scene graph 8 3/4 step;GSLB is received after message, and corresponding entry, and shape can be inquired in above-mentioned corresponding table according to request source address State is normal, then directly by user scheduling to correspondence private network CDN caching servers.
Step S204, GSLB are scheduled to the response message of terminal 302, and position (location) therein carries intelligence Can SS later link setup destination address, namely CDN private net address.Such as the 5/6th step in scene graph 8.
Step S205, after terminal receives 302, is initiated according to address information in location to family (Home) CDN Service request, the 7th step in top link setups, such as scene graph 8 is carried out with private network/LAN CDN.
Step S206, if having asked resource content in private network/LAN CDN, then directly pass through such as scene graph 8 In the 12nd step be supplied to user service.
Step S207, if no in private network/LAN CDN ask resource content, then can be again to GSLB Source request redirection is initiated back, is returned by the 8/9th step in such as scene graph 8 through wireless router superior service node Source.
The address information of parent service node (Service Node) is passed through 302 message by step S208, GSLB Location is to private network/LAN CDN.
The location that step S209, private network/LAN CDN then extract 302 is carried out by TCP and parent service node Link setup, and send http times source requests.
Step S210, parent service node is if content, then the content push asked to CDN, such as private network/ The 10/11st step in LAN Fig. 8.If superior node is without content, then continue that content can be pulled down to more higher level Hui Yuan.
Step S211, private network/LAN CDN provide the terminal with service, terminal when receiving the resource that superior node is pushed It can also normally watch that OTT is live or demand (telecommunication) service, the 12nd step in such as Fig. 8.
Through the above description of the embodiments, those skilled in the art can be understood that according to above-described embodiment Method the mode of required general hardware platform can be added to realize by software, naturally it is also possible to by hardware, but a lot In the case of the former be more preferably embodiment.Understood based on such, technical scheme is substantially in other words to existing The part for having technology to contribute can be embodied in the form of software product, and the computer software product is stored in one In storage medium (such as ROM/RAM, magnetic disc, CD), including some instructions are make it that a station terminal equipment (can To be mobile phone, computer, server, or network equipment etc.) perform method described in each embodiment of the invention.
Embodiment 2
A kind of dispatching device of request message is additionally provided in the present embodiment, and the device is used to realize above-described embodiment and excellent Embodiment is selected, repeating no more for explanation had been carried out.As used below, term " module " can be realized pre- Determine the combination of the software and/or hardware of function.Although the device described by following examples is preferably realized with software, But hardware, or the realization of the combination of software and hardware is also that may and be contemplated.
Fig. 9 is the structured flowchart of the dispatching device of request message according to embodiments of the present invention, as shown in figure 9, the device Including:
1) the first receiver module 92, the dispatch request sent for receiving terminal by router, wherein, the scheduling please Ask the object content distribution network CDN caching servers for asking for the terminal scheduling to be located in LAN, the route Device is connected between wide area network and the LAN;
2) acquisition module 94, the router address for obtaining the router for being used to send the dispatch request;
3) scheduler module 96, LAN where for searching the terminal according to the router address, from positioned at the office CDN caching servers in the net of domain dispatch a CDN caching server as target CDN caching servers, and The server address of target CDN caching servers is issued to the terminal, so that terminal access target CDN is slow Deposit the content cached in server.
Alternatively, in the present embodiment, the application scenarios of the dispatching method of above-mentioned request message include but is not limited to:Office In the wide area of the online one-level in domain in public global load balancing system GSLB and LAN CDN caching systems in intranet and extranet In the case of separation.
The application scenarios of the dispatching method of the above-mentioned request message of the present embodiment are described in detail with reference to Fig. 2.Its In, wide area network is by taking public network as an example, and LAN is by taking private network as an example, and router is by taking universal network equipment router as an example.As schemed Shown in 2, including public GSLB GSLB equipment, router, intelligent terminal (Smart phone, PC, Android STB, PAD etc.), CDN caching systems, CDN webmasters, SERVICE nodes or resources bank etc..
GSLB GSLB GSLBs equipment is responsible for carrying out Rational Decision scheduling to user's request, finds most Excellent CDN caching servers are that the user asks service.The CDN that GSLB can be managed in multiple private network/LANs delays Deposit server
Universal network equipment router is a kind of based on MAC Address identification, can complete to encapsulate the net of forwarding data frame function Network equipment.Interchanger " can learn " MAC Address, and it is stored in internal table of addresses, by data frame Originator and target receiver between set up interim switching path, data frame is directly arrived at location by source address
Universal network equipment router is responsible for isolating the public network of private network and the upper level of the private network, can be by heterogeneous networks or the network segment Between data message carry out " translation ", enable them to mutually " reading " understand the data of other side, so as to constitute one Bigger network.
Intelligent terminal is usually conventional embedded or computer equipment, such as personal computer, smart mobile phone, Android machine Top box, PAD etc. can carry out the embedded computer system equipment of the Internet activity.
CDN cache routing devices are also referred to as proxy caching, can be located at the edge of network, and in distance users, " last is public In " on.Meanwhile, caching system is a mirror point of the original contents server of content supplier.Such framework makes Content provider can be represented by obtaining CDN service provider, to the service experience that end user's offer is as well as possible, and this A little users, which can't stand request response time, any delay.
SERVICE nodes or resources bank be usually higher level's CDN node (region cache or central cache) either Content provides the specific content resource for having it to be responsible for issue on the original contents server provided, its server.
Under above-mentioned application scenarios, the global load balancing system GSLB equipment receiving terminals in wide area network pass through router The dispatch request of transmission, wherein, the dispatch request is used for the object content point for asking for the terminal scheduling to be located in LAN Hairnet network CDN caching servers, the router is connected between wide area network and the LAN;Obtain for sending the tune Spend the router address of the router of request;LAN according to where the router address searches the terminal, from position A CDN caching server, which is dispatched, in the CDN caching servers in the LAN is used as target CDN buffer services Device, and the server address of target CDN caching servers is issued to the terminal, so that the terminal access target The content cached in CDN caching servers.That is, the present embodiment is according to being connected between wide area network and LAN Router address search terminal where LAN, from LAN CDN caching servers dispatch one CDN caching servers are as target CDN caching servers, so as to realize the CDN cachings in wide area network local area network The scheduling of server, solves GSLB GSLB equipment in correlation technique wide to the terminal scheduling positioned at LAN Terminal caused by resource in the network server of domain obtains the problem of resource time delay is larger, and then reaches that shortening terminal obtains resource The effect of time delay.
Alternatively, in the present embodiment, the terminal being related in above-mentioned steps can with but be not limited to:PC, PAD intelligence Energy mobile phone or Intelligent set top box, are not limited herein.
In one alternatively embodiment, Figure 10 is the knot of the dispatching device of request message according to embodiments of the present invention Structure block diagram (one), as shown in Figure 10, the device also include in addition to all modules being related in including Fig. 9:
1) the second receiver module 102, should for before the dispatch request that the receiving terminal is sent by router, receiving The registration request that CDN caching servers in the LAN are sent;
2) memory module 104, for storing the information carried in the registration request for indicating one of following relation:Should The first mapping relations between the lan address section of router address and the LAN;The router address, the LAN The second mapping relations between the server address of address field and the CDN caching servers;And the router address, The 3rd mapping relations between lan address section and the status information of the CDN caching servers, wherein, the CDN The status information of caching server is used for the use state for indicating the CDN caching servers.
It should be noted that in the present embodiment, first between the lan address section of router address and LAN reflects The relation of penetrating includes but is not limited to:Man-to-man mapping relations;Router address, lan address section are cached with CDN The second mapping relations between the server address of server include but is not limited to:One-to-one or one-to-many mapping is closed System, is man-to-man mapping relations between router address and lan address section specifically, lan address section with Can be one-to-one between CDN caching servers or with to many mapping relations;Router address, lan address The 3rd mapping relations between section and the status information of CDN caching servers include but is not limited to:Router address with It is man-to-man mapping relations, lan address section and the status information of CDN caching servers between lan address section Between be one-to-many mapping relations.
By said apparatus, before the request message that dispatch terminal is sent, receive the CDN being located in the LAN and delay The registration request for depositing server transmission caches clothes as wide area network GSLB for the CDN in terminal scheduling lan address section Business device foundation, furthermore achieved that GSLB, can be accurate method of the user's request in LAN by the embodiment of the present invention The true CDN caching systems that correspondence LAN is dispatched to asking up, by correspondence LAN CDN caching systems to this The effect that terminal request is serviced.
In one alternatively embodiment, Figure 11 is the knot of the dispatching device of request message according to embodiments of the present invention Structure block diagram (two), as shown in figure 11, scheduler module 96 includes:
1) the first searching unit 112, for carrying the information for indicating first mapping relations in the registration request When, search the lan address section that there are first mapping relations with the router address;
2) the first scheduling unit 114, for the CDN buffer services being located at from server address in lan address section A CDN caching server is dispatched in device as target CDN caching servers.
Alternatively, in the present embodiment, reflected by first between the lan address section of router address and the LAN Penetrate relation and search lan address section, after lan address section is found, be located at the local entoilage from server address A CDN caching server is dispatched as target CDN caching servers in CDN caching servers in the section of location, Can also further search for a CDN with reference to the mapping relations between lan address section and CDN caching servers to delay Server is deposited as target CDN caching servers, be can also be with reference to lan address section and CDN caching servers Status information search a CDN caching server as target CDN caching servers, so that realize can accurately be by Request is dispatched to the CDN caching systems of correspondence LAN up, please to the terminal by correspondence LAN CDN caching systems Seek the effect serviced.
By said apparatus, the lan address section that there are the first mapping relations with router address is searched, it is further real Having showed will can accurately ask be dispatched to the CDN caching systems for corresponding to LAN up, be cached by correspondence LAN CDN The effect that system is serviced the terminal request.
In one alternatively embodiment, Figure 12 is the knot of the dispatching device of request message according to embodiments of the present invention Structure block diagram (three), as shown in figure 12, scheduler module 96 also includes:
1) the second searching unit 122, for carrying the information for indicating second mapping relations in the registration request When, search the lan address section that there are second mapping relations with the router address and the CDN caching servers Server address;
2) the second scheduling unit 124, for the CDN buffer services being located at from server address in lan address section A CDN caching server is dispatched in device as target CDN caching servers.
Alternatively, in the present embodiment, router address, lan address section and the clothes of CDN caching servers are passed through The second mapping relationship searching target CDN caching servers between business device address are for terminal service or according to road By the first mapping relationship searching lan address section between the lan address section of device address and the LAN, finding After lan address section, scheduling is somebody's turn to do in the CDN caching servers being located at from server address in lan address section One CDN caching server as target CDN caching servers, or, router address, lan address section A CDN caching server is searched as target CDN caching servers with the status information of CDN caching servers, It can accurately will ask be dispatched to the CDN caching systems for corresponding to LAN up to realize, be delayed by correspondence LAN CDN The effect that deposit system is serviced the terminal request.
By said apparatus, search the lan address section that there are the second mapping relations with router address and CDN is cached The server address of server, will more accurately ask to be dispatched to the CDN caching systems for corresponding to LAN up, by right The effect for answering LAN CDN caching systems to service the terminal request.
In one alternatively embodiment, Figure 13 is the knot of the dispatching device of request message according to embodiments of the present invention Structure block diagram (four), as shown in figure 13, scheduler module 96 also includes:
1) the 3rd searching unit 132, for carrying the information for indicating the 3rd mapping relations in the registration request When, search the lan address section that there are the 3rd mapping relations with the router address and the CDN caching servers Status information;
2) the 3rd scheduling unit 134, for the CDN buffer services being located at from server address in lan address section The status information is dispatched in device and meets a CDN caching server for predetermined condition as target CDN buffer services Device.
Alternatively, in the present embodiment, router address, lan address section and the shape of CDN caching servers are passed through The logical target CDN caching servers of searching of the 3rd mapping relations between state information are for terminal service or according to road By the first mapping relationship searching lan address section between the lan address section of device address and the LAN, finding After lan address section, scheduling is somebody's turn to do in the CDN caching servers being located at from server address in lan address section One CDN caching server as target CDN caching servers, or, router address, lan address section One CDN caching server conduct of the second mapping relationship searching between the server address of the CDN caching servers Target CDN caching servers, will can accurately ask to be dispatched on the CDN caching systems of correspondence LAN to realize Go, the effect serviced by correspondence LAN CDN caching systems the terminal request.
By said apparatus, by router address, lan address section and CDN caching servers status information it Between the 3rd mapping relations, realize more accurately will ask be dispatched to correspondence LAN CDN caching systems up, The effect serviced by correspondence LAN CDN caching systems the terminal request.
In one alternatively embodiment, Figure 14 is the knot of the dispatching device of request message according to embodiments of the present invention Structure block diagram (five), as shown in figure 14, the device also includes in addition to including module as shown in Figure 10:
1) judge module 142, for by the server address of target CDN caching servers be issued to the terminal it Afterwards, judge whether target CDN caching servers include the content that the terminal is accessed;
2) sending module 144, for judging the content that target CDN caching servers are accessed comprising the terminal In the case of, the content that the terminal is accessed is sent to the terminal;
3) processing module 146, in judging that target CDN caching servers are accessed not comprising the terminal In the case of appearance, sent to global server load balancing GSLB and redirect request, accessed with obtaining comprising the terminal Content source server address;The terminal is obtained from the source server indicated by the address of the source server to be visited The content asked.
Alternatively, in the present embodiment, in judging that target CDN caching servers are accessed comprising the terminal In the case of appearance, the content that terminal is accessed is transmitted directly to the terminal;Judging target CDN caching servers In the case of the content accessed not comprising the terminal, then sent to global server load balancing GSLB and redirect request, With the address for the source server for obtaining the content accessed comprising the terminal, from the source indicated by the address of the source server The content that the terminal is accessed is obtained in server.
It should be noted that in the present embodiment, judging that target CDN caching servers are visited not comprising the terminal In the case of the content asked, then sent to global server load balancing GSLB and redirect request, the end is included to obtain Other targets CDN caching servers of the accessed content in end, without the source indicated by the address from source server The content that the terminal is accessed is obtained in server.
By said apparatus, in the case where judging that target CDN caching servers do not include the content that terminal is accessed, The content that the terminal is accessed is obtained to the source server of the content accessed comprising terminal, furthermore achieved that terminal can be with The effect of Internet resources efficiently, is quickly obtained in a local network.
In one alternatively embodiment, Figure 15 is the knot of the dispatching device of request message according to embodiments of the present invention Structure block diagram (six), as shown in figure 15, the device also includes in addition to including the module shown in Figure 10:
1) the 3rd receiver module 152, for receiving the note that the CDN caching servers being located in the LAN are sent After volume request, after succeeding in registration, the state new information of CDN caching servers transmission is received;
Wherein, indicate that the CDN caching servers are changed into good for use from abnormal down state in the state new information State, then by the mapping relations of the server address of the CDN caching servers and lan address section added to this In two mapping relations, and add the status information of the CDN caching servers in the 3rd mapping relations;
Indicate that the CDN caching servers are changed into the unavailable shape of the exception from the state good for use in the state new information State, and the time in the abnormal down state is more than predetermined threshold, then deletes the CDN caching servers corresponding Second mapping relations, and delete the status information of the CDN caching servers in the 3rd mapping relations.
By said apparatus, the state new information of CDN caching servers transmission, and then real-time update CDN are received The status information of caching server, realize can accurately will request be dispatched to correspondence LAN service can be normally provided CDN caching systems get on, and user request is serviced by correspondence LAN CDN caching systems.
In one alternatively embodiment, Figure 16 is the knot of the dispatching device of request message according to embodiments of the present invention Structure block diagram (seven), as shown in figure 16, the 3rd scheduling unit 134 includes:
1) judgment sub-unit 162, the load of CDN caching servers for judging to be located in lan address section is It is no to be less than predetermined threshold value;
2) subelement 164 is set, for being less than the predetermined threshold value in the load, a CDN caching server made For target CDN caching servers;
Wherein, the load of CDN caching servers includes at least one of:The CDN caching server central processing units CPU usage, the storage utilization rate of the CDN caching servers, the CDN caching servers please to public network server Ask the bandwidth of resource and the service bandwidth of the CDN caching servers.
It should be noted that the predetermined threshold value being related in above-mentioned steps can be the CDN in lan address section Corresponding load value, is not limited herein during the most lightly loaded of caching server.
Alternatively, in the present embodiment, the status information for the CDN caching servers being related in above-mentioned steps is loaded onto The mode stated in the 3rd mapping relations includes but is not limited to:CDN is delayed according to the ID addresses of CDN caching servers The status information for depositing server is loaded onto above-mentioned 3rd mapping relations.
By said apparatus, according to the load of CDN caching servers, in multiple CDN in lan address section A target CDN caching server is selected in caching server, enabling request is accurately dispatched to correspondence local CDN caching servers in net get on, and user's request is serviced by correspondence LAN CDN caching servers, carried The high Experience Degree of user.
With reference to specific example, the embodiment of the present invention is illustrated.
The embodiments of the invention provide dispatching control device between a kind of wide area network and LAN, as shown in figure 17, the scheduling Control device includes:
1) it is global to redirect unit 172, the http request from user is handled, and pass through rational decision-making, to user Carry out 302 to respond, allow user to be dispatched to corresponding private network CDN proxy caching units nearby;Also it is used for detecting private network generation The performance statistic managed the state of caching and reported, to be supplied to GSLB to be scheduled reference or data monitoring
2) http request after caching agent unit 174, redirection of the processing from user, determines according to the resource of request Surely it is that service is directly provided a user according to the resource of local cache or section is serviced further up by way of agency Dot element asks resource to user.
3) service node unit 176, handles the proxy caching list in the resource request from downstream site, its similar private network Member or resource source station server
It should be noted that above-mentioned modules can be by software or hardware to realize, for the latter, Ke Yitong Cross in the following manner realization, but not limited to this:Above-mentioned module is respectively positioned in same processor;Or, above-mentioned module distinguishes position In multiple processors.
Embodiment 3
Embodiments of the invention additionally provide a kind of storage medium.The application scenarios and example of the present embodiment, may be referred to reality Example 1, embodiment 2 are applied, be will not be described here.Alternatively, in the present embodiment, above-mentioned storage medium can be configured to Store the program code for performing following steps:
S1, the dispatch request that receiving terminal is sent by router, wherein, the dispatch request is used to ask to adjust for the terminal Degree is located at the object content distribution network CDN caching servers in LAN, and the router is connected to wide area network and the office Between the net of domain;
S2, obtains the router address of the router for sending the dispatch request;
S3, LAN according to where the router address searches the terminal delays from the CDN in the LAN One CDN caching server of server scheduling is deposited as target CDN caching servers, and by target CDN to delay The server address for depositing server is issued to the terminal, so as to be cached in terminal access target CDN caching servers Content.
Alternatively, in the present embodiment, above-mentioned storage medium can include but is not limited to:USB flash disk, read-only storage (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, Magnetic disc or CD etc. are various can be with the medium of store program codes.
Alternatively, in the present embodiment, processor performs above-mentioned steps according to the program code stored in storage medium S1, S2 and S3.
Alternatively, the specific example in the present embodiment may be referred to showing described in above-described embodiment and optional embodiment Example, the present embodiment will not be repeated here.
Obviously, those skilled in the art should be understood that above-mentioned each module of the invention or each step can be with general Computing device realizes that they can be concentrated on single computing device, or is distributed in multiple computing devices and is constituted Network on, alternatively, the program code that they can be can perform with computing device be realized, it is thus possible to by they Storage is performed by computing device in the storage device, and in some cases, can be to be held different from order herein They, are either fabricated to each integrated circuit modules or will be many in them by the shown or described step of row respectively Individual module or step are fabricated to single integrated circuit module to realize.So, the present invention is not restricted to any specific hardware Combined with software.
The preferred embodiments of the present invention are the foregoing is only, are not intended to limit the invention, for the technology of this area For personnel, the present invention can have various modifications and variations.Within the spirit and principles of the invention, that is made is any Modification, equivalent, improvement etc., should be included within the scope of the present invention.

Claims (16)

1. a kind of dispatching method of request message, it is characterised in that including:
The dispatch request that receiving terminal is sent by router, wherein, the dispatch request is used to ask to be the end End scheduling is located at the object content distribution network CDN caching servers in LAN, and the router is connected to extensively Between domain net and the LAN;
Obtain the router address of the router for sending the dispatch request;
The LAN according to where the router address searches the terminal, from the LAN CDN caching servers dispatch a CDN caching server as the target CDN caching servers, and by institute The server address for stating target CDN caching servers is issued to the terminal, so that mesh described in the terminal access The content cached in mark CDN caching servers.
2. according to the method described in claim 1, it is characterised in that the scheduling sent in the receiving terminal by router Before request, also include:
Receive the registration request that the CDN caching servers in the LAN are sent;
Store the information carried in the registration request for indicating one of following relation:
The first mapping relations between the lan address section of the router address and the LAN;
The router address, lan address section and the server address of the CDN caching servers Between the second mapping relations;And
The router address, lan address section and the status informations of the CDN caching servers it Between the 3rd mapping relations, wherein, the status informations of the CDN caching servers is used to indicate the CDN The use state of caching server.
3. method according to claim 2, it is characterised in that carried in the registration request described for indicating During the information of the first mapping relations,
The LAN according to where the router address searches the terminal includes:Search and the road There is the lan address section of first mapping relations by device address;
A CDN caching server, which is dispatched, from the CDN caching servers in the LAN is used as the mesh Mark CDN caching servers include:It is located at the CDN buffer services in lan address section from server address One CDN caching servers are dispatched in device as the target CDN caching servers.
4. method according to claim 2, it is characterised in that carried in the registration request described for indicating During the information of the second mapping relations,
The LAN according to where the router address searches the terminal includes:Search and the road There is the lan address section of second mapping relations and the clothes of the CDN caching servers by device address Business device address;
A CDN caching server, which is dispatched, from the CDN caching servers in the LAN is used as the mesh Mark CDN caching servers include:It is located at the CDN buffer services in lan address section from server address One CDN caching servers are dispatched in device as the target CDN caching servers.
5. method according to claim 2, it is characterised in that carried in the registration request described for indicating During the information of the 3rd mapping relations,
The LAN according to where the router address searches the terminal includes:Search and the road There is the lan address section of the 3rd mapping relations and the shape of the CDN caching servers by device address State information;
A CDN caching server, which is dispatched, from the CDN caching servers in the LAN is used as the mesh Mark CDN caching servers include:It is located at the CDN buffer services in lan address section from server address The status information is dispatched in device and meets one CDN caching servers of predetermined condition as the target CDN caching servers.
6. according to the method described in claim 1, it is characterised in that by the service of the target CDN caching servers Device address is issued to after the terminal, is also included:
Judge whether the target CDN caching servers include the content that the terminal is accessed;
, will in the case where judging the content that the target CDN caching servers are accessed comprising the terminal The content that the terminal is accessed is sent to the terminal;
In the case where judging that the target CDN caching servers do not include the content that the terminal is accessed, Sent to global server load balancing GSLB and redirect request, to obtain the content accessed comprising the terminal Source server address;The terminal is obtained from the source server indicated by the address of the source server The content accessed.
7. method according to claim 2, it is characterised in that receiving the CDN in the LAN After the registration request that caching server is sent, also include:
After succeeding in registration, the state new information that the CDN caching servers are sent is received;
Wherein, indicate that the CDN caching servers are changed into from abnormal down state in the state new information State good for use, then reflecting the server address of the CDN caching servers and the lan address section Penetrate relation to be added in second mapping relations, and add the cachings of the CDN in the 3rd mapping relations The status information of server;
Indicate that the CDN caching servers are changed into described from the state good for use in the state new information Abnormal down state, and the time in the abnormal down state is more than predetermined threshold, then deletes described Corresponding second mapping relations of CDN caching servers, and delete the CDN in the 3rd mapping relations The status information of caching server.
8. the method according to any one of claim 2 to 5, it is characterised in that described to be located at institute from server address State in the CDN caching servers in lan address section and dispatch the status information meets predetermined condition described one Individual CDN caching servers include as the target CDN caching servers:
Judge whether the load for the CDN caching servers being located in lan address section is less than predetermined threshold value;
If the load is less than the predetermined threshold value, one CDN caching servers are regard as the target CDN caching servers;
Wherein, the load of CDN caching servers includes at least one of:The CDN caching servers center Processor CPU usage, the storage utilization rate of the CDN caching servers, the CDN caching servers to The bandwidth of public network server request resource and the service bandwidth of the CDN caching servers.
9. a kind of dispatching device of request message, it is characterised in that including:
First receiver module, the dispatch request sent for receiving terminal by router, wherein, the scheduling please The object content distribution network CDN caching servers for asking for the terminal scheduling to be located in LAN are sought, The router is connected between wide area network and the LAN;
Acquisition module, the router address for obtaining the router for being used to send the dispatch request;
Scheduler module, the LAN where for searching the terminal according to the router address, from positioned at CDN caching servers in the LAN are dispatched a CDN caching server and cached as the target CDN Server, and the server address of the target CDN caching servers is issued to the terminal, so that described The content cached in target CDN caching servers described in terminal access.
10. device according to claim 9, it is characterised in that described device also includes:
Second receiver module, for before the dispatch request that the receiving terminal is sent by router, receiving institute The registration request that rheme is sent in the CDN caching servers in the LAN;
Memory module, for storing the information carried in the registration request for indicating one of following relation:
The first mapping relations between the lan address section of the router address and the LAN;
The router address, lan address section and the server address of the CDN caching servers Between the second mapping relations;And
The router address, lan address section and the status informations of the CDN caching servers it Between the 3rd mapping relations, wherein, the status informations of the CDN caching servers is used to indicate the CDN The use state of caching server.
11. device according to claim 10, it is characterised in that the scheduler module includes:
First searching unit, for carrying the letter for indicating first mapping relations in the registration request During breath, the lan address section that there are first mapping relations with the router address is searched;
First scheduling unit, for the CDN buffer services being located at from server address in lan address section One CDN caching servers are dispatched in device as the target CDN caching servers.
12. device according to claim 10, it is characterised in that the scheduler module also includes:
Second searching unit, for carrying the letter for indicating second mapping relations in the registration request During breath, the lan address section that there are second mapping relations with the router address is searched and described The server address of CDN caching servers;
Second scheduling unit, for the CDN buffer services being located at from server address in lan address section One CDN caching servers are dispatched in device as the target CDN caching servers.
13. device according to claim 10, it is characterised in that the scheduler module also includes:
3rd searching unit, for carrying the letter for indicating the 3rd mapping relations in the registration request During breath, the lan address section that there are the 3rd mapping relations with the router address is searched and described The status information of CDN caching servers;
3rd scheduling unit, for the CDN buffer services being located at from server address in lan address section The status information is dispatched in device and meets one CDN caching servers of predetermined condition as the target CDN caching servers.
14. device according to claim 9, it is characterised in that described device also includes:
Judge module, for the server address of the target CDN caching servers to be issued into the terminal Afterwards, judge whether the target CDN caching servers include the content that the terminal is accessed;
Sending module, in judging that the target CDN caching servers are accessed comprising the terminal In the case of appearance, the content that the terminal is accessed is sent to the terminal;
Processing module, for judging what the target CDN caching servers were accessed not comprising the terminal In the case of content, sent to global server load balancing GSLB and redirect request, the end is included to obtain The address of the source server of the accessed content in end;From the source server indicated by the address of the source server It is middle to obtain the content that the terminal is accessed.
15. device according to claim 10, it is characterised in that described device also includes:
3rd receiver module, for receiving what the CDN caching servers in the LAN were sent After registration request, after succeeding in registration, the state new information that the CDN caching servers are sent is received;
Wherein, indicate that the CDN caching servers are changed into from abnormal down state in the state new information State good for use, then reflecting the server address of the CDN caching servers and the lan address section Penetrate relation to be added in second mapping relations, and add the cachings of the CDN in the 3rd mapping relations The status information of server;
Indicate that the CDN caching servers are changed into described from the state good for use in the state new information Abnormal down state, and the time in the abnormal down state is more than predetermined threshold, then deletes described Corresponding second mapping relations of CDN caching servers, and delete the CDN in the 3rd mapping relations The status information of caching server.
16. the device according to any one of claim 10 to 13, it is characterised in that the 3rd scheduling unit includes:
Judgment sub-unit, the load of CDN caching servers for judging to be located in lan address section is It is no to be less than predetermined threshold value;
Subelement is set, for being less than the predetermined threshold value in the load, by one CDN buffer services Device is used as the target CDN caching servers;
Wherein, the load of CDN caching servers includes at least one of:The CDN caching servers center Processor CPU usage, the storage utilization rate of the CDN caching servers, the CDN caching servers to The bandwidth of public network server request resource and the service bandwidth of the CDN caching servers.
CN201610005842.5A 2016-01-04 2016-01-04 Request message scheduling method and device Active CN106941507B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610005842.5A CN106941507B (en) 2016-01-04 2016-01-04 Request message scheduling method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610005842.5A CN106941507B (en) 2016-01-04 2016-01-04 Request message scheduling method and device

Publications (2)

Publication Number Publication Date
CN106941507A true CN106941507A (en) 2017-07-11
CN106941507B CN106941507B (en) 2020-09-11

Family

ID=59469619

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610005842.5A Active CN106941507B (en) 2016-01-04 2016-01-04 Request message scheduling method and device

Country Status (1)

Country Link
CN (1) CN106941507B (en)

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109167820A (en) * 2018-08-13 2019-01-08 彩讯科技股份有限公司 A kind of method for down loading of application program, device, storage medium and terminal
CN110445670A (en) * 2019-06-26 2019-11-12 网宿科技股份有限公司 A kind of server accelerates the test method and system of service effectiveness
CN110830564A (en) * 2019-10-30 2020-02-21 北京金山云网络技术有限公司 CDN scheduling method, device, system and computer readable storage medium
CN110996145A (en) * 2019-12-18 2020-04-10 北京达佳互联信息技术有限公司 Multimedia resource playing method, system, terminal equipment and server
CN112311836A (en) * 2019-07-31 2021-02-02 华为技术有限公司 Method and related device for scheduling service node
CN112398884A (en) * 2019-08-14 2021-02-23 上海哔哩哔哩科技有限公司 Flow scheduling control method in mirror image back-to-source scene, readable storage medium and computer equipment
CN113411390A (en) * 2021-06-16 2021-09-17 北京百度网讯科技有限公司 Scheduling method and device of content distribution network and electronic equipment
CN113824750A (en) * 2020-06-19 2021-12-21 网宿科技股份有限公司 Data transmission method and data transmission system
CN114071173A (en) * 2021-11-15 2022-02-18 北京百度网讯科技有限公司 Live broadcast scheduling method, device, system, electronic equipment and medium
CN114615237A (en) * 2022-03-22 2022-06-10 阿里巴巴(中国)有限公司 Streaming media communication method, system, device and storage medium
CN114827674A (en) * 2022-03-30 2022-07-29 北京奇艺世纪科技有限公司 Network resource display method, device and system
WO2023165372A1 (en) * 2022-03-01 2023-09-07 北京字节跳动网络技术有限公司 Video stream acquisition method, apparatus and system, and device and medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101262489A (en) * 2007-03-09 2008-09-10 中兴通讯股份有限公司 A content distribution network system and method
CN101425969A (en) * 2008-11-25 2009-05-06 华为技术有限公司 Scheduling method, apparatus and system
CN102026290A (en) * 2010-12-16 2011-04-20 华为终端有限公司 Wireless mobile gateway and method for responding user access by same
CN102215247A (en) * 2010-05-06 2011-10-12 华为技术有限公司 Network proximity load balancing method and device
CN102739712A (en) * 2011-04-08 2012-10-17 中国移动通信集团贵州有限公司 Method and system for network cache data distribution
CN102891807A (en) * 2012-07-16 2013-01-23 北京东方网信科技股份有限公司 Network flow cache method and system based on active guidance
EP2650795A1 (en) * 2012-04-13 2013-10-16 Integrity Digital Solutions, LLC. Content delivery and caching system

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101262489A (en) * 2007-03-09 2008-09-10 中兴通讯股份有限公司 A content distribution network system and method
CN101425969A (en) * 2008-11-25 2009-05-06 华为技术有限公司 Scheduling method, apparatus and system
CN102215247A (en) * 2010-05-06 2011-10-12 华为技术有限公司 Network proximity load balancing method and device
CN102026290A (en) * 2010-12-16 2011-04-20 华为终端有限公司 Wireless mobile gateway and method for responding user access by same
CN102739712A (en) * 2011-04-08 2012-10-17 中国移动通信集团贵州有限公司 Method and system for network cache data distribution
EP2650795A1 (en) * 2012-04-13 2013-10-16 Integrity Digital Solutions, LLC. Content delivery and caching system
CN102891807A (en) * 2012-07-16 2013-01-23 北京东方网信科技股份有限公司 Network flow cache method and system based on active guidance

Cited By (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109167820A (en) * 2018-08-13 2019-01-08 彩讯科技股份有限公司 A kind of method for down loading of application program, device, storage medium and terminal
CN110445670B (en) * 2019-06-26 2022-05-17 网宿科技股份有限公司 Method and system for testing acceleration service effect of server
CN110445670A (en) * 2019-06-26 2019-11-12 网宿科技股份有限公司 A kind of server accelerates the test method and system of service effectiveness
CN112311836A (en) * 2019-07-31 2021-02-02 华为技术有限公司 Method and related device for scheduling service node
CN112398884A (en) * 2019-08-14 2021-02-23 上海哔哩哔哩科技有限公司 Flow scheduling control method in mirror image back-to-source scene, readable storage medium and computer equipment
CN112398884B (en) * 2019-08-14 2023-08-25 上海哔哩哔哩科技有限公司 Flow scheduling control method under mirror image back source scene, readable storage medium and computer equipment
CN110830564A (en) * 2019-10-30 2020-02-21 北京金山云网络技术有限公司 CDN scheduling method, device, system and computer readable storage medium
CN110996145A (en) * 2019-12-18 2020-04-10 北京达佳互联信息技术有限公司 Multimedia resource playing method, system, terminal equipment and server
CN113824750A (en) * 2020-06-19 2021-12-21 网宿科技股份有限公司 Data transmission method and data transmission system
CN113411390B (en) * 2021-06-16 2022-08-09 北京百度网讯科技有限公司 Scheduling method and device of content distribution network and electronic equipment
CN113411390A (en) * 2021-06-16 2021-09-17 北京百度网讯科技有限公司 Scheduling method and device of content distribution network and electronic equipment
CN114071173A (en) * 2021-11-15 2022-02-18 北京百度网讯科技有限公司 Live broadcast scheduling method, device, system, electronic equipment and medium
WO2023165372A1 (en) * 2022-03-01 2023-09-07 北京字节跳动网络技术有限公司 Video stream acquisition method, apparatus and system, and device and medium
CN114615237A (en) * 2022-03-22 2022-06-10 阿里巴巴(中国)有限公司 Streaming media communication method, system, device and storage medium
CN114615237B (en) * 2022-03-22 2024-03-29 阿里巴巴(中国)有限公司 Streaming media communication method, system, equipment and storage medium
CN114827674A (en) * 2022-03-30 2022-07-29 北京奇艺世纪科技有限公司 Network resource display method, device and system
CN114827674B (en) * 2022-03-30 2023-09-05 北京奇艺世纪科技有限公司 Network resource display method, device and system

Also Published As

Publication number Publication date
CN106941507B (en) 2020-09-11

Similar Documents

Publication Publication Date Title
CN106941507A (en) The dispatching method and device of request message
US11303696B2 (en) Method, apparatus, and system for selecting MEC node
US20210351993A1 (en) Methods and apparatus for analytics function discovery
CN115442423A (en) Method for discovering services provided by a network repository function
CA2558630C (en) Methods and apparatus for allocating resources in a distributed environment based on network assessment
US20030172163A1 (en) Server load balancing system, server load balancing device, and content management device
CN114788315A (en) Policy-based access and mobility management function (AMF) selection using Network Slice Selection Assistance Information (NSSAI) availability information
US20220394453A1 (en) Methods, systems, and computer readable media for using service communications proxy (scp) or security edge protection proxy (sepp) to apply or override preferred-locality attribute during network function (nf) discovery
CN105357281B (en) A kind of Mobile Access Network distributed content cache access control method and system
WO2022256306A1 (en) Methods, systems, and computer readable media for applying or overriding preferred locality criteria in processing network function (nf) discovery requests
US11456989B2 (en) Systems and methods for virtualized network function (“VNF”) selection in a wireless telecommunications network
US11871309B2 (en) Methods, systems, and computer readable media for network function discovery using preferred-locality information
CN112217856A (en) Address acquisition method, device, equipment and storage medium of application example
CN112333108A (en) Service scheduling method and device
CN105610930A (en) Data optimization method based on DNS (Domain Name Server)
CN113692753A (en) Network device and method for searching edge service implemented in network device
WO2021056314A1 (en) System for providing exact communication delay protection of request response for distributed service
US11929880B2 (en) Edge computing topology information exposure
US20190037044A1 (en) Content distribution and delivery optimization in a content delivery network (cdn)
WO2021057369A1 (en) Httpdns scheduling method and apparatus, medium, and device
US20230337041A1 (en) P-cscf registration and discovery mechanism
CN107682271B (en) Method and device for generating routing line
CN107666444B (en) Method and system for routing data flow
CN111757389B (en) Communication device and method
US20220400401A1 (en) Methods, systems, and computer readable media for establishing message priority in network slices based on quality of service parameters

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