netstat

Check protocol statistics

udp:

netstat -s -p udp

tcp:

netstat -s -p tcp