Re: LAG/ECMP and 'exact-route'

James Bensley via NANOG <[email protected]> Mon, 22 Jun 2026 15:49:15 +0000
Newsgroups gmane.org.operators.nanog
Message-ID <osk3qYULu8WJrK2YtBdxELa3MqGlKt-o4aNTC3CnC7ckTkVfNDgF2-VBkBw5ebdjBTs1fZBvt7vzchg0gTo6vUkKllQ_PacfIKTx5AVjHoI=@bensley.me>
On Tuesday, August 12th, 2025 at 16:59, Saku Ytti via NANOG <[email protected]> wrote:

> Hey-o,
> 

> 

> Which platform/software has a command to show which interface will be
> used for forwarding with given keys?
> 

> ASR9k has a cef exec-route, and I see references to this in c-nsp,
> reddit and cisco.com forums, stressing how useful debugging tool it
> has been. Despite it not actually working, since it's just RE
> software, it doesn't talk to the EZchip/lightspeed, unless it has been
> fixed in the past couple of years, certainly hasn't worked in the
> timeline of various forums finding it useful.
> 

> MX has 'jsim' https://www.juniper.net/documentation/en_US/day-one-books/TW_MX3D_PacketWalkthrough.pdf
> which I think actually works, but it is quite involved. I have some
> (false?) memory that I saw in some release note this being a bit more
> productised into CLI command, but I'm failing to find anything to
> support this memory.
> 

> There is also RFC5837, which is actually implemented in QFX5k, but not
> for TTL exceeded, we've opened ER to get it supported on MX and PTX
> and for TTL exceeded. This RFC will allow programmatic platform
> agnostic discovery of the actual interface used, without relying on
> platform specific magic. So please do ask your vendors to implement
> it.


After much a-do I managed to get this working on Jericho2 + Arista EOS boxes by using the Broadcom debug tools i.e. craft any packet you want and inject it into the ASIC, and then capture the ASIC lookup result.

These are my notes for version 1.0 so it's a bit rough, but works. I'm sure it can be improved upon: https://null.53bits.co.uk/index.php?page=7280r3-diag-packet-tx

Cheers,
James.

_______________________________________________
NANOG mailing list 
https://lists.nanog.org/archives/list/[email protected]/message/YB5IW53XGT2HUCIETTTJER6T23TAPTGI/
signature.asc (application/pgp-signature, 949 B)
-----BEGIN PGP SIGNATURE-----
Version: ProtonMail

wsG5BAEBCgBtBYJqOVlrCRCoEx+igX+A+0UUAAAAAAAcACBzYWx0QG5vdGF0
aW9ucy5vcGVucGdwanMub3Jn7OiRGuSyv3MLHrFvq0C1wXUelrG9oIzw70E5
yG3KjCgWIQQ+k2NZBObfK8Tl7sKoEx+igX+A+wAAfe0P/0onFAFULZ9WzV+O
xXgANYDTE+ppUhUmzF96VeMfUf52MW0asgl007BtN1+cx4OiS5qOKfAGw0FB
Jf0fZPbJipFDjDiu4wvQWQ5gQYL1N+C+kzGDJngEZD5Q4n40Dsg8Kek4HQCl
ZdGKW1Yuq6Zd/ddUAuIgb1Xe4+SEmhQRf4vSni5FMk5z/VVxuhkB9w/MlAPR
P5htn1yAC/xdGbXMOGkG/mYxqqBb98bzjbcd9dcPdNkDNo8De7XUIPbNVkgN
xp0SsEiE8Wr7Kn5HPBzsqMZEq1rJOAXhij5Sw9oQiy9XMTW4d8RMfAEr8mNB
qJN4sS8Weixr57+QDpEgplXgMizXEC7ac1RdZ1OJUfum4Mi9TzkItzh/ujMJ
NWTZvc3mADSSft6A2Iz3taSit0ZXrf3QXG4CQBVXDvTC3gLEQANRyn9GGbtZ
3LNOO4SimTHlHzVdoCDiP1xdfzGG3lvQcpUMojnUvbB7GWedQ6M/FgJhMDWJ
eeL2lkASw0Q1E5LawkE2i69VJ7iKCqPf+dKsg4zWg0lcYAbbv+akt19mrJrY
e/XxuBdYrzClDUGQ6fZUK7MTrCgWhTac/fVcdp1WErryCFmdHGDhmWAHCQRR
7Z+KR9HR9A32a2+ay4UhpPgvbQ/nRJfoxMFnrSMMUmzCX5I1TFpKXrQr69b1
kqjX8Ykx
=8JoK
-----END PGP SIGNATURE-----