I am using netem (TC module) for introducing the delay. My requirment is like this that i want to introduce 5second delay. I am running command :
tc qdisc add dev eth0 root netem delay 5s
Now i am trying to ping at my local network system then i am getting packet lost.
root@localhost ~]# ping 192.168.0.210
PING 192.168.0.210 (192.168.0.210) 56(84) bytes of data.
64 bytes from 192.168.0.210: icmp_seq=1 ttl=64 time=5594 ms
64 bytes from 192.168.0.210: icmp_seq=2 ttl=64 time=5000 ms
64 bytes from 192.168.0.210: icmp_seq=3 ttl=64 time=5000 ms
64 bytes from 192.168.0.210: icmp_seq=4 ttl=64 time=5000 ms
64 bytes from 192.168.0.210: icmp_seq=5 ttl=64 time=5000 ms
64 bytes from 192.168.0.210: icmp_seq=6 ttl=64 time=5000 ms
64 bytes from 192.168.0.210: icmp_seq=7 ttl=64 time=5000 ms
64 bytes from 192.168.0.210: icmp_seq=8 ttl=64 time=5000 ms
64 bytes from 192.168.0.210: icmp_seq=9 ttl=64 time=5000 ms
64 bytes from 192.168.0.210: icmp_seq=10 ttl=64 time=5000 ms
64 bytes from 192.168.0.210: icmp_seq=11 ttl=64 time=5000 ms
64 bytes from 192.168.0.210: icmp_seq=12 ttl=64 time=5000 ms
64 bytes from 192.168.0.210: icmp_seq=13 ttl=64 time=5000 ms
64 bytes from 192.168.0.210: icmp_seq=14 ttl=64 time=5000 ms
64 bytes from 192.168.0.210: icmp_seq=15 ttl=64 time=5000 ms
--- 192.168.0.210 ping statistics ---
20 packets transmitted, 15 received, 25% packet loss, time 19003ms
rtt min/avg/max/mdev = 5000.387/5040.003/5594.296/148.154 ms, pipe 6