nethogs - Watch Network Traffic by Process
nethogs allows you to watch network traffic on the system grouped by process. It tracks both upload and download speeds. Has support for ethernet, PPP and supports both IPv4 and IPv6.
Use following command to install nethogs
sudo apt-get -y install nethogs