In an internet, the protocol software on the source computer constructs an IP datagram and transmits it to a router by encapsulating the datagram in a hardware frame. The router extracts the datagram and retransmits it in a new hardware frame to the next router on the path to the destination; the destination extracts the original datagram from the last hardware frame and delivers the data to the application.