Sirpip91 / NS2-Networks-Trace-File-Analysis

Analyzing trace files that are created with NS2 scripts. The trace files are then anaysed with awk scripts.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

🌐 Networks Trace File Analysis

This project was created for studying CSMA/CD and 802.11 (CSMA/CD) Protocols

πŸ—‚ Project Structure

The project is organized into two main folders, each corresponding to a type of network:

1. 🌐 Wired LAN

This folder contains files related to wired LAN using CSMA/CD protocols.

  • Files:

    • wiredlan.tcl: The original TCL script.
    • wiredlanincreased7.tcl and wiredlanincreased.tcl: Scripts with additional network load.
  • AWK Scripts:

    • πŸ“„ packetdeliveryratiowired.awk and πŸ“„ throughputwired.awk: These scripts generate data outputs and formatted text for graphs.
  • Outputs:

    • πŸ“„ test.txt: Output used for creating graphs.
    • πŸ“Š Various .png files generated from the outputs using makegraph.sh.

2. πŸ“‘ Wireless LAN

This folder contains files related to wireless LAN in Ad Hoc mode using 802.11 protocols.

  • Files:

    • wirelessLan.tcl: The original NS2 script.
    • wirelessLan5nodes.tcl: Script showcasing additional load with 5 nodes.
    • 10node.tcl: Script showcasing 10 nodes.
  • AWK Scripts:

    • πŸ“„ packetdeliveryratio.awk, πŸ“„ throughput.awk, and πŸ“„ throughputavg.awk: These scripts output necessary information for wireless networks.
  • Outputs:

    • πŸ“Š Various .txt files created to be used by makegraph.sh to generate .png graphs.

Each script is located in the appropriate folder for its specific network setting (wireless/wired).

I hope you find this project and the experiments conducted to observe network behavior informative and useful.

Thank you.

πŸ›  How to Run

  1. Create and run your .tcl script:

    ns filename.tcl
  2. Two files will be created:

    • πŸ“„ .nam (GUI)
    • πŸ“„ .tr (trace)
  3. Run the .awk scripts on the .tr file:

    gawk -f throughputavg.awk wirelessLan.tr

    Graph Example

  4. Create graphs:

    • Edit makegraph.sh with the correct files, then run:
    gnuplot makegraph.sh

πŸ”” Note: Before running the .sh and gnuplot to create graphs, ensure the AWK scripts format the information into a .txt file.

πŸ–₯ NAM View in NS

NAM View

About

Analyzing trace files that are created with NS2 scripts. The trace files are then anaysed with awk scripts.


Languages

Language:Tcl 74.6%Language:Awk 22.8%Language:Shell 2.6%