Skip to content

RDKCOM-5494: RDKBDEV-3334 Add Wan Manager Documentation#189

Open
Ashrafbhanu-k wants to merge 6 commits into
rdkcentral:mainfrom
Ashrafbhanu-k:feature/RDKBDEV-3334
Open

RDKCOM-5494: RDKBDEV-3334 Add Wan Manager Documentation#189
Ashrafbhanu-k wants to merge 6 commits into
rdkcentral:mainfrom
Ashrafbhanu-k:feature/RDKBDEV-3334

Conversation

@Ashrafbhanu-k

Copy link
Copy Markdown

RDKBDEV-3334
Reason for Change:
To add Component Documentation for Wan Manager component. Added README under new folder ./docs
Fix:
Added the documentation
Test Procedure:
None
Signed-off-by: Ashrafbhanu-k [Ashraf_bhanu@comcast.com]

@Ashrafbhanu-k Ashrafbhanu-k requested a review from a team as a code owner February 20, 2026 06:12
@github-actions

github-actions Bot commented Feb 20, 2026

Copy link
Copy Markdown

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

@kartikg33

Copy link
Copy Markdown
Contributor

@guto86 @S-Parthiban-Selvaraj is it worth building the /docs folder into a wiki?
Please take a look at what we've done for meta-rdk-broadband-apps

Wiki is here: https://rdkcentral.github.io/meta-rdk-broadband-apps/

@pradeeptakdas pradeeptakdas changed the title RDKBDEV-3334:Add Wan Manager Documentation RDKCOM-5494: RDKBDEV-3334 Add Wan Manager Documentation Mar 2, 2026
@pradeeptakdas

Copy link
Copy Markdown
Contributor

Hi @guto86 , @S-Parthiban-Selvaraj

Can you please review and merge this PR?

@Ashrafbhanu-k Ashrafbhanu-k force-pushed the feature/RDKBDEV-3334 branch from 912769c to 0bf91e5 Compare March 5, 2026 14:21
@Ashrafbhanu23

Copy link
Copy Markdown

I have read the CLA Document and I hereby sign the CLA

@AkhilaReddyK7

Copy link
Copy Markdown

Hi @guto86,
Can you please review and merge the PR.

@pradeeptakdas pradeeptakdas added documentation Improvements or additions to documentation community-contribution Contribution from community labels May 20, 2026
Comment thread docs/README.md
**Key Features & Responsibilities**:

- **Multi-Interface WAN Management**: Manages multiple WAN interface types (DOCSIS, Cellular, Ethernet, DSL, PON) through unified policy-based selection algorithms ensuring optimal connectivity based on availability, priority, and validation status
- **Policy-Based Interface Selection**: Implements seven distinct selection policies (Fixed Mode, Primary Priority, AutoWAN, Parallel Scan, and their variants) providing flexible interface selection strategies based on deployment requirements and network conditions

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only AutoWAN, Parallel Scan are actively maintained. rest is not compiled. Mwy be weould add a note

Comment thread docs/README.md
- **Comprehensive State Machine Management**: Orchestrates WAN interface lifecycle through sophisticated state machines handling VLAN configuration, PPP setup, IP address acquisition, validation, and teardown processes with proper error handling
- **Network Validation and Health Monitoring**: Performs DNS connectivity checks, internet validation, and continuous health monitoring of active WAN connections with configurable validation parameters and retry mechanisms
- **TR-181 Data Model Integration**: Exposes comprehensive TR-181 parameter tree for WAN management configuration, status monitoring, and statistics reporting with both standard and custom extensions for advanced features
- **Multi-Protocol IP Support**: Handles IPv4, IPv6, and dual-stack configurations with automatic protocol selection, DHCPv4/DHCPv6 client management, and support for advanced features like MAPT and 464XLAT tunneling

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we could mention DSlite, MAPE aswell

Comment thread docs/README.md

| Configuration File | Selection Logic | Purpose |
| ---------------------- | ----------------------------------------------------------------- | ------------------------------------- |
| `RdkWanManager_v2.xml` | Used when `WanManagerUnificationEnable` DISTRO feature is enabled | Unified WAN Manager TR-181 data model |

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we could mention WanManagerUnificationEnable is the default supported mode.

Comment thread docs/README.md

WAN Manager follows a structured initialization sequence that ensures all dependencies are satisfied before beginning WAN interface management operations. The component waits for critical RDK-B services to become available, registers its TR-181 data model, establishes IPC connections, and initializes policy engines before transitioning to active operation.

```mermaid

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This sequence diagram seems including the external componenet and sequence is simplified. Selection policy + interface state machine is not covered properly.

Comment thread docs/README.md
| Parameter Path | Data Type | Access | Default Value | Description | BBF Compliance |
| ----------------------------------------------------------------------- | ----------- | ------ | ---------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ---------------- |
| `Device.X_RDK_WanManager.Enable` | boolean | R/W | `true` | Master enable/disable control for WAN Manager component. When disabled, all WAN interface management operations are suspended and existing connections are maintained in current state. | Custom Extension |
| `Device.X_RDK_WanManager.Policy` | string | R/W | `"AUTOWAN_MODE"` | WAN interface selection policy defining algorithm used for interface selection. Enumerated values: FIXED_MODE_ON_BOOTUP, FIXED_MODE, PRIMARY_PRIORITY_ON_BOOTUP, PRIMARY_PRIORITY, MULTIWAN_MODE, AUTOWAN_MODE, PARALLEL_SCAN. | Custom Extension |

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Device.X_RDK_WanManager.Policy moved to group specific policy. This is a older version of tr181

Comment thread docs/README.md
| `Device.X_RDK_WanManager.CPEInterface.{i}.Name` | string | R/W | `"erouter0"` | Logical interface name used for WAN interface identification within RDK-B middleware. Must be unique across all WAN interfaces in the system. | Custom Extension |
| `Device.X_RDK_WanManager.CPEInterface.{i}.Phy.Status` | string | R/W | `"Down"` | Physical interface status reported by Interface Manager. Enumerated values: Down, Initializing, Up. Reflects actual hardware interface state. | Custom Extension |
| `Device.X_RDK_WanManager.CPEInterface.{i}.Wan.Type` | string | R/W | `"DOCSIS"` | WAN technology type for interface classification. Enumerated values: DOCSIS, ETHERNET, CELLULAR, DSL, PON, REMOTE. Used for policy selection and interface prioritization. | Custom Extension |
| `Device.X_RDK_WanManager.CPEInterface.{i}.Wan.Priority` | unsignedInt | R/W | `1` | Interface selection priority within policy group. Lower numerical values indicate higher priority. Range 1-255 where 1 is highest priority. | Custom Extension |

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

| Device.X_RDK_WanManager.CPEInterface.{i}.Name | string | R/W | "erouter0" | Logical interface name used for WAN interface identification within RDK-B middleware. Must be unique across all WAN interfaces in the system. | Custom Extension |
| Device.X_RDK_WanManager.CPEInterface.{i}.Phy.Status | string | R/W | "Down" | Physical interface status reported by Interface Manager. Enumerated values: Down, Initializing, Up. Reflects actual hardware interface state. | Custom Extension |
| Device.X_RDK_WanManager.CPEInterface.{i}.Wan.Type | string | R/W | "DOCSIS" | WAN technology type for interface classification. Enumerated values: DOCSIS, ETHERNET, CELLULAR, DSL, PON, REMOTE. Used for policy selection and interface prioritization. | Custom Extension |
| Device.X_RDK_WanManager.CPEInterface.{i}.Wan.Priority

older tr181 dml, should use the v2 dml

Comment thread docs/README.md

**Core HAL APIs:**

| HAL API | Purpose | Implementation File |

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't these hal APIs are used in the wanmanager , please check

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

community-contribution Contribution from community documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants