The OSI network layer (Layer 3) is responsible for directing data from one LAN to another, using logical addressing and routing to move packets between different networks.