CN115767510A - Ipv6 self-adaptive networking method and system and PD client - Google Patents

Ipv6 self-adaptive networking method and system and PD client Download PDF

Info

Publication number
CN115767510A
CN115767510A CN202211435427.5A CN202211435427A CN115767510A CN 115767510 A CN115767510 A CN 115767510A CN 202211435427 A CN202211435427 A CN 202211435427A CN 115767510 A CN115767510 A CN 115767510A
Authority
CN
China
Prior art keywords
client
address
prefix
ipv6
reply message
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
CN202211435427.5A
Other languages
Chinese (zh)
Other versions
CN115767510B (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.)
Fiberhome Telecommunication Technologies Co Ltd
Wuhan Fiberhome Technical Services Co Ltd
Original Assignee
Fiberhome Telecommunication Technologies Co Ltd
Wuhan Fiberhome Technical Services 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 Fiberhome Telecommunication Technologies Co Ltd, Wuhan Fiberhome Technical Services Co Ltd filed Critical Fiberhome Telecommunication Technologies Co Ltd
Priority to CN202211435427.5A priority Critical patent/CN115767510B/en
Publication of CN115767510A publication Critical patent/CN115767510A/en
Application granted granted Critical
Publication of CN115767510B publication Critical patent/CN115767510B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)
  • Small-Scale Networks (AREA)

Abstract

The application discloses an ipv6 self-adaptive networking method, a system and a PD client, which relate to the technical field of wireless communication. When the PD client judges that the PD reply message does not contain a legal prefix address field, 128-bit subnet mask is added to other address fields to obtain an ipv6 address of the wan (wide area network) side of the PD client, and prefix routes of the wan side and the lan (local area network) side of the PD client are obtained according to the ipv6 address. The PD client obtains the ipv6 address pool on the lan side according to the prefix route on the lan side, and issues the prefix route on the lan side or the ipv6 address in the ipv6 address pool to the drop terminal according to the configuration state, so as to realize networking. According to the method and the device, when the PD server does not reply a legal prefix address field to the PD client, the routing strategy is adaptively adjusted, different prefixes are generated and issued to the down-hanging terminal, the abnormal behavior of the down-hanging terminal is compatible, the address distribution mode is adjusted, and the success of ad hoc network is guaranteed.

Description

Ipv6 self-adaptive networking method and system and PD client
Technical Field
The application relates to the technical field of wireless communication, in particular to an ipv6 self-adaptive networking method and system and a PD client.
Background
The RFC3633 standard defines a DHCPV6-PD (Prefix deletion, abbreviated spelling by PD for Prefix allocation) mode, which is specifically used for automatically allocating prefixes. The DHCPV6-PD is an extension of the DHCPV6, the traditional DHCPV6 focuses on transmitting network configuration parameters such as addresses from a server to an ipv6 client, and the DHCPV6-PD focuses on prefix allocation, that is, the PD server issues a subnet-range prefix address segment and other network configuration information such as DNS to the PD client, which means that the PD server issues a subnet address segment instead of a specific ipv6 address that can be directly used by the ipv6 client. The PD client allocates this subnet address field to the ipv6 client host (or drop terminal) according to the configured environment, e.g., stateful or stateless.
However, in RFC3633, it is not explicitly stated that the PD server must reply to the PD request of the PD client, so as shown in fig. 1, when the PD client requests the PD, the following 3 problems may occur:
1. after the PD client requests the PD in the DHCPV6 message, the PD server does not reply to the PD request, so that the drop terminal does not have an available prefix. This is one of the scenarios that the PD client does not receive the legal PD delivered by the PD server.
2. After the PD server side requests the PD in the DHCPV6 message, the PD server side replies the PD request, but a 64-bit prefix address field contained in the reply content is the same as a prefix of the PD client side wan side connected to the ipv6 network, and according to a standard protocol flow, the prefix of the PD client side wan side is the same as the prefix of the lan side, so that the lan-wan forwarding is abnormal. This is the second scenario that the PD client does not receive the legal PD delivered by the PD server.
3. After the PD client requests the PD in the DHCPv6 message, the PD server replies a legal PD, but part of the drop terminals do not process the RA message according to a protocol standard flow, so that the drop terminals do not use prefixes in stateless messages to calculate ipv6 addresses in a stateless environment, and therefore the ipv6 network cannot be accessed.
Disclosure of Invention
Aiming at the defects in the prior art, the invention aims to provide an ipv6 self-adaptive networking method, system and PD client, which can adaptively adjust a routing policy and generate different prefixes to be issued to a drop terminal when a PD server does not reply a legal prefix address field to the PD client, are compatible with abnormal behaviors of the drop terminal, adjust an address distribution mode, and ensure successful self-networking.
In order to achieve the purposes, the technical scheme is as follows:
the first aspect of the present application provides an ipv6 adaptive networking method, including:
the PD client sends a PD request message to the PD server and receives a PD reply message replied by the PD server;
when the PD client side judges that the PD reply message does not contain a legal prefix address field, 128-bit subnet mask is added to other address fields in the PD reply message to obtain an ipv6 address of the PD client side wan, and prefix routes of the PD client side wan side and the lan side are obtained according to the ipv6 address;
the PD client obtains an ipv6 address pool on the lan side according to the prefix route on the lan side;
and the PD client sends the prefix route of the lan side of the PD client or the ipv6 address in the ipv6 address pool to the drop terminal according to the configuration state so as to realize networking.
In some embodiments, the PD reply message does not include a valid prefix address field, and the PD reply message does not include a prefix address field, or the prefix address field in the PD reply message is the same as the prefix route on the wan side of the PD client.
In some embodiments, the specific steps of the PD client determining whether the PD reply message includes a valid prefix address segment are as follows:
the PD client judges whether the PD reply message does not contain a prefix address field, if so, the PD client judges that the PD reply message does not contain a legal prefix address field; if not, the PD client adds 64-bit subnet masks to other address segments in the PD reply message to obtain an ipv6 address of the PD client wan side, a prefix route of the PD client wan side is obtained according to the ipv6 address, the PD client compares the prefix route of the PD client wan side with the prefix address segment in the PD reply message, and when the comparison results are the same, the PD reply message is judged not to contain a legal prefix address segment, and when the comparison results are different, the PD reply message is judged to contain the legal prefix address segment.
In some embodiments, after determining that the PD reply message includes a prefix address segment and that the prefix address segment is the same as the prefix route at the PD client wan side, the PD client adds the 128-bit subnet mask to other address segments in the PD reply message to update the ipv6 address at the PD client wan side, and updates the prefix route at the PD client wan side according to the updated ipv6 address.
In some embodiments, the method further comprises:
after the PD client obtains the prefix route of the wan side through the PD reply message, a plurality of default routes are added to the wan side according to the input of a user.
In some embodiments, the specific steps of the PD client obtaining the prefix route on the lan side according to the ipv6 address on the wan side are as follows:
the PD client extracts 64 bits from the ipv6 address on its wan side as its lan-side prefix route, using a nat (network address translation) rule.
In some embodiments, when configured to be stateless, the PD client receives an RS (routing request) message sent by the drop terminal, and after replying an RA (routing advertisement) message to the drop terminal, monitors whether an ipv6 message request requesting a stateful address is received.
In some embodiments, the PD client sends a prefix route on the lan side of the PD client or an ipv6 address in the ipv6 address pool to the drop terminal according to the configuration state, so as to implement networking, which specifically includes the following steps:
the PD client receives an RS message sent by the down-hanging terminal and replies an RA message to the down-hanging terminal;
and when judging that the current configuration is stateless and receiving an ipv6 message request which is sent by a drop terminal and requests a stateful address, the PD client selects the ipv6 address from the ipv6 address pool and sends the ipv6 address to the drop terminal so as to realize networking.
The second aspect of the present application provides a PD client, based on the ipv6 adaptive networking method.
The third aspect of the application provides an ipv6 adaptive networking system, based on which the ipv6 adaptive networking method includes a PD server, a PD client, and a drop terminal, where the PD client is configured to send a PD request message to the PD server and receive a PD reply message replied by the PD server, and the system further includes an adaptive control module arranged in the PD client;
the self-adaptive control module is used for adding 128-bit subnet masks to other address segments in the PD reply message to obtain ipv6 addresses of the wan side of the PD client when judging that the PD reply message does not contain legal prefix address segments, obtaining prefix routes of the wan side and the lan side of the PD client according to the ipv6 addresses, and obtaining an ipv6 address pool of the lan side of the PD client according to the prefix routes of the lan side of the PD client;
and the self-adaptive control module is also used for issuing a prefix route at the lan side of the PD client side or an ipv6 address in the ipv6 address pool to the drop terminal according to the configuration state so as to realize networking.
The technical scheme who provides this application brings beneficial effect includes:
when the PD client judges that the PD reply message does not contain a legal prefix address segment, the 128-bit subnet mask is added to other address segments to obtain the ipv6 address of the wan side, the prefix route of the lan side is obtained according to the ipv6 address, and the purpose of issuing the available prefix or the available address to the down-hanging terminal can be realized based on the prefix route of the lan side of the PD client, so that the down-hanging terminal can process the address to obtain the proper ipv6 address to realize networking, and the problem that the available prefix or the available address cannot be issued to the down-hanging terminal when the PD client does not receive the legal prefix address segment is avoided.
When the PD client detects that the current configuration is a stateless environment and still receives an ipv6 message request which is sent by the drop terminal and requests a stateful address, the PD client selects the ipv6 address from the ipv6 address pool to be sent to the drop terminal according to the address sending strategy of the stateless environment instead of the address sending strategy of the stateful environment, so that the drop terminal realizes networking, the abnormal behavior of the drop terminal is compatible, the address distribution mode is flexibly adjusted, and the purpose of ensuring the success of ad hoc networking is achieved.
Drawings
Fig. 1 is a schematic flow chart of a PD client requesting a PD in the prior art.
Fig. 2 is a flowchart illustrating an ipv6 adaptive networking method according to an embodiment of the present invention.
Fig. 3 is a flowchart illustrating the process of the PD client determining whether the PD reply message includes a valid prefix address field in step S2.
Fig. 4 is a schematic flowchart of step S4.
Detailed Description
The present application will be described in further detail with reference to the accompanying drawings and examples.
Normally, the PD reply message should contain the prefix address field and other address fields. However, in some abnormal situations, the PD reports back that other address fields are included in the message, but that no prefix address field is included or that the included prefix address field is abnormal.
Under normal conditions, the PD client may obtain the ipv6 address of the PD client wan side according to other address fields contained in the PD reply message by a conventional method, and further obtain the prefix route of the PD client wan side according to the ipv6 address. The PD client may also obtain a prefix route at the lan side of the PD client according to a prefix address field contained in the PD reply message according to a conventional method, and obtain an ipv6 address pool at the lan side thereof according to the prefix route at the lan side thereof, when the drop-on terminal wants to access the ipv6 network, that is, establishes a communication connection with the PD client, the PD client may use the prefix route at the lan side thereof as an available prefix when the configuration environment is in a non-state or use the ipv6 address in the ipv6 address pool as an available address to be issued to the drop-on terminal when the configuration environment is in a state, so that the drop-on terminal accesses the ipv6 network, thereby implementing networking.
However, when the PD reply message does not include the prefix address field, the PD client cannot obtain other address fields from the PD reply message, so that the prefix route at the lan side of the PD client cannot be generated, the drop terminal cannot obtain an available prefix or an available address, and networking cannot be achieved. When the prefix address field contained in the PD reply message is abnormal, the prefix route at the lan side of the PD client obtained by the PD client according to the prefix address field is also abnormal, and the available prefix or the available address obtained by the drop terminal is also abnormal, so that networking cannot be realized.
Therefore, an embodiment of the present invention provides an ipv6 adaptive networking method, where when a PD client determines that a PD reply message does not include a legal prefix address field, a 128-bit subnet mask is added to other address fields included in the PD reply message to obtain an ipv6 address of the PD client wan side, prefix routes of the PD client wan side and the lan side are obtained according to the ipv6 address, and an ipv6 address pool of the PD client lan side is obtained according to the prefix route of the PD client lan side. And the PD client sends the prefix route of the lan side of the PD client or the ipv6 address in the ipv6 address pool to the drop terminal according to the configuration state so as to realize networking.
In this embodiment, when the PD client determines that the PD reply message does not contain a legal prefix address segment, an ipv6 address on the PD client wan side is obtained by adding a 128-bit subnet mask to another address segment, and a prefix route on the PD client wan side is obtained according to the ipv6 address while a prefix route on the PD client lan side is obtained (instead of adding 64 subnet masks to other address segments according to a conventional method to obtain an ipv6 address on the PD client wan side, and obtaining only a prefix route on the PD client wan side according to the ipv6 address), the prefix route on the PD client lan side is obtained by the above method, or further, an ipv6 address pool on the PD client lan side is obtained according to the prefix route on the PD client lan side, so that it can be ensured that the drop terminal can obtain an available prefix or an available address, and the problem that the drop terminal cannot issue an available prefix or an available address to the drop terminal when the PD client does not receive a legal prefix address segment is avoided.
As shown in fig. 2, in a specific embodiment, the ipv6 adaptive networking method includes:
step S1, the PD client sends a PD request message to the PD server and receives a PD reply message replied by the PD server.
And S2, when the PD client side judges that the PD reply message does not contain a legal prefix address field, adding 128-bit subnet masks to other address fields in the PD reply message to obtain an ipv6 address of the wan side of the PD client side, and obtaining prefix routes of the wan side and the lan side of the PD client side according to the ipv6 address.
And step S3, the PD client obtains the ipv6 address pool on the lan side according to the prefix route on the lan side.
And S4, the PD client sends the prefix route of the lan side or the ipv6 address in the ipv6 address pool to the drop terminal according to the configuration state so as to realize networking.
In this embodiment, after sending the PD request message to the PD server, the PD client receives a PD reply message replied by the PD server. The PD reply message may or may not include a legal prefix address field, but the PD reply message always includes other address fields, the ipv6 address of the PD client wan side can be obtained by processing the other address fields according to a conventional method, the prefix route of the PD client wan side can be further obtained by processing the ipv6 address of the PD client wan side according to the conventional method, and the prefix route of the PD client wan side obtained according to the conventional method can be used to judge whether the prefix address field in the PD reply message is legal or not.
Based on the above embodiment, the PD reply message does not include a legal prefix address field, which means that the PD reply message does not include a prefix address field, or the prefix address field in the PD reply message is the same as the prefix route on the wan side of the PD client.
Specifically, as shown in fig. 3, in step S2, the specific steps of the PD client determining whether the PD reply message includes a valid prefix address field are as follows:
step S21a, the PD client determines whether the PD reply message does not contain a prefix address field:
if yes, go to step S25a.
If not, go to step S22a.
Step S22a, the PD client adds a 64-bit subnet mask to other address fields in the PD reply message to obtain an ipv6 address of the PD client wan side, and obtains a prefix route of the PD client wan side according to the ipv6 address.
Step S23a, the PD client determines whether the prefix route on wan side is the same as the prefix address field in the PD reply message:
if yes, go to step S25a.
If not, go to step S24a.
Step S24a, the PD client judges that the PD reply message contains a legal prefix address field.
Step S25a, the PD client determines that the PD reply message does not contain a valid prefix address field.
Further, after determining that the PD reply message includes a prefix address field and that the prefix address field is the same as the prefix route at the PD client wan side, the PD client adds a 128-bit subnet mask to other address fields in the PD reply message to update the ipv6 address at the PD client wan side, and updates the prefix route at the PD client wan side according to the updated ipv6 address.
In this embodiment, if the PD client determines that the PD reply message does not include the prefix address field, the PD client directly determines that the PD reply message does not include the valid prefix address field, and subsequently, the PD client adaptively adjusts the routing policy according to that the PD reply message does not include the valid prefix address field, that is, adds a 128-bit subnet mask to other address fields in the PD reply message to obtain an ipv6 address of the PD client wan side, and obtains prefix routes of the PD client wan side and the lan side according to the ipv6 address. The PD client obtains the ipv6 address pool on the lan side according to the prefix route on the lan side. And the PD client sends the prefix route of the lan side or the ipv6 address in the ipv6 address pool to the drop terminal according to the configuration state so as to realize networking.
If the PD client judges that the prefix address field contained in the PD reply message is the same as the prefix route obtained by the PD client according to the conventional method on the wan side, the PD client judges that the PD reply message does not contain a legal prefix address field, and subsequently, the PD client adaptively adjusts the routing strategy according to the legal prefix address field not contained in the PD reply message, that is, the PD client can add 128-bit subnet mask to other address fields in the PD reply message to obtain a new ipv6 address on the wan side of the PD client, updates the ipv6 address on the wan side of the PD client according to the ipv6 address obtained according to the conventional method, further updates the prefix route on the wan side of the PD client according to the updated ipv6 address, obtains the prefix route on the lan side of the PD client according to the updated ipv6 address, and can achieve the purpose of issuing an available prefix or an available address to the down-hanging terminal based on the prefix route on the lan side of the PD client, so that the down-hanging terminal can process and obtain an appropriate ipv6 address to achieve networking.
In another specific embodiment, when the PD client determines that the PD reply message contains a legal prefix address field, the PD client uses the prefix address field in the PD reply message as a prefix route on the lan side of the PD client, and obtains the ipv6 address pool on the lan side of the PD client according to the prefix route on the lan side of the PD client.
In this embodiment, in a normal case, the PD client may obtain, according to a conventional method, an ipv6 address of the PD client wan side according to other address fields included in the PD reply message, and further obtain, according to the ipv6 address, a prefix route of the PD client wan side. The PD client may also obtain a prefix route at the lan side of the PD client according to a prefix address field contained in the PD reply message according to a conventional method, and obtain an ipv6 address pool at the lan side of the PD client according to the prefix route at the lan side of the PD client, when the drop terminal wants to access the ipv6 network, that is, establish a communication connection with the PD client, the PD client may use the prefix route at the lan side as an available prefix when the configuration environment is in a non-state or use the ipv6 address in the ipv6 address pool as an available address to the drop terminal when the configuration environment is in a state, so that the drop terminal can access the ipv6 network, thereby implementing networking.
In another specific embodiment, the method further comprises the step that the PD client adds a plurality of default routes on the wan side according to the user input after obtaining the prefix route on the wan side through the PD reply message.
In this embodiment, the number of packets that can be forwarded by the PD client can be increased by adding a default route on the wan side.
In another specific embodiment, the PD client obtains the prefix route on the lan side thereof according to the ipv6 address on the wan side thereof specifically means that the PD client extracts 64 bits from the ipv6 address on the wan side thereof as the prefix route on the lan side thereof by using a nat (network address translation) rule.
In this embodiment, when the PD client determines that the PD reply message does not contain a legal prefix address segment, a 128-bit subnet mask is added to another address segment to obtain an ipv6 address on the wan side, 64 bits are extracted from the ipv6 address on the wan side by using a nat (network address translation) rule to serve as a prefix route on the lan side, and the purpose of issuing an available prefix (i.e., the prefix route on the lan side) or an available address (i.e., the ipv6 address in the ipv6 address pool) to the drop terminal can be achieved according to the prefix route on the lan side, so that the drop terminal can process and obtain an appropriate ipv6 address to implement ad hoc networking, and the problem that the available prefix or the available address cannot be issued to the drop terminal when the PD client does not receive the legal prefix address segment is avoided.
Based on the above embodiment, as shown in fig. 4, step S4 specifically includes the following steps:
step S41, the PD client receives an RS (Router Solicitation) message sent by the drop terminal and replies an RA message to the drop terminal;
step S42, the PD client determines whether the configuration state is a stateful state:
if yes, go to step S44.
If not, go to step S43.
Step S43, the PD client monitors whether an ipv6 message request requesting a stateful address is received:
if yes, go to step S44.
If not, go to step S45.
And S44, the PD client selects an ipv6 address from the ipv6 address pool and sends the ipv6 address to the drop terminal to realize networking.
And step S45, the drop terminal obtains the pv6 address by combining the address information processing of the drop terminal according to the prefix route of the PD client lan side in the RA message so as to realize networking.
In this embodiment, when the M flag bit in the RA message is 1, it indicates that the current environment is a stateful environment, the PD client may reply to an ipv6 message request (e.g., a soliit message) that the off-hook terminal requests a stateful address, when the M flag bit in the RA message is 0, it indicates that the current environment is a stateless environment, and the PD client may reply to an ipv6 message request that the off-hook terminal requests a stateless address.
Through the RA message, the PD client can inform the drop terminal whether the current environment is in a state or a non-state, if the current environment is in the non-state environment and the IPv6 message requesting a state address is continuously received, the problem of the drop terminal sending the message is shown, if the problem of the drop terminal is not responded by the PD client according to a conventional process, the drop terminal cannot acquire the available address, and the self-organizing network cannot be realized.
After the PD client requests the PD in the PD request message, the PD server replies a PD reply message containing a legal PD. During networking, the drop terminal sends an RS message to the PD client, then receives an RA message replied by the PD client, wherein the RA message comprises a prefix route of the lan side, and the PD client can configure whether the current environment is in a state or a non-state in the RA message, namely the PD client can inform the drop terminal of whether the current environment is in the state or the non-state through the RA message.
When the drop terminal is normal, whether the environment state contained in the RA message is stateful or stateless can be identified, and different processing modes can be selected for different environment states to obtain an ipv6 address which can access the PD client. Specifically, if the drop terminal recognizes that the current configuration in the RA message is a stateful environment, the drop terminal needs to send an ipv6 message request requesting a stateful address to the PD client again according to a standard flow under a normal condition, the PD client selects an ipv6 address from an ipv6 address pool and issues the ipv6 address to the drop terminal, and the drop terminal accesses the PD client by using the ipv6 address to realize networking. If the lower-hanging terminal identifies that the current configuration in the RA message is a stateless environment, the lower-hanging terminal uses the lan-side prefix route contained in the RA message as an available prefix according to a standard flow under normal conditions, calculates and generates an ipv6 address by combining the available prefix and the address information of the lower-hanging terminal, and accesses the PD client to realize networking by using the ipv6 address.
However, when some of the drop terminals are abnormal, the current configuration in the RA message cannot be identified as a stateless environment, but the PD client continuously sends an ipv6 message request requesting a stateful address to the PD client according to the operation steps currently configured as the stateful environment, and after receiving the request, the PD client knows that the drop terminal has a failure, in the prior art, the PD client does not continuously reply to the failed terminal, and thus the failed terminal cannot be accessed to the PD client for networking, but through the step S61-step S64, when the PD client detects that the current configuration is the stateless environment and still receives the ipv6 message request requesting the stateful address sent by the drop terminal, the drop terminal does not send an address sending policy according to the stateless environment, but selects the ipv6 address from the ipv6 address pool to send to the drop terminal according to the address sending policy according to the stateful environment, so that the drop terminal realizes networking, and can accommodate the abnormal behavior of the drop terminal, adjust the address distribution mode, and ensure that the ad hoc networking is successful.
The invention also provides an embodiment of the ipv6 adaptive networking system, wherein an adaptive control module is arranged in a PD client of the system, and the adaptive control module is used for adding 128-bit subnet masks to other address segments in the PD reply message to obtain an ipv6 address at the wan side of the PD client when determining that the PD reply message does not contain a legal prefix address segment, obtaining prefix routes at the wan side and the lan side of the PD client according to the ipv6 address, and obtaining an ipv6 address pool at the lan side of the PD client according to the prefix route at the lan side of the PD client.
The self-adaptive control module is also used for issuing a prefix route at the lan side of the PD client side or an ipv6 address in the ipv6 address pool to the drop terminal according to the configuration state so as to realize networking.
In this embodiment, by adding the adaptive control module, on the premise of not adding a configuration command and a function switch, the adaptive environment is adapted, so that the compatibility with the original existing network environment deployment is achieved, and the operation and maintenance cost is reduced. The problem that the PD has different configurations due to the particularity of the current network environment, so that the drop terminal does not have an ipv6 address is solved. The problem that part of terminal behaviors do not accord with protocol specifications, so that the ipv6 address cannot be acquired is solved.
The present application is not limited to the above embodiments, and it will be apparent to those skilled in the art that various modifications and improvements can be made without departing from the principle of the present application, and such modifications and improvements are also considered to be within the scope of the present application.

Claims (10)

1. An ipv6 adaptive networking method, the method comprising:
the PD client sends a PD request message to the PD server and receives a PD reply message replied by the PD server;
when the PD client side judges that the PD reply message does not contain a legal prefix address field, 128-bit subnet mask is added to other address fields in the PD reply message to obtain an ipv6 address of the PD client side wan, and prefix routes of the PD client side wan side and the lan side are obtained according to the ipv6 address;
the PD client obtains an ipv6 address pool on the lan side according to the prefix route on the lan side;
and the PD client sends the prefix route of the lan side of the PD client or the ipv6 address in the ipv6 address pool to the drop terminal according to the configuration state so as to realize networking.
2. The ipv6 adaptive networking method according to claim 1, wherein the PD reply message does not include a valid prefix address field, and the PD reply message does not include a prefix address field, or the prefix address field in the PD reply message is the same as a prefix route on the wan side of the PD client.
3. The ipv6 adaptive networking method of claim 2, wherein the specific step of the PD client determining whether the PD reply message contains a valid prefix address field is as follows:
the PD client judges whether the PD reply message does not contain a prefix address field, if so, the PD client judges that the PD reply message does not contain a legal prefix address field; if not, the PD client adds 64-bit subnet masks to other address segments in the PD reply message to obtain an ipv6 address of the PD client wan side, a prefix route of the PD client wan side is obtained according to the ipv6 address, the PD client compares the prefix route of the PD client wan side with the prefix address segment in the PD reply message, and when the comparison results are the same, the PD reply message is judged not to contain a legal prefix address segment, and when the comparison results are different, the PD reply message is judged to contain the legal prefix address segment.
4. The ipv6 adaptive networking method according to claim 3, wherein the PD client adds the 128-bit subnet mask to other address fields in the PD reply message after determining that the PD reply message includes a prefix address field that is the same as the prefix route on the PD client wan side, so as to update the ipv6 address on the PD client wan side, and update the prefix route on the PD client wan side according to the updated ipv6 address.
5. The ipv6 adaptive networking method of claim 1, further comprising:
and after the PD client obtains the prefix route of the wan side through the PD reply message, adding a plurality of default routes on the wan side according to the input of the user.
6. The ipv6 adaptive networking method according to claim 1, wherein the specific step of the PD client obtaining the prefix route on the lan side according to the ipv6 address on the wan side is as follows:
the PD client extracts 64 bits from the ipv6 address on its wan side as its lan-side prefix route, using a nat (network address translation) rule.
7. The ipv6 adaptive networking method according to claim 1, wherein the PD client, when configured as a stateless, receives an RS (routing request) message sent by the drop terminal, and after replying an RA (routing advertisement) message to the drop terminal, listens for whether an ipv6 message request requesting a stateful address is received.
8. The ipv6 adaptive networking method according to claim 7, wherein the PD client issues a prefix route on a lan side of the PD client or an ipv6 address in the ipv6 address pool to a drop terminal according to a configuration state, so as to implement networking, and specifically includes the following steps:
the PD client receives an RS message sent by the down-hanging terminal and replies an RA message to the down-hanging terminal;
and when judging that the current configuration is stateless and receiving an ipv6 message request which is sent by a drop terminal and requests a stateful address, the PD client selects the ipv6 address from the ipv6 address pool and sends the ipv6 address to the drop terminal so as to realize networking.
9. A PD client, characterized in that it is based on the ipv6 adaptive networking method of any of claims 1-8.
10. An ipv6 adaptive networking system, based on the ipv6 adaptive networking method of any one of claims 1-8, comprising a PD server, a PD client, and a drop terminal, where the PD client is configured to send a PD request message to the PD server and receive a PD reply message replied by the PD server, and the system further includes an adaptive control module arranged in the PD client;
the self-adaptive control module is used for adding 128-bit subnet masks to other address segments in the PD reply message to obtain an ipv6 address of the PD client wan side when judging that the PD reply message does not contain a legal prefix address segment, obtaining prefix routes of the PD client wan side and the lan side according to the ipv6 address, and obtaining an ipv6 address pool of the PD client lan side according to the prefix route of the PD client lan side;
and the self-adaptive control module is also used for issuing a prefix route at the lan side of the PD client side or an ipv6 address in the ipv6 address pool to the drop-off terminal according to the configuration state so as to realize networking.
CN202211435427.5A 2022-11-16 2022-11-16 Ipv6 self-adaptive networking method, system and PD client Active CN115767510B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211435427.5A CN115767510B (en) 2022-11-16 2022-11-16 Ipv6 self-adaptive networking method, system and PD client

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211435427.5A CN115767510B (en) 2022-11-16 2022-11-16 Ipv6 self-adaptive networking method, system and PD client

Publications (2)

Publication Number Publication Date
CN115767510A true CN115767510A (en) 2023-03-07
CN115767510B CN115767510B (en) 2024-05-28

Family

ID=85372023

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211435427.5A Active CN115767510B (en) 2022-11-16 2022-11-16 Ipv6 self-adaptive networking method, system and PD client

Country Status (1)

Country Link
CN (1) CN115767510B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140215087A1 (en) * 2011-10-14 2014-07-31 Zte Corporation Method for Route Transmission Based on Single IPv6 Address Prefix, and Wireless Device
CN111866212A (en) * 2020-07-17 2020-10-30 芯河半导体科技(无锡)有限公司 Method for automatically distributing IPV6PD prefix for drop-in router by gateway
CN113660358A (en) * 2021-08-20 2021-11-16 芯河半导体科技(无锡)有限公司 Method for distributing different Ipv6PD prefixes to drop-on equipment by gateway
CN114500258A (en) * 2021-12-14 2022-05-13 四川天邑康和通信股份有限公司 Automatic internet surfing configuration method for ipv6 under wifi6 router under home intelligent gateway
WO2022179410A1 (en) * 2021-02-24 2022-09-01 华为技术有限公司 Ipv6 address generation method and related device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140215087A1 (en) * 2011-10-14 2014-07-31 Zte Corporation Method for Route Transmission Based on Single IPv6 Address Prefix, and Wireless Device
CN111866212A (en) * 2020-07-17 2020-10-30 芯河半导体科技(无锡)有限公司 Method for automatically distributing IPV6PD prefix for drop-in router by gateway
WO2022179410A1 (en) * 2021-02-24 2022-09-01 华为技术有限公司 Ipv6 address generation method and related device
CN113660358A (en) * 2021-08-20 2021-11-16 芯河半导体科技(无锡)有限公司 Method for distributing different Ipv6PD prefixes to drop-on equipment by gateway
CN114500258A (en) * 2021-12-14 2022-05-13 四川天邑康和通信股份有限公司 Automatic internet surfing configuration method for ipv6 under wifi6 router under home intelligent gateway

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
张威;: "一种基于前缀置换的域间路由压缩方法", 中国科技论文, no. 07, 15 July 2013 (2013-07-15) *

Also Published As

Publication number Publication date
CN115767510B (en) 2024-05-28

Similar Documents

Publication Publication Date Title
EP1252781B1 (en) Address acquisition
US20040111529A1 (en) Dynamic host based load balancing of a multihomed network
US7941512B2 (en) Use of IPv6 in access networks
US9084108B2 (en) Method, apparatus, and system for mobile virtual private network communication
EP2241091B1 (en) Combining locally addressed devices and wide area network (wan) addressed devices on a single network
US6434134B1 (en) Dynamic address assignment for wireless devices accessing packet-based wired networks
US20030026230A1 (en) Proxy duplicate address detection for dynamic address allocation
JP4593856B2 (en) Easy data transmission
EP1563666A1 (en) Mobile ip registration supporting port identification
EP1250791A1 (en) System and method for using an ip address as a wireless unit identifier
EP2082329B1 (en) System and method for redirecting requests
CA2274050A1 (en) System, device, and method for routing dhcp packets in a public data network
WO2006068747A2 (en) Distributed domain name service
US8140710B2 (en) Home link setting method, home gateway device, and mobile terminal
CN115767510B (en) Ipv6 self-adaptive networking method, system and PD client
JP2005210554A (en) Dhcp substitute server

Legal Events

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