ietf-ccamp-wg / draft-ietf-ccamp-optical-impairment-topology-yang

7 stars 10 forks source link

Absolute path in grouping power-param #155

Closed italobusi closed 8 months ago

italobusi commented 1 year ago

The absolute path in the grouping power-param are incorrect since there is no indication of which network instance to check

However, the grouping is used in difference places and the relative paths to reach the equalization-mode in the OMS-attributes are different ...

  grouping power-param {
    description
      "optical power or PSD after the ROADM or after the out-voa";
    choice power-param {
      description
        "select the mode: channel power or power spectral density";
      case channel-power {
        when "/nw:networks/nw:network/nt:link/tet:te
            /tet:te-link-attributes/OMS-attributes
            /equalization-mode='carrier-power'";
        leaf nominal-carrier-power{
          type l0-types:power-in-dbm-or-null;
          description
            " Reference channel power. Same grouping is used for the
            OMS power after the ROADM (input of the OMS) or after the
            out-voa of each amplifier. ";
        }
      }
      case power-spectral-density{
        when "/nw:networks/nw:network/nt:link/tet:te
            /tet:te-link-attributes/OMS-attributes
            /equalization-mode='power-spectral-density'";
        leaf nominal-power-spectral-density{
          type l0-types:decimal-16-digits-or-null;
          units W/Hz ;
          description
            " Reference power spectral density after 
              the ROADM or after the out-voa.
              Typical value : 3.9 E-14, resolution 0.1nW/MHz";
        }
      }
    }
  }
italobusi commented 11 months ago

Italo/Sergio

This is our understand of where/how the powar-param choice is used at the output of the ROADM or at the output of the out-voa:

    +--ro OMS-attributes
       +--ro generalized-snr?                        l0-types:snr
       +--ro equalization-mode?                      identityref
       +--ro (power-param)?      // power-param after the ROADM
       ..................................................................
       +--ro OMS-elements!
          +--ro OMS-element* [elt-index]
             +--ro elt-index                 uint16
             ............................................................
             +--ro (element)
                +--:(amplifier)
                |  ......................................................
                |  +--ro amplifier
                |     ...................................................
                |     +--ro operational
                |        +--ro amplifier-element* []
                |           .............................................
                |           +--ro (power-param)?      // power-param after the out-voa
                |           .............................................

In the current YANG model, the equalization-mode is defined under the OMS-attributes and therefore the powar-param choices at the output of the ROADM and at the output of all out-voas within the same OMS MCG (reported as amplifiers within the OMS-element list) must be consistent

Is this correct?

EstherLerouzic commented 11 months ago

The power-param grouping used in the amplifier is not meant to have an equalization purpose: it is just a target power information for the amplifier instance (complementary to the gain target). The fact that it is reused from equalization leads to the confusion, and my suggestion would be to have two different grouping for these powers then: one for and equalization targets, one for the target powers of amplifier. (and maybe change the naming to avoid any confusion ?)

italobusi commented 10 months ago

@EstherLerouzic : is reporting the power-param optional or mandatory for optical impairments applications?

In the current YANG model it is optional: if needed, we can update the proposal in draft PR #160

Co-authored-by: sergio belotti sergio.belotti@nokia.com

EstherLerouzic commented 10 months ago

I think that power-params in amplifiers should be mandatory. Indeed if we only rely on an input power at the OMS and successive gain and loss along the elements, we may have a larger error at the end of propagation than having the power at each amplifiers (error is not propagated).