Adding flow with IP_DSCP match field

  • 2 Replies
  • 663 Views
*

jasuade

  • Newbie
  • *
  • 2
    • View Profile
Adding flow with IP_DSCP match field
« on: April 23, 2018, 08:59:07 PM »
Hello everyone,

I am trying to make a set-up to perform DSCP with Zodiac and a couple of Rpys.
Currently, I have the Zodiac connected to one Rpi with RYU controller (OF v1.3) and another Rpi and my PC connected to ports 1 and 2.
I am using a REST client to add a flow with match field "ip_dscp" as follows:
POST to http://IP:PORT/stats/flowentry/add
{
    "dpid": 123917682138619,
    "cookie": 0,
    "cookie_mask": 0,
    "table_id": 1,
    "idle_timeout": 300,
    "hard_timeout": 300,
    "priority": 1,
    "flags": 1,
    "match":
     {
       "ip_dscp": "12",
       "in_port": "1"
     },
    "actions":[
        {
            "type":"OUTPUT",
            "port": 2
        }
    ]
 }

The controller answers me with 200 OK, but when I check the flows in the Zodiac I see:
Flow 4
 Match:
  In Port: 1
 Attributes:
  Table ID: 1                              Cookie:0x0
  Priority: 1                                Duration: 3 secs
  Hard Timeout: 300 secs       Idle Timeout: 300 secs
  Byte Count: 0                         Packet Count: 0
  Last Match: 00:00:03
 Instructions:
  Apply Actions:
   Output Port: 2

Without any dscp match field, how this happens? I am doing something wrong?

regards,
« Last Edit: April 24, 2018, 08:24:40 PM by jasuade »

*

Paul Zanna

  • Moderator
  • Sr. Member
  • *****
  • 370
    • View Profile
    • Northbound Networks
Re: Adding flow with IP_DSP match field
« Reply #1 on: April 24, 2018, 01:21:15 PM »
Hi,

The Zodiac FX doesn't currently display the DSCP value in the flow list but it is matching it in the flow table, I'll add it to the next update for you.

Regards,
Paul

*

jasuade

  • Newbie
  • *
  • 2
    • View Profile
Re: Adding flow with IP_DSP match field
« Reply #2 on: April 24, 2018, 08:24:18 PM »
Hi Paul,

Thanks for the quick response and for the update.
I'll make some testing to check the matching.

regards,