TRAFFIC MANAGEMENT IN SMART GATEWAY NETWORKS