Implementing qos feauture for udp/tcp packets