mirror of
https://dev.iopsys.eu/bbf/icwmp.git
synced 2025-12-10 07:44:41 +01:00
25 lines
No EOL
1.2 KiB
Markdown
25 lines
No EOL
1.2 KiB
Markdown
# Dual Stack IP in icwmp:
|
|
|
|
IPv4/IPv6 switch is done automatically in icwmp client. The CPE checks what's the suitable IP protocol (IPv4 or IPv6) to communicate with the ACS respecting those conditions:
|
|
|
|
- IPv6 has the priority in the connection
|
|
- if IPv6 is disabled in the CPE side, so the CPE will automatically switch to IPv4 as IP protocol for the communication with the ACS side.
|
|
- If the CPE is not able to communicate with the ACS using IPv6, so it switches automatically to IPv4 as an IP protocol.
|
|
|
|
This check is done in the beginng of the CWMP session respecting the following algorithm:
|
|
|
|
```mermaid
|
|
flowchart TD
|
|
A[check if IPv6 is enabled in the CPE device] --> B{is enabled?}
|
|
B -- no -->C[Select IPv4]
|
|
B -- yes -->D[send an empty HTTP Request to the ACS side]
|
|
D -->E{get response}
|
|
E -- succes response -->F[Select IPv6]
|
|
E -- fail response -->C
|
|
```
|
|
|
|
While the CPE must prioritize the IPv6, so it starts by checking if IPv6 is working in the CPE, then sends a HTTP message to the ACS side through IPv6 before making the same test in IPv4.
|
|
|
|
### Dual Stack configuration
|
|
|
|
- cwmp.cpe.default_wan_interface: this is the interface name that is used to check the connection with IPv4/IPv6. |