divide network sending to unicast and broadcast