Nothing Special   »   [go: up one dir, main page]

CN103561122A - IPv6 address collocation method, IPv6 client and server - Google Patents

IPv6 address collocation method, IPv6 client and server Download PDF

Info

Publication number
CN103561122A
CN103561122A CN201310504080.XA CN201310504080A CN103561122A CN 103561122 A CN103561122 A CN 103561122A CN 201310504080 A CN201310504080 A CN 201310504080A CN 103561122 A CN103561122 A CN 103561122A
Authority
CN
China
Prior art keywords
server
ipv6
message
dhcpv6
address
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.)
Granted
Application number
CN201310504080.XA
Other languages
Chinese (zh)
Other versions
CN103561122B (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.)
Honor Device Co Ltd
Original Assignee
Huawei Device 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 Huawei Device Co Ltd filed Critical Huawei Device Co Ltd
Priority to CN201310504080.XA priority Critical patent/CN103561122B/en
Publication of CN103561122A publication Critical patent/CN103561122A/en
Application granted granted Critical
Publication of CN103561122B publication Critical patent/CN103561122B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses an IPv6 address collocation method, an IPv6 client and a server. The method comprises the steps that the IPv6 client receives an RA message from a router, the RA message comprises server information of the DHCPv6 server, and the server information comprises a server address of the DHCPv6 server; the IPv6 client sends a DHCP request to the DHCPv6 server according to the server address; the IPv6 client conducts address collocation according to a DHCP response fed back from the DHCPv6 server. According to the IPv6 address collocation method, the RA message comprises the server address of the DHCPv6 server, the IPv6 client sends the DHCP request according to the server address, when a multi-routing phenomenon exists in the same link, the IPv6 client routes the correct DHCPv6 server, the DHCP response is obtained from the correct DHCPv6 server, and correct routing information can be rapidly obtained.

Description

IPv6 address configuration method, IPv6 client and server
Technical field
The present invention relates to communication technical field, relate in particular to a kind of IPv6 address configuration method, IPv6 client and server.
Background technology
Along with Internet protocol (Internet Protocol, abbreviation IP) the exhaustion of the 4th edition (IPv4) address and the increasing of backbone route table maintenance difficulties, increasing operator starts to attempt disposing the sixth version (IPv6) of IP, the address Dynamic Acquisition mode of IPv6 and the address Dynamic Acquisition mode of IPv4 are compared larger variation have been occurred, IPv4 only depends on DHCP (Dynamic Host Configuration Protocol, abbreviation DHCP) interaction flow can carry out the Dynamic Acquisition of address, IPv6 has considered situation wireless and management large number quipments, introduced stateless address autoconfiguration (StateLess Address Auto Configuration, abbreviation SLAAC) mode is carried out address configuration, so in address, domain name system (Domain Name System, be called for short DNS), in the process of route acquisition, adopted routing broadcast (Route Advertisement, be called for short RA)+IPv6 dynamic address configuration protocol (Dynamic Host Configuration Protocol version6, abbreviation DHCPv6) mode.
In IPv6 client (IPv6client), obtain address and the network information (route, DNS etc.) in process, RA message has played determines the effect of obtaining address pattern, in RA message, be managed address configuration flag bit (Managed address configuration flag, be called for short M position) and other configuration flag bits (Other configuration flag, abbreviation O position) which information the equipment that value has determined to belong under this IPv6 client will obtain by DHCPv6 flow process, DHCPv6 flow process can produce DHCPv6 message, mutual cooperation by RA message and DHCPv6 message just can complete the distribution of sufficient address and the network information.Mode at employing RA message+DHCPv6 message is obtained in the process of address, route requests (the Route Solicit that IPv6 client sends, be called for short RS) be multicast, mail to all routers, all routers mail to all nodes in local area network (LAN) RA message after receiving RS message, the order that IPv6 client arrives according to RA message and priority are selected a RA message, and determine to initiate which information of DHCPv6 flow process request according to arranging of the M/O position in this RA message, finally by the information of obtaining in RA message and DHCPv6 flow process, complete network configuration.
Under some networking, may exist a plurality of IPv6 servers (IPv6server) to carry out direct communication with IPv6 client, in IPv6 address configuration process, may exist a plurality of routers to send RA message to IPv6 client, also may exist a plurality of DHCPv6 servers and IPv6 client to carry out DHCPv6 flow process, produce DHCPv6 message, use RA message and DHCPv6 message that at this moment IPv6 client may be chaotic.For example: in networking A, have IPv6 server 1 and IPv6 server 2, IPv6 server 1 and IPv6 server 2 all possess the function of router and DHCPv6 server, all can send RA message and DHCPv6 message.The RA message that IPv6 client may be used IPv6 server 1 to send in carrying out IPv6 address configuration process, and the DHCPv6 message that uses IPv6 server 2 to send, at this moment, IPv6 client may be IPv6 server 1 gateway by default, but from IPv6 server 2, obtain address and DNS information, can cause so the obstructed or route of route to be taken an unnecessary way.
In sum, while there is a plurality of DHCPv6 servers and a plurality of router in a link, there is the chaotic situation of using RA message and DHCPv6 message of IPv6 client, thereby cause the problem that route is obstructed or route is taken an unnecessary way.
Summary of the invention
technical problem
In view of this, the technical problem to be solved in the present invention is, in having the networking of a plurality of DHCPv6 servers and a plurality of routers, IPv6 client is chaotic to be used RA message and DHCPv6 message and cause the problem that route is obstructed or route is taken an unnecessary way.
solution
In order to solve the problems of the technologies described above, in first aspect, the present invention proposes a kind of IPv6 address configuration method, comprising:
IPv6 client receives routing broadcast RA message from the router of IPv6 server end, and described RA message comprises the server info of the DHCPv6 server of described IPv6 server end, and described server info comprises the server address of described DHCPv6 server;
Described IPv6 client, according to described server address, sends DHCP request to described DHCPv6 server, and described DHCP request comprises the information type of described IPv6 client-requested configuration;
Address configuration is carried out in the dhcp response that described IPv6 client is returned according to described DHCPv6 server, and described dhcp response comprises that described DHCPv6 server is the configuration information that described IPv6 client is distributed.
In conjunction with first aspect, in the possible implementation of the first, described server info also comprises first server sign, in described dhcp response, also comprise second server sign, described first server is designated the server identification of the described DHCPv6 server of preserving in described router, described second server is designated the server identification of the DHCPv6 server that returns to described dhcp response, address configuration is carried out in the dhcp response that described IPv6 client is returned according to described DHCPv6 server, specifically comprises:
When described first server sign and described second server identify when identical, address configuration is carried out in the dhcp response that described IPv6 client is returned according to described DHCPv6 server.
In conjunction with the possible implementation of the first of first aspect or first aspect, in the possible implementation of the second, described IPv6 client comprises before receiving routing broadcast RA message from the router of IPv6 server end:
Described IPv6 client sends route requests RS message to described router, and described RS message comprises the first device Domain information, also comprises the second device Domain information in described RA message;
Described IPv6 client, according to described server address, sends DHCP request to described DHCPv6 server, specifically comprises:
When described the first device Domain information is with described the second device Domain information when identical, described IPv6 client, according to described server address, sends described DHCP request to described DHCPv6 server.
In second aspect, the present invention proposes a kind of IPv6 address configuration method, comprising:
The router of IPv6 server end sends routing broadcast RA message to IPv6 client, and described RA message comprises the server info of the DHCPv6 server of IPv6 server end, and described server info comprises the server address of described DHCPv6 server;
Described DHCPv6 server receives the DHCP request that described IPv6 client sends according to described server address, and described DHCP request comprises the information type of described IPv6 client-requested configuration;
Described DHCPv6 server sends dhcp response to described IPv6 client, and described dhcp response comprises that described DHCPv6 server is the configuration information that described IPv6 client is distributed.
In conjunction with second aspect, in the possible implementation of the first, described server info also comprises first server sign, in described dhcp response, also comprise second server sign, described first server is designated the server identification of the described DHCPv6 server of preserving in described router, and described second server is designated the server identification of the DHCPv6 server that returns to described dhcp response.
In conjunction with the possible implementation of the first of second aspect, in the possible implementation of the second, the router of described IPv6 server end comprises before sending routing broadcast RA message to IPv6 client:
Described router is from described IPv6 client route requests RS message, and described RS message comprises the first device Domain information;
The router of described IPv6 server end sends routing broadcast RA message to IPv6 client, specifically comprises:
The device Domain information of preserving when described router self is with described the first device Domain information when identical, and the router of described IPv6 server end sends described RA message to described IPv6 client.
In the third aspect, the present invention proposes a kind of IPv6 client, comprising:
Receiving element, for the router from IPv6 server end, receive routing broadcast RA message, described RA message comprises the server info of the DHCPv6 server of described IPv6 server end, and described server info comprises the server address of described DHCPv6 server;
The first transmitting element, is connected with described receiving element, for according to described server address, to described DHCPv6 server, sends DHCP request, and described DHCP request comprises the information type of described IPv6 client-requested configuration;
Dispensing unit, is connected with described the first transmitting element, for the dhcp response of returning according to described DHCPv6 server, carries out address configuration, and described dhcp response comprises that described DHCPv6 server is the configuration information that described IPv6 client is distributed.
In conjunction with the third aspect, in the possible implementation of the first, described server info also comprises first server sign, in described dhcp response, also comprise second server sign, described first server is designated the server identification of the described DHCPv6 server of preserving in described router, described second server is designated the server identification of the DHCPv6 server that returns to described dhcp response, described dispensing unit also for:
When described first server sign and described second server identify when identical, address configuration is carried out in the dhcp response of returning according to described DHCPv6 server.
In conjunction with the possible implementation of the first of the third aspect or the third aspect, in the possible implementation of the second, described IPv6 client also comprises:
The second transmitting element, is connected with described receiving element, and for send route requests RS message to described router, described RS message comprises the first device Domain information, also comprises the second device Domain information in described RA message;
Described the first transmitting element is also for when identical, according to described server address, sending described DHCP request to described DHCPv6 server with described the second device Domain information when described the first device Domain information.
In fourth aspect, the present invention proposes a kind of IPv6 server, comprising:
Router, for send routing broadcast RA message to IPv6 client, described RA message comprises the server info of the DHCPv6 server of described IPv6 server end, described server info comprises the server address of described DHCPv6 server;
DHCPv6 server, the information type configuring for the described IPv6 client-requested comprising according to described DHCP request sends dhcp response to described IPv6 client, and described dhcp response comprises that described DHCPv6 server is the configuration information that described IPv6 client is distributed.
In conjunction with fourth aspect, in the possible implementation of the first, described server info also comprises first server sign, and described first server is designated the server identification of the described DHCPv6 server of preserving in described router.
In the possible implementation of the first of fourth aspect, in the possible implementation of the second, described router comprises:
The first receiving element, for from described IPv6 client route requests RS message, described RS message comprises the first device Domain information;
The first transmitting element, is connected with described the first receiving element, for the device Domain information of preserving when described router self, when identical, to described IPv6 client, sends described RA message with described the first device Domain information.
In conjunction with fourth aspect, in the third possible implementation, described DHCPv6 server comprises:
The second receiving element, the DHCP request sending according to described server address for receiving described IPv6 client, described DHCP request comprises the information type of described IPv6 client-requested configuration;
The second transmitting element, is connected with described the second receiving element, and for sending dhcp response to described IPv6 client, described dhcp response comprises that described DHCPv6 server is the configuration information that described IPv6 client is distributed.
In conjunction with the third possible implementation of fourth aspect, in the 4th kind of possible implementation, in described dhcp response, also comprise second server sign, described second server is designated the server identification of described DHCPv6 server.
The IPv6 address configuration method of the present embodiment, at RA message, comprise DHCPv6 server address, IPv6 client sends DHCP request according to this DHCPv6 server address clean culture, the in the situation that of making to have multirouting in same link, IPv6 client can be routed to correct DHCPv6 server by server address, from correct DHCPv6 server, obtain corresponding dhcp response, therefore can the correct routing iinformation of quick obtaining.
According to below with reference to accompanying drawing to detailed description of illustrative embodiments, it is clear that further feature of the present invention and aspect will become.
Accompanying drawing explanation
The accompanying drawing that is included in specification and forms a part for specification shows exemplary embodiment of the present invention, feature and aspect together with specification, and for explaining principle of the present invention.
Fig. 1 a illustrates according to the flow chart of the IPv6 address configuration method of the embodiment of the present invention one;
Fig. 1 b illustrates the schematic diagram of dividing according to the multirouting networking of the embodiment of the present invention one;
Fig. 2 illustrates according to the flow chart of the IPv6 address configuration method of the embodiment of the present invention two;
Fig. 3 illustrates according to the flow chart of the IPv6 address configuration method of the embodiment of the present invention three;
Fig. 4 illustrates according to the flow chart of the IPv6 address configuration method of the embodiment of the present invention four;
Fig. 5 illustrates according to the flow chart of the IPv6 address configuration method of the embodiment of the present invention five;
Fig. 6 illustrates according to the structured flowchart of the IPv6 client of the embodiment of the present invention six;
Fig. 7 illustrates according to the structured flowchart of the IPv6 client of the embodiment of the present invention seven;
Fig. 8 illustrates according to the structured flowchart of the IPv6 server of the embodiment of the present invention eight;
Fig. 9 illustrates according to the structured flowchart of the IPv6 server of the embodiment of the present invention nine;
Figure 10 illustrates according to the structured flowchart of the IPv6 client of the embodiment of the present invention ten;
Figure 11 illustrates according to the structured flowchart of the IPv6 server of the embodiment of the present invention 11.
Embodiment
Below with reference to accompanying drawing, describe various exemplary embodiments of the present invention, feature and aspect in detail.The identical same or analogous element of Reference numeral presentation function in accompanying drawing.Although the various aspects of embodiment shown in the drawings, unless otherwise indicated, needn't draw accompanying drawing in proportion.
Here special-purpose word " exemplary " means " as example, embodiment or illustrative ".Here as " exemplary " illustrated any embodiment, needn't be interpreted as being better than or being better than other embodiment.
In addition, for better explanation the present invention, in embodiment below, provided numerous details.It will be appreciated by those skilled in the art that and there is no some detail, the present invention can implement equally.In other example, the method for knowing for everybody, means, element and circuit are not described in detail, so that highlight purport of the present invention.
embodiment 1
Fig. 1 a illustrates according to the flow chart of the IPv6 address configuration method of the embodiment of the present invention one.As shown in Figure 1a, this IPv6 address configuration method mainly comprises:
Step 100, IPv6 client receive routing broadcast RA message from the router of IPv6 server end, described RA message comprises the server info of the DHCPv6 server of described IPv6 server end, and described server info comprises the server address of described DHCPv6 server.
Particularly, if there is a plurality of DHCPv6 servers and a plurality of router in a link, DHCPv6 server and router can be arranged on different equipment, also can be arranged on same equipment.IPv6 server end in the embodiment of the present invention can comprise DHCPv6 server and router.IPv6 route discovery protocols is by route requests RS and two kinds of network control message protocols of routing broadcast RA (Internet Control Message Protocol, be called for short ICMP6) jointly form, the effect of this agreement is in order to help the equipment of local area network (LAN) inside to find gateway or router, equipment can be communicated with outer net on the one hand; On the other hand, the IPv6 equipment to firm access network according to gateway or routing iinformation, sets IPv6 address.
In IPv6 client, obtain in the process of address and the network information (such as route, DNS etc.), IPv6 client is after router transmission route requests (RS) message of IPv6 server end, IPv6 client can receive routing broadcast (RA) message from the router of IPv6 server end, and RA message can play the effect that address pattern is obtained in decision.The value of the M/O position of RA message can determine which information is IPv6 client obtain by follow-up DHCPv6 flow process.For example, when M and O position are " 1 ", the DHCPv6 message that DHCPv6 flow process produces can for example, for location and distribution other information, domain name resolution server address and domain search list distributively; M position is " 0 ", and when O position is " 1 ", DHCPv6 message can be not used in and distribute address, and is used for distributing as above-mentioned other information.
In IPv6 address configuration process, RA message and DHCPv6 message interaction coordinate the configuration that can complete primary address and the network information.In RA message, can by the server option (option server) of expansion, carry the server info of DHCPv6 server, in server info, can comprise the server address of this DHCPv6 server.In addition, RS message and RA message can send for multicast, be that RS message can mail to each router in network, an IPv6 client also can receive a plurality of RA messages, and IPv6 client can be used according to RA messages of Information Selection such as the arrival order of RA message and priority.
Step 120, described IPv6 client, according to described server address, send DHCP request to described DHCPv6 server, and described DHCP request comprises the information type of described IPv6 client-requested configuration.
It should be noted that, because described IPv6 client is according to server address, to DHCPv6 server, send DHCP request, be that IPv6 client sends clean culture DHCP request to DHCPv6 server, can reduce the DHCPv6 message multicast data flow on same link, save Internet resources, alleviate network burden.
Address configuration is carried out in the dhcp response that step 140, described IPv6 client are returned according to described DHCPv6 server, and described dhcp response comprises that described DHCPv6 server is the configuration information that described IPv6 client is distributed.
Particularly, IPv6 client can obtain the server address of DHCPv6 server according to parsing RA message, to the server address clean culture of this DHCPv6 server send DHCP request, the information type that can comprise the configuration of IPv6 client-requested in DHCP request, such as: address and the network information (route, DNS) etc.DHCPv6 server can be replied according to DHCP request, to IPv6 client, sends dhcp response, and this dhcp response comprises that DHCPv6 server is the configuration information that IPv6 client is distributed.Receive after dhcp response, IPv6 client can complete according to configuration information wherein IPv6 address configuration.
For example, Fig. 1 b illustrates the schematic diagram that multirouting networking is divided, in the situation that , operator wants the private network of self and the Internet (Internet) to separate as shown in Figure 1 b, can carry out networking division according to Fig. 1 b, server end has respectively the entrance of the Internet and private network.In same link, IPv6 client _ 1 can reception server end the router _ 1 RA message of replying according to RS message, and resolve the server address that RA message obtains having with router _ 1 DHCPv6 server _ 1 of corresponding relation, IPv6 client _ 1 can send to DHCPv6 server _ 1 DHCP request, and address configuration is carried out in the dhcp response of returning according to DHCPv6 server _ 1.Can allow like this wide area network (Wide Area Network is called for short WAN) of Internet network and the WAN of wide area network management agreement (being called for short Tr069) obtain respectively different default gateways, thorough separated Internet network and Tr069 network.Wherein, Tr069 provides general framework and the agreement that home network device in next generation network is managed to configuration, for the equipment such as the gateway of home network, router, Set Top Box being carried out to remote centralized management from network side.
The IPv6 address configuration method of the present embodiment, IPv6 client is by resolving RA message, can obtain the server address of DHCPv6 server, and according to this server address to DHCPv6 unicast service send DHCP request, the in the situation that of making to have multirouting in same link, IPv6 client can be routed to correct DHCPv6 server by server address, from correct DHCPv6 server, obtains corresponding dhcp response, therefore can the correct routing iinformation of quick obtaining.
embodiment 2
Fig. 2 illustrates according to the flow chart of the IPv6 address configuration method of the embodiment of the present invention two.The step that in Fig. 2, label is identical with Fig. 1 a has identical function, for simplicity's sake, omits the detailed description to these steps.
As shown in Figure 2, the IPv6 address configuration method shown in Fig. 2, is only described in detail for the part different from Fig. 1 below, and Fig. 1 same section illustrating referring to Fig. 1.
Optionally, server info can also comprise first server sign, in dhcp response, can also comprise second server sign, first server is designated the server identification of the DHCPv6 server of preserving in router, and second server is designated the server identification of the DHCPv6 server that returns to dhcp response.Step 140 specifically can comprise:
Step 240, when described first server sign and described second server identify when identical, address configuration is carried out in the dhcp response that described IPv6 client is returned according to described DHCPv6 server.
Particularly, the server identification (server id) that network manager can preserve a DHCPv6 server in advance in router is first server sign, show that this DHCPv6 server and this router have corresponding relation, it is second server sign that network manager can also set a server identification for DHCPv6 server in advance.Like this, IPv6 client, after dhcp response, can carry out verification to first server sign and second server sign, further guarantees the fail safe of network.When first server sign and second server identify when identical, show that RA message and DHCPv6 message configure in pairs, there is no chaotic use RA message and DHCPv6 message, can correctly complete the address configuration of IPv6 client; When first server sign is different with second server sign, show that the DHCPv6 server that returns to dhcp response does not have corresponding relation with the router that sends RA message, may be that the server address of maliciously forging DHCPv6 server by a certain equipment causes, cannot correctly complete the address configuration of IPv6 client.
Optionally, before step 100, can also comprise:
Step 200, described IPv6 client send route requests RS message to described router, and described RS message comprises the first device Domain information, also comprises the second device Domain information in described RA message.
Step 120 specifically can comprise:
Step 220, when described the first device Domain information is with described the second device Domain information when identical, described IPv6 client, according to described server address, sends described DHCP request to described DHCPv6 server.
Particularly, IPv6 client, when carrying out IPv6 address configuration, can first be broadcast and send RS message to the groups of routers of IPv6 server end, mails to each router.In this RS message, can comprise the first device Domain information, i.e. the device Domain information at IPv6 client place.Wherein, device Domain can be arranged according to information such as IPv6 client functionality type and IPv6 client regions by network manager in advance, by introducing device Domain information, can facilitate network manager to manage network (as intra-company's local area network (LAN)).The router of IPv6 server end can contrast the device Domain information of the first device Domain information and router self, if above-mentioned two kinds of device Domain information are identical, router can send RA message for IPv6 client.
In multirouting networking, after the first device Domain information that the device Domain information of preserving in the router verification self of IPv6 server end comprises with RS message is identical, router can send RA message to IPv6 client, now, may exist a plurality of routers to send RA message to IPv6 client.Whether IPv6 client the second device Domain information that these RA messages of verification comprise is respectively identical with the first device Domain information.If identical, IPv6 client can be resolved RA message, obtains server address and the first server sign of DHCPv6 server, and to DHCPv6 server, sends DHCP request according to the server address of DHCPv6 server; If not identical, IPv6 client can be again sends RS message to the router of IPv6 server end, and continues to start to re-execute from step 100 the address configuration process of IPv6 client.
It should be noted that, by verification the first device Domain information and the second device Domain information, can in a plurality of RA messages that return, determine that a RA message is used, no longer need, according to Information Selection RA messages such as the arrival order of RA message or priority, to have alleviated the burden of router and network.
For example, referring to the associated description shown in Fig. 1 b and in embodiment mono-, in same link, if the device Domain information that the first device Domain information and router _ 1 that the RS that router _ 1 of server end receives from IPv6 client _ 1 comprises self is preserved is identical, RA can be replied to IPv6 client _ 1 in router _ 1.In this RA, also comprise in router _ 1 the first server sign of preserving and the server address of DHCPv6 server _ 1, IPv6 client _ 1 can to the clean culture of DHCPv6 server _ 1 send DHCP and ask.If the second server sign of the first server of preserving in router _ 1 sign and DHCPv6 server _ 1 is identical, address configuration is carried out in the dhcp response that IPv6 client _ 1 can be returned according to DHCPv6 server _ 1.Divide in advance different device Domain information, can allow the wide area network (WAN) of the Internet and the WAN of Tr069 obtain respectively different default gateways, thorough separated the Internet and Tr069 network.
The IPv6 address configuration method of the present embodiment, by introducing the first device Domain information and the second device Domain information, a plurality of RA messages that can reply from a plurality of routers select a RA message to use, no longer need, according to Information Selection RA messages such as the arrival order of RA message or priority, to have alleviated the burden of router and network; By the verification to first server sign and second server sign, can guarantee the fail safe of network.
embodiment 3
Fig. 3 illustrates according to the flow chart of the IPv6 address configuration method of the embodiment of the present invention three.As shown in Figure 3, this IPv6 address configuration method mainly comprises:
The router of step 300, IPv6 server end sends routing broadcast RA message to IPv6 client, described RA message comprises the server info of the DHCPv6 server of IPv6 server end, and described server info comprises the server address of described DHCPv6 server.
Particularly, in IPv6 client, obtain in the process of address and the network information (such as route, DNS etc.), the router of IPv6 server end can send routing broadcast RA message to IPv6 client, RA message comprises the server info of the DHCPv6 server of IPv6 server end, in this server info, can comprise the server address of DHCPv6 server, for follow-up to DHCPv6 unicast service send DHCP request, realize the paired configuration of RA message and DHCPv6 message, correctly carry out IPv6 address configuration.
The DHCPv6 server of step 320, described IPv6 server end receives the DHCP request that described IPv6 client sends according to described server address, and described DHCP request comprises the information type of described IPv6 client-requested configuration.
Step 340, described DHCPv6 server send dhcp response to described IPv6 client, and described dhcp response comprises that described DHCPv6 server is the configuration information that described IPv6 client is distributed.
Particularly, associated description referring to the IPv6 address configuration method in embodiment mono-, the DHCPv6 server of IPv6 server end can receive the DHCP request that IPv6 client sends according to the server address of DHCPv6 server, DHCPv6 server can be further the information type of the IPv6 client-requested configuration that request comprises according to DHCP be IPv6 client assignment configuration information, and send dhcp response to IPv6 client, this dhcp response comprises that DHCPv6 server is the configuration information that IPv6 client is distributed, for follow-up IPv6 client, according to above-mentioned configuration information, complete IPv6 address configuration.
For example, referring to the associated description shown in Fig. 1 b and in embodiment mono-, in same link, router _ 1 of server end can send to IPv6 client _ 1 RA message, DHCPv6 server _ 1 of server end can receive IPv6 client _ 1 and send DHCP request, and the information type of IPv6 client _ 1 comprising according to DHCP request request configuration is IPv6 client _ 1 assignment configuration information, and return to dhcp response to IPv6 client _ 1, for IPv6 client _ 1, carry out address configuration.Can allow like this wide area network (WAN) of the Internet and the WAN of Tr069 obtain respectively different default gateways, thorough separated the Internet and Tr069 network.
The IPv6 address configuration method of the present embodiment, the router of IPv6 server end sends the RA message of the server address that comprises DHCPv6 server to IPv6 client, this DHCPv6 server receives DHCP request, the configuration information that DHCPv6 server needs for the distribution of IPv6 client according to DHCP request, the in the situation that of making to have multirouting in same link, IPv6 client can be routed to correct DHCPv6 server by server address, correct DHCPv6 server receives DHCP request assignment configuration information, therefore can the correct routing iinformation of quick obtaining.
embodiment 4
Fig. 4 illustrates according to the flow chart of the IPv6 address configuration method of the embodiment of the present invention four.The step that in Fig. 4, label is identical with Fig. 3 has identical function, for simplicity's sake, omits the detailed description to these steps.
As shown in Figure 4, the IPv6 address configuration method shown in Fig. 4, is only described in detail for the part different from Fig. 3 below, and Fig. 3 same section illustrating referring to Fig. 3.
Optionally, server info can also comprise first server sign, in dhcp response, can also comprise second server sign, first server is designated the server identification of the DHCPv6 server of preserving in router, and second server is designated the server identification of the DHCPv6 server that returns to dhcp response.First server sign and second server identify can be for carrying out verification to DHCPv6 server, avoids maliciously forging because of a certain equipment the harm that the server address of DHCPv6 server causes, and guarantees the fail safe of network.
Before step 300, can also comprise:
Step 400, described router are from described IPv6 client route requests RS message, and described RS message comprises the first device Domain information.
Step 300 specifically can comprise:
Step 420, the device Domain information of preserving when described router self are with described the first device Domain information when identical, and the router of described IPv6 server end sends described RA message to described IPv6 client.
Particularly, before the router of IPv6 server end sends RA message to IPv6 client, can receive the RS message from IPv6 client, RS message comprises the first device Domain information, be the device Domain information at IPv6 client place, wherein, device Domain can be arranged according to information such as IPv6 client functionality type and IPv6 client regions by network manager in advance.After router receives RS message, directly do not reply RA message, but can carry out verification to device Domain information, judge that whether the device Domain information of the first device Domain information and router self preservation is identical.If identical, perform step 420, to IPv6 client, send RA message, in RA message, can comprise server address and the first server sign of DHCPv6 server; If different, can not continue to carry out the address configuration process of IPv6 client, need to wait for that IPv6 client sends RS message to router again.By the device Domain information of the first device Domain information and router self preservation is carried out to verification, can reduce the router number of replying RA message in networking, reduce the RA message in network, alleviated the burden of router and network.
For example, referring to the associated description shown in Fig. 1 b and in embodiment mono-, in same link, router _ 1 of server end can receive the RS message that IPv6 client _ 1 sends, router _ 1 is in the situation that the identical RA message that sends to IPv6 client _ 1 of device Domain information that the first device Domain information and router _ 1 that RS message comprises self is preserved, DHCPv6 server _ 1 of server end can receive the DHCP request that IPv6 client _ 1 sends according to the server address of DHCPv6 server _ 1 in RA message, and the information type of the IPv6 client _ 1 request configuration that request comprises according to DHCP is IPv6 client _ 1 assignment configuration information, and return to dhcp response to IPv6 client _ 1, for IPv6 client _ 1, carry out address configuration.Can allow like this wide area network (WAN) of the Internet and the WAN of Tr069 obtain respectively different default gateways, thorough separated the Internet and Tr069 network.
The IPv6 address configuration method of the present embodiment, by the verification to the device Domain information of the first device Domain information and router self preservation, IPv6 server end only has part router to reply RA message to IPv6 client, can reduce the RA message in network, alleviate the burden of router and network.
embodiment 5
Fig. 5 illustrates according to the flow chart of the IPv6 address configuration method of the embodiment of the present invention five.As shown in Figure 5, this IPv6 address configuration method mainly comprises:
Step 501, IPv6 client send RS message to the router of IPv6 server end, and RS message comprises the first device Domain information.
Particularly, IPv6 client belongs to multicast and sends when router sends RS message, mails to the all-router of same link in networking.
Step 502, router are from IPv6 client RS message.
Particularly, in networking, the all-router of same link can receive the RS message from IPv6 client, RS message comprises the first device Domain information, be the device Domain information at IPv6 client place, wherein, device Domain can be arranged according to information such as IPv6 client functionality type and IPv6 client regions by network manager in advance.
Whether the device Domain information that step 503, router verification router self are preserved is identical with the first device Domain information;
Step 504, the device Domain information of preserving when router self are with the first device Domain information when identical, described router sends RA message to IPv6 client, described RA message comprises the server info of the DHCPv6 server of IPv6 server end, and described server info comprises server address and the first server sign of described DHCPv6 server.
Particularly, after all-router receives RS message, directly do not reply RA message, but can to device Domain information, carry out verification respectively, judge that whether the device Domain information of the first device Domain information and router self preservation is identical.If the device Domain information that router self is preserved is identical with the first device Domain, this router can send RA message to IPv6 client, and RA message comprises the server info of DHCPv6 server; If it is all different from the first device Domain information to receive the device Domain information that the all-router self of RS message preserves, to IPv6 client, do not send RA message, wait IPv6 client resends RS message.
It should be noted that, by introducing device Domain information and carrying out verification, in multirouting networking, to only have part router to send RA message to IPv6 client, reduced the RA message in network.First server sign is the server identification of the DHCPv6 server preserved in router.
Step 505, IPv6 client receive RA message from router, also carry the second device Domain information in RA message, and whether verification the first device Domain information is identical with the second device Domain information;
Step 506, when the first device Domain information is with the second device Domain information when identical, IPv6 client is resolved RA message, obtains server address and the first server sign of DHCPv6 server;
Particularly, the second device Domain information is the device Domain information of carrying in the RA message returning, and can be preset by network manager.Whether identical with the second device Domain information by verification the first device Domain information, can from a plurality of RA messages, determine that a RA message is used, no longer need, according to Information Selection RA messages such as the arrival order of RA message or priority, to have alleviated the burden of router and network.
Step 507, according to server address, to DHCPv6 server, send DHCP request, DHCP request comprises the information type of IPv6 client-requested configuration.
Particularly, IPv6 client can be resolved the server info in RA message, obtain the server address of DHCPv6 server, according to this server address, can determine to which DHCPv6 server of same link in multirouting networking and send DHCP request, multicast data flow is become to unicast stream, can reduce the DHCPv6 message multicast data flow on same link, save Internet resources, alleviate network burden.
Step 508, DHCPv6 server receive DHCP request, according to the information type of request configuration in DHCP request, distribute the configuration information needing;
Step 509, DHCPv6 server send dhcp response to IPv6 client, and dhcp response comprises that DHCPv6 server is configuration information and the second server sign that IPv6 client is distributed.
Particularly, the information type that DHCPv6 server can need to configure according to the IPv6 client of indication in DHCP request is IPv6 client assignment configuration information, and informs IPv6 client with the form of dhcp response.Wherein, second server is designated the server identification of the DHCPv6 server that returns to dhcp response.
Step 510, when first server sign and second server identify when identical, IPv6 client is carried out IPv6 address configuration according to configuration information.
Particularly, by configuration first server sign and second server, identify and it is carried out to verification, can avoid maliciously forging because of a certain equipment the harm that the server address etc. of DHCPv6 server causes, guaranteeing the fail safe of network.
The IPv6 address configuration method of the present embodiment, the RA message that IPv6 client sends by resolving router, can obtain the server address of DHCPv6 server, and according to this server address to DHCPv6 unicast service send DHCP request, the in the situation that of making to have multirouting in same link, IPv6 client can be routed to correct DHCPv6 server by server address, from correct DHCPv6 server, obtain corresponding dhcp response, therefore can the correct routing iinformation of quick obtaining; By the verification to first server sign and second server sign, can guarantee the fail safe of network; By the verification to device Domain information, can reduce the RA message in network, no longer need, according to Information Selection RA messages such as the arrival order of RA message or priority, to have alleviated the burden of router and network.
embodiment six
Fig. 6 illustrates according to the structured flowchart of the IPv6 client of the embodiment of the present invention six.As shown in Figure 6, this IPv6 client 500 comprises:
Receiving element 520, for the router from IPv6 server end, receive routing broadcast RA message, described RA message comprises the server info of the DHCPv6 server of described IPv6 server end, and described server info comprises the server address of described DHCPv6 server.
Particularly, in IPv6 client 500, obtain in the process of address and the network information (such as route, DNS etc.), IPv6 client 500 is after router transmission route requests (RS) message of IPv6 server end, receiving element 520 can receive routing broadcast (RA) message from the router of IPv6 server end, and RA message can play the effect that address pattern is obtained in decision.The value of the M/O position of RA message can determine which information is IPv6 client 500 obtain by follow-up DHCPv6 flow process.For example, when M and O position are " 1 ", the DHCPv6 message that DHCPv6 flow process produces can for example, for the configuration of address and other information, domain name resolution server address and domain search list; M position is " 0 ", and when O position is " 1 ", DHCPv6 message can be not used in and distribute address, and is used for distributing other information to be configured.
In IPv6 address configuration process, RA message and DHCPv6 message interaction coordinate the configuration that can complete primary address and the network information.Wherein, in the RA message receiving at receiving element 520, can by the server option (option server) of expansion, carry the server info of DHCPv6 server, in server info, can comprise the server address of this DHCPv6 server.In addition, RS message and RA message can send for multicast, be that RS message can mail to each router in network, IPv6 client 500 also can receive a plurality of RA messages, and IPv6 client 500 can be used according to RA messages of Information Selection such as the arrival order of RA message and priority.
The first transmitting element 540, is connected with described receiving element 520, for according to described server address, to described DHCPv6 server, sends DHCP request, and described DHCP request comprises the information type of described IPv6 client-requested configuration.
It should be noted that, because the first transmitting element 540 is according to server address, to DHCPv6 server, send DHCP request, be that IPv6 client is asked to DHCPv6 server transmission clean culture DHCP by the first transmitting element 540, can reduce the DHCPv6 message multicast data flow on same link, save Internet resources, alleviate network burden.
Dispensing unit 560, is connected with described the first transmitting element 540, for the dhcp response of returning according to described DHCPv6 server, carries out address configuration, and described dhcp response comprises that described DHCPv6 server is the configuration information that described IPv6 client is distributed.
Particularly, IPv6 client 500 is according to the server address of resolving the available DHCPv6 server of RA message, the first transmitting element 540 can according to this server address to DHCPv6 unicast service send DHCP request, the information type that can comprise the 500 request configurations of IPv6 client in DHCP request, such as: address and the network information (route, DNS) etc.The DHCPv6 server of IPv6 server end can determine need to distribute which information for IPv6 client 500, the dispensing unit 560 of IPv6 client 500 can carry out IPv6 address configuration according to the configuration information in the dhcp response of returning according to this DHCP request.
For example, Fig. 1 b illustrates the schematic diagram that multirouting networking is divided, in the situation that , operator wants the private network of self and the Internet (Internet) to separate as shown in Figure 1 b, can carry out networking division according to Fig. 1 b, server end has respectively the entrance of the Internet and private network.In same link, IPv6 client _ 1 can reception server end the router _ 1 RA message of replying according to RS message, and resolve the server address that RA message obtains having with router _ 1 DHCPv6 server _ 1 of corresponding relation, IPv6 client _ 1 can send to DHCPv6 server _ 1 DHCP request, and address configuration is carried out in the dhcp response of returning according to DHCPv6 server _ 1.Can allow like this wide area network (Wide Area Network is called for short WAN) of Internet network and the WAN of wide area network management agreement (being called for short Tr069) obtain respectively different default gateways, thorough separated Internet network and Tr069 network.Wherein, Tr069 provides general framework and the agreement that home network device in next generation network is managed to configuration, for the equipment such as the gateway of home network, router, Set Top Box being carried out to remote centralized management from network side.
The IPv6 address configuration method of the present embodiment, the RA message that IPv6 client receives by resolving receiving element, can obtain the server address of DHCPv6 server, the first transmitting element according to this server address to DHCPv6 unicast service send DHCP request, the in the situation that of making to have multirouting in same link, IPv6 client can be routed to correct DHCPv6 server by server address, from correct DHCPv6 server, obtain corresponding dhcp response, therefore can the correct routing iinformation of quick obtaining.
embodiment seven
Fig. 7 illustrates according to the structured flowchart of the IPv6 client of the embodiment of the present invention seven.The assembly that in Fig. 7, label is identical with Fig. 6 has identical function, for simplicity's sake, omits the detailed description to these assemblies.
As shown in Figure 7, the IPv6 client shown in Fig. 7, is only described in detail for the part different from Fig. 6 below, and Fig. 6 same section illustrating referring to Fig. 6.
Optionally, server info can also comprise first server sign, in dhcp response, can also comprise second server sign, first server is designated the server identification of the DHCPv6 server of preserving in router, and second server is designated the server identification of the DHCPv6 server that returns to dhcp response.
Dispensing unit 560 is also for identifying when described first server sign and described second server when identical, and address configuration is carried out in the dhcp response of returning according to described DHCPv6 server.
Particularly, the server identification (server id) that network manager can preserve a DHCPv6 server in advance in router is first server sign, show that this DHCPv6 server and this router have corresponding relation, it is second server sign that network manager can set a server identification for DHCPv6 server in advance.Like this, IPv6 client, after dhcp response, can carry out verification to first server sign and second server sign, further guarantees the fail safe of network.At first server sign and second server, identify when identical, show that RA message and DHCPv6 message configure in pairs, there is no chaotic use RA message and DHCPv6 message, can correctly complete the address configuration of IPv6 client; When first server sign is different with second server sign, the DHCPv6 server that shows to return dhcp response does not have corresponding relation with the router that sends RA message, may be that the server address etc. of maliciously forging DHCPv6 server by a certain equipment causes.
IPv6 client 600 specifically can also comprise:
The second transmitting element 620, is connected with described receiving element 520, and for send route requests RS message to described router, described RS message comprises the first device Domain information, also comprises the second device Domain information in described RA message;
The first transmitting element 540 is also for when identical, according to described server address, sending described DHCP request to described DHCPv6 server with described the second device Domain information when described the first device Domain information.
Particularly, IPv6 client 600 is when carrying out IPv6 address configuration, and the second transmitting element 620 can first be broadcast and send RS message to the groups of routers of IPv6 server end, mails to each router.This RS message comprises the first device Domain information, i.e. the device Domain information at IPv6 client 600 places.Wherein, device Domain can be arranged according to information such as IPv6 client 600 function types and IPv6 client 600 regions by network manager in advance, by introduce device Domain information can facilitate network manager to network as the management of intra-company's local area network (LAN).The router of IPv6 server end can contrast the device Domain information of the first device Domain information and router self, if above-mentioned two kinds of device Domain information are identical, router can send RA message for IPv6 client 600.
In multirouting networking, after the first device Domain information that the device Domain information of preserving in the router verification self of IPv6 server end comprises with RS message is identical, router can send RA message to IPv6 client 600, now, may exist a plurality of routers to send RA message to IPv6 client.Whether IPv6 client the second device Domain information that these RA messages of verification comprise is respectively identical with the first device Domain information, and wherein the second device Domain information is for sending the device Domain information of the router of above-mentioned RA message.If identical, IPv6 client 600 can be resolved RA message, obtains server address and the first server sign of DHCPv6 server, and the first transmitting element 540 can send DHCP request to DHCPv6 server according to the server address of DHCPv6 server; If not identical, the second transmitting element 620 can be again sends RS message to the router of IPv6 server end.
It should be noted that, by verification the first device Domain information and the second device Domain information, can in a plurality of RA messages that return, determine that a RA message is used, no longer need, according to Information Selection RA messages such as the arrival order of RA message or priority, to have alleviated the burden of router and network.
The IPv6 client of the present embodiment, by introducing the first device Domain information and the second device Domain information, a plurality of RA messages that can reply from a plurality of routers select a RA message to use, no longer need, according to Information Selection RA messages such as the arrival order of RA message or priority, to have alleviated the burden of router and network; By first server sign and second server sign are carried out to verification, can guarantee the fail safe of network.
embodiment 8
Fig. 8 illustrates according to the structured flowchart of the IPv6 server of the embodiment of the present invention eight.As shown in Figure 8, this IPv6 server 700 specifically can comprise:
Router 720, for send routing broadcast RA message to IPv6 client, described RA message comprises the server info of the DHCPv6 server of described IPv6 server end, described server info comprises the server address of described DHCPv6 server.
Particularly, in IPv6 client, obtain in the process of address and the network information (such as route, DNS etc.), the router 720 of IPv6 server 700 can send routing broadcast RA message to IPv6 client, RA message comprises the server info of the DHCPv6 server 740 of IPv6 server 700, in this server info, can comprise the server address of DHCPv6 server 740, for follow-up to 740 clean cultures of DHCPv6 server send DHCP request, realize the paired configuration of RA message and DHCPv6 message, correctly carry out IPv6 address configuration.
DHCPv6 server 740, the information type configuring for the described IPv6 client-requested comprising according to described DHCP request sends dhcp response to described IPv6 client, and described dhcp response comprises that described DHCPv6 server is the configuration information that described IPv6 client is distributed.
Particularly, associated description referring to the IPv6 address configuration method in embodiment mono-, the DHCPv6 server 740 of IPv6 server end 700 can receive the DHCP request that IPv6 client sends according to the server address of DHCPv6 server 740, DHCPv6 server 740 can be further the information type of the IPv6 client-requested configuration that request comprises according to DHCP be the configuration information that IPv6 client is distributed needs, and send dhcp response to IPv6 client, this dhcp response comprises the configuration information that DHCPv6 server 740 distributes for IPv6 client, for follow-up IPv6 client, according to above-mentioned configuration information, complete IPv6 address configuration.
Concrete example can be referring to the associated description in Fig. 1 b, embodiment tri-and embodiment tetra-.
The IPv6 server of the present embodiment, the router of IPv6 server end sends the RA message of the server address that comprises DHCPv6 server to IPv6 client, this DHCPv6 server receives DHCP request, the configuration information that DHCPv6 server needs for the distribution of IPv6 client according to DHCP request, the in the situation that of making to have multirouting in same link, IPv6 client can be routed to correct DHCPv6 server by server address, from correct DHCPv6 server, obtain corresponding dhcp response, therefore can the correct routing iinformation of quick obtaining.
embodiment 9
Fig. 9 illustrates according to the structured flowchart of the IPv6 server of the embodiment of the present invention nine.The assembly that in Fig. 9, label is identical with Fig. 8 has identical function, for simplicity's sake, omits the detailed description to these assemblies.
As shown in Figure 9, the IPv6 server shown in Fig. 9, is only described in detail for the part different from Fig. 8 below, and Fig. 8 same section illustrating referring to Fig. 8.
Optionally, server info can also comprise first server sign, in dhcp response, can also comprise second server sign, first server is designated the server identification of the DHCPv6 server of preserving in router, and second server is designated the server identification of the DHCPv6 server that returns to dhcp response.First server sign and second server identify can carry out verification to DHCPv6 server for IPv6 client, avoids maliciously forging because of a certain equipment the harm that the server address etc. of DHCPv6 server causes, and guarantees the fail safe of network.
Router 720 specifically can comprise:
The first receiving element 820, for from described IPv6 client route requests RS message, described RS message comprises the first device Domain information.
Particularly, before the router 720 of IPv6 server 800 sends RA message to IPv6 client, the first receiving element 820 can receive the RS message from IPv6 client, RS message comprises the first device Domain information, be the device Domain information at IPv6 client place, wherein, device Domain can be arranged according to information such as IPv6 client functionality type and IPv6 client regions by network manager in advance, by introduce device Domain information can facilitate network manager to network as the management of intra-company's local area network (LAN).
The first transmitting element 840, is connected with described the first receiving element 820, for the device Domain information preserving when described router self, when identical, to described IPv6 client, sends described RA message with described the first device Domain information.
Particularly, the first receiving element 820 comprises the first device Domain information from the RS message of IPv6 client, after receiving RS message, router 720 directly do not reply RA message, but can carry out verification to device Domain information, judge that whether the device Domain information that the first device Domain information and router 720 self preserved is identical.If identical, the first transmitting element 840 can send RA message to IPv6 client, and RA message comprises server address and the first server sign of DHCPv6 server 740; If different, the first receiving element 820 is again from IPv6 client RS message.
Concrete example can be referring to the associated description in Fig. 1 b, embodiment tri-and embodiment tetra-.
Further, DHCPv6 server 740 specifically can comprise:
The second receiving element 860, the DHCP request sending according to described server address for receiving described IPv6 client, described DHCP request comprises the information type of described IPv6 client-requested configuration;
The second transmitting element 880, is connected with described the second receiving element 860, and for sending dhcp response to described IPv6 client, described dhcp response comprises that described DHCPv6 server is the configuration information that described IPv6 client is distributed.
Particularly, associated description referring to the IPv6 address configuration method in embodiment tri-, the second receiving element 860 can receive the DHCP request that IPv6 client sends according to the server address of DHCPv6 server 740, DHCPv6 server 740 can be further the information type of the IPv6 client-requested configuration that request comprises according to DHCP be IPv6 client assignment configuration information, the second transmitting element 880 sends dhcp response to IPv6 client, and this dhcp response comprises configuration information and the second server sign that DHCPv6 server 740 distributes for IPv6 client.Second server sign can be carried out verification for the IPv6 client in embodiment eight, so that IPv6 address configuration process has fail safe more.
The IPv6 server of the present embodiment, by the verification to the device Domain information of the first device Domain information and router self preservation, IPv6 server end only has part router to IPv6 client, to reply RA message by the first transmitting element, can reduce the RA message in network, alleviate the burden of router and network.
embodiment 10
Figure 10 illustrates according to the structured flowchart of a kind of IPv6 client of the embodiment of the present invention ten.Described IPv6 client 900 can be host server, personal computer PC or portable portable computer or the terminal etc. that possess computing capability.The specific embodiment of the invention does not limit the specific implementation of computing node.
Described IPv6 client 900 comprises processor (processor) 910, communication interface (Communications Interface) 920, memory (memory array) 930 and bus 940.Wherein, processor 910, communication interface 920 and memory 930 complete mutual communication by bus 940.
Communication interface 920 for net element communication, wherein network element comprises such as Virtual Machine Manager center, shares storage etc.
Processor 910 is for executive program.Processor 910 may be a central processor CPU, or application-specific integrated circuit ASIC (Application Specific Integrated Circuit), or is configured to implement one or more integrated circuits of the embodiment of the present invention.
Memory 930 is for storing documents.Memory 930 may comprise high-speed RAM memory, also may also comprise nonvolatile memory (non-volatile memory), for example at least one magnetic disc store.Memory 930 can be also memory array.Memory 930 also may be by piecemeal, and described can become virtual volume by certain principle combinations.
In a kind of possible execution mode, said procedure can be the program code that comprises computer-managed instruction.
IPv6 client can receive routing broadcast RA message from the router of IPv6 server end by communication interface 920, and be stored in memory 930, described RA message comprises the server info of the DHCPv6 server of described IPv6 server end, and described server info comprises the server address of described DHCPv6 server;
The processor 910 of described IPv6 client can be resolved RA message and be obtained server address, and to described DHCPv6 server transmission DHCP, ask according to described server address by communication interface 920, described DHCP request comprises the information type of described IPv6 client-requested configuration;
Described IPv6 client can receive the dhcp response that described DHCPv6 server returns by communication interface 920, processor 910 can carry out address configuration according to described dhcp response, and described dhcp response comprises that described DHCPv6 server is the configuration information that described IPv6 client is distributed.
In a kind of possible implementation, in memory 930, the server info of storage also comprises first server sign, in described dhcp response, also comprise second server sign, described first server is designated the server identification of the described DHCPv6 server that in described router, memory 930 is preserved, described second server is designated the server identification of the DHCPv6 server that returns to described dhcp response, address configuration is carried out in the dhcp response that the processor 910 of described IPv6 client returns according to described DHCPv6 server, specifically comprises:
When described first server sign and described second server identify when identical, address configuration is carried out in the dhcp response that the processor 910 of described IPv6 client returns according to described DHCPv6 server.
In a kind of possible implementation, described IPv6 client comprises before receiving routing broadcast RA message by communication interface 920 from the router of IPv6 server end:
Described IPv6 client sends route requests RS message by communication interface 920 to described router, and described RS message comprises the first device Domain information, also comprises the second device Domain information in described RA message;
The processor 910 of described IPv6 client, according to described server address, sends DHCP request to described DHCPv6 server, specifically comprises:
When described the first device Domain information is with described the second device Domain information when identical, the processor 910 of described IPv6 client is resolved the server address that obtains described DHCPv6 server, by communication interface 920, according to described server address, to described DHCPv6 server, send described DHCP request.
embodiment 11
Figure 11 illustrates according to the structured flowchart of a kind of IPv6 server of the embodiment of the present invention 11.Described IPv6 server 1000 can be host server, personal computer PC or portable portable computer or the terminal etc. that possess computing capability.The specific embodiment of the invention does not limit the specific implementation of computing node.
IPv6 server end can comprise router and DHCPv6 server, and described router and DHCPv6 server all can comprise processor (processor) 1010, communication interface (Communications Interface) 1020, memory (memory array) 1030 and bus 1040.Wherein, processor 1010, communication interface 1020 and memory 1030 complete mutual communication by bus 1040.
Communication interface 1020 for net element communication, wherein network element comprises such as Virtual Machine Manager center, shares storage etc.
Processor 1010 is for executive program.Processor 1010 may be a central processor CPU, or application-specific integrated circuit ASIC (Application Specific Integrated Circuit), or is configured to implement one or more integrated circuits of the embodiment of the present invention.
Memory 1030 is for storing documents.Memory 1030 may comprise high-speed RAM memory, also may also comprise nonvolatile memory (non-volatile memory), for example at least one magnetic disc store.Memory 1030 can be also memory array.Memory 1030 also may be by piecemeal, and described can become virtual volume by certain principle combinations.
In a kind of possible execution mode, said procedure can be the program code that comprises computer-managed instruction.
The router of IPv6 server end sends routing broadcast RA message by communication interface 1020 to IPv6 client, and be stored in memory 1030, described RA message comprises the server info of the DHCPv6 server of described IPv6 server end, and described server info comprises the server address of described DHCPv6 server;
The DHCPv6 server of IPv6 server end receives described IPv6 client by communication interface 1020 and asks according to the DHCP of described server address transmission, and described DHCP request comprises the information type of described IPv6 client-requested configuration;
Described DHCPv6 server sends dhcp response by communication interface 1020 to described IPv6 client, and described dhcp response comprises that described DHCPv6 server is the configuration information that described IPv6 client is distributed.
In a kind of possible execution mode, in memory 1030, the server info of storage also comprises first server sign, in described dhcp response, also comprise second server sign, described first server is designated the server identification of the described DHCPv6 server of preserving in the memory 1030 of described router, and described second server is designated the server identification of the DHCPv6 server that returns to described dhcp response.
In a kind of possible execution mode, the router of described IPv6 server end comprises before sending routing broadcast RA message to IPv6 client:
Described router is by communication interface 1020 from described IPv6 client route requests RS message, and described RS message comprises the first device Domain information;
The router of described IPv6 server end sends routing broadcast RA message by communication interface 1020 to IPv6 client, specifically comprises:
The device Domain information of preserving when described router self is with described the first device Domain information when identical, and the router of described IPv6 server end sends described RA message by communication interface 1020 to described IPv6 client.
Those of ordinary skills can recognize, each exemplary cell and algorithm steps in embodiment described herein can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions realize with hardware or form of software actually, depend on application-specific and the design constraint of technical scheme.Professional and technical personnel can realize described function for specific application choice diverse ways, but this realization should not thought and exceeds scope of the present invention.
If the form of computer software of usining realizes described function and as production marketing independently or while using, can think to a certain extent that all or part of (part for example prior art being contributed) of technical scheme of the present invention is with the form embodiment of computer software product.This computer software product is stored in the storage medium of embodied on computer readable conventionally, comprises that some instructions are used so that computer equipment (can be personal computer, server or the network equipment etc.) is carried out all or part of step of various embodiments of the present invention method.And aforesaid storage medium comprises the various media that can be program code stored such as USB flash disk, portable hard drive, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD.
The above; be only the specific embodiment of the present invention, but protection scope of the present invention is not limited to this, is anyly familiar with those skilled in the art in the technical scope that the present invention discloses; can expect easily changing or replacing, within all should being encompassed in protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion by the described protection range with claim.

Claims (14)

1. an IPv6 address configuration method, is characterized in that, comprising:
IPv6 client receives routing broadcast RA message from the router of IPv6 server end, and described RA message comprises the server info of the DHCPv6 server of described IPv6 server end, and described server info comprises the server address of described DHCPv6 server;
Described IPv6 client, according to described server address, sends DHCP request to described DHCPv6 server, and described DHCP request comprises the information type of described IPv6 client-requested configuration;
Address configuration is carried out in the dhcp response that described IPv6 client is returned according to described DHCPv6 server, and described dhcp response comprises that described DHCPv6 server is the configuration information that described IPv6 client is distributed.
2. IPv6 address configuration method according to claim 1, it is characterized in that, described server info also comprises first server sign, in described dhcp response, also comprise second server sign, described first server is designated the server identification of the described DHCPv6 server of preserving in described router, described second server is designated the server identification of the DHCPv6 server that returns to described dhcp response
Address configuration is carried out in the dhcp response that described IPv6 client is returned according to described DHCPv6 server, specifically comprises:
When described first server sign and described second server identify when identical, address configuration is carried out in the dhcp response that described IPv6 client is returned according to described DHCPv6 server.
3. IPv6 address configuration method according to claim 1 and 2, is characterized in that, described IPv6 client comprises before receiving routing broadcast RA message from the router of IPv6 server end:
Described IPv6 client sends route requests RS message to described router, and described RS message comprises the first device Domain information, also comprises the second device Domain information in described RA message;
Described IPv6 client, according to described server address, sends DHCP request to described DHCPv6 server, specifically comprises:
When described the first device Domain information is with described the second device Domain information when identical, described IPv6 client, according to described server address, sends described DHCP request to described DHCPv6 server.
4. an IPv6 address configuration method, is characterized in that, comprising:
The router of IPv6 server end sends routing broadcast RA message to IPv6 client, and described RA message comprises the server info of the DHCPv6 server of IPv6 server end, and described server info comprises the server address of described DHCPv6 server;
Described DHCPv6 server receives the DHCP request that described IPv6 client sends according to described server address, and described DHCP request comprises the information type of described IPv6 client-requested configuration;
Described DHCPv6 server sends dhcp response to described IPv6 client, and described dhcp response comprises that described DHCPv6 server is the configuration information that described IPv6 client is distributed.
5. IPv6 address configuration method according to claim 4, it is characterized in that, described server info also comprises first server sign, in described dhcp response, also comprise second server sign, described first server is designated the server identification of the described DHCPv6 server of preserving in described router, and described second server is designated the server identification of the DHCPv6 server that returns to described dhcp response.
6. according to the IPv6 address configuration method described in claim 4 or 5, it is characterized in that, the router of described IPv6 server end comprises before sending routing broadcast RA message to IPv6 client:
Described router is from described IPv6 client route requests RS message, and described RS message comprises the first device Domain information;
The router of described IPv6 server end sends routing broadcast RA message to IPv6 client, specifically comprises:
The device Domain information of preserving when described router self is with described the first device Domain information when identical, and the router of described IPv6 server end sends described RA message to described IPv6 client.
7. an IPv6 client, is characterized in that, comprising:
Receiving element, for the router from IPv6 server end, receive routing broadcast RA message, described RA message comprises the server info of the DHCPv6 server of described IPv6 server end, and described server info comprises the server address of described DHCPv6 server;
The first transmitting element, is connected with described receiving element, for according to described server address, to described DHCPv6 server, sends DHCP request, and described DHCP request comprises the information type of described IPv6 client-requested configuration;
Dispensing unit, is connected with described the first transmitting element, for the dhcp response of returning according to described DHCPv6 server, carries out address configuration, and described dhcp response comprises that described DHCPv6 server is the configuration information that described IPv6 client is distributed.
8. IPv6 client according to claim 7, it is characterized in that, described server info also comprises first server sign, in described dhcp response, also comprise second server sign, described first server is designated the server identification of the described DHCPv6 server of preserving in described router, described second server is designated the server identification of the DHCPv6 server that returns to described dhcp response, described dispensing unit also for:
When described first server sign and described second server identify when identical, address configuration is carried out in the dhcp response of returning according to described DHCPv6 server.
9. according to the IPv6 client described in claim 7 or 8, it is characterized in that, also comprise:
The second transmitting element, is connected with described receiving element, and for send route requests RS message to described router, described RS message comprises the first device Domain information, also comprises the second device Domain information in described RA message;
Described the first transmitting element is also for when identical, according to described server address, sending described DHCP request to described DHCPv6 server with described the second device Domain information when described the first device Domain information.
10. an IPv6 server, is characterized in that, comprising:
Router, for send routing broadcast RA message to IPv6 client, described RA message comprises the server info of the DHCPv6 server of described IPv6 server end, described server info comprises the server address of described DHCPv6 server;
DHCPv6 server, the information type configuring for the described IPv6 client-requested comprising according to described DHCP request sends dhcp response to described IPv6 client, and described dhcp response comprises that described DHCPv6 server is the configuration information that described IPv6 client is distributed.
11. IPv6 servers according to claim 10, is characterized in that, described server info also comprises first server sign, and described first server is designated the server identification of the described DHCPv6 server of preserving in described router.
12. according to the IPv6 server described in claim 10 or 11, it is characterized in that, described router comprises:
The first receiving element, for from described IPv6 client route requests RS message, described RS message comprises the first device Domain information;
The first transmitting element, is connected with described the first receiving element, for the device Domain information of preserving when described router self, when identical, to described IPv6 client, sends described RA message with described the first device Domain information.
13. IPv6 servers according to claim 10, is characterized in that, described DHCPv6 server comprises:
The second receiving element, the DHCP request sending according to described server address for receiving described IPv6 client, described DHCP request comprises the information type of described IPv6 client-requested configuration;
The second transmitting element, is connected with described the second receiving element, and for sending dhcp response to described IPv6 client, described dhcp response comprises that described DHCPv6 server is the configuration information that described IPv6 client is distributed.
14. IPv6 servers according to claim 13, is characterized in that, also comprise second server sign in described dhcp response, and described second server is designated the server identification of described DHCPv6 server.
CN201310504080.XA 2013-10-23 2013-10-23 IPv6 address collocation method, IPv6 client and server Active CN103561122B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310504080.XA CN103561122B (en) 2013-10-23 2013-10-23 IPv6 address collocation method, IPv6 client and server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310504080.XA CN103561122B (en) 2013-10-23 2013-10-23 IPv6 address collocation method, IPv6 client and server

Publications (2)

Publication Number Publication Date
CN103561122A true CN103561122A (en) 2014-02-05
CN103561122B CN103561122B (en) 2017-01-18

Family

ID=50015272

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310504080.XA Active CN103561122B (en) 2013-10-23 2013-10-23 IPv6 address collocation method, IPv6 client and server

Country Status (1)

Country Link
CN (1) CN103561122B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104519149A (en) * 2014-12-24 2015-04-15 国家电网公司 Method for protecting important communication equipment by caching DHCPv6 rq options
CN105282026A (en) * 2014-06-23 2016-01-27 国基电子(上海)有限公司 Default gateway selecting system and method
CN105554098A (en) * 2015-12-14 2016-05-04 瑞斯康达科技发展股份有限公司 Device configuration method, server and system
CN108958825A (en) * 2017-05-19 2018-12-07 腾讯科技(深圳)有限公司 A kind of information configuring methods and device
CN109495598A (en) * 2018-10-23 2019-03-19 新华三技术有限公司合肥分公司 Domain name system parameter selection method and relevant apparatus
CN113114795A (en) * 2021-03-30 2021-07-13 烽火通信科技股份有限公司 IPv6 address allocation method and system

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1761233A (en) * 2004-10-12 2006-04-19 上海贝尔阿尔卡特股份有限公司 Network service selection and authentication in IPv6 access network, and automatic configuration without status
CN101330527A (en) * 2007-06-22 2008-12-24 华为技术有限公司 Mobile node, access router and method for collocating address for rapidly switching
US20100091684A1 (en) * 2008-10-10 2010-04-15 Robert Lee Winter System and Method for Discovery of Dynamically Assigned Information Handling System IP Addresses
CN102158563A (en) * 2010-02-12 2011-08-17 华为技术有限公司 Method, system and device for acquiring IPv6 (Internet Protocol Version 6) configuration information from IPv6 transition network
US8054839B2 (en) * 2008-03-07 2011-11-08 Samsung Electronics Co., Ltd Apparatus and method of processing stateful address auto-configuration protocol in IPv6 network
CN102271050A (en) * 2010-06-04 2011-12-07 华为技术有限公司 Method and system for automatically configuring network equipment in Internet protocol version 6 (IPv6) network, and network equipment
CN102957759A (en) * 2011-08-26 2013-03-06 中兴通讯股份有限公司 Distribution method and system for IPv6 (internet protocol version 6) address prefixes

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1761233A (en) * 2004-10-12 2006-04-19 上海贝尔阿尔卡特股份有限公司 Network service selection and authentication in IPv6 access network, and automatic configuration without status
CN101330527A (en) * 2007-06-22 2008-12-24 华为技术有限公司 Mobile node, access router and method for collocating address for rapidly switching
US8054839B2 (en) * 2008-03-07 2011-11-08 Samsung Electronics Co., Ltd Apparatus and method of processing stateful address auto-configuration protocol in IPv6 network
US20100091684A1 (en) * 2008-10-10 2010-04-15 Robert Lee Winter System and Method for Discovery of Dynamically Assigned Information Handling System IP Addresses
CN102158563A (en) * 2010-02-12 2011-08-17 华为技术有限公司 Method, system and device for acquiring IPv6 (Internet Protocol Version 6) configuration information from IPv6 transition network
CN102271050A (en) * 2010-06-04 2011-12-07 华为技术有限公司 Method and system for automatically configuring network equipment in Internet protocol version 6 (IPv6) network, and network equipment
CN102957759A (en) * 2011-08-26 2013-03-06 中兴通讯股份有限公司 Distribution method and system for IPv6 (internet protocol version 6) address prefixes

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
李亮: "DHCPv6服务器的设计与实现", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105282026A (en) * 2014-06-23 2016-01-27 国基电子(上海)有限公司 Default gateway selecting system and method
CN104519149A (en) * 2014-12-24 2015-04-15 国家电网公司 Method for protecting important communication equipment by caching DHCPv6 rq options
CN105554098A (en) * 2015-12-14 2016-05-04 瑞斯康达科技发展股份有限公司 Device configuration method, server and system
CN105554098B (en) * 2015-12-14 2019-01-25 瑞斯康达科技发展股份有限公司 A kind of equipment configuration method, server and system
CN108958825A (en) * 2017-05-19 2018-12-07 腾讯科技(深圳)有限公司 A kind of information configuring methods and device
CN108958825B (en) * 2017-05-19 2021-10-22 腾讯科技(深圳)有限公司 Information configuration method and device
CN109495598A (en) * 2018-10-23 2019-03-19 新华三技术有限公司合肥分公司 Domain name system parameter selection method and relevant apparatus
CN109495598B (en) * 2018-10-23 2022-02-11 新华三技术有限公司合肥分公司 Domain name system parameter selection method and related device
CN113114795A (en) * 2021-03-30 2021-07-13 烽火通信科技股份有限公司 IPv6 address allocation method and system

Also Published As

Publication number Publication date
CN103561122B (en) 2017-01-18

Similar Documents

Publication Publication Date Title
CN103561122A (en) IPv6 address collocation method, IPv6 client and server
CN106412142B (en) Resource equipment address obtaining method and device
US8832238B2 (en) Recording stateless IP addresses
US8631100B2 (en) Automatic assignment of hardware addresses within computer networks
US20120324063A1 (en) Method, network device, and system for automatically configuring network device in ipv6 network
CN101674288B (en) Method, device and system for managing address prefix distribution
CN101753460B (en) Method and device for processing internet protocol version 6(IPV6) routing prefix
EP3110087B1 (en) Processing method and related device for host route in virtual sub-network, and communication system
US9749287B2 (en) Interface directionality assignment
CN101753635A (en) Method and system of collocating IPV6 (internet protocol version 6) addresses
US20140032782A1 (en) Method and apparatus for route selection of host in multihoming site
CN102820977A (en) Multicast method, multicast device and network device
CN103384282A (en) Method for obtaining IPV6ND address and broadband remote access server (BARS)
CN102624937B (en) IP address configuration method, Apparatus and system
CN106576120A (en) Internet protocol address allocation method and router
CN104038422A (en) Message forwarding method and gateways
CN101577723B (en) Method for preventing neighbor discovery protocol message attack and device
CN107547528A (en) IPv6 stateless address distribution method and device
JPWO2014142258A1 (en) COMMUNICATION SYSTEM, CONTROL DEVICE, ADDRESS ALLOCATION METHOD, AND PROGRAM
CN102201963B (en) Media access control-forced forwarding method and functional unit
CN102025797A (en) Address prefix processing method, device, system and network equipment
CN111866201A (en) IPv6 multicast address generation method and device
US9025494B1 (en) IPv6 network device discovery
CN108429822A (en) Communication system, IPv6 address distribution methods, device and distributed network gate
CN106375489B (en) Method and device for processing Media Access Control (MAC) address

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

Address after: 518129 Building 2, B District, Bantian HUAWEI base, Longgang District, Shenzhen, Guangdong.

Patentee after: Huawei terminal (Shenzhen) Co.,Ltd.

Address before: 518129 Building 2, B District, Bantian HUAWEI base, Longgang District, Shenzhen, Guangdong.

Patentee before: HUAWEI DEVICE Co.,Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20181225

Address after: 523808 Southern Factory Building (Phase I) Project B2 Production Plant-5, New Town Avenue, Songshan Lake High-tech Industrial Development Zone, Dongguan City, Guangdong Province

Patentee after: HUAWEI DEVICE Co.,Ltd.

Address before: 518129 Building 2, B District, Bantian HUAWEI base, Longgang District, Shenzhen, Guangdong.

Patentee before: Huawei terminal (Shenzhen) Co.,Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20210426

Address after: Unit 3401, unit a, building 6, Shenye Zhongcheng, No. 8089, Hongli West Road, Donghai community, Xiangmihu street, Futian District, Shenzhen, Guangdong 518040

Patentee after: Shenzhen Zhixin new information technology Co.,Ltd.

Address before: Metro Songshan Lake high tech Industrial Development Zone, Guangdong Province, Dongguan City Road 523808 No. 2 South Factory (1) project B2 -5 production workshop

Patentee before: HUAWEI DEVICE Co.,Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20211014

Address after: Unit 3401, unit a, building 6, Shenye Zhongcheng, No. 8089, Hongli West Road, Donghai community, Xiangmihu street, Futian District, Shenzhen, Guangdong 518040

Patentee after: Honor Device Co.,Ltd.

Address before: Unit 3401, unit a, building 6, Shenye Zhongcheng, No. 8089, Hongli West Road, Donghai community, Xiangmihu street, Futian District, Shenzhen, Guangdong 518040

Patentee before: Shenzhen Zhixin new information technology Co.,Ltd.