Packet forwarding is the relaying of packets from one network segment to another by nodes in a computer network.