icmp: support rfc5837
Subsystems (4)
PATCH v3 1/1 icmp: support rfc5837
From: ishaan <[email protected]>
This patch identifies the interface a packet arrived on when sending ICMP time exceeded, destination unreachable, and parameter problem messages, in accordance with RFC 5837.
It was tested by pinging a machine with a ttl of 1, and observing the response in Wireshark.
Changes since v1:
- Add sysctls, feature is disabled by default
- Device name is always less than 63, so don't check this
- MTU is always included in net_device, so don't check its presence
- Support IPv6 as first class citizen
- Increment lengths via sizeof operator as opposed to int literals
- Initialize more local variables with defaults
Changes since v2:
- Remove check for device name
- Get first entry instead of last in IPv6 addr list
- Use ALIGN macro for alignment
- Remove verification function only gets called with ip_version 4 or 6.
- Use /* */ style comments instead of // style
- Use proc_dointvec_minmax to constrain sysctl values
- Release dev with dev_put once finished
- Simplify logic for padding the end of the original datagram
- Fix off by one error in where the length of the original datagram is written into the IP header (6th and 5th bytes for ICMPv4 and v6 respectively are accessed at icmph[5] and icmph[4] respectively, not icmph[6] and icmph[5].)
--- Documentation/networking/ip-sysctl.rst | 9 ++ include/linux/icmp.h | 3 + include/net/netns/ipv4.h | 1 + include/net/netns/ipv6.h | 1 + include/uapi/linux/icmp.h | 26 ++++ net/ipv4/icmp.c | 157 +++++++++++++++++++++++++ net/ipv4/sysctl_net_ipv4.c | 9 ++ net/ipv6/af_inet6.c | 1 + net/ipv6/icmp.c | 17 +++ 9 files changed, 224 insertions(+)
Documentation/networking/ip-sysctl.rst +9 -0
@@ -1204,6 +1204,15 @@ icmp_errors_use_inbound_ifaddr - BOOLEAN Default: 0 +icmp_errors_identify_if - BOOLEAN + + If 1, then the kernel will append an extension object identifying + the interface on which the packet which caused the error. The + object will contain the ifIndex, interface name, interface IP + address, and/or MTU, in accordance with RFC5837. + + Default: 0 + igmp_max_memberships - INTEGER Change the maximum number of multicast groups we can subscribe to. Default: 20
include/linux/icmp.h +3 -0
@@ -39,4 +39,7 @@ static inline bool icmp_is_err(int type)void ip_icmp_error_rfc4884 (const struct sk_buff *skb,struct sock_ee_data_rfc4884 *out); +void icmp_identify_arrival_interface (struct sk_buff *skb,struct net *net,int room, +char *icmph,int ip_version); +#endif /* _LINUX_ICMP_H */
include/net/netns/ipv4.h +1 -0
@@ -90,6 +90,7 @@ struct netns_ipv4 {int sysctl_icmp_ratelimit;int sysctl_icmp_ratemask;int sysctl_icmp_errors_use_inbound_ifaddr; +int sysctl_icmp_errors_identify_if;struct local_ports ip_local_ports;
include/net/netns/ipv6.h +1 -0
@@ -36,6 +36,7 @@ struct netns_sysctl_ipv6 {int icmpv6_echo_ignore_all;int icmpv6_echo_ignore_multicast;int icmpv6_echo_ignore_anycast; +int icmpv6_errors_identify_if;DECLARE_BITMAP (icmpv6_ratemask,ICMPV6_MSG_MAX +1 );unsigned long *icmpv6_ratemask_ptr;int anycast_src_echo_reply;
include/uapi/linux/icmp.h +26 -0
@@ -118,4 +118,30 @@ struct icmp_extobj_hdr { __u8 class_type; }; +/* RFC 5837 Bitmasks */ +#define ICMP_5837_MTU_CTYPE (1 << 0) +#define ICMP_5837_NAME_CTYPE (1 << 1) +#define ICMP_5837_IP_ADDR_CTYPE (1 << 2) +#define ICMP_5837_IF_INDEX_CTYPE (1 << 3) + +#define ICMP_5837_ARRIVAL_ROLE_CTYPE (0 << 6) +#define ICMP_5837_SUB_IP_ROLE_CTYPE (1 << 6) +#define ICMP_5837_FORWARD_ROLE_CTYPE (2 << 6) +#define ICMP_5837_NEXT_HOP_ROLE_CTYPE (3 << 6) + +#define ICMP_5837_MIN_ORIG_LEN 128 + +/* RFC 5837 Interface IP Address sub-object */ +struct interface_ipv4_addr_sub_obj { +__be16 afi; +__be16 reserved; +__be32 addr; +}; + +struct interface_ipv6_addr_sub_obj { +__be16 afi; +__be16 reserved; +__be32 addr[4 ]; +}; +#endif /* _UAPI_LINUX_ICMP_H */
net/ipv4/icmp.c +157 -0
181 lines not on this page · raw message
net/ipv4/sysctl_net_ipv4.c +9 -0
@@ -628,6 +628,15 @@ static struct ctl_table ipv4_net_table[] = { .mode = 0644, .proc_handler = proc_dointvec }, + { + .procname = "icmp_errors_identify_if", + .data = &init_net.ipv4.sysctl_icmp_errors_identify_if, + .maxlen = sizeof(int), + .mode = 0644, + .proc_handler = proc_dointvec_minmax, + .extra1 = SYSCTL_ZERO, + .extra2 = SYSCTL_ONE, + }, { .procname = "icmp_ratelimit", .data = &init_net.ipv4.sysctl_icmp_ratelimit,
net/ipv6/af_inet6.c +1 -0
@@ -939,6 +939,7 @@ static int __net_init inet6_net_init(struct net *net) net->ipv6.sysctl.icmpv6_echo_ignore_all =0 ; net->ipv6.sysctl.icmpv6_echo_ignore_multicast =0 ; net->ipv6.sysctl.icmpv6_echo_ignore_anycast =0 ; + net->ipv6.sysctl.icmpv6_errors_identify_if =0 ;/* By default, rate limit error messages. * Except for pmtu discovery, it would break it.
net/ipv6/icmp.c +17 -0
@@ -595,6 +595,13 @@ static void icmp6_send(struct sk_buff *skb, u8 type, u8 code, __u32 info, msg.offset =skb_network_offset (skb); msg.type = type; +if (net->ipv6.sysctl.icmpv6_errors_identify_if && + (type ==ICMPV6_DEST_UNREACH || type ==ICMPV6_TIME_EXCEED )) { +icmp_identify_arrival_interface (skb, net, +IPV6_MIN_MTU -sizeof (struct ipv6hdr ) -sizeof (struct icmp6hdr ), + (char *)&tmp_hdr,6 ); + } + len = skb->len - msg.offset; len = min_t(unsigned int, len, IPV6_MIN_MTU - sizeof(struct ipv6hdr) - sizeof(struct icmp6hdr));if (len <0 ) {
@@ -1184,6 +1191,15 @@ static struct ctl_table ipv6_icmp_table_template[] = { .mode = 0644, .proc_handler = proc_do_large_bitmap, }, + { + .procname = "errors_identify_if", + .data = &init_net.ipv6.sysctl.icmpv6_errors_identify_if, + .maxlen = sizeof(int), + .mode = 0644, + .proc_handler = proc_dointvec_minmax, + .extra1 = SYSCTL_ZERO, + .extra2 = SYSCTL_ONE, + }, { }, };
@@ -1201,6 +1217,7 @@ struct ctl_table * __net_init ipv6_icmp_sysctl_init(struct net *net) table[2 ].data = &net->ipv6.sysctl.icmpv6_echo_ignore_multicast; table[3 ].data = &net->ipv6.sysctl.icmpv6_echo_ignore_anycast; table[4 ].data = &net->ipv6.sysctl.icmpv6_ratemask_ptr; + table[5 ].data = &net->ipv6.sysctl.icmpv6_errors_identify_if; }return table; }
Signature · 1 line
2.25.1
Quoted 7 lines · ishaangandhi
net/ipv4/icmp.c +7
-0+void icmp_identify_arrival_interface (struct sk_buff *skb,struct net *net,int room, +char *icmph,int ip_version) +{ +unsigned int ext_len, orig_len, word_aligned_orig_len, offset, extra_space_needed, + if_index, mtu =0 , name_len =0 , name_subobj_len =0 ; +struct interface_ipv4_addr_sub_obj ip4_addr_subobj = {.addr =0 }; +struct interface_ipv6_addr_sub_obj ip6_addr_subobj;
net/ipv4/icmp.c static struct rtable *icmp_route_lookup(struct net *net, · line 586
Quoted 10 lines
net/ipv4/icmp.c +10
-0+struct icmp_extobj_hdr *iio_hdr; +struct inet6_ifaddr ip6_ifaddr; +struct inet6_dev *dev6 =NULL ; +struct icmp_ext_hdr *ext_hdr; +char *name =NULL , ctype; +struct net_device *dev; +void *subobj_offset; + +skb_linearize (skb); + if_index =inet_iif (skb);
inet_iif is an IPv4 helper; it should not be used for v6 skb's.
Thank you. Would it be better to do instead:
+ if_index = skb->skb_iif;
or
+ if_index = ip_version == 4 ? inet_iif(skb) : skb->skb_iif;
Quoted 23 lines · David Ahern
Quoted 7 lines · ishaangandhi
net/ipv4/icmp.c +7
-0+void icmp_identify_arrival_interface (struct sk_buff *skb,struct net *net,int room, +char *icmph,int ip_version) +{ +unsigned int ext_len, orig_len, word_aligned_orig_len, offset, extra_space_needed, + if_index, mtu =0 , name_len =0 , name_subobj_len =0 ; +struct interface_ipv4_addr_sub_obj ip4_addr_subobj = {.addr =0 }; +struct interface_ipv6_addr_sub_obj ip6_addr_subobj;net/ipv4/icmp.c static struct rtable *icmp_route_lookup(struct net *net, · line 586
Quoted 10 lines
net/ipv4/icmp.c +10
-0+struct icmp_extobj_hdr *iio_hdr; +struct inet6_ifaddr ip6_ifaddr; +struct inet6_dev *dev6 =NULL ; +struct icmp_ext_hdr *ext_hdr; +char *name =NULL , ctype; +struct net_device *dev; +void *subobj_offset; + +skb_linearize (skb); + if_index =inet_iif (skb);
inet_iifis an IPv4 helper; it should not be used for v6 skb's.
Review
Quoted 8 lines · Ishaan Gandhi
Thank you. Would it be better to do instead:
(quoted diff) +1
-0+ if_index = skb->skb_iif;or
(quoted diff) +1
-0+ if_index = ip_version == 4 ? inet_iif(skb) : skb->skb_iif;
If the packet comes in via an interface assigned to a VRF, skb_iif is most likely the VRF index which is not what you want.
The general problem of relying on skb_iif was discussed on v1 and v2 of your patch. Returning an iif that is a VRF, as an example, leaks information about the networking configuration of the device which from a quick reading of the RFC is not the intention.
Further, the Security Considerations section recommends controls on what information can be returned where you have added a single sysctl that determines if all information or none is returned. Further, it is not a a per-device control but a global one that applies to all net devices - though multiple entries per netdevice has a noticeable cost in memory at scale.
In the end it seems to me the cost benefit is not there for a feature like this.
Quoted 26 lines · David Ahern
Quoted 8 lines · Ishaan Gandhi
Thank you. Would it be better to do instead:
+
if_index=skb->skb_iif;or
+
if_index=ip_version== 4 ?inet_iif(skb):skb->skb_iif;If the packet comes in via an interface assigned to a VRF,
skb_iifis most likely the VRF index which is not what you want.The general problem of relying on
skb_iifwas discussed on v1 and v2 of your patch. Returning an iif that is a VRF, as an example, leaks information about the networking configuration of the device which from a quick reading of the RFC is not the intention.Further, the Security Considerations section recommends controls on what information can be returned where you have added a single sysctl that determines if all information or none is returned. Further, it is not a a per-device control but a global one that applies to all net devices - though multiple entries per netdevice has a noticeable cost in memory at scale.
Quoted 2 lines
In the end it seems to me the cost benefit is not there for a feature like this.
The sysctl was my suggestion. The detailed filtering suggested in the RFC would add more complexity, not helping that cost benefit analysis. I cared mostly about being able to disable this feature outright as it has obvious risks.
But perhaps that is overly simplistic. The RFC suggests deciding trusted recipients based on destination address. With a sysctl this feature can be only deployed when all possible recipients are trusted, i.e., on an isolated network. That is highly limiting.
Perhaps a per-netns trusted subnet prefix?
The root admin should always be able to override and disable this outright.
Quoted 35 lines · Willem de Bruijn
Quoted 26 lines · David Ahern
Quoted 8 lines · Ishaan Gandhi
Thank you. Would it be better to do instead:
+
if_index=skb->skb_iif;or
+
if_index=ip_version== 4 ?inet_iif(skb):skb->skb_iif;If the packet comes in via an interface assigned to a VRF,
skb_iifis most likely the VRF index which is not what you want.The general problem of relying on
skb_iifwas discussed on v1 and v2 of your patch. Returning an iif that is a VRF, as an example, leaks information about the networking configuration of the device which from a quick reading of the RFC is not the intention.Further, the Security Considerations section recommends controls on what information can be returned where you have added a single sysctl that determines if all information or none is returned. Further, it is not a a per-device control but a global one that applies to all net devices - though multiple entries per netdevice has a noticeable cost in memory at scale.
Quoted 2 lines
In the end it seems to me the cost benefit is not there for a feature like this.
The sysctl was my suggestion. The detailed filtering suggested in the RFC would add more complexity, not helping that cost benefit analysis. I cared mostly about being able to disable this feature outright as it has obvious risks.
Quoted 9 lines
But perhaps that is overly simplistic. The RFC suggests deciding trusted recipients based on destination address. With a sysctl this feature can be only deployed when all possible recipients are trusted, i.e., on an isolated network. That is highly limiting.
Perhaps a per-netns trusted subnet prefix?
The root admin should always be able to override and disable this outright.
sure a sysctl is definitely required for a feature like this.
From my perspective to be useful the control needs to be per interface (e.g., management interface vs dataplane devices) and that has a higher cost. Add in the amount of information returned and we know from other examples that some users will want to limit which data is returned and that increases the number of sysctls per device.
On top of that there is the logic of resolving what is the right device and its information to return. There is are multiple layers - nic port, bond, vlan, bridge, vrf, macvlan - each of which might be relevant. The RFC referenced unnumbered devices as the ingress device. It seems like a means for leaking information which comes back to the sysctl for proper controls.
At the end of the day, what is the value of this feature vs the other ICMP probing set?
rfc5837 and rfc8335
Quoted 2 lines · David Ahern
At the end of the day, what is the value of this feature vs the other ICMP probing set?
Merging the conversations about both of these RFCs since my comments and questions are the same for both.
What is the motivation for adding support for these RFCs? Is the push from a company or academia (e.g., a CS project)?
Realistically, who is expected to use this feature and why given the information it leaks about the networking configuration of the node. Why is this tool expected to be more useful than a network operator using existing protocols like lldp, collecting that data across nodes and analyzing, or using tools like suzieq[1]?
RFC 5837 has been out for 11 years. Do any operating systems support it — e.g., networking vendors like Cisco, Juniper, etc.? If not, why not? This one seems to me the most dubious at this point in time.
Similarly for RFC 8335, what is the current support for it?
Linux does not need to support an RFC just because it exists. I am really questioning the value of both of them
Re: rfc5837 and rfc8335
Quoted 2 lines
What is the motivation for adding support for these RFCs? Is the push from a company or academia (e.g., a CS project)?
Yes, these patches (RFC 8335 and 5837) were produced as a result of a collaboration between Juniper Networks and Harvey Mudd College.
Let me loop in our advisor, Zach Dodds, and Juniper Networks engineer Ron Bonica. I believe Ron has more context on the potential usage and existing support for these two features.
Quoted 28 lines · David Ahern
Quoted 2 lines · David Ahern
At the end of the day, what is the value of this feature vs the other ICMP probing set?
Merging the conversations about both of these RFCs since my comments and questions are the same for both.
What is the motivation for adding support for these RFCs? Is the push from a company or academia (e.g., a CS project)?
Realistically, who is expected to use this feature and why given the information it leaks about the networking configuration of the node. Why is this tool expected to be more useful than a network operator using existing protocols like lldp, collecting that data across nodes and analyzing, or using tools like suzieq[1]?
RFC 5837 has been out for 11 years. Do any operating systems support it — e.g., networking vendors like Cisco, Juniper, etc.? If not, why not? This one seems to me the most dubious at this point in time.
Similarly for RFC 8335, what is the current support for it?
Linux does not need to support an RFC just because it exists. I am really questioning the value of both of them
A message that is not in the archive (sent off-list or not yet received): CAJByZJBNMqVDXjcOGCJHGcAv+sT4oEv1FD608TpA_e-J2a3L2w@mail.gmail.com
A message that is not in the archive (sent off-list or not yet received): BL0PR05MB5316A2F5C2F1A727FA0190F3AE649@BL0PR05MB5316.namprd05.prod.outlook.com
Re: rfc5837 and rfc8335
Quoted 30 lines · Ron Bonica
Hi Folks,
The rationale for RFC 8335 can be found in Section 5.0 of that document. Currently, ICMP ECHO and ECHO RESPONSE messages can be used to determine the liveness of some interfaces. However, they cannot determine the liveness of:
* An unnumbered IPv4 interface
* An IPv6 interface that has only a link-local addressA router can have hundreds, or even thousands of interfaces that fall into these categories.
The rational for RFC 5837 can be found in the Introduction to that document. When a node sends an ICMP TTL Expired message, the node reports that a packet has expired on it. However, the source address of the ICMP TTL Expired message doesn’t necessarily identify the interface upon which the packet arrived. So, TRACEROUTE can be relied upon to identify the nodes that a packet traverses along its delivery path. But it cannot be relied upon to identify the interfaces that a packet traversed along its deliver path.
Quoted 1 line
It's not a question of the rationale; the question is why add this support to Linux now? RFC 5837 is 11 years old. Why has no one cared to add support before now? What tooling supports it? What other NOS'es support it to really make the feature meaningful? e.g., Do you know what Juniper products support RFC 5837 today?
More than likely Linux is the end node of the traceroute chain, not the transit or path nodes. With Linux, the ingress interface can lost in the layers (NIC port, vlan, bond, bridge, vrf, macvlan), and to properly support either you need to return information about the right one. Unnumbered interfaces can make that more of a challenge.
RE: rfc5837 and rfc8335
David,
Juniper networks is motivated to promote RFC 5837 now, as opposed to eleven years ago, because the deployment of parallel links between routers is becoming more common
Large network operators frequently require more than 400 Gbps connectivity between their backbone routers. However, the largest interfaces available can only handle 400 Gbps. So, parallel links are required. Moreover, it is frequently cheaper to deploy 4 100 Gbps interfaces than a single 400 Gbps interface. So, it is not uncommon to see two routers connected by many, parallel 100 Gbps links. RFC 5837 allows a network operator to trace a packet interface to interface, as opposed to node to node.
I think that you are correct in saying that:
- LINUX is more likely to be implemented on a host than a router
- Therefore, LINUX hosts will not send RFC 5837 ICMP extensions often
However, LINUX hosts are frequently used in network management stations. Therefore, it would be very useful if LINUX hosts could parse and display incoming RFC 5837 extensions, just as they display RFC 4950 ICMP extensions.
Juniper networks plans to support RFC 5837 on one platform in an upcoming release and on other platforms soon after that.
Ron
Juniper Business Use Only
-----Original Message-----
From: David Ahern <[email protected]>
Sent: Wednesday, March 24, 2021 11:19 PM
To: Ron Bonica <[email protected]>; Zachary Dodds <[email protected]>; Ishaan Gandhi <[email protected]>
Cc: Andreas Roeseler <[email protected]>; David Miller <[email protected]>; Network Development <[email protected]>; Stephen Hemminger <[email protected]>; Willem de Bruijn <[email protected]>; [email protected]
Subject: Re: rfc5837 and rfc8335
[External Email. Be cautious of content]
Quoted 21 lines · Ron Bonica
Hi Folks,
The rationale for RFC 8335 can be found in Section 5.0 of that document. Currently, ICMP ECHO and ECHO RESPONSE messages can be used to determine the liveness of some interfaces. However, they cannot determine the liveness of:
* An unnumbered IPv4 interface
* An IPv6 interface that has only a link-local addressA router can have hundreds, or even thousands of interfaces that fall into these categories.
Quoted 10 lines
The rational for RFC 5837 can be found in the Introduction to that document. When a node sends an ICMP TTL Expired message, the node reports that a packet has expired on it. However, the source address of the ICMP TTL Expired message doesn't necessarily identify the interface upon which the packet arrived. So, TRACEROUTE can be relied upon to identify the nodes that a packet traverses along its delivery path. But it cannot be relied upon to identify the interfaces that a packet traversed along its deliver path.
It's not a question of the rationale; the question is why add this support to Linux now? RFC 5837 is 11 years old. Why has no one cared to add support before now? What tooling supports it? What other NOS'es support it to really make the feature meaningful? e.g., Do you know what Juniper products support RFC 5837 today?
More than likely Linux is the end node of the traceroute chain, not the transit or path nodes. With Linux, the ingress interface can lost in the layers (NIC port, vlan, bond, bridge, vrf, macvlan), and to properly support either you need to return information about the right one. Unnumbered interfaces can make that more of a challenge.
RE: rfc5837 and rfc8335
Folks,
Andreas reminds me that you may have the same questions regarding RFC 8335.....
The practice of assigning globally reachable IP addresses to infrastructure interfaces cost network operators money. Normally, they number an interface from a IPv4 /30. Currently, a /30 costs 80 USD and the price is only expected to rise. Furthermore, most IP Address Management (IPAM) systems license by the address block. The more globally reachable addresses you use, the more you pay.
They would prefer to use:
- IPv4 unnumbered interfaces
- IPv6 interfaces that have only link-local addresses
Ron
Juniper Business Use Only
-----Original Message-----
From: Ron Bonica
Sent: Monday, March 29, 2021 10:50 AM
To: David Ahern <[email protected]>; Zachary Dodds <[email protected]>; Ishaan Gandhi <[email protected]>
Cc: Andreas Roeseler <[email protected]>; David Miller <[email protected]>; Network Development <[email protected]>; Stephen Hemminger <[email protected]>; Willem de Bruijn <[email protected]>; [email protected]
Subject: RE: rfc5837 and rfc8335
David,
Juniper networks is motivated to promote RFC 5837 now, as opposed to eleven years ago, because the deployment of parallel links between routers is becoming more common
Large network operators frequently require more than 400 Gbps connectivity between their backbone routers. However, the largest interfaces available can only handle 400 Gbps. So, parallel links are required. Moreover, it is frequently cheaper to deploy 4 100 Gbps interfaces than a single 400 Gbps interface. So, it is not uncommon to see two routers connected by many, parallel 100 Gbps links. RFC 5837 allows a network operator to trace a packet interface to interface, as opposed to node to node.
I think that you are correct in saying that:
- LINUX is more likely to be implemented on a host than a router
- Therefore, LINUX hosts will not send RFC 5837 ICMP extensions often
However, LINUX hosts are frequently used in network management stations. Therefore, it would be very useful if LINUX hosts could parse and display incoming RFC 5837 extensions, just as they display RFC 4950 ICMP extensions.
Juniper networks plans to support RFC 5837 on one platform in an upcoming release and on other platforms soon after that.
Ron
Juniper Business Use Only
-----Original Message-----
From: David Ahern <[email protected]>
Sent: Wednesday, March 24, 2021 11:19 PM
To: Ron Bonica <[email protected]>; Zachary Dodds <[email protected]>; Ishaan Gandhi <[email protected]>
Cc: Andreas Roeseler <[email protected]>; David Miller <[email protected]>; Network Development <[email protected]>; Stephen Hemminger <[email protected]>; Willem de Bruijn <[email protected]>; [email protected]
Subject: Re: rfc5837 and rfc8335
[External Email. Be cautious of content]
Quoted 21 lines · Ron Bonica
Hi Folks,
The rationale for RFC 8335 can be found in Section 5.0 of that document. Currently, ICMP ECHO and ECHO RESPONSE messages can be used to determine the liveness of some interfaces. However, they cannot determine the liveness of:
* An unnumbered IPv4 interface
* An IPv6 interface that has only a link-local addressA router can have hundreds, or even thousands of interfaces that fall into these categories.
Quoted 10 lines
The rational for RFC 5837 can be found in the Introduction to that document. When a node sends an ICMP TTL Expired message, the node reports that a packet has expired on it. However, the source address of the ICMP TTL Expired message doesn't necessarily identify the interface upon which the packet arrived. So, TRACEROUTE can be relied upon to identify the nodes that a packet traverses along its delivery path. But it cannot be relied upon to identify the interfaces that a packet traversed along its deliver path.
It's not a question of the rationale; the question is why add this support to Linux now? RFC 5837 is 11 years old. Why has no one cared to add support before now? What tooling supports it? What other NOS'es support it to really make the feature meaningful? e.g., Do you know what Juniper products support RFC 5837 today?
More than likely Linux is the end node of the traceroute chain, not the transit or path nodes. With Linux, the ingress interface can lost in the layers (NIC port, vlan, bond, bridge, vrf, macvlan), and to properly support either you need to return information about the right one. Unnumbered interfaces can make that more of a challenge.
Re: rfc5837 and rfc8335
Quoted 5 lines · Ron Bonica
Folks,
Andreas reminds me that you may have the same questions regarding RFC 8335.....
Quoted 8 lines
The practice of assigning globally reachable IP addresses to infrastructure interfaces cost network operators money. Normally, they number an interface from a IPv4 /30. Currently, a /30 costs 80 USD and the price is only expected to rise. Furthermore, most IP Address Management (IPAM) systems license by the address block. The more globally reachable addresses you use, the more you pay.
They would prefer to use:
- IPv4 unnumbered interfaces
- IPv6 interfaces that have only link-local addressesRon
Thanks for the context, Ron.
That sounds reasonable to me. Andreas's patch series has also been merged by now.
Quoted 16 lines
Juniper Business Use Only
-----Original Message-----
From: Ron Bonica
Sent: Monday, March 29, 2021 10:50 AM
To: David Ahern <[email protected]>; Zachary Dodds <[email protected]>; Ishaan Gandhi <[email protected]>
Cc: Andreas Roeseler <[email protected]>; David Miller <[email protected]>; Network Development <[email protected]>; Stephen Hemminger <[email protected]>; Willem de Bruijn <[email protected]>; [email protected]
Subject: RE: rfc5837 and rfc8335David,
Juniper networks is motivated to promote RFC 5837 now, as opposed to eleven years ago, because the deployment of parallel links between routers is becoming more common
Quoted 8 lines
Large network operators frequently require more than 400 Gbps connectivity between their backbone routers. However, the largest interfaces available can only handle 400 Gbps. So, parallel links are required. Moreover, it is frequently cheaper to deploy 4 100 Gbps interfaces than a single 400 Gbps interface. So, it is not uncommon to see two routers connected by many, parallel 100 Gbps links. RFC 5837 allows a network operator to trace a packet interface to interface, as opposed to node to node.
I think that you are correct in saying that:
- LINUX is more likely to be implemented on a host than a router
- Therefore, LINUX hosts will not send RFC 5837 ICMP extensions oftenHowever, LINUX hosts are frequently used in network management stations. Therefore, it would be very useful if LINUX hosts could parse and display incoming RFC 5837 extensions, just as they display RFC 4950 ICMP extensions.
But the patch series under review adds support to generate such packets.
Quoted 56 lines
Juniper networks plans to support RFC 5837 on one platform in an upcoming release and on other platforms soon after that.
Ron
Juniper Business Use Only
-----Original Message-----
From: David Ahern <[email protected]>
Sent: Wednesday, March 24, 2021 11:19 PM
To: Ron Bonica <[email protected]>; Zachary Dodds <[email protected]>; Ishaan Gandhi <[email protected]>
Cc: Andreas Roeseler <[email protected]>; David Miller <[email protected]>; Network Development <[email protected]>; Stephen Hemminger <[email protected]>; Willem de Bruijn <[email protected]>; [email protected]
Subject: Re: rfc5837 and rfc8335[External Email. Be cautious of content]
Quoted 21 lines · Ron Bonica
Hi Folks,
The rationale for RFC 8335 can be found in Section 5.0 of that document. Currently, ICMP ECHO and ECHO RESPONSE messages can be used to determine the liveness of some interfaces. However, they cannot determine the liveness of:
* An unnumbered IPv4 interface
* An IPv6 interface that has only a link-local addressA router can have hundreds, or even thousands of interfaces that fall into these categories.
Quoted 10 lines
The rational for RFC 5837 can be found in the Introduction to that document. When a node sends an ICMP TTL Expired message, the node reports that a packet has expired on it. However, the source address of the ICMP TTL Expired message doesn't necessarily identify the interface upon which the packet arrived. So, TRACEROUTE can be relied upon to identify the nodes that a packet traverses along its delivery path. But it cannot be relied upon to identify the interfaces that a packet traversed along its deliver path.
It's not a question of the rationale; the question is why add this support to Linux now? RFC 5837 is 11 years old. Why has no one cared to add support before now? What tooling supports it? What other NOS'es support it to really make the feature meaningful? e.g., Do you know what Juniper products support RFC 5837 today?
More than likely Linux is the end node of the traceroute chain, not the transit or path nodes. With Linux, the ingress interface can lost in the layers (NIC port, vlan, bond, bridge, vrf, macvlan), and to properly support either you need to return information about the right one. Unnumbered interfaces can make that more of a challenge.
RE: rfc5837 and rfc8335
Thanks!
Juniper Business Use Only
-----Original Message-----
From: Willem de Bruijn <[email protected]>
Sent: Wednesday, March 31, 2021 10:05 AM
To: Ron Bonica <[email protected]>
Cc: David Ahern <[email protected]>; Zachary Dodds <[email protected]>; Ishaan Gandhi <[email protected]>; Andreas Roeseler <[email protected]>; David Miller <[email protected]>; Network Development <[email protected]>; Stephen Hemminger <[email protected]>; [email protected]
Subject: Re: rfc5837 and rfc8335
[External Email. Be cautious of content]
Quoted 7 lines · Ron Bonica
Folks,
Andreas reminds me that you may have the same questions regarding RFC 8335.....
The practice of assigning globally reachable IP addresses to infrastructure interfaces cost network operators money. Normally, they number an interface from a IPv4 /30. Currently, a /30 costs 80 USD and the price is only expected to rise. Furthermore, most IP Address Management (IPAM) systems license by the address block. The more globally reachable addresses you use, the more you pay.
Quoted 7 lines
They would prefer to use:
- IPv4 unnumbered interfaces
- IPv6 interfaces that have only link-local addressesRon
Thanks for the context, Ron.
That sounds reasonable to me. Andreas's patch series has also been merged by now.
Quoted 22 lines
Juniper Business Use Only
-----Original Message-----
From: Ron Bonica
Sent: Monday, March 29, 2021 10:50 AM
To: David Ahern <[email protected]>; Zachary Dodds <[email protected]>; Ishaan Gandhi <[email protected]>
Cc: Andreas Roeseler <[email protected]>; David Miller <[email protected]>; Network Development <[email protected]>; Stephen Hemminger <[email protected]>; Willem de Bruijn <[email protected]>; [email protected]
Subject: RE: rfc5837 and rfc8335David,
Juniper networks is motivated to promote RFC 5837 now, as opposed to eleven years ago, because the deployment of parallel links between routers is becoming more common
Quoted 8 lines
Large network operators frequently require more than 400 Gbps connectivity between their backbone routers. However, the largest interfaces available can only handle 400 Gbps. So, parallel links are required. Moreover, it is frequently cheaper to deploy 4 100 Gbps interfaces than a single 400 Gbps interface. So, it is not uncommon to see two routers connected by many, parallel 100 Gbps links. RFC 5837 allows a network operator to trace a packet interface to interface, as opposed to node to node.
I think that you are correct in saying that:
- LINUX is more likely to be implemented on a host than a router
- Therefore, LINUX hosts will not send RFC 5837 ICMP extensions oftenHowever, LINUX hosts are frequently used in network management stations. Therefore, it would be very useful if LINUX hosts could parse and display incoming RFC 5837 extensions, just as they display RFC 4950 ICMP extensions.
But the patch series under review adds support to generate such packets.
Quoted 61 lines
Juniper networks plans to support RFC 5837 on one platform in an upcoming release and on other platforms soon after that.
Ron
Juniper Business Use Only
-----Original Message-----
From: David Ahern <[email protected]>
Sent: Wednesday, March 24, 2021 11:19 PM
To: Ron Bonica <[email protected]>; Zachary Dodds <[email protected]>; Ishaan Gandhi <[email protected]>
Cc: Andreas Roeseler <[email protected]>; David Miller <[email protected]>; Network Development <[email protected]>; Stephen Hemminger <[email protected]>; Willem de Bruijn <[email protected]>; [email protected]
Subject: Re: rfc5837 and rfc8335[External Email. Be cautious of content]
Quoted 21 lines · Ron Bonica
Hi Folks,
The rationale for RFC 8335 can be found in Section 5.0 of that document. Currently, ICMP ECHO and ECHO RESPONSE messages can be used to determine the liveness of some interfaces. However, they cannot determine the liveness of:
* An unnumbered IPv4 interface
* An IPv6 interface that has only a link-local addressA router can have hundreds, or even thousands of interfaces that fall into these categories.
Quoted 10 lines
The rational for RFC 5837 can be found in the Introduction to that document. When a node sends an ICMP TTL Expired message, the node reports that a packet has expired on it. However, the source address of the ICMP TTL Expired message doesn't necessarily identify the interface upon which the packet arrived. So, TRACEROUTE can be relied upon to identify the nodes that a packet traverses along its delivery path. But it cannot be relied upon to identify the interfaces that a packet traversed along its deliver path.
It's not a question of the rationale; the question is why add this support to Linux now? RFC 5837 is 11 years old. Why has no one cared to add support before now? What tooling supports it? What other NOS'es support it to really make the feature meaningful? e.g., Do you know what Juniper products support RFC 5837 today?
More than likely Linux is the end node of the traceroute chain, not the transit or path nodes. With Linux, the ingress interface can lost in the layers (NIC port, vlan, bond, bridge, vrf, macvlan), and to properly support either you need to return information about the right one. Unnumbered interfaces can make that more of a challenge.
Re: rfc5837 and rfc8335
In reply to Willem de BruijnQuoted 1 line
But the patch series under review adds support to generate such packets.
Willem, yes, good point. Let me add some more context.
This quote might be misleading:
Quoted 1 line
Quoted 1 line
Therefore, LINUX hosts will not send RFC 5837 ICMP extensions often
Linux _hosts_ won’t send 5837 extensions often, but Linux is often used in routers, which may indeed send those extensions often.
(Ron previously added some great context why routers may want to send those extensions _now_ as opposed to 11 years ago.)
Juniper is adding RFC 5837 support to some of their router line right now, and some of their OS’s are based on Linux.
Contributing these changes to the upstream kernel would be valuable to Juniper for maintainability. (No re-applying the patch every time Juniper upgrades to a new kernel version.)
Furthermore, Juniper is not the only router vendor based on Linux.
OpenWrt and DD-WRT are two popular router distributions, both based on Linux. There are 16 total Linux based router-distributions mentioned on
https://en.wikipedia.org/wiki/List_of_router_and_firewall_distributions alone.
Re, some previous questions
Quoted 1 line
Quoted 1 line
What tooling supports it?
Currently, Wireshark. There are also open merge requests for traceroute in IPUtils, and TCPDump.
Quoted 1 line
Quoted 1 line
With Linux, the ingress interface can lost in the layers (NIC port, vlan, bond, bridge, vrf, macvlan), and to properly support either you need to return information about the right one.
either return the information, or?
Many thanks!
- Ishaan
Quoted 107 lines · Willem de Bruijn
Quoted 5 lines · Ron Bonica
Folks,
Andreas reminds me that you may have the same questions regarding RFC 8335.....
Quoted 8 lines
The practice of assigning globally reachable IP addresses to infrastructure interfaces cost network operators money. Normally, they number an interface from a IPv4 /30. Currently, a /30 costs 80 USD and the price is only expected to rise. Furthermore, most IP Address Management (IPAM) systems license by the address block. The more globally reachable addresses you use, the more you pay.
They would prefer to use:
- IPv4 unnumbered interfaces
- IPv6 interfaces that have only link-local addressesRon
Thanks for the context, Ron.
That sounds reasonable to me. Andreas's patch series has also been merged by now.
Quoted 16 lines
Juniper Business Use Only
-----Original Message-----
From: Ron Bonica
Sent: Monday, March 29, 2021 10:50 AM
To: David Ahern <[email protected]>; Zachary Dodds <[email protected]>; Ishaan Gandhi <[email protected]>
Cc: Andreas Roeseler <[email protected]>; David Miller <[email protected]>; Network Development <[email protected]>; Stephen Hemminger <[email protected]>; Willem de Bruijn <[email protected]>; [email protected]
Subject: RE: rfc5837 and rfc8335David,
Juniper networks is motivated to promote RFC 5837 now, as opposed to eleven years ago, because the deployment of parallel links between routers is becoming more common
Quoted 8 lines
Large network operators frequently require more than 400 Gbps connectivity between their backbone routers. However, the largest interfaces available can only handle 400 Gbps. So, parallel links are required. Moreover, it is frequently cheaper to deploy 4 100 Gbps interfaces than a single 400 Gbps interface. So, it is not uncommon to see two routers connected by many, parallel 100 Gbps links. RFC 5837 allows a network operator to trace a packet interface to interface, as opposed to node to node.
I think that you are correct in saying that:
- LINUX is more likely to be implemented on a host than a router
- Therefore, LINUX hosts will not send RFC 5837 ICMP extensions oftenHowever, LINUX hosts are frequently used in network management stations. Therefore, it would be very useful if LINUX hosts could parse and display incoming RFC 5837 extensions, just as they display RFC 4950 ICMP extensions.
But the patch series under review adds support to generate such packets.
Quoted 56 lines
Juniper networks plans to support RFC 5837 on one platform in an upcoming release and on other platforms soon after that.
Ron
Juniper Business Use Only
-----Original Message-----
From: David Ahern <[email protected]>
Sent: Wednesday, March 24, 2021 11:19 PM
To: Ron Bonica <[email protected]>; Zachary Dodds <[email protected]>; Ishaan Gandhi <[email protected]>
Cc: Andreas Roeseler <[email protected]>; David Miller <[email protected]>; Network Development <[email protected]>; Stephen Hemminger <[email protected]>; Willem de Bruijn <[email protected]>; [email protected]
Subject: Re: rfc5837 and rfc8335[External Email. Be cautious of content]
Quoted 21 lines · Ron Bonica
Hi Folks,
The rationale for RFC 8335 can be found in Section 5.0 of that document. Currently, ICMP ECHO and ECHO RESPONSE messages can be used to determine the liveness of some interfaces. However, they cannot determine the liveness of:
* An unnumbered IPv4 interface
* An IPv6 interface that has only a link-local addressA router can have hundreds, or even thousands of interfaces that fall into these categories.
Quoted 10 lines
The rational for RFC 5837 can be found in the Introduction to that document. When a node sends an ICMP TTL Expired message, the node reports that a packet has expired on it. However, the source address of the ICMP TTL Expired message doesn't necessarily identify the interface upon which the packet arrived. So, TRACEROUTE can be relied upon to identify the nodes that a packet traverses along its delivery path. But it cannot be relied upon to identify the interfaces that a packet traversed along its deliver path.
It's not a question of the rationale; the question is why add this support to Linux now? RFC 5837 is 11 years old. Why has no one cared to add support before now? What tooling supports it? What other NOS'es support it to really make the feature meaningful? e.g., Do you know what Juniper products support RFC 5837 today?
More than likely Linux is the end node of the traceroute chain, not the transit or path nodes. With Linux, the ingress interface can lost in the layers (NIC port, vlan, bond, bridge, vrf, macvlan), and to properly support either you need to return information about the right one. Unnumbered interfaces can make that more of a challenge.
RESEND Re: rfc5837 and rfc8335
Gently bumping this. Any thoughts?
Quoted 151 lines · Ishaan Gandhi
Quoted 2 lines
But the patch series under review adds support to generate such packets.
Willem, yes, good point. Let me add some more context.
This quote might be misleading:
Quoted 1 line
Quoted 1 line
Therefore, LINUX hosts will not send RFC 5837 ICMP extensions often
Linux _hosts_ won’t send 5837 extensions often, but Linux is often used in routers, which may indeed send those extensions often.
(Ron previously added some great context why routers may want to send those extensions _now_ as opposed to 11 years ago.)
Juniper is adding RFC 5837 support to some of their router line right now, and some of their OS’s are based on Linux.
Contributing these changes to the upstream kernel would be valuable to Juniper for maintainability. (No re-applying the patch every time Juniper upgrades to a new kernel version.)
Furthermore, Juniper is not the only router vendor based on Linux.
OpenWrt and DD-WRT are two popular router distributions, both based on Linux. There are 16 total Linux based router-distributions mentioned on
https://en.wikipedia.org/wiki/List_of_router_and_firewall_distributions alone.Re, some previous questions
Quoted 1 line
Quoted 1 line
What tooling supports it?
Currently, Wireshark. There are also open merge requests for traceroute in IPUtils, and TCPDump.
Quoted 1 line
Quoted 1 line
With Linux, the ingress interface can lost in the layers (NIC port, vlan, bond, bridge, vrf, macvlan), and to properly support either you need to return information about the right one.
either return the information, or?
Many thanks!
- IshaanQuoted 107 lines · Willem de Bruijn
Quoted 5 lines · Ron Bonica
Folks,
Andreas reminds me that you may have the same questions regarding RFC 8335.....
Quoted 8 lines
The practice of assigning globally reachable IP addresses to infrastructure interfaces cost network operators money. Normally, they number an interface from a IPv4 /30. Currently, a /30 costs 80 USD and the price is only expected to rise. Furthermore, most IP Address Management (IPAM) systems license by the address block. The more globally reachable addresses you use, the more you pay.
They would prefer to use:
- IPv4 unnumbered interfaces
- IPv6 interfaces that have only link-local addressesRon
Thanks for the context, Ron.
That sounds reasonable to me. Andreas's patch series has also been merged by now.
Quoted 16 lines
Juniper Business Use Only
-----Original Message-----
From: Ron Bonica
Sent: Monday, March 29, 2021 10:50 AM
To: David Ahern <[email protected]>; Zachary Dodds <[email protected]>; Ishaan Gandhi <[email protected]>
Cc: Andreas Roeseler <[email protected]>; David Miller <[email protected]>; Network Development <[email protected]>; Stephen Hemminger <[email protected]>; Willem de Bruijn <[email protected]>; [email protected]
Subject: RE: rfc5837 and rfc8335David,
Juniper networks is motivated to promote RFC 5837 now, as opposed to eleven years ago, because the deployment of parallel links between routers is becoming more common
Quoted 8 lines
Large network operators frequently require more than 400 Gbps connectivity between their backbone routers. However, the largest interfaces available can only handle 400 Gbps. So, parallel links are required. Moreover, it is frequently cheaper to deploy 4 100 Gbps interfaces than a single 400 Gbps interface. So, it is not uncommon to see two routers connected by many, parallel 100 Gbps links. RFC 5837 allows a network operator to trace a packet interface to interface, as opposed to node to node.
I think that you are correct in saying that:
- LINUX is more likely to be implemented on a host than a router
- Therefore, LINUX hosts will not send RFC 5837 ICMP extensions oftenHowever, LINUX hosts are frequently used in network management stations. Therefore, it would be very useful if LINUX hosts could parse and display incoming RFC 5837 extensions, just as they display RFC 4950 ICMP extensions.
But the patch series under review adds support to generate such packets.
Quoted 56 lines
Juniper networks plans to support RFC 5837 on one platform in an upcoming release and on other platforms soon after that.
Ron
Juniper Business Use Only
-----Original Message-----
From: David Ahern <[email protected]>
Sent: Wednesday, March 24, 2021 11:19 PM
To: Ron Bonica <[email protected]>; Zachary Dodds <[email protected]>; Ishaan Gandhi <[email protected]>
Cc: Andreas Roeseler <[email protected]>; David Miller <[email protected]>; Network Development <[email protected]>; Stephen Hemminger <[email protected]>; Willem de Bruijn <[email protected]>; [email protected]
Subject: Re: rfc5837 and rfc8335[External Email. Be cautious of content]
Quoted 21 lines · Ron Bonica
Hi Folks,
The rationale for RFC 8335 can be found in Section 5.0 of that document. Currently, ICMP ECHO and ECHO RESPONSE messages can be used to determine the liveness of some interfaces. However, they cannot determine the liveness of:
* An unnumbered IPv4 interface
* An IPv6 interface that has only a link-local addressA router can have hundreds, or even thousands of interfaces that fall into these categories.
Quoted 10 lines
The rational for RFC 5837 can be found in the Introduction to that document. When a node sends an ICMP TTL Expired message, the node reports that a packet has expired on it. However, the source address of the ICMP TTL Expired message doesn't necessarily identify the interface upon which the packet arrived. So, TRACEROUTE can be relied upon to identify the nodes that a packet traverses along its delivery path. But it cannot be relied upon to identify the interfaces that a packet traversed along its deliver path.
It's not a question of the rationale; the question is why add this support to Linux now? RFC 5837 is 11 years old. Why has no one cared to add support before now? What tooling supports it? What other NOS'es support it to really make the feature meaningful? e.g., Do you know what Juniper products support RFC 5837 today?
More than likely Linux is the end node of the traceroute chain, not the transit or path nodes. With Linux, the ingress interface can lost in the layers (NIC port, vlan, bond, bridge, vrf, macvlan), and to properly support either you need to return information about the right one. Unnumbered interfaces can make that more of a challenge.