Abstract: A method of allocating, restricting or refusing communication resources to media sessions in accordance with individual session or session type, comprises: categorizing passing packets using packet traffic characteristics such as packet length or inter-arrival period; grouping together those packets having similar traffic characteristics, and analyzing the grouped packets for session characteristics, thereby to identify a session type and allocate resources to the session or provisioning or like actions or services.