CN109862131A - Distribution method, device and the computer readable storage medium of server access address - Google Patents

Distribution method, device and the computer readable storage medium of server access address Download PDF

Info

Publication number
CN109862131A
CN109862131A CN201910127233.0A CN201910127233A CN109862131A CN 109862131 A CN109862131 A CN 109862131A CN 201910127233 A CN201910127233 A CN 201910127233A CN 109862131 A CN109862131 A CN 109862131A
Authority
CN
China
Prior art keywords
node
access address
network section
server access
address
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910127233.0A
Other languages
Chinese (zh)
Other versions
CN109862131B (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.)
Beijing QIYI Century Science and Technology Co Ltd
Original Assignee
Beijing QIYI Century Science and 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 Beijing QIYI Century Science and Technology Co Ltd filed Critical Beijing QIYI Century Science and Technology Co Ltd
Priority to CN201910127233.0A priority Critical patent/CN109862131B/en
Publication of CN109862131A publication Critical patent/CN109862131A/en
Application granted granted Critical
Publication of CN109862131B publication Critical patent/CN109862131B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The present invention provides distribution method, device and the computer readable storage mediums of a kind of server access address, comprising: establishes the first distribution model, multiple first nodes in the first distribution model form tree structure, and each first node includes the first IP network section;It is the first node of target distribution server access address according to the first IP network section of the first node of target;If the first node of target has child node, untreated child node is distributed into the server access address apart from untreated child node apart from nearest father node for the untreated child node of unallocated server access address in child node.Present invention utilizes the transmission characteristics between father-child node in tree structure, to the server access address of father node distribution, it can distribute automatically into the child node of the father node, avoid the batch operation for carrying out server access address respectively to each node, to reduce the cumbersome degree of server access address batch operation, dispatching efficiency is improved.

Description

Distribution method, device and the computer readable storage medium of server access address
Technical field
The invention belongs to field of computer technology, distribution method, device more particularly to a kind of server access address And computer readable storage medium.
Background technique
With the continuous development of businessman's business, business access amount also can be promoted significantly therewith, how to be realized and visited business The Optimized Operation asked is the key that improve quality of service.
In the prior art, dispatching distribution system generallys use the method for exhaustion, by the operator of be provided with service and area Combination, which enumerates, to be come, and a scheduling strategy table is formed, e.g., for communication service, during the combination in scheduling strategy table may include: State's movement, Shandong connection, Shanghai Telecom, Qingdao telecommunications etc., for each combination, it usually needs be one by one its distribution server Access address belongs to the user in the combined region when carrying out business access, and dispatch server can be by the combination Server access address is sent to user, realizes the business access of user.
But increased dramatically with portfolio, the simple combination by all operators and region, which is set out, to be come, and For these the distribution server access address of combination one by one, the data processing amount of distribution system can be greatly increased, consumption is increasingly More manpowers and time cost reduce dispatching efficiency.
Summary of the invention
In view of this, the present invention provides distribution method, device and the computer-readable storage of a kind of server access address Medium, the data processing amount for solving dispatching distribution system in current scheme to a certain extent is larger, manpower and time cost The problem of consumption is higher, reduces dispatching efficiency.
According to the present invention in a first aspect, providing a kind of distribution method of server access address, this method can wrap It includes:
The first distribution model is established, includes multiple first nodes, the multiple first node in first distribution model Tree structure is formed, each first node includes the first Internet protocol IP network section;
The first node of target is chosen from first node;
It is the first node of target distribution server access according to the first IP network section of first node of target Location;
If first node of target has child node, for the unallocated server access address in the child node Untreated child node the server access address apart from the untreated child node apart from nearest father node is distributed to The untreated child node.
Second aspect according to the present invention, provides a kind of distributor of server access address, which can wrap It includes:
First establishes module, includes multiple first nodes in first distribution model for establishing the first distribution model, The multiple first node forms tree structure, and each first node includes the first Internet protocol IP network section;
Module is chosen, for choosing the first node of target from first node;
First distribution module is first node of target for the first IP network section according to first node of target Distribution server access address;
Strategy inherits module, if having child node for first node of target, for unallocated in the child node The untreated child node of the server access address, by the service apart from the untreated child node apart from nearest father node Device access address distributes to the untreated child node.
The third aspect, the embodiment of the invention provides a kind of computer readable storage mediums, which is characterized in that the calculating Computer program is stored on machine readable storage medium storing program for executing, is realized as described in relation to the first aspect when the computer program is executed by processor Server access address distribution method the step of.
For first technology, the present invention has following advantage:
The tree structure that the present invention is formed according to multiple first nodes, utilizes the father and son in tree structure between the first node Structural relation, so that after for father's the first node distribution server access address, for the son of this first node of father First node can distribute to the son first automatically by the server access address of the father node nearest apart from first node of son Node, therefore, present invention utilizes the transmission characteristics between father-child node in tree structure, visit the server of father node distribution It asks address, can distribute automatically into the child node of the father node, avoid and server access address is carried out respectively to each node Batch operation reduce manpower and time cost to reduce the cumbersome degree of server access address batch operation, improve Allocative efficiency, and then improve dispatching efficiency.
The above description is only an overview of the technical scheme of the present invention, in order to better understand the technical means of the present invention, And it can be implemented in accordance with the contents of the specification, and in order to allow above and other objects of the present invention, feature and advantage can It is clearer and more comprehensible, the followings are specific embodiments of the present invention.
Detailed description of the invention
By reading the following detailed description of the preferred embodiment, various other advantages and benefits are common for this field Technical staff will become clear.The drawings are only for the purpose of illustrating a preferred embodiment, and is not considered as to the present invention Limitation.And throughout the drawings, the same reference numbers will be used to refer to the same parts.In the accompanying drawings:
Fig. 1 is a kind of step flow chart of the distribution method of server access address provided in an embodiment of the present invention;
Fig. 2 is a kind of architecture diagram of the distribution system of server access address provided in an embodiment of the present invention;
Fig. 3 is a kind of tree structure figure of the distribution method of server access address provided in an embodiment of the present invention;
Fig. 4 is the step flow chart of the distribution method of another server access address provided in an embodiment of the present invention;
Fig. 5 is the tree structure figure of the distribution method of another server access address provided in an embodiment of the present invention;
Fig. 6 is a kind of block diagram of the distributor of server access address provided in an embodiment of the present invention.
Specific embodiment
The exemplary embodiment that the present invention will be described in more detail below with reference to accompanying drawings.Although showing the present invention in attached drawing Exemplary embodiment, it being understood, however, that may be realized in various forms the present invention without should be by embodiments set forth here It is limited.It is to be able to thoroughly understand the present invention on the contrary, providing these embodiments, and can be by the scope of the present invention It is fully disclosed to those skilled in the art.
Fig. 1 is a kind of step flow chart of the distribution method of server access address provided in an embodiment of the present invention, application In terminal, as shown in Figure 1, this method may include:
Step 101 establishes the first distribution model, includes multiple first nodes in first distribution model, the multiple First node forms tree structure, and each first node includes the first Internet protocol (IP, Internet Protocol) Network segment.
In embodiments of the present invention, the distribution method of server access address may be usually based on server access address Distribution system is realized, referring to Fig. 2, shows a kind of distribution system of server access address provided in an embodiment of the present invention Architecture diagram, the distribution system of server access address usually may include: dispatch server 10 and service server 20, the present invention A kind of executing subject of the distribution method for server access address that embodiment provides is dispatch server 10, wherein according to quotient The development of family's business service can provide business service in multiple areas, therefore, can be in the corresponding deployment business service in each area Device 20, and the access scheduling to all service servers 20 is managed collectively by deployment dispatch server 10.Dispatcher 40 can To realize the batch operation of server access address by dispatch server 10, by the access scheduling of client 30 to preferably Area and the corresponding service server 20 of preferred operator.
Specifically, in this step, business development demand can be primarily based on, multiple are divided by dispatch server 10 One IP network section, wherein business development demand refers to, due to business development and deploy the business clothes of certain operator in somewhere Business device, for example, it is assumed that business development to East China, then can correspond to deployment Jiangsu interchange server, Shandong telecommunication server Deng.
Further, network segment (network segment) refers generally to set in a computer network using same physical layer Standby (transmission medium, repeater, hub etc.) is capable of that a part of Direct Communication, and the equipment that can be used to distinguish on network is It is no in same network section, for example, being exactly a network segment between this from 192.168.0.1 to 192.168.255.255.
In embodiments of the present invention, divided according to the operation to the service server for deploying certain operator in somewhere Analysis, two parameters: operator's informaiton and regional information can be extracted, and it was found that can by area according to certain characteristic into Row divides, and has national region, provincial region and city-level region if when grouping according to covering geographic range, it can be seen that There is apparent inclusion relation, therefore, these inclusion relations, which are together in series, just becomes a tree structure model, this operator Information and regional information can combine the node to be formed in a tree structure.Fig. 2 shows server access address point In match system, which can be intuitively shown in the form of arborescence in the display screen of dispatch server 10, scheduling Member 40 can carry out operation processing to node therein, realize the addition and change of distribution.
For example, referring to Fig. 3, a kind of tree of the distribution method of server access address provided in an embodiment of the present invention is shown Shape structure chart a, wherein geographic area can be indicated by first node, and according to the packet of geographic range in area Containing relationship, it can be created as tree structure, in addition, according to reality by multiple first nodes according to the inclusion relation of father-child node Syntagmatic in application scenarios between area and operator can further add for the first node of each of tree structure Add the corresponding relationship between operator and geographic area, which can specifically be realized by way of IP network section, an IP Network segment may include the corresponding relationship between above-mentioned operator and geographic area.Such as, the IP network section of China Telecom is 123.499.776.The IP network section of Jiangsu connection includes: 112.80.0.0 to 112.87.255.255 etc..
Step 102 chooses the first node of target from first node.
In this step, one or more destination nodes can be chosen from the first node in conjunction with practical business demand, with Just the distribution of server access address is carried out to the first node of target.
For example, this four nodes works of China's Telecommunication, China Mobile, China Unicom and Shandong connection can be chosen in Fig. 3 For the first node of target.
Step 103, according to the first IP network section of first node of target, be the first node of target distribution server Access address.
In this step, to the service server for being deployed in each area access scheduling, in particular to, in tree-like knot In first distribution model of structure, to choose obtained target the first node distribution server access address, server access address It can be the address, referred to as domain name domain name system (DNS, Domain Name System), user, can be with by server domain name Parsing obtains the accurate IP address of service server, realizes the access to service server.
It in general, is target the first node distribution server access address, which usually may be used The access address for the service server being deployed in the first node of target is thought, so that in the geographic area of first node of target In user when carrying out business access, can be deployed in by the server access address of first node of target to access Service server in affiliated geographic area reduces business since the geographic distance between user and service server is closer Access delay improves the quality of business access.
If step 104, the first node of the target have child node, for the unallocated server in the child node The untreated child node of access address, by the server access apart from the untreated child node apart from nearest father node The untreated child node is distributed in location.
In embodiments of the present invention, the node in tree structure has the differentiation of father node and child node, and father node is son The node on node upper layer, father node usually may include multiple child nodes, therefore, the server access be added to father node It, can automatically by the server access of the father node nearest apart from the child node for the child node of this father node after location The child node is distributed in location, and therefore, present invention utilizes the transmission characteristics between father-child node in tree structure, to father node The server access address of distribution can be distributed automatically into the child node of the father node, reduce and carry out to multiple first nodes The cumbersome degree of server access address batch operation, reduces manpower and time cost, improves dispatching efficiency.
Such as, in Fig. 3, according to demand, dispatcher is assigned with four groups of different server access address a, b, c, d.And point It Dui Ying not distribute in China's Telecommunication's node, China Mobile's node, China Unicom node, Shandong connection node.Therefore, it realizes whole The distribution of all nodes in first distribution model of a tree structure, dispatcher need to only execute four sub-distribution operation, so that remaining The server access address distribution of node can inherit China's Telecommunication's node, China Mobile's node, China Unicom node, mountain automatically Corresponding server access address distribution in eastern connection node.
Further, in Fig. 3, solid box is represented by dispatcher's active distribution server access address, and dotted line frame represents By the transport properties of tree structure, conducts automatically and add server access address.According to demand, dispatcher is assigned with four groups not Same server access address a, b, c, d.And distribution is respectively corresponded in China's Telecommunication's node, China Mobile's node, middle League of Nations Logical node, Shandong connection node.According to the transport properties of tree structure, this four nodes can be used as father node, automatically by itself Server access address conduct and be added to untreated child node automatically, until all nodes with being all assigned with server access Location.It should be noted that the process of conduction is non-interference, and e.g., although Shandong connection node is the child node of China Unicom node, But since it has been provided with server access address, Shandong connection node is not intended as untreated child node, will not go certainly The dynamic server access address for inheriting China Unicom node, but it is independent as a father node, by the server access of itself It automatically conducts to Jinan connection node and Qingdao connection node address.
In conclusion the distribution method of server access address provided in an embodiment of the present invention, comprising: establish the first distribution Model includes multiple first nodes in the first distribution model, and multiple first nodes form tree structures, and each first node includes First Internet protocol IP network section;The first node of target is chosen from the first node;According to the first IP network of the first node of target Section is the first node of target distribution server access address;If the first node of target has child node, it is directed in child node and does not divide Untreated child node with server access address, by the server access apart from untreated child node apart from nearest father node Address, distributes to untreated child node, and the tree structure that the present invention is formed according to multiple first nodes utilizes in tree structure Parent-child structure relationship between one node, so that after for father's the first node distribution server access address, for this The first node of son of the first node of father, can automatically by the server access address of the father node nearest apart from first node of son, First node of son is distributed to, therefore, present invention utilizes the transmission characteristics between father-child node in tree structure, to father node The server access address of distribution can be distributed automatically into the child node of the father node, avoid and carry out respectively to each node The batch operation of server access address reduces manpower to reduce the cumbersome degree of server access address batch operation And time cost, allocative efficiency is improved, and then improve dispatching efficiency.
Fig. 4 is the step flow chart of the distribution method of another server access address provided in an embodiment of the present invention, such as Shown in Fig. 4, this method may include:
Step 401, according to preset IP address library, divide multiple first IP network sections.
In practical applications, the division of multiple first IP network sections can be realized by IP address library.
Data in IP address library be by professional technician by for a long time by multiple technologies means collect come, And there is professional to be updated, safeguard, supplement for a long time.A large amount of IP address is housed inside IP address database, it is convenient User query, for example, you are aware of some IP, so that it may find this computer in which street of that city, which province even which net , conversely, you are aware of an area or operator, can also check that there are which IP sections or this operator correspondence in this place There is which IP sections.
Such as, the IP network section of China Telecom is 123.499.776.The IP network section of Jiangsu connection include: 112.80.0.0 extremely 112.87.255.255 waiting.
Step 402 establishes first distribution model, and first IP network section is added to first distribution model In the first node.
Optionally, the first node in first distribution model further includes operator's informaiton and regional information.
In embodiments of the present invention, divided according to the operation to the service server for deploying certain operator in somewhere Analysis, two parameters: operator's informaiton and regional information can be extracted, and it was found that can by area according to certain characteristic into Row divides, and has national region, provincial region and city-level region if when grouping according to covering geographic range, it can be seen that There is apparent inclusion relation, therefore, a geographic area can be indicated by first node, and according to geographical in area The inclusion relation of range can be created as tree structure by multiple first nodes according to the inclusion relation of father-child node, in addition, It can be the first node of each of tree structure according to the syntagmatic in practical application scene between area and operator The corresponding relationship between operator and geographic area is further added, which specifically can be by way of IP network section come real Existing, an IP network section may include the corresponding relationship between above-mentioned operator and geographic area.
It should be noted that in practical applications, find in larger geographical coverage area, realization management that can not be smooth Scheduling, if China Unicom is the father node in all provincial connection regions, according to business norms, the server of southern province and north province The distribution logic of access address is usually different, this when can add the concept of a virtual region, i.e., in provincial area A level is added as virtual region among domain and national region, establishes virtual region node, such as " East China ", " China in Fig. 3 North " node, by the way that provincial node to be mounted on virtual region node, then virtual region node is mounted to national region knot On point, although not disposing corresponding service server in virtual region node, server access address is being carried out It can be the matched server access address of business of virtual region node addition and the virtual region, so that carry when distribution Provincial node on virtual region node can be used as child node, with getting the server access of virtual region node automatically Location, in larger geographical coverage area, so that it may by virtual region node in an intermediate position, be embodied as the virtual region The quick distribution server access address of provincial node within the scope of the territorial jurisdiction of node improves server under this scene and visits Ask the allocative efficiency of address, virtual region node is only used when management, be not in the distribution file ultimately generated, Optimum management is achieved the purpose that, but normal business has not been unfolded to generate interference.
Step 403 chooses the first node of target from first node.
The step is specifically referred to above-mentioned steps 102, and details are not described herein again.
Step 404, according to the first IP network section of first node of target, be the first node of target distribution server Access address.
The step is specifically referred to above-mentioned steps 103, and details are not described herein again.
If step 405, the first node of the target have child node, for the unallocated server in the child node The untreated child node of access address, by the server access apart from the untreated child node apart from nearest father node The untreated child node is distributed in location.
The step is specifically referred to above-mentioned steps 104, and details are not described herein again.
The first user access request and first distribution model that step 406, basis receive determine that described first uses Corresponding to the first IP network section of the first IP network section of target and the target belonging to the IP address that family access request includes Destination server access address.
In the embodiment of the present invention, all nodes in tree structure be all assigned with corresponding server access address it Afterwards, for the first user access request received, IP address therein, and the IP address that extraction is obtained are extracted The IP network section for including with the node in the first distribution model is matched, and determines the first IP network of target belonging to IP address Destination server access address corresponding to section and the first IP network section of target.
For example, referring to Fig. 3, it is assumed that the IP network section of Jiangsu connection includes: 112.80.0.0 to 112.87.255.255 etc., is mentioned The IP address obtained is 112.80.12.1, then can determine that user is currently in the compass of competency of Jiangsu connection, can To determine destination server access address as server access address c.
Optionally, in an implementation of the embodiment of the present invention, step 406 can specifically include:
Sub-step 4061, the distribution file for generating first distribution model, the distribution file includes the first IP The corresponding relationship of network segment and the server access address.
In this step, dispatch server realizes access scheduling, can specifically be realized by scheduler for distribution file Scheduling, after all nodes are all assigned with corresponding server access address in the first distribution model of tree structure, distribution It include the corresponding relationship of the first IP network section Yu server access address in file.Scheduler can be according to the distribution file, fastly The matching of the realization affiliated network segment of user of speed and the determination of corresponding server access address.
Sub-step 4062, when receiving first user access request, include by first user access request IP address matched with the corresponding relationship, determine the first IP network section of target belonging to the IP address, with And destination server access address corresponding to first IP network section of target.
In the embodiment of the present invention, for the first user access request received, IP address therein is extracted, and will It extracts the corresponding relationship stored in obtained IP address and distribution file to be matched, determines mesh belonging to IP address Mark destination server access address corresponding to the first IP network section of the first IP network section and target.
Step 407 adds the destination server access address in the response for first user access request.
Referring to Fig. 2, client 30 sends the first user access request to dispatch server 10, and dispatch server 10 is according to the One user access request can be for the first user access request after corresponding destination server access address has been determined Destination server access address is added in response, client 30 is after parsing obtains destination server access address in response, i.e., It may have access to the service server that corresponding area corresponds to operator, realize business access.
Optionally, in an implementation of the embodiment of the present invention, after step 405, can also include:
Step 408, the second distribution model for establishing tree structure, the second node of each of described second distribution model point It Bao Kuo not corresponding second IP network section.
In practical applications, with the popularization of business, it was found that a problem, when business root is according to business demand, usually Need to dispose a variety of different services, if these service all tree structure models, and there was only small portion between these tree structures Point have differences, such as established for service A include 300 the first nodes the first distribution model, established for service B Include second distribution model of 300 the second nodes, and has second IP network section of 280 the second nodes in the second distribution model It is identical with the first IP network section of 280 the first nodes in the first distribution model, it is assumed that 300 first of the first distribution model After the completion of node distribution server access address, new placed into service B is needed, if directly to include in the second distribution model 300 A second node carries out the distribution of server access address, then does not meet us and reduce the original intention of repetitive operation, therefore can increase Service inherited characteristics between the model of different tree form structure reduce batch operation amount.
In tree structure, when a node is assigned as inheriting another tree structure, which will inherit another The distribution of same node in tree structure, in the inherited characteristics using tree structure, which does not have distribution server visit Ask that the child node of address can also inherit this server access address.
Such as, after the completion of 300 the first node distribution server access address for servicing A, new online service B then services B 280 the second nodes can be mapped directly to identical 280 the first nodes in service A, obtain the clothes of 280 the first nodes Business device access address, the process only need to execute primary distribution operation, and later, service B can be to remaining 20 the second nodes only The distribution of server access address need to be individually carried out, therefore, it is a that service B needs the number that distributes to become 21 (300-280+1), greatly Reduce operating quantity greatly.
In this step, combining the commercial occupation rule formed usually with area by operator will not arbitrarily change, still, When business rule changes or generate new business rule, original first distribution model is unable to reach new business rule Demand.Therefore, in such a case, it is possible to establish the second distribution model of tree structure, each of second distribution model Second node respectively includes corresponding second IP network section.
Optionally, in an implementation of the embodiment of the present invention, step 408 can specifically include:
Sub-step 4081, according to preset IP address library, divide multiple second IP network sections.
In practical applications, the division of multiple second IP network sections can be realized by IP address library.
Data in IP address library be by professional technician by for a long time by multiple technologies means collect come, And there is professional to be updated, safeguard, supplement for a long time.A large amount of IP address is housed inside IP address database, it is convenient User query.
Sub-step 4082 establishes second distribution model, and second IP network section is added to second distribution The second node in model.
Optionally, the second node in second distribution model further includes operator's informaiton and regional information.
In embodiments of the present invention, a geographic area can be indicated by second node, and according in area The inclusion relation of geographic range can be created as tree structure, separately by multiple second nodes according to the inclusion relation of father-child node It outside, can be each of tree structure second according to the syntagmatic in practical application scene between area and operator Node further adds the corresponding relationship between operator and geographic area, which specifically can by way of IP network section come It realizes, an IP network section may include the corresponding relationship between above-mentioned operator and geographic area.
Further, referring to Fig. 5, the distribution side of another server access address provided in an embodiment of the present invention is shown The tree structure figure of method, it is assumed that tree structure A is the first distribution model, wherein two server access address a and b are assigned with, But with the change that business rule occurs, generate a kind of the second new distribution model, the tree structure B of the second distribution model In, by tree structure A China Telecom and East China telecommunications node be substituted for China Railway Telecom and south China Tie Tong node.
It should be noted that practical there may also be China Railway Telecom's node and south China Tie Tong knots in tree structure A Point, but since service A does not focus particularly on the two nodes, China Railway Telecom's node and south China Tie Tong node can be with It is not embodied in tree structure A, to enhance the intuitive of the present invention program.Alternatively, China Railway Telecom's node and south China Tie Tong knot Point can embody in tree structure A, but not be allocated to this two nodes, to guarantee what tree structure overall situation was seen Under the premise of, reduce the complexity of distribution logic.In addition, in tree structure B, it is practical there may also be China Telecom's node and East China telecommunications node, reason is the same as tree structure A.
Step 409, according to the matching of second IP network section and first IP network section, determine the first node of matching, The second node is not matched with the second node and.
It in this step, can be by the second node in the second distribution model after establishing the second new distribution model Second IP network section is matched with the first IP network section of the first node in the first distribution model, obtains the first node of matching, matching Second node and the second node is not matched.Wherein, the first IP network section of the first node and the 2nd IP that matches the second node are matched Network segment is identical, does not match the second IP network section of the second node and the first IP network section for matching the first node is not identical.
Such as, referring to Fig. 5, the tree structure B in the tree structure A and the first distribution model in the second distribution model is carried out Matching, the IP network section of the node of tree structure A is specially matched, can obtain with the IP network section of the node of tree structure B To two as a result, i.e. 1, tree structure A has identical IP network section node: China's Telecommunication with tree structure B jointly owned four Node, China Mobile's node, East China mobile node, Shanghai Mobile's node.2, distinctive two nodes of tree structure A: China's electricity Believe node and East China telecommunications node.Distinctive two nodes of tree structure B: China Railway Telecom's node and south China Tie Tong node.
The server access address of the first node of the matching is added to the second node of the matching by step 410.
In this step, referring to Fig. 5, solid box was represented by dispatcher's active distribution server access address, dotted line frame generation Table is conducted automatically by the transport properties of tree structure and is added server access address.For tree structure A and tree structure B Jointly owned four nodes: China's Telecommunication's node, China Mobile's node, East China mobile node, Shanghai Mobile's node.Tree-like knot Four nodes in structure B can directly inherit the server access address a and b of four same nodes in tree structure A, greatly The cumbersome degree of distribution to the corresponding model of tree structure B is reduced greatly.
Step 411 does not match the second node distribution server access address to described.
In this step, referring to Fig. 5, for distinctive two nodes of tree structure B: China Railway Telecom's node and south China Tie Tong Node then can carry out the distribution of corresponding server access address, such as distribute it specifically by dispatcher according to actual needs Server access address d.
The second user access request and second distribution model that step 412, basis receive determine that described second uses Corresponding to the second IP network section of the second IP network section of target and the target belonging to the IP address that family access request includes Destination server access address.
Specifically, the implementation of this step is similar with above-mentioned steps 406, it is referred to above-mentioned steps 406 to realize, originally This will not be repeated here for inventive embodiments.
Step 413 adds the destination server access address in the response for the second user access request.
Specifically, the implementation of this step is similar with above-mentioned steps 407, it is referred to above-mentioned steps 407 to realize, originally This will not be repeated here for inventive embodiments.
Optionally, in an implementation of the embodiment of the present invention, business service is deployed in first node Device;After step 405, can also include:
Step 414, in first node, overload the first node if it exists, then it is described overload the first node brother In younger brother's node, first node of scheduling is chosen, and by the server access address of the first node of the scheduling, is added to described Overload the first node.
Wherein, the load value for the service server disposed in the first node of the overload is greater than or equal to the first default threshold Value, the load value for dispatching the service server disposed in the first node is less than the second preset threshold.
In this step, under normal circumstances, service server can be deployed in the first node, and the first node is assigned The server access address of the service server, so that user accesses, but due to the hardware performance of service server Limitation, may exist first node of overload, overload the first node in service server load value it is excessive, this when It waits, needs the server access address in the first node of the overload being changed to other services for loading normal service server Device access address, business is normally carried out in the geographic area to guarantee first node.
It such as, can be Shandong connection knot when finding all service server load excessives of Shandong connection referring to Fig. 3 The server access address of the service server of point distribution Jiangsu connection, so that the user in Shandong can join temporarily by Jiangsu Logical service server machine carries out business access, reduce this province service server load excessive and caused by loss of communications, work as mountain When the service server load restoration of eastern connection is normal, its original server access address can be restored.
In conclusion the distribution method of server access address provided in an embodiment of the present invention, comprising: establish the first distribution Model includes multiple first nodes in the first distribution model, and multiple first nodes form tree structures, and each first node includes First Internet protocol IP network section;The first node of target is chosen from the first node;According to the first IP network of the first node of target Section is the first node of target distribution server access address;If the first node of target has child node, it is directed in child node and does not divide Untreated child node with server access address, by the server access apart from untreated child node apart from nearest father node Address, distributes to untreated child node, and the tree structure that the present invention is formed according to multiple first nodes utilizes in tree structure Parent-child structure relationship between one node, so that after for father's the first node distribution server access address, for this The first node of son of the first node of father, can automatically by the server access address of the father node nearest apart from first node of son, First node of son is distributed to, therefore, present invention utilizes the transmission characteristics between father-child node in tree structure, to father node The server access address of distribution can be distributed automatically into the child node of the father node, avoid and carry out respectively to each node The batch operation of server access address reduces manpower to reduce the cumbersome degree of server access address batch operation And time cost, allocative efficiency is improved, and then improve dispatching efficiency.In addition, it is directed to newly-established second distribution model, it can To match the second IP network section in the second distribution model with the first IP network section of the first distribution model, so that the second node The server access address that first node can be directly inherited from identical first node of IP network section is greatly reduced to The batch operation fussy degree of two distribution models.
Fig. 6 is a kind of block diagram of the distributor of server access address provided in an embodiment of the present invention, as shown in fig. 6, The device 60 may include:
First establishes module 604, includes multiple first knots in first distribution model for establishing the first distribution model Point, the multiple first node form tree structure, and each first node includes the first Internet protocol IP network section;
Module 602 is chosen, for choosing the first node of target from first node;
First distribution module 603 is first knot of target for the first IP network section according to first node of target Point distribution server access address;
Optionally, the first distribution module 603,
First divides submodule, for dividing multiple first IP network sections according to preset IP address library;
First setting up submodule for establishing first distribution model, and first IP network section is added to described The first node in first distribution model.
Strategy inherits module 604, if having child node for first node of target, is directed in the child node and does not divide Untreated child node with the server access address, by the clothes apart from the untreated child node apart from nearest father node Business device access address, distributes to the untreated child node.
Optionally, described device further include:
Scheduler module, described in determining according to the first user access request and first distribution model received The first IP network section of target belonging to the IP address that first user access request includes and the first IP network section of target institute Corresponding destination server access address;
Optionally, the scheduler module, comprising:
Submodule is generated, for the child node in first node of target, it is corresponding to be added to first node of target Server access address after, generate the distribution file of first distribution model, the distribution file includes the first IP The corresponding relationship of network segment and the server access address;
Submodule is dispatched, for when receiving first user access request, by first user access request Including IP address matched with the corresponding relationship, determine the first IP network of target belonging to the IP address Destination server access address corresponding to section and the first IP network section of the target.
First respond module, for adding the destination server in the response for first user access request Access address.
Optionally, service server is deployed in first node;Described device further include:
Processing module is overloaded, for overloading the first node if it exists in first node, then in the overload first In the sibling of node, first node of scheduling is chosen, and by the server access address of the first node of the scheduling, is added Add to the first node of the overload;
Wherein, the load value for the service server disposed in the first node of the overload is greater than or equal to the first default threshold Value, the load value for dispatching the service server disposed in the first node is less than the second preset threshold.
Optionally, described device further include:
Second establishes module, includes multiple second nodes in second distribution model for establishing the second distribution model, The multiple second node forms tree structure, and each second node includes the second IP network section;
Matching module determines the first knot of matching for the matching according to second IP network section and first IP network section Point matches the second node and does not match the second node;
Mapping block, for the server access address of the first node of the matching to be added to the second knot of the matching Point;
Second distribution module, for not matching the second node distribution server access address to described;
Wherein, the first IP network section of the first node of the matching is identical as matching second IP network section of the second node, Second IP network section for not matching the second node and first IP network section for matching the first node be not identical.
In conclusion the distributor of server access address provided in an embodiment of the present invention, comprising: establish the first distribution Model includes multiple first nodes in the first distribution model, and multiple first nodes form tree structures, and each first node includes First Internet protocol IP network section;The first node of target is chosen from the first node;According to the first IP network of the first node of target Section is the first node of target distribution server access address;If the first node of target has child node, it is directed in child node and does not divide Untreated child node with server access address, by the server access apart from untreated child node apart from nearest father node Address, distributes to untreated child node, and the tree structure that the present invention is formed according to multiple first nodes utilizes in tree structure Parent-child structure relationship between one node, so that after for father's the first node distribution server access address, for this The first node of son of the first node of father, can automatically by the server access address of the father node nearest apart from first node of son, First node of son is distributed to, therefore, present invention utilizes the transmission characteristics between father-child node in tree structure, to father node The server access address of distribution can be distributed automatically into the child node of the father node, avoid and carry out respectively to each node The batch operation of server access address reduces manpower to reduce the cumbersome degree of server access address batch operation And time cost, allocative efficiency is improved, and then improve dispatching efficiency.
For above-mentioned apparatus embodiment, since it is basically similar to the method embodiment, so be described relatively simple, The relevent part can refer to the partial explaination of embodiments of method.
Preferably, the embodiment of the present invention also provides a kind of terminal, including processor, and memory stores on a memory simultaneously The computer program that can be run on the processor, the computer program realize above-mentioned server access when being executed by processor Each process of the distribution method embodiment of address, and identical technical effect can be reached, it is no longer superfluous here to avoid repeating It states.
The embodiment of the present invention also provides a kind of computer readable storage medium, and meter is stored on computer readable storage medium Calculation machine program, the computer program realize each of the distribution method embodiment of above-mentioned server access address when being executed by processor A process, and identical technical effect can be reached, to avoid repeating, which is not described herein again.Wherein, described computer-readable to deposit Storage media, such as read-only memory (Read-Only Memory, abbreviation ROM), random access memory (Random Access Memory, abbreviation RAM), magnetic or disk etc..
All the embodiments in this specification are described in a progressive manner, the highlights of each of the examples are with The difference of other embodiments, the same or similar parts between the embodiments can be referred to each other.
It would have readily occurred to a person skilled in the art that: any combination application of above-mentioned each embodiment is all feasible, therefore Any combination between above-mentioned each embodiment is all embodiment of the present invention, but this specification exists as space is limited, This is not just detailed one by one.
Provided herein the distribution method of server access address not with any certain computer, virtual system or other Equipment is inherently related.Various general-purpose systems can also be used together with teachings based herein.As described above, construction tool Structure required by the system of the present invention program is obvious.In addition, the present invention is not also directed to any certain programmed language Speech.It should be understood that can use various programming languages realizes summary of the invention described herein, and above to language-specific The description done is in order to disclose the best mode of carrying out the invention.
In the instructions provided here, numerous specific details are set forth.It is to be appreciated, however, that implementation of the invention Example can be practiced without these specific details.In some instances, well known method, structure is not been shown in detail And technology, so as not to obscure the understanding of this specification.
Similarly, it should be understood that in order to simplify the present invention and help to understand one or more of the various inventive aspects, Above in the description of exemplary embodiment of the present invention, each feature of the invention is grouped together into single implementation sometimes In example, figure or descriptions thereof.However, the disclosed method should not be interpreted as reflecting the following intention: i.e. required to protect Shield the present invention claims features more more than feature expressly recited in each claim.More precisely, such as right As claim reflects, inventive aspect is all features less than single embodiment disclosed above.Therefore, it then follows tool Thus claims of body embodiment are expressly incorporated in the specific embodiment, wherein each claim conduct itself Separate embodiments of the invention.
Those skilled in the art will understand that can be carried out adaptively to the module in the equipment in embodiment Change and they are arranged in one or more devices different from this embodiment.It can be the module or list in embodiment Member or component are combined into a module or unit or component, and furthermore they can be divided into multiple submodule or subelement or Sub-component.Other than such feature and/or at least some of process or unit exclude each other, it can use any Combination is to all features disclosed in this specification (including adjoint claim, abstract and attached drawing) and so disclosed All process or units of what method or apparatus are combined.Unless expressly stated otherwise, this specification is (including adjoint power Benefit require, abstract and attached drawing) disclosed in each feature can carry out generation with an alternative feature that provides the same, equivalent, or similar purpose It replaces.
In addition, it will be appreciated by those of skill in the art that although some embodiments described herein include other embodiments In included certain features rather than other feature, but the combination of the feature of different embodiments mean it is of the invention Within the scope of and form different embodiments.For example, in detail in the claims, embodiment claimed it is one of any Can in any combination mode come using.
Various component embodiments of the invention can be implemented in hardware, or to run on one or more processors Software module realize, or be implemented in a combination thereof.It will be understood by those of skill in the art that can be used in practice Microprocessor or digital signal processor (DSP) realize the distribution side of server access address according to an embodiment of the present invention The some or all functions of some or all components in method.The present invention is also implemented as described here for executing Method some or all device or device programs (for example, computer program and computer program product).This The program that the realization of sample is of the invention can store on a computer-readable medium, or can have one or more signal Form.Such signal can be downloaded from an internet website to obtain, and perhaps be provided on the carrier signal or with any other Form provides.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and ability Field technique personnel can be designed alternative embodiment without departing from the scope of the appended claims.In the claims, Any reference symbol between parentheses should not be configured to limitations on claims.Word "comprising" does not exclude the presence of not Element or step listed in the claims.Word "a" or "an" located in front of the element does not exclude the presence of multiple such Element.The present invention can be by means of including the hardware of several different elements and being come by means of properly programmed computer real It is existing.In the unit claims listing several devices, several in these devices can be through the same hardware branch To embody.The use of word first, second, and third does not indicate any sequence.These words can be explained and be run after fame Claim.

Claims (13)

1. a kind of distribution method of server access address, which is characterized in that the described method includes:
The first distribution model is established, includes multiple first nodes in first distribution model, the multiple first node is formed Tree structure, each first node include the first Internet protocol IP network section;
The first node of target is chosen from first node;
It is the first node of target distribution server access address according to the first IP network section of first node of target;
If first node of target has child node, not for the unallocated server access address in the child node Child node is handled, the server access address apart from the untreated child node apart from nearest father node is distributed to described Untreated child node.
2. the method according to claim 1, wherein it is described will be apart from the untreated child node distance recently Father node server access address, after distributing to the untreated child node, further includes:
According to the first user access request and first distribution model received, the first user access request packet is determined Destination server corresponding to the first IP network section of the first IP network section of target and the target belonging to the IP address included is visited Ask address;
The destination server access address is added in the response for first user access request.
3. according to the method described in claim 2, it is characterized in that, the first user access request that the basis receives and institute The first distribution model is stated, determines the first IP network section of target belonging to IP address that first user access request includes, And destination server access address corresponding to first IP network section of target, comprising:
The distribution file of first distribution model is generated, the distribution file includes first IP network section and the server The corresponding relationship of access address;
The IP address for including by first user access request when receiving first user access request and institute It states corresponding relationship to be matched, determines the first IP of the first IP network section of target and the target belonging to the IP address Destination server access address corresponding to network segment.
4. the method according to claim 1, wherein being deployed with service server in first node;
The server access address by apart from the untreated child node apart from nearest father node is distributed to and described is not located After reason child node, further includes:
In first node, the first node is overloaded if it exists, then in the sibling of the first node of the overload, is chosen One the first node of scheduling, and by the server access address of the first node of the scheduling, it is added to the first node of the overload;
Wherein, the load value for the service server disposed in the first node of the overload is greater than or equal to the first preset threshold, institute The load value for the service server disposed in the first node of scheduling is stated less than the second preset threshold.
5. the method according to claim 1, wherein it is described will be apart from the untreated child node distance recently Father node server access address, after distributing to the untreated child node, further includes:
The second distribution model is established, includes multiple second nodes in second distribution model, the multiple second node is formed Tree structure, each second node include the second IP network section;
According to the matching of second IP network section and first IP network section, determine the first node of matching, the second node of matching and The second node is not matched;
The server access address of the first node of the matching is added to the second node of the matching;
The second node distribution server access address is not matched to described;
Wherein, the first IP network section of the first node of the matching is identical as matching second IP network section of the second node, described The second IP network section and first IP network section for matching the first node for not matching the second node be not identical.
6. the method according to claim 1, wherein described establish the first distribution model, comprising:
According to preset IP address library, multiple first IP network sections are divided;
First distribution model is established, and first IP network section is added to the first knot in first distribution model Point.
7. a kind of distributor of server access address, which is characterized in that described device includes:
First establishes module, includes multiple first nodes in first distribution model for establishing the first distribution model, described Multiple first nodes form tree structure, and each first node includes the first Internet protocol IP network section;
Module is chosen, for choosing the first node of target from first node;
First distribution module is distributed for the first IP network section according to first node of target for first node of target Server access address;
Strategy inherits module, if having child node for first node of target, for unallocated described in the child node The untreated child node of server access address visits the server apart from the untreated child node apart from nearest father node It asks address, distributes to the untreated child node.
8. device according to claim 7, which is characterized in that described device further include:
Scheduler module, for determining described first according to the first user access request and first distribution model received Corresponding to the first IP network section of the first IP network section of target and the target belonging to the IP address that user access request includes Destination server access address;
First respond module, for adding the destination server access in the response for first user access request Address.
9. device according to claim 8, which is characterized in that the scheduler module, comprising:
It generates submodule and is added to the corresponding clothes of first node of target for the child node in first node of target It is engaged in after device access address, generates the distribution file of first distribution model, the distribution file includes first IP network section With the corresponding relationship of the server access address;
Submodule is dispatched, for including by first user access request when receiving first user access request IP address matched with the corresponding relationship, determine the first IP network section of target belonging to the IP address, with And destination server access address corresponding to first IP network section of target.
10. device according to claim 7, which is characterized in that be deployed with service server in first node;Institute State device further include:
Processing module is overloaded, for overloading the first node if it exists, then in the first node of the overload in first node Sibling in, choose first node of scheduling, and by the server access address of the first node of the scheduling, be added to The first node of the overload;
Wherein, the load value for the service server disposed in the first node of the overload is greater than or equal to the first preset threshold, institute The load value for the service server disposed in the first node of scheduling is stated less than the second preset threshold.
11. device according to claim 7, which is characterized in that described device further include:
Second establishes module, includes multiple second nodes in second distribution model for establishing the second distribution model, described Multiple second nodes form tree structure, and each second node includes the second IP network section;
Matching module, for the matching according to second IP network section and first IP network section, determine the first node of matching, The second node is not matched with the second node and;
Mapping block, for the server access address of the first node of the matching to be added to the second node of the matching;
Second distribution module, for not matching the second node distribution server access address to described;
Wherein, the first IP network section of the first node of the matching is identical as matching second IP network section of the second node, described The second IP network section and first IP network section for matching the first node for not matching the second node be not identical.
12. device according to claim 7, which is characterized in that first distribution module,
First divides submodule, for dividing multiple first IP network sections according to preset IP address library;
First setting up submodule is added to described first for establishing first distribution model, and by first IP network section The first node in distribution model.
13. a kind of computer readable storage medium, which is characterized in that store computer journey on the computer readable storage medium Sequence realizes point of the server access address as described in claim 1 to 6 is any when the computer program is executed by processor Method of completing the square.
CN201910127233.0A 2019-02-20 2019-02-20 Server access address allocation method and device and computer readable storage medium Active CN109862131B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910127233.0A CN109862131B (en) 2019-02-20 2019-02-20 Server access address allocation method and device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910127233.0A CN109862131B (en) 2019-02-20 2019-02-20 Server access address allocation method and device and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN109862131A true CN109862131A (en) 2019-06-07
CN109862131B CN109862131B (en) 2022-03-04

Family

ID=66898374

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910127233.0A Active CN109862131B (en) 2019-02-20 2019-02-20 Server access address allocation method and device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN109862131B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114244805A (en) * 2021-11-08 2022-03-25 网宿科技股份有限公司 Domain name configuration method and device

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060184662A1 (en) * 2005-01-25 2006-08-17 Nicolas Rivierre Method and system of administration in a JMX environment comprising an administration application and software systems to be administered
CN101060428A (en) * 2006-04-22 2007-10-24 深圳市瑞福特信息技术有限公司 A P2P network dispatching method
CN102395126A (en) * 2011-11-14 2012-03-28 常熟理工学院 Mobile Ad hoc network address configuration realization method based on tree structure
CN103338274A (en) * 2013-05-15 2013-10-02 中国科学技术大学苏州研究院 Routing-oriented address assignment method in tree-shaped ubiquitous network
CN103825837A (en) * 2014-02-19 2014-05-28 上海视云网络科技有限公司 Node load distributed CDN global scheduling method
US20160249400A1 (en) * 2015-02-24 2016-08-25 Intel Corporation Methods and apparatuses associated with reestablishment of a network connection with a child node
CN106612200A (en) * 2015-10-27 2017-05-03 成都鼎桥通信技术有限公司 Distributed network architecture and dispatching method of distributed network architecture
CN107124479A (en) * 2017-04-19 2017-09-01 成都西维数码科技有限公司 A kind of domain name multi-line intelligently parsing method based on radix tree
CN108289086A (en) * 2017-01-10 2018-07-17 阿里巴巴集团控股有限公司 Request processing method and device, server
CN108965372A (en) * 2017-12-20 2018-12-07 北京视联动力国际信息技术有限公司 A kind of service scheduling method and device

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060184662A1 (en) * 2005-01-25 2006-08-17 Nicolas Rivierre Method and system of administration in a JMX environment comprising an administration application and software systems to be administered
CN101060428A (en) * 2006-04-22 2007-10-24 深圳市瑞福特信息技术有限公司 A P2P network dispatching method
CN102395126A (en) * 2011-11-14 2012-03-28 常熟理工学院 Mobile Ad hoc network address configuration realization method based on tree structure
CN103338274A (en) * 2013-05-15 2013-10-02 中国科学技术大学苏州研究院 Routing-oriented address assignment method in tree-shaped ubiquitous network
CN103825837A (en) * 2014-02-19 2014-05-28 上海视云网络科技有限公司 Node load distributed CDN global scheduling method
US20160249400A1 (en) * 2015-02-24 2016-08-25 Intel Corporation Methods and apparatuses associated with reestablishment of a network connection with a child node
CN106612200A (en) * 2015-10-27 2017-05-03 成都鼎桥通信技术有限公司 Distributed network architecture and dispatching method of distributed network architecture
CN108289086A (en) * 2017-01-10 2018-07-17 阿里巴巴集团控股有限公司 Request processing method and device, server
CN107124479A (en) * 2017-04-19 2017-09-01 成都西维数码科技有限公司 A kind of domain name multi-line intelligently parsing method based on radix tree
CN108965372A (en) * 2017-12-20 2018-12-07 北京视联动力国际信息技术有限公司 A kind of service scheduling method and device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114244805A (en) * 2021-11-08 2022-03-25 网宿科技股份有限公司 Domain name configuration method and device
CN114244805B (en) * 2021-11-08 2023-10-03 网宿科技股份有限公司 Domain name configuration method and device

Also Published As

Publication number Publication date
CN109862131B (en) 2022-03-04

Similar Documents

Publication Publication Date Title
CN102334111B (en) Providing logical networking functionality for managed computer networks
CN102857370B (en) A kind of method of Resources allocation and device
CN107580083A (en) A kind of method and system of container IP address distribution
CN103051564B (en) The method and apparatus of dynamic resource allocation
CN102902780B (en) A kind of uniform resource position mark URL dynamic matching method and device
CN103384255B (en) The load-balancing method of cluster virtual machine, server and system
CN106790660A (en) A kind of dispositions method and device for realizing distributed memory system
CN103596066B (en) Method and device for data processing
CN104717081B (en) The implementation method and device of a kind of gateway function
CN103324535B (en) Method and device for allocating computing resources
CN108255497A (en) The dispositions method and device of a kind of application
CN107911470A (en) Distributed dynamic load-balancing method, computing device and computer-readable storage medium
CN106301829A (en) A kind of method and apparatus of Network dilatation
US10042676B1 (en) Capacity pool health index
CN103607424B (en) Server connection method and server system
CN108924268A (en) A kind of container cloud service system and pod creation method, device
CN103501358B (en) A kind of domain name trustship management method and device
CN109995842B (en) Grouping method and device for distributed server cluster
CN107819891A (en) Data processing method, device, computer equipment and storage medium
CN103685583A (en) Method and system for resolving domain names
CN106790692A (en) A kind of load-balancing method and device of many clusters
CN106953945A (en) Domain name intelligently parsing method and device, server based on SDN realizations
CN106209402A (en) The telescopic method of a kind of virtual network function and equipment
CN111970337B (en) P2P network communication construction method, system, medium and terminal under cross-cloud environment
CN106031100A (en) Service link deployment method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant