Presentation is loading. Please wait.

Presentation is loading. Please wait.

Network Performance Measurement 1. Introduction 2. Classification of Measurement. 3. Tools and Techniques. 4. Examples. 5. Conclusion.

Similar presentations


Presentation on theme: "Network Performance Measurement 1. Introduction 2. Classification of Measurement. 3. Tools and Techniques. 4. Examples. 5. Conclusion."— Presentation transcript:

1 Network Performance Measurement 1. Introduction 2. Classification of Measurement. 3. Tools and Techniques. 4. Examples. 5. Conclusion.

2 Introduction. Parameters which measured are: Parameters which measured are: Bandwidth – Data transferred / time Bandwidth – Data transferred / time Delay - Time taken for data to transfer (App level) Delay - Time taken for data to transfer (App level) Packet Loss – Affects Throughput and Apps. Packet Loss – Affects Throughput and Apps. High Bandwidth. High Bandwidth. Small Delay Small Delay Low Packet loss Low Packet loss

3 Classification of Measurement LAN, Backbone, End-to-End, Application LAN, Backbone, End-to-End, Application Network Measurements. Network Measurements. Backbone Backbone MRTG MRTG End-To-End (Machine to Machine) End-To-End (Machine to Machine) Tcpdump Tcpdump Ping / Traceroute Ping / Traceroute

4 Tools Multi Router Traffic Grapher. Multi Router Traffic Grapher. Measures… Measures… load on network links (Edge- Routers). load on network links (Edge- Routers). Network Traffic. Network Traffic. System Load, Login Sessions, Modem availability System Load, Login Sessions, Modem availability Output…. Output…. HTML, HTML, LIVE presentation. LIVE presentation. Graphical Images. Graphical Images.

5 Tools.. (MRTG) Internal Design.. Internal Design.. Perl – Reads Traffic Counters of Router. Perl – Reads Traffic Counters of Router. C – Logs Traffic Data and Creates Output. C – Logs Traffic Data and Creates Output. SNMP – Perl Scripts reads SNMP variables. SNMP – Perl Scripts reads SNMP variables. Portability… Portability… Unix (any) & Windows NT. Unix (any) & Windows NT. Default Sample Time : 5 mins. Default Sample Time : 5 mins.

6 Techniques Tcpdump/Windump Tcpdump/Windump Packet Capture. Packet Capture. Supported by PCAP / JPCAP APIs. Supported by PCAP / JPCAP APIs. Explained in Java Program. Explained in Java Program. Filters….. Filters….. Protocol – TCP/UDP, 802.3, ICMP etc. Protocol – TCP/UDP, 802.3, ICMP etc. Count Count Boolean Expressions. – Examples. Boolean Expressions. – Examples. Interface. – eth0, hme0 etc. Interface. – eth0, hme0 etc.

7 TCPDUMP… Examples: Examples: tcpdump host host1 tcpdump host host1 To print all packets arriving at or departing from host1: To print all packets arriving at or departing from host1: tcpdump host host1 and \( host2 or host3 \) tcpdump host host1 and \( host2 or host3 \) To print traffic between host1 and either host2 or host3: To print traffic between host1 and either host2 or host3: tcpdump ip host host1 and not host2 tcpdump ip host host1 and not host2 To print all IP packets between host1 and any host except host2: To print all IP packets between host1 and any host except host2: More More

8 Java Program - Windump by Hung Application Architecture Hierarchies Application Architecture Hierarchies Application Application Java program which uses JPCAP methods and captures packets. Java program which uses JPCAP methods and captures packets. Performs Analysis on the captured packets. Performs Analysis on the captured packets. Uses JDBC and stores results in mySQL database. Uses JDBC and stores results in mySQL database.

9 Java program …2 Java Package: JPCAP methods used. Java Package: JPCAP methods used. Provides an Interface and system for network packet capture. Provides an Interface and system for network packet capture. JPCAP uses windump utility. JPCAP uses windump utility. Constructor: Constructor: Jpcap(String device, int snaplen, Boolean promisc, int to_ms); Jpcap(String device, int snaplen, Boolean promisc, int to_ms); “device”: interface for capturing data “device”: interface for capturing data “snaplen”: Maximum # of bytes captured per packet. “snaplen”: Maximum # of bytes captured per packet. “promisc”: Allows network device to intercept and capture packet. “promisc”: Allows network device to intercept and capture packet. “to_ms”: Time out limit “to_ms”: Time out limit

10 Java program –(Methods)…3 getDeviceList() getDeviceList() Returns Name of Device (Interface). Returns Name of Device (Interface). setFilter(String condition,Boolean optimize) setFilter(String condition,Boolean optimize) Setting protocol/Expression for capturing packet. Setting protocol/Expression for capturing packet. getPacket() getPacket() Captures ONE packet at a time from Interface. Captures ONE packet at a time from Interface. loopPacket(int count, JpcapHandler handler) loopPacket(int count, JpcapHandler handler) Count times capturing packet. Count times capturing packet.

11 Java program ….4 Utility:Windump. Utility:Windump. Tcpdump equivalent utility for Windows. Tcpdump equivalent utility for Windows. Uses a low-level library “winpcap” for packet capture. Uses a low-level library “winpcap” for packet capture. Library: Winpcap Library: Winpcap It is an architecture for packet capture and network analysis for Win32 platforms. It is an architecture for packet capture and network analysis for Win32 platforms. It includes Kernel-Level packet filter, a Low-level DLL and High-level and system-Independent library (wpcap.dll). It includes Kernel-Level packet filter, a Low-level DLL and High-level and system-Independent library (wpcap.dll). Kernel:Windows Operating system. Kernel:Windows Operating system.

12 Java program….5 Begin Select database use Connect to mysql database check data tables. create packet data table if needed 1

13 Java Program…6 1 Get “number” of Packets. Connect to database Get packet Data Insert packet data into Database End

14 Java program….7 Analysis… Analysis… TTL – Values must be equal for packets with same S/D. TTL – Values must be equal for packets with same S/D. Flow - # of S/D pair of packets per unit time. Flow - # of S/D pair of packets per unit time. Delay – Time stamps of consecutive packets. Delay – Time stamps of consecutive packets.

15 Java program….8 Limitations… Limitations… Passive Monitoring. Passive Monitoring. Non Client-Server Architecture. Non Client-Server Architecture. Improvements…. Improvements…. User Given parameters – More Flexible. User Given parameters – More Flexible. Client-Server based – “network-as-a-whole” Client-Server based – “network-as-a-whole” TCPDUMP – platform independent. TCPDUMP – platform independent. GUI GUI

16 Conclusion… Network Performance can be measured at various levels. Network Performance can be measured at various levels. Net. Performance can be implemented in various ways..using various tools. Net. Performance can be implemented in various ways..using various tools.


Download ppt "Network Performance Measurement 1. Introduction 2. Classification of Measurement. 3. Tools and Techniques. 4. Examples. 5. Conclusion."

Similar presentations


Ads by Google