Traffic merging for energy-efficient datacenter networks