Congestion avoidance through fog computing in internet of vehicles