to test TCP/UDP latency for sockets opened in kernel space