CN102025797A - Address prefix processing method, device, system and network equipment - Google Patents

Address prefix processing method, device, system and network equipment Download PDF

Info

Publication number
CN102025797A
CN102025797A CN2010105745046A CN201010574504A CN102025797A CN 102025797 A CN102025797 A CN 102025797A CN 2010105745046 A CN2010105745046 A CN 2010105745046A CN 201010574504 A CN201010574504 A CN 201010574504A CN 102025797 A CN102025797 A CN 102025797A
Authority
CN
China
Prior art keywords
address prefix
address
prefix
client
route table
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
CN2010105745046A
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.)
Beijing Star Net Ruijie Networks Co Ltd
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 CN2010105745046A priority Critical patent/CN102025797A/en
Publication of CN102025797A publication Critical patent/CN102025797A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention provides an address prefix processing method, a device, a system and network equipment. The method comprises: a server receives an address prefix distribution request sent by a client; the server determines the address prefix distributed to the client according to the address prefix distribution request and the core routing list of assigned equipment. When receiving the address prefix distribution request sent by the client, the address prefix processing method, the device, the system and the network equipment determine the address prefix distributed to the client according to the core routing list which is on the assigned equipment and stores the address prefix distributed to use to avoid address prefix conflict, thus solving the problem that users can not normally use the network resource caused by the address prefix conflict.

Description

Address prefix processing method, device, system and the network equipment
Technical field
The present invention relates to the network communications technology, relate in particular to a kind of address prefix processing method, device, system and the network equipment.
Background technology
Along with internet protocol version 6 (Internet Protocol Version 6; Abbreviate as: IPv6) networks development, also progressively extensively get up based on the application of IPv6 network.In the IPv6 network, length is that 128 IPv6 address uses 16 system forms to write usually, and this characteristic of IPv6 address makes that carrying out address assignment by manual mode becomes difficult, therefore, the method that the IPv6 address is distributed automatically occurred.The method that the IPv6 address is distributed automatically mainly is meant the address distribution method that does not have artificial intervention or minimum manual intervention, supports DHCP (the Dynamic Host Configuration Protocol for IPv6 of IPv6; Abbreviate as: DHCPv6) be a kind of agreement that mainly is responsible for host assignment IPv6 prefix, IPv6 address and other network configuration parameters.
Fig. 1 is for having a kind of typical structure schematic diagram based on the network of DHCPv6 agreement now.As shown in Figure 1, the DHCPv6 network comprises: DHCPv6 client 11, DHCPv6 server 12 and DHCPv6 relaying 13.Wherein, DHCPv6 client 11 is the equipment that request dynamic is obtained IPv6 address, IPv6 prefix or other network configuration parameters; DHCPv6 server 12 is (for example: territory (Domain), domain name system (Domain Name System to be in charge of whole net IPv6 address, IPv6 prefix and other network configuration parameters; Abbreviate as: DNS) server), and be the equipment of DHCPv6 client 11 distributing IP v6 addresses, IPv6 prefix and other network configuration parameters; DHCPv6 relaying 13 is to be used in DHCPv6 client 11 when DHCPv6 server 12 is not in same link range, is responsible for the equipment that DHCPv6 client 11 and DHCPv6 server 12 E-Packet.Because DHCPv6 client 11 is to communicate by letter with DHCPv6 server 12 by the multicast address of link-local scope, and for fear of in each link range, all disposing DHCPv6 server 12, the DHCPv6 network adopts the mode that DHCPv6 relaying 13 is set to solve the problems referred to above usually, reach and both save cost, be convenient to the purpose of managing concentratedly again.
Several DHCPv6 methods below main existence the in the prior art: state DHCPv6 method, stateless DHCPv6 method and DHCPv6 prefix assignment (DHCPv6Prefix Delegation are arranged; Abbreviate as: DHCPv6-PD) method, and above-mentioned several method is at request comment (Request For Comments; Abbreviate as: definition RFC) is arranged in the document.Wherein, in state DHCPv6 method was arranged, DHCPv6 client 11 required DHCPv6 server 12 to be its distributing IP v6 address and network configuration parameters.In stateless DHCPv6 method, DHCPv6 client 11 requires DHCPv6 server 12 to be its distribution other network configuration parameters except that IPv6 address and IPv6 prefix.Based on network configuration shown in Figure 1, in the DHCPv6-PD method, DHCPv6 client 11 sends a request message to DHCPv6 server 12, requires DHCPv6 server 12 to be its distributing IP v6 prefix and other network configuration parameters; Behind the request message process DHCPv6 relaying 13 that DHCPv6 client 11 is sent, be forwarded to DHCPv6 server 12; Successfully obtaining IPv6 prefix and other network configuration parameters that DHCPv6 server 12 is distributed through mutual back DHCPv6 client 11 several times; Then, DHCPv6 client 11 is as the server of home network, waits other network configuration parameters by stateless DHCPv6 method to family's couple in router or host terminal distributing IP v6 address and dns server, territory (Domain).
In above-mentioned DHCPv6-PD method, the prefix routing iinformation of applying for for advertised network DHCPv6 client 11, RFC3633 regulation: in IPv6 prefix assignment of DHCPv6 relaying 13 successful relayings, be that DHCPv6 client 11 is when applying for an IPv6 prefix, DHCPv6 relaying 13 adds in routing table static routing list item that should the IPv6 prefix, and in actual use by the corresponding static routing iinformation heavily is distributed in the dynamic routing, to realize putting in order the synchronous of net prefix routing iinformation in the IPv6 prefix assignment process.
Because in the automatic assigning process of above-mentioned IP v6 prefix, the DHCPv6 relaying can add corresponding prefix routing iinformation automatically, the IPv6 prefix that in network, has error configurations, or because the information on the DHCPv6 server when being eliminated the duplicate allocation that causes the IPv6 prefix, will occur corresponding many routes of IPv6 prefix in the network, this will cause subnetwork obstructed or overall network is obstructed.As shown in Figure 2, suppose that DHCPv6 relaying 21 has disposed use IPv6 prefix PD_Temp, and this moment, DHCPv6 server 24 was distributed to DHCpv6 relaying 22 with IPv6 prefix PD_Temp, can learn two prefix routes simultaneously when then DHCPv6 relaying 23 receives IPv6 prefix PD_Temp, according to may two after the comparison prefix routes all add kernel route table and also might only add optimum one; If 23 on DHCPv6 relaying adds a prefix route, will cause another time to apply for that the DHCPv6 client of this IPv6 prefix can't use Internet resources; If add two prefix routes simultaneously, then because the network that the IPv6 prefix exists conflict will cause inserting the user under DHCPv6 relaying 21 and the DHCPv6 relaying 22 obstructed even obstructed phenomenon fully when logical when occurring.
Summary of the invention
The invention provides a kind of address prefix processing method, device, system and the network equipment, in order to solve the problem of address prefix conflict.
The invention provides a kind of address prefix processing method, comprising:
Server receives the address prefix request for allocation that client sends;
Described server determines to distribute to the address prefix of described client according to the kernel route table of described address prefix request for allocation and designated equipment.
The invention provides a kind of address prefix processing unit, comprising:
Receiver module is used to receive the address prefix request for allocation that client sends;
Determination module is used for the kernel route table according to described address prefix request for allocation and designated equipment, determines to distribute to the address prefix of described client.
The invention provides a kind of network equipment, comprise arbitrary address prefix processing unit provided by the invention.
The invention provides a kind of address prefix treatment system, comprise arbitrary address prefix processing unit provided by the invention, also comprise: designated equipment and client;
Described client is used for sending the address prefix request for allocation to described address prefix processing unit;
Described designated equipment is used for providing kernel route table to described address prefix processing unit, according to described address prefix request for allocation and described kernel route table, determines to distribute to the address prefix of described client for described address prefix processing unit.
Address prefix processing method of the present invention, device, system and the network equipment, when receiving the address prefix request for allocation of client transmission, determine to distribute to the address prefix of client according to kernel route table on the designated equipment, that stored the address prefix that is assigned with use, can avoid the address prefix conflict, and then solve the problem that the user who causes because of the address prefix conflict can't normally use Internet resources.
Description of drawings
In order to be illustrated more clearly in the embodiment of the invention or technical scheme of the prior art, to do one to the accompanying drawing of required use in embodiment or the description of the Prior Art below introduces simply, apparently, accompanying drawing in describing below is some embodiments of the present invention, for those of ordinary skills, under the prerequisite of not paying creative work, can also obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is for having a kind of typical structure schematic diagram based on the network of DHCPv6 agreement now;
Fig. 2 is the schematic diagram of a kind of address prefix conflict in the prior art;
The flow chart of the address prefix processing method that Fig. 3 provides for the embodiment of the invention one;
A kind of flow chart of the address prefix processing method that Fig. 4 A provides for the embodiment of the invention two;
The another kind of flow chart of the address prefix processing method that Fig. 4 B provides for the embodiment of the invention two;
The flow chart of the address prefix processing method that Fig. 5 provides for the embodiment of the invention three;
The flow chart of the address prefix processing method that Fig. 6 provides for the embodiment of the invention four;
The flow chart of the address prefix processing method that Fig. 7 A provides for the embodiment of the invention five;
A kind of form schematic diagram of the message that Fig. 7 B provides for the embodiment of the invention five;
The structural representation of the address prefix processing unit that Fig. 8 provides for the embodiment of the invention six;
The structural representation of the address prefix processing unit that Fig. 9 provides for the embodiment of the invention seven;
The structural representation of the address prefix processing unit that Figure 10 provides for the embodiment of the invention eight;
A kind of structural representation of the address prefix processing unit that Figure 11 A provides for the embodiment of the invention nine;
The another kind of structural representation of the address prefix processing unit that Figure 11 B provides for the embodiment of the invention nine;
The structural representation of the address prefix treatment system that Figure 12 provides for the embodiment of the invention ten.
Embodiment
For the purpose, technical scheme and the advantage that make the embodiment of the invention clearer, below in conjunction with the accompanying drawing in the embodiment of the invention, technical scheme in the embodiment of the invention is clearly and completely described, obviously, described embodiment is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills belong to the scope of protection of the invention not making the every other embodiment that is obtained under the creative work prerequisite.
Embodiment one
The flow chart of the address prefix processing method that Fig. 3 provides for the embodiment of the invention one.The executive agent of present embodiment is DHCPv6 server (hereinafter to be referred as a server), and as shown in Figure 3, the method for present embodiment comprises:
Step 31, server receive the address prefix request for allocation that client sends;
Client is by sending the address prefix request for allocation to server, and requiring server is that it distributes address prefix and other network parameter configurations etc.Wherein, address prefix is meant the IPv6 prefix.
Step 32, server determine to distribute to the address prefix of client according to the kernel route table of address prefix assignment request and designated equipment.
Wherein, because after the server-assignment IPv6 prefix, DHCPv6 trunking (hereinafter to be referred as trunking) is whenever finished relaying will add kernel route table with the address prefix of the institute's relaying mode by static routing, and by the mode that route is heavily distributed realize whole net prefix route synchronously, therefore, any equipment that can be synchronized to the prefix route all can be preserved the address prefix (promptly being assigned with the address prefix of use) that is synchronized to by kernel route table is set in this network.Therefore, server can determine to distribute the address prefix that does not conflict with the address prefix that distributes use to give DHCPv6 client (hereinafter to be referred as client) by the kernel route table on any one equipment that can be synchronized to the prefix route.
Wherein, designated equipment can be any equipment that can be synchronized to the prefix route in the network of server place, for example be in trunking in the same link range with client, perhaps when server by (the Internet Service Provider of the Internet provider; Abbreviate as: when ISP) network was communicated by letter with trunking, the equipment (for example routing device) that can be synchronized to the prefix route in the ISP network also can be used as designated equipment etc.Particularly, server can carry out information interaction with equipment, determines that with announcement or negotiation this equipment is designated equipment; In addition, this designated equipment also can be preestablished by the keeper; Present embodiment is not done qualification to the mode of determining designated equipment.
The address prefix processing method of present embodiment, server receives the address prefix request for allocation of client, and distribute the address prefix different to client with the address prefix that distributes use according to the kernel route table on the designated equipment, can prevent to distribute to the address prefix of client conflicts with the address prefix that distributes use, solved the address prefix collision problem, and then overcome the defective that user that the address prefix conflict causes can't normally use Internet resources, improve address prefix and distributed the reasonability of using.
Embodiment two
A kind of flow chart of the address prefix processing method that Fig. 4 A provides for the embodiment of the invention two.Present embodiment can realize that shown in Fig. 4 A, the address prefix processing method of present embodiment comprises based on embodiment one:
Step 41, server receive the address prefix request for allocation that client sends;
Step 42, server are selected the initial address prefix according to address prefix assignment request;
Wherein, server is provided with address pool, is used for the various address prefixs of storage administration, IPv6 address etc.When server receives the address prefix request for allocation of client, can go to the inquire address pond, judge whether the available address prefix is arranged in the address pool, the address prefix whether unallocated use promptly arranged (wherein, since the deleted grade of information on the server may occur server think in fact just used the address prefix of unallocated use by certain client); If have, then select one of them address prefix as the initial address prefix of desiring to distribute to client, the initial address prefix is meant the address prefix that server is selected for client at random according to the address prefix request for allocation of client from address pool; If do not have the available address prefix in the address pool, can return notice message to client usually, there is not an available address prefix to inform that client is current.In the present embodiment, suppose to exist in the address pool available address prefix, therefore, server can be selected the initial address prefix directly according to address prefix assignment request from address pool.
Whether step 43, server send first address conflict that carries the initial address prefix to designated equipment and detect request, existed in the kernel route table so that designated equipment is checked the initial address prefix;
Wherein, first address conflict detects request and is meant that the address conflict that carries the initial address prefix detects request.Particularly, after server is selected the initial address prefix, detect request, whether exist in its kernel route table so that designated equipment is judged the initial address prefix by sending address conflict to designated equipment.Wherein, if the initial address prefix exists in the kernel route table, illustrating that this initial address prefix has been assigned with use, is the conflict address prefix; If the initial address prefix does not exist in the kernel route table, illustrate that this initial address prefix is not assigned with use, be the available address prefix.Designated equipment returns testing result to server in the mode that detects response message according to the rule of making an appointment after judging the result.In the present embodiment, no matter whether testing result is that the initial address prefix has existed in the kernel route table, and designated equipment is all by detecting the response message notification server.
Step 44, server receive the first detection response message that designated equipment returns; Wherein, the first detection response message is by designated equipment first address conflict to be detected the response that request is made.
Step 45, server parses are obtained first testing result that detects in the response message, and judge whether designated equipment is checked through the initial address prefix and has existed in the kernel route table; If then return execution in step 42; Otherwise then execution in step 46.
Step 46, determine that the initial address prefix is to distribute to the address prefix of client.
Wherein, step 45 and step 46 are to determine the embodiment of initial address prefix for the address prefix of distribution client according to detecting response message.If promptly server knows that the initial address prefix has been assigned with use, then from address pool, select the initial address prefix again, till selecting the initial address prefix that is not assigned with use, then, determine that the initial address prefix is to distribute to the address prefix of client.If server knows that the initial address prefix is the available address prefix, determine that then the initial address prefix is to distribute to the address prefix of client.
The address prefix processing method of present embodiment, server receives the address prefix request for allocation of client, select the initial address prefix then, send to designated equipment by the initial address prefix that will select, judge according to its kernel route table whether this initial address prefix is the available address prefix by designated equipment, then, server determines to distribute to the address prefix of client according to the judged result of designated equipment, assurance is distributed to the address prefix of client and is not conflicted with the address prefix that distributes use, thereby solved the address prefix collision problem, guaranteed to insert with normally using Internet resources per family.
Further, when the detection response message that server returns according to designated equipment knows that there be in the kernel route table of designated equipment (promptly being assigned with use) in the initial address prefix, this initial address prefix can be labeled as the conflict address prefix, conveniently to reselect initial address prefix and follow-up address prefix distribution, for example can prevent the various wastings of resources of selecting this address prefix to cause once more as the initial address prefix.
Further, shown in Fig. 4 B, the address prefix processing method of present embodiment also comprises after server is determined the address prefix of distributing to client:
Step 47, server are distributed to client with determined address prefix.
For example: server can be by returning the response message of carrying determined address prefix, for client is distributed address prefix to client.
Wherein, in the flow process shown in present embodiment Fig. 4 A and Fig. 4 B, server is to judge according to the entrained testing result of the first detection response message that receives whether the initial address prefix is available after designated equipment sends first address conflict detection request of carrying the initial address prefix; In addition, present embodiment provides a kind of judgment mode in addition, specific as follows: wherein, server and designated equipment are made an appointment: only when designated equipment is checked through the initial address prefix and does not exist in its kernel route table, return first to server and detect response message, and make an appointment the time i.e. first Preset Time.When server sends after first address conflict detects request, wait for receive that designated equipment sends first detect response message, and in first Preset Time, judge whether to receive first and detect response message; If server receives first and detects response message in first Preset Time, determine that then the initial address prefix does not exist in the kernel route table of designated equipment, and determine that this initial address prefix is to distribute to the address prefix of client; If server does not receive first and detects response message in first Preset Time, can know that then the initial address prefix exists in the kernel route table of designated equipment.Wherein, server and designated equipment also can be made an appointment: only when designated equipment is checked through the initial address prefix and exists in its kernel route table, return first and detect response message; Correspondingly, do not detect response message, determine that then the initial address prefix is to distribute to the address prefix of client if server receives first in first fixed time; Otherwise, know that then the initial address prefix exists in the kernel route table of designated equipment.Wherein, first Preset Time will satisfy designated equipment at least and normally returns first and detect the required time of response message.
Further, when server by judging whether in first Preset Time, to receive first when detecting response message and knowing that the initial address prefix exists in the kernel route table of designated equipment, this initial address prefix can be labeled as the conflict address prefix equally, so that the operation of subsequent address prefix assignment.
Wherein, in the various embodiments described above of the present invention, do not limit the type of designated equipment.And because in the real network framework, in order to reduce the quantity of deploying servers, usually by trunking is set between client and server, to be responsible for the information between forwarding server and the client.For example: above-mentioned server sends to the response message of client and can be transmitted by trunking; And on trunking, also store kernel route table, based on this, following examples of the present invention provide a kind of in addition and carry out the method that address prefix distributes according to the kernel route table on the designated equipment.
Embodiment three
The flow chart of the address prefix processing method that Fig. 5 provides for the embodiment of the invention three, present embodiment can be realized based on embodiment one, and the designated equipment in the present embodiment is a trunking.As shown in Figure 5, the method for present embodiment comprises:
Step 51, server receive the address prefix request for allocation that client sends;
Step 52, server are selected the initial address prefix according to address prefix assignment request;
Wherein, server is provided with address pool, is used for the various address prefixs of storage administration, IPv6 address etc.When server receives the address prefix request for allocation of client, can go to the inquire address pond, judge whether the available address prefix is arranged in the address pool, the address prefix whether unallocated use promptly arranged (wherein, since on the server the deleted grade of information may occur server think in fact just used the address prefix of unallocated use by certain client); If have, then select one of them address prefix as the initial address prefix of desiring to distribute to client, the initial address prefix is meant the address prefix that server is selected for client at random according to the address prefix request for allocation of client from address pool; If do not have the available address prefix in the address pool, can return notice message to client usually, there is not an available address prefix to inform that client is current.In the present embodiment, suppose to exist in the address pool available address prefix, therefore, server can be selected the initial address prefix directly according to address prefix assignment request from address pool.
Step 53, server send the address assignment response message of carrying the initial address prefix to trunking, for trunking when determining the initial address prefix and not existing in the kernel route table, determine that second initial address is to distribute to the address prefix of client and the address assignment response message is transmitted to client, perhaps for trunking when determining the initial address prefix and exist in the kernel route table, to server return address collision message;
Wherein, the address assignment response message is a kind of message that server is used for returning to client the address prefix of distributing to client.Server need be transmitted this address assignment response message by trunking; Usually server can be encapsulated in this address assignment response message and send to trunking in the relay messages.Particularly, after server is selected the initial address prefix, by sending relay messages, so that trunking is transmitted to client with determined initial address prefix to trunking.
In the present embodiment, trunking receives after the relay messages of server transmission, the address assignment response message in the relay messages is obtained in parsing, and initial address prefix is wherein mated in its kernel route table, judges whether the initial address prefix exists in its kernel route table; If judged result is that the initial address prefix does not exist in its kernel route table, can determine that then the initial address prefix of carrying in the address assignment response message is to distribute to the address prefix of client, and according to normal forwarding process the address assignment response message is encapsulated in and is transmitted to client in the relay messages, simultaneously this initial address prefix is added in the kernel route table, and the mode of heavily distributing by route is in the prefix route of whole this address prefix correspondence of net inter-sync.If judged result exists in its kernel route table for the initial address prefix, then trunking, and abandons this address assignment response message to server return address collision message with the identity of client, and does not transmit to client.
Step 54, server judge whether to receive the address conflict message that trunking returns; If then execution in step 55, otherwise, this address prefix batch operation then finished.
Particularly, server can preestablish a time of reception according to practical situations, if do not receive the address conflict message that trunking returns in this time of reception, then thinks and the address assignment success finishes this address prefix batch operation.If receive address conflict message in this time of reception, server can know that this initial address prefix has been assigned with use, and trunking is not transmitted to client with this initial address prefix.For client, can be because of the address assignment response message of not receiving the trunking forwarding always and overtime, this moment, client can send the address prefix request for allocation to server again.
Step 55, server are waited for and are received the address prefix request for allocation that client resends, and change and go execution in step 52.
Server when receiving the address prefix request for allocation that client resends, the address prefix assigning process of a beginning new round.Wherein, server can distribute address prefix for client according to above-mentioned flow process always, till successfully distributing address prefix for client; Also can preestablish the distribution number of times, still failing success when reaching the distribution number of times of setting is that client is distributed address prefix, then can end address prefix assignment operation.For this, present embodiment is not done qualification.
The address prefix processing method of present embodiment, server receives the address prefix request for allocation that client sends, select the initial address prefix then, send to trunking by the initial address prefix that will select, judge according to its kernel route table whether this initial address prefix is the available address prefix by trunking, and determine to distribute to the address prefix of client by trunking, assurance is distributed to the address prefix of client and is not conflicted with the address prefix that distributes use, thereby solved the address prefix collision problem, guaranteed to insert with normally using Internet resources per family.
Further, in the present embodiment, when server receives the address conflict message that trunking returns, this initial address prefix can be labeled as the conflict address prefix, conveniently to reselect initial address prefix and follow-up address prefix distribution, for example can prevent the various wastings of resources of selecting this address prefix to cause once more as the initial address prefix.
The above embodiment of the present invention mainly is the collision detection of address prefix being carried out by in the address prefix assigning process, solves the address prefix collision problem to prevent method to client distribution conflict address prefix.The embodiment of the invention provides a kind of kernel route table by designated equipment in addition, the assigned address prefix is carried out the method for collision detection, the assigned address prefix can be to have distributed the address prefix of use in the method, also can be the address prefix in the address pool of server.Can detect the address prefix that has distributed use by this method and whether have conflict, to solve the address prefix collision problem, whether the address prefix that also can detect in the address pool is available address prefix etc., to improve the address prefix allocative efficiency.Wherein, the present embodiment technical scheme can realize based on the various embodiments described above, but do not limit the execution sequence with the address prefix assigning process, for example: and can first executive address prefix assignment, and then carry out collision detection to the assigned address prefix; Also can carry out collision detection earlier to the assigned address prefix, then, executive address prefix assignment etc. again.Wherein, the assigned address prefix is carried out collision detection can be initiated at any time by server, and the address prefix distribution can be according to the request executed in real time of client, promptly present embodiment technical scheme and the various embodiments described above are a kind of concurrency relations.The specific implementation process of this method sees following embodiment for details.
Embodiment four
The flow chart of the address prefix processing method that Fig. 6 provides for the embodiment of the invention four.Present embodiment can be implemented on the basis of the various embodiments described above, and as shown in Figure 6, the method for present embodiment comprises:
Step 61, server send second address conflict that carries the assigned address prefix to designated equipment and detect request, judge for designated equipment whether the assigned address prefix exists in its kernel route table, and return second to server and detect response message; Not limiting the type of designated equipment in the present embodiment, can be any equipment that can be synchronized to the prefix route, for example trunking.Wherein, second address conflict detects request and is meant that the address conflict that carries the assigned address prefix detects request, and the second detection response message is by designated equipment second address conflict to be detected the response message that request is made.
Step 62, server receive second and detect response message;
Step 63, server parses are obtained second testing result that detects in the response message, and judge whether designated equipment is checked through the assigned address prefix and exists in its kernel route table; If then execution in step 64; Otherwise then execution in step 65.
Step 64, server are labeled as the conflict address prefix with the assigned address prefix, and finish this collision detection operation;
Step 65, server determine that the assigned address prefix is the available address prefix, and finish this collision detection operation.
The address prefix processing method of present embodiment, server is by sending to designated equipment with the assigned address prefix, make designated equipment judge whether the assigned address prefix exists in its kernel route table, server is according to the state of the judged result identification assigned address prefix of designated equipment, so that take corresponding treatment Countermeasures.For example: when the assigned address prefix is when having distributed the address prefix of use, when judging the address prefix conflict by this technical scheme, server can be reshuffled announcement to carry out the address prefix distribution again by sending to client, can solve the problem of address prefix conflict like this, guarantee to insert the user and can normally use Internet resources; Further, can also realize and the compatibility of existing address prefix allocative decision, promptly adopt the existing address prefix method of salary distribution to carry out address prefix simultaneously and divide timing, can solve the problem of address prefix conflict by this scheme by this technical scheme.
Embodiment five
The flow chart of the address prefix processing method that Fig. 7 A provides for the embodiment of the invention five.Shown in Fig. 7 A, the method for present embodiment comprises:
Step 71, server send second address conflict that carries the assigned address prefix to designated equipment and detect request, judge for designated equipment whether the assigned address prefix exists in its kernel route table;
Wherein, in the present embodiment, designated equipment only when judging the assigned address prefix and exist in its kernel route table, just sends to server and detects response message, and when judging the assigned address prefix and do not exist in its kernel route table, does not carry out any operation.
Step 72, server judge whether receive the second detection response message that designated equipment sends in second Preset Time; If then execution in step 73; Otherwise then execution in step 74.
Be preset with the time on server, promptly second Preset Time is used for waiting for that reception detects response message after sending address conflict detection request.Wherein, if server when this second Preset Time finishes, is not received the detection response message that designated equipment sends, show that the assigned address prefix do not conflict; Otherwise, the conflict of assigned address prefix is described.Wherein, second Preset Time will satisfy designated equipment at least and normally returns second and detect the required time of response message.
Step 73, server are labeled as the conflict address prefix with the assigned address prefix, and finish this collision detection operation;
Step 74, server determine that the assigned address prefix is the available address prefix, and finish this collision detection operation.
The address prefix processing method of present embodiment, server is by sending to designated equipment with the assigned address prefix, make designated equipment judge whether the assigned address prefix exists in its kernel route table, server is according to the state of the judged result identification assigned address prefix of designated equipment, so that take corresponding treatment Countermeasures.For example: when the assigned address prefix is when having distributed the address prefix of use, when judging the address prefix conflict by this technical scheme, server can be reshuffled announcement to carry out the address prefix distribution again by sending to client, can solve the problem of address prefix conflict like this, guarantee to insert the user and can normally use Internet resources; Further, can also realize compatibility with existing address prefix allocative decision by this technical scheme.
Further, second address conflict in the embodiment of the invention four and five detects request and second and detects response message, can transmit by newly-increased message.Wherein, present embodiment provides the form of two kinds of newly-increased messages, and its particular content is as shown in table 1.
Table 1
Figure BSA00000374459900141
Figure BSA00000374459900151
Wherein, the concrete form of the message that present embodiment provides can be referring to shown in Fig. 7 B, but is not limited to this.The a plurality of address prefixs of portability in a message of present embodiment are specifically decided according to the size of option data in the message, for example can come simultaneously 20 address prefixs to be carried out collision detection by carry 20 address prefixs in option data.
Present embodiment has easy to implement and the efficient advantage of higher by the method for newly-increased mutual message realization address prefix collision detection.
Embodiment six
The structural representation of the address prefix processing unit that Fig. 8 provides for the embodiment of the invention six.As shown in Figure 8, the address prefix processing unit of present embodiment comprises: receiver module 81 and determination module 82.
Wherein, receiver module 81 is used to receive the address prefix request for allocation that client sends; Determination module 82 is connected with designated equipment with receiver module 81, is used for the kernel route table according to address prefix assignment request and designated equipment, determines to distribute to the address prefix of client.
Wherein, owing to store the address prefix that distributes use in the kernel route table on the designated equipment, therefore, the address prefix processing unit can distribute the address prefix that does not conflict with the address prefix that distributes use to give client from its address pool according to kernel route table.
The address prefix processing unit of present embodiment, can be used for carrying out the flow process of the address prefix processing method that the embodiment of the invention provides, can distribute the address prefix different to client according to the kernel route table on the designated equipment with the address prefix that distributes use, can prevent to distribute to the address prefix of client conflicts with the address prefix that distributes use, solved the address prefix collision problem, and then overcome the defective that user that the address prefix conflict causes can't normally use Internet resources, improve address prefix and distributed the reasonability of using.
Embodiment seven
The structural representation of the address prefix processing unit that Fig. 9 provides for the embodiment of the invention seven.Present embodiment realizes that based on embodiment six as shown in Figure 9, present embodiment cover half piece 82 really comprises: the first chooser module 821, first sends submodule 822, first and receives submodule 823 and first definite submodule 824.
Wherein, the first chooser module 821 is connected with receiver module 81, is used for according to address prefix assignment request, selects the initial address prefix; First sends submodule 822, be connected with the first chooser module 821 with designated equipment, be used for sending first address conflict that carries the initial address prefix and detect request, whether existed in the kernel route table so that designated equipment is checked the initial address prefix to designated equipment; First receives submodule 823, sends submodule 822 with designated equipment and first and is connected, and is used for after the first transmission submodule 822 sends first address conflict detection request, receives the first detection response message that designated equipment returns; First determines submodule 824, is connected with the first reception submodule 823, is used for determining that according to the first detection response message initial address prefix is to distribute to the address prefix of client.
Further, first determines that submodule 824 specifically comprises: trigger element and determining unit.Wherein, trigger element is used for triggering the first chooser module 821 and carrying out according to address prefix assignment request when knowing that according to the first detection response message there has been kernel route table in the initial address prefix, selects the operation of initial address prefix; Determining unit is used for determining that the initial address prefix is to distribute to the address prefix of client when knowing that according to the first detection response message there is not kernel route table in the initial address prefix.
The address prefix processing unit of present embodiment, can be used for carrying out the flow process of the address prefix processing method that the embodiment of the invention provides, after the address prefix request for allocation that receives client, select the initial address prefix, send to designated equipment by the initial address prefix that will select, judge according to its kernel route table whether this initial address prefix is the available address prefix by designated equipment, then, determine to distribute to the address prefix of client according to the judged result of designated equipment, assurance is distributed to the address prefix of client and is not conflicted with the address prefix that distributes use, thereby solved the address prefix collision problem, guaranteed to insert with normally using Internet resources per family.
Further, present embodiment also provides the specific implementation structure of another kind of determination module 82, and determination module 82 specifically comprises: the second chooser module, second sends submodule, judges that receiving submodule, second determines submodule and know submodule.Wherein, the function that the second chooser module and second sends submodule is identical with the function that the first chooser module and first sends submodule, does not repeat them here.Judge and receive submodule, be used for after the second transmission submodule sends first address conflict detection request, wait for and receive the first detection response message that designated equipment returns, and judge that whether receiving first in first Preset Time detects response message, and the result is offered second definite submodule respectively and knows submodule.Second determines submodule, is used for receiving the result who receives the first detection response message in first Preset Time that submodule provides according to judging, determines that the initial address prefix is to distribute to the address prefix of client; Know submodule, be used for receiving the result who in first Preset Time, does not receive the first detection response message that submodule provides, know that the initial address prefix exists in the kernel route table of designated equipment according to judging.
Further, the address prefix processing unit of present embodiment also comprises: mark module 86, be used at trigger element or when knowing that submodule knows that there is the kernel route table (promptly being assigned with use) of designated equipment in the initial address prefix, this initial address prefix is labeled as the conflict address prefix, conveniently to reselect initial address prefix and follow-up address prefix distribution, for example can prevent the various wastings of resources of selecting this address prefix to cause once more as the initial address prefix.
Further again, as shown in Figure 9, the address prefix processing unit of present embodiment also comprises: distribution module 83 is used for first definite submodule 824 determined address prefixs are distributed to client.Particularly, can finish the operation of carrying out address assignment to client by this distribution module.
Wherein, in the above embodiment of the present invention, designated equipment can be any equipment that can be synchronized to the prefix route of network, for example can be trunking.When designated equipment was trunking, following examples provided a kind of implementation structure of determination module in addition.
Embodiment eight
The structural representation of the address prefix processing unit that Figure 10 provides for the embodiment of the invention eight.Present embodiment can realize that as shown in figure 10, present embodiment cover half piece 82 really comprises based on embodiment six: the 3rd chooser module the 831, the 3rd sends submodule 832, second and receives submodule 833 and trigger submodule 834.
Wherein, the 3rd chooser module 831 is connected with receiver module 81, is used for according to address prefix assignment request, selects the initial address prefix; The 3rd sends submodule 832, be connected with the 3rd chooser module 831 with trunking, be used for sending the address assignment response message of carrying the initial address prefix to trunking, for trunking when determining the initial address prefix and not existing in the kernel route table, determine that the initial address prefix is to distribute to the address prefix of client and the address assignment response message is transmitted to client, perhaps for trunking when determining the initial address prefix and exist in the kernel route table, to address prefix processing unit return address collision message; Second receives submodule 833, sends submodule 832 with trunking and the 3rd and is connected, and is used for receiving the address conflict message that trunking returns after the 3rd transmission submodule 832 sends the address assignment response messages; Trigger submodule 834, be used for when the second reception submodule 833 receives address conflict message, wait for receiving the address prefix request for allocation that client resends, and trigger the 3rd chooser module 831 and carry out, select the operation of initial address prefix according to address prefix assignment request.
The address prefix processing unit of present embodiment, after the address prefix request for allocation that receives the client transmission, select the initial address prefix, send to trunking by the initial address prefix that will select, judge according to its kernel route table whether this initial address prefix is the available address prefix by trunking, and determine by trunking whether this initial address prefix is the address prefix of distributing to client, assurance is distributed to the address prefix of client and is not conflicted with the address prefix that distributes use, thereby solved the address prefix collision problem, guaranteed to insert with normally using Internet resources per family.
Further, the address prefix processing unit of present embodiment cover half piece 82 really also comprises: the first mark submodule 835 is used for when the second reception submodule 833 receives address conflict message the initial address prefix being labeled as the conflict address prefix.The address prefix processing unit of present embodiment is by the first mark submodule 835, can be convenient to reselect initial address prefix and follow-up address prefix distribution, for example can prevent the various wastings of resources of selecting this address prefix to cause once more as the initial address prefix.
Embodiment nine
A kind of structural representation of the address prefix processing unit that Figure 11 A provides for the embodiment of the invention nine.Present embodiment can realize that its difference is, also comprises based on embodiment six, embodiment seven or embodiment eight: detection module 84, be used for kernel route table according to designated equipment, and the assigned address prefix is carried out collision detection.
Wherein, shown in Figure 11 A, a kind of implementation structure of detection module 84 comprises: the 4th sends submodule the 841, the 3rd receives submodule 842, the second mark submodule 843 and second definite submodule 844.
Wherein, the 4th sends submodule 841, be connected with designated equipment, be used for sending second address conflict that carries the assigned address prefix and detect request to designated equipment, judge for designated equipment whether the assigned address prefix exists in the kernel route table, and return second to the address prefix processing unit and detect response message; The 3rd receives submodule 842, is connected with designated equipment, is used to receive second and detects response message; The second mark submodule 843 is connected with the 3rd reception submodule 842, is used for when the 3rd reception submodule 842 knows that according to the second detection response message there has been kernel route table in the assigned address prefix the assigned address prefix being labeled as the conflict address prefix; Second determines submodule 844, is connected with the 3rd reception submodule 842, is used for determining that the assigned address prefix is the available address prefix when the 3rd reception submodule 842 knows that according to the second detection response message there is not kernel route table in the assigned address prefix.
The address prefix processing unit of present embodiment, by the assigned address prefix is sent to designated equipment, make designated equipment judge whether the assigned address prefix exists in its kernel route table, the address prefix processing unit is according to the state of the judged result identification assigned address prefix of designated equipment, so that take corresponding treatment Countermeasures.For example: when the assigned address prefix is when having distributed the address prefix of use, when judging the address prefix conflict by this technical scheme, the address prefix processing unit can be reshuffled announcement to carry out the address prefix distribution again by sending to client, can solve the problem of address prefix conflict like this, guarantee to insert the user and can normally use Internet resources.Again for example: when the assigned address prefix is on the address prefix processing unit during address prefix in the address pool, be the conflict address prefix when judging the assigned address prefix, can avoid distributing the operation of this conflict address prefix, save the flow process and the various resource of address assignment to client.
Further, the address prefix processing unit of present embodiment also comprises: announcement module 85, be connected with the second mark submodule 843, be used for sending the configuration announcement to the assigned address prefix clients corresponding that is marked as the conflict address prefix, distribute to carry out address prefix for this client again, solve the problem of address prefix conflict.
Further, present embodiment provides a kind of implementation structure of detection module 84 in addition.Shown in Figure 11 B, detection module 84 comprises: the 5th sends submodule 851, the 3rd mark submodule 852, the 4th reception submodule 854 and the 3rd definite submodule 853.Wherein, the 5th sends submodule 851, is connected with designated equipment, is used for sending second address conflict that carries the assigned address prefix to designated equipment and detects request, judges for designated equipment whether the assigned address prefix exists in the kernel route table; The 4th receives submodule 854, is connected with designated equipment, is used to wait for that receiving second of designated equipment detects response message; The 3rd mark submodule 852 receives submodule 854 and is connected with the 4th, is used for the 4th when receiving the second detection response message that designated equipment that submodule 854 receives sends in second Preset Time assigned address prefix being labeled as the conflict address prefix; The 3rd determines submodule 853, is connected with the 4th reception submodule 854, is used for determining that the assigned address prefix is the available address prefix when the 4th reception submodule 854 does not receive the 3rd detection response message in second Preset Time.
Wherein, in structure shown in Figure 11 B, announcement module 85 is connected with the 3rd mark submodule 852.
In like manner, pass through said structure, the address prefix processing unit of present embodiment can carry out collision detection to the address prefix that distributes use, and when judging the address prefix conflict, can carry out redistributing of address prefix by reshuffling the announcement relative client, solve the problem of address prefix conflict.In addition, by technique scheme, also can be in advance for the unappropriated address prefix in the address pool of address prefix processing unit carries out collision detection, to quicken the operating process of subsequent address prefix assignment.
Embodiment ten
The structural representation of the address prefix treatment system that Figure 12 provides for the embodiment of the invention ten.As shown in figure 12, the system of present embodiment comprises: address prefix processing unit 91, designated equipment 92 and client 93.
Wherein, the address prefix processing unit that the address prefix processing unit 91 of present embodiment provides for the above embodiment of the present invention, its structure and operation principle are introduced no longer in detail.Client 93 is connected with address prefix processing unit 91, is used for sending the address prefix request for allocation to address prefix processing unit 91; Wherein " connection " be not limited to directly link to each other, client need be connected with the address prefix processing unit by trunking usually.
Designated equipment 92 is used for providing kernel route table to address prefix processing unit 91, according to address prefix assignment request and kernel route table, determines to distribute to the address prefix of institute's client 93 for address prefix processing unit 91.
Wherein, designated equipment 92 can be the trunking between link address prefix process device 91 and the client 93, also can be other equipment that can be synchronized to the prefix route in the network, the trunking of link address prefix process device 91 and other clients etc. for example.
The address prefix treatment system of present embodiment, can be used for carrying out the flow process of the address prefix processing method that the embodiment of the invention provides, can determine to distribute to the address prefix that client and the address prefix that distributes use do not conflict by the kernel route table of designated equipment, solved the address prefix collision problem, improved reasonability, guaranteed that the access user can normally use Internet resources the management of address prefix assignment.
Embodiment 11
The embodiment of the invention 11 provides a kind of network equipment, comprises the address prefix processing unit.Wherein, the network equipment of present embodiment can be server, can also be that DHCPv4 server or other carry out the equipment of address prefix or address assignment except the DHCPv6 server.The address prefix processing unit that address prefix processing unit in the present embodiment can adopt the above embodiment of the present invention to provide, its structure and operation principle repeat no more.
The network equipment of present embodiment, can be used for carrying out the flow process of the address prefix processing method that the embodiment of the invention provides, can be when receiving the address prefix request for allocation of client transmission, determine by the kernel route table on the designated equipment whether the address prefix of distributing to client is used, promptly exist in the kernel route table, can avoid the address prefix conflict, and then solve the problem that the user who causes because of the address prefix conflict can't normally use Internet resources.
One of ordinary skill in the art will appreciate that: all or part of step that realizes said method embodiment can be finished by the relevant hardware of program command, aforesaid program can be stored in the computer read/write memory medium, this program is carried out the step that comprises said method embodiment when carrying out; And aforesaid storage medium comprises: various media that can be program code stored such as ROM, RAM, magnetic disc or CD.
It should be noted that at last: above embodiment only in order to technical scheme of the present invention to be described, is not intended to limit; Although with reference to previous embodiment the present invention is had been described in detail, those of ordinary skill in the art is to be understood that: it still can be made amendment to the technical scheme that aforementioned each embodiment put down in writing, and perhaps part technical characterictic wherein is equal to replacement; And these modifications or replacement do not make the essence of appropriate technical solution break away from the spirit and scope of various embodiments of the present invention technical scheme.

Claims (25)

1. an address prefix processing method is characterized in that, comprising:
Server receives the address prefix request for allocation that client sends;
Described server determines to distribute to the address prefix of described client according to the kernel route table of described address prefix request for allocation and designated equipment.
2. address prefix processing method according to claim 1 is characterized in that, described server determines that according to the kernel route table of described address prefix request for allocation and designated equipment the address prefix of distributing to described client comprises:
Described server is selected the initial address prefix according to described address prefix request for allocation;
Whether described server sends first address conflict that carries described initial address prefix to described designated equipment and detects request, existed in the described kernel route table so that described designated equipment is checked described initial address prefix;
Described server receives the first detection response message that described designated equipment returns;
Described server detects response message according to described first, determines that described initial address prefix is to distribute to the address prefix of described client.
3. address prefix processing method according to claim 1 is characterized in that, described server determines that according to the kernel route table of described address prefix request for allocation and designated equipment the address prefix of distributing to described client comprises:
Described server is selected the initial address prefix according to described address prefix request for allocation;
Whether described server sends first address conflict that carries described initial address prefix to described designated equipment and detects request, existed in the described kernel route table so that described designated equipment is checked described initial address prefix;
Described server judges whether receive the first detection response message that described designated equipment returns in first Preset Time;
If described server receives described first and detects response message, determine that described initial address prefix is to distribute to the address prefix of described client;
If described server does not receive described first and detects response message, know that described initial address prefix has existed in the described kernel route table.
4. address prefix processing method according to claim 2 is characterized in that, described server detects response message according to described first, determines that described initial address prefix is that the address prefix of distributing to described client comprises:
Know that described initial address prefix has existed in the described kernel route table if described server detects response message according to described first, re-execute, select the operation of initial address prefix according to described address prefix request for allocation;
Know that described initial address prefix does not exist in the described kernel route table if described server detects response message according to described first, determine that described initial address prefix is to distribute to the address prefix of described client.
5. according to claim 3 or 4 described address prefix processing methods, it is characterized in that, know described initial address prefix when described server and also comprise when having existed in the described kernel route table:
Described initial address prefix is labeled as the conflict address prefix.
6. address prefix processing method according to claim 1 is characterized in that, described designated equipment is the trunking that is connected between described server and the described client;
Described server determines that according to the kernel route table of described address prefix request for allocation and designated equipment the address prefix of distributing to described client comprises:
Described server is selected the initial address prefix according to described address prefix request for allocation;
Described server sends the address assignment response message of carrying described initial address prefix to described trunking, for described trunking when determining described initial address prefix and not existing in the described kernel route table, determine that described initial address prefix is to distribute to the address prefix of described client, and described address assignment response message is transmitted to described client, perhaps for described trunking when determining described initial address prefix and exist in the described kernel route table, to described server return address collision message;
If described server receives the address conflict message that described trunking returns, wait for receiving the address prefix request for allocation that described client resends, and carry out according to described address prefix request for allocation, select the operation of initial address prefix.
7. address prefix processing method according to claim 6 is characterized in that, also comprises when described server receives the address conflict message that described trunking returns:
Described server is labeled as the conflict address prefix with described initial address prefix.
8. according to claim 1 or 2 or 3 or 4 or 6 or 7 described address prefix processing methods, it is characterized in that, also comprise:
Described server carries out collision detection according to the kernel route table of described designated equipment to the assigned address prefix.
9. address prefix processing method according to claim 8 is characterized in that, described server carries out collision detection to the assigned address prefix and comprises according to the kernel route table of described designated equipment:
Described server sends second address conflict that carries described assigned address prefix to described designated equipment and detects request, judge for described designated equipment whether described assigned address prefix exists in the described kernel route table, and return second to described server and detect response message;
If detecting response message according to described second, described server knows that described assigned address prefix has existed in the described kernel route table, is labeled as the conflict address prefix with described assigned address prefix;
Know that described assigned address prefix does not exist in the described kernel route table if described server detects response message according to described second, determine that described assigned address prefix is the available address prefix.
10. address prefix processing method according to claim 8 is characterized in that, described server carries out collision detection to the assigned address prefix and comprises according to the kernel route table of described designated equipment:
Described server sends second address conflict that carries described assigned address prefix to described designated equipment and detects request, judges for described designated equipment whether described assigned address prefix exists in the described kernel route table;
If described server receives the second detection response message that described designated equipment sends in second Preset Time, described assigned address prefix is labeled as the conflict address prefix;
If described server does not receive described second and detects response message in described second Preset Time, determine that described assigned address prefix is the available address prefix.
11. according to claim 9 or 10 described address prefix processing methods, it is characterized in that, when described server is labeled as the conflict address prefix with described assigned address prefix, also comprise:
Described server sends to the assigned address prefix clients corresponding that is marked as the conflict address prefix and reshuffles announcement, distributes to carry out address prefix again.
12. an address prefix processing unit is characterized in that, comprising:
Receiver module is used to receive the address prefix request for allocation that client sends;
Determination module is used for the kernel route table according to described address prefix request for allocation and designated equipment, determines to distribute to the address prefix of described client.
13. address prefix processing unit according to claim 12 is characterized in that, described determination module comprises:
The first chooser module is used for according to described address prefix request for allocation, selects the initial address prefix;
Whether first sends submodule, is used for sending first address conflict that carries described initial address prefix to described designated equipment and detects request, existed in the described kernel route table so that described designated equipment is checked described initial address prefix;
First receives submodule, is used to receive the first detection response message that described designated equipment returns;
First determines submodule, is used for determining that according to the described first detection response message described initial address prefix is to distribute to the address prefix of described client.
14. address prefix processing unit according to claim 12 is characterized in that, described determination module comprises:
The second chooser module is used for according to described address prefix request for allocation, selects the initial address prefix;
Whether second sends submodule, is used for sending first address conflict that carries described initial address prefix to described designated equipment and detects request, existed in the described kernel route table so that described designated equipment is checked described initial address prefix;
Judge to receive submodule be used to judge in first Preset Time, whether to receive the first detection response message that described designated equipment returns;
Second determines submodule, is used for receiving submodule in described judgement and judges and receive described first when detecting response message, determines that described initial address prefix is to distribute to the address prefix of described client;
Know submodule, be used for described first not detecting response message, know that described initial address prefix has existed in the described kernel route table according to described judgement receiving of receiving that submodule judges.
15. address prefix processing unit according to claim 13 is characterized in that, described first determines that submodule comprises:
Trigger element is used for triggering the described first chooser module and carrying out according to described address prefix request for allocation when knowing that according to the described first detection response message there has been described kernel route table in described initial address prefix, selects the operation of initial address prefix;
Determining unit is used for determining that described initial address prefix is to distribute to the address prefix of described client when knowing that according to the described first detection response message there is not described kernel route table in described initial address prefix.
16. according to claim 14 or 15 described address prefix processing unit, it is characterized in that, also comprise:
Mark module is used for when knowing that there has been described kernel route table in described initial address prefix described initial address prefix being labeled as the conflict address prefix.
17. address prefix processing unit according to claim 12 is characterized in that, described designated equipment is for connecting the trunking of described address prefix processing unit and described client;
Described determination module comprises:
The 3rd chooser module is used for according to described address prefix request for allocation, selects the initial address prefix;
The 3rd sends submodule, be used for sending the address assignment response message of carrying described initial address prefix to described trunking, for described trunking when determining described initial address prefix and not existing in the described kernel route table, determine that described initial address prefix is to distribute to the address prefix of described client and described address assignment response message is transmitted to described client, perhaps for described trunking when determining described initial address prefix and exist in the described kernel route table, to described address prefix processing unit return address collision message;
Second receives submodule, is used to receive the address conflict message that described trunking returns;
Trigger submodule, be used for when described second receives submodule and receive described address conflict message, wait for and receive the address prefix request for allocation that described client resends, and trigger described the 3rd chooser module and carry out according to described address prefix request for allocation, select the operation of initial address prefix.
18. address prefix processing unit according to claim 17 is characterized in that, described determination module also comprises:
The first mark submodule is used for when the described the 3rd receives submodule and receive described address conflict message described initial address prefix being labeled as the conflict address prefix.
19. according to claim 12 or 13 or 14 or 15 or 17 or 18 described address prefix processing unit, it is characterized in that, also comprise:
Detection module is used for the kernel route table according to described designated equipment, and the assigned address prefix is carried out collision detection.
20. address prefix processing unit according to claim 19 is characterized in that, described detection module comprises:
The 4th sends submodule, be used for sending second address conflict that carries described assigned address prefix and detect request to described designated equipment, judge for described designated equipment whether described assigned address prefix exists in the described kernel route table, and return second to described address prefix processing unit and detect response message;
The 3rd receives submodule, is used to receive described second and detects response message;
The second mark submodule is used for when knowing that according to the described second detection response message there has been described kernel route table in described assigned address prefix described assigned address prefix being labeled as the conflict address prefix;
Second determines submodule, is used for determining that described assigned address prefix is the available address prefix when knowing that according to the described second detection response message there is not described kernel route table in described assigned address prefix.
21. address prefix processing unit according to claim 19 is characterized in that, described detection module comprises:
The 5th sends submodule, is used for sending second address conflict that carries described assigned address prefix to described designated equipment and detects request, judges for described designated equipment whether described assigned address prefix exists in the described kernel route table;
The 3rd mark submodule when being used for receiving the second detection response message of described designated equipment transmission in second Preset Time, is labeled as the conflict address prefix with described assigned address prefix;
The 3rd determines submodule, is used for not receiving described second when detecting response message in described second Preset Time, determines that described assigned address prefix is the available address prefix.
22. according to claim 20 or 21 described address prefix processing unit, it is characterized in that, also comprise:
Announcement module is used for sending the configuration announcement to the assigned address prefix clients corresponding that is marked as the conflict address prefix, distributes to carry out address prefix again.
23. network equipment that comprises each described address prefix processing unit of claim 12-22.
24. an address prefix treatment system that comprises each described address prefix processing unit of claim 12-22 is characterized in that, also comprises: designated equipment and client;
Described client is used for sending the address prefix request for allocation to described address prefix processing unit;
Described designated equipment is used for providing kernel route table to described address prefix processing unit, according to described address prefix request for allocation and described kernel route table, determines to distribute to the address prefix of described client for described address prefix processing unit.
25. address prefix treatment system according to claim 24 is characterized in that, also comprises:
Trunking is connected between described address prefix processing unit and the described client, is used to described address prefix processing unit and described client to transmit message.
CN2010105745046A 2010-11-30 2010-11-30 Address prefix processing method, device, system and network equipment Pending CN102025797A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2010105745046A CN102025797A (en) 2010-11-30 2010-11-30 Address prefix processing method, device, system and network equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2010105745046A CN102025797A (en) 2010-11-30 2010-11-30 Address prefix processing method, device, system and network equipment

Publications (1)

Publication Number Publication Date
CN102025797A true CN102025797A (en) 2011-04-20

Family

ID=43866639

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2010105745046A Pending CN102025797A (en) 2010-11-30 2010-11-30 Address prefix processing method, device, system and network equipment

Country Status (1)

Country Link
CN (1) CN102025797A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102439918A (en) * 2011-10-11 2012-05-02 华为技术有限公司 Method, device and system for transmittig message
CN102629915A (en) * 2012-04-28 2012-08-08 杭州华三通信技术有限公司 Method and device for improving rate of utilization of hardware entry
CN105227694A (en) * 2015-10-12 2016-01-06 北京星网锐捷网络技术有限公司 For realizing the device and method of IPv6 prefix assignment
CN110798546A (en) * 2019-11-08 2020-02-14 杭州海兴电力科技股份有限公司 DUID-based DHCP client access authentication method
CN114938347A (en) * 2021-02-04 2022-08-23 青岛海信宽带多媒体技术有限公司 Router and router ipv6 self-adaption method and device
CN116055453A (en) * 2023-03-06 2023-05-02 广州市高科通信技术股份有限公司 Address prefix determining method and device, CPE and computer readable storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1980252A (en) * 2005-12-06 2007-06-13 华为技术有限公司 Address-conflict detection realizing method and address conflict detection agent apparatus
CN101355594A (en) * 2008-09-09 2009-01-28 中兴通讯股份有限公司 Method for detecting address conflict when distributing IP address

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1980252A (en) * 2005-12-06 2007-06-13 华为技术有限公司 Address-conflict detection realizing method and address conflict detection agent apparatus
CN101355594A (en) * 2008-09-09 2009-01-28 中兴通讯股份有限公司 Method for detecting address conflict when distributing IP address

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
O. TROAN等: "《Request for Comments: 3633》", 31 December 2003 *
王 柠等: "地址注册机构的IPv6分配策略研究", 《齐齐哈尔大学学报》 *

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102439918A (en) * 2011-10-11 2012-05-02 华为技术有限公司 Method, device and system for transmittig message
WO2012163000A1 (en) * 2011-10-11 2012-12-06 华为技术有限公司 Message forwarding method, device and system
CN102629915A (en) * 2012-04-28 2012-08-08 杭州华三通信技术有限公司 Method and device for improving rate of utilization of hardware entry
CN102629915B (en) * 2012-04-28 2014-11-12 杭州华三通信技术有限公司 Method and device for improving rate of utilization of hardware entry
CN105227694A (en) * 2015-10-12 2016-01-06 北京星网锐捷网络技术有限公司 For realizing the device and method of IPv6 prefix assignment
CN105227694B (en) * 2015-10-12 2018-08-07 北京星网锐捷网络技术有限公司 For realizing the device and method of IPv6 prefix assignments
CN110798546A (en) * 2019-11-08 2020-02-14 杭州海兴电力科技股份有限公司 DUID-based DHCP client access authentication method
CN114938347A (en) * 2021-02-04 2022-08-23 青岛海信宽带多媒体技术有限公司 Router and router ipv6 self-adaption method and device
CN114938347B (en) * 2021-02-04 2024-05-10 青岛海信宽带多媒体技术有限公司 Router and router ipv6 self-adaption method and device
CN116055453A (en) * 2023-03-06 2023-05-02 广州市高科通信技术股份有限公司 Address prefix determining method and device, CPE and computer readable storage medium
CN116055453B (en) * 2023-03-06 2023-06-13 广州市高科通信技术股份有限公司 Address prefix determining method and device, CPE and computer readable storage medium

Similar Documents

Publication Publication Date Title
CN101951417B (en) Method, system and trunk equipment for assigning multiple server addresses
CN101692674B (en) Method and equipment for double stack access
US8631100B2 (en) Automatic assignment of hardware addresses within computer networks
CN100583904C (en) Automatic configuration method for host address in IPV6 network
US20120324063A1 (en) Method, network device, and system for automatically configuring network device in ipv6 network
CN102025630A (en) Load balancing method and load balancing system
CN102984288A (en) Method and system for managing internet protocol version 6 (IPV6) address conflicts automatically
CN102025797A (en) Address prefix processing method, device, system and network equipment
CN102833732A (en) IPv6 (Internet Protocol Version 6) address stateless autoconfiguration system, data card and implementation method thereof
US20180054415A1 (en) Internet Protocol Address Allocation Method and Router
WO2012146120A1 (en) Method for forwarding response packet from dhcp server, forwarding device and system
CN101179515B (en) Method and device for inhibiting black hole routing
US8291111B1 (en) Responding to a DHCPLEASEQUERY message
CN101909007B (en) Production method, device and network equipment of binding table
CN103795581A (en) Address processing method and address processing device
CN101729314A (en) Method and device for recovering dynamic table entries and dynamic host configuration protocol snoopingsnooping equipment
US6917977B2 (en) Method and system of automatic allocation of unique subnet identifier to a subnet in the network having multiple subnets and a plurality of associated routers and router interfaces
EP2911367B1 (en) Method and system for releasing addresses
WO2018006684A1 (en) Message processing method and device, and router
CN102752414B (en) Method and equipment for releasing Internet protocol (IP)v6 address
CN103595711A (en) Adjusting safety access method and exchanger
CN108632198B (en) Equipment management method and device
CN105337886A (en) DHCP address allocation method and DHCP address allocation device
CN107770070B (en) Information transmission method, equipment and system
US20080301229A1 (en) Client device, communication method and computer readable medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20110420