ASR9K: bandwidth and bandwidth remaining cannot be used together. How to solve the problem to grant a quota and equally assign the remaining quota?

Hi everyone
The problem should be trivial. We want to grant a quota to specific classes and use equally the remaining quota of available bandwidth to all the requesting classes. Let's clarify with an example:
Class 7 ==> priority queue, level 1 with police 20%
Class 5 ==> priority queue, level 2 with police 40%
Class 6 ==> CIR 12%
Class 3 ==> CIR 11%
Class 2 ==> CIR 8%
Class 1 ==> CIR 5%
Class 0 ==> CIR 4%
To simplify let's suppose that there is no traffic on class 7 and 5 and that all remaining classes are generating traffic at a rate of 300Mbps each. Outgoing interface is 1G so congestion occurs. We want that each class 6,3,2,1,0 receive its granted value (so, respectively, 120M, 110M, 80M, 50M and 40M for a total of 400M) and that the remaining available bandwidth (600M) will be equally assigned, so 120M to each class.
Documentation from IOS-XR 5.2.2 let's understand that this should be the default behavior but if we run the policy shown below what we get is a weighted assignment of the remaining quota.
The policy used is the following:
policy-map TEST-POLICY
 class qos7
  police rate percent 20
  priority level 1
 class qos5
  police rate percent 40
  priority level 2
 class qos6
  bandwidth percent 12
 class qos3
  bandwidth percent 11
 class qos2
  bandwidth percent 8
 class qos1
  bandwidth percent 5
 class qos0
  bandwidth percent 4
 class class-default
 end-policy-map
The documentation of IOS-XR 5.2.2 states that both "bandwidth percent" and "bandwidth remaining percent" could be used in the same class (which could be a solution to force the requested behavior) but using both generates the following error:
!!% Both bandwidth and bandwidth-remaining actions cannot be configured together in leaf-level of the queuing hierarchy: InPlace Modify Error: Policy TEST-POLICY: 'qos-ea' detected the 'warning' condition 'Both bandwidth and bandwidth-remaining actions cannot be configured together in leaf-level of the queuing hierarchy'
How could be solved the problem? Maybe a hierarchical QoS with the granted quota in the parent policy and a "bandwidth remaining percent 20" in the child?

Hi everyone
just to provide my contribution, the hierarchical QoS policy works balancing the remaining bandwidth after granting the requested bandwidth (see the policy implemented below). However for priority queues it is granted the policer quota but sending more flows these appears to be unbalanced. So the problem to have both PQ served (in a balanced way between flows) AND have the remaining bandwidth distributed equally remains open ...
policy-map TEST-POLICY-parent
 class qos6
  service-policy TEST-POLICY-child
  bandwidth percent 12
 class qos3
  service-policy TEST-POLICY-child
  bandwidth percent 11
 class qos2
  service-policy TEST-POLICY-child
  bandwidth percent 8
 class qos1
  service-policy TEST-POLICY-child
  bandwidth percent 5
 class qos0
  service-policy TEST-POLICY-child
  bandwidth percent 4
 class class-default
  service-policy TEST-POLICY-child
 end-policy-map
policy-map TEST-POLICY-child
 class qos7
  police rate percent 20
  priority level 1
 class qos5
  police rate percent 40
  priority level 2
 class qos6
  bandwidth remaining percent 20
 class qos3
  bandwidth remaining percent 20
 class qos2
  bandwidth remaining percent 20
 class qos1
  bandwidth remaining percent 20
 class qos0
  bandwidth remaining percent 20
 class class-default
 end-policy-map

Similar Messages

  • My iPhone 3gs after update thane sim are damage and iTunes show locked, please help me, how can solve this problem? i am purchase from Sweden.

    My iphone purchages from sweden, when my ipone update latest vertion then sim cards damage and iphone monitor show itunes are loced. please help, how to solved the problem.

    Swedish carriers sell their phones carrier locked and do not offer official unlocking.  So unless you want to use it in Sweden with the original carrier you may as well sell it to someone who can use it there.
    Edit - I tell a lie, one of the carriers 3 do offer unlocking but not the others.

  • Upside down pdf file. Rotated and save but still upsided.  How to solve this problem?

    I received a pdf file that is upside down. Rotated and saved.  When I open the file, it is still upsided.  How to solve this problem?

    Hi,
    I think you are rotating the PDFs from View and rotate. it would only change the current View of the PDF.
    Kindly click on Tools on the right hand side > Pages > Rotate. then save the PDF.
    Let me know if it helps.
    ~Pranav

  • I am trying to change my Apple ID. Try to do this I keep getting an error message saying 'This email address is designated as your rescue email address and cannot be used as your Apple ID or Primary email address. Please choose another.' The email address

    I am trying to change my Apple ID. Try to do this I keep getting an error message saying ‘This email address is designated as your rescue email address and cannot be used as your Apple ID or Primary email address. Please choose another.’ The email address that I want to use did use to be my recovery email but I have changed it, so that address is no lonegr associated with my account. I do not understand why I cannot use it as my Apple ID now.  Can anyone help?

    Contact iTunes customer support for assistance.

  • Hi.iforgot to erase iphone 4s and removed it from my friends icloud account.now itunes says this account cannot be used to activate this iphone.i have his id and password,can log in to his icloud account but cant activate iphone.how to solve this problem?

    hi.i bought an iphone 4s from my friend.connected to itunes to restore it for a fresh install.after restoring to ios7 i realised that activation lock is enabled.i called my friend and get his id and pass.itunes said pass is wrong and cant activate the phone.then i logged in my friends icloud account (icloud.com said pass is ok) with same password and i removed the phone from 'find my iphone' list.but i forgot to erase the phone before removing it.now itunes says ''this apple id cannot be used to activate this iphone''.when i log in to icloud i cant see the phone in 'find my iphone' list so cant erase it now.can you please advise me step by step how to activate this phone?

    APPLE says:If the previous owner is not present
    Make sure the device is powered on and connected to a Wi-Fi or cellular network. Then contact the previous owner and ask them to follow these steps:
    Sign in to their iCloud account at www.icloud.com/find.
    Select the device from their Find My iPhone device list by clicking All Devices at the top of the screen.
    Erase the device by clicking the Erase button. This will erase all content and settings from the device. When prompted, do not enter a phone number or message. Click Next until the device is erased.
    When the erase is complete, click "Remove from Account" to remove the device from the account.
    After the device has been erased and removed from the account, you can proceed with the device setup process.
    i forgot to erase the phone.i just removed it without erasing.

  • Lion 10.7.2 On both mac book pro and iMac, both with Lion 10.7.2, obtain repeated iCal event notifications from calendar or address book.  Cannot turn these off.  They repeat several times per session and every time computer is used.  How to diagnose this

    Lion 10.7.2 On both mac book pro and iMac, both with Lion 10.7.2, obtain repeated iCal event notifications from calendar or address book.  Cannot turn these off.  They repeat several times per session and every time computer is used.  How to diagnose this?

    First, uninstall "SuperTV" (whatever that is) according to the developer's instructions. It isn't working and it's filling the log with noise.
    If you have more than one user account, these instructions must be carried out as an administrator.
    Launch the Console application.
    Step 1
    Make sure the title of the Console window is All Messages. If it isn't, select All Messages from the SYSTEM LOG QUERIES menu on the left.
    Enter "BOOT_TIME" (without the quotes) in the search box. Note the timestamps of those log messages, which refer to the times when the system was booted. Now clear the search box and scroll back in the log to the last boot time when you had the problem. Post the messages logged before the boot, while the system was unresponsive or was failing to shut down. Please include the BOOT_TIME message at the end of the log extract.
    Post the log text, please, not a screenshot. If there are runs of repeated messages, post only one example of each. Don’t post many repetitions of the same message. When posting a log extract, be selective. In most cases, a few dozen lines are more than enough.
    PLEASE DO NOT INDISCRIMINATELY DUMP THOUSANDS OF LINES FROM THE LOG INTO A MESSAGE. If you do that, I will not respond.
    Important: Some private information, such as your name, may appear in the log. Edit it out by search-and-replace in a text editor before posting.
    Step 2
    Still in Console, look under System Diagnostic Reports for crash or panic logs, and post the most recent one, if any. In the interest of privacy, I suggest you edit out the “Anonymous UUID,” a long string of letters, numbers, and dashes in the header of the report, if present (it may not be.) Please don’t post shutdownStall, spin, or hang logs — they're very long and not helpful.

  • SSRS countrow Aggregate error(Aggregate and lookup functions cannot be used in query parameter expressions.)

    Below expression works fine with text box but gives error in dataset expression.
    ="SET FMTONLY OFF select  "+ join(Parameters!Column.Value,",") +" FROM pamcustom.dbo.vw_HFL_HFD_HotfileData INNER JOIN pamcustom.dbo.HFL_HFB_HotFileBatch  on BatchID = HFB_intBatchID where BatchID ="+Parameters!BatchId.Value+"
    and "+Parameters!cmbTranType.Value+" "+ iif(CountRows("DS_Aml_Mnr_Iss_Desc")=Parameters!Mnr_Iss_Desc.count," "," and aml_mnr_iss_desc in "+"('" & join(Parameters!Mnr_Iss_Desc.Value,"','")
    & "')")+iif(CountRows("ds_ReportingCategory")=Parameters!ReportingCategory.count," "," and ReportingCategory in "+"('" & join(Parameters!ReportingCategory.Value,"','") & "')")+iif(CountRows("ds_NAICSubGroup")=Parameters!NAICSubGroup.count,"
    "," and naicsubgroup in "+"('" & join(Parameters!NAICSubGroup.Value,"','") & "')")+iif(CountRows("ds_PortTrading")=Parameters!PortTrading.count," "," and porttrading in "+"('"
    & join(Parameters!PortTrading.Value,"','") & "')")+iif(CountRows("ds_GL_LE")=Parameters!GL_LE.count," "," and gl_le in "+"('" & join(Parameters!GL_LE.Value,"','") &
    "')")+iif(CountRows("ds_coagroup")=Parameters!cmbCoaGrp.count," "," and coagroup in "+"('" & join(Parameters!cmbCoaGrp.Value,"','") & "')")+iif(CountRows("Portfolio")=Parameters!cmbPort.count,"
    "," and portfolio in "+"('" & join(Parameters!cmbPort.Value,"','") & "')")+IIf(IsNothing(Parameters!txtSecID.Value)," "," and secid in ('"+Replace(Parameters!txtSecID.Value,",","','")+"')")+iif(IsNothing(Parameters!minPortFilter.Value)
    and IsNothing(Parameters!MinPort.Value)," "," and portfolio "+Parameters!minPortFilter.Value+Parameters!MinPort.Value)+iif(IsNothing(Parameters!maxPortFilter.Value) and IsNothing(Parameters!MaxPort.Value)," ","
    and portfolio "+Parameters!maxPortFilter.Value+Parameters!MaxPort.Value)+iif(IsNothing(Parameters!minCoaFilter.Value) and IsNothing(Parameters!txtMinCoa.Value)," "," and portfolio "+Parameters!minCoaFilter.Value+Parameters!txtMinCoa.Value)+iif(IsNothing(Parameters!maxCoaFilter.Value)
    and IsNothing(Parameters!txtMaxCoa.Value)," "," and portfolio "+Parameters!maxCoaFilter.Value+Parameters!txtMaxCoa.Value)
    I guess the error " Aggregate and lookup functions cannot be used in query parameter expressions." is because I am using CountRow to ensure that if all values of multi select all selected i will not use that filter in where clause.
    Pls. guide...

    Hi, Include your parameter total count in the dataset for parameter and instead of using countrows() function use the count from dataset in the expression.
    Hope this helps.........
    Ione

  • Error : Old and new exceptions cannot be used at the same time.

    HI ALL,
    i build a new exception class with message class and i want to replace the
    old exception that i had in the method ,what i did is delete the exception from the method
    signature and add the exception class .
    the problem is that when i try to activate the method i get error :
    Old and new exceptions cannot be used at the same time.
    CALL FUNCTION 'CALCULATE_HASH_FOR_CHAR'
          EXPORTING
            alg            = 'MD5'
            data           = iv_iss
          IMPORTING
            hash           = lv_issu
          EXCEPTIONS
            unknown_alg    = 1
            param_error    = 2
            internal_error = 3
            OTHERS         = 4.
        IF sy-subrc <> 0.
          RAISE EXCEPTION TYPE cx_user_mng EXPORTING
          textid = cx_user_mng=>wrong_isrs.
        ENDIF.
    I want to use the new exception class ,
    how can i avoid this error ?
    Best Regards
    Edited by: Joy Stpr on Jul 22, 2009 2:56 PM
    Edited by: Joy Stpr on Jul 22, 2009 3:16 PM

    Hi Joy,
    Check this link.
    [Old and New Exceptions Cannot be used at same time|Urgent problem, give me a hand;
    Old and new exceptions cannot be used the same time, what does this mean???
    Regards,
    Lakshman.

  • I am importing videos from my canon sl1 to my macbook when i use iphoto is says "iPhoto cannot import your photos because there was a problem downloading an image." and when i use image capture it says "An error occured while importing. The item 'MVI_1040

    I am importing videos from my canon sl1 to my macbook air when i use iphoto is says "iPhoto cannot import your photos because there was a problem downloading an image." and when i use image capture it says "An error occured while importing. The item ‘MVI_1040'' Thanks in advance

    Can you access the images on the phone with Image Capture (in the Applications Folder) ?

  • Trying to update iTunes on iPhone 4s. Went to site, selected download, says thank you. Plug phone into computer and pops up cannot be used phone requires 10.5 blah blah blah. What m I doing wrong?

    Trying to update iTunes on iPhone 4s. Went to site, selected download, says thank you. Plug phone into computer and pops up cannot be used phone requires 10.5 blah blah blah. What m I doing wrong?

    i used to have no trouble downloading music on my iphone 4s from i tunes, but now it just says cant download try later. is this caused by not having the current update or something else?

  • Getting message - The system extension "/System/Library/Extensions/On/USBMassStorageClass.kext was installed improperly and cannot be used.  How do I fix this?

    Getting message - The system extension "/System/Library/Extensions/On/USBMassStorageClass.kext was installed improperly and cannot be used.  How do I fix this?

    That's not a valid path. You must have tampered with the system, or used some kind of "utility" that did. You should do a clean reinstallation of the OS after backing up your data and erasing the boot volume. Be sure not to restore whatever that is.

  • When i connect my phone to itunes it saysThe iPhone cannot be used because it requires iTunes version 10.6.3 or later and i just downloaded the latest version

    when i connect my phone to itunes it saysThe iPhone cannot be used because it requires iTunes version 10.6.3 or later and i just downloaded the latest version

    Julie, there seems to be some snafu with the updater, so go here https://support.apple.com/kb/DL1575 and get the download directly. That should do the trick.
    Deb.

  • HT2801 USB SuperDrive disc icon does not appear and therefore SuperDrive cannot be used

    USB SuperDrive disc icon does not appear and therefore SuperDrive cannot be used.
    There is NO advice regarding this issue on Apple Support.
    Any recommendations?

    Also if you don't have this option checked in the Finder Preferences you won't get an icon on the desktop when a disc is inserted.

  • I just updated my MacBook Pro to 10.7.5 and got a message that the AppleUSBEthernetHost.kext was improperly installed and cannot be used. How to I find and install this extension?

    I just updated my MacBook Pro to 10.7.5 and got a message that the AppleUSBEthernetHost.kext was improperly installed and cannot be used. How to I find and install this extension?

    Open the AppleScript Editor in the /Applications/Utilities/ folder, copy and paste the entire following line into it, and press the Run button:
    do shell script "chown -R root:wheel /System/Library/Extensions/AppleUSBEthernetHost.kext" with administrator privileges
    If it doesn’t work, throw that item away and then reinstall iTunes.
    (114264)

  • This copy of Microsoft Office 2013 cannot be used on a computer running Terminal Services" error message when you try to open the Click-to-Run version of an Office 2013 program or suite on a terminal server

    Hi All,
    I have Citrix VDI (Virtual Desktop Infrastructure) Implemented
    in my company and installed few Applications on App Server lets say.... MS Office 2013, filzialla, putty, etc...
    I assigned these apps to the users through CITRIX STUDIO, when I try to use these apps. on VDI everything is working fine only when i tried to open Word, Excel or Powerpoing, outlook it throws error as 
    ""This copy of Microsoft Office 2013 cannot be used on a computer running Terminal Services" error message when you try to open the Click-to-Run version of an Office 2013 program or suite on
    a terminal server"" and apps gets closed.
    Please help me on this ASAP.
    Thanks & Regards,
    Sachin Shinde

    Hi,
    As mentioned in ths article below, run for Office 365 products on to a Remote Desktop Session Host server is not supported. You can install Office products for Office 365 to a virtual desktop, but the virtual desktop must be assigned to a single user.
    http://technet.microsoft.com/en-us/library/jj219423(v=office.15).aspx
    Regards,
    Melon Chen
    TechNet Community Support

Maybe you are looking for