CN109672758A - Address distribution method, access server and computer storage medium - Google Patents
Address distribution method, access server and computer storage medium Download PDFInfo
- Publication number
- CN109672758A CN109672758A CN201710953478.XA CN201710953478A CN109672758A CN 109672758 A CN109672758 A CN 109672758A CN 201710953478 A CN201710953478 A CN 201710953478A CN 109672758 A CN109672758 A CN 109672758A
- Authority
- CN
- China
- Prior art keywords
- address
- link
- address field
- terminal
- access
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/50—Address allocation
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/2854—Wide area networks, e.g. public data networks
- H04L12/2856—Access arrangements, e.g. Internet access
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The embodiment of the present invention provides a kind of address distribution method, access server and computer storage medium, by when detecting access server by a certain link and receiving the access request of terminal, address field corresponding with the link is inquired from preset address resource pond, the mapping relations of the corresponding address field of each link are stored in address resource pond, continuous address is contained at least two in each address field, then the target communication address being in idle condition is extracted from the address field inquired is handed down to terminal, so when a chain road is connected with multiple terminals, since the corresponding address of these terminals is extracted from the corresponding address field of the link, and the address in an address field is continuous, so the address in this way for the terminal distribution under same link just compares concentration, this Sample is all more favorable for carrying out these terminals the management in Unified Set during subsequent network communication.
Description
Technical field
The present invention relates to communication technique fields more particularly to a kind of address distribution method, access server and computer to deposit
Storage media.
Background technique
In existing access network technology, when user terminal needs to surf the Internet, user terminal is connect by what operator provided
Incoming link sends access, certification request to operator's access server, and access server is receiving user's access request, completing
Address is distributed for user terminal after access process, terminal can access internet by carrier network after being successfully accessed.
Currently, existing access server is often the random address idle for user terminal distribution, when multiple user terminals are logical
When crossing the access of access server same communication link, it is possible to cause the user terminal accessed on the communication link communicatively
Location is more dispersed, is thus highly detrimental to be managed user terminal.Especially, for two-node cluster hot backup network, if access
Server is randomly the idle address of user terminal distribution, is also not easy in the active and standby role switching when progress of access link
Route test, for example, the access link for being currently at main working condition generates switching for some reason, at this time with the backup of the link association
Link is main working condition, since the address of the user terminal connected on former main access link is more dispersed, if using working as
Access server where preceding main access link notices the user terminal communication switched under the access link to upper layer device
Address routing is just highly detrimental to carry out unified routing publication or routing priority adjustment.
Summary of the invention
Address distribution method, access server and computer storage medium provided in an embodiment of the present invention, mainly solve
Technical problem is when user terminal requests access network, and existing access server is that user terminal distributes communicatively at random
The corresponding address dispersion of the user terminal of same chain road connection is caused in location, is not easy to system to same chain road
Multiple user terminals the problem of being managed collectively.
In order to solve the above technical problems, the embodiment of the present invention provides a kind of address distribution method, comprising:
When detecting that access server receives the access request of terminal by a certain link, from preset address resource pond
It is middle to inquire address field corresponding with the link, reflecting for the corresponding address field of each link is stored in the address resource pond
Relationship is penetrated, contains at least two continuous address in each address field;
The target communication address being in idle condition is extracted from the address field inquired is handed down to the terminal.
The embodiment of the present invention also provides a kind of access server, comprising: processor, memory and communication bus;
The communication bus is for realizing the connecting communication between the processor and the memory;
The processor is for executing one or more program stored in the memory, to realize location as described above
The step of distribution method.
The embodiment of the present invention also provides a kind of computer storage medium, be stored in the computer storage medium one or
The multiple programs of person, one or more of programs can be executed by one or more processor, to realize location point as described above
The step of method of completing the square.
The beneficial effects of the present invention are:
Address distribution method, access server and the computer storage medium provided according to embodiments of the present invention, passes through inspection
When measuring a certain link of access server and receiving the access request of terminal, inquiry and the link from preset address resource pond
Corresponding address field, is stored with the mapping relations of the corresponding address field of each link in address resource pond, in each address field
Continuous address is contained at least two, the target communication being in idle condition then is extracted from the address field inquired
Terminal is handed down in address, since each link has its corresponding address field, and two has all been included at least in each address field
Continuous address, so when a chain road is connected with multiple terminals, all due to the corresponding address of these terminals
Be extracted from the corresponding address field of the link, and the address in an address field is continuous, so this
Sample just compares concentration for the address of the terminal distribution under same link, in this way, during subsequent network communication, or
In the link failure, all it is more favorable for carrying out these terminals the management in Unified Set.
Detailed description of the invention
Fig. 1 is the flow diagram of address distribution method in the embodiment of the present invention one;
Fig. 2 is the flow diagram of address distribution method in the embodiment of the present invention two;
Fig. 3 is the first schematic diagram of address distribution in network system in the embodiment of the present invention two;
Fig. 4 is the second schematic diagram of address distribution in network system in the embodiment of the present invention two;
Fig. 5 is the first structure diagram of address distributing device in the embodiment of the present invention three;
Fig. 6 is the second structural schematic diagram of address distributing device in the embodiment of the present invention three;
Fig. 7 is the third structural schematic diagram of address distributing device in the embodiment of the present invention three;
Fig. 8 is the structural schematic diagram of access server in the embodiment of the present invention four.
Specific embodiment
In order to make the objectives, technical solutions, and advantages of the present invention clearer, below by specific embodiment knot
Attached drawing is closed to be described in further detail the embodiment of the present invention.It should be appreciated that specific embodiment described herein is only used to
It explains the present invention, is not intended to limit the present invention.
Embodiment one:
It, should when user terminal requests access the link under a certain access server in order to solve in existing access net
Access server can distribute address at random for user terminal, cause the user terminal under same link corresponding communicatively
Location dispersion, leads to that the user terminal under this link can not be carried out in subsequent network communication asking for unified centralized management
Topic, the embodiment of the present invention provide a kind of address distribution method, specifically may refer to shown in Fig. 1, comprising:
S101: when detecting that access server currently receives the access request of terminal by a certain link, from preset
Address field corresponding with the link is inquired in address resource pond.
The mapping relations of the corresponding address field of each link are stored in address resource pond in the present embodiment, eachly
Continuous address is contained at least two in the section of location.It should be understood that step S101 can be executed by access server, this
When access server can detect the access request whether link under itself receives terminal, in addition, step S101 can also be by
Other servers execute, and the server is independently of access server described in step S101, for example, network server X
Link under access server can be detected, judge whether the link under the access server receives the access of terminal
Request.
Wherein, each link can correspond to an address field, can also correspond to multiple address fields, for an address field
Speech, wherein may include multiple continuous addresses, for example, can be 10,20 etc..It should be noted that this reality
The mapping relations for applying the corresponding address field of each link in example in address resource pond can be set in advance by network management personnel
It sets, and can be modified by network management personnel to it in subsequent communication process, network management personnel is being each
When its corresponding address field of link setting, it can be configured according to the number of users that each link can respectively carry, for example,
If the number of users that a certain link can carry is larger, the quantity phase for the address for including in the corresponding address field of the link
Can be larger than the quantity in the corresponding address of other links, in order to enable the corresponding communication of terminal under same link
Address is more concentrated, and only can be correspondingly arranged an address field in advance for each link, be may include multiple companies in the address field
Continuous address.
In addition, the mapping relations of the corresponding address field of each link stored in address resource pond can be and directly reflect
Relationship is penetrated, for example, direct associated storage directly can be carried out for the corresponding address field of each link and the link, but is being had
In a little situations, such as in active/standby backup access network, can there is a situation where that the corresponding address field of multiple links is identical, at this point,
It can also be correspondence other than it the corresponding address field of each link and the link directly can be carried out direct associated storage
This identical one mapping relations of multiple link establishments of address field, so at this time can be only by a chain in this multiple link
The corresponding address field in road carries out direct associated storage.It, can be with for example, link A address field corresponding with link A ' is identical
Understand, link A at this time and link A ' should main/slave link each other, can by link A and link A ' together with it is corresponding
Address field is associated storage, or the corresponding address field of link A can also be associated storage, while storing link
The mapping relations of A and link A '.
S102: the target communication address being in idle condition is extracted from the address field inquired and is handed down to terminal.
It should be understood that can be received simultaneously multiple in step S101 for a certain link under access server
The access request of terminal, at this point, shoulding be each terminal inquires corresponding with link address field, and from the ground inquired
Target communication address, which is extracted, in the section of location is handed down to these terminals for issuing access request respectively.Executing subject in step S102
Can namely step S102 identical as the executing subject in step S101 can be executed by access server, can also be by other
Server execute.
It should be noted that address distribution method provided by the embodiment of the present invention can be adapted for arbitrary network, for example,
It can be adapted for common single machine access network (network of no backup server), be readily applicable to active/standby backup access net
Network, and active/standby backup access network can be based on and VRRP (Virtual Router Redundancy Protocol, virtual road
By redundancy protocol) downlink data of similar any protocol forward terminal, so-called active/standby backup network refers to each access service
All there is the backup link being associated in the current ink under device, and current ink is under the jurisdiction of different accesses from backup link and takes
Business device.If there is failure in current ink, the terminal being connected on current ink can be moved on backup link namely this
When terminal can pass through backup link and top service device interaction data, it should be noted that current ink is there may be multiple
The backup link being associated can be from this multiple backup link when moving to the terminal on current ink on backup link
In preferentially select the higher backup link of priority as carry these terminals link, at this point, current ink can be from main work
State is switched to idle state and becomes backup link, and backup link selected accordingly will be switched to by idle state
Main working condition and become current ink.
In access net, since user terminal is often to issue access request in the form of broadcast, so in the free time
The link of state (Status of Backups) may also can receive the access request of user, so in step S101, from presetly
Can also include: before inquiring address field corresponding with the link in the resource pool of location
Determine that the link under the access server is in main working condition.
After main working condition being in determining the link under the access server, then from preset geological resource pond
It is middle to inquire address field corresponding with the link, however, it is determined that the link is in main working condition, that is to say, bright and the link association
Backup link just should be at idle state at this time, if so other backup links also receive the access request of terminal at this time,
The access request received can be determined as in vain by the access server where other backup links, or can also directly by
The access request abandons.
It is handed down to it should be noted that extracting the target communication address being in idle condition from the address field inquired
Can also include: before terminal
It determines that the quantity of the address being in idle condition in the address field that inquires is more than or equal to be currently received
The quantity of access request.
In some embodiments, however, it is determined that the quantity for the address being in idle condition in the address field inquired is less than
When the quantity for the access request being currently received, new address field application request can be issued for the link, and obtain in the link
When to new address field, the target communication address being in idle condition is extracted from new address field and is handed down to terminal;In addition,
Can also start timing issuing new address field application request, if after preset time arrival the link still have not been obtained it is new
Address field can be sent out alarm notification, to prompt network management personnel.
Because can unify when access server currently receives the access request of multiple terminals by a certain link
Address field corresponding with the link is inquired from preset address resource pond, however, it is determined that in idle shape in the address field inquired
The quantity of the address of state is more than or equal to the quantity for the access request being currently received, then illustrates in address field to include enough
Address, can satisfy this sub-distribution, it is possible to directly from the address field inquired be respectively each access ask
It asks corresponding terminal to extract its corresponding target communication address and issues, however, it is determined that be in idle condition in the address field inquired
The quantity of address be less than the quantity of access request being currently received, then illustrate the ground being correspondingly arranged in advance for the link
Location section, which is not able to satisfy, this time distributes, and can issue new address field application request at this time, certainly, issue new address field application when
Wait, if current queries to address field in there is also the address being in idle condition, these directly can be in sky
The address of not busy state is handed down to each terminal respectively, then can be from new address when the link gets new address field
Target communication address is extracted in section and is handed down to the terminal for receiving address not yet, and in other words, this issues access
A part of terminal corresponding address of request can be to be obtained from new address field, is also possible to from being in advance the chain
It is obtained in the address field that road is correspondingly arranged.
It should be noted that can include by the address field that a certain link is correspondingly arranged in advance in some embodiments
An amount threshold is arranged in address, for example, in the quantity for detecting the address being in idle condition in the address field
When less than the preset quantity threshold value, alarm prompt can be issued to network administrator, to remind network administrator note that needing to infuse
Meaning can just be the new address field of the link application, apply for that the movement promoter of new address field can be the chain at this moment
Access server where road, is also possible to network management personnel, this new address field can be the corresponding place of other links
In the address field of idle state, it is also possible to an address field in advance for the link reserves.It of courses, new Shen in the present embodiment
It should also be as containing at least two continuous address in address field please.
In the present embodiment, when a certain link at least corresponds to two available address sections, when being stored with this in the resource pool of address
The mapping relations of link and at least two available address sections, and when each available address section carries pre-set priority mark, from looking into
Extracting the target communication address being in idle condition in the address field ask and being handed down to terminal to include:
The higher address field of priority is selected from available address section with carrying out target communication according to pre-set priority mark
The extraction of location.
It is understood that above-mentioned available address section is from the address field being correspondingly arranged in advance for the link.Certainly,
In some cases, a certain link at least correspond to two available address fields when, these available address fields be also possible to for
The address field that the link is newly applied, at this point, being exactly to extract the target being in idle condition from the address field of these new applications
Address is handed down to each terminal.
It should be noted that no matter the corresponding available address section of a certain link derives from where, as long as can land used from this
The extraction of target communication address is carried out in the section of location, so that it may extract according to following principle:
When the address in this multiple available address section is all in idle state, can at random from this it is multiple can land used
One is selected in the section of location as the current destination address section for extracting target communication address, it is of course also possible to according to preset preferential
Grade sequential selection destination address section, it is notable that, should be first when the link receives the access request of terminal again
Judge whether there is also the addresses being in idle condition in current destination address section, if it is not, reselecting new target
Otherwise address field carries out the selection of address out of current destination address section again.
Network is accessed for active/standby backup, address distribution method provided by the present embodiment can also include: to detect
When a certain link first time access terminal in access server, the access server where the link can upward stratum server
The corresponding address field routing of the link is sent, includes the corresponding address field of the link, such top service device in address field routing
It can be determined according to the sender that address field routes when carrying out data interaction with the terminal under this address field, it should logical
The forwarding which access server carries out data is crossed, since the link is in first time access terminal, connecing where the link
Entering server is that upward stratum server is put on record as unit of address field, so for the link, at current time
There is terminal to access the link again later, and there is also the addresses being in idle condition in the corresponding address field of the link
When, since upward stratum server has sent the address field to access server before, so at this point, access server is also with regard to nothing
Putting on record for address need to be carried out by stratum server again up, because the address belongs to the address field put on record, namely
Access server where the link only needs to send an address field when the link is initially used, without at this
One address is sent with regard to upward stratum server when link one terminal of every access, compares and is convenient for managing concentratedly.Also need
It is noted that in some embodiments, can also just first pass through in advance access service before the link first time access terminal
The upward stratum server of device puts the routing of address field corresponding to the link on record.
Address distribution method provided by the present embodiment can also include:
When detecting that the main working condition of a certain chain routing in access server is switched to idle state, due to the link
It is in main working condition before, so the link inevitable stratum server upwards when being used first time has sent address field road
By so the access server where the link stratum server can send the link corresponding address field routing and remove upwards at this time
Pin notice, should with cancel that the upward stratum server when the link is used for the first time of the access server where the link sends
The corresponding address field of link routes, and includes the corresponding address field of the link in address field routing.
Or,
When detecting that the main working condition of a certain chain routing in access server is switched to idle state, where the link
Access server routing priority reduction flag added be sent to top service in the link corresponding address field routing
Device, address field routing in include the corresponding address field of the link, in this way, upper layer device can select which is used according to priority
One access server carries out the forwarding of data.It should be noted that it is single that access server, which is with address field, in the present embodiment
The upward stratum server in position is put on record, and that is to say reduces the unified addition of mark on address field for priority, that is to say uniformly
The adjustment of priority has been carried out to the address in the address field, has been carried out respectively compared to each scattered address
For adjustment, control, the adjustment of priority with raising efficiency, can be easily facilitated.
It should be noted that when a certain chain routes main working condition and is switched to idle state, then it is standby each other with the link
It is main working condition that another link of part link, which is possible to be switched by idle state,.
So address distribution method provided by the present embodiment can also include:
When detecting a certain chain routing idle state switching in access server is main working condition, where the link
Access server can send the link corresponding address field routing by stratum server upwards, include the link in address field routing
Corresponding address field, it should be appreciated that a certain chain routing idle state switching is main working condition, can be with the link first
Secondary access terminal is corresponding, it is of course also possible to it is corresponding to route main working condition switching idle state with another chain, at this time namely table
The terminal of another chain road in face is moved to this chain road and carries out data interaction with top service device.
It should be noted that can in the address field routing that the upward stratum server of access server where a certain link is sent
Only to include the corresponding address field of the link, certainly, in addition to may include the link in address field routing in some embodiments
Except corresponding address field, the information of the access server where the link can also be included.If for example, by A access service
The upward stratum server of device has sent the routing of address field, includes a address field in address field routing, due to top service device be from
A access server receives address field routing, so when top service device needs to carry out data with the terminal under a address field
Data will be forwarded by A access server when interaction, can also simultaneously include A access service in address field routing certainly
The identification information of device, top service device is according to the identification information it may determine that going out to need through which access server and be somebody's turn to do
Terminal under link carries out data interaction.
Address distribution method provided in an embodiment of the present invention, by detecting that access server received by a certain link
To terminal access request when, corresponding with link address field is inquired from preset address resource pond, in address resource pond
The mapping relations of the corresponding address field of each link are stored with, two are included at least in each address field continuously communicatively
Then location extracts the target communication address being in idle condition from the address field inquired and is handed down to terminal, due to same
The address of chain road terminal is all by inquiring address field corresponding with the link, and extraction obtains out of this address field,
So the address of the terminal distribution on same link just compares concentration, the pipe being thus more convenient in Unified Set
Reason moreover, when the link state in which changes, such as from main working condition is switched to idle state, or by the free time
When state switching is main working condition, the access server where the link can be unified to carry out the publication of address field routing,
In, it may include that unified upward stratum server puts address field on record, or unification carries out the adjustment of priority as unit of address field.
Embodiment two:
In order to better understand the present invention, the embodiment of the present invention provides a kind of more specifical on the basis of example 1
Address distribution method, it is shown in Figure 2, comprising:
S201: detect that access server currently receives the access request of terminal by a certain link.
S202: judging whether the link is in main working condition, if so, S203 is gone to, if not, going to S208.
S203: address field corresponding with the link is inquired from preset address resource pond.
It should be understood that being stored with reflecting for the corresponding address field of each link in address resource pond in the present embodiment
Relationship is penetrated, includes at least two continuous addresses in each address field.
For example, a big address field A is by A1, A2, A3 ..., these small address fields of An are formed, and are existed in current network
Two associated access servers are the first access server and the second access server, the first access server and respectively
It is synchronous that two access servers can carry out data by heartbeat, wherein include link A and link B under the first access server,
It include link A ' and link B ' under second access server, wherein link A and link A ' main/slave link each other, link B and link
B ' main/slave link each other.Assuming that the corresponding relationship of link A, link A ' and A1 address field are stored in the resource pool of address, link B,
The corresponding relationship of link B ' and A2 address field.
S204: judge whether the quantity for the address being in idle condition in the address field inquired is more than or equal to currently
The quantity of the access request received, if so, S205 is gone to, if not, going to S206.
S205: the target communication address being in idle condition is extracted from the address field inquired and is handed down to terminal.
Assuming that the link A and link B in the present embodiment have received the access request of terminal, then the first access server
Should respectively to terminal distribution address A1.1, A1.2, A1.3 etc. under A link, to B link under terminal distribution communication
Address A2.1, A2.2, A2.3 etc..If receiving terminal access request for the first time at the time of correspondence in step S201 for the link
Moment then should also be put on record address field routing as the upward stratum server of the access server where the link in step S205,
I.e. upward stratum server sends A1 address field and A2 address field, finishes if the address in A1 address field is assigned, link A
It is upper to have received new access request again, then it can apply for A3 address field, and stratum server sends the routing of A3 address field, tool upwards
Body may refer to shown in Fig. 3.
When variation has occurred in link A state in which (when being switched to idle state from main working condition), the first access
Server can send A1 address field route withdraw notice by stratum server upwards, so top service device can be by A1 address field road
By being cancelled, therefore it is main working condition that link A ' will be switched by idle state, and the second access server will be to upper layer
Server sends the routing of A1 address field, therefore, will be issued later by the second access server to the terminal under A1 address field
Data are forwarded.Due to link B and it is abnormal, continue by the first access server to the terminal under A2 address field
The data of sending are forwarded, and specifically may refer to shown in Fig. 4.
S206: new address field application request is issued, for the new address field of the link application.
S207: target communication address is extracted when the link gets new address field, in the address field new from this and is issued
To terminal.
S208: the access request is abandoned.
Address distribution method provided in an embodiment of the present invention, by detecting that access server received by a certain link
To terminal access request when, corresponding with link address field is inquired from preset address resource pond, in address resource pond
The mapping relations of the corresponding address field of each link are stored with, two are included at least in each address field continuously communicatively
Then location extracts the target communication address being in idle condition from the address field inquired and is handed down to terminal, due to same
The address of chain road terminal is all by inquiring address field corresponding with the link, and extraction obtains out of this address field,
So the address of the terminal distribution on same link just compares concentration, the pipe being thus more convenient in Unified Set
Reason, for example, being easier to carry out the concentration adjustment of routing.
Embodiment three:
Shown in Figure 5, the present embodiment provides a kind of address distributing devices, comprising:
Address field enquiry module 51, for detecting that access server currently receives the access of terminal by a certain link
When request, address field corresponding with the link is inquired from preset address resource pond, is stored with each link in address resource pond
The mapping relations of corresponding address field include at least two continuous addresses in each address field;
Address issues module 52, for extracting the target communication address being in idle condition from the address field inquired
It is handed down to terminal.
The mapping relations of the corresponding address field of each link are stored in address resource pond in the present embodiment, eachly
Two continuous addresses are included at least in the section of location.
It should be understood that each link can correspond to an address field, multiple address fields can also be corresponded to, for one
For address field, wherein may include multiple continuous addresses, for example, can be 10,20 etc..It needs to illustrate
It is that the mapping relations of the corresponding address field of each link in the present embodiment in address resource pond can be by network management personnel
It pre-sets, and can be modified by network management personnel to it in subsequent communication process, network management personnel
When for its corresponding address field of each link setting, it can be set according to the number of users that each link can respectively carry
It sets, for example, if the number of users that can carry of a certain link is larger, the address for including in the corresponding address field of the link
The quantity of quantity address corresponding compared to other links can be larger, in order to enable the terminal pair under same link
The address answered more is concentrated, and only can be correspondingly arranged an address field in advance for each link, be can wrap in the address field
Containing multiple continuous addresses.
In addition, the mapping relations of the corresponding address field of each link stored in address resource pond can be and directly reflect
Relationship is penetrated, for example, direct associated storage directly can be carried out for the corresponding address field of each link and the link, but is being had
In a little situations, such as in active/standby backup access network, can there is a situation where that the corresponding address field of multiple links is identical, at this point,
It can also be correspondence other than it the corresponding address field of each link and the link directly can be carried out direct associated storage
This identical one mapping relations of multiple link establishments of address field, so at this time can be only by a chain in this multiple link
The corresponding address field in road carries out direct associated storage.It, can be with for example, link A address field corresponding with link A ' is identical
Understand, link A at this time and link A ' should main/slave link each other, can by link A and link A ' together with it is corresponding
Address field is associated storage, or the corresponding address field of link A can also be associated storage, while storing link
The mapping relations of A and link A '.
It should be understood that a certain link under access server, can receive the access request of multiple terminals simultaneously,
At this point, address field enquiry module 51, which should be each terminal, inquires address field corresponding with the link, and by under address
Hair module 52 extracts target communication address from the address field inquired and is handed down to these terminals for issuing access request respectively.
It should be noted that address distributing device provided by the embodiment of the present invention can be adapted for arbitrary network, for example,
It can be adapted for common single machine access network (network of no backup server), be readily applicable to active/standby backup access net
Network, and active/standby backup access network can be based on VRRP (Virtual Router Redundancy Protocol, virtual flow-line
Redundancy protocol) forwarding terminal downlink data, so-called active/standby backup network refers to the current ink under each access server all
In the presence of the backup link being associated, and current ink is under the jurisdiction of different access servers from backup link.If current ink
There is failure, then can move to the terminal being connected on current ink on backup link, namely terminal at this time can pass through
Backup link and top service device interaction data, it should be noted that current ink may exist multiple backups being associated
Link can preferentially select preferential when moving to the terminal on current ink on backup link from this multiple backup link
The higher backup link of grade is as the link for carrying these terminals, at this point, current ink can be switched to the free time from main working condition
State and become backup link, and backup link selected accordingly will be switched by idle state is main working condition and become
For current ink.
In access net, since user terminal is often to issue access request in the form of broadcast, so in the free time
The link of state may also can receive the access request of user, shown in Figure 6, the distribution of address provided by the present embodiment
Device can also include the first determining module 53, for inquiring address corresponding with the link from preset address resource pond
Determine that the link under access server is in main working condition before section.
After main working condition being in determining the link under the access server, then by address field enquiry module 51
Address field corresponding with the link is inquired from preset geological resource pond, however, it is determined that the link is in main working condition, also
Illustrate just to should be at idle state at this time with the backup link of the link association, if so other backup links also receive at this time
To the access request of terminal, the access request received can be determined as nothing by the access server where other backup links
Effect, or can also directly abandon the access request.
It should be noted that shown in Figure 7, address distributing device provided in this embodiment can also include second true
Cover half block 54, for issuing module 52 with extracting the target communication being in idle condition from the address field inquired in address
Location is handed down to before terminal, and it is current to determine that the quantity for the address being in idle condition in the address field inquired is more than or equal to
The quantity of the access request received.
In some embodiments, however, it is determined that the quantity for the address being in idle condition in the address field inquired is less than
When the quantity for the access request being currently received, new address field application request can be issued for the link, and obtain in the link
When to new address field, the target communication address being in idle condition is extracted from new address field and is handed down to terminal;In addition,
It can be sent out alarm notification, to prompt network management personnel.
Because can unify when access server currently receives the access request of multiple terminals by a certain link
Address field corresponding with the link is inquired from preset address resource pond, if the second determining module 54 determines the address inquired
The quantity for the address being in idle condition in section is more than or equal to the quantity for the access request being currently received, then illustrates address
Include enough addresses in section, can satisfy this sub-distribution, it is possible to directly from the address field inquired respectively
Its corresponding target communication address is extracted for the corresponding terminal of each access request and is issued, however, it is determined that the address field inquired
In the quantity of address that is in idle condition be less than the quantity of the access request being currently received, then illustrate in advance for the chain
The address field that road is correspondingly arranged, which is not able to satisfy, this time to be distributed, and can issue new address field application request at this time, certainly, new issuing
When address field application, if current queries to address field in there is also the addresses being in idle condition, can be straight
It connects the address for being in idle condition these and is handed down to each terminal respectively, when the link gets new address field, then
Target communication address can be extracted from new address field and is handed down to the terminal for receiving address not yet, that is to say
It says, this part of terminal corresponding address for issuing access request can be to be obtained from new address field, can also
Being obtained out of address field that be correspondingly arranged in advance for the link.
It should be noted that can include by the address field that a certain link is correspondingly arranged in advance in some embodiments
An amount threshold is arranged in address, for example, in the quantity for detecting the address being in idle condition in the address field
When less than the preset quantity threshold value, alarm prompt can be issued to network administrator, to remind network administrator note that needing to infuse
Meaning can just be the new address field of the link application, apply for that the movement promoter of new address field can be the chain at this moment
Access server where road, is also possible to network management personnel, this new address field can be the corresponding place of other links
In the address field of idle state, it is also possible to an address field in advance for the link reserves.It of courses, new Shen in the present embodiment
It should also be as containing at least two continuous address in address field please.
In the present embodiment, when a certain link at least corresponds to two available address sections, address issues module 52 can be from can
It is handed down to terminal again with the extraction for preferentially selecting the higher address field of priority to carry out target communication address in address field.
It is understood that above-mentioned available address section is from the address field being correspondingly arranged in advance for the link.Certainly,
In some cases, a certain link at least correspond to two available address fields when, these available address fields be also possible to for
The address field that the link is newly applied, at this point, being exactly to extract the target being in idle condition from the address field of these new applications
Address is handed down to each terminal.
It should be noted that no matter the corresponding available address section of a certain link derives from where, as long as can land used from this
The extraction of target communication address is carried out in the section of location, address, which issues module 52, to extract target communication address according to following principle
It is handed down to terminal:
When the address in this multiple available address section is all in idle state, address issues module 52 can be random
A destination address section as current extraction target communication address is selected out of this multiple available address sections, it is of course also possible to
According to preset priority orders selection target address field, it is notable that when the link receives the access of terminal again
When request, should first determine whether there is also the addresses being in idle condition in current destination address section, if it is not, weight
New destination address section is newly selected, otherwise, carries out the selection of address out of current destination address section again.
Network is accessed for active/standby backup, address distributing device provided by the present embodiment can also include the first processing mould
Block takes for the access where when detecting a certain link first time access terminal in access server, controlling the link
The business upward stratum server of device sends the corresponding address field routing of the link, includes the corresponding address of the link in address field routing
Section.Top service device can be determined according to the sender that address field routes and be carried out when with the terminal under this address field in this way
When data interaction, it should the forwarding which access server to carry out data by, since the link is in first time access terminal
When, the access server where the link is that upward stratum server is put on record as unit of address field, so for the chain
For road, there is terminal to access the link again after current time, and there is also in sky in the corresponding address field of the link
When the address of not busy state, since upward stratum server has sent the address field to access server before, so at this point,
Access server also with regard to carrying out putting on record for address without stratum server again up, has been reported because the address belongs to
Access server where standby address field namely the link only needs to send an address field when the link is initially used
, without in the link one terminal of every access with regard to upward stratum server send an address, compare convenient for into
Row centralized management.It should also be noted that, in some embodiments, it can also be before the link first time access terminal, just
The upward stratum server of access server is first passed through in advance puts the routing of address field corresponding to the link on record.
Address distributing device provided by the present embodiment can also include Second processing module, for detecting access clothes
When a certain chain in business device routes main working condition and is switched to idle state, access server where the link is controlled to upper layer
Server sends the corresponding address field route withdraw notice of the link.Due to being in main working condition before the link, so should
Link inevitable stratum server upwards when being used first time has sent address field routing, so the access where the link at this time
Server can send the corresponding address field route withdraw notice of the link by stratum server upwards, to cancel connecing where the link
Enter the corresponding address field routing of server link that upward stratum server is sent when the link is used for the first time, address field
It include the corresponding address field of the link in routing.
Or,
Address distributing device provided by the present embodiment can also include third processing module, for detecting access clothes
When the main working condition of a certain chain routing in business device is switched to idle state, the access server where controlling link will route excellent
First grade reduction flag addition is sent to top service device in the corresponding address field routing of the link, and including in address field routing should
The corresponding address field of link.In this way, upper layer device can select to be counted using which access server according to priority
According to forwarding.It should be noted that access server is that upward stratum server is reported as unit of address field in the present embodiment
Standby, that is to say reduces the unified addition of mark on address field for priority, that is to say it is unified in the address field communicatively
Location has carried out the adjustment of priority, compared to for each scattered address is adjusted separately, can promote effect
Rate easily facilitates control, the adjustment of priority.
It should be noted that when a certain chain routes main working condition and is switched to idle state, then it is standby each other with the link
It is main working condition that another link of part link, which is possible to be switched by idle state,.
So address distributing device provided by the present embodiment can also include fourth processing module, for connecing detecting
When a certain chain routing idle state switching for entering in server is main working condition, control access server where the link to
Top service device sends the corresponding address field routing of the link, includes the corresponding address field of the link in address field routing, should
Understanding, a certain chain routing idle state switching is main working condition, can be corresponding with the link first time access terminal, when
So, it is corresponding that main working condition switching idle state can also be routed with another chain, at this time namely the end of another chain road in surface
End resettlement carries out data interaction with top service device to this chain road.
It should be noted that can in the address field routing that the upward stratum server of access server where a certain link is sent
Only to include the corresponding address field of the link, certainly, in addition to may include the link in address field routing in some embodiments
Except corresponding address field, the information of the access server where the link can also be included.If for example, by A access service
The upward stratum server of device has sent the routing of address field, includes a address field in address field routing, due to top service device be from
A access server receives address field routing, so when top service device needs to carry out data with the terminal under a address field
Data will be forwarded by A access server when interaction, can also simultaneously include A access service in address field routing certainly
The identification information of device, top service device is according to the identification information it may determine that going out to need through which access server and be somebody's turn to do
Terminal under link carries out data interaction.
Address distributing device provided in an embodiment of the present invention is detecting that access server is logical by address field enquiry module
When crossing a certain link and receiving the access request of terminal, address corresponding with the link is inquired from preset address resource pond
Section, it is stored with the mapping relations of the corresponding address field of each link in address resource pond, includes at least two in each address field
Then a continuous address issues module by address and extracts the mesh being in idle condition from the address field inquired
Mark address is handed down to terminal, since the address of terminal on same link is all by inquiring correspondingly with the link
Location section, extraction obtains out of this address field, so the address of the terminal distribution on same link just compares concentration, in this way
The management being just more convenient in Unified Set, moreover, when the link state in which changes, such as from main working condition
It is switched to idle state, or when being main working condition by idle state switching, the access server where the link can unite
One carries out the publication of address field routing, wherein may include that unified upward stratum server puts address field on record, or is with address field
Unit uniformly carries out the adjustment of priority.
Example IV:
It is shown in Figure 8 the embodiment of the invention provides a kind of access server comprising processor 81, memory 82
And communication bus 83, in which:
Communication bus 83 is for realizing the connecting communication between processor 81 and memory 82;
Processor 81 is for executing one or more program stored in memory 82, to realize one He of above-described embodiment
Each step of address distribution method in embodiment two.
The embodiment of the invention also provides a kind of computer storage medium, be stored in computer storage medium one or
Multiple programs, one or more program can be executed by one or more processor, to realize above-described embodiment one and implement
Each step of address distribution method in example two.
The access server and computer storage medium provided through the embodiment of the present invention, can be as unit of address field
The address for keeping the terminal on same link assigned belongs to the address field, so as to make the terminal pair on same link
The address answered compares concentration, in this way, easily facilitating management.
Obviously, those skilled in the art should be understood that each module of the embodiments of the present invention or each step can be used
General computing device realizes that they can be concentrated on a single computing device, or be distributed in multiple computing device institutes
On the network of composition, optionally, they can be realized with the program code that computing device can perform, it is thus possible to by them
It is stored in computer storage medium (ROM/RAM, magnetic disk, CD) and is performed by computing device, and in some cases, it can
With the steps shown or described are performed in an order that is different from the one herein, or they are fabricated to each integrated circuit dies
Block, or single integrated circuit module is maked multiple modules or steps in them to realize.So the present invention does not limit
It is combined in any specific hardware and software.
The above content is combining specific embodiment to be further described to made by the embodiment of the present invention, cannot recognize
Fixed specific implementation of the invention is only limited to these instructions.For those of ordinary skill in the art to which the present invention belongs,
Without departing from the inventive concept of the premise, a number of simple deductions or replacements can also be made, all shall be regarded as belonging to the present invention
Protection scope.
Claims (10)
1. a kind of address distribution method, comprising:
When detecting that access server currently receives the access request of terminal by a certain link, from preset address resource pond
It is middle to inquire address field corresponding with the link, reflecting for the corresponding address field of each link is stored in the address resource pond
Relationship is penetrated, contains at least two continuous address in each address field;
The target communication address being in idle condition is extracted from the address field inquired is handed down to the terminal.
2. address distribution method as described in claim 1, which is characterized in that it is described from preset address resource pond inquiry with
Before the corresponding address field of the link further include:
Determine that the link under the access server is in main working condition.
3. address distribution method as described in claim 1, which is characterized in that described to extract source from the address field inquired
Before the terminal is handed down in the target communication address of idle state further include:
The quantity of the address being in idle condition in the address field inquired described in determination, which is more than or equal to, to be currently received
The quantity of the access request.
4. address distribution method as claimed in claim 3, which is characterized in that the method also includes:
The quantity for the address being in idle condition in the address field inquired described in the determination is less than the institute being currently received
When stating the quantity of access request, new address field application request is issued, and when the link gets new address field, from described
The target communication address being in idle condition is extracted in new address field is handed down to the terminal.
5. address distribution method as claimed in claim 4, which is characterized in that the method also includes:
The sending new address field application request when start timing, if preset time arrival after the link have not been obtained it is new
Address field, issue alarm notification.
6. address distribution method as described in any one in claim 1-5, which is characterized in that be stored in the address resource pond
The mapping relations of the link and at least two available address sections, and each available address section carries pre-set priority mark
Know, it is described extract the target communication address being in idle condition from the address field inquired and be handed down to the terminal include:
The higher address field of priority is selected to carry out target from the available address section according to pre-set priority mark logical
Interrogate the extraction of address.
7. address distribution method as described in any one in claim 1-5, which is characterized in that the method also includes:
When a certain chain routing idle state switching for detecting in the access server is main working condition, where the link
The upward stratum server of access server sends the corresponding address field routing of the link, includes the link pair in the address field routing
The address field answered is handed over so that the top service device is routed according to the address field with the terminal accessed in the address field
Mutually.
8. address distribution method as described in any one in claim 1-5, which is characterized in that the method also includes:
When detecting that the main working condition of a certain chain routing in the access server is switched to idle state, where the link
The upward stratum server of access server sends the corresponding address field route withdraw notice of the link, to cancel the access service
The corresponding address field routing of the link that device is sent when the link is used for the first time to the top service device, the address
It include the corresponding address field of the link in section routing;
Or,
When detecting that the main working condition of a certain chain routing in the access server is switched to idle state, where the link
Access server routing priority reduction flag added be sent to the upper layer in the link corresponding address field routing
Server includes the corresponding address field of the link in address field routing.
9. a kind of access server, including processor, memory and communication bus;
The communication bus is for realizing the connecting communication between the processor and the memory;
The processor is for executing one or more program stored in the memory, to realize such as claim 1-8
Any one of described in address distribution method the step of.
10. a kind of computer storage medium, which is characterized in that be stored with one or more journey in the computer storage medium
Sequence, one or more of programs can be executed by one or more processor, to realize such as any one of claim 1-8
The step of described address distribution method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710953478.XA CN109672758A (en) | 2017-10-13 | 2017-10-13 | Address distribution method, access server and computer storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710953478.XA CN109672758A (en) | 2017-10-13 | 2017-10-13 | Address distribution method, access server and computer storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109672758A true CN109672758A (en) | 2019-04-23 |
Family
ID=66138776
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710953478.XA Pending CN109672758A (en) | 2017-10-13 | 2017-10-13 | Address distribution method, access server and computer storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109672758A (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112202937A (en) * | 2020-09-30 | 2021-01-08 | 中国核动力研究设计院 | Instrument control simulation system IP allocation method, system, equipment and storage medium |
CN112995349A (en) * | 2019-12-12 | 2021-06-18 | 中兴通讯股份有限公司 | Address management method, server, and computer-readable storage medium |
CN113098797A (en) * | 2021-03-24 | 2021-07-09 | 深圳市乙辰科技股份有限公司 | Network connection method and device based on distributed networking system and computer equipment |
CN113132500A (en) * | 2019-12-30 | 2021-07-16 | 北京华为数字技术有限公司 | Address allocation method, device, network equipment and storage medium |
CN114205838A (en) * | 2020-09-02 | 2022-03-18 | 深圳绿米联创科技有限公司 | Network access method, device, electronic equipment and computer readable storage medium |
CN114448890A (en) * | 2021-12-22 | 2022-05-06 | 天翼云科技有限公司 | Addressing method, addressing device, electronic equipment and storage medium |
CN115550319A (en) * | 2022-11-24 | 2022-12-30 | 新华三信息技术有限公司 | Address allocation method and device |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101150764A (en) * | 2007-10-18 | 2008-03-26 | 中兴通讯股份有限公司 | A system and method for realizing multi-user data concurrent service |
CN102025528A (en) * | 2009-09-23 | 2011-04-20 | 中兴通讯股份有限公司 | Address management method, device and system |
CN103178973A (en) * | 2011-12-21 | 2013-06-26 | 中国电信股份有限公司 | Internet protocol (IP) address management method, system and device |
CN106792679A (en) * | 2016-11-25 | 2017-05-31 | 迈普通信技术股份有限公司 | A kind of wireless communications method and system |
-
2017
- 2017-10-13 CN CN201710953478.XA patent/CN109672758A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101150764A (en) * | 2007-10-18 | 2008-03-26 | 中兴通讯股份有限公司 | A system and method for realizing multi-user data concurrent service |
CN102025528A (en) * | 2009-09-23 | 2011-04-20 | 中兴通讯股份有限公司 | Address management method, device and system |
CN103178973A (en) * | 2011-12-21 | 2013-06-26 | 中国电信股份有限公司 | Internet protocol (IP) address management method, system and device |
CN106792679A (en) * | 2016-11-25 | 2017-05-31 | 迈普通信技术股份有限公司 | A kind of wireless communications method and system |
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112995349A (en) * | 2019-12-12 | 2021-06-18 | 中兴通讯股份有限公司 | Address management method, server, and computer-readable storage medium |
CN112995349B (en) * | 2019-12-12 | 2023-07-04 | 中兴通讯股份有限公司 | Address management method, server, and computer-readable storage medium |
CN113132500A (en) * | 2019-12-30 | 2021-07-16 | 北京华为数字技术有限公司 | Address allocation method, device, network equipment and storage medium |
CN113132500B (en) * | 2019-12-30 | 2024-02-02 | 北京华为数字技术有限公司 | Address allocation method, device, network equipment and storage medium |
CN114205838A (en) * | 2020-09-02 | 2022-03-18 | 深圳绿米联创科技有限公司 | Network access method, device, electronic equipment and computer readable storage medium |
CN112202937A (en) * | 2020-09-30 | 2021-01-08 | 中国核动力研究设计院 | Instrument control simulation system IP allocation method, system, equipment and storage medium |
CN112202937B (en) * | 2020-09-30 | 2021-11-30 | 中国核动力研究设计院 | Instrument control simulation system IP allocation method, system, equipment and storage medium |
CN113098797A (en) * | 2021-03-24 | 2021-07-09 | 深圳市乙辰科技股份有限公司 | Network connection method and device based on distributed networking system and computer equipment |
CN114448890A (en) * | 2021-12-22 | 2022-05-06 | 天翼云科技有限公司 | Addressing method, addressing device, electronic equipment and storage medium |
CN114448890B (en) * | 2021-12-22 | 2023-10-10 | 天翼云科技有限公司 | Addressing method, addressing device, electronic equipment and storage medium |
CN115550319A (en) * | 2022-11-24 | 2022-12-30 | 新华三信息技术有限公司 | Address allocation method and device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109672758A (en) | Address distribution method, access server and computer storage medium | |
CN105245373B (en) | A kind of container cloud platform system is built and operation method | |
US7840683B2 (en) | Systems and methods of migrating sessions between computer systems | |
CN102611735B (en) | A kind of load-balancing method of application service and system | |
CN105991459B (en) | CDN node returns source route distribution method, device and system | |
CN102917025B (en) | Method for business migration based on cloud computing platform | |
CN103986741B (en) | Cloud data system, cloud data center and its method for managing resource | |
CN109327550A (en) | A kind of distribution method of access request, device, storage medium and computer equipment | |
CN104468397B (en) | The method and apparatus that a kind of live migration of virtual machine forwards not packet loss | |
CN102594861A (en) | Cloud storage system with balanced multi-server load | |
WO2021004385A1 (en) | Service unit switching method, system and apparatus | |
CN108900651B (en) | Kubernetes and Neutron docking method based on multi-tenant environment, storage medium and equipment | |
CN106453665A (en) | Data caching method, server and system based on distributed caching system | |
CN110442610A (en) | The method, apparatus of load balancing calculates equipment and medium | |
CN104426694B (en) | A kind of method and apparatus of adjustment resources of virtual machine | |
CN105933408A (en) | Implementation method and device of Redis universal middleware | |
CN101227416A (en) | Method for distributing link bandwidth in communication network | |
CN103338252A (en) | Distributed database concurrence storage virtual request mechanism | |
CN106254471A (en) | Resource United Dispatching method and system under a kind of isomery cloud environment | |
CN109981757B (en) | API gateway load balancing method for small-scale micro-service architecture | |
CN104734983B (en) | Scheduling system, the method and device of service data request | |
CN106059945A (en) | Flow control method and video monitoring system | |
CN104519138B (en) | A kind of data transmission method and system based on distributed FTP | |
CN106533961A (en) | Flow control method and device | |
CN102917287A (en) | Intelligent optical network exchange device and edge cashing method facing content center |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190423 |