I dont know of any immediate plans to implement it.

Brady


On 15/11/16 12:07, Ahmed Medhat wrote:
Ok Thanks Brady,

and regarding the implementation of service-statistics, will it be in the next release or still not in your near Future plans ?

Best regards,
Ahmed

On Tue, Nov 15, 2016 at 11:57 AM, Brady Allen Johnson <[email protected] <mailto:[email protected]>> wrote:


    There is a way that's not quite as elegant, but that will
    definitely work. You can look at the OpenFlow statistics for each RSP.

    In OPNFV with Netvirt, you can do this by looking at the
    classifier flow:

        cookie=0x1110010001230255, duration=84892.936s, table=11,
        n_packets=0, n_bytes=0, tcp,reg0=0x1,tp_src=2000,tp_dst=80
        actions=move:NXM_NX_TUN_ID[0..31]->NXM_NX_NSH_C2[],
        push_nsh,load:0x1->NXM_NX_NSH_MDTYPE[],load:0x3->NXM_NX_NSH_NP[],
        load:0xc0a80012->NXM_NX_NSH_C1[],load:0x7b->NXM_NX_NSP[0..23],
        load:0xff->NXM_NX_NSI[],load:0xc0a80012->NXM_NX_TUN_IPV4_DST[],
        load:0x7b->NXM_NX_TUN_ID[0..31],output:9


    Or look at the SFC NextHop flows:
    (Notice the RSP ID: nsp=123)

        cookie=0x14, duration=304.694s, table=152, n_packets=6,
        n_bytes=444, priority=550,nsi=255,nsp=123
        actions=load:0xc00000a->NXM_NX_TUN_IPV4_DST[],goto_table:158


    Notice that if you have multiple SFs on the chain (as indicated by
    multiple nsi matches for the same nsp), you'll need to add all the
    counters for each SF on the RSP.

    Regards,

    Brady


    On 15/11/16 11:34, Ahmed Medhat wrote:
    Thanks Brady for reply.

    So there is no any other way to know how much traffic passed in
    each path ?

    Best regards,
    Ahmed

    On Tue, Nov 15, 2016 at 11:26 AM, Brady Allen Johnson
    <[email protected]
    <mailto:[email protected]>> wrote:

        Ahmed,

        What you have found is a YANG model in SFC:

        
https://github.com/opendaylight/sfc/blob/stable/beryllium/sfc-model/src/main/yang/service-statistics.yang
        
<https://github.com/opendaylight/sfc/blob/stable/beryllium/sfc-model/src/main/yang/service-statistics.yang>

        The model has been defined, but it hasnt been implemented, so
        I dont believe it will be possible to retrieve any related
        statistics.

        Regards,

        Brady


        On 14/11/16 14:47, Ahmed Medhat wrote:
        Hi All,

        I have found in SFC Beryllium release in the SFC Model that
        I can get statistics for each RSP (such as
        bytes-in,bytes-out, packets-in, packets-out).

        I would like to know how to get such info using REST API ?
        and is it working in Berylium release ?

        Best regards,
        Ahmed


        _______________________________________________
        sfc-dev mailing list
        [email protected]
        <mailto:[email protected]>
        https://lists.opendaylight.org/mailman/listinfo/sfc-dev
        <https://lists.opendaylight.org/mailman/listinfo/sfc-dev>

_______________________________________________
sfc-dev mailing list
[email protected]
https://lists.opendaylight.org/mailman/listinfo/sfc-dev

Reply via email to