- Router,DrayOS 4
WAN Connection Detection
X. WAN
DrayTek Vigor routers have the ability to ensure an Internet connection is in a working state with WAN Connection Detection. This checks the Internet connection for connectivity and if that fails, drops the WAN connection to restart it or use a Failover Backup connection.
It is possible for an Internet connection to remain active but be in a state where it cannot communicate with the Internet.
For instance where an ISP has routing issues that stops access to the Internet, the link between the router and the ISP would still be active. The router would not see a need to stop using that WAN interface and switch to a Backup WAN, because it can still contact the ISP Gateway.
In this scenario, Ping Detection should be used to force the router to check connectivity beyond the ISP with a target remote IP; if it's unable to ping, the router will drop that Internet connection until it can get a response from that IP again.
The DrayTek Vigor routers have 3 types of configurable WAN Connection Detection available:
| ARP Detection | Sends an ARP request packet to the WAN Gateway, if there is no response within 30 seconds, the router will drop the WAN connection |
| Ping Detection | Sends an ICMP ping packet to the specified IP address(es) and if those addresses do not respond after the configured number of retries, the router will drop the WAN connection |
| Always On | This disables the WAN Connection Detection and limits detection to Physical Link connectivity only. This option is only available for Static IP & DHCP connections |
PPP connections such as PPPoA and PPPoE Internet connections, have an inherent form of link detection called LCP (Link Control Protocol). LCP will drop the PPP connection if the PPP server and Vigor router are unable to communicate using this protocol, the router will allow 3 retries before dropping the connection with an "LCP Timeout".
This table outlines the potential benefits to using the specific WAN Connection Detection methods:
| Connection Issue | Always On | ARP Detection | Ping Detection |
|---|---|---|---|
| Ethernet link disconnection | ![]() |
![]() |
![]() |
| ADSL / VDSL link disconnection | ![]() |
![]() |
![]() |
| PPPoE / PPPoA disconnection | ![]() |
![]() |
|
| Connectivity with ISP Gateway | ![]() |
![]() |
|
| Loss of IP Connectivity | ![]() |
||
| Connectivity to specific IPs / Web sites | ![]() |
||
| Significant Packet Loss | ![]() |
||
| Too many hops (TTL) | ![]() |
Setup & More Information
These settings are configured from the WAN interface settings in [WAN] > [Internet Access] > WAN Details Page for each WAN connection:

WAN Connection Detection methods can be set for all WAN interfaces individually on the router.
Please Note: Some settings shown may not be available on all DrayTek routers or firmware versions. Updating to the latest firmware (currently 3.8.2.3) may provide more configuration options.

ARP Detection is the default WAN Connection Detection mode on all DrayTek Vigor routers that run DrayOS.
This is designed to check connectivity to the ISP by testing whether the ISP Gateway address gives a response to an ARP request.
The router sends this ARP request every 5 seconds and if there is no response from the ISP Gateway within 30 seconds, the DrayTek router will drop the WAN interface until it begins to receive ARP responses again.
This can be used with all types of WAN interface.
| Advantages: |
| No configuration required |
| Responds quickly to lack of connectivity, ~30-40 seconds |
| Can determine whether ISP Gateway is working |
| Disadvantages: |
| Cannot determine whether connection is working beyond the ISP Gateway |
Ping Detection is the more advanced of the WAN Connection Detection modes. It is designed to ping one or more target IP addresses. If there's no response, the WAN connection fails a "WAN Health Check" and the WAN interface goes off-line until the target IP starts responding again.
To display the options shown, select "Ping Detect" as a WAN Connection Detection option.
Ping IP:
The Ping IPs shown here are examples and will not work in a real setup.
The IP address used should be one that gives 100% uptime and responds to pings, for instance:
- IP address of a Web site or Remote site required for normal operations
- Popular Internet DNS servers
To find IPs of hostnames / websites, try this command in a Windows Command Prompt to see which IP addresses are associated with it:
nslookup www.example.website
If setting up Ping Detect with the IP address result of a hostname, please note that that IP could change and no longer respond, resulting in the WAN Connection check failing. Setting a Secondary Ping IP to a different location would avoid this issue.
TTL - Time To Live:
The TTL setting controls the number of "hops" allowed between the router and the target IP(s). That is, the number of routers / gateways that the packet passes through.
For instance a TTL of 10, or 10 hops, would pass through 10 different gateways to reach the target IP, which is typical for international traffic.
This can be useful to detect / react to routing issues such as traffic taking a longer than normal path, but if set lower than the required number of hops, would result in the WAN interface going off-line, even though the IP address is responding without issue.
It's possible to find the number of hops required to reach a site with Trace Route ("tracert" in the Windows Command Prompt) but setting a more relaxed value such as 30-100 is recommended to handle normal network routing changes. Setting the highest value of 255 is best when this isn't necessary.
Ping Interval & Ping Retry:
Setting a high Ping Interval and high number of Ping Retries will increase the amount of time to detect that the WAN connection has failed and make it less sensitive to brief losses of connectivity and packet loss. The default values will send a ping every second and if one ping fails, the router will allow up to 10 more failures before considering the WAN off-line. This results in roughly 15 seconds wait between the first ping failure and the WAN being taken off-line.
Setting a low Ping Interval and low Ping Retry count will make the WAN Connection Detection sensitive to packet loss or brief disconnections and could take the WAN off-line if there is significant packet loss.
Sending a ping every second will use roughly 20MB of data per day, which could be an issue on metered Internet connections (3G / 4G LTE).
It is recommended to tune these settings depending on your requirements.
The configurable options are:
| Description | |
| Primary Ping IP | Primary IP address to ping, if this does not respond, the router checks the Secondary Ping IP (not available in all firmware versions) |
| Secondary Ping IP (not available in all firmware versions) |
Secondary IP address to ping, can be left blank |
| Ping Gateway IP | If selected, this pings the ISP Gateway IP in addition to the target IP(s) If this is enabled, the WAN will only go off-line if both target IPs and the ISP Gateway IP do not respond |
| TTL (Time To Live) | The max number of hops allowed between the router and the target IP(s) 255 is the least sensitive setting and is recommended where route length is not an issue Range is between 1 and 255 hops |
|
Ping Interval |
This defaults to 1 second, it is the amount of time to wait between sending another ping Range is between 1 and 3600 seconds |
| Ping Retry | The number of times to retry the ping if it fails, it defaults to 10 Ping Retries Range is between 1 and 255 retries |
If your router does not show all of these options, the router will use the defaults specified above.
| Advantages: | Disadvantages: |
| Configurable to meet requirements | Must ping a valid IP address located on the Internet / WAN |
| Responds quickly to lack of connectivity, around 15 seconds by default | If the remote IP does not respond, for instance the remote site is down, the router could take the WAN interface offline |
| Can determine whether ISP Gateway is working | Configuring multiple WANs to check connectivity with the same IP could result in multiple WAN interfaces going offline |
| Can check connectivity to specified remote IPs / locations | Configuring TTL value too low can result in the WAN connection check failing |
| Can detect Routing issues with the TTL setting | Configuring Ping Interval & Retry values too low can make the Internet connection too sensitive to latency or packet loss |
| Setting a low Ping Interval with a low Ping Retry count could potentially detect packet loss on a WAN interface |
This setting disables the WAN Connection Detection on the router. It is only available for MPoA and Static or Dynamic IP connections, the option will not be visible with PPP connections. When set, the router will only determine WAN state by checking the physical link state, such as whether the network cable is connected or the DSL link is connected.

| Advantages: | Disadvantages: |
| Can be useful in some scenarios where ARP Detect & Ping Detect do not allow the WAN connection to go on-line | Does not check whether the WAN connection has connectivity beyond Ethernet / xDSL link status |
| If the WAN has no connectivity, the router will see the connection as on-line | |
| Failure to detect WAN disconnection could stop Failover or Load Balance from working |
How do you rate this article?
Add a comment to this article
NOTE : All comments are reviewed before publication and may not be posted or may be redacted if the editors do not consider them helpful. The use of offensive or obscene language, copyrighted material, or advertising or promotion or linking to any other product or service is prohibited. By submitting your comment, you confirm that you are the original author and assign copyright of the content to DrayTek indefinitely and irrevocably.

