This section provides an example for configuring iFIT hop-by-hop measurement based on 5-tuple on an L3VPN HVPN.
The L3VPN HVPN shown in Figure 1 transmits voice services. Voice flows are symmetrical and bidirectional, and therefore one voice flow can be divided into two unidirectional service flows. The upstream service flow enters the network through the UPE, travels across the SPE, and leaves the network through the NPE. The downstream service flow enters the network through the NPE, also travels across the SPE, and leaves the network through the UPE.
To monitor the packet loss rate and latency of the links between the UPE and NPE in real time, configure iFIT based on 5-tuple. This enables you to respond to network issues if service quality deteriorates and therefore meet users' service quality requirements.
Device (Role) |
Interface Name |
Interface |
Remote Device (Role) |
IP Address |
---|---|---|---|---|
UPE |
- |
Loopback 1 |
- |
1.1.1.1/32 |
interface 1 |
GE 0/1/0 |
NodeB |
192.168.2.1/24 |
|
interface 2 |
GE 0/1/1 |
SPE1 |
172.16.1.1/24 |
|
interface 3 |
GE 0/1/2 |
SPE2 |
172.16.2.1/24 |
|
SPE1 |
- |
Loopback 1 |
- |
2.2.2.2/32 |
interface 1 |
GE 0/1/1 |
UPE |
172.16.1.2/24 |
|
interface 2 |
GE 0/1/2 |
NPE |
172.16.4.1/24 |
|
interface 3 |
GE 0/1/3 |
SPE2 |
172.16.3.1/24 |
|
interface 4 |
GE 0/1/4 |
BITS |
172.16.6.1/24 |
|
SPE2 |
- |
Loopback 1 |
- |
3.3.3.3/32 |
interface 1 |
GE 0/1/1 |
NPE |
172.16.5.1/24 |
|
interface 2 |
GE 0/1/2 |
UPE |
172.16.2.2/24 |
|
interface 3 |
GE 0/1/3 |
SPE1 |
172.16.3.2/24 |
|
NPE |
- |
Loopback 1 |
- |
4.4.4.4/32 |
interface 1 |
GE 0/1/1 |
SPE2 |
172.16.5.2/24 |
|
interface 2 |
GE 0/1/2 |
SPE1 |
172.16.4.2/24 |
|
interface 3 |
GE 0/1/3 |
NPE |
192.168.2.2/24 |
Configure 1588v2 to synchronize the clocks of the UPE, SPEs, and NPE.
IP address of each interface listed in Table 1
Label switching router (LSR) IDs of the UPE (1.1.1.1), SPE1 (2.2.2.2), and SPE2 (3.3.3.3)
Tunnel interface names (Tunnel 11), tunnel IDs (100), and tunnel interface addresses (loopback interface addresses) for the tunnels between the UPE and SPE1
Tunnel interface names (Tunnel 12), tunnel IDs (200), and tunnel interface addresses (loopback interface addresses) for the tunnels between the UPE and SPE2
Tunnel policy names (policy 1) for the tunnels between the UPE and SPEs and tunnel selector names (BindTE) on the SPEs
Names (vpna), RDs (100:1), and VPN targets (1:1) of the VPN instances on the UPE and NPE
Target flow's source IP address (10.1.1.1) and destination IP address (10.2.1.1)
# Configure SPE1 to import clock signals from BITS0.
[~SPE1] clock bits-type bits0 2mhz [*SPE1] clock source bits0 synchronization enable [*SPE1] clock source bits0 priority 1 [*SPE1] commit
[~SPE1] ptp enable [*SPE1] ptp domain 1 [*SPE1] ptp device-type bc [*SPE1] ptp clock-source local clock-class 185 [*SPE1] clock source ptp synchronization enable [*SPE1] clock source ptp priority 1 [*SPE1] commit
[~UPE] ptp enable [*UPE] ptp domain 1 [*UPE] ptp device-type bc [*UPE] ptp clock-source local clock-class 185 [*UPE] clock source ptp synchronization enable [*UPE] clock source ptp priority 1 [*UPE] commit
[~NPE] ptp enable [*NPE] ptp domain 1 [*NPE] ptp device-type bc [*NPE] ptp clock-source local clock-class 185 [*NPE] clock source ptp synchronization enable [*NPE] clock source ptp priority 1 [*NPE] commit
[~SPE1] interface gigabitethernet 0/1/1 [~SPE1-GigabitEthernet0/1/1] ptp enable [*SPE1-GigabitEthernet0/1/1] commit [~SPE1-GigabitEthernet0/1/1] quit [~SPE1] interface gigabitethernet 0/1/2 [~SPE1-GigabitEthernet0/1/2] ptp enable [*SPE1-GigabitEthernet0/1/2] commit [~SPE1-GigabitEthernet0/1/2] quit [~SPE1] interface gigabitethernet 0/1/4 [~SPE1-GigabitEthernet0/1/4] ptp enable [*SPE1-GigabitEthernet0/1/4] commit [~SPE1-GigabitEthernet0/1/4] quit
[~UPE] interface gigabitethernet 0/1/0 [~UPE-GigabitEthernet0/1/0] ptp enable [*UPE-GigabitEthernet0/1/0] commit [~UPE-GigabitEthernet0/1/0] quit [~UPE] interface gigabitethernet 0/1/1 [~UPE-GigabitEthernet0/1/1] ptp enable [*UPE-GigabitEthernet0/1/1] commit [~UPE-GigabitEthernet0/1/1] quit
[~NPE] interface gigabitethernet 0/1/2 [~NPE-GigabitEthernet0/1/2] ptp enable [*NPE-GigabitEthernet0/1/2] commit [~NPE-GigabitEthernet0/1/2] quit [~NPE] interface gigabitethernet 0/1/3 [~NPE-GigabitEthernet0/1/3] ptp enable [*NPE-GigabitEthernet0/1/3] commit [~NPE-GigabitEthernet0/1/3] quit
<UPE> system-view [~UPE] ifit [*UPE-ifit] node-id 10 [*UPE-ifit] encapsulation nexthop 2.2.2.2 [*UPE-ifit] instance 1 [*UPE-ifit-instance-1] measure-mode trace [*UPE-ifit-instance-1] interval 10 [*UPE-ifit-instance-1] flow unidirectional source 10.1.1.1 destination 10.2.1.1 dscp 63 vpn-instance vpna [*UPE-ifit-instance-1] binding interface gigabitethernet 0/1/0 [*UPE-ifit-instance-1] commit
[~UPE] display ifit static instance 1 ------------------------------------------------------------------------- Flow Classification : static Instance Id : 10 Instance-name : 1 Flow Id : 2099183617 Flow Type : unidirectional Source IP Address/Mask Length : 10.1.1.1/32 Destination IP Address/Mask Length : 10.2.1.1/32 Protocol : any Source Port : any Destination Port : any Gtp : disable Gtp TeId : -- Dscp : 63 Interface : GigabitEthernet0/1/0 vpn-instance : vpna Loss Measure : enable Delay Measure : enable Delay Per packet Measure : disable Disorder Measure : disable Gtpu Sequence Measure : disable Measure Mode : trace Interval : 10(s) Tunnel Type : -- [~UPE] display ifit dynamic-hop 2020-01-14 17:24:39.28 +08:00 ------------------------------------------------------------------------- Flow Classification : dynamic-hop Instance Id : 514 Flow Id : 2099183617 Flow Type : unidirectional Interface : GigabitEthernet0/1/1 Direction : transitOutput Loss Measure : enable Delay Measure : enable Disorder Measure : disable Interval : 10(s)
<SPE1> system-view [~SPE1] ifit [*SPE1-ifit] node-id 20 [*SPE1-ifit] encapsulation nexthop 4.4.4.4 [*SPE1-ifit] commit
[~SPE1] display ifit dynamic-hop ------------------------------------------------------------------------- Flow Classification : dynamic-hop Instance Id : 514 Flow Id : 2099183617 Flow Type : unidirectional Interface : GigabitEthernet0/1/2 Direction : transitOutput Loss Measure : enable Delay Measure : enable Disorder Measure : disable Interval : 10(s) ------------------------------------------------------------------------- Flow Classification : dynamic-hop Instance Id : 513 Flow Id : 2099183617 Flow Type : unidirectional Interface : GigabitEthernet0/1/1 Direction : transitInput Loss Measure : enable Delay Measure : enable Disorder Measure : disable Interval : 10(s)
<NPE> system-view [~NPE] ifit [*NPE-ifit] commit
# Run the display ifit dynamic-hop command to check the configuration and status of the NPE.
[~NPE] display ifit dynamic-hop ------------------------------------------------------------------------- Flow Classification : dynamic-hop Instance Id : 514 Flow Id : 2099183617 Flow Type : unidirectional Interface : GigabitEthernet0/1/3 Direction : egress Loss Measure : enable Delay Measure : enable Disorder Measure : disable Interval : 10(s) ------------------------------------------------------------------------- Flow Classification : dynamic-hop Instance Id : 513 Flow Id : 2099183617 Flow Type : unidirectional Interface : GigabitEthernet0/1/2 Direction : transitInput Loss Measure : enable Delay Measure : enable Disorder Measure : disable Interval : 10(s)
[~UPE] telemetry [~UPE-telemetry] destination-group ifit [*UPE-telemetry-destination-group-ifit] ipv4-address 192.168.100.100 port 10001 protocol grpc no-tls [*UPE-telemetry-destination-group-ifit] quit [*UPE-telemetry] sensor-group ifit [*UPE-telemetry-sensor-group-ifit] sensor-path huawei-ifit:ifit/huawei-ifit-statistics:flow-hop-statistics/flow-hop-statistic [*UPE-telemetry-sensor-group-ifit-path] quit [*UPE-telemetry-sensor-group-ifit] sensor-path huawei-ifit:ifit/huawei-ifit-statistics:flow-statistics/flow-statistic [*UPE-telemetry-sensor-group-ifit-path] quit [*UPE-telemetry-sensor-group-ifit] quit [*UPE-telemetry] subscription ifit [*UPE-telemetry-subscription-ifit] sensor-group ifit sample-interval 0 [*UPE-telemetry-subscription-ifit] destination-group ifit [*UPE-telemetry-subscription-ifit] commit
# sysname UPE # ptp enable ptp domain 1 ptp device-type bc ptp clock-source local clock-class 185 # clock source ptp synchronization enable clock source ptp priority 1 # ip vpn-instance vpna ipv4-family route-distinguisher 100:1 apply-label per-instance tnl-policy policy1 vpn-target 1:1 export-extcommunity vpn-target 1:1 import-extcommunity # segment-routing mpls lsr-id 1.1.1.1 mpls mpls te label advertise non-null # interface GigabitEthernet0/1/0 undo shutdown ip binding vpn-instance vpna ip address 192.168.2.1 255.255.255.0 ptp enable # interface GigabitEthernet0/1/1 undo shutdown ip address 172.16.1.1 255.255.255.0 mpls mpls te ptp enable # interface GigabitEthernet0/1/2 undo shutdown ip address 172.16.2.1 255.255.255.0 mpls mpls te # interface LoopBack1 ip address 1.1.1.1 255.255.255.255 ospf enable area 0.0.0.0 ospf prefix-sid absolute 16100 # explicit-path spe1 next sid label 16300 type adjacency # explicit-path spe2 next sid label 16400 type adjacency # interface Tunnel11 ip address unnumbered interface LoopBack1 tunnel-protocol mpls te destination 2.2.2.2 mpls te tunnel-id 100 mpls te reserved-for-binding mpls te signal-protocol segment-routing mpls te path explicit-path spe1 # interface Tunnel12 ip address unnumbered interface LoopBack1 tunnel-protocol mpls te destination 3.3.3.3 mpls te tunnel-id 200 mpls te reserved-for-binding mpls te signal-protocol segment-routing mpls te path explicit-path spe2 # bgp 100 router-id 1.1.1.1 peer 2.2.2.2 as-number 100 peer 2.2.2.2 connect-interface LoopBack1 peer 3.3.3.3 as-number 100 peer 3.3.3.3 connect-interface LoopBack1 # ipv4-family unicast undo synchronization peer 2.2.2.2 enable peer 3.3.3.3 enable # ipv4-family vpnv4 policy vpn-target peer 2.2.2.2 enable peer 3.3.3.3 enable # ipv4-family vpn-instance vpna import-route direct auto-frr # ospf 1 opaque-capability enable segment-routing mpls segment-routing global-block 16000 20000 area 0.0.0.0 network 1.1.1.1 0.0.0.0 network 172.16.1.0 0.0.0.255 network 172.16.2.0 0.0.0.255 mpls-te enable # tunnel-policy policy1 tunnel binding destination 2.2.2.2 te Tunnel11 tunnel binding destination 3.3.3.3 te Tunnel12 # ifit node-id 10 encapsulation nexthop 2.2.2.2 instance 1 measure-mode trace interval 10 flow unidirectional source 10.1.1.1 destination 10.2.1.1 dscp 63 vpn-instance vpna binding interface GigabitEthernet0/1/0 # telemetry # sensor-group ifit sensor-path huawei-ifit:ifit/huawei-ifit-statistics:flow-hop-statistics/flow-hop-statistic sensor-path huawei-ifit:ifit/huawei-ifit-statistics:flow-statistics/flow-statistic # destination-group ifit ipv4-address 192.168.100.100 port 10001 protocol grpc no-tls # subscription ifit sensor-group ifit sample-interval 0 destination-group ifit # return
# sysname SPE1 # ptp enable ptp domain 1 ptp device-type bc ptp clock-source local clock-class 185 # clock source bits0 synchronization enable clock source bits0 priority 1 clock source ptp synchronization enable clock source ptp priority 1 clock bits-type bits0 2mhz # tunnel-selector bindTE permit node 10 apply tunnel-policy policy1 # mpls lsr-id 2.2.2.2 mpls mpls te label advertise non-null # interface GigabitEthernet0/1/1 undo shutdown ip address 172.16.1.2 255.255.255.0 mpls mpls te ptp enable # interface GigabitEthernet0/1/2 undo shutdown ip address 172.16.4.1 255.255.255.0 mpls ptp enable # interface GigabitEthernet0/1/3 undo shutdown ip address 172.16.3.1 255.255.255.0 mpls mpls te # interface GigabitEthernet0/1/4 undo shutdown ip address 172.16.6.1 255.255.255.0 ptp enable # interface LoopBack1 ip address 2.2.2.2 255.255.255.255 mpls mpls te ospf enable area 0.0.0.0 ospf prefix-sid absolute 16200 # explict-path upe next sid label 16200 type adjacency # explict-path npe next sid label 16400 type adjacency # interface Tunnel11 ip address unnumbered interface LoopBack1 tunnel-protocol mpls te destination 1.1.1.1 mpls te tunnel-id 100 mpls te reserved-for-binding mpls te signal-protocol segment-routing mpls te path explicit-path upe # interface Tunnel12 ip address unnumbered interface LoopBack1 tunnel-protocol mpls te destination 4.4.4.4 mpls te tunnel-id 200 mpls te reserved-for-binding mpls te signal-protocol segment-routing mpls te path explicit-path npe # bgp 100 router-id 2.2.2.2 peer 1.1.1.1 as-number 100 peer 1.1.1.1 connect-interface LoopBack1 peer 3.3.3.3 as-number 100 peer 3.3.3.3 connect-interface LoopBack1 peer 4.4.4.4 as-number 100 peer 4.4.4.4 connect-interface LoopBack1 # ipv4-family unicast undo synchronization peer 1.1.1.1 enable peer 3.3.3.3 enable peer 4.4.4.4 enable # ipv4-family vpnv4 undo policy vpn-target tunnel-selector bindTE peer 1.1.1.1 enable peer 1.1.1.1 reflect-client peer 1.1.1.1 next-hop-local peer 3.3.3.3 enable peer 4.4.4.4 enable peer 4.4.4.4 reflect-client peer 4.4.4.4 next-hop-local # ospf 1 opaque-capability enable area 0.0.0.0 network 2.2.2.2 0.0.0.0 network 172.16.1.0 0.0.0.255 network 172.16.3.0 0.0.0.255 network 172.16.4.0 0.0.0.255 segment-routing mpls segment-routing global-block 16000 20000 # tunnel-policy policy1 tunnel binding destination 1.1.1.1 te Tunnel11 tunnel binding destination 4.4.4.4 te Tunnel12 # ifit node-id 20 encapsulation nexthop 4.4.4.4 # return
# sysname SPE2 # tunnel-selector bindTE permit node 10 apply tunnel-policy policy1 # segment-routing mpls lsr-id 3.3.3.3 mpls mpls te label advertise non-null # interface GigabitEthernet0/1/1 undo shutdown ip address 172.16.5.1 255.255.255.0 mpls mpls te # interface GigabitEthernet0/1/2 undo shutdown ip address 172.16.2.2 255.255.255.0 mpls mpls te # interface GigabitEthernet0/1/3 undo shutdown ip address 172.16.3.2 255.255.255.0 mpls mpls te # interface LoopBack1 ip address 3.3.3.3 255.255.255.255 ospf enable area 0.0.0.0 ospf prefix-sid absolute 16200 # explict-path upe next sid label 16300 type adjacency # explict-path npe next sid label 16400 type adjacency # interface Tunnel11 ip address unnumbered interface LoopBack1 tunnel-protocol mpls te destination 1.1.1.1 mpls te tunnel-id 100 mpls te reserved-for-binding mpls te signal-protocol segment-routing mpls te path explicit-path upe # interface Tunnel12 ip address unnumbered interface LoopBack1 tunnel-protocol mpls te destination 4.4.4.4 mpls te tunnel-id 200 mpls te reserved-for-binding mpls te signal-protocol segment-routing mpls te path explicit-path npe # bgp 100 router-id 3.3.3.3 peer 1.1.1.1 as-number 100 peer 1.1.1.1 connect-interface LoopBack1 peer 2.2.2.2 as-number 100 peer 2.2.2.2 connect-interface LoopBack1 peer 4.4.4.4 as-number 100 peer 4.4.4.4 connect-interface LoopBack1 # ipv4-family unicast undo synchronization peer 1.1.1.1 enable peer 2.2.2.2 enable peer 4.4.4.4 enable # ipv4-family vpnv4 undo policy vpn-target tunnel-selector bindTE peer 1.1.1.1 enable peer 1.1.1.1 reflect-client peer 1.1.1.1 next-hop-local peer 2.2.2.2 enable peer 4.4.4.4 enable peer 4.4.4.4 reflect-client peer 4.4.4.4 next-hop-local # ospf 1 opaque-capability enable segment-routing mpls segment-routing global-block 16000 20000 area 0.0.0.0 network 3.3.3.3 0.0.0.0 network 172.16.2.0 0.0.0.255 network 172.16.3.0 0.0.0.255 network 172.16.5.0 0.0.0.255 mpls-te enable # tunnel-policy policy1 tunnel binding destination 1.1.1.1 te Tunnel11 tunnel binding destination 4.4.4.4 te Tunnel12 # return
# sysname NPE # ptp enable ptp domain 1 ptp device-type bc ptp clock-source local clock-class 185 # clock source ptp synchronization enable clock source ptp priority 1 # ip vpn-instance vpna ipv4-family route-distinguisher 100:1 apply-label per-instance vpn-target 1:1 export-extcommunity vpn-target 1:1 import-extcommunity # segment-routing mpls lsr-id 4.4.4.4 mpls # interface GigabitEthernet0/1/1 undo shutdown ip address 172.16.5.2 255.255.255.0 mpls mpls te # interface GigabitEthernet0/1/2 undo shutdown ip address 172.16.4.2 255.255.255.0 mpls mpls te ptp enable # interface GigabitEthernet0/1/3 undo shutdown ip binding vpn-instance vpna ip address 192.168.2.2 255.255.255.0 mpls mpls te ptp enable # interface LoopBack1 ip address 4.4.4.4 255.255.255.255 ospf enable area 0.0.0.0 ospf prefix-sid absolute 16300 # explicit-path spe1 next sid label 16100 type adjacency # explicit-path spe2 next sid label 16200 type adjacency # interface Tunnel11 ip address unnumbered interface LoopBack1 tunnel-protocol mpls te destination 2.2.2.2 mpls te signal-protocol segment-routing mpls te tunnel-id 100 mpls te path explicit-path spe1 # interface Tunnel12 ip address unnumbered interface LoopBack1 tunnel-protocol mpls te destination 3.3.3.3 mpls te signal-protocol segment-routing mpls te tunnel-id 200 mpls te path explicit-path spe2 # bgp 100 router-id 4.4.4.4 peer 2.2.2.2 as-number 100 peer 2.2.2.2 connect-interface LoopBack1 peer 3.3.3.3 as-number 100 peer 3.3.3.3 connect-interface LoopBack1 # ipv4-family unicast undo synchronization peer 2.2.2.2 enable peer 3.3.3.3 enable # ipv4-family vpnv4 policy vpn-target peer 2.2.2.2 enable peer 3.3.3.3 enable # ipv4-family vpn-instance vpna import-route direct auto-frr # ospf 1 area 0.0.0.0 segment-routing mpls segment-routing global-block 16000 20000 network 4.4.4.4 0.0.0.0 network 172.16.4.0 0.0.0.255 network 172.16.5.0 0.0.0.255 mpls-te enable # tunnel-policy policy1 tunnel binding destination 2.2.2.2 te Tunnel11 tunnel binding destination 3.3.3.3 te Tunnel12 # ifit # return