Re: [netmod] Question regarding RFC 8344

2019-07-19 Thread Rob Wilton (rwilton)
Hi,

draft-ietf-netmod-intf-ext-yang-07, in WGLC, defines just such an MTU config 
item (called l2-mtu).

This is currently defined as a uint16, but perhaps this could/should be defined 
as uint32 instead.

Thanks,
Rob


-Original Message-
From: Vladimir Vassilev  
Sent: 15 July 2019 00:07
To: Peter Schneider ; netmod@ietf.org; 
draft-ietf-netmod-intf-ext-y...@ietf.org
Subject: Re: [netmod] Question regarding RFC 8344

On 7/11/19 7:04 PM, Peter Schneider wrote:
> Hi,
>
> I stumbled on an incompatibility between the IP Management YANG Module 
> and the real world:
> In the 'container ipv4', the leaf 'mtu' is declared as uint16 in the 
> range 68..max, which is effective the range 68..65535, as noted in rfc
> 7950 <https://tools.ietf.org/html/rfc7950#section-9.2> .
> On the other side, the default MTU size of the loopback interface in 
> Linux is 65536 since several years.

I don't think there is a problem with RFC 8344 since the ipv4 protocol MTU can 
not exceed 65535 bytes (RFC 791). The maximum payload supported by an interface 
which is the case with the default value of the lo interface MTU on your Linux 
distribution (seems this can be configured to up to 2147483647 octets at least 
on mine) has to be greater then the MTUs of all protocols (ipv4,ipv6 etc.) 
supported on that interface but they do not need to be equal. It is indeed 
recommended that the maximum "length of the data field of a packet" is used as 
defined in RFC 894 e.g. 1500 for ethernet but you can choose or be constrained 
(like in this case) to not do so.

Currently there is no IETF RFC module that has data definition for control of 
the interface MTU used as an upper limit for all protocol MTUs
___
netmod mailing list
netmod@ietf.org
https://www.ietf.org/mailman/listinfo/netmod


Re: [netmod] Question regarding RFC 8344

2019-07-14 Thread Vladimir Vassilev

On 7/11/19 7:04 PM, Peter Schneider wrote:

Hi,

I stumbled on an incompatibility between the IP Management YANG Module 
and the real world:
In the 'container ipv4', the leaf 'mtu' is declared as uint16 in the 
range 68..max, which is effective the range 68..65535, as noted in rfc 
7950  .
On the other side, the default MTU size of the loopback interface in 
Linux is 65536 since several years.


I don't think there is a problem with RFC 8344 since the ipv4 protocol 
MTU can not exceed 65535 bytes (RFC 791). The maximum payload supported 
by an interface which is the case with the default value of the lo 
interface MTU on your Linux distribution (seems this can be configured 
to up to 2147483647 octets at least on mine) has to be greater then the 
MTUs of all protocols (ipv4,ipv6 etc.) supported on that interface but 
they do not need to be equal. It is indeed recommended that the maximum 
"length of the data field of a packet" is used as defined in RFC 894 
e.g. 1500 for ethernet but you can choose or be constrained (like in 
this case) to not do so.


Currently there is no IETF RFC module that has data definition for 
control of the interface MTU used as an upper limit for all protocol MTUs.


FYI there is a /interfaces/interface/l2-mtu leaf proposed in 
draft-ietf-netmod-intf-ext-yang-07 where an uint16 type should probably 
be changed to uint32.


IMO  "/interfaces/interface/mtu" leaf is needed that actually 
corresponds to the maximum length of the data field of a packet and 
already referred to in popular software like Linux as "interface MTU" 
(there is no standard this is based on just running software as far as I 
am aware) should be added in addition to the l2-mtu leaf. Then in your 
case this leaf would be configured to 65536 for the lo interface while 
the /interfaces/interface/ipv4/mtu can be less then that.


/ Vladimir

Depending on the used netconf client, the client either reports 
(correctly) an error when getting / configuring the loopback 
interface, or silently reduces /raises the shown resp. configured 
value for the mtu.


Are there any statements available on this issue?

Kind Regards,

Peter Schneider
--
Email Signature of href="mailto:peter.schnei...@kontron.com;>peter.schnei...@kontron.com 
*Peter Schneider*

Software Engineer R
*Kontron*
Heinrich-Barth-Strasse 1-1a | 66115 Saarbrücken | Germany
P: +49 681 95916 206
_peter.schneider@kontron.com_ 

Website  | Blog  | 
Twitter  | LinkedIn 
 | YouTube 
 | Facebook 



*Kontron Europe GmbH*
Die gesetzlichen Pflichtangaben finden Sie hier 
.
Please find our mandatory legal statements hier 
.
Mit dem Öffnen dieses E-Mails stimmen Sie Kontrons Richtlinien zur 
elektronischen Kommunikation 
 zu.
By opening this email you are agreeing to Kontron's Electronic 
Communications Policy 



___
netmod mailing list
netmod@ietf.org
https://www.ietf.org/mailman/listinfo/netmod


___
netmod mailing list
netmod@ietf.org
https://www.ietf.org/mailman/listinfo/netmod


[netmod] Question regarding RFC 8344

2019-07-14 Thread Peter Schneider
Hi,

I stumbled on an incompatibility between the IP Management YANG Module and the 
real world:
In the 'container ipv4', the leaf 'mtu' is declared as uint16 in the range 
68..max, which is effective the range 68..65535, as noted in rfc 
7950 .
On the other side, the default MTU size of the loopback interface in Linux is 
65536 since several years.
Depending on the used netconf client, the client either reports (correctly) an 
error when getting / configuring the loopback interface, or silently reduces 
/raises the shown resp. configured value for the mtu.

Are there any statements available on this issue?

Kind Regards,

Peter Schneider
--
Peter Schneider
Software Engineer R
Kontron
Heinrich-Barth-Strasse 1-1a | 66115 Saarbrücken | Germany
P: +49 681 95916 206
peter.schnei...@kontron.com

Website | Blog | 
Twitter | 
LinkedIn | 
YouTube | 
Facebook

Kontron Europe GmbH
Die gesetzlichen Pflichtangaben finden Sie 
hier.
Please find our mandatory legal statements 
hier.
Mit dem Öffnen dieses E-Mails stimmen Sie Kontrons Richtlinien zur 
elektronischen 
Kommunikation zu.
By opening this email you are agreeing to Kontron's Electronic Communications 
Policy
___
netmod mailing list
netmod@ietf.org
https://www.ietf.org/mailman/listinfo/netmod