QoS policyservice (SDK 1.1)

Document created by cdnadmin on Jan 25, 2014
Version 1Show Document
  • View in full screen mode
This document was generated from CDN thread

Created by: MARKUS RAINER on 11-12-2013 08:18:18 AM
using Java SDK 1.1.0.52

1) it seem that the only available action that is implemented on IOS router side yet is "Action.Mark". Can anybody ack that?
2) there is no way at the moment to grep statistics  from class-map or policy-map. (like provided by CLI command: "show policy-map interface...") Correct?
 
Will this change at release candidate 1.1 or before?
Will all configureable actions be available then?

Thx Markus

Subject: RE: QoS policyservice (SDK 1.1)
Replied by: Geevarghese Cheria on 12-12-2013 01:26:14 AM
Hi Markus,

1) Please refer the following url for the actions that is implemented in onePK.
   http://developer.cisco.com/onepk/capi/onep_qos_policy_ss_page.html
2) you can use VTY service set to get statistics information of QoS policy.

Thanks and Regards,
Geevarghese

Subject: RE: QoS policyservice (SDK 1.1)
Replied by: MARKUS RAINER on 12-12-2013 05:29:49 AM
Hi,
First thanks for your answer.
1) For me nothing but Action.Mark works. Your link is C API Reference, I am using Java SDK.
2) VTY service could nearly replace all features of onePK. That's not really what I want to do.
Especially in SDK 1.0 there is a class called "com.cisco.onep.policyservice.PolicyStatistics". This and some others are missing in SDK 1.1

Best regards
Markus

Subject: RE: QoS policyservice (SDK 1.1)
Replied by: Geevarghese Cheria on 13-12-2013 05:54:50 AM
Hi Markus,
   1)  A QOS policy may have the following Actions:
  • Mark packet
  • Shape
  • traffic
  • Police traffic
  • Priority queue
  • Class-based
  • queue
  • Fair queue
  • Weighted Random Early Discard (WRED)
   This should be supported by java SDK1.1

  2)  Regarding the class "com.cisco.onep.policyservice.PolicyStatistics". I will check and get back to you.

Thanks and Regards,
Geevarghese



Subject: RE: QoS policyservice (SDK 1.1)
Replied by: Joseph Clarke on 15-12-2013 12:25:19 PM
I'm looking at the 1.1 device-side code for IOS, and Geevarghese is right.  These actions are supported:

Mark -> L2COS
Mark -> DSCP
Mark -> QoS Group
Mark -> MPLS EXP
Police
Shape
Priority Queue
Class Queue
Fair Queue
WRED
WRED Profile

In terms of statistics, I believe that only works in the C API right now.  We were reviewing some enhancements there, and I believe we won't see Java support for this until the general availability release.  The workaround is to use the VTY SS in the meantime, or use JNI/JNA to bridge the C and Java APIs.  Though you may have to use the C API for all policy operations to maintain the right pointers.

Subject: RE: QoS policyservice (SDK 1.1)
Replied by: MARKUS RAINER on 16-12-2013 05:40:52 AM
Hi all,
Thanks a lot for your answer.
I also think Geevarghese is right::
"This SHOULD be supported by java SDK1.1"
I can configure all of them but none of these actions is doing any change on router. The ony exception are the Marking Actions.

Thanks Joseph for the hint in C API!

Best regards
Markus

Subject: RE: QoS policyservice (SDK 1.1)
Replied by: Joseph Clarke on 16-12-2013 08:58:26 AM
Can you provide the code you're using?  As well as the platform/IOS version?  I can test locally with the latest 1.1.0.95.

Subject: RE: QoS policyservice (SDK 1.1)
Replied by: MARKUS RAINER on 17-12-2013 05:57:42 AM
Joseph,
I am downloading 1.1.0.95 at the moment (very very slowly)
I will test it myself, if I fail I post my code later here...
Thx very much...

Attachments

    Outcomes