Homogeneous and heterogeneous traffic of data packets on complex networks: the traffic congestion phenomenon