Study of bmon Command
Experiment
Study of bmon Command
π― Aim
To monitor network bandwidth usage in real-time using the bmon command.
π Objective
By the end of this experiment, students will be able to:
- Monitor real-time bandwidth usage of network interfaces
- Analyze incoming and outgoing traffic
- Compare bandwidth across multiple interfaces
- Understand graphical/text-based traffic representation
π Theory
The bmon (Bandwidth Monitor) command is a tool used to:
- Display real-time network bandwidth usage
- Provide both text and graphical interface in terminal
π It shows:
- Data transfer rates (incoming & outgoing)
- Interface-wise bandwidth usage
- Traffic statistics in a visual format
π Compared to tools like iftop, bmon focuses more on:
- Interface-level monitoring rather than per-connection
π§Ύ Syntax
π§ Common Options
-
-p <interface>→ Monitor specific interface -
-o <output>→ Output format (e.g., ascii) -
-r <rate>→ Refresh rate -
-b→ Show values in bits per second
π§° Prerequisites
- Linux system
-
bmoninstalled
Installation:
π¬ Procedure & Commands
1️⃣ Run bmon
π Displays all interfaces with real-time bandwidth.
2️⃣ Monitor Specific Interface
3️⃣ Change Refresh Rate
π Updates every 1 second.
4️⃣ Display in Bits
5️⃣ ASCII Output Mode
π₯️ Interface Overview
When running bmon, students will see:
- List of interfaces (eth0, wlan0, etc.)
- Graphical bars representing traffic
-
Statistics such as:
- RX (Received data)
- TX (Transmitted data)
π Output Interpretation
| Term | Meaning |
|---|---|
| RX | Incoming traffic |
| TX | Outgoing traffic |
| Rate | Current bandwidth usage |
| Graph | Visual representation of traffic |
⌨️ Interactive Controls
| Key | Function |
|---|---|
| Arrow keys | Navigate interfaces |
q | Quit |
h | Help |
π Exercises for Students
-
Run
bmonand observe traffic on all interfaces. - Generate network traffic (e.g., download a file) and observe changes.
- Compare RX and TX values.
- Monitor a specific interface and record observations.
-
Compare
bmonoutput withiftop.
❓ Viva Questions
-
What is
bmonused for? -
Difference between
bmonandiftop? - What is RX and TX?
- Why is real-time monitoring important?
- What does bandwidth mean?
⚠️ Precautions
- Requires proper interface selection
- Output may vary with network activity
- Use in controlled environment for accurate observation
✅ Result
The bmon command is a useful tool for real-time bandwidth monitoring, helping users visualize network traffic and analyze interface usage effectively.
Comments
Post a Comment