A method for resource controlling, comprising: controlling storing requests of a first category in a first buffer using a blocking switch included in the first buffer, the requests of the first category having a first priority, and the blocking switch configured to block the requests of the first category from being received at an input to the first buffer; controlling the processing of requests of a second category having a second priority, during every clock cycle an accounting value being processed by: decrementing an accounting value of an up-down counter by a decrement value when a request of a second category is not processed and another request of a second category is pending in a second buffer for processing, incrementing the accounting value of the up-down counter by an increment value when at least one request of the second category is processed, resetting the accounting value of the up-down counter to an initial value when no request of a second category is pending, wherein the first priority is set such that processing the requests of the first category has priority over processing the requests of the second category, and blocking requests of the first category using a mechanism that detects when a predefined condition regarding a constant bandwidth service provided to the second category requests is met, wherein the predefined condition is detected when the up-down counter (26.2) reaches a predefined threshold, wherein the up-down counter (26.2) keeps track of the service which the requests of the second category have received and responsive to detecting that the predefined condition regarding the constant bandwidth service provided to the second category request is met, causing the blocking switch to block the requests of the first category from being received at the input to the first buffer, wherein the method further comprises: setting the predefined threshold value, setting the initial value of the up-down-counter (26.2), and setting the increment value and the decrement value of the up-down-counter (26.2). controlling storing requests of a first category in a first buffer using a blocking switch included in the first buffer, the requests of the first category having a first priority, and the blocking switch configured to block the requests of the first category from being received at an input to the first buffer; controlling the processing of requests of a second category having a second priority, during every clock cycle an accounting value being processed by: decrementing an accounting value of an up-down counter by a decrement value when a request of a second category is not processed and another request of a second category is pending in a second buffer for processing, incrementing the accounting value of the up-down counter by an increment value when at least one request of the second category is processed, resetting the accounting value of the up-down counter to an initial value when no request of a second category is pending, wherein the first priority is set such that processing the requests of the first category has priority over processing the requests of the second category, and blocking requests of the first category using a mechanism that detects when a predefined condition regarding a constant bandwidth service provided to the second category requests is met, wherein the predefined condition is detected when the up-down counter (26.2) reaches a predefined threshold, wherein the up-down counter (26.2) keeps track of the service which the requests of the second category have received and responsive to detecting that the predefined condition regarding the constant bandwidth service provided to the second category request is met, causing the blocking switch to block the requests of the first category from being received at the input to the first buffer, wherein the method further comprises: setting the predefined threshold value, setting the initial value of the up-down-counter (26.2), and setting the increment value and the decrement value of the up-down-counter (26.2). setting the predefined threshold value, setting the initial value of the up-down-counter (26.2), and setting the increment value and the decrement value of the up-down-counter (26.2).