Using Raspberry Pi as a network impairment (medium.com)
You can use Raspberry Pi 4 (or Raspberry Pi 3B) as a network emulator. Raspberry Pi can be used to set up a bridged network, either using ethernet or WiFi.