Physical Address
304 North Cardinal St.
Dorchester Center, MA 02124
Physical Address
304 North Cardinal St.
Dorchester Center, MA 02124
ISO/IEC 29341-26-16 defines the WANDevice v2 root device, the top-level UPnP device template for the WAN side of an Internet Gateway Device (IGD). While the individual WAN services (WANIPConnection, WANPPPConnection, WANCommonInterfaceConfig, etc.) handle specific control functions, WANDevice v2 provides the compositional framework that binds them together. It defines the device hierarchy, mandatory and optional embedded devices, and the service discovery surface presented to UPnP control points on the local network.
The WANDevice v2 is updated from v1 with several architectural improvements: support for multiple WANConnectionDevice instances (enabling multi-WAN configurations like load balancing and failover), enhanced device description metadata including manufacturer URL and model description, and the integration of the IPv6-capable service variants. The device template explicitly defines which services are mandatory versus optional, providing implementers with clear guidance on minimum compliance requirements.
The WANDevice v2 template specifies a two-level device hierarchy. At the root level, the WANDevice itself contains the WANCommonInterfaceConfig service (mandatory) and any number of vendor-specific services. Below the root, one or more WANConnectionDevice sub-devices are embedded, each containing connection-specific services. Each WANConnectionDevice typically hosts one instance of either WANIPConnection or WANPPPConnection, and optionally WANEthernetLinkConfig or WANDSLLinkConfig depending on the physical medium.
The device description document (in XML format, served via UPnP’s device discovery mechanism) declares the full hierarchy. The WANDevice v2 template includes several key device properties in the description: friendlyName (user-visible device name), manufacturer, manufacturerURL, modelDescription, modelName, modelNumber, serialNumber, UDN (Unique Device Name), and UPC (Universal Product Code). These properties are crucial for control points implementing device inventories and firmware management.
| Component | Type | Mandatory | Service/Function |
|---|---|---|---|
| WANDevice | Root device | Yes | Hosts WANCommonInterfaceConfig |
| WANConnectionDevice | Embedded device | Yes (1+) | Hosts connection-specific services |
| WANCommonInterfaceConfig | Service | Yes | Physical interface monitoring |
| WANIPConnection | Service | At least one per WANConnectionDevice | IP connection management |
| WANPPPConnection | Service | Optional | PPP connection management |
| WANEthernetLinkConfig | Service | If Ethernet WAN | Ethernet link configuration |
| WANDSLLinkConfig | Service | If DSL WAN | DSL link configuration |
When engineering a UPnP control point that interacts with WANDevice v2, the first step is device discovery via UPnP’s SSDP (Simple Service Discovery Protocol). The WANDevice v2 must respond to M-SEARCH requests with a device description URL. Control points should parse the device description to discover the WANCommonInterfaceConfig service URL (for monitoring) and the available WANConnectionDevice instances (for connection management).
For multi-WAN gateway implementations (e.g., LTE failover + DSL primary), the WANDevice v2 contains multiple WANConnectionDevice entries. Control points should iterate through all WANConnectionDevice instances to build a complete view of the gateway’s WAN connectivity. Each instance’s WANIPConnection or WANPPPConnection service exposes the connection state, allowing the control point to identify which WAN link is currently active or preferred.
The v2 specification also improves eventing support. When connection state changes occur (e.g., a WAN link drops), the WANDevice v2 service can emit UPnP event notifications to subscribed control points via the GENA (General Event Notification Architecture) protocol. This enables real-time monitoring without polling. Control points should subscribe to the ConnectionStatus variable of all available WAN connection services to receive immediate notifications of link state transitions.