Uploaded image for project: 'VOLTHA'
  1. VOLTHA
  2. VOL-1401

Add Support in ONOS Apps for supporting adding Tech Profile Reference to the Metadata and support Write of Metadata field in OF Message- Remove use of Table ID for Tech Profile Reference

    XMLWordPrintable

    Details

      Description

      Use the Lower 2 Bytes of the Upper 4 Bytes of the Metadata for Technology Profile ID
      Note: the Meter Reference must appear in all Flow Tables.

      Example Usage:

      Assuming;
      Ingress Packet at OLT NNI (In Port = 65536), STAG = 4, CTAG = 2, Match on Tags 4, 2 POP outer Tag(4), modify Inner Tag to be 0(Priority Tagged; 2->0); Apply Technology Profile Reference = 1, and Downstream Meter Reference = 2, Egress Port =30736
      Downstream Metadata to write : CTAG = 2, TPID = 1, Egress Port = 30736; 0x0002000100007810 (02/01/30736)

      Ingress Packet at ONU UNI (In Port = 30736), Priority Tagged, QTAG = 0, Match on Tag 0, Change Outer Tag to be 2 (CTAG; 0->2), PUSH STAG 4; Apply Technology Profile Reference = 1, and Upstream Meter Reference = 1, Egress Port =65536
      Upstream Metadata to write : STAG = 4, TPID = 1, Egress Port = 65536; 0x0004000100010000 (04/01/65536)

      Metadata 8 bytes:
      Most Significant 2 Bytes = Inner VLAN
      Next 2 Bytes = Tech Profile ID(TPID)
      Least Significant 4 Bytes = Port ID

      In the Downstream Direction Table 0 needs to have metadata to indicate the Inner VLAN ID + TPID + Egress UNI PORT
      Table 1 need to have metadata to indicate only the TPID

      In Upstream Direction Table 0 needs to have metadata to indicate Outer VLAN ID + TPID + Egress NNI Port
      Table 1 need to have metadata to indicate only the TPID

      Downstream Flow Example:
      -------------------------

      (OLT Flow) id=ac0000d0fc7486, state=ADDED, bytes=0, packets=0, duration=4, liveType=UNKNOWN, priority=1000, tableId=0, appId=org.opencord.olt, payLoad=null, selector=[IN_PORT:65536, VLAN_VID:4], treatment=DefaultTrafficTreatment

      {immediate=[VLAN_POP], deferred=[], write metadata=METADATA:02/01/30736}

      , transition=TABLE:1, meter=[METER:2], cleared=false, StatTrigger=null,

      (ONT Flow) id=ac00001801d6d1, state=ADDED, bytes=0, packets=0, duration=4, liveType=UNKNOWN, priority=1000, tableId=1, appId=org.opencord.olt, payLoad=null, selector=[IN_PORT:65536, VLAN_VID:2], treatment=DefaultTrafficTreatment

      {immediate=[VLAN_ID:0, OUTPUT:30736], write metadata=METADATA:0/01/0, transition=None, meter=[METER:2], cleared=false, StatTrigger=null}

      Upstream Flow Example:
      -------------------------

      (ONT Flow) id=ac000000f780f6, state=ADDED, bytes=0, packets=0, duration=4, liveType=UNKNOWN, priority=1000, tableId=0, appId=org.opencord.olt, payLoad=null, selector=[IN_PORT:30736, VLAN_VID:0], treatment=DefaultTrafficTreatment

      {immediate=[VLAN_ID:2], deferred=[], write metadata=METADATA:04/01/65536, transition=TABLE:1, meter=[METER:1], cleared=false, StatTrigger=null}

      (OLT Flow) id=ac0000c9fd17bf, state=ADDED, bytes=0, packets=0, duration=4, liveType=UNKNOWN, priority=1000, tableId=1, appId=org.opencord.olt, payLoad=null, selector=[IN_PORT: 30736 , VLAN_VID:2], treatment=DefaultTrafficTreatment

      {immediate=[VLAN_PUSH:vlan, VLAN_ID:4, OUTPUT: 65536 ], write metadata=METADATA:0/01/0, transition=None, meter=[METER:1], cleared=false, StatTrigger=null}

        Attachments

        1. ATT_Use_Case
          6 kB
        2. ATT_Use_Case_With_Default_Bp
          6 kB
        3. DT_Use_Case
          6 kB
        4. Without_Bandwidth_Profile
          4 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            abakagamze Gamze Abaka
            Reporter:
            shaunmissett Shaun Missett
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes