CN106899705A - A kind of method and apparatus of station address distribution - Google Patents

A kind of method and apparatus of station address distribution Download PDF

Info

Publication number
CN106899705A
CN106899705A CN201611195406.5A CN201611195406A CN106899705A CN 106899705 A CN106899705 A CN 106899705A CN 201611195406 A CN201611195406 A CN 201611195406A CN 106899705 A CN106899705 A CN 106899705A
Authority
CN
China
Prior art keywords
address
lns
equipment
pool
shared
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201611195406.5A
Other languages
Chinese (zh)
Inventor
章靠
廖以顺
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
New H3C Technologies Co Ltd
Original Assignee
New H3C Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by New H3C Technologies Co Ltd filed Critical New H3C Technologies Co Ltd
Priority to CN201611195406.5A priority Critical patent/CN106899705A/en
Publication of CN106899705A publication Critical patent/CN106899705A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5046Resolving address allocation conflicts; Testing of addresses
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5061Pools of addresses

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, methods described is applied to first network server LNS, and methods described includes:Confirm shared address pool;The first Address requests message is sent to the first equipment, first equipment is the equipment where shared address pool;The first address feedback message is received, the first address is carried in the first address feedback message, first address is the unappropriated address that first equipment is selected from shared address pool;User is distributed into first address, so as to solve the problems, such as that distributing address at present wastes.

Description

A kind of method and apparatus of station address distribution
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) technology that is packaged to link layer data bag 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 main LNS distribution Be allocated to again under alternative LNS to the address information of user hang it is standby, so as to cause distribute address conflict problem.
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 alternative 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 address waste problem at present.
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:
Confirm shared address pool;
The first Address requests message is sent to the first equipment, first equipment is the equipment where shared address pool;
The first address feedback message is received, the first address, first address are carried in the first address feedback message For the unappropriated address that first equipment is selected from shared address pool;
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, methods described is applied to First network server LNS, described device includes:
Module is confirmed, for confirming shared address pool;
First sending module, for sending the first Address requests message to the first equipment, first equipment is shared ground Equipment where the pond of location;
Receiver module, for receiving the first address feedback message, the first address is carried in the first address feedback message, First address is the unappropriated address that first equipment is selected from shared address pool;
Distribute module, for first address to be distributed into user.
Compared with prior art, the application includes advantages below:
First, the application first network server confirms shared address pool, and the first Address requests report is sent to the first equipment Text, first equipment is the equipment where shared address pool, receives the first address feedback message, the first address feedback report The first address is carried in text, first address is the unappropriated address that first equipment is selected from shared address pool; User is distributed into first address, by confirming shared address pool, is divided without to address pool, alleviate to address The complexity of pond planning, while reserved need not also distribute address, and then solves the problems, such as that user's distribution address wastes, meanwhile, User is distributed into unappropriated address in shared address pool, so as to avoid the conflict of distribution address.
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 structured flowchart of station address distributor of the application implementation method;
Fig. 8 is a kind of structured flowchart of station address distributor of another implementation method of the application;
Fig. 9 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.One 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:Confirm shared address pool.
Step 202:The first Address requests message is sent to the first equipment, where first equipment is shared address pool Equipment.
Wherein, the first equipment can be the first LNS, or the 2nd LNS, or independently of a LNS and The other equipment of two LNS, for example:Aaa server or the 3rd LNS etc., are not particularly limited to this application.
It should be noted that when a LNS need to user distribute address when, its not as the first equipment, when except first When other equipment outside LNS needs to distribute address to user, a LNS can be as the first equipment.
Step 203:The first address feedback message is received, the first address is carried in the first address feedback message, it is described First address is the unappropriated address that first equipment is selected from shared address pool.
Wherein, the first address is unappropriated address, and it is idle that unappropriated address can be understood as first address Address or first address are not used by.
Step 204:User is distributed into first address.
Present embodiment, first, the application first network server confirms shared address pool, and first is sent to the first equipment Address requests message, first equipment is the equipment where shared address pool, receives the first address feedback message, described first The first address is carried in the feedback message of address, first address is not dividing of being selected from shared address pool of first equipment The address matched somebody with somebody;User is distributed into first address, by confirming shared address pool, is divided without to address pool, subtract The light complexity to address pool planning, at the same also need not reserved distribution address, and then solve what user's distribution address wasted Problem, meanwhile, user is distributed into unappropriated address in shared address pool, so as to avoid the conflict of distribution address.
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:Confirm shared address pool.
Shared address pool can in the following manner be confirmed:
One kind is achieved in that:First LNS obtains shared address pool according to static configuration.
Another kind is achieved in that:Obtain LNS address lists, according to LNS address lists determine the address pool of a LNS with The address pool of the 2nd LNS shares address pool each other.
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, the address information of the LNS carried by the property value in AVP message, according to the ground of the LNS for carrying Location information sets up LNS address lists, it is also possible to after a LNS and Layer 2 Tunneling Protocol LAC LAC set up tunnel, The address information of the LNS carried by the property value in AVP (Attribute Value Pair, property value to) message, according to The address information of the LNS of carrying sets up LNS address lists, it would however also be possible to employ other modes, and this application is not particularly limited.
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.
Further, determine that the address pool of a LNS shares with ground each other with the address pool of the 2nd LNS according to LNS address lists Location pond includes:
First LNS sends the first message to the 2nd LNS, obtains the address information of the 2nd LNS.
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 2nd LNS address pools in address information etc..
The address information of address information and a LNS according to the 2nd LNS obtains shared address pool.
Wherein, using the identical address information fields in a LNS and the 2nd LNS as shared address pool address information Field.
Step 302:The first Address requests message is sent to the first equipment, where first equipment is shared address pool Equipment.
Step 303:The first address feedback message is received, the first address is carried in the first address feedback message, it is described First address is the unappropriated address that first equipment is selected from shared address pool.
Step 304:User is distributed into first address, and status indication is set to the first address.
Wherein in an implementation method, status indication can also be set to address.Such as, mark or unallocated mark have been distributed Note.
The first address selected from shared address pool is distributed to after user, and the first equipment can set to the first address Allocated status indication is put, is distributed with avoiding first address from participating in address again.For example:Allocated status indication can be with " 1 " or " 0 " is set to, this application is not particularly limited.
It should be noted that above-mentioned mentioned status indication is only to further understand the example of the application, and without The particular content of status indicator in the application implementation method is limited.
After first LNS dispenses the first address, the first address in oneself address pool can also be set and divide With status indication.Shared address pool is obtained such as the address information for the address information of the 2nd LNS and a LNS according to Situation, now, the 2nd LNS selects the first address, and distributed status indication by the setting of the first address as the first equipment;Enter First address is also set and has distributed status indication by one step a, LNS.So, subsequently either a LNS or the first equipment Go again distribution address when, all without by status indication for allocated first address dispenses.In the shape of follow-up first address After state mark is changed into unallocated, the first address can again participate in address distribution.
Present embodiment, first, the application first network server confirms shared address pool, and first is sent to the first equipment Address requests message, first equipment is the equipment where shared address pool, receives the first address feedback message, described first The first address is carried in the feedback message of address, first address is not dividing of being selected from shared address pool of first equipment The address matched somebody with somebody;User is distributed into first address, by confirming shared address pool, is divided without to address pool, subtract The light complexity to address pool planning, at the same also need not reserved distribution address, and then solve what user's distribution address wasted Problem, meanwhile, unappropriated address in shared address pool distributed into user, so as to the conflict for avoiding distribution address is asked Topic.
Secondly, by setting status indication to the first address, the first equipment can determine shared address according to status indication Address in pond can use or can not use, while realizing that address information is shared, it is also possible to avoid distribution address from rushing Prominent 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:Confirm shared address pool.
Step 402:The first Address requests message is sent to the first equipment, where first equipment is shared address pool Equipment.
Step 403:The first address feedback message is received, the first address is carried in the first address feedback message, it is described First address is the unappropriated address that first equipment is selected from shared address pool.
Step 404:User is distributed into first address.
Step 405:Reclaim the first address.
When first LNS reclaims the first address, such as work as link failure, first between user offline or a LNS and user LNS sends the first notice message to the first equipment, to notify that the first equipment has reclaimed the first address.
The first address is reclaimed in the following manner:First LNS is according to the first address lease ageing time or timing Device ageing time, reclaims the first address, it would however also be possible to employ other modes reclaim the first address, for example, a LNS is to the first equipment Receiving text is sent back, the recovery message is used to notify the first equipment, reclaims the first address, and this application is not particularly limited, After first address is recovered, address point can be continued to participate in again as the unappropriated address information in shared address pool Match somebody with somebody.
Wherein, lease ageing time or timer ageing time have been arrived in the first address, then reclaim the first address, and delete The corresponding lease information in first address, after the first address is recovered, can again as unappropriated in shared address pool Location information, 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.
Present embodiment, sends the first notice message, to notify that the first equipment has been reclaimed by a LNS to the first equipment First address, the address reclaimed can again participate in address distribution, so as to improve the address information in shared address pool Utilization rate, in the process, can set unallocated status indication to the address reclaimed, and it is participated in address and distribute.
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.It is the first equipment that methods described is applied to first network server LNS, a LNS, in the present embodiment, should Station address distribution method is specifically included:
Step 501:LNS address lists are obtained, address pool in a LNS and the is determined according to the LNS address lists Address pool in two LNS shares address pool each other.
Step 502:First LNS receives the second Address requests message that the 2nd LNS sends, wherein, second ground Carried in the request message of location and obtain Address requests.
Step 503:The second address feedback message is sent to the 2nd LNS, wherein, carried in the second address feedback message Second address, second address is the unappropriated address that a LNS is selected from shared address pool.
First LNS can also lock second address, and status indication has been distributed the second address for as described in is set.
Lock address, can distribute status indication realization, it is also possible to mark or setting by setting other by setting Relevant parameter is realized, as long as locked address is no longer participate in address distribution, specific lock mode is not limited herein.
First LNS sends the second address feedback message to the 2nd LNS, to inform that the 2nd the second addresses of LNS can use, says A bright LNS does not use the address information.
First LNS locks the second address, while the 2nd LNS can also lock the second address, so when the 2nd LNS carries out ground When location is distributed, the problem of address conflict is not resulted in.
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 first equipment as main LNS, tunnel is individually set up with LAC and address generation address conflict is distributed Problem, can first determine whether whether the first equipment has LNS address lists, if so, then the first equipment can land used from larger Location starts 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 first equipment can also be from Less available address starts to obtain distribution address.The method for obtaining distribution address, as long as can reach avoiding address to distribute as far as possible Conflict is produced, the method to this application not to specific distribution address is limited.
Present embodiment, first, the application first network server confirms shared address pool, and first is sent to the first equipment Address requests message, first equipment is the equipment where shared address pool, receives the first address feedback message, described first The first address is carried in the feedback message of address, first address is not dividing of being selected from shared address pool of first equipment The address matched somebody with somebody;User is distributed into first address, by confirming shared address pool, is divided without to address pool, subtract The light complexity to address pool planning, at the same also need not reserved distribution address, and then solve what user's distribution address wasted Problem, meanwhile, user is distributed into unappropriated address in shared address pool, so as to avoid the conflict of distribution address.
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, the address pool and second of a LNS is determined according to the LNS address lists The address pool of LNS shares address pool each other.
Step 602:First LNS receives the second Address requests message that the 2nd LNS sends, wherein, second ground Carried in the request message of location and obtain Address requests.
Step 603:The second address feedback message is sent to the 2nd LNS, wherein, carried in the second address feedback message Second address, second address is the unappropriated address that a LNS is selected from shared address pool.
After 2nd LNS receives the second address feedback message of LNS transmissions, use is distributed into second address Family.
Step 604:First LNS receives the second notice message that the 2nd LNS sends, and second notice message is used to notify First LNS, the 2nd LNS has reclaimed the second address.When 2nd LNS reclaims the second address, such as when user offline or the 2nd LNS with Between user during link failure, the 2nd LNS reclaims the second address, and the second notice message is sent to a LNS, described Second notice message is used to notify that a LNS, the 2nd LNS have reclaimed the 2nd LNS described in the second address in the following manner The second address is reclaimed, the 2nd LNS reclaims the second ground according to address information lease ageing time or timer ageing time Location, after second address is recovered, can continue to participate in address again as the unappropriated address information in shared address pool 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 605:First LNS releases the two address lock-out state.
First LNS releases two address lock-out state, after second address unlocks, can again as altogether The unappropriated address information in address pool is enjoyed, address distribution is continued to participate in.
Present embodiment, first, receives the 2nd LNS and sends the second notice message by a LNS, to notify a LNS, 2nd LNS has reclaimed the second address, 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.
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 7, shows a kind of station address assigned unit structured flowchart in the application implementation method.Described device First network server LNS is applied to, in the present embodiment, the device is specifically included:
Module 701 is confirmed, for confirming shared address pool.
Wherein in a kind of implementation method, module is confirmed specifically for obtaining LNS address lists, according to the LNS addresses List determines that the address pool of a LNS shares address pool each other with the address pool of the 2nd LNS.
Wherein in a kind of implementation method, the confirmation module is used to obtain shared address pool according to static configuration.
First sending module 702, for sending the first Address requests message to the first equipment, first equipment is shared Equipment where address pool.
First receiver module 703, for receiving the first address feedback message, carries the in the feedback message of first address One address, first address is the unappropriated address that first equipment is selected from shared address pool.
Distribute module 704, for first address to be distributed into user.
Present embodiment, first, the application first network server confirms shared address pool, and first is sent to the first equipment Address requests message, first equipment is the equipment where shared address pool, receives the first address feedback message, described first The first address is carried in the feedback message of address, first address is not dividing of being selected from shared address pool of first equipment The address matched somebody with somebody;User is distributed into first address, by confirming shared address pool, is divided without to address pool, subtract The light complexity to address pool planning, at the same also need not reserved distribution address, and then solve what user's distribution address wasted Problem, meanwhile, unappropriated address in shared address pool distributed into user, so as to the conflict for avoiding distribution address is asked Topic.
Reference picture 8, shows a kind of station address assigned unit structured flowchart in the application implementation method.Described device First network server LNS is applied to, in the present embodiment, the device is specifically included:
Confirm module 801, for obtaining LNS address lists, the address of a LNS is determined according to the LNS address lists Address pool is shared each other with the address pool of the 2nd LNS in pond.
First sending module 802, for sending the first Address requests message to the first equipment, first equipment is shared Equipment where address pool.
First receiver module 803, for receiving the first address feedback message, carries the in the feedback message of first address One address, first address is the unappropriated address that first equipment is selected from shared address pool.
Distribute module 804, for first address to be distributed into user.
The recycling module 805, for reclaiming first address.
Second sending module 806, for when the recycling module reclaims first address, a LNS to be to the One equipment sends the first notice message, to notify that the first equipment has reclaimed the first address.
Present embodiment, sends the first notice message, to notify that the first equipment has been reclaimed by a LNS to the first equipment First address, the address reclaimed can again participate in address distribution, so as to improve the address information in shared address pool Utilization rate, in the process, can set unallocated status indication to the address reclaimed, and it is participated in address and distribute.
Reference picture 9, shows a kind of station address assigned unit structured flowchart in the application implementation method.Described device It is the first equipment to be applied to first network server LNS, a LNS, and in the present embodiment, the device is specifically included:
Confirm module 901, for obtaining LNS address lists, the address of a LNS is determined according to the LNS address lists Address pool is shared each other with the address pool of the 2nd LNS in pond.
Second receiver module 902, for receiving the second Address requests message that the 2nd LNS sends, wherein, described the Carried in double-address request message and obtain Address requests.
Selecting module 903, for selecting unappropriated second address from shared address pool.First sending module 904, uses Message is fed back in the second address is sent to the 2nd LNS, wherein, the second address is carried in the second address feedback message, it is described Second address is the unappropriated address that a LNS is selected from shared address pool.
Locking module 905, for locking the second address.
Wherein in a kind of implementation method, the locking module is additionally operable to release the two address lock-out state.
The application implementation method, first, the application first network server confirms shared address pool, is sent to the first equipment First Address requests message, first equipment is the equipment where shared address pool, receives the first address feedback message, described The first address is carried in the feedback message of first address, first address is that first equipment is selected from shared address pool Unappropriated address;User is distributed into first address, by confirming shared address pool, 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, meanwhile, user is distributed into unappropriated address in shared address pool, the conflict of address is distributed so as to avoid Problem.
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, Related part is illustrated referring to the part of shown embodiment of the method.
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, server computer, handheld device or portable set, laptop device, multicomputer system, base System, set top box, programmable consumer-elcetronics devices in microprocessor, network PC, minicom, mainframe computer, bag Include DCE of any of the above system or equipment 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.Cause This, the application can be using the shape of the embodiment in terms of complete hardware embodiment, complete software embodiment or combination software and hardware Formula.And, the application can be used can use storage in one or more computers for wherein including computer usable program code The form of the computer program product implemented on medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.).
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 (12)

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:
Confirm shared address pool;
The first Address requests message is sent to the first equipment, first equipment is the equipment where shared address pool;
The first address feedback message is received, the first address is carried in the first address feedback message, first address is institute State the unappropriated address that the first equipment is selected from shared address pool;
User is distributed into first address.
2. method according to claim 1, it is characterised in that address pool is shared in the confirmation, including:
Obtain LNS address lists;
Determine that the address pool of a LNS shares address pool each other with the address pool of the 2nd LNS according to the LNS address lists;
Or, shared address pool is obtained according to static configuration.
3. method according to claim 2, it is characterised in that methods described, also includes:
When first LNS reclaims first address, a LNS sends the first notice message to the first equipment, with logical Know that the first equipment has reclaimed the first address.
4. method according to claim 2, it is characterised in that methods described includes:
First LNS is the first equipment;
First LNS receives the second Address requests message that the 2nd LNS sends, wherein, in the second Address requests message Carry and obtain Address requests;
The second address feedback message is sent to the 2nd LNS, wherein, carry the second address, institute in the second address feedback message It is the unappropriated address that a LNS is selected from shared address pool to state the second address.
5. method according to claim 4, it is characterised in that:Methods described also includes:
First LNS locks the second address.
6. method according to claim 5, 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.
7. a kind of station address assigned unit, methods described is applied to first network server LNS, it is characterised in that described Device includes:
Module is confirmed, for confirming shared address pool;
First sending module, for sending the first Address requests message to the first equipment, first equipment is shared address pool The equipment at place;
First receiver module, for receiving the first address feedback message, the first address is carried in the first address feedback message, First address is the unappropriated address that first equipment is selected from shared address pool;
Distribute module, for first address to be distributed into user.
8. device according to claim 7, it is characterised in that the confirmation module, specifically for obtaining LNS address columns Table;Determine that a LNS and the 2nd LNS share address pool each other according to the LNS address lists;
Or, the confirmation module is additionally operable to obtain shared address pool according to static configuration.
9. device 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 first address;
Second sending module, for when the recycling module reclaims first address, sending first to the first equipment and notifying Message, to notify that the first equipment has reclaimed the first address
10. device according to claim 8 a, it is characterised in that LNS is the first equipment, described device is also wrapped Include:Second receiver module and selecting module;
Second receiver module, for receiving the second Address requests message that the 2nd LNS sends, wherein, second address Carried in request message and obtain Address requests;
The selecting module, for selecting unappropriated second address from shared address pool;
First sending module, is additionally operable to send the second address feedback message to the 2nd LNS, wherein, the second address feedback report The second address is carried in text.
11. devices according to claim 10, it is characterised in that:Described device also includes:
Locking module, for locking the second address.
12. devices according to claim 11, it is characterised in that
Second receiver module, is additionally operable to receive the second notice message that the 2nd LNS sends, and second notice message is used for Notify that a LNS, the 2nd LNS have reclaimed the second address;
The locking module, is additionally operable to release the two address lock-out state.
CN201611195406.5A 2016-12-21 2016-12-21 A kind of method and apparatus of station address distribution Pending CN106899705A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611195406.5A CN106899705A (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
CN201611195406.5A CN106899705A (en) 2016-12-21 2016-12-21 A kind of method and apparatus of station address distribution

Publications (1)

Publication Number Publication Date
CN106899705A true CN106899705A (en) 2017-06-27

Family

ID=59198969

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611195406.5A Pending CN106899705A (en) 2016-12-21 2016-12-21 A kind of method and apparatus of station address distribution

Country Status (1)

Country Link
CN (1) CN106899705A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110913034A (en) * 2019-11-27 2020-03-24 迈普通信技术股份有限公司 IP address configuration method, device and network system

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101272403A (en) * 2008-05-27 2008-09-24 华为技术有限公司 Method, system and device for implementing DHCP user service wholesale
CN102025528A (en) * 2009-09-23 2011-04-20 中兴通讯股份有限公司 Address management method, device and system
CN102148881A (en) * 2011-03-30 2011-08-10 华为技术有限公司 Address processing method and device
CN102447752A (en) * 2012-02-09 2012-05-09 杭州华三通信技术有限公司 Service access method, system and device based on layer2 tunnel protocol (L2TP)
CN102685270A (en) * 2012-05-25 2012-09-19 杭州华三通信技术有限公司 Method and equipment for distributing dynamic addresses
WO2014036885A1 (en) * 2012-09-07 2014-03-13 中兴通讯股份有限公司 Method, device and system for implementing address sharing
CN104243625A (en) * 2013-06-08 2014-12-24 中国移动通信集团河南有限公司 IP address distribution method and device
CN104468869A (en) * 2014-12-31 2015-03-25 杭州华三通信技术有限公司 Method for allocating IP addresses to terminals and method and device for obtaining IP addresses
CN106060187A (en) * 2016-05-26 2016-10-26 杭州华三通信技术有限公司 Address allocation methods and devices

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101272403A (en) * 2008-05-27 2008-09-24 华为技术有限公司 Method, system and device for implementing DHCP user service wholesale
CN102025528A (en) * 2009-09-23 2011-04-20 中兴通讯股份有限公司 Address management method, device and system
EP2482499A1 (en) * 2009-09-23 2012-08-01 ZTE Corporation Method, apparatus, system for address management
CN102148881A (en) * 2011-03-30 2011-08-10 华为技术有限公司 Address processing method and device
CN102447752A (en) * 2012-02-09 2012-05-09 杭州华三通信技术有限公司 Service access method, system and device based on layer2 tunnel protocol (L2TP)
CN102685270A (en) * 2012-05-25 2012-09-19 杭州华三通信技术有限公司 Method and equipment for distributing dynamic addresses
WO2014036885A1 (en) * 2012-09-07 2014-03-13 中兴通讯股份有限公司 Method, device and system for implementing address sharing
CN104243625A (en) * 2013-06-08 2014-12-24 中国移动通信集团河南有限公司 IP address distribution method and device
CN104468869A (en) * 2014-12-31 2015-03-25 杭州华三通信技术有限公司 Method for allocating IP addresses to terminals and method and device for obtaining IP addresses
CN106060187A (en) * 2016-05-26 2016-10-26 杭州华三通信技术有限公司 Address allocation methods and devices

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110913034A (en) * 2019-11-27 2020-03-24 迈普通信技术股份有限公司 IP address configuration method, device and network system

Similar Documents

Publication Publication Date Title
CN108959621A (en) A kind of implementation method, device, equipment and the storage medium of block chain network
CN108920116A (en) Throw control method, device, equipment and the storage medium of screen equipment
CN103703464B (en) Method and device for decentralized configuration management
CN105630267B (en) View interface method for managing resource and device
CN109753364A (en) A kind of implementation method, equipment and the medium of network-based distributed lock
CN104657158B (en) The method and apparatus of business processing in a kind of operation system
CN109886693B (en) Consensus realization method, device, equipment and medium for block chain system
WO2021169274A1 (en) Historical map data processing method, apparatus and system
CN103559319B (en) The cache synchronization method and equipment of distributed cluster file system
CN111260474B (en) Asset transaction method, device, equipment, system and storage medium of cross-blockchain
CN104268001B (en) A kind of method for creating virtual machine and the device for creating virtual machine
JP4833220B2 (en) Method, system, and program for dividing client resources by local authority
CN107301091A (en) Resource allocation methods and device
CN106911648A (en) One kind is environmentally isolated method and apparatus
CN106326226A (en) Method and system for starting database service on public cloud
CN106713982A (en) Screen protection method and system of smart television
CN106250487A (en) A kind of database concurrency control method and device
CN106899704A (en) A kind of method and apparatus of station address distribution
CN110162397A (en) Resource allocation methods, apparatus and system
CN109165712B (en) Method and device for generating distributed option number and computer storage medium
CN106899705A (en) A kind of method and apparatus of station address distribution
CN107810501A (en) Heterogeneous cache is filled
CN111756784B (en) Session method, session device, computer equipment and medium
CN107465725A (en) Isomery remote business disposal system and method based on CICS
CN106850354A (en) A kind of processing method and processing device of Single Point of Faliure

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: 20170627