08-12-2022 07:19 AM
Hello,
In order to monitor delay metric between tow routers directly connected using TWAMP-light protocol, the first Router is ASR9K IOS XR 7.3.2 as sender and remote router is NOKIA SR OS as responder,
Attached the configuration template pushed in both equipement :
issue :
As showing in the output, the delay value for session with NOKIA in too match bigger than the delay for session with other CISCO Router
Could you help !
Solved! Go to Solution.
09-13-2022 02:22 AM
Hello,
The root cause for this issue is due to :
The TWAMP timestamps can follow two different coding schemes: PTPv2 and NTP.
The coding format is normally defined by a Z-bit in the TWAMP message (rfc8762).
Z=0 => NTP
Z=1 => PTPv2
The ASR9K is sending the TWAMP message using PTPv2 timestamp encoding and this is flagged in rfc8762 with Z=1 as expected.
On the other end, the 7750 is reflecting the TWAMP packet back to the ASR9K using NTP for the timestamp encoding but without changing Z bit from 1 to 0 (Z-bit = 1 meaning PTPv2 encoding is left unchanged).
Encoding is defined by Z-bit value and 7750 doesn’t make the expected update when reflecting the TWAMP packet.
When ASR9K is receiving the TWAMP packet back for processing, it cannot make the right decoding as it thinks this is PTPv2 encoding according to Z bit value instead of NTP.
This is making the results false or unreliable.
This behavior where the z-bit is left unchanged is clearly stated in Nokia documentation, for release versions < 21.5: https://infocenter.nokia.com/public/7750SR222R1A/index.jsp?topic=%2Fcom.nokia.OAM_Guide%2Fprotocol-ai9exgsu5j.html « However, if the session-reflector only reflects the original ‟z-bit” it received from the session-sender and uses a different timestamp format in the packet, the delay calculations are not reliable because of the misinterpretation of the returned timestamp format.
SR OS session-reflectors running Release 21.5 and earlier always reflect the ‟z-bit” received from the session-sender. Regardless of the ‟z-bit”, these session-reflectors always encode an NTP timestamp format in the packet ».
CISCO Sender capture :
NOKIA Response Capture :
Regards
08-12-2022 11:03 AM
Hello,
this could be due to an MTU mismatch. On the ASR9K the default MTU is 1514 I think. On the Nokia, it is much higher (8936 or something like that). Post the output of 'sh int gig 0/0/0/0 | include MTU' (from the Cisco) and 'show port 1/1/1' from the Nokia...change the ports to the ones that you are actually using...
08-16-2022 01:37 AM
Hello Georg,
Thanks for your reply,
for information the IPs that are used in both router ends are Loopbacks interface (Loopbak 0 is CISCO ASR9K and interface System in NOKIA SR Router )
below are the putput of both Loopback :
CISCO ASR9K :
RP/0/RSP0/CPU0:N-ASR9006-PECNG-1(config)#do show interfaces loopback 0
Tue Aug 16 10:34:34.218 CEST
Loopback0 is up, line protocol is up
Interface state transitions: 1
Hardware is Loopback interface(s)
Description: Loopback MPLS - 192.168.201.106
Internet address is 192.168.201.106/32
MTU 1500 bytes, BW 0 Kbit
reliability Unknown, txload Unknown, rxload Unknown
Encapsulation Loopback, loopback not set,
Last link flapped 5d23h
Last input Unknown, output Unknown
Last clearing of "show interface" counters Unknown
Input/output data rate is disabled.
Nokia SR :
*A:N-7750-PECNG-3# show router interface "system" detail
===============================================================================
Interface Table (Router: Base)
===============================================================================
-------------------------------------------------------------------------------
Interface
-------------------------------------------------------------------------------
If Name : system
Admin State : Up Oper (v4/v6) : Up/Up
Protocols : ISIS MPLS RSVP PIM
IP Addr/mask : 192.168.201.120/32 Address Type : Primary
IGP Inhibit : Disabled Broadcast Address : Host-ones
HoldUp-Time : 0 Track Srrp Inst : 0
IPv6 Address : 2a02:8400:1ff:0:8000::98/128
IPv6 Address Type: Primary
IPv6 Addr State : PREFERRED
CGA modifier : (Not Specified)
HoldUp-Time : 0 Track Srrp Inst : 0
-------------------------------------------------------------------------------
Details
-------------------------------------------------------------------------------
Description : (Not Specified)
If Index : 1 Virt. If Index : 1
Last Oper Chg : 07/22/2022 09:32:04 Global If Index : 256
Lag Link Map Prof: none
MACSec : N/A
Port Id : system
TOS Marking : Trusted If Type : Network
Egress Filter : none Ingress Filter : none
Egr IPv6 Flt : none Ingr IPv6 Flt : none
SNTP B.Cast : False Network QoS Policy: 1
MAC Address : 40:55:82:a9:13:d8 Mac Accounting : Disabled
Ingress stats : Disabled IPv6 DAD : Enabled
TCP MSS V4 : 0 TCP MSS V6 : 0
ARP Timeout : 14400s IPv6 Nbr ReachTime: 30s
ARP Retry Timer : 5000ms IPv6 stale time : 14400s
ARP Limit : Disabled IPv6 Nbr Limit : Disabled
ARP Threshold : Disabled IPv6 Nbr Threshold: Disabled
ARP Limit Log On*: Disabled IPv6 Nbr Log Only : Disabled
ARP Learn Unsoli*: Disabled ND Learn Unsolici*: None
ARP Proactive Re*: Disabled ND Proactive Refr*: None
IP MTU : (default)
IP Oper MTU : 1500
ARP Populate : Disabled
Cflowd (unicast) : None Cflowd (multicast): None
LdpSyncTimer : None Strip-Label : Disabled
LSR Load Balance : system
EGR Load Balance : both
Vas If Type : none
TEID Load Balance: Disabled
SPI Load Balance : Disabled
uRPF Chk : disabled
uRPF Ipv6 Chk : disabled
uRPF Select VPRN : False
PTP HW Assist : Disabled
Rx Pkts : 2 Rx Bytes : 262
Rx V4 Pkts : N/A Rx V4 Bytes : N/A
Rx V4 Help. Pkts : 0 Rx V4 Help. Bytes : 0
Rx V6 Pkts : N/A Rx V6 Bytes : N/A
Tx Pkts : 0 Tx Bytes : 0
Tx V4 Pkts : 0 Tx V4 Bytes : 0
Tx V4 Discard Pk*: 0 Tx V4 Discard Byt*: 0
Tx V6 Pkts : 0 Tx V6 Bytes : 0
Tx V6 Discard Pk*: 0 Tx V6 Discard Byt*: 0
Tx DBcast Dis. P*: 0 Tx DBcast Dis. By*: 0
Mpls Rx Pkts : 0 Mpls Rx Bytes : 0
Mpls Tx Pkts : 0 Mpls Tx Bytes : 0
GRE Termination : Disabled
Inter-AS selective ILM untrusted : Disabled
Untrusted default forwarding : forward
OperDCpuProtPlcy : N/A
IP-Helper Address: Disabled
Ingress destination class lookup : Disabled
Static Delay : <none>
Proxy ARP Details
Rem Proxy ARP : Disabled Local Proxy ARP : Disabled
Policies : none
Proxy Neighbor Discovery Details
Local Pxy ND : Disabled
Policies : none
Secure ND Details
Secure ND : Disabled
ICMP Details
Redirects : Number - 100 Time (seconds) - 10
Unreachables : Number - 100 Time (seconds) - 10
TTL Expired : Number - 100 Time (seconds) - 10
Parameter Problem: Number - 100 Time (seconds) - 10
ICMP Mask Reply : True
ICMPv6 Details
Packet Too Big : Number - 100 Time (seconds) - 10
Parameter Problem: Number - 100 Time (seconds) - 10
Redirects : Number - 100 Time (seconds) - 10
Time Exceeded : Number - 100 Time (seconds) - 10
Unreachables : Number - 100 Time (seconds) - 10
IPCP Address Extension Details
Peer IP Addr : Not configured
Peer Pri DNS Addr: Not configured
Peer Sec DNS Addr: Not configured
Network Domains Associated
default
-------------------------------------------------------------------------------
Admin Groups
-------------------------------------------------------------------------------
No Matching Entries
-------------------------------------------------------------------------------
-------------------------------------------------------------------------------
Srlg Groups
-------------------------------------------------------------------------------
No Matching Entries
-------------------------------------------------------------------------------
-------------------------------------------------------------------------------
QoS Queue-Group Redirection Details
-------------------------------------------------------------------------------
Ingress FP QGrp : (none) Egress Port QGrp : (none)
Ing FP QGrp Inst : (none) Egr Port QGrp Inst: (none)
===============================================================================
* indicates that the corresponding row element may have been truncated.
*A:N-7750-PECNG-3#
09-13-2022 02:22 AM
Hello,
The root cause for this issue is due to :
The TWAMP timestamps can follow two different coding schemes: PTPv2 and NTP.
The coding format is normally defined by a Z-bit in the TWAMP message (rfc8762).
Z=0 => NTP
Z=1 => PTPv2
The ASR9K is sending the TWAMP message using PTPv2 timestamp encoding and this is flagged in rfc8762 with Z=1 as expected.
On the other end, the 7750 is reflecting the TWAMP packet back to the ASR9K using NTP for the timestamp encoding but without changing Z bit from 1 to 0 (Z-bit = 1 meaning PTPv2 encoding is left unchanged).
Encoding is defined by Z-bit value and 7750 doesn’t make the expected update when reflecting the TWAMP packet.
When ASR9K is receiving the TWAMP packet back for processing, it cannot make the right decoding as it thinks this is PTPv2 encoding according to Z bit value instead of NTP.
This is making the results false or unreliable.
This behavior where the z-bit is left unchanged is clearly stated in Nokia documentation, for release versions < 21.5: https://infocenter.nokia.com/public/7750SR222R1A/index.jsp?topic=%2Fcom.nokia.OAM_Guide%2Fprotocol-ai9exgsu5j.html « However, if the session-reflector only reflects the original ‟z-bit” it received from the session-sender and uses a different timestamp format in the packet, the delay calculations are not reliable because of the misinterpretation of the returned timestamp format.
SR OS session-reflectors running Release 21.5 and earlier always reflect the ‟z-bit” received from the session-sender. Regardless of the ‟z-bit”, these session-reflectors always encode an NTP timestamp format in the packet ».
CISCO Sender capture :
NOKIA Response Capture :
Regards
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide