CN106899704A - A kind of method and apparatus of station address distribution - Google Patents
A kind of method and apparatus of station address distribution Download PDFInfo
- Publication number
- CN106899704A CN106899704A CN201611195196.XA CN201611195196A CN106899704A CN 106899704 A CN106899704 A CN 106899704A CN 201611195196 A CN201611195196 A CN 201611195196A CN 106899704 A CN106899704 A CN 106899704A
- Authority
- CN
- China
- Prior art keywords
- address
- lns
- state
- message
- module
- 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
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
This application provides a kind of method and apparatus of station address distribution, first network server LNS is applied to, methods described includes:Before distribution address, the first address is selected, determine the first address state of first address;If first address state is unallocated state, user is distributed into first address, so as to solve the problems, such as to distribute address waste at present.
Description
Technical field
The application is related to mechanics of communication, more particularly to a kind of method and apparatus of station address distribution.
Background technology
Layer 2 Tunneling Protocol (Layer 2Tunneling Protocol, L2TP) is a kind of point-to-point protocol (Point-
To-Point Protocol, PPP) the link layer data bag technology that is packaged and is transmitted by tunnel.
In the prior art, when L2TP Access Concentrator (L2TP Access Concentrator, LAC) has multiple standby
When selecting L2TP Network Server (L2TP Network Server, LNS), LAC gives tacit consent to be set up to main LNS initiation L2TP Tunnel to be asked
Ask, LAC receive main LNS receive response after, the LNS and no longer sets up L2TP as the opposite end in tunnel with other alternative LNS
Tunnel.If LAC does not receive the response that receives of main LNS, LAC initiates L2TP Tunnel and sets up request to next alternative LNS.But
It is after main LNS links disconnect, to continue to send L2TP Tunnel foundation request to alternative LNS, now there may be the ground of main LNS
Location information be allocated to again under alternative LNS hang it is standby, so as to cause to distribute the problem of address conflict.
In order to solve the problems, such as to distribute address conflict, the address pool generally to alternative LNS splits in the prior art, makes
The address pool of each backup LNS is separate with the address pool of main LNS, so as to solve the problems, such as to distribute address conflict.
Although above-mentioned treatment solves the problems, such as to distribute address conflict, each alternative LNS is needed according to user's needs
Different address pools are divided, and the address pool of the alternative LNS is separate with the address pool of main LNS, increased planning complicated
Subsequent expansion is spent and is unfavorable for, and in order to ensure that main LNS does not conflict, it is necessary in address pool with the distribution address of alternative LNS
Reserved many distribution addresses, cause the waste of distribution address.
The content of the invention
This application provides a kind of method and apparatus of station address distribution, to solve to distribute asking for address waste at present
Topic.
In order to solve the above problems, this application discloses a kind of method of station address distribution, methods described is applied to the
One webserver LNS, methods described includes:Before distribution address, the first address is selected, determine the first of first address
Address state;If first address state is unallocated state, user is distributed into first address.
In order to solve the above problems, disclosed herein as well is a kind of station address assigned unit, described device is applied to
First network server LNS, described device includes:Determining module, for before distributing address, selecting the first address, determines institute
State the first address state of the first address;Distribute module, if being unallocated state for first address state, will be described
Distribute to user in the first address.
Compared with prior art, the application includes advantages below:
First, the LNS of the application the selected the first address before address is distributed, and determined the first address of the first address
State, if the first address state is unallocated state, user is distributed to by first address, is drawn without to address pool
Point, the complexity to address pool planning is alleviated, while reserved need not also distribute address, and then solve user's distribution address wave
The problem taken.
Certainly, any product for implementing the application is not necessarily required to while reaching all the above advantage.
Brief description of the drawings
Fig. 1 is the networking schematic diagram for realizing a kind of herein described station address distribution method;
Fig. 2 is a kind of flow chart of station address distribution method of the application implementation method;
Fig. 3 is a kind of flow chart of station address distribution method of another implementation method of the application;
Fig. 4 is a kind of flow chart of station address distribution method of another implementation method of the application;
Fig. 5 is a kind of flow chart of station address distribution method of another implementation method of the application;
Fig. 6 is a kind of flow chart of station address distribution method of another implementation method of the application;
Fig. 7 is a kind of application example of the structured flowchart of station address distribution method of the application;
Fig. 8 is a kind of structured flowchart of station address distributor of the application implementation method;
Fig. 9 is a kind of structured flowchart of station address distributor of another implementation method of the application;
Figure 10 is a kind of structured flowchart of station address distributor of another implementation method of the application;
Figure 11 is a kind of structured flowchart of station address distributor of another implementation method of the application.
Specific embodiment
It is below in conjunction with the accompanying drawings and specific real to enable above-mentioned purpose, the feature and advantage of the application more obvious understandable
Mode is applied to be described in further detail the application.
It is shown in Figure 1, it illustrates the networking schematic diagram for realizing a kind of herein described station address distribution method, tool
Body includes:Client, middle two-layer network device, L2TP Access Concentrator (L2TP Access Concentrator, LAC),
L2TP Network Server (L2TP Network Server, LNS) and Internet.Client passes through middle two-layer equipment
It is attached with LAC, LAC is netted with LNS by Internet and is connected, LAC is that setting for data is transmitted between client and LNS
It is standby, the access device of typically local ISP (ISP), with PPP and L2TP protocol handling capabilities.LNS is
The edge device of the server-side portion of L2TP agreements, typically intranet a, LAC can correspond to multiple LNS.
It should be noted that middle two-layer equipment can be interchanger, or other equipment, this application is not done
Concrete restriction.
Based on above-mentioned networking schematic diagram, reference picture 2 shows a kind of station address of the one of implementation method of the application
The step of distribution method flow chart.Methods described is applied to first network server LNS, in the present embodiment, user ground
Location distribution method is specifically included:
Step 201:Before distribution address, the first address is selected, determine the first address state of first address.
Before distribution address, the first address is selected, determine the first address state of first address, be in order to avoid inciting somebody to action
The first the allocated address is again assigned to user.
Wherein, the first address state includes having distributed state and unallocated state.
Unallocated state can be understood as that first address is idle address information or first address is not made
, the state of distribution can be understood as that the first address is occupied or the first address is used.
Step 202:If the first address state is unallocated state, user is distributed into first address.
Present embodiment, in a LNS before address is distributed, selects the first address, determines the first ground of the first address
Location state, if the first address state is unallocated state, user is distributed to by first address, is carried out without to address pool
Divide, alleviate the complexity to address pool planning, while reserved need not also distribute address, and then solve user's distribution address
The problem of waste.
Reference picture 3, flows the step of show a kind of station address distribution method of the application other in which implementation method
Cheng Tu.Methods described is applied to first network server LNS, and in the present embodiment, the station address distribution method is specifically wrapped
Include:
Step 301:LNS address lists are obtained, determines that a LNS is standby each other with the 2nd LNS according to the LNS address lists
Part relation.
LNS address lists can in the following manner be obtained:
One kind is achieved in that:First LNS static configurations obtain LNS address lists.
Another kind is achieved in that:First LNS is from Layer 2 Tunneling Protocol LAC (L2TP Access
Concentrator, abbreviation LAC) LNS address lists are obtained, specifically, a LNS and Layer 2 Tunneling Protocol LAC
LAC is set up in tunneling process, and the address information of LNS is carried by the property value in AVP message, according to the address of the LNS for carrying
Information sets up LNS address lists, it is also possible to after a LNS and Layer 2 Tunneling Protocol LAC LAC set up tunnel, lead to
The address information of the LNS that the property value crossed in AVP message is carried, the address information according to the LNS for carrying sets up LNS address columns
Table, it would however also be possible to employ other modes, is not particularly limited to this application.
Determine that a LNS and the 2nd LNS backup each other relation according to LNS address lists, the LNS ground in LNS address lists
Location information is arranged in sequence, and first LNS in acquiescence LNS lists is the in main LNS, and LNS lists
One LNS and the 2nd LNS backup each other relation, thus the 2nd LNS processes the message that a LNS sends, and other LNS are sent
Message is not processed.
Because a LNS and the 2nd LNS backup each other relation, thus a LNS and the 2nd LNS can share address pool,
First LNS and the 2nd LNS can simultaneously for user distributes address information, it is also possible to which a LNS enters row address distribution, or second
LNS enters row address distribution, a LNS is given tacit consent under normal circumstances and enters row address distribution, when two equipment are simultaneously different user point
During with IP address, a LNS and the 2nd LNS same times may distribute the situation of same IP address, in order to prevent this feelings
Condition occurs, thus when IP address is distributed for user, determines the first address state of the first address, and first address does not exist
Used on 2nd LNS.
Step 302:Determine the first address state of first address.
The first address state of the first address can in the following manner be determined:
First LNS sends the first message to the 2nd LNS, wherein, first message carries the first address.
The form that first message may be referred to charging message is transmitted, i.e. source address information, mesh are carried in the first message
Address information and the first address etc..
The first feedback message of the 2nd LNS transmissions is obtained, the first ground of the first address is carried in the first feedback message
Location state.
First LNS to the 2nd LNS send the first message, wherein, the first message carry the first address, make the 2nd LNS according to
The LNS address pools of first address search the 2nd, determine first address state of first address in the 2nd LNS address pools, by what is determined
First address state is carried and sent to a LNS in the first feedback message.
First LNS obtains the first address state of the first address according to the first feedback message.
If the first address state is unallocated state, user is distributed into the first address, if the first address state is for
Distribution state, then reselect next address, re-executes step 302.
The application implementation method, first, a LNS selected the first address before address is distributed, and determined the first address
First address state, if the first address state is unallocated state, distributes to user, without to address by first address
Pond is divided, and alleviates the complexity to address pool planning, while reserved need not also distribute address, and then solves user point
With the problem that address wastes.
A relation secondly as LNS and the 2nd LNS backup each other a, it is achieved thereby that LNS and the 2nd LNS is shared
Address pool, and need not be that each LNS needs to be needed to divide different address pools according to user, solve user's distribution address and waste
Problem.
Reference picture 4, flows the step of show a kind of station address distribution method of the application other in which implementation method
Cheng Tu.Methods described is applied to first network server LNS, and in the present embodiment, the station address distribution method is specifically wrapped
Include:
Step 401:LNS address lists are obtained, determines that a LNS is standby each other with the 2nd LNS according to the LNS address lists
Part relation.
Step 402:Determine the first address state of first address.
Step 403:If first address state is unallocated state, user is distributed into first address.
Step 404:Reclaim the first address.
When first LNS reclaims the first address, such as when link failure between user offline or a LNS and the 2nd LNS,
First LNS sends the first notice message to the 2nd LNS, to notify that the 2nd LNS has reclaimed the first address.
The first address is reclaimed in the following manner, and a LNS is according to address information lease ageing time or timing
Device ageing time, reclaims the first address, after first address is recovered, can again as not dividing in a LNS address pools
The address information matched somebody with somebody, continues to participate in address distribution.
It should be noted that lease ageing time and timer ageing time those skilled in the art can be according to actual feelings
Condition is configured, for example:2 minutes, 3 minutes, or even 10 minutes etc., this application is not particularly limited.
The application implementation method, sends the first notice message, to notify that the 2nd LNS has been returned by a LNS to the 2nd LNS
The first address is received, so as to improve the utilization rate of the address information in shared address pool.
Reference picture 5, flows the step of show a kind of station address distribution method of the application other in which implementation method
Cheng Tu.Methods described is applied to first network server LNS, and in the present embodiment, the station address distribution method is specifically wrapped
Include:
Step 501:LNS address lists are obtained, determines that a LNS is standby each other with the 2nd LNS according to the LNS address lists
Part relation.
Step 502:According to the second address that the 2nd LNS is selected, two address second address state is determined.
First LNS receives the second message that the 2nd LNS sends, wherein, second message carries the 2nd LNS to divide
With the second address that address choice goes out.
Two address second address state is determined in the following manner:
First LNS receives the second message that the 2nd LNS sends, wherein, it is the choosing of distribution address that the second message carries the 2nd LNS
The second address selected out a, LNS determines the second address in a LNS addresses according to the LNS address pools of the second address search the
The second address state in pond, sends second and feeds back message to the 2nd LNS, and the second address state that will be determined carries anti-second
Sent to the 2nd LNS in feedback message.
It is described to send the second feedback message to the 2nd LNS as a kind of implementation, including:
First LNS determines two address second address state;
If the second address is distribution state, distribution state is carried and is sent to the 2nd LNS in the second feedback message.
If the second address state is distribution state, illustrate that the second address is occupied, now send second to the 2nd LNS
Feedback message, informs that the 2nd the second addresses of LNS can not use, and continues to reselect address information.
If the second address is unallocated state, the second address is locked, unallocated state is carried and feeds back message second
It is middle to send to the 2nd LNS.
First LNS sends second and feeds back message to the 2nd LNS, can be used with the second address for informing the 2nd LNS, explanation
First LNS does not use the address information, and locks the second address.
First LNS locks the second address, while the 2nd LNS is also required to lock the second address, so when a LNS failures
When, when the 2nd LNS enters row address distribution, do not result in the problem of address conflict.
First LNS locks the second address, and now the second address cannot again participate in the distribution of address;First LNS unlocks
Or when the tunnel teardown between LAC and LNS, can release to two address locking.
It is described when there are two or more LAC between client and LNS as a kind of implementation method therein
2nd LNS can be used as described two or two or more LAC main LNS.
During in order to prevent the 2nd LNS as main LNS, tunnel is individually set up with LAC and address generation address conflict is distributed
Problem, can first determine whether whether the 2nd LNS has LNS address lists, if so, then the 2nd LNS can be from larger available address
Start to distribute address, for example:Address pool range is 10.0.0.1~10.0.0.100, then the 2nd LNS can be from 10.0.0.100
Start to obtain distribution address, can as far as possible avoid address from distributing and produce conflict.Certain 2nd LNS can also from it is less can land used
Location starts to obtain distribution address.The method of distribution address is obtained, conflict is produced as long as can reach and avoid address to distribute as far as possible,
Method to this application not to specific distribution address is limited.
The application implementation method, first, a LNS selected the first address before address is distributed, and determined the first address
First address state, if the first address state is unallocated state, distributes to user, without to address by first address
Pond is divided, and alleviates the complexity to address pool planning, while reserved need not also distribute address, and then solves user point
With the problem that address wastes.
Reference picture 6, flows the step of show a kind of station address distribution method of the application other in which implementation method
Cheng Tu.Methods described is applied to first network server LNS, and in the present embodiment, the station address distribution method is specifically wrapped
Include:
Step 601:LNS address lists are obtained, determines that a LNS is standby each other with the 2nd LNS according to the LNS address lists
Part relation.
Step 602:According to the second address that the 2nd LNS is selected, two address second address state is determined.
Step 603:Reclaim the second address.
When first LNS reclaims the second address, such as when link failure between user offline or the 2nd LNS and user, institute
State a LNS and receive the second notice message that the 2nd LNS sends, second notice message is used to notify a LNS, the
Two LNS have reclaimed the second address.
The second address is reclaimed in the following manner, and a LNS is according to address information lease ageing time or timing
Device ageing time, reclaims the second address, after second address is recovered, can again as not dividing in a LNS address pools
The address information matched somebody with somebody, continues to participate in address distribution.
It should be noted that lease ageing time and timer ageing time those skilled in the art can be according to actual feelings
Condition is configured, for example:2 minutes, 3 minutes, or even 10 minutes etc., this application is not particularly limited.
Step 604:First LNS releases the two address lock-out state.
First LNS reclaims the second address, together according to address information lease ageing time or timer ageing time
When release two address lock-out state, after second address is recovered, can again as not dividing in a LNS address pools
The address information matched somebody with somebody, continues to participate in address distribution.
Present embodiment, first, sends the second notice message, to have notified the 2nd LNS by a LNS to the 2nd LNS
The first address is reclaimed, so as to improve the utilization rate of the address information in shared address pool.
Secondly, a LNS locks the second address, and now the second address cannot again participate in the distribution of address, it is achieved thereby that
First LNS and the 2nd LNS shares address pool, does not result in the conflict of distribution address, while basis also need not be needed for each LNS
User needs to divide different address pools, solves the problems, such as that user's distribution address wastes.
The technical scheme of the application restriction is better understood from for those skilled in the art, shows realization originally referring to Fig. 7
Apply for a kind of application example of the structured flowchart of station address distribution method.
The present embodiment includes:Client, middle two-layer network device, LAC1, LAC2, a LNS (abbreviation LNS1) 1 and the
Two LNS (abbreviation LNS2).
Detailed process is as follows:
1st, LAC1 obtains LNS address lists, when client is dialled, when LAC1 and LNS1 sets up tunnel, LNS is arranged
Table is sent to LNS1.
2nd, LNS1 determines that LNS1 and LNS2 backup each other relation according to LNS address lists, and LNS address lists are sent to removing
LNS2 outside the machine address, i.e. LNS2 for LNS1 alternative LNS, namely LNS2 only to LNS1 send station address information enter
Row treatment.
3rd, before address information to be allocated, the first address information that LNS1 will be selected is sent to LNS2, LNS2 according to
The address pool of the first address information lookup LNS2 determines the first address state of the first address, if finding the first address, sentences
First address state of disconnected first address, if the first address state directly transmits the first feedback message to LNS1 to have distributed,
Inform that the first address can not be used, continue to select next address, then the judgement for carrying out above-mentioned steps.
If the first address is unassigned, the first address state of first address is locked on LNS2, and to LNS1
Send first and feed back message, inform that LNS1 first addresses can use.
4th, when LNS1 reclaims the first address, such as LAC1 disconnects or tunnel teardown with LNS1 intermediate line links, can send
First notice message, to notify LNS2 to reclaim the first address, and after the first address is recovered, can again as unallocated
Address information, continue to participate in address distribution.
5th, when client triggering LAC1 and LNS2 sets up tunnel, now the address information in LNS2 address pools can be as
Unappropriated address information, carries out normal address distribution.
It should be noted that for foregoing embodiment of the method, in order to be briefly described, therefore it is all expressed as a series of
Combination of actions, but those skilled in the art should know, and the application is not limited by described sequence of movement, because according to
According to the application, some steps can sequentially or simultaneously be carried out using other.Secondly, those skilled in the art should also know,
Embodiment described in this description belongs to preferred embodiment, necessary to involved action not necessarily the application.
Based on the explanation of above method implementation method, present invention also provides a kind of corresponding station address distributor
Implementation method realizes the content described in above method implementation method.
Reference picture 8, shows a kind of structured flowchart of station address distributor in the one of implementation method of the application.
Described device is applied to first network server LNS, and in the present embodiment, the device is specifically included:
Determining module 801, for before distributing address information, selecting the first address, determines the of first address
One address state.
Distribute module 802, if being unallocated state for the first address state, use is distributed to by first address
Family.
The application implementation method, in a LNS before address is distributed, selects the first address, determines the of the first address
One address state, if the first address state is unallocated state, distributes to user, without to address pool by first address
Divided, alleviated the complexity to address pool planning, while reserved need not also distribute address, and then solved user's distribution
The problem that address wastes.
Reference picture 9, shows a kind of structural frames of station address distributor in the application other in which implementation method
Figure.Described device is applied to first network server LNS, and in the present embodiment, the device is specifically included:
Acquisition module 901, for obtaining LNS address lists;First LNS and second is determined according to the LNS address lists
LNS backups each other relation.
First sending module 902, the first message is sent for a LNS to the 2nd LNS, wherein, first message is taken
The first address of band.
First receiver module 903, for obtaining the first feedback message that the 2nd LNS sends, in the first feedback message
Carry the first address state of the first address;The first address state of the first address is obtained from the first feedback message.
Determining module 904, for the first address state according to the first feedback Receive message first address.
The application implementation method, first, a LNS selected the first address before address is distributed, and determined the first address
First address state, if the first address state is unallocated state, distributes to user, without to address by first address
Pond is divided, and alleviates the complexity to address pool planning, while reserved need not also distribute address, and then solves user point
With the problem that address wastes.
A relation secondly as LNS and the 2nd LNS backup each other a, it is achieved thereby that LNS and the 2nd LNS is shared
Address pool, and need not be that each LNS needs to be needed to divide different address pools according to user, solve user's distribution address and waste
Problem.
Reference picture 10, shows a kind of structural frames of station address distributor in the application other in which implementation method
Figure.Described device is applied to first network server LNS, and in the present embodiment, the device is specifically included:
Acquisition module 1001, for obtaining LNS address lists;First LNS and second is determined according to the LNS address lists
LNS backups each other relation.
First sending module 1002, the first message is sent for a LNS to the 2nd LNS, wherein, first message is taken
The first address of band.
First receiver module 1003, for obtaining the first feedback message that the 2nd LNS sends, in the first feedback message
Carry the first address state of the first address;The first address state of the first address is obtained from the first feedback message.
Determining module 1004, for the first address state according to the first feedback Receive message first address.
Recycling module 1005, for reclaiming the first address.
Second sending module 1006, for when the recycling module reclaims the first address, sending first to the 2nd LNS and leading to
Message is known, to notify that the 2nd LNS has reclaimed the first address.
Reference picture 11, shows a kind of structural frames of station address distributor of the one of implementation method of the application
Figure.Described device is applied to first network server LNS, and in the present embodiment, the device is specifically included:
Acquisition module 1101, for obtaining LNS address lists;First LNS and second is determined according to the LNS address lists
LNS backups each other relation.
Second receiver module 1102, for receiving the second message that the 2nd LNS sends, wherein, second message is carried
2nd LNS is to distribute the second address that address is selected.
Used as one of which implementation method, second receiver module is additionally operable to receive the second notice that the 2nd LNS sends
Message, second notice message is used to notify that a LNS has reclaimed the second address.
3rd sending module 1103, message is fed back for sending second to the 2nd LNS, wherein, the second feedback message
Two address second address state of middle carrying.
Determining module 1104, determines two address second address state.
If it is determined that it is distribution state that the determination result of module is the second address, then the 3rd sending module will distribute state
Carry and sent to the 2nd LNS in the second feedback message.
If it is determined that it is unallocated state that the determination result of module is the second address, then locking module 1105 locks the second ground
Unallocated state is carried and sent to the 2nd LNS in the second feedback message by location, the 3rd sending module.
The locking module, for the second notice message received according to the second receiver module, releases second ground
Lock-out state the application implementation method of location, first, a LNS selected the first address before address is distributed, and determined the first ground
First address state of location, if the first address state is unallocated state, distributes to user, without right by first address
Address pool is divided, and alleviates the complexity to address pool planning, while also reserved need not distribute address, and then solves use
The problem that family distribution address wastes.
Secondly, a LNS locks the second address, and now the second address cannot again participate in the distribution of address, only a LNS
Unlock or when the tunnel teardown between LAC and LNS, can just release to two address locking, it is achieved thereby that
First LNS and the 2nd LNS shares address pool, does not result in the conflict of distribution address, while basis also need not be needed for each LNS
User needs to divide different address pools, solves the problems, such as that user's distribution address wastes.
For said apparatus embodiment, because it is substantially similar to embodiment of the method, so description is fairly simple,
The part explanation of embodiment of the method shown in correlation.
Each embodiment in this specification is described by the way of progressive, what each embodiment was stressed be with
The difference of other embodiment, between each embodiment identical similar part mutually referring to.
It would have readily occurred to a person skilled in the art that be:Any combination application of above-mentioned each embodiment is all feasible, therefore
Any combination between above-mentioned each embodiment is all the embodiment of the application, but this specification exists as space is limited,
This is not just detailed one by one.
The embodiment of the present application can be embodied in it is any support graphics process, internet content capture and render device (or
Multiple devices) on.These devices include but is not limited to personal computer, cluster server, mobile phone, work station, embedded
System, game machine, TV, Set Top Box, or any other computing device for supporting computer graphical and content to show.These devices
The device of the one or more processors and memory that perform and store instruction can be included but is not limited to possess.These devices can
With including software, firmware and hardware.Software can include one or more application programs and operating system.Hardware can include but
It is not limited to processor, memory and display.
The application can be used in numerous general or special purpose computing system environments or configuration.For example:Personal computer, service
Device computer, handheld device or portable set, laptop device, multicomputer system, the system based on microprocessor, top set
Box, programmable consumer-elcetronics devices, network PC, minicom, mainframe computer, including any of the above system or equipment
DCE etc..
The application can be described in the general context of computer executable instructions, such as program
Module.Usually, program module includes performing particular task or realizes routine, program, object, the group of particular abstract data type
Part, data structure etc..The application can also be in a distributed computing environment put into practice, in these DCEs, by
Remote processing devices connected by communication network perform task.In a distributed computing environment, program module can be with
In local and remote computer-readable storage medium including including storage device.
In this application, " component ", " device ", " system " etc. refer to and be applied to the related entities of computer, such as hardware, hard
The combination of part and software, software or executory software etc..In detail, for example, component can with but be not limited to run on place
Manage process, processor, object, executable component, execution thread, program and/or the computer of device.Further, server is run on
On application program or shell script, server can be component.One or more assemblies can be in the process and/or line for performing
Cheng Zhong, and component can on one computer localize and/or be distributed between two or multiple stage computers, it is possible to by
Various computer-readable medium operations.Component can also be according to the signal with one or more packets, for example, coming from one
Handed over by signal and other systems with another component interaction in local system, distributed system, and/or network in internet
The signal of mutual data is communicated by locally and/or remotely process.
Finally, in addition it is also necessary to explanation, herein, such as first and second or the like relational terms be used merely to by
One entity or operation make a distinction with another entity or operation, and not necessarily require or imply these entities or operation
Between there is any this actual relation or order.And, term " including ", "comprising", not only including those key elements, and
And also include other key elements being not expressly set out, or also include for this process, method, article or equipment institute are intrinsic
Key element.In the absence of more restrictions, the key element limited by sentence " including ... ", it is not excluded that including it is described will
Also there is other identical element in process, method, article or the equipment of element.
And, "and/or" above represent and both contained herein " and " relation, also contains the relation of "or", its
In:If option A and option b be " and " relation, then it represents that can simultaneously include option A and option b in certain embodiment;If
Option A and the relation that option b is "or", then it represents that can individually include option A in certain embodiment, or individually include option b.
It should be understood by those skilled in the art that, embodiments herein can be provided as method, system or computer program
Product.Therefore, the application can be using the reality in terms of complete hardware embodiment, complete software embodiment or combination software and hardware
Apply the form of example.And, the application can be used and wherein include the computer of computer usable program code at one or more
The computer program implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) is produced
The form of product.
The application is the flow with reference to method, equipment (system) and computer program product according to the embodiment of the present application
Figure and/or block diagram are described.It should be understood that every first-class during flow chart and/or block diagram can be realized by computer program instructions
The combination of flow and/or square frame in journey and/or square frame and flow chart and/or block diagram.These computer programs can be provided
The processor of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing devices is instructed to produce
A raw machine so that produced for reality by the instruction of computer or the computing device of other programmable data processing devices
The device of the function of being specified in present one flow of flow chart or multiple one square frame of flow and/or block diagram or multiple square frames.
These computer program instructions may be alternatively stored in can guide computer or other programmable data processing devices with spy
In determining the computer-readable memory that mode works so that instruction of the storage in the computer-readable memory is produced and include finger
Make the manufacture of device, the command device realize in one flow of flow chart or multiple one square frame of flow and/or block diagram or
The function of being specified in multiple square frames.
These computer program instructions can be also loaded into computer or other programmable data processing devices so that in meter
Series of operation steps is performed on calculation machine or other programmable devices to produce computer implemented treatment, so as in computer or
The instruction performed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one
The step of function of being specified in individual square frame or multiple square frames.
Although having been described for the preferred embodiment of the application, those skilled in the art once know basic creation
Property concept, then can make other change and modification to these embodiments.So, appended claims are intended to be construed to include excellent
Select embodiment and fall into having altered and changing for the application scope.
Above to a kind of station address distribution method provided herein and device, it is described in detail, herein
Apply specific case to be set forth the principle and implementation method of the application, the explanation of above example is only intended to help
Understand the present processes and its core concept;Simultaneously for those of ordinary skill in the art, according to the thought of the application,
Will change in specific embodiments and applications, in sum, this specification content should not be construed as to this
The limitation of application.
Claims (14)
1. a kind of method that station address is distributed, methods described is applied to first network server LNS, it is characterised in that described
Method includes:
Before distribution address, the first address is selected, determine the first address state of first address;
If first address state is unallocated state, user is distributed into first address.
2. method according to claim 1, it is characterised in that the first address state of determination first address it
Before, also include:
Obtain LNS address lists;
Determine that a LNS and the 2nd LNS backup each other relation according to the LNS address lists.
3. method according to claim 2, it is characterised in that the first address state of determination first address
Step includes:
First LNS sends the first message to the 2nd LNS, wherein, first message carries the first address;
The first feedback message of the 2nd LNS transmissions is obtained, the first address shape of the first address is carried in the first feedback message
State;
The first address state of the first address is obtained according to the first feedback message.
4. method according to claim 2, it is characterised in that:After first address is distributed into user, the side
Method also includes:
When first LNS reclaims the first address, a LNS sends the first notice message to the 2nd LNS, to notify second
LNS has reclaimed the first address.
5. method according to claim 2, it is characterised in that methods described also includes:
First LNS receives the second message that the 2nd LNS sends, wherein, second message carries the 2nd LNS for distributively
The second address that location is selected;
Second is sent to the 2nd LNS feed back message, wherein, carry two address second address shape in the second feedback message
State.
6. method according to claim 5, it is characterised in that:It is described to send the second feedback message to the 2nd LNS, including:
First LNS determines two address second address state;
If the second address is distribution state, distribution state is carried and is sent to the 2nd LNS in the second feedback message;
If the second address is unallocated state, the second address is locked, unallocated state is carried and is sent out in the second feedback message
Deliver to the 2nd LNS.
7. method according to claim 6, it is characterised in that methods described also includes:
First LNS receives the second notice message that the 2nd LNS sends, and second notice message is used to notify described first
LNS, the 2nd LNS has reclaimed the second address;
First LNS releases the two address lock-out state.
8. a kind of station address assigned unit, described device is applied to first network server LNS, it is characterised in that described
Device includes:
Determining module, for before distributing address information, selecting the first address, determines the first address shape of first address
State;
Distribute module, if being unallocated state for the first address state, user is distributed to by first address.
9. device according to claim 8, it is characterised in that described device also includes:
Acquisition module, for obtaining LNS address lists;First LNS and the 2nd LNS are determined each other according to the LNS address lists
Backup relation.
10. device according to claim 9, it is characterised in that described device also connects including the first sending module and first
Receipts module, first sending module,
For sending the first message to the 2nd LNS, wherein, first message carries the first address that determining module is selected;
First receiver module, for obtaining the first feedback message that the 2nd LNS sends, carries in the first feedback message
First address state of the first address;
The determining module, the first address state for obtaining the first address according to the first feedback message.
11. devices according to claim 8, it is characterised in that described device also includes:Recycling module and second sends mould
Block;
The recycling module, for reclaiming the first address;
Second sending module, for when the recycling module reclaims the first address, sending first to the 2nd LNS and notifying report
Text, to notify that the 2nd LNS has reclaimed the first address.
12. devices according to claim 8, it is characterised in that described device also includes:Second receiver module and the 3rd hair
Send module;
Second receiver module is used for, and receives the second message that the 2nd LNS sends, wherein, second message carries second
LNS is to distribute the second address that address is selected;
3rd sending module is used for, and sending second to the 2nd LNS feeds back message, wherein, taken in the second feedback message
Two address second address state of band.
13. devices according to claim 12, it is characterised in that described device also includes locking module;
The determining module is used for, and determines two address second address state;
If it is determined that it is distribution state that the determination result of module is the second address, then the 3rd sending module will distribute state and carry
Sent to the 2nd LNS in the second feedback message;
If it is determined that it is unallocated state that the determination result of module is the second address, then the locking module locks the second address, institute
The 3rd sending module is stated to send to the 2nd LNS the carrying of unallocated state in the second feedback message.
14. devices according to claim 13, it is characterised in that second receiver module, are additionally operable to receive the 2nd LNS
The second notice message for sending, second notice message is used to notify that a LNS has reclaimed the second address;
The locking module, for the second notice message received according to the second receiver module, releases described the two address
Lock-out state.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611195196.XA CN106899704A (en) | 2016-12-21 | 2016-12-21 | A kind of method and apparatus of station address distribution |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611195196.XA CN106899704A (en) | 2016-12-21 | 2016-12-21 | A kind of method and apparatus of station address distribution |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106899704A true CN106899704A (en) | 2017-06-27 |
Family
ID=59197896
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611195196.XA Pending CN106899704A (en) | 2016-12-21 | 2016-12-21 | A kind of method and apparatus of station address distribution |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106899704A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110913034A (en) * | 2019-11-27 | 2020-03-24 | 迈普通信技术股份有限公司 | IP address configuration method, device and network system |
CN113347285A (en) * | 2021-06-10 | 2021-09-03 | 新华三大数据技术有限公司 | Automatic allocation method, device and equipment for managing IP address |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102025790A (en) * | 2009-09-23 | 2011-04-20 | 中兴通讯股份有限公司 | Address allocation method, device and system |
US20110238793A1 (en) * | 2010-03-23 | 2011-09-29 | Juniper Networks, Inc. | Managing distributed address pools within network devices |
CN102647486A (en) * | 2012-04-28 | 2012-08-22 | 华为技术有限公司 | Address distributing method, address distributing equipment and address distributing system |
CN104468869A (en) * | 2014-12-31 | 2015-03-25 | 杭州华三通信技术有限公司 | Method for allocating IP addresses to terminals and method and device for obtaining IP addresses |
-
2016
- 2016-12-21 CN CN201611195196.XA patent/CN106899704A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102025790A (en) * | 2009-09-23 | 2011-04-20 | 中兴通讯股份有限公司 | Address allocation method, device and system |
US20110238793A1 (en) * | 2010-03-23 | 2011-09-29 | Juniper Networks, Inc. | Managing distributed address pools within network devices |
CN102647486A (en) * | 2012-04-28 | 2012-08-22 | 华为技术有限公司 | Address distributing method, address distributing equipment and address distributing system |
CN104468869A (en) * | 2014-12-31 | 2015-03-25 | 杭州华三通信技术有限公司 | Method for allocating IP addresses to terminals and method and device for obtaining IP addresses |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110913034A (en) * | 2019-11-27 | 2020-03-24 | 迈普通信技术股份有限公司 | IP address configuration method, device and network system |
CN113347285A (en) * | 2021-06-10 | 2021-09-03 | 新华三大数据技术有限公司 | Automatic allocation method, device and equipment for managing IP address |
CN113347285B (en) * | 2021-06-10 | 2022-05-31 | 新华三大数据技术有限公司 | Automatic allocation method, device and equipment for managing IP address |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106331098B (en) | Server cluster system | |
US20220179682A1 (en) | Task processing method, apparatus, and system based on distributed system | |
CN108959621A (en) | A kind of implementation method, device, equipment and the storage medium of block chain network | |
CN111831485B (en) | Data recovery method, device, electronic equipment and medium | |
CN104657158B (en) | The method and apparatus of business processing in a kind of operation system | |
CN106713982A (en) | Screen protection method and system of smart television | |
JP4833220B2 (en) | Method, system, and program for dividing client resources by local authority | |
CN107147659A (en) | A kind of method and system for preventing to repeat | |
CN106899704A (en) | A kind of method and apparatus of station address distribution | |
CN106888245A (en) | A kind of data processing method, apparatus and system | |
CN106326226A (en) | Method and system for starting database service on public cloud | |
CN106572137A (en) | Distributed service resource management method and apparatus | |
CN102238245B (en) | Address allocation method and equipment | |
CN106060189A (en) | Distributed domain name registration system | |
CN107196777A (en) | A kind of method and apparatus of application processing | |
CN105898787A (en) | Method for recovering communication of base station in failure weakening condition, base station, device and communication device | |
CN109165712B (en) | Method and device for generating distributed option number and computer storage medium | |
CN107810501A (en) | Heterogeneous cache is filled | |
CN106899705A (en) | A kind of method and apparatus of station address distribution | |
CN106682198B (en) | Method and device for realizing automatic database deployment | |
CN108124022B (en) | Network address translation management method and device | |
CN111756784B (en) | Session method, session device, computer equipment and medium | |
CN105007233B (en) | A kind of method that distribution address is loaded based on Dynamic Host Configuration Protocol server cluster | |
CN106060124A (en) | Application program downloading method and mobile terminal | |
CN112306755B (en) | High-availability implementation method and system based on micro front-end architecture |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170627 |
|
RJ01 | Rejection of invention patent application after publication |