rel:: [[Software Engineering]]
# Networking
## Protocols
- [[gRPC]]
- [[pprof#^f46002|protobuf]]
- [[HTTP]]
## Recipes
## Troubleshooting
- [When TCP sockets refuse to die](x-devonthink-item://B4B99571-B896-4245-B1D6-5A91E0BF7A99) (public link)
### Simulate Network Outages
```
## Simulating Network Outages
### `nsenter`
only necessary if process is running in a container
```bash
# start shell in network namespace of PID
nsenter -t PID -n /bin/bash
```
### `iptables -D`
```bash
# drop all outgoing traffic to 1337
sudo iptables -A OUTPUT -p tcp --dport 1337 -j DROP
# remove previous rule
sudo iptables -D OUTPUT -p tcp --dport 1337 -j DROP
```