Network Layer, Layer 3

Decides which physical path the data will take. See OSI model, Open Systems Interconnection model.