CN103596066B - Method and device for data processing - Google Patents

Method and device for data processing Download PDF

Info

Publication number
CN103596066B
CN103596066B CN201310625902.XA CN201310625902A CN103596066B CN 103596066 B CN103596066 B CN 103596066B CN 201310625902 A CN201310625902 A CN 201310625902A CN 103596066 B CN103596066 B CN 103596066B
Authority
CN
China
Prior art keywords
distribution node
node server
tenant
user
bandwidth
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.)
Active
Application number
CN201310625902.XA
Other languages
Chinese (zh)
Other versions
CN103596066A (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.)
China United Network Communications Group Co Ltd
Original Assignee
China United Network Communications Group Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China United Network Communications Group Co Ltd filed Critical China United Network Communications Group Co Ltd
Priority to CN201310625902.XA priority Critical patent/CN103596066B/en
Publication of CN103596066A publication Critical patent/CN103596066A/en
Application granted granted Critical
Publication of CN103596066B publication Critical patent/CN103596066B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)
  • Computer And Data Communications (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the invention provides a method and device for data processing and relates to the field of communication. The method and device for data processing can effectively guarantee a content distribution network resource demand of lessees. The method comprises the steps that a user access request of a first user of the first lessee is obtained; a first distribution node server assigned to the first user is determined; a first remaining bandwidth and a dispatching threshold of the first lessee on the first distribution node server is obtained by the first distribution node server according to the user access request; whether the first remaining bandwidth is smaller than or equal to the dispatching threshold of the first lessee on the first distribution node server or not is judged; if the first remaining bandwidth is smaller than or equal to the dispatching threshold of the first lessee on the first distribution node server, an address of a second distribution node server is obtained; if a second remaining bandwidth is larger than a dispatching threshold of the first lessee on the second distribution node server, the address of the second distribution node server is sent to the first user. The method and device are used for data processing.

Description

A kind of data processing method and device
Technical field
The present invention relates to the communications field, more particularly, to a kind of data processing method and device.
Background technology
CDN(Content Delivery Network, content distributing network)It is a kind of intelligent virtual network, for improving User accesses the speed of website, make that the web site contents of described access transmit faster, more stable, wherein, described content can be The content of each medium's webpage, such as Baidu's webpage, Sohu's webpage etc..For example, when user sends access website to returning source server During content requests, described time source server is the original site issuing described web site contents, due to the not equal reason in region, online Speed is slower, and now, content distributing network can be in real time according to content delivery network flow and each described distribution node clothes The connection of business device, load state and the integrated information such as the distance between described distribution node server and user and response time The request of user is re-directed on the nearest distribution node server of user so that user can be with high speed access website Hold.Content distributing network is closely related with content, if content supplier employs content delivery network service, will be effectively The user rising to tenant provides the quality of content service, and the content distributing network letting of therefore content oriented provider is One highly important business model, described tenant can be ICP(Internet Content Provider, content provides Business), such as Sohu, Sina etc..
In prior art, operator carries out MRP previously according to the demand of tenant, sets up content distributing network, works as rent The demand at family exceed planning the resource of content distributing network after, then dilatation is carried out to this content distributing network, if exist to When few two tenants rent same set of content distributing network resource, when tenant's occupancy arbitrary in described at least two tenants is more Resource, the resource that may result in other tenants' uses is less, the situation of multiple tenant's preempting resources, therefore, relies on The mechanism of preconsolidation stress and later stage dilatation cannot ensure the resource requirement of tenant effectively.
Content of the invention
Embodiments of the invention provide a kind of data processing method and device, can effectively ensure the content distribution of tenant Network resource requirement.
For reaching above-mentioned purpose, embodiments of the invention adopt the following technical scheme that:
In a first aspect, providing a kind of data processing method, it is applied to the first load balancing module, described first load balancing At least one distribution node server of module management, including:
Obtain the user access request of the first user of the first tenant, described first tenant is described first load balancing mould Any one in multiple tenants of block management;
Determine the first distribution node server distributing to described first user;
First remaining bandwidth and described first is obtained according to described user access request, described first distribution node server Scheduling thresholding on described first distribution node server for the tenant, described first remaining bandwidth is described first tenant first Current on the first distribution node server of configured bandwidth on distribution node server and described first tenant has used bandwidth Difference;
Judge whether described first remaining bandwidth is less than or equal to described first tenant in described first distribution node service Scheduling thresholding on device;
If described first remaining bandwidth is less than or equal to described first tenant on described first distribution node server Scheduling thresholding, obtains the address of the second distribution node server;
If the second remaining bandwidth is more than scheduling thresholding on described second distribution node server for described first tenant, to Described first user sends the address of described second distribution node server, in order to described first user according to described second point To described second distribution node server for services, described second remaining bandwidth is described first for the address of cloth node server Tenant's working as on the second distribution node server in the configured bandwidth on the second distribution node server and described first tenant The front difference using bandwidth.
Second aspect, provides a kind of first load balancing module, and described first load balancing module manages at least one point Cloth node server, including:
First acquisition unit, for obtaining the user access request of the first user of the first tenant, described first tenant is Any one in multiple tenants of described first load balancing module management;
Determining unit, for determining the first distribution node server distributing to described first user;
Second acquisition unit, for obtaining first according to described user access request, described first distribution node server The remaining bandwidth and described first tenant scheduling thresholding on described first distribution node server, described first remaining bandwidth is Configured bandwidth on the first distribution node server for described first tenant and described first tenant are in the first distribution node service The current difference using bandwidth on device;
Judging unit, for judging whether described first remaining bandwidth that described second acquisition unit obtains is less than or equal to Scheduling thresholding on described first distribution node server for described first tenant;
3rd acquiring unit, if be less than or equal to described first tenant at described first point for described first remaining bandwidth Scheduling thresholding on cloth node server, obtains the address of the second distribution node server;
Transmitting element, for being more than described first tenant in described second distribution node server in the second remaining bandwidth Scheduling thresholding when, send, to described first user, the described second distribution node server that described 3rd acquiring unit obtains Address, in order to described first user according to the address of described second distribution node server to described second distribution node service Device request service, described second remaining bandwidth is configured bandwidth on the second distribution node server for described first tenant and institute State the current difference using bandwidth on the second distribution node server for first tenant.
A kind of embodiments of the invention data processing method of offer and device, described data processing method, including:Obtain the The user access request of the first user of one tenant, described first tenant is multiple rents of described first load balancing module management Any one in family;Determine the first distribution node server distributing to described first user;Being accessed according to described user please Ask, described first distribution node server obtains the first remaining bandwidth and described first tenant in described first distribution node service Scheduling thresholding on device, described first remaining bandwidth is configured bandwidth on the first distribution node server for described first tenant With the current difference using bandwidth on the first distribution node server for described first tenant;Judge that described first remaining bandwidth is The no scheduling thresholding less than or equal to described first tenant on described first distribution node server;If described first tape remaining The wide scheduling thresholding less than or equal to described first tenant on described first distribution node server, obtains the second distribution node The address of server;If the second remaining bandwidth is more than scheduling door on described second distribution node server for described first tenant Limit, sends the address of described second distribution node server, in order to described first user according to described to described first user To described second distribution node server for services, described second remaining bandwidth is institute for the address of the second distribution node server State configured bandwidth on the second distribution node server for first tenant with described first tenant in the second distribution node server On the current difference using bandwidth.So, if there is the user access request of the first user of described first tenant, when Remaining bandwidth on described first distribution node server for described first tenant is less than or equal to described first tenant described During scheduling thresholding on the first distribution node server, the access request of the first user of described first tenant is dispatched to second Distribution node server, if the second tape remaining on the second distribution node server for the first user of described first tenant is roomy In scheduling thresholding on described second distribution node server for described first tenant, send described second to described first user The address of distribution node server, can ensure the content distributing network resource requirement of tenant effectively.
Brief description
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing Have technology description in required use accompanying drawing be briefly described it should be apparent that, drawings in the following description be only this Some embodiments of invention, for those of ordinary skill in the art, on the premise of not paying creative work, acceptable Other accompanying drawings are obtained according to these accompanying drawings.
Fig. 1 provides a kind of data processing method flow chart for the embodiment of the present invention;
Fig. 2 provides a kind of content distributing network structural representation for the embodiment of the present invention;
Fig. 3 provides another data processing method flow chart for the embodiment of the present invention;
Fig. 4 provides another kind of data processing method flow chart for the embodiment of the present invention;
Fig. 5 provides a kind of first load balancing module structural representation for the embodiment of the present invention;
Fig. 6 provides another first load balancing module structural representation for the embodiment of the present invention.
Specific embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation description is it is clear that described embodiment is only a part of embodiment of the present invention, rather than whole embodiments.It is based on Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under the premise of not making creative work Embodiment, broadly falls into the scope of protection of the invention.
The embodiment of the present invention provides a kind of data processing method, is applied to the first load balancing module, described first load Balance module manages at least one distribution node server, as shown in figure 1, including:
Step 101, the user access request of the first user of acquisition the first tenant, described first tenant is described first Any one in multiple tenants of load balancing module management.
Example, the user access request of the described first user of GSLB module forwards can be received, described At least one load balancing module of GSLB module management, described first load balancing module is that described overall situation load is equal Any one in the load balancing module of weighing apparatus module management.Wherein, the first user of described first tenant is described first rent Any one user at family
Step 102, determination distribute to the first distribution node server of described first user.
Common, content distributing network includes GSLB module and at least one content distributing network distribution section Point, each described content distributing network distribution node includes load balancing module and at least one distribution node server, described At least one load balancing module of GSLB module management, described load balancing module manages at least one distribution node Server, described first load balancing module is any one in the load balancing module of described GSLB module management Individual.Described first distribution node server is the distribution node clothes of the first load balancing module management in described content distributing network Any one distribution node server in business device, and the distribution node server nearest with described first user geographical position, that is, The distribution node server of the optimum of described tenant's web site contents is provided for described first user.
Step 103, according to described user access request, described first distribution node server obtain the first remaining bandwidth and Scheduling thresholding on described first distribution node server for described first tenant, described first remaining bandwidth is described first rent Family is current on the first distribution node server with described first tenant in the configured bandwidth on the first distribution node server Use the difference of bandwidth.
First, select the scheduling resource table of described first distribution node server in all scheduling resource tables;According to institute State user access request and obtain described first tenant at first point in the scheduling resource table of described first distribution node server Configured bandwidth on the cloth node server and described first tenant scheduling thresholding on described first distribution node server;Obtain Current on the first distribution node server of described first tenant is taken to use bandwidth;By described first tenant in the first distribution section Configured bandwidth on the point server and described first tenant current difference using bandwidth on the first distribution node server is made For described first remaining bandwidth.
Step 104, judge described first remaining bandwidth whether less than or equal to described first tenant in the described first distribution Scheduling thresholding on node server.
If described first remaining bandwidth of step 105 is less than or equal to described first tenant in described first distribution node clothes Scheduling thresholding on business device, obtains the address of the second distribution node server.
It is possible, firstly, to the distance with described first user obtaining described first load balancing module management is more than described the One distribution node server and all distribution node servers of the distance of described first user, then, are distributed described Select in node server with described first user closest distribution node server as described second distribution node Server, as described first user provides the distribution node server of the suboptimum of described tenant's web site contents.
If step 106 second remaining bandwidth is more than tune on described second distribution node server for described first tenant Degree thresholding, to described first user send described second distribution node server address, in order to described first user according to The address of described second distribution node server is to described second distribution node server for services, described second remaining bandwidth Take in the second distribution node with described first tenant for configured bandwidth on the second distribution node server for described first tenant The current difference using bandwidth on business device.
In the same manner, the second remaining bandwidth and institute are obtained according to described user access request, described second distribution node server State scheduling thresholding on described second distribution node server for first tenant, judge described second remaining bandwidth whether less than or Equal to scheduling thresholding on described second distribution node server for described first tenant, if described second remaining bandwidth is more than institute State scheduling thresholding on described second distribution node server for first tenant, send described second distribution to described first user The address of node server.
So, if there is the user access request of the first user of the first tenant, when described first tenant is described The first remaining bandwidth on first distribution node server is less than or equal to described first tenant in described first distribution node clothes Business device on scheduling thresholding when, the access request of the first user of described first tenant is dispatched to the second distribution node service Device, if the second remaining bandwidth on the second distribution node server for the first user of described first tenant is more than described first rent Scheduling thresholding on described second distribution node server for the family, sends described second distribution node service to described first user The address of device, can ensure the content distributing network resource requirement of tenant effectively.
The realization of data processing method provided in an embodiment of the present invention is based on content distributing network, and content distributing network is permissible Including at least one GSLB module, multiple content distributing network distribution nodes, wherein, each content distributing network divides Cloth node can include at least one load balancing module and multiple distribution node server again, example, as shown in Fig. 2 this Content distributing network 20 logical architecture that inventive embodiments provide can include:GSLB(Global Server Load, the overall situation is negative Carry equilibrium)Module 201, first content distribution network distribution node 202, the second content distributing network distribution node 203, described One content distributing network distribution node 202 includes a SLB(Server Load Balance, load balancing)Module 2021, One distribution node server 2022, the second distribution node server 2023 and the 3rd distribution node server 2024, in the same manner, described Second content distributing network distribution node 203 include the second load balancing module 2031, the 4th distribution node server 2032, Five distribution node servers 2033.
Wherein, described GSLB module 201 manages in described first content distribution network distribution node 202 respectively The first load balancing module 2021, the second load balancing module in described second content distributing network distribution node 203 2031.First load balancing module 2021 management the first distribution node clothes of described first content distribution network distribution node 202 Business device 2022, the second distribution node server 2023 and the 3rd distribution node server 2024, described second content distributing network The second load balancing module 2031 in distribution node 203 manages the 4th distribution node server 2032 and the 5th distribution node clothes Business device 2033.Content distributing network logical architecture described in the embodiment of the present invention simply schematically illustrates, in practical application, according to The difference of region and tenant's rented content distribution network resource is planned according to actual conditions, carrys out construction content distribution network.
Described content distributing network can provide content service at least one tenant, as illustrated in fig. 2, it is assumed that there is tenant A, the resource of tenant B, tenant C difference rented content distribution network 20, by content grouting socket D and described content distributing network 20 connections, then described content distributing network 20 can be embodied as described tenant A by content grouting socket D, tenant B, tenant C carry For content distribution service, described tenant can be ICP(Internet Content Provider, content supplier), for example, search Fox, Sina etc..
It should be noted that GSLB module is used for the user access request root of the first user to each tenant Carry out overall scheduling according to nearby principle scheduling strategy in content distributing network, the first user for each tenant described selects optimum Content distributing network distribution node, the first user of each tenant described is any one user of each tenant described;Negative Carry the user access request that balance module is used for the first user to each tenant described in content distributing network distribution node It is scheduling, the first user for each tenant described selects distribution node server, and described distribution node server is used for straight The first user being connected in each tenant described provides content service.
The embodiment of the present invention provides a kind of data processing method it is assumed that being applied to content distributing network 20 it is assumed that first rents Family is Baidu, and the first user of Baidu is user x, as shown in figure 3, including:
Step 201, NMS send the configuration information of Baidu to load balancing module.
NMS first arranges the configuration information of Baidu's rented content distribution network resource, and described configuration information includes Configured bandwidth on Baidu's each distribution node server in content distributing network and Baidu take in each distribution node described Scheduling thresholding on business device, described scheduling thresholding is that the user of Baidu can rent described each distribution node service using Baidu The limiting value of the resource of device.It should be noted that configured bandwidth on each distribution node server for the Baidu and scheduling thresholding Can be identical it is also possible to according to the difference of Baidu's rented content distribution network resource in each distribution node server described On configured bandwidth size and scheduling thresholding can be different.Then, described NMS is divided to each content distributing network Load balancing module in cloth node sends configuration information on each distribution node server for the Baidu.Fig. 3 is with first content Described NMS is schematically illustrated into first content distribution network distribution node as a example distribution network distribution node First load balancing module sends Baidu's each distribution in the distribution node server of described first load balancing module management Configuration information on node server.
Step 202, each load balancing module set up scheduling resource table according to configuration information.
Load balancing module in each content distributing network distribution node receives the Baidu of NMS transmission Configuration information, at least one that each load balancing module described manages is set up according to each load balancing module of configuration information The scheduling resource table of each distribution node server in distribution node server, the scheduling money of each described distribution node server The configured bandwidth on described distribution node server for multiple tenants of each load balancing module management described in the table record of source and Scheduling thresholding, described configured bandwidth is the bandwidth that described tenant rents.
Step 203, user x send user access request to GSLB module.
Before user x accelerates the content of access www.baidu.com by content distributing network, SP first(Service Provider, service provider)Change is needed to authorize DNS(Domain Name System, domain name system)The configuration of server, The domain name addresses accelerating will be needed to be configured to be redirected to acceleration domain name, for example, by Baidu's domain name www.baidu.com configuration For accelerating Baidu's domain name www.baidu.com.cdn.net.Specifically, user x is to browser input Baidu domain name Www.baidu.com request service, browser is to LDNS(Local Domain Name System, local domain name system)Service The domain name mapping of device request Baidu, described LDNS is the domain name system server address of user x location, and LDNS receives Baidu domain After name analysis request, to the domain name mapping of authorized DNS server request Baidu of Baidu, this Baidu's authorized DNS server receives Baidu After domain name mapping request, return to LDNS and accelerate Baidu's domain name www.baidu.com.cdn.net, LDNS receives described acceleration hundred After degree domain name, authorize DNS to send to operator and accelerate Baidu's domain name mapping request, described operator authorizes DNS to receive acceleration hundred After degree domain name mapping request, return the GSLB module's address in the whole nation to LDNS, LDNS receives the overall situation in the described whole nation Behind load balancing module address, send request to the GSLB module in the described whole nation and accelerate Baidu's domain name mapping, the whole nation GSLB module receive described acceleration Baidu domain name mapping after, be scheduling according to nearby principle scheduling strategy, to LDNS returns the GSLB module's address in user x place province, and LDNS receives the GSLB module ground in province Behind location, send the GSLB module's address in described province to user x, user x receives the overall situation load in described province all After weighing apparatus module's address, user x sends user access request to GSLB module.I.e. user x can be according to parsing and weight Orientation finds GSLB module's address so that user can access www.baidu.com content nearby.Described user x is Baidu Any one user.
Step 204, GSLB module send the first load balancing module address to user x.
The user access request of GSLB module receive user x, sends out to user x according to nearby principle scheduling strategy Send the first load balancing module address, described first load balancing module address is in first content distribution network distribution node Load balancing module address, described nearby principle scheduling strategy is the geographical position according to the user accessing website is described user Distribution is apart from the nearest distribution node server of this user, the i.e. load with respect to user x and GSLB module management Balance module, user x is closest with the first load balancing module.User x is therefore allowed to enter by the first load balancing module The access of row www.baidu.com, equal with respect to the load in content distributing network distribution nodes other in described content distributing network Weighing apparatus module, described first load balancing module is that described user x needs in the content distributing network distribution node of optimum of use Load balancing module.In practical application, other users of this tenant or the user of other tenants distribute net with first content The first load balancing module in network distribution node may farther out, but with the second content distributing network distribution node in second Load balancing module is nearer, so the user of other users of this tenant or other tenants may be allowed through described second Load balancing module carries out the access of website.
Example it is assumed that provide www.baidu.com content returns source server in Beijing, first content distribution network distribution section The first load balancing module in point provides content distribution service for the user in Shaanxi, in the second content distributing network distribution node The second load balancing module for Nanjing user provide content distribution service, when user Xi'an need access www.baidu.com in Rong Shi, this user is closest with the first load balancing module, then can pass through first according to nearby principle scheduling strategy and load Balance module is that the user in Xi'an provides www.baidu.com content, when user needs to access www.baidu.com content in Nanjing, should User is closest with the second load balancing module, then can pass through the second load balancing module according to nearby principle scheduling strategy It is the user's offer www.baidu.com content in Nanjing.Nearby principle scheduling strategy described in the embodiment of the present invention is in scheduling strategy Any one, simply schematically illustrate, and other scheduling strategies can also be had in practical application to distribute content distributing network for user Load balancing module in distribution node provides content distribution service for described user so that this user can be by distribution Load balancing module in content distributing network distribution node accesses the content of website.
Step 205, user x send user access request to the first load balancing module.
User x receives the first load balancing module that GSLB module is distributed according to nearby principle scheduling strategy Address, by GSLB module forwards to described first load balancing module send user x user access request. Described user access request includes the title of Baidu, geographical position of described user x etc., comes in order to the first load balancing module The identity of identification Baidu is executing subsequent step.
Step 206, the first load balancing module distribute the first distribution node server for user x.
After first load balancing module receives the user access request of user x of GSLB module forwards, first Elder generation, the geographical location information of described user x carrying in the user access request according to user x, nearby principle scheduling strategy, really With described user x closest distribution node clothes in the distribution node server of fixed described first load balancing module management Business device is as the Optimal Distribution node server of described user x.Assume the first distribution of described first load balancing module management The nearest distribution node server of the distance between node server and described user x, therefore by described first load balancing mould First distribution node server of block management distributes to described user x as Optimal Distribution node server.Then, described first Load balancing module needs to judge whether described first distribution node server has that can to enable to described user x with resource permissible It is able to access that the content of www.baidu.com by described first distribution node server, in described first load balancing module management It is scheduling between distribution node server obtaining the distribution node service enabling to the content that user x accesses www.baidu.com Device.Specific scheduling process following steps 2061 to described in step 2064, as shown in Figure 4.
Step 2061, the first load balancing module are according to the user access request of user x, described first load balancing module First distribution node server of management obtains the first remaining bandwidth and Baidu tune on described first distribution node server Degree thresholding.Execution step 2062.
First load balancing module all establishes tune to the distribution node server of described first load balancing module management Degree resource table, first, this first load balancing module selects described first load balancing module pipe in all scheduling resource tables The scheduling resource table of the first distribution node server of reason, then, described first load balancing module is according to the use of described user x Hundred are obtained in the scheduling resource table of the first distribution node server in described first load balancing module management for the family access request Degree scheduling thresholding on this first distribution node server in the configured bandwidth on this first distribution node server and Baidu, Again, described first load balancing module obtains current on described first distribution node server of Baidu and has used bandwidth, that is, There may be other Baidu users before this by described first distribution node server, www.baidu.com to be conducted interviews, Through occupying a part for the resource to Baidu for the described first distribution node server-assignment, finally, by Baidu described first Configured bandwidth on the distribution node server and Baidu current difference using bandwidth on described first distribution node server As the first remaining bandwidth.
Step 2062, the first load balancing module judge whether described first remaining bandwidth is less than or equal to Baidu described The scheduling thresholding on the first distribution node server of the first load balancing module management in first distribution node.When described When one remaining bandwidth is less than or equal to scheduling thresholding on described first distribution node server for the Baidu, execution step 2063, When described first remaining bandwidth is more than scheduling thresholding on described first distribution node server for the Baidu, execution step 2064.
Step 2063, the first load balancing module obtain the second distribution node clothes of described first load balancing module management The address of business device.
Example it is assumed that Baidu described first load balancing module management the first distribution node server on rent The bandwidth resources of 10G, scheduling thresholding on this first distribution node server for the Baidu is 2G, if other users of Baidu pass through Described first distribution node server access www.baidu.com, has occupied what Baidu on this first distribution node server rented The 8G of bandwidth resources, now, described first remaining bandwidth is 2G, then described first remaining bandwidth is equal to Baidu described first Scheduling thresholding on distribution node server, therefore, the first load balancing module in described first distribution node is described It is scheduling according to nearby principle scheduling strategy in the distribution node server of one load balancing module management, specifically, first, The distance with user x that described first load balancing module obtains described first load balancing module management is negative more than described first Carry the first distribution node server of balance module management and all distribution node servers of the distance of described user x, then, Described first load balancing module selects and described user x closest distribution in described all distribution node servers Node server it is assumed that described first load balancing module management the second distribution node server be with described user x away from From nearest distribution node server, then using the second distribution node server of described first load balancing module management as warp Cross the distribution node server after scheduling, obtain the address of described second distribution node server, will described second distribution section Point server is as the suboptimum distribution node server of described user x.Particularly, negative with described first according to other Baidu user Carry the second distribution section described in the distance between second distribution node server of balance module management and nearby principle scheduling strategy Point server can be the Optimal Distribution node server of other Baidu user.
If it should be noted that there are other users of Baidu by described second distribution node server access Baidu.com The number of users stood is more, also occupies the bandwidth resources that on this second distribution node server, Baidu rents, now, institute in a large number State the second remaining bandwidth and be less than or equal to scheduling thresholding on described second distribution node server for the Baidu, described second is remaining With configured bandwidth on the second distribution node server for a width of described first tenant with described first tenant in the second distribution section The current difference using bandwidth on point server, therefore, described first load balancing module is in described first load balancing module It is scheduling according to nearby principle scheduling strategy in the distribution node server of management, there is described first load balancing module again 3rd distribution node server of management, and described the in addition to the first distribution node server and the second distribution node server Three distribution node servers are closest with user x's, then be dispatched to the 3rd distribution node server, and the described 3rd is distributed Node server can pass through the 3rd distribution node server access Baidu as suboptimum distribution node server, user x Web site contents.Particularly, in practical application, scheduling times are unsuitable more, because for dividing that described user provides after multiple scheduling The speed that cloth node server accesses website can reduce, in a word should be for needing the user accessing tenant website to provide access described Speed higher distribution node server during website.If not being dispatched to the distribution node service providing service for described user x When being configured without more distribution node server in device or content distributing network, then the access request of described user x is dispatched Arrive back source server, described time source server is the original site issuing www.baidu.com content.
Step 2064, the first distribution node server of the first load balancing module management continue as user x offer content Service.
If other users of Baidu are by described first distribution node server access www.baidu.com, occupy described The 4G of the bandwidth resources that Baidu rents on first distribution node server of the first load balancing module management, now, described the One remaining bandwidth is 6G, then described first remaining bandwidth is more than scheduling door on described first distribution node server for the Baidu Limit, therefore so that described user x can continue through the content that described first distribution node server is able to access that www.baidu.com Distribution node server.
So, equal when there is the load at least two tenants' described first content distribution network distribution nodes of rental During the resource of distribution node server of weighing apparatus module management, simultaneously by the selected distribution node of user to described tenant Load balancing module management distribution node server between be scheduling, determine distribute to described tenant user distribution Node server, so that the speed of user's access website of each described tenant is faster more stable, ensures that tenant's is interior effectively Content distributing network resource requirement.
The embodiment of the present invention assumes that described first remaining bandwidth is less than or equal to Baidu in described first distribution node service Scheduling thresholding on device, accordingly, the first load balancing module obtains the first load balancing mould in described first distribution node The address of the second distribution node server of block management.When the second remaining bandwidth is more than Baidu in described second distribution node service During scheduling thresholding on device, execution step 207.
Step 207, described first load balancing module send the address of described second distribution node server to user x.
First load balancing module obtains second point of the first load balancing module management in described first distribution node Behind the address of cloth node server, first, obtained according to the user access request of user x, described second distribution node server The second remaining bandwidth and Baidu scheduling thresholding on described second distribution node server, described second remaining bandwidth is Baidu Current on the second distribution node server of the configured bandwidth on the second distribution node server and Baidu used bandwidth it Difference, then, judges whether described second remaining bandwidth is less than or equal to tune on described second distribution node server for the Baidu Degree thresholding.The embodiment of the present invention assumes that the second remaining bandwidth is more than scheduling door on described second distribution node server for the Baidu Limit, then described first load balancing module is to the address of the user x described second distribution node server of transmission.Need explanation It is that described user access request according to user x, described second distribution node server obtains the second remaining bandwidth and Baidu exists Scheduling thresholding on described second distribution node server, judges whether described second remaining bandwidth is less than or equal to Baidu in institute State on the second distribution node server scheduling thresholding detailed process detailed on the first distribution node server with user x In the same manner, the embodiment of the present invention will not be described here process.
Step 208, user x are according to the address of described second distribution node server to described second distribution node server Send request service.
Described second distribution node server is the first load balancing in described first content distribution network distribution node Second distribution node server of module management.
Step 209, described second distribution node server provide service to user x.
User x have input Baidu's domain name in a browser before this, and described second distribution node server carries according to browser For domain name, by configured in advance, source server IP returns in good Baidu(Internet Protocol, Internet protocol)Ground Location confirms actual IP address, then submits access request, institute from described second distribution node server to described real ip address State the second distribution node server after real ip address obtains www.baidu.com content, this second distribution node server is obtained The data of the www.baidu.com content taking returns to user x, and meanwhile, the data file of the www.baidu.com that can obtain this is at this Second distribution node server is preserved, if in case the user that there is Baidu needs by this second distribution node service later Device accesses and uses during the web site contents of Baidu.Now, the browser that user x uses receives the data of www.baidu.com content, display User x accesses the content of www.baidu.com.
The band that step 2010, the second distribution node server update Baidu of described first load balancing module management rent Wide resource information.
When user x is by the second distribution node server successful access Baidu.com of described first load balancing module management After standing, that is, described user x occupies the bandwidth resources that described second distribution node server is supplied to Baidu, this second distribution section Point server updates current on this second distribution node server of Baidu and uses bandwidth, obtains new information, in order to work as Other users of Baidu are again by the second distribution node server access Baidu.com of described first load balancing module management Carry out when standing judging whether can quickly access www.baidu.com.
Step 2011, the second distribution node server of described first load balancing module management load all to described first Weighing apparatus module sends new information.
It should be noted that the embodiment of the present invention taking Baidu as a example describes data processing method, simply schematically illustrate, real In the application of border, can also be other tenants, the present invention does not limit to this.
Data processing method provided in an embodiment of the present invention, first, the load balancing module in content distributing network is arranged The configuration information of first tenant's rented content distribution network resource, described configuration information includes described first tenant in content distribution Configured bandwidth on each distribution node server in network and scheduling thresholding, then, the first user of the first tenant determines entirely Office's load balancing module, described GSLB module determines the first distribution node service according to nearby principle scheduling strategy Device, if when remaining bandwidth on described first distribution node server for first tenant is less than or equal to scheduling thresholding, to the The distribution node server that the first user of one tenant is used is scheduling, and obtains the address of the second distribution node server, If the second remaining bandwidth is more than scheduling thresholding on described second distribution node server for described first tenant, to described first User sends the address of described second distribution node server, in order to described first user according to described second distribution node clothes The address of business device is to described second distribution node server for services so that the first user of the first tenant can pass through content The web site contents of distribution node server access first tenant in distribution network.So, when there are at least two tenants When renting the resource of distribution node server of load balancing module management in described content distributing network distribution node, effectively Ground ensures the content distributing network resource requirement of tenant, simultaneously by the selected distribution node of user to described tenant It is scheduling between the distribution node server of load balancing module management, determine the distribution section of the user distributing to described tenant Point server is so that the speed of user's access website of each described tenant is faster more stable.
The embodiment of the present invention provides a kind of first load balancing module 50, described first load balancing module management at least Individual distribution node server, as shown in figure 5, include:
First acquisition unit 501, for obtaining the user access request of the first user of the first tenant, described first tenant For any one in multiple tenants of described first load balancing module management.
Determining unit 502, for determining the first distribution node server distributing to described first user.
Second acquisition unit 503, for obtaining the according to described user access request, described first distribution node server The one remaining bandwidth and described first tenant scheduling thresholding on described first distribution node server, described first remaining bandwidth Take in the first distribution node with described first tenant for configured bandwidth on the first distribution node server for described first tenant The current difference using bandwidth on business device.
Judging unit 504, for judging whether described first remaining bandwidth that described second acquisition unit 503 obtains is less than Or it is equal to scheduling thresholding on described first distribution node server for described first tenant.
3rd acquiring unit 505, if be less than or equal to described first tenant described for described first remaining bandwidth Scheduling thresholding on one distribution node server, obtains the address of the second distribution node server.
Transmitting element 506, for being more than described first tenant in described second distribution node service in the second remaining bandwidth During scheduling thresholding on device, send, to described first user, described second distribution node that described 3rd acquiring unit 505 obtains The address of server, is distributed to described second according to the address of described second distribution node server in order to described first user Node server request service, described second remaining bandwidth is configuration on the second distribution node server for described first tenant The bandwidth and described first tenant current difference using bandwidth on the second distribution node server.
Described 3rd acquiring unit 505 specifically for:
The distance with described first user obtaining described first load balancing module management is more than described first distribution section All distribution node servers of the distance of point server and described first user.
Described all distribution node servers select and described first user closest distribution node service Device is as described second distribution node server.
As shown in fig. 6, described first load balancing module 50 also includes:
Set up unit 507, for setting up at least one distribution node server of described first load balancing module management In each distribution node server scheduling resource table, described in the scheduling resource table record of each described distribution node server The configured bandwidth on described distribution node server for multiple tenants of one load balancing module management and scheduling thresholding, described join Put the bandwidth rented with a width of described tenant.
Described second acquisition unit 503 specifically for:
The scheduling resource table of described first distribution node server is selected in all scheduling resource tables.
Obtain described according to described user access request in the scheduling resource table of described first distribution node server Configured bandwidth on the first distribution node server for one tenant and described first tenant are in described first distribution node server On scheduling thresholding.
Obtain current on the first distribution node server of described first tenant and use bandwidth.
By configured bandwidth on the first distribution node server for described first tenant with described first tenant at first point Current on cloth node server has used the difference of bandwidth as described first remaining bandwidth.
Described first acquisition unit 501 specifically for:
Receive the user access request of the described first user of GSLB module forwards, described GSLB At least one load balancing module of module management, described first load balancing module is described GSLB module management Any one in load balancing module.
Those skilled in the art can be understood that, for convenience and simplicity of description, the device of foregoing description With the specific work process of unit, may be referred to the corresponding process in preceding method embodiment, will not be described here.
It should be understood that disclosed apparatus and method in several embodiments provided herein, can be passed through it Its mode is realized.For example, device embodiment described above is only schematically, for example, the division of described unit, and only It is only a kind of division of logic function, actual can have other dividing mode when realizing, and for example multiple units or assembly can be tied Close or be desirably integrated into another system, or some features can be ignored, or do not execute.Another, shown or discussed Coupling each other or direct-coupling or communication connection can be by some interfaces, the INDIRECT COUPLING of device or unit or logical Letter connects, and can be electrical, mechanical or other forms.
The described unit illustrating as separating component can be or may not be physically separate, show as unit The part showing can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple On NE.The mesh to realize this embodiment scheme for some or all of unit therein can be selected according to the actual needs 's.
In addition, can be integrated in a processing unit in each functional unit in each embodiment of the present invention it is also possible to It is that the independent physics of unit is included it is also possible to two or more units are integrated in a unit.Above-mentioned integrated list Unit both can be to be realized in the form of hardware, it would however also be possible to employ the form that hardware adds SFU software functional unit is realized.
One of ordinary skill in the art will appreciate that:The all or part of step realizing said method embodiment can be passed through Completing, aforesaid program can be stored in a computer read/write memory medium the related hardware of programmed instruction, this program Upon execution, execute the step including said method embodiment;And aforesaid storage medium includes:ROM, RAM, magnetic disc or light Disk etc. is various can be with the medium of store program codes.
The above, the only specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, and any Those familiar with the art the invention discloses technical scope in, change or replacement can be readily occurred in, all should contain Cover within protection scope of the present invention.Therefore, protection scope of the present invention should be defined by described scope of the claims.

Claims (10)

1. a kind of data processing method is it is characterised in that be applied to the first load balancing module, described first load balancing module Manage at least one distribution node server, including:
Obtain the user access request of the first user of the first tenant, described first tenant is described first load balancing module pipe Any one in multiple tenants of reason;
Determine the first distribution node server distributing to described first user;
First remaining bandwidth and described first tenant are obtained according to described user access request, described first distribution node server Scheduling thresholding on described first distribution node server, described first remaining bandwidth is described first tenant in the first distribution Configured bandwidth on the node server and described first tenant current difference using bandwidth on the first distribution node server;
Judge whether described first remaining bandwidth is less than or equal to described first tenant on described first distribution node server Scheduling thresholding;
If described first remaining bandwidth is less than or equal to scheduling on described first distribution node server for described first tenant Thresholding, obtains the address of the second distribution node server;
If the second remaining bandwidth is more than scheduling thresholding on described second distribution node server for described first tenant, to described First user sends the address of described second distribution node server, in order to described first user according to the described second distribution section To described second distribution node server for services, described second remaining bandwidth is described first tenant for the address of point server The configured bandwidth on the second distribution node server and described first tenant on the second distribution node server current Difference with bandwidth.
2. method according to claim 1 is it is characterised in that the address of described acquisition the second distribution node server is wrapped Include:
The distance with described first user obtaining described first load balancing module management is more than described first distribution node clothes All distribution node servers of the distance of business device and described first user;
Described all distribution node servers select make with described first user closest distribution node server For described second distribution node server.
3. method according to claim 1 is it is characterised in that the user in the described first user obtaining the first tenant visits Before asking request, methods described also includes:
Set up each distribution node server at least one distribution node server of described first load balancing module management Scheduling resource table, the first load balancing module management described in the scheduling resource table record of each described distribution node server Configured bandwidth on described distribution node server for multiple tenants and scheduling thresholding, described configured bandwidth is that described tenant rents Bandwidth.
4. method according to claim 3 it is characterised in that
Described according to described user access request, described first distribution node server obtain the first remaining bandwidth and described first Scheduling thresholding on described first distribution node server for the tenant includes:
The scheduling resource table of described first distribution node server is selected in all scheduling resource tables;
Described first rent is obtained in the scheduling resource table of described first distribution node server according to described user access request Family is in the configured bandwidth on the first distribution node server and described first tenant on described first distribution node server Scheduling thresholding;
Obtain current on the first distribution node server of described first tenant and use bandwidth;
By configured bandwidth on the first distribution node server for described first tenant with described first tenant in the first distribution section Current on point server has used the difference of bandwidth as described first remaining bandwidth.
5. the method according to Claims 1-4 any one claim is it is characterised in that described acquisition first tenant The user access request of first user include:
Receive the user access request of the described first user of GSLB module forwards, described GSLB module Manage at least one load balancing module, described first load balancing module is the load of described GSLB module management Any one in balance module.
6. a kind of first load balancing module is it is characterised in that described first load balancing module manages at least one distribution section Point server, including:
First acquisition unit, for obtaining the user access request of the first user of the first tenant, described first tenant is described Any one in multiple tenants of the first load balancing module management;
Determining unit, for determining the first distribution node server distributing to described first user;
Second acquisition unit, for obtaining the first residue according to described user access request, described first distribution node server The bandwidth and described first tenant scheduling thresholding on described first distribution node server, described first remaining bandwidth is described First tenant is in the configured bandwidth on the first distribution node server and described first tenant on the first distribution node server The current difference using bandwidth;
Judging unit, described for judging whether described first remaining bandwidth that described second acquisition unit obtains is less than or equal to Scheduling thresholding on described first distribution node server for first tenant;
3rd acquiring unit, if be less than or equal to described first tenant in the described first distribution section for described first remaining bandwidth Scheduling thresholding on point server, obtains the address of the second distribution node server;
Transmitting element, for being more than tune on described second distribution node server for described first tenant in the second remaining bandwidth The ground of the described second distribution node server that described 3rd acquiring unit obtains during degree thresholding, is sent to described first user Location, in order to described first user according to the address of described second distribution node server to described second distribution node server Request service, described second remaining bandwidth be configured bandwidth on the second distribution node server for described first tenant with described The current difference using bandwidth on the second distribution node server for first tenant.
7. the first load balancing module according to claim 6 it is characterised in that
Described 3rd acquiring unit specifically for:
The distance with described first user obtaining described first load balancing module management is more than described first distribution node clothes All distribution node servers of the distance of business device and described first user;
Described all distribution node servers select make with described first user closest distribution node server For described second distribution node server.
8. the first load balancing module according to claim 6 it is characterised in that
Described first load balancing module also includes:
Set up unit, for setting up each point at least one distribution node server that described first load balancing module manages The scheduling resource table of cloth node server, the first load described in the scheduling resource table record of each described distribution node server is all The configured bandwidth on described distribution node server for multiple tenants of weighing apparatus module management and scheduling thresholding, described configured bandwidth is The bandwidth that described tenant rents.
9. the first load balancing module according to claim 8 it is characterised in that
Described second acquisition unit specifically for:
The scheduling resource table of described first distribution node server is selected in all scheduling resource tables;
Described first rent is obtained in the scheduling resource table of described first distribution node server according to described user access request Family is in the configured bandwidth on the first distribution node server and described first tenant on described first distribution node server Scheduling thresholding;
Obtain current on the first distribution node server of described first tenant and use bandwidth;
By configured bandwidth on the first distribution node server for described first tenant with described first tenant in the first distribution section Current on point server has used the difference of bandwidth as described first remaining bandwidth.
10. the first load balancing module according to claim 6 to 9 any one claim it is characterised in that
Described first acquisition unit specifically for:
Receive the user access request of the described first user of GSLB module forwards, described GSLB module Manage at least one load balancing module, described first load balancing module is the load of described GSLB module management Any one in balance module.
CN201310625902.XA 2013-11-28 2013-11-28 Method and device for data processing Active CN103596066B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310625902.XA CN103596066B (en) 2013-11-28 2013-11-28 Method and device for data processing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310625902.XA CN103596066B (en) 2013-11-28 2013-11-28 Method and device for data processing

Publications (2)

Publication Number Publication Date
CN103596066A CN103596066A (en) 2014-02-19
CN103596066B true CN103596066B (en) 2017-02-15

Family

ID=50086020

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310625902.XA Active CN103596066B (en) 2013-11-28 2013-11-28 Method and device for data processing

Country Status (1)

Country Link
CN (1) CN103596066B (en)

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104506656B (en) * 2015-01-09 2018-03-23 中国联合网络通信集团有限公司 A kind of method and system of the set content distribution network node in mobile Internet
CN105243078B (en) * 2015-08-28 2018-09-28 北京奇艺世纪科技有限公司 A kind of distribution method of file resource, system and device
CN105357258B (en) 2015-09-28 2020-06-26 华为技术有限公司 Acceleration management node, acceleration node, client and method
CN105939377B (en) * 2016-04-28 2020-02-11 杭州迪普科技股份有限公司 Load balancing scheduling method and device
CN107172186B (en) * 2017-06-12 2019-06-14 中国联合网络通信集团有限公司 Content acquisition method and system
CN107864211B (en) * 2017-11-17 2019-09-10 中国联合网络通信集团有限公司 Cluster resource dispatching method and system
CN110493046B (en) * 2018-02-27 2022-08-16 贵州白山云科技股份有限公司 Scheduling method and system for node server bandwidth resources in CDN (content delivery network)
CN108667658B (en) * 2018-04-28 2020-02-21 厦门白山耘科技有限公司 Bandwidth multiplexing method and device
CN111800348A (en) * 2019-04-09 2020-10-20 中兴通讯股份有限公司 Load balancing method and device
CN110784506B (en) * 2019-09-05 2021-05-14 腾讯科技(深圳)有限公司 Cloud resource allocation method, device and equipment
CN110636339B (en) * 2019-09-30 2022-11-15 北京字节跳动网络技术有限公司 Scheduling method and device based on code rate and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1592248A (en) * 2003-08-29 2005-03-09 华为技术有限公司 Layered content distributing network and method thereof
US20080209067A1 (en) * 2002-07-24 2008-08-28 Ranjit John System And Method For Highly-Scalable Real-Time And Time-Based Data Delivery Using Server Clusters
CN102761550A (en) * 2012-07-04 2012-10-31 青岛海信传媒网络技术有限公司 Method, device and system for implementing streaming media
CN103166985A (en) * 2011-12-09 2013-06-19 上海盛霄云计算技术有限公司 Global load balancing scheduling method and data transmission method and device and system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7818445B2 (en) * 2008-10-15 2010-10-19 Patentvc Ltd. Methods and devices for obtaining a broadcast-like streaming content

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080209067A1 (en) * 2002-07-24 2008-08-28 Ranjit John System And Method For Highly-Scalable Real-Time And Time-Based Data Delivery Using Server Clusters
CN1592248A (en) * 2003-08-29 2005-03-09 华为技术有限公司 Layered content distributing network and method thereof
CN103166985A (en) * 2011-12-09 2013-06-19 上海盛霄云计算技术有限公司 Global load balancing scheduling method and data transmission method and device and system
CN102761550A (en) * 2012-07-04 2012-10-31 青岛海信传媒网络技术有限公司 Method, device and system for implementing streaming media

Also Published As

Publication number Publication date
CN103596066A (en) 2014-02-19

Similar Documents

Publication Publication Date Title
CN103596066B (en) Method and device for data processing
CN102647482B (en) Method and system for accessing website
CN102668518B (en) Content distribution network routing method, system, and user terminal
CN105579965B (en) Via the client guard station resources control of provider's defining interface
CN104090825B (en) Dynamic migration computer network
CN104168300B (en) Content accelerated method and system
CN1280752C (en) System for selecting image station point server and its method
EP2932693B1 (en) Exchange of server status and client information through headers for request management and load balancing
CN103685590B (en) Obtain the method and system of IP address
CN107078969A (en) Realize computer equipment, the system and method for load balancing
CN108804514A (en) A kind of webpage loading method, server and webpage loading system
CN104769550B (en) The method and system of bandwidth allocation in system for cloud computing
CN101171821A (en) System, network device, method, and computer program product for active load balancing using clustered nodes as authoritative domain name servers
CN108183975A (en) A kind of method and system of domain name mapping
CN106031130A (en) Content delivery network architecture with edge proxy
CN104486402B (en) A kind of method based on large-scale website combined equalization
CN108470298A (en) The methods, devices and systems of resource numerical value transfer
CN102196060A (en) Method and system for selecting source station by Cache server
CN101741907A (en) Method and system for balancing server load and main server
CN109618003A (en) A kind of servers' layout method, server and storage medium
CN101729591A (en) User guide device, system and method
KR20140010960A (en) Method and system for providing a session involving a plurality of software applications
CN107741859A (en) Software package management method, apparatus and system based on domestic CPU and OS
CN106101055A (en) The data access method of a kind of multiple database and system thereof and proxy server
CN110519240A (en) A kind of single-point logging method, apparatus and system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant