How to configure a path monitor
An example of how to configure a path monitor.
- Create a path monitor host named
dc
and configure the parameters for probe sessions to this host.vyatta@vyatta# set service path-monitor host dc target 1.1.1.1
For aping
probe:vyatta@vyatta# set service path-monitor host dc type ping
For atwping
probe:vyatta@vyatta# set service path-monitor host dc type twping
- Create a policy named
voip
and set the round trip time threshold to 5 ms and the tolerance to 10 ms.vyatta@vyatta# set service path-monitor policy voip requires type ping round-trip-time threshold 5
vyatta@vyatta# set service path-monitor policy voip requires type ping round-trip-time tolerance 10
When the average measured round trip time is at or below the 5 ms threshold, then the path complies with the
voip
policy.When the measured round trip time is more than 15 ms (5 ms threshold + 10 ms tolerance), then the path does not comply with the
voip
policy.If the path complies with a path monitor policy and the path monitor measures a round trip time that is more than 5 ms and less than 15 ms, then the monitor reports the state as Marginally Compliant.
- Create the following associations:
- A policy association between
provider-a
, a ping path monitor, and thevoip
policy - A ping association between
provider-a
and thedc
host - A ping association between
provider-a
and the routing instanceprovider-a
Note: A path monitor must have exactly one host and one or more SLA policies.vyatta@vyatta# set service path-monitor monitor provider-a policy voip
vyatta@vyatta# set service path-monitor monitor provider-a type ping host dc
vyatta@vyatta# set service path-monitor monitor provider-a type ping routing instance provider-a
- A policy association between
- Create similar associations for
provider-b
.vyatta@vyatta# set service path-monitor monitor provider-b policy voip
vyatta@vyatta# set service path-monitor monitor provider-b type ping host dc
vyatta@vyatta# set service path-monitor monitor provider-b type ping instance provider-b
- Create similar associations for
provider-c
.vyatta@vyatta# set service path-monitor monitor provider-c policy voip
vyatta@vyatta# set service path-monitor monitor provider-c type ping host dc
vyatta@vyatta# set service path-monitor monitor provider-c type ping instance provider-c
- Commit the configuration.
vyatta@vyatta# commit [edit]
- Optional: View the configuration.
vyatta@vyatta# show service path-monitor monitor
monitor provider-a { policy voip type { ping { host dc interface dp0p161p1 } } } monitor provider-b { policy voip type { ping { host dc interface dp0p224p1 } } } monitor provider-c { policy voip type { ping { host dc interface dp0p256p1 } } } [edit]