SD-WAN

 View Only
  • 1.  HP 5900 switch - flow byte count

    Posted Jul 30, 2014 12:21 PM

    Hi,

    I'm using a 5900 switch with VAN 2.2.5 controller.

     

    Switch firmware version is as follows:
    HP Comware Software, Version 7.1.045, Release 2310

     

    My application is pushing flows to the switch, via the controller.

    While retrieving datapath flows via REST API, flow byte_count value is "n/a".

    Flow was not created witn "no_byte_counts" flag on - so I was expecting to see the flow statistics.

    Also, when I display the flow table from the switch CLI, the byte count values are "--".

    I'm able to validate from the CLI output that the no_bytes_count flag is not set.

     

    Any advice?

     



  • 2.  RE: HP 5900 switch - flow byte count

    Posted Aug 19, 2014 12:07 PM

    Hello kobisamoray,

     

    Apologies for the delay. We are looking into the query. However  we hope you are setting the flags ON/OFF as per SDN Programming guide [page 27-28 , An example: creating a FlowMod message]

     

    private static final Set<FlowModFlag> FLAGS = EnumSet.of(FlowModFlag.SEND_FLOW_REM, FlowModFlag.CHECK_OVERLAP, FlowModFlag.NO_BYTE_COUNTS );

     

    Could you please share some code/output of Datapath/Flowtables?

     

    Thanks,

    HP SDN Team



  • 3.  RE: HP 5900 switch - flow byte count

    Posted Sep 15, 2014 04:01 AM

    Hi 

     

    My name is Asaf and I'm replacing Koby on this. We sent you some weeks ago a json cpature of the relevant flow as requested. Did you come to any conclusion regarding this ?

     

    regards 

     

    Asaf

     

    {
      "version": "1.3.0",
      "flows": [
        {
          "table_id": 0,
          "duration_sec": 6626,
          "duration_nsec": "4294967295",
          "priority": 60000,
          "idle_timeout": 0,
          "hard_timeout": 0,
          "cookie": "0xfffb0000faded000",
          "packet_count": "28",
          "byte_count": "n/a",
          "match": [
            {
              "eth_type": "bddp"
            }
          ],
          "flow_mod_flags": [],
          "instructions": [
            {
              "apply_actions": [
                {
                  "output": 4294967293
                }
              ]
            }
          ]
        },
        {
          "table_id": 0,
          "duration_sec": 1575195,
          "duration_nsec": "4294967295",
          "priority": 34,
          "idle_timeout": 0,
          "hard_timeout": 0,
          "cookie": "0xed23",
          "packet_count": "58",
          "byte_count": "n/a",
          "match": [
            {
              "in_port": 2
            },
            {
              "eth_type": "ipv4"
            },
            {
              "ip_proto": "tcp"
            },
            {
              "ipv4_dst": "101.2.1.202",
              "mask": "255.255.255.255"
            }
          ],
          "flow_mod_flags": [],
          "instructions": [
            {
              "apply_actions": [
                {
                  "output": 4294967290
                }
              ]
            }
          ]
        },
        {
          "table_id": 0,
          "duration_sec": 1575195,
          "duration_nsec": "4294967295",
          "priority": 33,
          "idle_timeout": 0,
          "hard_timeout": 0,
          "cookie": "0x6be1",
          "packet_count": "21",
          "byte_count": "n/a",
          "match": [
            {
              "in_port": 2
            },
            {
              "eth_type": "ipv4"
            },
            {
              "ip_proto": "udp"
            },
            {
              "ipv4_dst": "101.2.1.202",
              "mask": "255.255.255.255"
            }
          ],
          "flow_mod_flags": [],
          "instructions": [
            {
              "apply_actions": [
                {
                  "output": 4294967290
                }
              ]
            }
          ]
        },
        {
          "table_id": 0,
          "duration_sec": 1575195,
          "duration_nsec": "4294967295",
          "priority": 32,
          "idle_timeout": 0,
          "hard_timeout": 0,
          "cookie": "0xd05d",
          "packet_count": "0",
          "byte_count": "n/a",
          "match": [
            {
              "in_port": 2
            },
            {
              "eth_type": "ipv4"
            },
            {
              "ip_proto": "icmp"
            },
            {
              "ipv4_dst": "101.2.1.202",
              "mask": "255.255.255.255"
            }
          ],
          "flow_mod_flags": [],
          "instructions": [
            {
              "apply_actions": [
                {
                  "output": 4294967290
                }
              ]
            }
          ]
        },
        {
          "table_id": 0,
          "duration_sec": 1575195,
          "duration_nsec": "4294967295",
          "priority": 31,
          "idle_timeout": 0,
          "hard_timeout": 0,
          "cookie": "0x9a48",
          "packet_count": "0",
          "byte_count": "n/a",
          "match": [
            {
              "in_port": 2
            },
            {
              "eth_type": "ipv4"
            },
            {
              "ipv4_dst": "101.2.1.202",
              "mask": "255.255.255.255"
            }
          ],
          "flow_mod_flags": [],
          "instructions": [
            {
              "apply_actions": [
                {
                  "output": 4294967290
                }
              ]
            }
          ]
        },
        {
          "table_id": 0,
          "duration_sec": 1575195,
          "duration_nsec": "4294967295",
          "priority": 34,
          "idle_timeout": 0,
          "hard_timeout": 0,
          "cookie": "0x3afa",
          "packet_count": "808604",
          "byte_count": "n/a",
          "match": [
            {
              "in_port": 1
            },
            {
              "eth_type": "ipv4"
            },
            {
              "ip_proto": "tcp"
           },
            {
              "ipv4_dst": "101.2.1.202",
              "mask": "255.255.255.255"
            }
          ],
          "flow_mod_flags": [],
          "instructions": [
            {
              "apply_actions": [
                {
                  "output": 4294967290
                }
              ]
            }
          ]
        },
        {
          "table_id": 0,
          "duration_sec": 1575195,
          "duration_nsec": "4294967295",
          "priority": 33,
          "idle_timeout": 0,
          "hard_timeout": 0,
          "cookie": "0x9f6",
          "packet_count": "85036",
          "byte_count": "n/a",
          "match": [
            {
              "in_port": 1
            },
            {
              "eth_type": "ipv4"
            },
            {
              "ip_proto": "udp"
            },
            {
              "ipv4_dst": "101.2.1.202",
              "mask": "255.255.255.255"
            }
          ],
          "flow_mod_flags": [],
          "instructions": [
            {
              "apply_actions": [
                {
                  "output": 4294967290
                }
              ]
            }
          ]
        },
        {
          "table_id": 0,
          "duration_sec": 1575195,
          "duration_nsec": "4294967295",
          "priority": 32,
          "idle_timeout": 0,
          "hard_timeout": 0,
          "cookie": "0x2608",
          "packet_count": "437673",
          "byte_count": "n/a",
          "match": [
            {
              "in_port": 1
            },
            {
              "eth_type": "ipv4"
            },
            {
              "ip_proto": "icmp"
            },
            {
              "ipv4_dst": "101.2.1.202",
              "mask": "255.255.255.255"
            }
          ],
          "flow_mod_flags": [],
          "instructions": [
            {
              "apply_actions": [
                {
                  "output": 4294967290
                }
              ]
            }
          ]
        },
        {
          "table_id": 0,
          "duration_sec": 1575195,
          "duration_nsec": "4294967295",
          "priority": 31,
          "idle_timeout": 0,
          "hard_timeout": 0,
          "cookie": "0xa71b",
          "packet_count": "0",
          "byte_count": "n/a",
          "match": [
            {
              "in_port": 1
            },
            {
              "eth_type": "ipv4"
            },
            {
              "ipv4_dst": "101.2.1.202",
              "mask": "255.255.255.255"
            }
          ],
          "flow_mod_flags": [],
          "instructions": [
            {
              "apply_actions": [
                {
                  "output": 4294967290
                }
              ]
            }
          ]
        },
        {
          "table_id": 0,
          "duration_sec": 6626,
          "duration_nsec": "4294967295",
          "priority": 0,
          "idle_timeout": 0,
          "hard_timeout": 0,
          "cookie": "0xffff000000000000",
          "packet_count": "618123365",
          "byte_count": "n/a",
          "match": [],
          "flow_mod_flags": [
            "send_flow_rem"
          ],
          "instructions": [
            {
              "apply_actions": [
                {
                  "output": 4294967290
                }
              ]
            }
          ]
        }
      ]
    }

     

     



  • 4.  RE: HP 5900 switch - flow byte count

    Posted Sep 15, 2014 04:14 AM

    Hi 

     

    some additional info : We don’t set the FlowModFlag.NO_BYTE_COUNTS  flag. That's why we do expect to see byte count on the flow.

     

    Asaf

     

     



  • 5.  RE: HP 5900 switch - flow byte count

    Posted Sep 15, 2014 04:26 AM

    Hi Asaf

     

    Currently the 5900 supports either byte_count or packet_count but not both at the same time.

     

    So if you do a flow mod with ONLY no_byte_count you will get packet count

    If you do a flow mode with no_packet_count you will oget byte_count

    If you do a flow_mod with both no_packet_count and no_byte_count you will get no counts :).

     

    Kind Regards

    Gerhard



  • 6.  RE: HP 5900 switch - flow byte count

    Posted Sep 15, 2014 05:17 PM

    Hi Gerhard

     

    Thank you for the info. Do you happen to know if there's a plan to support both packet count and byte count and of so when ?

     

    Regards

     

    Asaf



  • 7.  RE: HP 5900 switch - flow byte count

    Posted Sep 16, 2014 04:32 AM

    Hi Asaf

     

    Sorry I do not know either of the answers. My suggestion is to get in contact with your HP account representative and get the request to them, they should have channels through which they can persue this request.

     

    Kind Regards

    Gerhard

    HP SDN Team



  • 8.  RE: HP 5900 switch - flow byte count

    Posted Oct 28, 2014 02:45 AM

    Hello Asaf,

     

    Doing a follow up to check if you need any further assistance with respect to the query posted.
    Please do let us know  if your problem is solved.

     

    If you have more questions on the same topic please do reply on the same thread or open a new post if new topic.

     

    Thanks,
    HP SDN Team