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.
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.