A method for controlling processing of a data stream in a communication network, said communication network being divided into a plurality of network slices, said data stream having been transmitted by a terminal apparatus and received by an execution entity of said network in a network slice of said plurality, wherein said method is implemented by a control entity of said network, said control entity being configured to control implementation of a policy for processing the data streams routed in said network, and wherein said method comprises:
- receiving from the execution entity a notification of a priority indicator associated with said received data stream;
- obtaining a level of resources available in the network slice;
- deciding on at least one action for processing said stream at least according to the received priority indicator and the level of available resources, said processing action belonging to a group comprising at least one first action to let the data stream pass in said network slice intended to be implemented when the level of available network resources is sufficient for routing the data stream according to the priority indicator and a second action to block the data stream in said network slice intended to be implemented when the level of available network resources is insufficient;
- and
- sending a response to said execution entity, said response comprising said processing action.