CN105227694B - For realizing the device and method of IPv6 prefix assignments - Google Patents

For realizing the device and method of IPv6 prefix assignments Download PDF

Info

Publication number
CN105227694B
CN105227694B CN201510655681.XA CN201510655681A CN105227694B CN 105227694 B CN105227694 B CN 105227694B CN 201510655681 A CN201510655681 A CN 201510655681A CN 105227694 B CN105227694 B CN 105227694B
Authority
CN
China
Prior art keywords
prefix
user
user terminal
state
ipv6
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.)
Active
Application number
CN201510655681.XA
Other languages
Chinese (zh)
Other versions
CN105227694A (en
Inventor
鄢文晋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Star Net Ruijie Networks Co Ltd
Original Assignee
Beijing Star Net Ruijie Networks Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Star Net Ruijie Networks Co Ltd filed Critical Beijing Star Net Ruijie Networks Co Ltd
Priority to CN201510655681.XA priority Critical patent/CN105227694B/en
Publication of CN105227694A publication Critical patent/CN105227694A/en
Application granted granted Critical
Publication of CN105227694B publication Critical patent/CN105227694B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2101/00Indexing scheme associated with group H04L61/00
    • H04L2101/60Types of network addresses
    • H04L2101/618Details of network addresses
    • H04L2101/659Internet protocol version 6 [IPv6] addresses

Landscapes

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

Abstract

The present invention relates to the communications fields, disclose a kind of device and method for realizing IPv6 prefix assignments.Wherein described device includes:Receiver, for receiving RS (Router Solicitation, the router solicitation) message sent by user terminal;Processor, for distributing IPv6 prefixes according to the distribution state of multiple IPv6 prefixes included in the RS messages and the processor for the user terminal, wherein the multiple IPv6 prefixes include single user prefix and multi-user's prefix;And transmitter, for sending distributed IPv6 prefixes to the user terminal.

Description

For realizing the device and method of IPv6 prefix assignments
Technical field
The present invention relates to the communications fields, and in particular, to a kind of device and method for realizing IPv6 prefix assignments.
Background technology
IPv6 (Internet Protocol Version 6) is second generation Internet protocol, currently used for replacing IPv4 (Internet Protocol Version 4) agreement.The feature of IPv6 agreements itself maximum is that address space significantly expands Greatly, codified position is equivalent to by 32 Bits Expandings of IPv4 to 128 and extends 296Times.
The addresses IPv6 include three types, are unicast address, multicast address and anycast address respectively.So-called unicast Location refers to the address that can uniquely determine a certain equipment;So-called multicast address refers to the address for corresponding to multiple devices;It is so-called Anycast address, refer to corresponding to the address of wherein any one equipment, anycast address can within the scope of given multiple devices To be interpreted as unicast address in a certain range.
Wherein, the unicast address of IPv6 can be continued with being divided into link local according to the scope of application of address Location, site-local address, global unicast address etc..Link local address is to act on specific a certain link, is not involved in routing and turns Hair is commonly used in the neighbor learning of link-local.Link local address is generally started with FE80.Site-local address is currently Substantially do not have to, primarily to compatible with passing realization holding and exist.Site-local address is addressed for Intra-site, one As started with FEC0.Global unicast address is the address that can be communicated with external any one host, participates in routing forwarding.
Herein, if subsequent processing does not indicate, the addresses IPv6 each mean global unicast address, corresponding prefix It refer to the prefix of IPv6 global unicast address.
The addresses IPv6 are being constituted above as IPv4, using network prefix plus host identification.In order to avoid IPv4 prefixes point The irrationality matched and the serious unevenness for causing address to be distributed, IPv6 address prefixes are usually distribute a regular length 48 IPv6 prefixes, subsequently by user oneself subnet division, the length of subnet prefix is 16.In this way, for arbitrary user, Prefix acquisition is fair, and total is 48.
Since preceding 48 prefix lengths are usually fixed allocation, user oneself can not determine.Therefore the prefix said herein Distribution, refers to the assignment problem of rear 16 subnet prefixes.
For current existing prefix assignment scheme, it is broadly divided into following several classes:
(1) in a specific Intra-site, divided by ND (Neighbor Discovery, neighbours have found) agreement Match.ND agreements are, it is specified that IPv6 carries out two layers of neighbor learning, prefix study, the correlations such as router study in same link-local The realization method of function.Each host obtains prefix by router, and generates respective global unicast address according to prefix, in turn With PERCOM peripheral communication.Here there are mainly two types of the modes for obtaining prefix:
Mode 1:Router periodic broadcasting RA (Router Advertisement, router advertisement) message is right to terminal The broadcast RA messages answered can carry corresponding prefix information, after terminal gets the prefix information, that is, utilize the prefix to generate Corresponding global unicast address.
Mode 2:After a certain host is associated with router, RS (Router Solicitation, road can be actively sent at this time Asked by device) message, router is after receiving RS messages, and feedback unicast RA messages are to terminal.It is raw after terminal gets prefix At global unicast address.
The advantages of this prefix assignment mode is:Prefix assignment is carried out based on IPv6ND agreements, is realized simply, as long as general It supports IPv6 functions, just can support this prefix assignment mode.It does not need user terminal and provides additional support with server.
Disadvantage:This prefix assignment mode is that the prefix of each terminal distribution is all identical, is unable to reach and utilizes prefix The purpose that user is identified.
(2) pass through DHCPv6 (Dynamic Host Configuration Protocol for IPv6, for IPv6's Dynamic host configuration protocol) protocol realization can be that different users distributes when distributing IPv6 prefixes by DHCPv6 for user Different prefixes.
Principle:User terminal sends prefix application message, DHCPv6 services by being used as client, to DHCPv6 server-sides Request of the end according to client, makes judgement appropriate, if client request meets current judgement, to user terminal feedback one A prefix information.
Advantage:Can be that different users distributes different prefixes.It is convenient to distinguish user using prefix.Before this Sew that user terminal and the interactive means of server-side in distribution method are more rich, client can be interacted with server-side from Prefix, to prevent server-side from redistributing identical prefix.Finally, which autgmentability is preferable, utilizes relaying technique, Ke Yishi Existing DHCPv6 server-sides and client no longer the same network segment when prefix assignment function.
Disadvantage:It is relative complex in realization, it needs to support DHCPv6 agreements.This method is not particularly suited for arbitrary terminal, than Such as using relatively broad window xp, DHCPv6 client functionalities are not just supported.
(3) it is allocated by certain strategy, i.e., by specified certain rule, user is distributed to according to rule generation Prefix.
Principle:This technology is a kind of combination and extension to method (1) and method (2).By setting certain rule Then, the distribution object of prefix is determined.User terminal can be divided into several groups according to rule, different component matches different prefixes, User terminal in group obtains identical prefix.Furthermore it is possible to judge user characteristics, only user's correlated characteristic meets Demand can be just that user distributes prefix.
Advantage:Prefix assignment mode substantially envisages the feature of user, stronger for the control of user behavior.
Disadvantage:Realize complexity the most, the server-side as prefix assignment needs to judge the feature of user, and needs Preserve a rule base.
In conclusion in above-mentioned three kinds of allocation plans, scheme (1), which can not be realized, knows user using prefix Not, scheme (2) needs to rely on specific application terminal to complete prefix assignment, and the implementation method of scheme (3) is too simple.Cause This, this invention address that realizing that one kind not only not depended on specific application terminal, but also can reach and be known to user using prefix Other purpose, while realizing easy prefix assignment mode.
Invention content
The object of the present invention is to provide a kind of device and methods for realizing IPv6 prefix assignments, can realize IPv6 Prefix dynamically distributes, and realizes simplicity, and deployment is quick.
To achieve the goals above, the present invention provides a kind of device for realizing IPv6 prefix assignments, which includes: Receiver, for receiving RS (Router Solicitation, the router solicitation) message sent by user terminal;Processor, For according to the distribution state of multiple IPv6 prefixes included in the RS messages and the processor come for the user end End distribution IPv6 prefixes, wherein the multiple IPv6 prefixes include single user prefix and multi-user's prefix;And transmitter, it is used for Distributed IPv6 prefixes are sent to the user terminal.
Correspondingly, the present invention also provides a kind of method for realizing IPv6 prefix assignments, this method includes:Receive by with RS (Router Solicitation, router solicitation) message that family terminal is sent;According to the RS messages and multiple IPv6 The distribution state of prefix is distributed IPv6 prefixes for the user terminal, wherein the multiple IPv6 prefixes include single user prefix With multi-user's prefix;And distributed IPv6 prefixes are sent to the user terminal.
Through the above technical solutions, according to RS messages and multiple IPv6 prefixes (before being divided into single user prefix and multi-user Sew) distribution state come for user terminal distribute IPv6 prefixes, following advantages may be implemented:(1) prefix assignment side of the invention Formula can realize to be that different user distributes different prefixes as possible, be separated to user by prefix and behaviour control, reach energy The purpose that enough user is identified using prefix;(2) prefix assignment mode of the invention is not relying on specific application terminal And realize, as long as support IPv6 functions, can support prefix assignment mode provided by the present invention, do not need user terminal and Server provides additional support;(3) prefix assignment mode of the invention can be based on ND agreements or be based on DHCPv6 agreements It completes prefix assignment, realizes easy, deployment is quick.
Other features and advantages of the present invention will be described in detail in subsequent specific embodiment part.
Description of the drawings
Attached drawing is to be used to provide further understanding of the present invention, an and part for constitution instruction, with following tool Body embodiment is used to explain the present invention together, but is not construed as limiting the invention.In the accompanying drawings:
Fig. 1 shows the structural schematic diagram of the device provided by the present invention for realizing IPv6 prefix assignments;
Fig. 2 shows the transition diagrams between the distribution state of IPv6 prefixes and each state;
Fig. 3 shows that the present invention realizes the flow diagram of IPv6 prefix assignments;And
Fig. 4 shows the flow diagram of recycling IPv6 prefixes.
Reference sign
10 receiver, 20 processor
30 transmitters
Specific implementation mode
The specific implementation mode of the present invention is described in detail below in conjunction with attached drawing.It should be understood that this place is retouched The specific implementation mode stated is merely to illustrate and explain the present invention, and is not intended to restrict the invention.
Fig. 1 shows the structural schematic diagram of the device provided by the present invention for realizing IPv6 prefix assignments.Such as Fig. 1 institutes Show, provided by the present invention for the device of realization IPv6 prefix assignments, which may include:Receiver 10, for receive by RS (Router Solicitation, router solicitation) message that user terminal is sent;Processor 20, for according to the RS The distribution state of multiple IPv6 prefixes included in message and the processor is distributed IPv6 prefixes for the user terminal, Wherein the multiple IPv6 prefixes include single user prefix and multi-user's prefix;And transmitter 30, for whole to the user End sends distributed IPv6 prefixes.Wherein, single user prefix refers to that can be only assigned to the IPv6 prefixes of single user, is mostly used Family prefix refers to that can distribute to the IPv6 prefixes of multiple users.
Hereinafter with term " IPv6 prefixes " mentioned hereinbefore and " prefix ", IPv6 global unicast address is each meant Rear 16 subnet prefixes in prefix.
Fig. 2 shows the transition diagrams between the distribution state of IPv6 prefixes and each state;As shown in Fig. 2, before IPv6 The distribution state sewed can be divided into 3 kinds:(1) unallocated state refers to the state that a prefix is not associated with any user terminal; (2) can reallocate state, refer to a prefix and be associated with user terminal, but can still continue to distribute to other users' ends Hold the state being associated, it is clear that the state that can reallocate is effective only for multi-user's prefix;(3) can not reallocate state, refer to One prefix cannot reallocate to other users, that is, for single user prefix, can not the state of reallocating refer to single user prefix Through association user terminal, for multi-user's prefix, can not the state of reallocating refer to the associated user terminal number of multi-user's prefix Having reached it can be with associated maximum number.
With further reference to Fig. 2, arrow 1 indicates, by multi-user's prefix assignment in unallocated state to user terminal, and User terminal associated by multi-user's prefix, which does not reach maximum, can be associated with number, then the distribution state of multi-user's prefix is not by Distribution state is changed into the state that can reallocate;Arrow 2 indicates, by multi-user's prefix assignment in the state that can reallocate to user Terminal, and the user terminal associated by multi-user's prefix reaches maximum can be associated with number, then the distribution state of multi-user's prefix By can the state of reallocating be changed into the state that can not reallocate;Arrow 3 indicates, before multi-user of the recycling in the state that can not reallocate Sew, and the user terminal number associated by multi-user's prefix is not zero, then the distribution state of multi-user's prefix by that can not divide again It is changed into the state that can reallocate with state;Arrow 4 indicates that recycling is in the multi-user's prefix for the state that can reallocate, and the recycling The user terminal number associated by multi-user's prefix afterwards is zero, then the distribution state of multi-user's prefix is turned by the state that can reallocate Become unallocated state;Arrow a is indicated, by the single user prefix assignment in unallocated state to client, then the single user The distribution state of prefix is changed into the state that can not reallocate by unallocated state;Arrow b is indicated, will be in the state that can not reallocate Single user prefix withdraw, then the distribution state of the single user prefix by can not the state of reallocating be changed into unallocated state.
In practical applications, provided by the present invention for realizing that the device of IPv6 prefix assignments can be based on ND agreements come real Existing prefix assignment, to reach the simplicity of prefix assignment realization.But before ND agreements itself can be carried out by way of RA multicasts Sew distribution, therefore, when ND agreements are applied to the present invention, it is necessary to disable ND agreement RA multicast prefix assignment functions first, keep away Exempt to distribute identical prefix to all users.
Firstly, it is necessary to initialized to processor 20, a prefix source is configured for processor 20, in the prefix source Include multiple IPv6 prefixes that can distribute to user terminal, it is preferable that the prefix source can be a prefix pond.
Wherein, the multiple IPv6 prefixes include single user prefix and multi-user's prefix, the initialization procedure of processor 20 Further include the occupation proportion MPP (Multi-user Prefix Percentage) of predefined multi-user's prefix.The numerical value of MPP can To be set as to be dynamically adjusted, concrete numerical value can be according to the multiple IPv6 prefixes that can distribute to user terminal Quantity determines.Theoretically, the quantity of distributable IPv6 prefixes is more, and the numerical value of MPP is smaller, conversely, the numerical value of MPP is got over Greatly.In actual use, the numerical value of MPP should be the smaller the better, has different IPv6 prefixes to reach different user terminals as possible.
In addition, 20 initialization procedure of processor further includes according to predefined MPP values come by each IPv6 in prefix source Prefix is identified as single user prefix or multi-user's prefix, and the state of each IPv6 prefix is identified as unallocated state. When identifying multi-user's prefix, need to identify user terminal number N MP (the user Number that multi-user's prefix can be assigned simultaneously Per Multi-user Prefix), in initialization procedure, processor 20 can set NMP to a smaller data, such as 2, and the NMP is set as to be dynamically adjusted by the needs of processor 20.
Other information is also needed to since same prefix assignment has given multiple user terminals for multi-user's prefix Realize that unique confirmation to user terminal, these information can be the MAC (Medium of link local address or user terminal Access Control, media access control) address etc., which is not described herein again.
Fig. 3 shows that the present invention realizes the flow diagram of IPv6 prefix assignments.As shown in figure 3, being needed in user terminal When configuring global unicast address, needing to send RS messages, receiver 10 receives the RS messages, after receiving the RS messages, place Reason device 20 first checks for active user's terminal and whether has been associated with some arbitrary prefix then no longer using thus as long as relevant The new prefix of family terminal distribution, and be to continue with notice it is original assigned the prefix to user terminal.In principle, a user terminal hair Go out RS messages, after receiving RA messages, will not continue to send RS messages, but under certain abnormal conditions, still having can Energy.Such as when the RA messages that user terminal should receive do not receive, lead to the route-map aging of itself, this can trigger user Terminal continues to send RS messages to obtain route-map;Also a kind of situation is that user terminal itself breaks down, in failure After recovery, RS messages are sent to obtain route-map, prefix information etc..The prefix distributed is recorded in processor 20 and is somebody's turn to do User terminal associated by prefix, when checking whether user terminal had been associated with some arbitrary prefix, it is only necessary to handle The respective record about the user terminal and its associated prefix is searched whether in device 20.
In the case where active user's terminal is not associated with arbitrary prefix, processor 20 detects single user prefix in prefix source With the distribution state of multi-user's prefix, there is the case where single user prefix in unallocated state in current prefix source Under, processor 20 is that the user terminal distributes a single user prefix for being in unallocated state;In current prefix source Without the single user prefix in unallocated state, but in the case that there is multi-user's prefix in unallocated state, A multi-user's prefix for being in unallocated state is distributed for the user terminal;And do not have place in current prefix source In the single user prefix or multi-user's prefix of unallocated state, but with the feelings of multi-user's prefix in the state that can reallocate Under condition, multi-user's prefix in the state that can reallocate is distributed for the user terminal.
In the current user terminal number for not having the single user prefix in unallocated state and multi-user's prefix and being assigned In the case that mesh reaches predefined NMP, processor 20 needs the numerical value that MPP and/or NMP is turned up, and is in and can divide again to generate Multi-user's prefix with state.Preferably, the numerical value of MPP can be increased by 5%, or preferably, the numerical value of NMP is adjusted to Originally 2 times.Correspondingly, after the numerical value of adjustment MPP, the needs of processor 20 will be corresponding to the respective number of MPP institutes value added Single user prefix be identified as multi-user's prefix, and set the state of multi-user's prefix of new logo to the state that can reallocate. After the numerical value of adjustment NMP, the state by multi-user's prefix is needed to be set as the state that can reallocate.
For the prefix of each distribution, processor 20 needs to detect the message of user terminal associated with the prefix in real time Interaction, wherein the message interaction includes:User terminal and for realizing the message interaction between the device of IPv6 prefix assignments, Or user terminal by described for realizing the message interaction between the device and miscellaneous equipment of IPv6 prefix assignments.Processor 20 are not detected the message interaction in the first time predefined, then prefix of the recycling corresponding to the user terminal.Preferably, In order to ensure the correctness and reliability of prefix recycling, the message interaction is not detected within first time predefined In the case of, processor 20 also needs to send user's probe messages, the transmission of user's probe messages to the user terminal Number is more than the respective feedback that preset times and the processor 20 are not received by the user terminal, then recycling, which corresponds to, is somebody's turn to do The prefix of user terminal.Here there are many kinds of modes for probe messages, and simplest can be by NS (Neighbor Solicitation, neighbor request) message is as probe messages, if it is possible to receive the NA (Neighbor of user terminal Advertisement, neighbor advertisement) message, then it is assumed that user terminal is active, without recycling prefix.
Specifically, Fig. 4 shows the flow diagram of recycling IPv6 prefixes.As shown in figure 4, processor 20 was initializing One can be arranged in journey and actively detect clock, this actively detects message interaction of the clock for detecting user terminal, and same When the time-out time for actively detecting clock, i.e., the first time predefined above are set.This is actively hereafter detected into clock The time-out time of referred to as interaction detecting clock, interaction detecting clock is unsuitable long, otherwise cannot reach the mesh of quickly recycling prefix , but can not be too short, it is otherwise easy triggering user and detects and then send out excessive useless probe messages, network is caused to be gathered around Plug.Preferably, the time-out time of interaction detecting clock could be provided as 5 minutes.Wherein, interaction detecting clock is directed to particular user Terminal comes into force.During interaction detecting clock has not timed out, if detecting that message interaction has occurred in user terminal, reset again Interaction detecting clock.
In the time-out time of interaction detecting clock, if user terminal does not carry out any message interaction, need to visit Survey the validity of the user terminal.User's detecting clock can be arranged in initialization procedure and it is arranged for processor 20 surpasses When time, hereinafter referred to as user's detecting clock, after user's detecting clock time-out, processor 20 sends primary use to user terminal Family probe messages.The time-out time of user's detecting clock should not equally be arranged it is long or too short, can be interaction detecting clock Time-out time 1/10th, it is preferable that can with value be 30 seconds.Wherein, user's detecting clock is directed to particular user terminal It comes into force.
After the number for sending user's probe messages to user terminal is more than preset times, processor 20 does not receive still To the respective feedback of the user terminal, then it is assumed that the user terminal has lost association, can recycle the user terminal and be closed The prefix of connection.Here, setting user's detecting clock main purpose be ensure prefix recycling it is correct with it is reliable.Preferably, it sends out The number of user's probe messages is sent to could be provided as 3 times.
In addition, if processor 20 detects and the IPv6 of the link local address of the associated user terminal of corresponding prefix neighbours Residence has been deleted, then processor 20 detects the validity of the user terminal immediately, even if the clock of interaction detecting at this time has not timed out.
In the case where the prefix recycled is single user prefix, processor 20 sets the state of the single user prefix to Unallocated state;In the case where the prefix recycled is multi-user's prefix in the state that can reallocate, if should after recycling The associated number of users of prefix is 0, then processor 20 sets the state of multi-user's prefix to unallocated state, otherwise keeps former State is constant;It is multi-user's prefix in the state that can not reallocate in the prefix recycled, then processor 20 is by the multi-user The state of prefix is set as the state that can reallocate.
After having executed prefix recycling, if unappropriated prefix accounting exceeds predetermined value after recycling prefix, this is predetermined Value is preferably numerical value 1-MPP, and/or recycling moment corresponding MPP values than predefined MPP values bigger, this explanation, in prefix time After receipts, the prefix that can distribute to user is more abundant, at this point, processor 20 can accordingly decrease current MPP and/or work as The value of preceding NMP.Preferably, the value of MPP, which can reduce by the value of 5% or NMP, can be reduced to original half.
After the value for reducing MPP, multi-user's prefix that processor 20 is additionally operable to correspond to MPP decreasing value numbers identifies For single user prefix.After the value for reducing NMP, processor 20 is additionally operable to the user terminal currently distributed in multi-user's prefix In the case that number is greater than or equal to the NMP values after reducing, the status indicator of multi-user's prefix is matched into state to be inseparable.With It the case where this user terminal number currently distributed simultaneously, for multi-user's prefix is more than the NMP values after reducing, can't hold Row prefix recycles, and is to maintain the state for the NMP values that prefix association user number is more than after reducing, until terminal user distribution Prefix is normally recycled in such a way that above-mentioned prefix recycles.
In addition, before provided by the present invention for realizing that the device of IPv6 prefix assignments can also be reached based on DHCPv6 agreements Sew the effect of distribution.
Preferably, prefix assignment mode provided by the present invention can also act on the distribution of address.I.e. in the base of prefix On plinth, specific host id is supplemented, for using the user terminal of same prefix, different host ids can be distributed for it, into And fully achieve the purpose that user is identified using prefix.
Correspondingly, the present invention also provides a kind of method for realizing IPv6 prefix assignments, this method includes:Receive by with RS (Router Solicitation, router solicitation) message that family terminal is sent;According to the RS messages and multiple it is used for The distribution state for distributing to the IPv6 prefixes of user terminal to distribute IPv6 prefixes for the user terminal, wherein the multiple IPv6 prefixes include single user prefix and multi-user's prefix;And distributed IPv6 prefixes are sent to the user terminal.It should The principle of method is similar to the above-mentioned operation principle of the device for realizing IPv6 prefix assignments, and which is not described herein again.
It is that different user is whole as possible provided by the present invention for realizing that the device and method of IPv6 prefix assignments can be realized Different prefixes are distributed at end, are separated to user terminal by prefix and behaviour control.When lacking prefix, before multi-user Sew and distributes identical prefix for a small amount of user, and in the case where available prefix number is enough, restore different user terminals again Different prefixes.The prefix for being already allocated to user terminal but not used again can be recycled fast and accurately, in turn It realizes and fully utilizes prefix resource.
The preferred embodiment of the present invention is described in detail above in association with attached drawing, still, the present invention is not limited to above-mentioned realities The detail in mode is applied, within the scope of the technical concept of the present invention, a variety of letters can be carried out to technical scheme of the present invention Monotropic type, these simple variants all belong to the scope of protection of the present invention.
It is further to note that specific technical features described in the above specific embodiments, in not lance In the case of shield, can be combined by any suitable means, in order to avoid unnecessary repetition, the present invention to it is various can The combination of energy no longer separately illustrates.
In addition, various embodiments of the present invention can be combined randomly, as long as it is without prejudice to originally The thought of invention, it should also be regarded as the disclosure of the present invention.

Claims (8)

1. a kind of device for realizing IPv6 prefix assignments, which is characterized in that the device includes:
Receiver, for receiving RS (Router Solicitation, the router solicitation) message sent by user terminal;
Processor, for according to the distribution state of multiple IPv6 prefixes included in the RS messages and the processor come for The user terminal distributes IPv6 prefixes, wherein the multiple IPv6 prefixes include single user prefix and multi-user's prefix;And
Transmitter, for sending distributed IPv6 prefixes to the user terminal;
The processor is one of following for executing:
In the case of the current single user prefix having in unallocated state, one is distributed in not for the user terminal The single user prefix of distribution state;
Do not have the single user prefix in unallocated state current, but with multi-user's prefix in unallocated state In the case of, distribute a multi-user's prefix for being in unallocated state for the user terminal;And
Do not have single user prefix or multi-user's prefix in unallocated state current, but in the shape that can reallocate In the case of multi-user's prefix of state, multi-user's prefix in the state that can reallocate is distributed for the user terminal.
2. the apparatus according to claim 1, which is characterized in that the processor is additionally operable to:
In the current user terminal number for not having the single user prefix in unallocated state and multi-user's prefix and being assigned Mesh reaches number of users NMP (the user Number per Multi-user that predefined multi-user's prefix can be assigned Prefix in the case of), be turned up multi-user's prefix occupation proportion MPP (Multi-user Prefix Percentage) and/or NMP, to generate multi-user's prefix in the state that can reallocate.
3. according to the device described in any one of claim 1-2 claims, which is characterized in that the processor is also used In:
For the IPv6 prefixes of each distribution, the message interaction of user terminal associated with the IPv6 prefixes is detected;And
In the case where there is following one, IPv6 prefix of the recycling corresponding to the user terminal:
The message interaction is not detected in the first time predefined;And
In the case of the message interaction is not detected within first time predefined, sends and use to the user terminal The transmission times of family probe messages, user's probe messages is more than preset times and the processor is not received by the use The respective feedback of family terminal.
4. device according to claim 3, which is characterized in that after recycling the IPv6 prefixes, the processor is also For in the case where current unallocated IPv6 prefixes ratio is more than predefined MPP beyond predetermined value and/or current MPP, dropping Low current MPP and/or current NMP.
5. a kind of method for realizing IPv6 prefix assignments, which is characterized in that this method includes:
Receive RS (Router Solicitation, the router solicitation) message sent by user terminal;
IPv6 prefixes are distributed for the user terminal according to the distribution state of the RS messages and multiple IPv6 prefixes, wherein The multiple IPv6 prefixes include single user prefix and multi-user's prefix;And
Distributed IPv6 prefixes are sent to the user terminal;
The method further includes one of execution or less:
In the case of the current single user prefix having in unallocated state, one is distributed in not for the user terminal The single user prefix of distribution state;
Do not have the single user prefix in unallocated state current, but with multi-user's prefix in unallocated state In the case of, distribute a multi-user's prefix for being in unallocated state for the user terminal;And
Do not have single user prefix or multi-user's prefix in unallocated state current, but in the shape that can reallocate In the case of multi-user's prefix of state, multi-user's prefix in the state that can reallocate is distributed for the user terminal.
6. according to the method described in claim 5, it is characterized in that, the method further includes:
In the current user terminal number for not having the single user prefix in unallocated state and multi-user's prefix and being assigned Mesh reaches number of users NMP (the user Number per Multi-user that predefined multi-user's prefix can be assigned Prefix in the case of), be turned up multi-user's prefix occupation proportion MPP (Multi-user Prefix Percentage) and/or NMP, to generate multi-user's prefix in the state that can reallocate.
7. according to the method described in any one of claim 5-6 claims, which is characterized in that the method further includes:
For the IPv6 prefixes of each distribution, the message interaction of user terminal associated with the IPv6 prefixes is detected;And
In the case where there is following one, IPv6 prefix of the recycling corresponding to the user terminal:
The message interaction is not detected in the first time predefined;And
In the case of the message interaction is not detected within first time predefined, sends and use to the user terminal The transmission times of family probe messages, user's probe messages is more than preset times and is not received by the phase of the user terminal It should feed back.
8. the method according to the description of claim 7 is characterized in that the method further includes:
After recycling the IPv6 prefixes, it is more than beyond predetermined value and/or current MPP in current unallocated IPv6 prefixes ratio In the case of predefined MPP, current MPP and/or current NMP is reduced.
CN201510655681.XA 2015-10-12 2015-10-12 For realizing the device and method of IPv6 prefix assignments Active CN105227694B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510655681.XA CN105227694B (en) 2015-10-12 2015-10-12 For realizing the device and method of IPv6 prefix assignments

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510655681.XA CN105227694B (en) 2015-10-12 2015-10-12 For realizing the device and method of IPv6 prefix assignments

Publications (2)

Publication Number Publication Date
CN105227694A CN105227694A (en) 2016-01-06
CN105227694B true CN105227694B (en) 2018-08-07

Family

ID=54996363

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510655681.XA Active CN105227694B (en) 2015-10-12 2015-10-12 For realizing the device and method of IPv6 prefix assignments

Country Status (1)

Country Link
CN (1) CN105227694B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101753635A (en) * 2008-12-17 2010-06-23 华为技术有限公司 Method and system of collocating IPV6 (internet protocol version 6) addresses
CN102025797A (en) * 2010-11-30 2011-04-20 北京星网锐捷网络技术有限公司 Address prefix processing method, device, system and network equipment
CN102238075A (en) * 2010-05-05 2011-11-09 杭州华三通信技术有限公司 IPv6 (Internet Protocol version 6) routing establishing method based on Ethernet Point-to-Point Protocol and access server
CN102892108A (en) * 2011-07-18 2013-01-23 中兴通讯股份有限公司 Multiple address prefix distributing method and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101753635A (en) * 2008-12-17 2010-06-23 华为技术有限公司 Method and system of collocating IPV6 (internet protocol version 6) addresses
CN102238075A (en) * 2010-05-05 2011-11-09 杭州华三通信技术有限公司 IPv6 (Internet Protocol version 6) routing establishing method based on Ethernet Point-to-Point Protocol and access server
CN102025797A (en) * 2010-11-30 2011-04-20 北京星网锐捷网络技术有限公司 Address prefix processing method, device, system and network equipment
CN102892108A (en) * 2011-07-18 2013-01-23 中兴通讯股份有限公司 Multiple address prefix distributing method and system

Also Published As

Publication number Publication date
CN105227694A (en) 2016-01-06

Similar Documents

Publication Publication Date Title
US7962584B2 (en) Usage of host generating interface identifiers in DHCPv6
CN101883158B (en) Method and client for acquiring VLAN (Virtual Local Area Network) IDs (Identifiers) and network protocol addresses
CN101729500B (en) Method, device and system for identifying IP session
US9608863B2 (en) Address autoconfiguration using bloom filter parameters for unique address computation
EP3175606B1 (en) Delegation of prefixes to wi-fi clients connected to mobile access point routers
US20150113168A1 (en) Network Bridging
CN107547528B (en) IPv6 stateless address allocation method and device
CN108494701B (en) Load sharing method and device
JP2018524943A (en) Data transmission method, related apparatus, and system
CN102395126B (en) Mobile Ad hoc network address configuration realization method based on tree structure
CN109120741B (en) Duplicate address detection method and device and computer readable storage medium
KR20180049001A (en) Improved Neighbor Discovery in Communication Networks
CN103384282A (en) Method for obtaining IPV6ND address and broadband remote access server (BARS)
CN103037361A (en) Internet protocol (IP) distribution system in wireless Mesh network based on Ad-hoc and IP distribution method in the wireless Mesh network based on the Ad-hoc
CN113938427A (en) Communication method and system, and routing node
CN103051739A (en) Network terminal and IP (Internet Protocol) address configuration method thereof
CN102025797A (en) Address prefix processing method, device, system and network equipment
US10044672B2 (en) IPv6 address assignment method and apparatus
CN109150711B (en) Protection switching method, device and storage medium for point-to-multipoint two-layer multicast service
CN105227694B (en) For realizing the device and method of IPv6 prefix assignments
WO2018006684A1 (en) Message processing method and device, and router
CN109981813A (en) Message processing method and device
CN102299860A (en) Acquisition method and equipment for path maximum transmission unit (Pathmtu)
CN102986186B (en) Method for terminal network element registration, terminal network element and router
CN108632198B (en) Equipment management method and device

Legal Events

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