Use iftop to monitor network traffic and iftop to monitor network traffic

Source: Internet
Author: User

Use iftop to monitor network traffic and iftop to monitor network traffic

Iftop is a useful tool. The following command monitors the wireless network card of my notebook

iftop -i wlan0

For example, if I play a video of letv, The iftop displays the following information:



Basic description:

1. the main part of the screen is the data transfer between two machines, with an arrow indicating the direction. The three values on the right are the average traffic of the past 2 seconds, 10 seconds, and 40 seconds, respectively.

2. TX in the lower-left corner indicates the sent data, and RX indicates the received data,

Cum indicates the Total traffic, and peak indicates the corresponding peak value, so you do not need to explain Total.



How can I write the iftop content of the Linux traffic monitoring tool to logs?

Nohup iftop>/tmp/iftop. log & # append to a log file. Then it is thrown to the background, and the monitoring effect is not good.


In linux, how does one view the network speed occupied by the current process?

Real-time iftop display of Bandwidth
Install: yum install iftop
Common parameters:
-I: sets the monitored Nic, for example: # iftop-I eth1
-B displays traffic in bytes (bits by default), for example: # iftop-B
-N: the host information is directly displayed by default, for example: # iftop-n
-N indicates that port information is directly displayed by default, for example: # iftop-N
-F displays inbound and outbound traffic for a specific network segment, for example, # iftop-F 10.10.1.0/24 or # iftop-F 10.10.1.0/255.255.255.0
-H (display this message), help, display parameter information
-P: When this parameter is used, the local host information is displayed in the intermediate list, and IP information other than the local host is displayed;
-B: The traffic graph bar is displayed by default;
-F this is not very useful for the moment. It is used to filter the computing package;
-P: the host information and port information are displayed by default;
-M: set the maximum value of the scale at the top of the page. The scale is displayed in five segments. For example: # iftop-m 100 M
Reference URL: blog.licess.org/iftop/

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.