Physical Address
304 North Cardinal St.
Dorchester Center, MA 02124
Physical Address
304 North Cardinal St.
Dorchester Center, MA 02124
ISO/IEC 29341-26-13 defines the WANCommonInterfaceConfig service, a foundational UPnP service that provides monitoring and configuration capabilities for the physical WAN interface of an Internet Gateway Device. Unlike the connection-oriented services (WANIPConnection and WANPPPConnection), this service focuses on the underlying interface — reporting link status, physical layer parameters, aggregate traffic statistics, and common interface configuration settings.
This service is essential for network management applications, bandwidth monitoring tools, and quality-of-service (QoS) optimization systems. It provides the raw metrics needed to calculate throughput, identify link flaps, and detect duplex mismatches — information that is difficult to obtain through other UPnP services. The service exposes both read-only status variables and a limited set of configuration actions for common interface parameters.
The WANCommonInterfaceConfig service exposes a rich set of state variables that can be broadly categorized into physical layer status, traffic counters, and interface configuration. The PhysicalLinkStatus variable reports the current state of the physical medium (Up, Down, or Initializing), while PhysicalMedium identifies the underlying transport — DSL, Ethernet, Cable, POTS, Satellite, or Wireless. The service also reports EnabledForInternet, indicating whether the WAN interface is authorized for internet traffic.
The traffic monitoring capability is one of the most frequently used features. The service provides eight distinct counter variables: TotalBytesSent, TotalBytesReceived, TotalPacketsSent, TotalPacketsReceived, TotalErrorsSent, TotalErrorsReceived, TotalDiscardsSent, and TotalDiscardsReceived. These counters cover the full set of interface statistics that network engineers expect from a managed switch or router interface.
| State Variable | Type | Description | Engineering Use |
|---|---|---|---|
| PhysicalLinkStatus | string | Up, Down, or Initializing | Link availability monitoring |
| PhysicalMedium | string | DSL, Ethernet, Cable, POTS, Satellite, Wireless | Access technology identification |
| TotalBytesSent | ui4 | Total bytes transmitted | Upload throughput calculation |
| TotalBytesReceived | ui4 | Total bytes received | Download throughput calculation |
| TotalErrorsSent | ui4 | Total transmit errors | Fault detection and SQI |
| TotalErrorsReceived | ui4 | Total receive errors | Physical layer health |
| EnabledForInternet | boolean | Whether WAN is enabled for internet | Service provisioning |
Bandwidth monitoring is the primary use case for WANCommonInterfaceConfig. By periodically sampling TotalBytesSent and TotalBytesReceived, a control point can calculate real-time throughput rates. The recommended sampling interval is 5-10 seconds — frequent enough for meaningful real-time graphs, but not so frequent as to cause unnecessary UPnP SOAP traffic. The service also provides GetCommonLinkProperties action, which returns the MaxActiveConnections and WANAccessType (e.g., “PPPoE Broadband”, “IP Broadband”, “Cable Broadband”).
Error analysis is another critical application. The ratio of TotalErrorsReceived to TotalPacketsReceived provides an interface-level error rate. A rate consistently above 0.1% typically indicates a physical layer problem — faulty cabling, signal degradation (on DSL links), or electromagnetic interference. For DSL connections, some gateways additionally expose DownstreamBitRate and UpstreamBitRate via vendor-extended variables, though these are not part of the core standard.
For advanced deployments, the GetWANAccessProvider action (optional in the standard) can retrieve a URL pointing to the ISP’s provisioning portal, enabling automated firmware update checks and service plan information retrieval through the gateway itself.