The time the datagram remains on the Internet is measured in hops, where one hop represents one gateway on the datagram's path to the destination node.
It expatiates the implement method in detail, which involves the data communication state machine between gateway and Infra - red node, timer design and the management of data queue.