I have two communicating applications on the same machine:
app1----->loopback------>app2
I applied some delay (100ms) to loopback interface using netem (tc command) on a ubuntu machine (mint to be more specific). So to verify, if I ping 127.0.0.1, response is delayed 200ms.
I am wondering if it is possible to capture the traffic before the delay is applied and after the delay is applied. In other words, capture when app1 sends it into the network interface and capture again before app2 receives it.
Would that be possible using tcpdump/Wireshark?