Re: [netmod] Mirja Kühlewind's Discuss on draft-ietf-netmod-acl-model-19: (with DISCUSS)

2018-09-24 Thread Mahesh Jethanandani


> On Sep 21, 2018, at 6:47 AM, Mirja Kühlewind  wrote:
> 
> Mirja Kühlewind has entered the following ballot position for
> draft-ietf-netmod-acl-model-19: Discuss
> 
> When responding, please keep the subject line intact and reply to all
> email addresses included in the To and CC lines. (Feel free to cut this
> introductory paragraph, however.)
> 
> 
> Please refer to https://www.ietf.org/iesg/statement/discuss-criteria.html
> for more information about IESG DISCUSS and COMMENT positions.
> 
> 
> The document, along with other ballot positions, can be found here:
> https://datatracker.ietf.org/doc/draft-ietf-netmod-acl-model/
> 
> 
> 
> --
> DISCUSS:
> --
> 
> 1) The tcp options element is type uint32, however, the option field in the 
> TCP
> header can be up to 40 bytes.

You are right that the options field can be up to 40 bytes long.

To the WG - We have two options in front of us. Take the field out completely 
or change the type to binary, and add a ‘length’ restriction of 40. Unless 
there is a objection, we will go with the latter option.

> 
> 2) Why are only TCP and UDP supported? What's about SCTP and DCCP?

There has been no requirement to support either of those protocols. Support for 
those protocols can be added as augmentations to the base model in the future 
if such a need arises.

> 
> 3) The icmp rest-of-header can also be larger than 4 bytes but the type is
> uint32 again.

You are right that the rest-of-header can be more than 4 bytes, but in reality 
we have not had a requirement to support more than 4 bytes. 

To the WG - We will give it the same treatment as above - two options. Take it 
out completely, or change this to binary also. The only difference is that 
there does not seem to be a length restriction on the size of the field, so the 
field will be left unbounded. Unless there is a objection, we will go with the 
conversion to binary option.

Cheers.

> 
> 
> 
> 

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


Re: [netmod] New Version Notification for draft-kwatsen-netmod-artwork-folding-07.txt

2018-09-24 Thread Kent Watsen


Hi Tom,

> I would like a paragraph in this I-D to the effect that editors should
> take care of this and that this phenomenon is nothing to do with the
> technique described here, a sort of non-Applicability statement so that
> we do not, in future, get too long lines as
>
>  /* optical interface func needs to expand for Fiber Channel,\
> \ SONET and SDH */
>
> instead of turning them into
>
>  /* optical interface func needs to expand
> for Fiber Channel, SONET and SDH */


Section 4.2 addresses this.  In particular, the last line says:

  As such, it is RECOMMENDED that authors do as much as possible within
  the selected format to avoid long lines.

Good enough?


Kent // contributor


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


Re: [netmod] perfect extraction, tabs, and long lines - oh my

2018-09-24 Thread Ladislav Lhotka
Hi,

it is quite funny: we are using XML in an area that it wasn't really
designed for - representation of hierarchical data - but, on the other
hand, we *don't* use XML where it could effectively help us avoid
awkward formatting and extraction problems such as those discussed in
this thread.

Since the beginning, I've been writing YANG source in the YIN XML
notation (and most people find it weird). However, when one uses a
schema-aware editor such as nxml mode of emacs, writing YIN is really a
pleasant experience:

- no need to remember YANG syntax, all statements are autocompleted in a
  context-sensitive way

- no need to care about the prescribed order of substatements (for the
  pyang --ietf check)

- (mostly) no need to care about long lines and whitespace.

A schema-aware editor takes care about the first item and XSLT scripts
about the rest. All the tools are available in my GitHub skeleton project

https://github.com/llhotka/YANG-I-D

And as for extracting YANG modules from I-D text: given that I-D
submission format is XML (xml2rfc), the most natural way for including
YANG modules in an I-D would be to use YIN directly instead of
. Both formatting and extracting the module would then be
absolutely painless - it is a different XML namespace, so tools should
have no problems with it.

I suspect I won't attract many supporters but I couldn't help myself. It
bothers me that we have all the tools and technologies available but -
because the general opinion is that they are hard to use - we instead
struggle with brittle and tricky technicalities like those below. Isn't
it much harder after all?

Lada

Kent Watsen  writes:

> [new subject line]
>
> It is one thing for an editor to use tabs during the creation of text,
> and another to publish text with an expectation that consumers will
> render the tabs the same way.  Either the source editor converts tabs
> to spaces, which is interoperable today, or keep the tabs while
> publishing metadata in the text, using some TBD standard, enabling
> consumers to use the same tab stops.  
>
> If there were a standard enabling the publishing of text including
> tabs, it should work for all artwork, not just artwork that has been
> folded.  This is similar to the discussion we had before about having
> begin/end markers enabling perfect extractions, in that it is also
> something that pertains to all artwork, not just artwork that has 
> been folded.  
>
> Thus, there are a total of three problems:
>   P1: perfect extraction
>   P2: tabs
>   P3: long lines
>
> Assuming all thing were solved problems, and assuming that we always
> want perfect extraction, the possible combinations for the occurrence
> of the other two problems are:
>   - no tabs or long lines
>   - tabs, but no long lines
>   - long lines, but no tabs
>   - tabs and long lines
>
> How are they ordered?  Clearly supporting perfect extractions has 
> to be the outermost thing, but what about the other two?   Does it
> matter?
>
> Thinking about solutions:
>
>  - the solution for long-lines is to use a header (not a footer)
>because it's believed important to prime readers *before* they
>read the text.
>
>  - the solution for perfect-extraction could be either:
>  - use both a header-and-footer marker (low tech)
>  - or use either a header or a footer that encodes
>something like a "num lines" value into the 
>marker.  (note: footer-only okay since the marker
>is for programmatic processors, not the readers)
>
>  - the solution for tabs could be to use either a header
>or a footer that encodes the tab- stop metadata. (note:
>footer-only okay since the marker is for programmatic
>processors, not the readers)
>
>
> If tabs were to be supported by the folding solution (note: it
> doesn't make sense to talk about "folds being supporting by the
> tabbing solution"), then either:
>
>   a) tabs are handled *before* folding, and the folding-solution 
>  is aware of the tab-solution (i.e., it is able to process 
>  the metadata).
>
>   - everybody nods ;)
>
>   b) the folding-solution is really a folding+tab solution, that is,
>  it has a built-in way of handling tabs (i.e., encoding tab stop
>  metadata) independent of how tabs are handled for text that has
>  not been folded.
>
>   - this may be technically possible, but we should avoid having
> two solutions to solve the tab problem.  We would be better
> off solving the tab-problem directly and then use (a).
>
>   c) the folding-solution folds using the source tab stops, but does
>  not itself encode metadata about the tab stops, assuming that
>  there is a "promise" that the encoding of the metadata will
>  occur in a wrapper layer around it.
>
>   - this feels icky, but it seems viable and, would possible
> allow us to proceed with this draft without having to solve
> the tabbing problem now.
>
>
> Options:
>
>   1) RFC