Anybody knows how vpp classify table chaining works?


Yang, Yi Y
 

Hi, folks

 

I need to match two flows, ICMP and TCP, by vpp classify tables and sessions, here are my classify tables and classify sessions, I want to know in what case the packet will go to next table and in what case the packet will go to miss_next in table 0 and table 1, respectively? Thank you in advance.

 

{

    "vpp-classifier-state": {

        "classify-table": [

            {

                "name": "table1",

                "classifier-node": "l2-input-classify",

                "mask": "00:00:00:00:00:00:00:00:00:00:00:00:ff:ff:00:00:00:00:00:00:00:00:00:ff:00:00:ff:ff:ff:ff:ff:ff:ff:ff:00:00:ff:ff:00:00:00:00:00:00:00:00:00:00",

                "active_sessions": 1,

                "miss_next": "deny",

                "nbuckets": 2,

                "classify-session": [

                    {

                        "match": "00:00:00:00:00:00:00:00:00:00:00:00:08:00:00:00:00:00:00:00:00:00:00:06:00:00:c0:a8:02:00:c0:a8:02:00:00:00:00:50:00:00:00:00:00:00:00:00:00:00",

                        "hit_next": "nsh-classifier",

                        "opaque_index": “47168”,

                        "advance": 0

                    }

                ],

                "skip_n_vectors": 0

            },

            {

                "name": "table0",

                "next_table": "table1",

                "classifier-node": "l2-input-classify",

                "mask": "00:00:00:00:00:00:00:00:00:00:00:00:ff:ff:00:00:00:00:00:00:00:00:00:ff:00:00:ff:ff:ff:ff:ff:ff:ff:ff:00:00:00:00:00:00:00:00:00:00:00:00:00:00",

                "active_sessions": 1,

                "miss_next": "deny",

                "nbuckets": 2,

                "classify-session": [

                    {

                        "match": "00:00:00:00:00:00:00:00:00:00:00:00:08:00:00:00:00:00:00:00:00:00:00:01:00:00:c0:a8:02:00:c0:a8:02:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00",

                        "hit_next": "nsh-classifier",

                        "opaque_index": “47168”,

                        "advance": 0

                    }

                ],

                "skip_n_vectors": 0

            }

        ]

    }

}