I need to know how long a packet is processed by the router. When the packet arrives the router and when this packet leaves the router. How can I count it by a script with saving data to a file? Have you any experience in this subject? There is any documentation for similar problems?