IPV6 address configuration method and routing device
Abstract
In accordance with an embodiment method, a routing device obtains a plurality of IPv6 prefixes from a plurality of networks; determines a first IPv6 prefix from the plurality of IPv6 prefixes according to a first routing policy, and allocates the first IPv6 prefix to a terminal device; receives a first data service request including a first IPv6 address from the terminal device; determines, according to a second routing policy; determines a second IPv6 address based on the first IPv6 address and a second IPv6 prefix corresponding to the second network; and sends a second data service request including the second IPv6 address to the second network, where the first IPv6 address is determined by the terminal device based on the first IPv6 prefix and a local address, and the second network is any network other than the first network in the plurality of networks.
Claims
exact text as granted — not AI-modifiedWhat is claimed is:
1 . An Internet protocol version 6 IPv6 address configuration method, comprising:
obtaining, by a routing device, a plurality of IPV6 prefixes from a plurality of networks, wherein the plurality of IPV6 prefixes are in one-to-one correspondence with the plurality of networks; determining, by the routing device, a first IPV6 prefix from the plurality of IPV6 prefixes according to a first routing policy; allocating the first IPv6 prefix to a terminal device connected to the routing device, wherein the first IPv6 prefix corresponds to a first network; receiving, by the routing device, a first data service request from the terminal device, wherein the first data service request comprises a first IPV6 address of the terminal device, and the first IPV6 address is determined by the terminal device based on the first IPV6 prefix and a local address of the terminal device; determining, by the routing device according to a second routing policy, that the first data service request corresponds to a second network, wherein the second network is any network other than the first network in the plurality of networks; determining, by the routing device, a second IPv6 address based on the first IPV6 address and a second IPv6 prefix corresponding to the second network; and sending, by the routing device, a second data service request to the second network, wherein the second data service request comprises the second IPv6 address.
2 . The method according to claim 1 , wherein determining, by the routing device, the first IPv6 prefix from the plurality of IPv6 prefixes according to the first routing policy comprises designating an IPV6 prefix corresponding to a network with a highest load capability in the plurality of networks as the first IPv6 prefix.
3 . The method according to claim 1 , wherein determining, by the routing device according to the second routing policy, that the first data service request corresponds to the second network comprises selecting, based on a correspondence between a predetermined service and a network connection or a correspondence between the terminal device and the network connection, a network corresponding to a data service request.
4 . The method according to claim 1 , wherein the method further comprises:
using, by the routing device, the first IPV6 prefix as an IPV6 prefix of the routing device; and determining, by the routing device, an IPv6 address of the routing device based on the first IPv6 prefix and a local address of the routing device.
5 . The method according to claim 1 , wherein determining, by the routing device, the second IPV6 address based on the first IPV6 address and the second IPV6 prefix corresponding to the second network comprises:
replacing, by the routing device, the first IPV6 prefix in the first IPV6 address with the second IPv6 prefix, to obtain the second IPV6 address.
6 . The method according to claim 1 , wherein the method further comprises:
before receiving, by the routing device, the first data service request from the terminal device:
receiving, by the routing device, a first neighbor solicitation broadcast message from the terminal device, wherein the first neighbor solicitation broadcast message comprises the first IPv6 address,
replacing, by the routing device, the first IPV6 prefix in the first IPV6 address with the second IPv6 prefix to obtain a second neighbor solicitation broadcast message comprising the second IPv6 address, and
sending, by the routing device, the second neighbor solicitation broadcast message to the second network, wherein the second neighbor solicitation broadcast message requests the second network to perform conflict detection on the second IPV6 address.
7 . The method according to claim 6 , wherein the method further comprises:
before receiving, by the routing device, the first data service request from the terminal device, sending, by the routing device, the first neighbor solicitation broadcast message to the first network based on the first IPV6 address, wherein the first neighbor solicitation broadcast message requests the first network to perform conflict detection on the first IPV6 address.
8 . The method according to claim 1 , wherein the method further comprises:
receiving, by the routing device, a third data service request from the terminal device, wherein the third data service request comprises the first IPV6 address; determining, by the routing device according to the second routing policy, that the third data service request corresponds to the first network; and forwarding, by the routing device, the third data service request to the first network based on the first IPV6 address.
9 . The method according to claim 1 , wherein the method further comprises:
receiving, by the routing device, a fourth data service request from the second network, wherein the fourth data service request comprises the second IPv6 address; replacing, by the routing device, the second IPV6 prefix in the second IPV6 address with the first IPv6 prefix, to generate the first IPV6 address; and sending, by the routing device, a fifth data service request to the terminal device, wherein the fifth data service request comprises the first IPV6 address.
10 . The method according to claim 1 , wherein the method further comprises:
receiving, by the routing device, a sixth data service request from the first network, wherein the sixth data service request comprises the first IPv6 address; and forwarding, by the routing device, the sixth data service request to the terminal device based on the first IPV6 address.
11 . A routing device, comprising a transceiver and a processor, wherein:
the transceiver is configured to:
obtain a plurality of IPV6 prefixes from a plurality of networks, wherein the plurality of IPV6 prefixes are in one-to-one correspondence with the plurality of networks,
and send the plurality of IPV6 prefixes to the processor;
the processor is configured to:
determine a first IPv6 prefix from the plurality of IPV6 prefixes according to a first routing policy,
allocate the first IPv6 prefix to a terminal device connected to the routing device, wherein the first IPv6 prefix corresponds to a first network,
obtain a first data service request from the terminal device, wherein the first data service request comprises a first IPV6 address of the terminal device, and the first IPV6 address is determined by the terminal device based on the first IPV6 prefix and a local address of the terminal device,
determine, according to a second routing policy, that the first data service request corresponds to a second network, wherein the second network is any network other than the first network in the plurality of networks, and
determine a second IPV6 address based on the first IPV6 address and a second IPV6 prefix corresponding to the second network, and send a second data service request to the transceiver, wherein the second data service request comprises the second IPV6 address; and
the transceiver is further configured to send the second data service request to the second network.
12 . The routing device according to claim 11 , wherein the processor is further configured to use the first IPV6 prefix as an IPV6 prefix of the routing device.
13 . The routing device according to claim 11 , wherein when determining the second IPV6 address based on the first IPV6 address and the second IPV6 prefix corresponding to the second network, the processor is configured to: replace the first IPV6 prefix in the first IPV6 address with the second IPv6 prefix, to obtain the second IPV6 address.
14 . The routing device according to claim 11 , wherein
the processor is further configured to:
before obtaining the first data service request from the terminal device,
obtain a first neighbor solicitation broadcast message from the terminal device, wherein the first neighbor solicitation broadcast message comprises the first IPV6 address, and
replace the first IPV6 prefix in the first IPv6 address with the second IPV6 prefix, to obtain a second neighbor solicitation broadcast message comprising the second IPV6 address; and
send the second neighbor solicitation broadcast message to the transceiver; and
the transceiver is further configured to send the second neighbor solicitation broadcast message to the second network, wherein the second neighbor solicitation broadcast message requests the second network to perform conflict detection on the second IPV6 address.
15 . The routing device according to claim 14 , wherein:
the processor is further configured to send the first neighbor solicitation broadcast message to the transceiver; and the transceiver is further configured to send the first neighbor solicitation broadcast message to the first network based on the first IPV6 address, wherein the first neighbor solicitation broadcast message requests the first network to perform conflict detection on the first IPv6 address.
16 . The routing device according to claim 11 , wherein the processor is further configured to:
obtain a third data service request from the terminal device, wherein the third data service request comprises the first IPV6 address; determine that the third data service request corresponds to the first network; and send the third data service request to the transceiver; and the transceiver is further configured to forward the third data service request to the first network based on the first IPV6 address.
17 . The routing device according to claim 11 , wherein
the transceiver is further configured to: receive a fourth data service request from the second network, wherein the fourth data service request comprises the second IPV6 address; and send the fourth data service request to the processor; and the processor is further configured to:
replace the second IPV6 prefix in the second IPV6 address with the first IPV6 prefix, to generate the first IPV6 address, and
send a fifth data service request to the terminal device, wherein the fifth data service request comprises the first IPV6 address.
18 . The routing device according to claim 11 , wherein the transceiver is further configured to receive a sixth data service request from the first network, wherein the sixth data service request comprises the first IPV6 address; and send the sixth data service request to the processor; and
the processor is further configured to forward the sixth data service request to the terminal device based on the first IPV6 address.
19 . A routing device, comprising:
a communication interface configured to receive and send a message or data; and a processor, coupled to a memory with a program stored thereon, wherein the program, when executed by the processor, enables the routing device to perform a method according to the following steps:
obtaining, by the routing device, a plurality of IPV6 prefixes from a plurality of networks, wherein the plurality of IPV6 prefixes are in one-to-one correspondence with the plurality of networks,
determining, by the routing device, a first IPV6 prefix from the plurality of IPV6 prefixes according to a first routing policy,
allocating the first IPV6 prefix to a terminal device connected to the routing device, wherein the first IPv6 prefix corresponds to a first network,
receiving, by the routing device, a first data service request from the terminal device, wherein the first data service request comprises a first IPV6 address of the terminal device, and the first IPV6 address is determined by the terminal device based on the first IPV6 prefix and a local address of the terminal device,
determining, by the routing device according to a second routing policy, that the first data service request corresponds to a second network, wherein the second network is any network other than the first network in the plurality of networks,
determining, by the routing device, a second IPV6 address based on the first IPV6 address and a second IPv6 prefix corresponding to the second network, and
sending, by the routing device, a second data service request to the second network, wherein the second data service request comprises the second IPV6 address.
20 . The routing device according to claim 19 , wherein the method further comprises:
using, by the routing device, the first IPV6 prefix as an IPV6 prefix of the routing device; and determining, by the routing device, an IPV6 address of the routing device based on the first IPv6 prefix and a local address of the routing device.Join the waitlist — get patent alerts
Track US12513109B2 — get alerts on status changes and closely related new filings.
We store only your email — no account needed. See our privacy policy.