CN109639823A - Network node dispatching method and device, computer installation and storage medium - Google Patents

Network node dispatching method and device, computer installation and storage medium Download PDF

Info

Publication number
CN109639823A
CN109639823A CN201811627247.0A CN201811627247A CN109639823A CN 109639823 A CN109639823 A CN 109639823A CN 201811627247 A CN201811627247 A CN 201811627247A CN 109639823 A CN109639823 A CN 109639823A
Authority
CN
China
Prior art keywords
network node
client
operator
belonging
region
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.)
Pending
Application number
CN201811627247.0A
Other languages
Chinese (zh)
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.)
Shenzhen Onething Technology Co Ltd
Original Assignee
Shenzhen Onething Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Onething Technology Co Ltd filed Critical Shenzhen Onething Technology Co Ltd
Priority to CN201811627247.0A priority Critical patent/CN109639823A/en
Publication of CN109639823A publication Critical patent/CN109639823A/en
Pending legal-status Critical Current

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/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
    • H04L67/1004Server selection for load balancing
    • 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
    • H04L67/1004Server selection for load balancing
    • H04L67/1023Server selection for load balancing based on a hash applied to IP addresses or costs

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The present invention provides a kind of network node dispatching method, comprising: receives the resource acquisition request of client;Region belonging to the client and operator are obtained according to the IP address of the client in resource acquisition request;Obtain region belonging to the network node and operator;Judge whether the network node is the preferred network node of the client according to region belonging to region belonging to the client and operator and the network node and operator;If the network node is not the preferred network node of the client, it is determined as the network node that the client is recommended;The network node recommended for the client is returned into the client.The present invention also provides a kind of network node dispatching device, computer installation and computer readable storage mediums.The speed that client obtains Internet resources can be improved in the present invention.

Description

Network node dispatching method and device, computer installation and storage medium
Technical field
The present invention relates to technical field of the computer network, and in particular to a kind of network node dispatching method and device, calculating Machine device and computer readable storage medium.
Background technique
In CDN (Content Delivery Network, content distributing network), domain name generallys use DNS (Domain Name System, domain name system) parsing or httpDNS parsing be dispatched on certain network nodes to realize.But in DNS The dns server address that family setting is susceptible to when scheduling influences, and causes scheduling inaccurate, and user is more when httpDNS scheduling It is inaccurate etc. that outlet IP causes httpDNS to dispatch, and is easy to cause following problems:
(1) user's access is less than fringe node.
(2) it is very slow to respond very slow or downloading data for user accesses data.
Summary of the invention
In view of the foregoing, it is necessary to propose a kind of network node dispatching method, network node dispatching device, computer dress It sets, computer readable storage medium and computer program product, the speed that client obtains Internet resources can be improved.
The first aspect of the application provides a kind of network node dispatching method, which comprises
Receive the resource acquisition request of client;
According to the resource acquisition request in the client IP address obtain region belonging to the client and Operator;
Obtain region belonging to the network node and operator;
Judged according to region belonging to region belonging to the client and operator and the network node and operator Whether the network node is the preferred network node of the client;
If the network node is not the preferred network node of the client, it is determined as the network that the client is recommended Node;
The network node recommended for the client is returned into the client.
In alternatively possible implementation, the region according to belonging to the client and operator and the network Region belonging to node and operator judge whether the network node is that the preferred network node of the client includes:
Judge whether region belonging to the client is consistent with region belonging to the network node;And/or
Judge whether region belonging to the client is consistent with operator belonging to the network node;And/or
Judge whether region belonging to region belonging to the client and the network node belongs to predeterminable area range; And/or
Judge whether operator belonging to operator belonging to the client and the network node belongs to default operation Quotient's range.
In alternatively possible implementation, the network node for being determined as the client recommendation includes:
Region and fortune belonging to region and operator and the client belonging to being determined from the network node that can be serviced Seek the consistent network node of quotient;Or
Operator belonging to determining from the network node that can be serviced is consistent with operator belonging to the client, and Region belonging to affiliated region and the client belongs to the network node of predeterminable area range;Or
Operator belonging to determining from the network node that can be serviced belongs to default with operator belonging to the client The network node of operator's range.
In alternatively possible implementation, the IP address according to the client in resource acquisition request It obtains region belonging to the client and operator includes:
The IP address section for searching each operator determines the operator of the address field of the IP address comprising the client For operator belonging to the client;
The region that the IP address section of each operator is distributed is searched, by the IP address of the IP address comprising the client The region that section is distributed is determined as region belonging to the client.
In alternatively possible implementation, the network node for being determined as the client recommendation includes:
It is determined as the network node that the client is recommended according to the busy extent for the network node that can be serviced.
In alternatively possible implementation, the network node is Edge Server.
In alternatively possible implementation, the method also includes:
If the network node is not the preferred network node of the client, judge whether the client allows to carry out Network node Dispatching adjustment.
The second aspect of the application provides a kind of computer installation, and the computer installation includes memory and processor, The computer program that can be run on the processor is stored on the memory, the computer program is by the processor The network node dispatching method is realized when execution.
The third aspect of the application provides a kind of network node dispatching device, and described device includes:
Receiving unit, the resource acquisition for receiving client are requested;
Acquiring unit, for obtaining the client according to the IP address of the client in resource acquisition request Affiliated region and operator;
The acquiring unit is also used to obtain region belonging to the network node and operator;
Judging unit, for region belonging to the region according to belonging to the client and operator and the network node Judge whether the network node is the preferred network node of the client with operator;
Determination unit is determined as the visitor if not being the preferred network node of the client for the network node The network node that family end is recommended;
Return unit, for the network node recommended for the client to be returned to the client.
In alternatively possible implementation, judging unit region according to belonging to the client and operator and Region belonging to the network node and operator judge whether the network node is the preferred network node of the client Include:
Judge whether region belonging to the client is consistent with region belonging to the network node;And/or
Judge whether region belonging to the client is consistent with operator belonging to the network node;And/or
Judge whether region belonging to region belonging to the client and the network node belongs to predeterminable area range; And/or
Judge whether operator belonging to operator belonging to the client and the network node belongs to default operation Quotient's range.
In alternatively possible implementation, the determination unit is determined as the network node packet that the client is recommended It includes:
Region and fortune belonging to region and operator and the client belonging to being determined from the network node that can be serviced Seek the consistent network node of quotient;Or
Operator belonging to determining from the network node that can be serviced is consistent with operator belonging to the client, and Region belonging to affiliated region and the client belongs to the network node of predeterminable area range;Or
Operator belonging to determining from the network node that can be serviced belongs to default with operator belonging to the client The network node of operator's range.
In alternatively possible implementation, the acquiring unit is according to the client in resource acquisition request IP address obtain region belonging to the client and operator includes:
The IP address section for searching each operator determines the operator of the address field of the IP address comprising the client For operator belonging to the client;
The region that the IP address section of each operator is distributed is searched, by the IP address of the IP address comprising the client The region that section is distributed is determined as region belonging to the client.
In alternatively possible implementation, the determination unit is determined as the network node packet that the client is recommended It includes:
It is determined as the network node that the client is recommended according to the busy extent for the network node that can be serviced.
In alternatively possible implementation, the network node is Edge Server.
In alternatively possible implementation, the judging unit is also used to:
If the network node is not the preferred network node of the client, judge whether the client allows to carry out Network node Dispatching adjustment.
The fourth aspect of the application provides a kind of computer readable storage medium, deposits on the computer readable storage medium Computer program is contained, the computer program realizes the network node dispatching method when being executed by processor.
The 5th aspect of the application provides a kind of computer program product, including computer instruction, when it is filled in computer When setting operation, so that computer installation executes the network node dispatching method.
The present invention receives the resource acquisition request of client;According to the IP of the client in resource acquisition request Address obtains region belonging to the client and operator;Obtain region belonging to the network node and operator;According to Region belonging to region belonging to the client and operator and the network node and operator judge the network node It whether is the preferred network node of the client;If the network node is not the preferred network node of the client, really It is set to the network node that the client is recommended;The network node recommended for the client is returned into the client. The network node in present invention region according to belonging to client and operator's adjustment client access, improves the acquisition of Internet resources Speed.Particularly, when the dns server configuration error of client, inventive network node scheduling method can be significantly reduced The delay of network access, accelerates network access speed.
Detailed description of the invention
Fig. 1 is the flow chart of network node dispatching method preferred embodiment provided in an embodiment of the present invention.
Fig. 2 is the flow chart of network node dispatching device preferred embodiment provided in an embodiment of the present invention.
Fig. 3 is the schematic diagram of computer installation preferred embodiment provided in an embodiment of the present invention.
Specific embodiment
In order to make the objectives, technical solutions, and advantages of the present invention clearer, with reference to the accompanying drawings and embodiments, right The present invention is further elaborated.It should be appreciated that described herein, specific examples are only used to explain the present invention, not For limiting the present invention.Based on the embodiments of the present invention, those of ordinary skill in the art are not before making creative work Every other embodiment obtained is put, shall fall within the protection scope of the present invention.
The description and claims of this application and term " first ", " second ", " third ", " in above-mentioned attached drawing The (if present)s such as four " are to be used to distinguish similar objects, without being used to describe a particular order or precedence order.It should manage The data that solution uses in this way are interchangeable under appropriate circumstances, so that the embodiments described herein can be in addition to illustrating herein Or the sequence other than the content of description is implemented.In addition, term " includes " and " having " and their any deformation, it is intended that Cover it is non-exclusive include, for example, containing the process, method of a series of steps or units, device, product or equipment need not limit In step or unit those of is clearly listed, but may include be not clearly listed or for these process, methods, produce The other step or units of product or equipment inherently.
It should be noted that the description for being related to " first ", " second " etc. in the present invention is used for description purposes only, and cannot It is interpreted as its relative importance of indication or suggestion or implicitly indicates the quantity of indicated technical characteristic.Define as a result, " the One ", the feature of " second " can explicitly or implicitly include at least one of the features.In addition, the skill between each embodiment Art scheme can be combined with each other, but must be based on can be realized by those of ordinary skill in the art, when technical solution Will be understood that the combination of this technical solution is not present in conjunction with there is conflicting or cannot achieve when, also not the present invention claims Protection scope within.
Preferably, network node dispatching method of the invention is applied in one or more computer installation.The meter Calculation machine device be it is a kind of can be according to the instruction for being previously set or store, automatic progress numerical value calculating and/or information processing are set Standby, hardware includes but is not limited to microprocessor, specific integrated circuit (Application Specific Integrated Circuit, ASIC), programmable gate array (Field-Programmable Gate Array, FPGA), digital processing unit (Digital Signal Processor, DSP), embedded device etc..
The computer installation can be the calculating such as desktop PC, notebook, palm PC and cloud server and set It is standby.The computer installation can carry out people by modes such as keyboard, mouse, remote controler, touch tablet or voice-operated devices with user Machine interaction.
The computer installation can be composition CDN (Content Delivery Network, content distributing network) net The node of network or block chain network.
Embodiment one
Fig. 1 is the flow chart of network node dispatching method provided in an embodiment of the present invention.The network node dispatching method Applied in network node (i.e. initial network node), client is adjusted for the region according to belonging to client and operator The network node of access improves the acquisition speed of Internet resources.In the present embodiment, the network node can be edge service Device.The Edge Server provides the function of entering the channel of network and communicate with other server apparatus for client.
Shown in 1, the network node dispatching method specifically includes the following steps:
S101 receives the resource acquisition request of client.
The resource acquisition request obtains Internet resources for requesting from network.For example, client issues resource acquisition Request, for obtaining the video A in network.
The resource acquisition request includes domain name and resource path.According to domain name and the available network of resource path Resource.The resource acquisition request further includes the IP address of the client.The network that can be will acquire according to the IP address Resource returns to the client.
In the present embodiment, the resource acquisition request that various clients are sent can receive.The client includes but unlimited In desktop computer, pocket computer on knee, mobile phone, personal digital assistant, tablet computer, smart phone, e-book reading Device, MP3 (Moving Picture Experts Group Audio Layer III, dynamic image expert's compression standard audio Level 3) or MP4 (Moving Picture Experts Group Audio Layer IV, dynamic image expert's compression standard Audio level 4) player, POS terminal and vehicle-mounted computer etc..
It should be noted that the client can be come using DNS (Domain Name System, domain name system) parsing Scheduling/access network node.DNS is susceptible to family setting dns server address when dispatching influences, and leads to scheduling not It is quasi-.The client can also be parsed using httpDNS to access the network node, if the client is multiple exit IP, It is inaccurate that httpDNS scheduling will be will lead to.
S102 obtains area belonging to the client according to the IP address of the client in resource acquisition request Domain and operator.
In one embodiment, the region may include " East China ", " North China ", " south China ", " northeast ", " northwest ", " southwest " six large geographical area.The operator may include " China Telecom ", " China Unicom ", " China Mobile ", " Chinese net It is logical ", " China Railway Telecom " five network operators.It is appreciated that the region is also possible to province, city or district.
In embodiments of the present invention, there is its corresponding IP address section in each operation commercial city, and operator can be by its corresponding IP IP address in address field distributes to the client for accessing the carrier network, so that the client can be its point using operator Service server in the IP address matched and the carrier network carries out data interaction.
The IP address section that each operator can be searched, by the operator of the address field of the IP address comprising the client It is determined as operator belonging to the client.Such as: 111.0.0.0/10 is the IP address section of China Mobile, the IP of client Address is 111.0.0.7, and 111.0.0.0/10 includes 111.0.0.7, then operator belonging to the client is China Mobile.
In the present embodiment, its different IP address section is distributed to different zones and used by each operator.It can search The region that the IP address section of each operator is distributed, the area that the IP address section of the IP address comprising the client is distributed Domain is determined as region belonging to the client.For example, the IP address of client is 111.0.0.7, during which is included in In the mobile IP address section 111.0.0.0/10 of state, and the address field distributes to Shenzhen, then can determine area belonging to the client Domain is Shenzhen.
S103 obtains region belonging to the network node and operator.
Region belonging to the network node and operator can be stored in the storage equipment of the network node in advance In, the network node reads region belonging to the network node and operator from the storage equipment.
S104, according to region and operator belonging to region belonging to the client and operator and the network node Judge whether the network node is the preferred network node of the client.
May determine that whether region belonging to the client is consistent with region belonging to the network node;And/or sentence Whether region belonging to the client of breaking is consistent with operator belonging to the network node;And/or judge the client Whether region belonging to affiliated region and the network node belongs to predeterminable area range;And/or judge the client institute Whether operator belonging to the operator of category and the network node belongs to default operator's range.
In the present embodiment, when meeting following either condition, judge that the network node is preferred for the client Network node:
(1) operator belonging to the client is consistent with operator belonging to the network node, and the client Region belonging to end is consistent with region belonging to the network node.For example, operator belonging to the client and the net Operator belonging to network node is China Mobile, and region belonging to the client and the network node is depth Ditch between fields.
(2) operator belonging to the client is consistent with operator belonging to the network node, the client institute The region of category and region belonging to the network node are inconsistent, and region belonging to the client and the network node Affiliated region belongs to predeterminable area range.Multiple predeterminable area ranges can be defined.For example, operation belonging to the client Quotient is China Mobile with operator belonging to the network node, and region belonging to the client is Shenzhen, the net Region belonging to network node is Guangzhou, and region belonging to region belonging to the client and the network node belongs to Guangdong Province (i.e. predeterminable area range is same province).
(3) operator and operator belonging to the network node belonging to the client are inconsistent, the client Operator belonging to affiliated operator and the network node belongs to default operator's range.Multiple default operations can be defined Quotient's range.For example, operator belonging to the client is China Unicom, operator belonging to the network node is Chinese iron Logical, China Unicom and China Railway Telecom are default operator's range.
Otherwise, if above-mentioned condition (1), (2), (3) are not satisfied, judging the network node not is that the client is excellent The network node of choosing.
S105 is determined as the client and recommends if the network node is not the preferred network node of the client Network node.
The network node can be determined as the network node that the client is recommended according to preset scheduling rule.Example Such as, region and operation belonging to the region and operator and the client belonging to being determined from the network node that can be serviced The consistent network node of quotient.If there is no belonging to affiliated region and operator and the client in the network node that can be serviced The consistent network node in region and operator, then from the network node that can be serviced determine belonging to operator and the client Region belonging to the consistent and affiliated region of operator and the client belonging to end belongs to the network of predeterminable area range Node.Alternatively, if there is no affiliated operator is consistent with operator belonging to the client in the network node that can be serviced Network node, then from the network node that can be serviced determine belonging to operator belong to operator belonging to the client The network node of default operator's range, for example, operator belonging to determining belong to operator belonging to the client it is default Operator's range, and the consistent network node in region belonging to affiliated region and the client.Determining network node The network node that the as described client is recommended.
The network node recommended for the client can be one.
In the present embodiment, however, it is determined that network node be it is multiple, can be according to the busy extent of determining network node Determine the network node recommended for the client.For example, network node idle in determining network node is determined For the network node of recommendation.
In the present embodiment, region belonging to the client and operator can be sent to scheduling by the network node Server.The dispatch server is determined as the network node that the client is recommended, and the network node of the recommendation is returned Give the network node (i.e. initial network node).If the network node for the recommendation that the dispatch server returns be it is multiple, The network node can determine a consequently recommended network node from multiple network nodes of recommendation.
The network node recommended for the client is returned to the client by S106.
The client can issue new resource acquisition request, the network of the recommendation to the network node of the recommendation Node can quickly respond new resource acquisition request, to improve the speed that the client obtains Internet resources Degree.
In the present embodiment, the IP address for the network node recommended for the client and the resource acquisition can be asked Domain name in asking returns to the client together with resource path.
The network node dispatching method of embodiment one receives the resource acquisition request of client;It is asked according to the resource acquisition The IP address for the client asked obtains region belonging to the client and operator;It obtains belonging to the network node Region and operator;According to region and operation belonging to region belonging to the client and operator and the network node Quotient judges whether the network node is the preferred network node of the client;If the network node is not the client Preferred network node is determined as the network node that the client is recommended;By the network section recommended for the client Point returns to the client.The network section in the region according to belonging to client of embodiment one and operator's adjustment client access Point improves the acquisition speed of Internet resources.Particularly, when the dns server configuration error of client, the network of embodiment one Node scheduling method can significantly reduce the delay of network access, accelerate network access speed.
In another embodiment, if it is not described that the network node dispatching method, which can also include: the network node, The preferred network node of client, judges whether the client allows to carry out network node Dispatching adjustment.If the client Allow to carry out network node Dispatching adjustment, it is determined that be the client recommendation network node.It can be in advance to the client Carry out network node scheduling configuration.It is switched for example, a network node Dispatching adjustment is arranged for the client, when the network When node scheduling adjustment switch is in an open state, the client allows to carry out network node Dispatching adjustment.Otherwise, when the net When network node scheduling adjustment switch is in off state, the client does not allow to carry out network node Dispatching adjustment.
Embodiment two
Fig. 2 is the structure chart of network node dispatching device preferred embodiment provided in an embodiment of the present invention.The network section Point dispatching device 10 is applied in network node (i.e. initial network node), for the region according to belonging to client and operation The network node for negotiating the transfer of whole client access, improves the acquisition speed of Internet resources.In the present embodiment, the network node can To be Edge Server.The Edge Server for client provide one enter network channel and with other server apparatus The function of communication.
As shown in Fig. 2, the network node dispatching device 10 may include: receiving unit 201, acquiring unit 202, judgement Unit 203, determination unit 204, return unit 205.
Receiving unit 201, the resource acquisition for receiving client are requested.
The resource acquisition request obtains Internet resources for requesting from network.For example, client issues resource acquisition Request, for obtaining the video A in network.
The resource acquisition request includes domain name and resource path.According to domain name and the available network of resource path Resource.The resource acquisition request further includes the IP address of the client.The network that can be will acquire according to the IP address Resource returns to the client.
In the present embodiment, the resource acquisition request that various clients are sent can receive.The client includes but unlimited In desktop computer, pocket computer on knee, personal digital assistant, tablet computer, smart phone, E-book reader, MP3 (Moving Picture Experts Group Audio Layer III, dynamic image expert's compression standard audio level 3) Or MP4 (Moving Picture Experts Group Audio Layer IV, dynamic image expert's compression standard audio layer Face 4) player, POS terminal and vehicle-mounted computer etc..
It should be noted that the client can be come using DNS (Domain Name System, domain name system) parsing Scheduling/access network node.DNS is susceptible to family setting dns server address when dispatching influences, and leads to scheduling not It is quasi-.The client can also be parsed using httpDNS to access the network node, if the client is multiple exit IP, It is inaccurate that httpDNS scheduling will be will lead to.
Acquiring unit 202, for obtaining the visitor according to the IP address of the client in resource acquisition request Region belonging to the end of family and operator.
In one embodiment, the region may include " East China ", " North China ", " south China ", " northeast ", " northwest ", " southwest " six large geographical area.The operator may include " China Telecom ", " China Unicom ", " China Mobile ", " Chinese net It is logical ", " China Railway Telecom " five network operators.It is appreciated that the region is also possible to province, city or district.
In embodiments of the present invention, there is its corresponding IP address section in each operation commercial city, and operator can be by its corresponding IP IP address in address field distributes to the client for accessing the carrier network, so that the client can be its point using operator Service server in the IP address matched and the carrier network carries out data interaction.
The IP address section that each operator can be searched, by the operator of the address field of the IP address comprising the client It is determined as operator belonging to the client.Such as: 111.0.0.0/10 is the IP address section of China Mobile, the IP of client Address is 111.0.0.7, and 111.0.0.0/10 includes 111.0.0.7, then operator belonging to the client is China Mobile.
In the present embodiment, its different IP address section is distributed to different zones and used by each operator.It can search The region that the IP address section of each operator is distributed, the area that the IP address section of the IP address comprising the client is distributed Domain is determined as region belonging to the client.For example, the IP address of client is 111.0.0.7, during which is included in In the mobile IP address section 111.0.0.0/10 of state, and the address field distributes to Shenzhen, then can determine area belonging to the client Domain is Shenzhen.
Acquiring unit 202 is also used to obtain region belonging to the network node and operator.
Region belonging to the network node and operator can be stored in the storage equipment of the network node in advance In, the network node reads region belonging to the network node and operator from the storage equipment.
Judging unit 203, for belonging to the region according to belonging to the client and operator and the network node Region and operator judge whether the network node is the preferred network node of the client.
May determine that whether region belonging to the client is consistent with region belonging to the network node;And/or sentence Whether region belonging to the client of breaking is consistent with operator belonging to the network node;And/or judge the client Whether region belonging to affiliated region and the network node belongs to predeterminable area range;And/or judge the client institute Whether operator belonging to the operator of category and the network node belongs to default operator's range.
In the present embodiment, when meeting following either condition, judge that the network node is preferred for the client Network node:
(1) operator belonging to the client is consistent with operator belonging to the network node, and the client Region belonging to end is consistent with region belonging to the network node.For example, operator belonging to the client and the net Operator belonging to network node is China Mobile, and region belonging to the client and the network node is depth Ditch between fields.
(2) operator belonging to the client is consistent with operator belonging to the network node, the client institute The region of category and region belonging to the network node are inconsistent, and region belonging to the client and the network node Affiliated region belongs to predeterminable area range.Multiple predeterminable area ranges can be defined.For example, operation belonging to the client Quotient is China Mobile with operator belonging to the network node, and region belonging to the client is Shenzhen, the net Region belonging to network node is Guangzhou, and region belonging to region belonging to the client and the network node belongs to Guangdong Province (i.e. predeterminable area range is same province).
(3) operator and operator belonging to the network node belonging to the client are inconsistent, the client Operator belonging to affiliated operator and the network node belongs to default operator's range.Multiple default operations can be defined Quotient's range.For example, operator belonging to the client is China Unicom, operator belonging to the network node is Chinese iron Logical, China Unicom and China Railway Telecom are default operator's range.
Otherwise, if above-mentioned condition (1), (2), (3) are not satisfied, judging the network node not is that the client is excellent The network node of choosing.
Determination unit 204 is determined as described if not being the preferred network node of the client for the network node The network node that client is recommended.
The network node can be determined as the network node that the client is recommended according to preset scheduling rule.Example Such as, region and operation belonging to the region and operator and the client belonging to being determined from the network node that can be serviced The consistent network node of quotient.If there is no belonging to affiliated region and operator and the client in the network node that can be serviced The consistent network node in region and operator, then from the network node that can be serviced determine belonging to operator and the client Region belonging to the consistent and affiliated region of operator and the client belonging to end belongs to the network of predeterminable area range Node.Alternatively, if there is no affiliated operator is consistent with operator belonging to the client in the network node that can be serviced Network node, then from the network node that can be serviced determine belonging to operator belong to operator belonging to the client The network node of default operator's range, for example, operator belonging to determining belong to operator belonging to the client it is default Operator's range, and the consistent network node in region belonging to affiliated region and the client.Determining network node The network node that the as described client is recommended.
The network node recommended for the client can be one.
In the present embodiment, however, it is determined that network node be it is multiple, can be according to the busy extent of determining network node Determine the network node recommended for the client.For example, network node idle in determining network node is determined For the network node of recommendation.
In the present embodiment, region belonging to the client and operator can be sent to scheduling by the network node Server.The dispatch server is determined as the network node that the client is recommended, and the network node of the recommendation is returned Give the network node (i.e. initial network node).If the network node for the recommendation that the dispatch server returns be it is multiple, The network node can determine a consequently recommended network node from multiple network nodes of recommendation.
Return unit 205, for the network node recommended for the client to be returned to the client.
The client can issue new resource acquisition request, the network of the recommendation to the network node of the recommendation Node can quickly respond new resource acquisition request, to improve the speed that the client obtains Internet resources Degree.
In the present embodiment, the IP address for the network node recommended for the client and the resource acquisition can be asked Domain name in asking returns to the client together with resource path.
The network node dispatching device 10 of embodiment two receives the resource acquisition request of client;According to the resource acquisition The IP address of the client in request obtains region belonging to the client and operator;Obtain the network node institute The region of category and operator;According to region and fortune belonging to region belonging to the client and operator and the network node Battalion quotient judges whether the network node is the preferred network node of the client;If the network node is not the client Preferred network node is held, the network node that the client is recommended is determined as;By the network recommended for the client Node returns to the client.The network section in the region according to belonging to client of embodiment one and operator's adjustment client access Point improves the acquisition speed of Internet resources.Particularly, when the dns server configuration error of client, the network of embodiment one Node scheduling device 10 can significantly reduce the delay of network access, accelerate network access speed.
In another embodiment, the judging unit 203 is also used to: if the network node is not that the client is preferred Network node, judge the client whether allow carry out network node Dispatching adjustment.If the client allows to carry out net Network node scheduling adjustment, it is determined that be the client recommendation network node.Network section can be carried out to the client in advance Point scheduling configuration.It is switched for example, a network node Dispatching adjustment is arranged for the client, dispatches and adjust when the network node When whole switch is in an open state, the client allows to carry out network node Dispatching adjustment.Otherwise, when the network node is dispatched When adjustment switch is in off state, the client does not allow to carry out network node Dispatching adjustment.
Embodiment three
The present embodiment provides a kind of computer readable storage medium, computer is stored on the computer readable storage medium Program, the computer program realize the step in above-mentioned network node dispatching method embodiment, such as Fig. 1 when being executed by processor Shown in S101-S106:
S101 receives the resource acquisition request of client;
S102 obtains area belonging to the client according to the IP address of the client in resource acquisition request Domain and operator;
S103 obtains region belonging to the network node and operator;
S104, according to region and operator belonging to region belonging to the client and operator and the network node Judge whether the network node is the preferred network node of the client;
S105 is determined as the client and recommends if the network node is not the preferred network node of the client Network node;
The network node recommended for the client is returned to the client by S106.
Alternatively, the function of each module/unit in above-mentioned apparatus embodiment is realized when the computer program is executed by processor, Such as the unit 201-205 in Fig. 2:
Receiving unit 201, the resource acquisition for receiving client are requested;
Acquiring unit 202, for obtaining the visitor according to the IP address of the client in resource acquisition request Region belonging to the end of family and operator;
The acquiring unit 202, is also used to obtain region belonging to the network node and operator;
Judging unit 203, for belonging to the region according to belonging to the client and operator and the network node Region and operator judge whether the network node is the preferred network node of the client;
Determination unit 204 is determined as described if not being the preferred network node of the client for the network node The network node that client is recommended;
Return unit 205, for the network node recommended for the client to be returned to the client.
Example IV
Fig. 3 is the schematic diagram of computer installation provided in an embodiment of the present invention.The computer installation 1 includes memory 20, processor 30, bus 50 and it is stored in the computer journey that can be run in the memory 20 and on the processor 30 Sequence 40, such as shell execute authority acquiring program.The processor 30 realizes above-mentioned network when executing the computer program 40 Step in node scheduling embodiment of the method, such as S101-S106 shown in FIG. 1:
S101 receives the resource acquisition request of client;
S102 obtains area belonging to the client according to the IP address of the client in resource acquisition request Domain and operator;
S103 obtains region belonging to the network node and operator;
S104, according to region and operator belonging to region belonging to the client and operator and the network node Judge whether the network node is the preferred network node of the client;
S105 is determined as the client and recommends if the network node is not the preferred network node of the client Network node;
The network node recommended for the client is returned to the client by S106.
Alternatively, realizing each module in above-mentioned apparatus embodiment/mono- when the processor 30 executes the computer program 40 The function of member, such as the unit 201-205 in Fig. 2:
Receiving unit 201, the resource acquisition for receiving client are requested;
Acquiring unit 202, for obtaining the visitor according to the IP address of the client in resource acquisition request Region belonging to the end of family and operator;
The acquiring unit 202, is also used to obtain region belonging to the network node and operator;
Judging unit 203, for belonging to the region according to belonging to the client and operator and the network node Region and operator judge whether the network node is the preferred network node of the client;
Determination unit 204 is determined as described if not being the preferred network node of the client for the network node The network node that client is recommended;
Return unit 205, for the network node recommended for the client to be returned to the client.
Illustratively, the computer program 40 can be divided into one or more module/units, it is one or Multiple module/units are stored in the memory 20, and are executed by the processor 30, to complete the present invention.Described one A or multiple module/units can be the series of computation machine program instruction section that can complete specific function, which is used for Implementation procedure of the computer program 40 in the computer installation 1 is described.For example, the computer program 40 can be by Receiving unit 201, acquiring unit 202, the judging unit 203, determination unit 204, return unit 205 being divided into Fig. 2, each list First concrete function is referring to embodiment two.
The computer installation 1 can be PC (PersonalComputer, PC), be also possible to smart phone, The terminal devices such as tablet computer, palm PC, portable computer, intelligent router, mine machine, network storage equipment.In this implementation Example, the computer installation 1 can be Edge Server.
Alleged processor 30 can be central processing unit (Central Processing Unit, CPU), can also be Other general processors, digital signal processor (Digital Signal Processor, DSP), specific integrated circuit (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field- Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic, Discrete hardware components etc..General processor can be microprocessor or the processor 30 is also possible to any conventional processor Deng the processor 30 is the control centre of the computer installation 1, utilizes various interfaces and connection entire computer dress Set 1 various pieces.
The memory 20 can be used for storing the computer program 40 and/or module/unit, and the processor 30 passes through Operation executes the computer program and/or module/unit being stored in the memory 20, and calls and be stored in memory Data in 20 realize the various functions of the computer installation 1.The memory 20 can mainly include storing program area and deposit Store up data field, wherein storing program area can application program needed for storage program area, at least one function (for example sound is broadcast Playing function, image player function etc.) etc.;Storage data area, which can be stored, uses created data (ratio according to computer installation 1 Such as audio data, phone directory) etc..In addition, memory 20 may include high-speed random access memory, it can also include non-easy The property lost memory, such as hard disk, memory, plug-in type hard disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card, flash card (Flash Card), at least one disk memory, flush memory device or other Volatile solid-state part.
The bus 50 is to be Peripheral Component Interconnect standard (peripheral component interconnect, abbreviation PCI) bus or expanding the industrial standard structure (extended industry standard architecture, abbreviation EISA) Bus etc..The bus 50 can be divided into address bus, data/address bus, control bus etc..For convenient for indicating, only with one in Fig. 3 Bar thick line indicates, it is not intended that an only bus or a type of bus.
Further, computer installation 1 can also include network interface, and network interface optionally may include wireline interface And/or wireless interface (such as WI-FI interface, blue tooth interface), commonly used in the computer installation 1 and other electronic equipments it Between establish communication connection.
Optionally, which can also include user interface, and user interface may include display (Display), input unit such as keyboard (Keyboard), optional user interface can also include standard wireline interface, Wireless interface.Optionally, in some embodiments, it is aobvious to can be light-emitting diode display, liquid crystal display, touch control type LCD for display Show that device and OLED (Organic Light-Emitting Diode, Organic Light Emitting Diode) touch device etc..Wherein, display Appropriate it can also be known as display screen or display unit, for being shown in the information handled in computer installation 1 and for showing Show visual user interface.
It will be understood by those skilled in the art that the schematic diagram 3 be only computer installation 1 example, constitute pair The restriction of computer installation 1 may include perhaps combining certain components or different than illustrating more or fewer components Component.
In the above-described embodiments, can come wholly or partly by software, hardware, firmware or any combination thereof real It is existing.When implemented in software, it can entirely or partly realize in the form of a computer program product.
The computer program product includes one or more computer instructions.Load and execute on a computing means institute When stating computer program instructions, entirely or partly generate according to process or function described in the embodiment of the present invention.The calculating Machine device can be general purpose computer, special purpose computer, computer network or other programmable devices.The computer refers to Order may be stored in a computer readable storage medium, or from a computer readable storage medium to another computer-readable Storage medium transmission, for example, the computer instruction can be logical from a web-site, computer, server or data center Wired (such as coaxial cable, optical fiber, Digital Subscriber Line (DSL)) or wireless (such as infrared, wireless, microwave etc.) mode are crossed to another One web-site, computer, server or data center are transmitted.The computer readable storage medium can be calculating Any usable medium that machine can store either includes the numbers such as one or more usable mediums integrated server, data center According to storage equipment.The usable medium can be magnetic medium, (for example, floppy disk, hard disk, tape), optical medium (for example, DVD), Or semiconductor medium (such as solid state hard disk Solid State Disk (SSD)) etc..
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description, The specific work process of device and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In several embodiments provided herein, it should be understood that disclosed system, device and method can be with It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, the unit It divides, only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units or components It may be combined or can be integrated into another device, or some features can be ignored or not executed.Another point, it is shown or The mutual coupling, direct-coupling or communication connection discussed can be through some interfaces, the indirect coupling of device or unit It closes or communicates to connect, can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme 's.
It, can also be in addition, each functional unit in each embodiment of the application can integrate in one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list Member both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product When, it can store in a computer readable storage medium.Based on this understanding, the technical solution of the application is substantially The all or part of the part that contributes to existing technology or the technical solution can be in the form of software products in other words It embodies, which is stored in a storage medium, including some instructions are used so that a computer Device (can be personal computer, server or the network equipment etc.) executes the complete of each embodiment the method for the application Portion or part steps.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic or disk etc. are various can store journey The medium of sequence code.
It should be noted that the serial number of the above embodiments of the invention is only for description, do not represent the advantages or disadvantages of the embodiments.And The terms "include", "comprise" herein or any other variant thereof is intended to cover non-exclusive inclusion, so that packet Process, device, article or the method for including a series of elements not only include those elements, but also including being not explicitly listed Other element, or further include for this process, device, article or the intrinsic element of method.Do not limiting more In the case where, the element that is limited by sentence "including a ...", it is not excluded that including process, device, the article of the element Or there is also other identical elements in method.
The above is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills Art field, is included within the scope of the present invention.

Claims (10)

1. a kind of network node dispatching method, which is characterized in that the described method includes:
Receive the resource acquisition request of client;
Region belonging to the client and operation are obtained according to the IP address of the client in resource acquisition request Quotient;
Obtain region belonging to the network node and operator;
According to region belonging to region belonging to the client and operator and the network node and operator's judgement Whether network node is the preferred network node of the client;
If the network node is not the preferred network node of the client, it is determined as the network section that the client is recommended Point;
The network node recommended for the client is returned into the client.
2. the method as described in claim 1, which is characterized in that the region according to belonging to the client and operator and Region belonging to the network node and operator judge whether the network node is the preferred network node of the client Include:
Judge whether region belonging to the client is consistent with region belonging to the network node;And/or
Judge whether region belonging to the client is consistent with operator belonging to the network node;And/or
Judge whether region belonging to region belonging to the client and the network node belongs to predeterminable area range;With/ Or
Judge whether operator belonging to operator belonging to the client and the network node belongs to default operator's model It encloses.
3. the method as described in claim 1, which is characterized in that the network node packet for being determined as the client and recommending It includes:
Region and operator belonging to region and operator and the client belonging to being determined from the network node that can be serviced Consistent network node;Or
Operator belonging to determining from the network node that can be serviced is consistent with operator belonging to the client and affiliated Region and the client belonging to region belong to the network node of predeterminable area range;Or
Operator belonging to operator and the client belonging to determining from the network node that can be serviced belongs to default operation The network node of quotient's range.
4. the method as described in claim 1, which is characterized in that the client according in resource acquisition request IP address obtain region belonging to the client and operator includes:
The operator of the address field of IP address comprising the client is determined as institute by the IP address section for searching each operator State operator belonging to client;
The region that the IP address section of each operator is distributed is searched, by the IP address section institute of the IP address comprising the client The region of distribution is determined as region belonging to the client.
5. the method as described in claim 1, which is characterized in that the network node packet for being determined as the client and recommending It includes:
It is determined as the network node that the client is recommended according to the busy extent for the network node that can be serviced.
6. the method as described in claim 1, the network node is Edge Server.
7. such as method of any of claims 1-6, which is characterized in that the method also includes:
If the network node is not the preferred network node of the client, judge whether the client allows to carry out network Node scheduling adjustment.
8. a kind of computer installation, which is characterized in that the computer installation includes memory and processor, on the memory It is stored with the computer program that can be run on the processor, is realized such as when the computer program is executed by the processor Network node dispatching method described in any one of claim 1-7.
9. a kind of network node dispatching device, which is characterized in that described device includes:
Receiving unit, the resource acquisition for receiving client are requested;
Acquiring unit, for being obtained belonging to the client according to the IP address of the client in resource acquisition request Region and operator;
The acquiring unit is also used to obtain region belonging to the network node and operator;
Judging unit, for region and fortune belonging to the region according to belonging to the client and operator and the network node Battalion quotient judges whether the network node is the preferred network node of the client;
Determination unit is determined as the client if not being the preferred network node of the client for the network node The network node of recommendation;
Return unit, for the network node recommended for the client to be returned to the client.
10. a kind of computer readable storage medium, which is characterized in that be stored with computer on the computer readable storage medium Program realizes the network node dispatching party as described in any one of claim 1-7 when the computer program is executed by processor Method.
CN201811627247.0A 2018-12-28 2018-12-28 Network node dispatching method and device, computer installation and storage medium Pending CN109639823A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811627247.0A CN109639823A (en) 2018-12-28 2018-12-28 Network node dispatching method and device, computer installation and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811627247.0A CN109639823A (en) 2018-12-28 2018-12-28 Network node dispatching method and device, computer installation and storage medium

Publications (1)

Publication Number Publication Date
CN109639823A true CN109639823A (en) 2019-04-16

Family

ID=66079003

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811627247.0A Pending CN109639823A (en) 2018-12-28 2018-12-28 Network node dispatching method and device, computer installation and storage medium

Country Status (1)

Country Link
CN (1) CN109639823A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110266438A (en) * 2019-07-01 2019-09-20 深圳市迅雷网络技术有限公司 A kind of data transmission method, device, system and computer readable storage medium
CN110300182A (en) * 2019-07-04 2019-10-01 深圳市网心科技有限公司 Network node dispatching method and device, computer installation and storage medium
CN110868339A (en) * 2019-11-25 2020-03-06 北京三体云时代科技有限公司 Node distribution method and device, electronic equipment and readable storage medium
CN112260961A (en) * 2020-09-23 2021-01-22 北京金山云网络技术有限公司 Network traffic scheduling method and device, electronic equipment and storage medium
CN112311829A (en) * 2019-07-31 2021-02-02 贵州白山云科技股份有限公司 Method, device, medium and equipment for scheduling access request
CN112583861A (en) * 2019-09-27 2021-03-30 阿里巴巴集团控股有限公司 Service deployment method, resource configuration method, system, device and server
CN114531472A (en) * 2020-10-30 2022-05-24 华为技术有限公司 Communication method and electronic device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101202684A (en) * 2006-12-15 2008-06-18 中国电信股份有限公司 Method for close judgment of user in content distributing network
US20100036954A1 (en) * 2008-08-06 2010-02-11 Edgecast Networks, Inc. Global load balancing on a content delivery network
CN103188270A (en) * 2013-04-11 2013-07-03 腾讯科技(深圳)有限公司 Method, device and system for accessing recommended server to IP address
CN103338278A (en) * 2013-07-15 2013-10-02 星云融创(北京)信息技术有限公司 Accelerating method and device for web page browsing
CN104410691A (en) * 2014-11-27 2015-03-11 网宿科技股份有限公司 Method and system for website acceleration on basis of content delivery network

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101202684A (en) * 2006-12-15 2008-06-18 中国电信股份有限公司 Method for close judgment of user in content distributing network
US20100036954A1 (en) * 2008-08-06 2010-02-11 Edgecast Networks, Inc. Global load balancing on a content delivery network
CN103188270A (en) * 2013-04-11 2013-07-03 腾讯科技(深圳)有限公司 Method, device and system for accessing recommended server to IP address
CN103338278A (en) * 2013-07-15 2013-10-02 星云融创(北京)信息技术有限公司 Accelerating method and device for web page browsing
CN104410691A (en) * 2014-11-27 2015-03-11 网宿科技股份有限公司 Method and system for website acceleration on basis of content delivery network

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110266438A (en) * 2019-07-01 2019-09-20 深圳市迅雷网络技术有限公司 A kind of data transmission method, device, system and computer readable storage medium
CN110266438B (en) * 2019-07-01 2022-11-18 深圳市迅雷网络技术有限公司 Data transmission method, device and system and computer readable storage medium
CN110300182A (en) * 2019-07-04 2019-10-01 深圳市网心科技有限公司 Network node dispatching method and device, computer installation and storage medium
CN112311829A (en) * 2019-07-31 2021-02-02 贵州白山云科技股份有限公司 Method, device, medium and equipment for scheduling access request
CN112311829B (en) * 2019-07-31 2022-05-17 贵州白山云科技股份有限公司 Method, device, medium and equipment for scheduling access request
US11706186B2 (en) 2019-07-31 2023-07-18 Guizhou Baishancloud Technology Co., Ltd. Method, apparatus, medium, and device for scheduling access request
CN112583861A (en) * 2019-09-27 2021-03-30 阿里巴巴集团控股有限公司 Service deployment method, resource configuration method, system, device and server
CN112583861B (en) * 2019-09-27 2023-08-22 阿里巴巴集团控股有限公司 Service deployment method, resource allocation method, system, device and server
CN110868339A (en) * 2019-11-25 2020-03-06 北京三体云时代科技有限公司 Node distribution method and device, electronic equipment and readable storage medium
CN112260961A (en) * 2020-09-23 2021-01-22 北京金山云网络技术有限公司 Network traffic scheduling method and device, electronic equipment and storage medium
CN114531472A (en) * 2020-10-30 2022-05-24 华为技术有限公司 Communication method and electronic device
CN114531472B (en) * 2020-10-30 2024-01-09 华为技术有限公司 Communication method and electronic equipment

Similar Documents

Publication Publication Date Title
CN109639823A (en) Network node dispatching method and device, computer installation and storage medium
US10050879B2 (en) Techniques for selecting content based on network conditions
CN105103506B (en) For the method and system for the non-homogeneous bandwidth request allocation bandwidth in system for cloud computing
KR20200113276A (en) Resource arrangement method, device, terminal and storage medium
CN109634915A (en) File dispositions method, Cloud Server, system and storage medium
CN111163324B (en) Information processing method and device and electronic equipment
CN109618174A (en) A kind of live data transmission method, device, system and storage medium
CN106210153A (en) The method for pushing of a kind of resource information, system and electronic equipment thereof
CN104615421A (en) Virtual gift display method and device
CN110290399A (en) A kind of data distributing method, system, device and computer readable storage medium
CN110955820A (en) Media information interest point recommendation method, device, server and storage medium
CN105553831A (en) Message delivery method and system
CN110365783A (en) File dispositions method and device, network node and storage medium
US11132348B1 (en) Techniques to configure media packages
CN111178781A (en) Response resource allocation method, device, equipment and medium of online response system
CN109639801A (en) Back end distribution and data capture method and system
CN104216982A (en) Information processing method and electronic equipment
CN110109594A (en) A kind of draw data sharing method, device, storage medium and equipment
CN110300182A (en) Network node dispatching method and device, computer installation and storage medium
CN113996065A (en) Control method, device and system of cloud game and electronic equipment
CN104636378A (en) Pushing method and device for application programs
CN110855750B (en) Downloading method of software development kit and related equipment
CN115396500B (en) Service platform switching method and system based on private network and electronic equipment
CN110008181A (en) File polling method and device, computer installation and storage medium
CN108848158A (en) A kind of method, apparatus and server to mobile terminal recommending mobile phone game

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20190416

RJ01 Rejection of invention patent application after publication