---
# System prepended metadata

title: '**模擬Packet loss**'
tags: [linux]

---

# **模擬Packet loss**
###### tags: `linux`


---
模擬 packet loss 10%
sudo tc qdisc add dev eth0 root netem loss 10%

模擬 delay 40ms
sudo tc qdisc add dev eth0 root netem delay 40ms

刪除規則
sudo tc qdisc del dev eth0 root