CN115767510B - Ipv6 self-adaptive networking method, system and PD client - Google Patents
Ipv6 self-adaptive networking method, system and PD client Download PDFInfo
- Publication number
- CN115767510B CN115767510B CN202211435427.5A CN202211435427A CN115767510B CN 115767510 B CN115767510 B CN 115767510B CN 202211435427 A CN202211435427 A CN 202211435427A CN 115767510 B CN115767510 B CN 115767510B
- 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.)
- Active
Links
- 230000006855 networking Effects 0.000 title claims abstract description 50
- 238000000034 method Methods 0.000 title claims abstract description 28
- 230000003044 adaptive effect Effects 0.000 claims description 19
- 238000013519 translation Methods 0.000 claims description 4
- 239000000284 extract Substances 0.000 claims description 3
- 206010000117 Abnormal behaviour Diseases 0.000 abstract description 4
- 238000004891 communication Methods 0.000 abstract description 4
- 238000007796 conventional method Methods 0.000 description 9
- 230000002159 abnormal effect Effects 0.000 description 6
- 238000012545 processing Methods 0.000 description 4
- 230000006978 adaptation Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000005856 abnormality Effects 0.000 description 1
- 230000006399 behavior Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
- Small-Scale Networks (AREA)
Abstract
The application discloses an ipv6 self-adaptive networking method, an ipv6 self-adaptive networking system and a PD client, which relate to the technical field of wireless communication and comprise the steps that the PD (prefix allocation) client sends a PD request message to a PD server and receives a PD reply message. When the PD client determines that the PD reply message does not contain legal prefix address segments, 128-bit subnet masks are added to other address segments to obtain an ipv6 address of the PD client wan (wide area network) side, and prefix routes of the PD client wan side and the lan (local area network) side are obtained according to the ipv6 address. And the PD client obtains an ipv6 address pool of the lan side according to the prefix route of the lan side, and issues the prefix route of the lan side or an ipv6 address in the ipv6 address pool to the down-hanging terminal according to the configuration state so as to realize networking. The application can adaptively adjust the routing strategy and generate different prefixes to be sent to the down-hanging terminal when the PD server does not reply a legal prefix address segment to the PD client, is compatible with the abnormal behavior of the down-hanging terminal, adjusts the address allocation mode and ensures the success of the ad hoc network.
Description
Technical Field
The application relates to the technical field of wireless communication, in particular to an ipv6 self-adaptive networking method, an ipv6 self-adaptive networking system and a PD client.
Background
A DHCPV6-PD (Prefix Delegation, PD is a abbreviated concatenation of prefix assignment) mode is defined in RFC3633 standard, dedicated to automatic assignment of prefixes. The DHCPV6-PD is an extension of the DHCPV6, the conventional DHCPV6 focuses on transmitting network configuration parameters such as an address from a server side to an ipv6 client, while the DHCPV6-PD focuses on prefix allocation, that is, the PD server side issues a subnet address field and other network configuration information such as DNS to the PD client, which means that the PD server side issues a subnet address field, not a specific ipv6 address that can be directly used by the ipv6 client. The PD client allocates this subnet address segment to the ipv6 client host (or drop terminal) depending on 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, and thus, as shown in fig. 1, the PD client may have the following 3 problems when requesting the PD:
1. After the PD client requests the PD in the DHCPV6 message, the PD server does not reply to the PD request, resulting in the drop terminal having no available prefix. This is one of the scenarios where the PD client does not receive the legitimate PD issued 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 the 64-bit prefix address segment contained in the reply content is the same as the prefix of the ipv6 network connected to the side of the PD client wan, which results in that the wan-side prefix of the PD client is the same as the lan-side prefix according to the standard protocol flow, so that the lan-wan forwarding is abnormal. This is the second scenario in which the PD client does not receive the legitimate PD issued by the PD server.
3. After the PD client requests the PD in the DHCPv6 message, the PD server replies legal PD, but part of the down-hanging terminals do not process RA messages according to the protocol standard flow, so that the down-hanging terminals calculate the ipv6 address in a stateless environment without using the prefix in the stateless messages, and the ipv6 network cannot be accessed.
Disclosure of Invention
Aiming at the defects existing in the prior art, the application aims to provide an ipv6 self-adaptive networking method, an ipv6 self-adaptive networking system and a PD client, which can adaptively adjust a routing strategy and generate different prefixes to be sent to an on-hook terminal when the PD server does not reply a legal prefix address field to the PD client, and is compatible with the abnormal behavior of the on-hook terminal, the address allocation mode is adjusted, and the success of the self-networking is ensured.
In order to achieve the above purpose, the technical scheme adopted is as follows:
the first aspect of the present application provides an ipv6 adaptive networking method, including:
The PD client side sends a PD request message to the PD server side and receives a PD reply message replied by the PD server side;
When judging that the PD reply message does not contain legal prefix address segments, the PD client adds 128-bit subnet masks to other address segments 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 an ipv6 address pool of the lan side according to the prefix route of the lan side;
and the PD client transmits the prefix route of the lan side or the ipv6 address in the ipv6 address pool to the down-hanging terminal according to the configuration state so as to realize networking.
In some embodiments, the PD reply message does not include a legal prefix address segment, which means that the PD reply message does not include a prefix address segment, or that the prefix address segment in the PD reply message is the same as the prefix route on the side of the PD client wan.
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 side judges whether the PD reply message does not contain a prefix address segment, if yes, the PD reply message does not contain a legal prefix address segment; if not, the PD client adds 64-bit subnet mask to other address fields in the PD reply message to obtain an ipv6 address of the PD client wan side, obtains a prefix route of the PD client wan side according to the ipv6 address, compares the prefix route of the PD client wan side with the prefix address field in the PD reply message, judges that the PD reply message does not contain legal prefix address fields when the comparison result is the same, and judges that the PD reply message contains legal prefix address fields when the comparison result is different.
In some embodiments, after determining that the PD reply message includes the prefix address field and the prefix address field is the same as the prefix route on the PD client wan side, the PD client adds the 128-bit subnet mask to other address fields in the PD reply message to update the ipv6 address on the PD client wan side, and updates the prefix route on the PD client wan side according to the updated ipv6 address.
In some embodiments, the method further comprises:
After obtaining the prefix route of the wan side of the PD client through the PD reply message, the PD client adds a plurality of default routes on the wan side of the PD client according to user input.
In some embodiments, the specific steps of the PD client obtaining the prefix route on its lan side according to the ipv6 address on its wan side are as follows:
the PD client extracts 64 bits from its wan side ipv6 address as its lan side prefix route using nat (network address translation) rules.
In some embodiments, when the PD client is configured to be in a stateless state, the PD client receives an RS (routing request) message sent by the down-hanging terminal, and monitors whether an ipv6 message request requesting a stateful address is received after the down-hanging terminal replies with an RA (routing announcement) message.
In some embodiments, the PD client issues, according to the configuration state, a prefix route on its lan side or an ipv6 address in the ipv6 address pool to the down-hanging terminal, so as to implement networking, and specifically includes the following steps:
The PD client receives the 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 the down-hanging terminal and requests a stateful address, the PD client selects an ipv6 address from the ipv6 address pool and sends the ipv6 address to the down-hanging terminal so as to realize networking.
The second aspect of the application provides a PD client, which is based on the ipv6 self-adaptive networking method.
The third aspect of the present application provides an ipv6 adaptive networking system, based on the ipv6 adaptive networking method, which includes a PD server, a PD client, and a down-hanging 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 disposed in the PD client;
the self-adaptive control module is used for adding 128-bit subnet masks to other address fields 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 legal prefix address fields, 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 routes of the PD client lan side;
the self-adaptive control module is also used for issuing a prefix route of the PD client lan side or an ipv6 address in an ipv6 address pool to the down-hanging terminal according to the configuration state so as to realize networking.
The technical scheme provided by the application has the beneficial effects that:
when the PD client judges that the PD reply message does not contain a legal prefix address segment, a 128-bit subnet mask is added to the other address segments to obtain the wan-side ipv6 address, a lan-side prefix route is obtained according to the ipv6 address, the purpose of issuing an available prefix or an available address to the down-hanging terminal can be achieved based on the PD client lan-side prefix route, the down-hanging terminal can process and obtain a proper ipv6 address to achieve 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 in a stateless environment and still receives an ipv6 message request which is sent by the down-hanging terminal and requests a stateful address, the PD client does not send a strategy according to the address of the stateless environment, but selects an ipv6 address from an ipv6 address pool according to the address sending strategy of the stateful environment and sends the ipv6 address to the down-hanging terminal, so that the down-hanging terminal realizes networking, thereby realizing the purposes of combining abnormal behaviors of the down-hanging terminal, flexibly adjusting an address allocation mode and guaranteeing success of self-networking.
Drawings
Fig. 1 is a schematic flow chart of a PD client in the prior art when requesting a PD.
Fig. 2 is a flow chart of an ipv6 adaptive networking method according to an embodiment of the present invention.
Fig. 3 is a flowchart illustrating a procedure in which the PD client determines whether the PD reply message includes a valid prefix address segment in step S2.
Fig. 4 is a flow chart of step S4.
Detailed Description
The present application will be described in further detail with reference to the accompanying drawings and examples.
Under normal conditions, the prefix address field and other address fields should be included in the PD reply message. However, in some abnormal situations, the PD report message contains other address segments, but may not contain prefix address segments, or contain prefix address segments that are abnormal.
Under normal conditions, the PD client may obtain an ipv6 address on the side of the PD client wan according to other address fields included in the PD reply message according to a conventional method, and further obtain a prefix route on the side of the PD client wan according to the ipv6 address. The PD client may further obtain a prefix route on the lan side of the PD client according to the prefix address field included in the PD reply packet according to a conventional method, and obtain an ipv6 address pool on the lan side of the PD client according to the prefix route on the lan side of the PD reply packet, where when the underslung terminal wants to access the ipv6 network, that is, establish communication connection with the PD client, the PD client may use the prefix route on the lan side of the PD client as an available prefix when the configuration environment is in a stateless state, or issue the ipv6 address in the ipv6 address pool as an available address to the underslung terminal when the configuration environment is in a stateful state, so that the underslung terminal accesses the ipv6 network, thereby implementing networking.
However, when the PD reply message does not include the prefix address segment, the PD client cannot obtain other address segments from the PD reply message, so that the prefix route on the lan side of the PD client cannot be generated, and the on-hook terminal cannot obtain the available prefix or the available address, so that networking cannot be realized. When the prefix address segment contained in the PD reply message is abnormal, the prefix route of the PD client side lan side obtained by the PD client according to the prefix address segment is also abnormal, and the available prefix or the available address obtained by the down-hanging terminal is also abnormal, so that networking cannot be realized.
Therefore, when the PD client determines that the PD reply message does not include a legal prefix address segment, the embodiment of the present invention adds 128-bit subnet mask to other address segments included in the PD reply message to obtain an ipv6 address of the PD client wan side, obtains prefix routes of the PD client wan side and the lan side according to the ipv6 address, and obtains an ipv6 address pool of the PD client lan side according to the prefix routes of the PD client lan side. And the PD client transmits the prefix route of the lan side or the ipv6 address in the ipv6 address pool to the down-hanging 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 include a legal prefix address segment, the ipv6 address on the lan side of the PD client wan is obtained by adding a 128-bit subnet mask to the other address segment, and the prefix route on the lan side of the PD client wan is obtained according to the ipv6 address (instead of adding 64 as a subnet mask to the other address segment according to a conventional method to obtain the ipv6 address on the wan side of the PD client, only the prefix route on the wan side of the PD client is obtained according to the ipv6 address), and the prefix route on the lan side of the PD client is obtained by the above method, or further the ipv6 address pool on the lan side of the PD client obtained according to the prefix route on the lan side of the PD client, so that the available prefix or the available address can be ensured to be obtained by the underslung terminal, and the available prefix or the available address can not be sent to the underslung terminal when the PD client does not receive the legal prefix address segment can be ensured.
As shown in fig. 2, in a specific embodiment, the ipv6 adaptive networking method includes:
Step S1, a PD client sends a PD request message to a PD server and receives a PD reply message replied by the PD server.
And S2, when the PD client determines that the PD reply message does not contain legal prefix address segments, 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, and obtaining prefix routes of the PD client wan side and the lan side according to the ipv6 address.
And step S3, the PD client obtains an ipv6 address pool of the lan side according to the prefix route of the lan side.
And S4, the PD client transmits the prefix route of the lan side or the ipv6 address in the ipv6 address pool to the down-hanging terminal according to the configuration state so as to realize networking.
In this embodiment, after sending a 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 contain a legal prefix address segment, but the PD reply message always contains other address segments, the ipv6 address of the PD client wan side may be obtained by processing the other address segments according to a conventional method, the prefix route of the PD client wan side may be obtained by further processing the ipv6 address of the PD client wan side, and the prefix route of the PD client wan side obtained according to the conventional method may be used to determine whether the prefix address segment in the PD reply message is legal.
Based on the above embodiment, the PD reply message does not include a legal prefix address segment, which means that the PD reply message does not include a prefix address segment, or that the prefix address segment in the PD reply message is the same as the prefix route on the PD client wan side.
Specifically, as shown in fig. 3, in step S2, the specific steps for determining whether the PD reply message includes a legal prefix address segment by the PD client are as follows:
Step S21a, the PD client determines whether the PD reply message does not include a prefix address segment:
If yes, go to step S25a.
If not, go to step S22a.
In step S22a, the PD client adds 64-bit subnet mask to other address fields in the PD reply message to obtain an ipv6 address on the PD client wan side, and obtains a prefix route on the PD client wan side according to the ipv6 address.
Step S23a, the PD client determines whether the prefix route on its 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.
In step S24a, the PD client determines that the PD reply message includes a legal prefix address segment.
In step S25a, the PD client determines that the PD reply message does not include a legal prefix address segment.
Further, after determining that the PD reply message includes the prefix address field and the prefix address field is the same as the prefix route on 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 on the PD client wan side, and updates the prefix route on 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 segment, the PD client directly determines that the PD reply message does not include the legal prefix address segment, and subsequently, the PD client adaptively adjusts the routing policy according to the fact that the PD reply message does not include the legal prefix address segment, that is, adds a 128-bit subnet mask to other address segments in the PD reply message to obtain an ipv6 address on the side of the PD client wan, and obtains prefix routes on the side wan and the lan side of the PD client according to the ipv6 address. And the PD client obtains an ipv6 address pool of the lan side according to the prefix route of the lan side. And the PD client transmits the prefix route of the lan side or the ipv6 address in the ipv6 address pool to the down-hanging terminal according to the configuration state so as to realize networking.
If the PD client judges that the prefix address segment contained in the PD reply message is the same as the PD client obtains the prefix route of the PD client wan side according to the conventional method, the PD client judges that the PD reply message does not contain a legal prefix address segment, and then the PD client adaptively adjusts a routing strategy according to the fact that the PD reply message does not contain the legal prefix address segment, namely, the PD client can add 128-bit subnet masks to other address segments in the PD reply message to obtain a new IPv6 address of the PD client wan side, the IPv6 address of the PD client wan side obtained according to the conventional method is updated according to the IPv6 address, further, the prefix route of the PD client wan side is updated according to the updated IPv6 address, and the purpose of downloading an available prefix or an available address to a hanging terminal can be achieved based on the prefix route of the PD client lan side, so that the hanging terminal can process to obtain a proper IPv6 address group.
In another embodiment, when the PD client determines that the PD reply message includes a legal prefix address segment, the prefix address segment in the PD reply message is used as a prefix route on the lan side of the PD client, and the ipv6 address pool on the lan side of the PD client is obtained according to the prefix route on the lan side of the PD client.
In this embodiment, under normal conditions, the PD client may obtain the ipv6 address on the PD client wan side according to the other address fields included in the PD reply message according to the conventional method, and further obtain the prefix route on the PD client wan side according to the ipv6 address. The PD client may further obtain a prefix route on the lan side of the PD client according to the prefix address field included in the PD reply packet according to a conventional method, and obtain an ipv6 address pool on the lan side of the PD client according to the prefix route on the lan side of the PD reply packet, where when the underslung terminal wants to access the ipv6 network, that is, establish communication connection with the PD client, the PD client may use the prefix route on the lan side of the PD client as an available prefix when the configuration environment is in a stateless state, or issue the ipv6 address in the ipv6 address pool as an available address to the underslung terminal when the configuration environment is in a stateful state, so that the underslung terminal accesses the ipv6 network, thereby implementing networking.
In another specific embodiment, the method further includes 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 messages that can be forwarded by the PD client may be increased by adding a default route to the wan side.
In another specific embodiment, the PD client obtaining the prefix route on its lan side according to the ipv6 address on its wan side specifically means that the PD client extracts 64 bits from the ipv6 address on its wan side as the prefix route on its lan side by using nat (network address translation) rules.
In this embodiment, when the PD client determines that the PD reply packet does not include a legal prefix address segment, a 128-bit subnet mask is added to other address segments to obtain an ipv6 address on the wan side, and a nat (network address translation) rule is used to extract 64 bits from the ipv6 address on the wan side as an lan-side prefix route, so that the purpose of issuing an available prefix (i.e., an lan-side prefix route) or an available address (i.e., an ipv6 address in an ipv6 address pool) to the down-hanging terminal can be achieved, so that the down-hanging terminal can process to obtain a suitable ipv6 address to implement ad hoc network, 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.
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, route request) message sent by the down-hanging terminal, and replies an RA message to the down-hanging terminal;
step S42, the PD client determines whether the configuration status is stateful:
If yes, go to step S44.
If not, go to step S43.
Step S43, the PD client monitors whether an ipv6 message request is received, where the ipv6 message request requests a stateful address:
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 transmits the ipv6 address to the down-hanging terminal so as to realize networking.
And step S45, processing by the down-hanging terminal according to the prefix route of the PD client lan side in the RA message and combining the self address information to obtain the pv6 address so as to realize networking.
In this embodiment, when the M flag bit in the RA packet is 1, it indicates that the current environment is a stateful environment, the PD client may reply to the ipv6 packet request (e.g., solicit packet) that the down-hanging terminal requests a stateful address, and when the M flag bit in the RA packet is 0, it indicates that the current environment is a stateless environment, and the PD client may reply to the ipv6 packet request that the down-hanging terminal requests a stateless address.
Through the RA message, the PD client can tell whether the current environment of the down-hanging terminal is in a state or in a non-state, if the current environment is in a non-state, the PD client still continuously receives the ipv6 message requesting the state address, which indicates that the down-hanging terminal sending the message has a problem, if the current environment is in a normal flow, the PD client does not reply to the problematic down-hanging terminal, and the down-hanging terminal cannot acquire the available address, so that the ad hoc 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 legal PD. When networking, the down-hanging terminal sends an RS message to the PD client, then receives an RA message replied by the PD client, wherein the RA message comprises an lan-side prefix route, and the PD client can configure whether the current environment is in a state or not in the RA message, namely the PD client can inform the current environment of the down-hanging terminal whether the current environment is in a state or not through the RA message.
Under the condition that the hanging terminal is normal, whether the environment state contained in the RA message is in a stateful or stateless state can be identified, and different processing modes can be selected according to different environment states so as to obtain an ipv6 address which can be accessed to the PD client. Specifically, if the underslung terminal identifies that the current configuration in the RA message is a stateful environment, the underslung terminal needs to send an ipv6 message request for requesting a stateful address to the PD client again according to a standard flow under normal conditions, the PD client selects an ipv6 address from an ipv6 address pool and sends the ipv6 address to the underslung terminal, and the underslung terminal uses the ipv6 address to access the PD client to realize networking. If the under-hook terminal recognizes that the current configuration in the RA message is a stateless environment, under normal conditions, the under-hook terminal uses an lan-side prefix route contained in the RA message as an available prefix, calculates and generates an ipv6 address by combining the available prefix and address information of the under-hook terminal, and the under-hook terminal uses the ipv6 address to access the PD client to realize networking.
However, when an abnormality occurs in a part of the down-hanging terminals, the current configuration in the RA message cannot be identified, but the request of the ipv6 message requesting the stateful address is continuously sent to the PD client according to the operation step of the current configuration in the stateful environment, after the PD client receives the request, the down-hanging terminal is known to have a fault, in the prior art, the PD client cannot continuously reply to the fault terminal, which causes that the fault terminal cannot access the PD client to be networked, and through the steps S61-S64, when the PD client detects that the current configuration is in the stateless environment but still receives the request of the ipv6 message requesting the stateful address sent by the down-hanging terminal, the address of the ipv6 address is selected from the ipv6 address pool and sent to the down-hanging terminal according to the address issuing policy of the stateful environment, so that the down-hanging terminal can realize networking, and the abnormal behavior of the down-hanging terminal can be concurrently accommodated, the address allocation mode is adjusted, and the success of the self-networking is ensured.
The invention also provides an embodiment of an ipv6 adaptive networking system, wherein an adaptive control module is arranged in a PD client of the system, and is used for adding 128-bit subnet masks to other address fields 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 legal prefix address fields, 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 routes of the PD client lan side.
The self-adaptive control module is also used for issuing a prefix route on the lan side of the PD client side or an ipv6 address in the ipv6 address pool to the down-hanging terminal according to the configuration state so as to realize networking.
In the embodiment, by adding the self-adaptive control module, the environment is self-adaptively adapted on the premise of not adding the configuration command and the function switch, so that the environment is compatible with the original network environment deployment, and the operation and maintenance cost is reduced. The method solves the problem that due to the particularity of the existing network environment, PD has different configurations, so that the down-hanging terminal has no ipv6 address. The problem that the ipv6 address cannot be acquired due to the fact that part of terminal behaviors are not in accordance with the protocol specification is solved.
The application is not limited to the embodiments described above, but a number of modifications and adaptations can be made by a person skilled in the art without departing from the principle of the application, which modifications and adaptations are also considered to be within the scope of the application.
Claims (9)
1. An ipv6 adaptive networking method, comprising:
The PD client side sends a PD request message to the PD server side and receives a PD reply message replied by the PD server side;
When judging that the PD reply message does not contain legal prefix address segments, the PD client adds 128-bit subnet masks to other address segments 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 reply message does not contain legal prefix address field, the PD reply message does not contain prefix address field, or the prefix address field in the PD reply message is the same as the prefix route of the PD client wan side;
the PD client obtains an ipv6 address pool of the lan side according to the prefix route of the lan side;
and the PD client transmits the prefix route of the lan side or the ipv6 address in the ipv6 address pool to the down-hanging terminal according to the configuration state so as to realize networking.
2. The ipv6 adaptive networking method according to claim 1, wherein the specific step of the PD client determining whether the PD reply message includes a legal prefix address segment is as follows:
the PD client side judges whether the PD reply message does not contain a prefix address segment, if yes, the PD reply message does not contain a legal prefix address segment; if not, the PD client adds 64-bit subnet mask to other address fields in the PD reply message to obtain an ipv6 address of the PD client wan side, obtains a prefix route of the PD client wan side according to the ipv6 address, compares the prefix route of the PD client wan side with the prefix address field in the PD reply message, judges that the PD reply message does not contain legal prefix address fields when the comparison result is the same, and judges that the PD reply message contains legal prefix address fields when the comparison result is different.
3. The ipv6 adaptive networking method according to claim 2, wherein the PD client adds the 128-bit subnet mask to other address fields in the PD reply message to update the ipv6 address on the PD client wan side and updates the prefix route on the PD client wan side according to the updated ipv6 address after determining that the PD reply message contains the prefix address field and the prefix address field is the same as the prefix route on the PD client wan side.
4. An ipv6 adaptive networking method according to claim 1, further comprising:
After obtaining the prefix route of the wan side of the PD client through the PD reply message, the PD client adds a plurality of default routes on the wan side of the PD client according to user input.
5. The ipv6 adaptive networking method according to claim 1, wherein the specific steps of the PD client obtaining the lan-side prefix route according to the ipv6 address of 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 the network address translation nat rule.
6. The ipv6 adaptive networking method according to claim 1, wherein when the PD client is configured to be stateless, the PD client receives a route request RS message sent by the down-hanging terminal, and monitors whether an ipv6 message request requesting a stateful address is received after replying a route notification RA message to the down-hanging terminal.
7. The ipv6 adaptive networking method according to claim 6, wherein the PD client routes a prefix on its lan side or issues an ipv6 address in the ipv6 address pool to the down-hanging terminal according to the configuration state, so as to implement networking, and specifically includes the following steps:
The PD client receives the 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 the down-hanging terminal and requests a stateful address, the PD client selects an ipv6 address from the ipv6 address pool and sends the ipv6 address to the down-hanging terminal so as to realize networking.
8. A PD client, characterized in that it is based on the ipv6 adaptive networking method of any one of claims 1-7.
9. An ipv6 adaptive networking system, characterized in that, based on the ipv6 adaptive networking method of any one of claims 1-7, the system includes a PD server, a PD client, and a down-hanging 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 disposed in the PD client;
the self-adaptive control module is used for adding 128-bit subnet masks to other address fields 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 legal prefix address fields, 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 routes of the PD client lan side;
the self-adaptive control module is also used for issuing a prefix route of the PD client lan side or an ipv6 address in an ipv6 address pool to the down-hanging terminal according to the configuration state so as to realize networking.
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 CN115767510A (en) | 2023-03-07 |
CN115767510B true 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 (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
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 |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102340452B (en) * | 2011-10-14 | 2018-03-02 | 中兴通讯股份有限公司 | A kind of method and wireless device that route transmission is realized based on single IPv6 address prefixs |
-
2022
- 2022-11-16 CN CN202211435427.5A patent/CN115767510B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
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)
Title |
---|
一种基于前缀置换的域间路由压缩方法;张威;;中国科技论文;20130715(07);全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN115767510A (en) | 2023-03-07 |
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 | |
US20030026230A1 (en) | Proxy duplicate address detection for dynamic address allocation | |
CA2274050A1 (en) | System, device, and method for routing dhcp packets in a public data network | |
EP2082329B1 (en) | System and method for redirecting requests | |
CA2396867A1 (en) | System and method for using an ip address as a wireless unit identifier | |
CN112654049B (en) | Method, system, node and medium for configuring a wireless communication coverage extension system | |
Thaler | Evolution of the IP Model | |
US20130046899A1 (en) | Ipv6 lan-side address assignment policy | |
US20080298273A1 (en) | Method For Establishing a Communication Relationship in at Least One Communication Network | |
CN115767510B (en) | Ipv6 self-adaptive networking method, system and PD client | |
US8140710B2 (en) | Home link setting method, home gateway device, and mobile terminal | |
EP2052514B1 (en) | Pervasive inter-domain dynamic host configuration | |
JP2005210554A (en) | Dhcp substitute server | |
Johnson et al. | Routing in HF ad-hoc WANs | |
Baker et al. | RFC 8678 Enterprise Multihoming Using Provider-Assigned IPv6 Addresses without Network Prefix Translation: Requirements and Solutions | |
Wasserman | Wired and Wireless IPv6 Neighbor Discovery Optimizations draft-chakrabarti-nordmark-6man-efficient-nd-04 | |
Dudás | Anycast-Based Mobility |
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 | ||
GR01 | Patent grant |