Introduction to OSI model and Network Analyzer...

56
Networking Laboratory 1/56 Sungkyunkwan University Copyright 2000-2015 Networking Laboratory Introduction to OSI model and Network Analyzer :- Introduction to Wireshark Syed Muhammad Raza [email protected]

Transcript of Introduction to OSI model and Network Analyzer...

Page 1: Introduction to OSI model and Network Analyzer ...monet.skku.edu/wp-content/uploads/2015/09/Wireshark_Tutorial.pdfThe model acts as a frame of reference in the design of ... Referring

Networking Laboratory 1/56

Sungkyunkwan University

Copyright 2000-2015 Networking Laboratory

Introduction to OSI model

and

Network Analyzer :- Introduction to Wireshark

Syed Muhammad Raza – [email protected]

Page 2: Introduction to OSI model and Network Analyzer ...monet.skku.edu/wp-content/uploads/2015/09/Wireshark_Tutorial.pdfThe model acts as a frame of reference in the design of ... Referring

Networking Laboratory 2/56

An Overview of ISO and its

7-Layer OSI Model

Page 3: Introduction to OSI model and Network Analyzer ...monet.skku.edu/wp-content/uploads/2015/09/Wireshark_Tutorial.pdfThe model acts as a frame of reference in the design of ... Referring

Networking Laboratory 3/56

OSI Model (1/2)

ISO

► International Standards Organization

OSI

► Open Systems Interconnect

Page 4: Introduction to OSI model and Network Analyzer ...monet.skku.edu/wp-content/uploads/2015/09/Wireshark_Tutorial.pdfThe model acts as a frame of reference in the design of ... Referring

Networking Laboratory 4/56

OSI Model (2/2)

Introduced in 1978 and revised in 1984

Formulates the communication process into structured layers

There are seven layers in the model, hence the name the 7-

Layer model

The model acts as a frame of reference in the design of

communications and networking products

Page 5: Introduction to OSI model and Network Analyzer ...monet.skku.edu/wp-content/uploads/2015/09/Wireshark_Tutorial.pdfThe model acts as a frame of reference in the design of ... Referring

Networking Laboratory 5/56

Layers of OSI Model

7. Application

6. Presentation

5. Session

4. Transport

3. Network

2. Data Link

1. Physical

Page 6: Introduction to OSI model and Network Analyzer ...monet.skku.edu/wp-content/uploads/2015/09/Wireshark_Tutorial.pdfThe model acts as a frame of reference in the design of ... Referring

Networking Laboratory 6/56

Division of Layers in OSI Model

Upper Layers

Lower Layers

Middle Layer

7. Application

6. Presentation

5. Session

4. Transport

3. Network

2. Data Link

1. Physical

Page 7: Introduction to OSI model and Network Analyzer ...monet.skku.edu/wp-content/uploads/2015/09/Wireshark_Tutorial.pdfThe model acts as a frame of reference in the design of ... Referring

Networking Laboratory 7/56

Function of Layers in OSI Model

Each layer deals with one aspect of networking

► Layer 1 deals with the communication media

Each layer communicates with the adjacent layers

► In both directions

► Ex: Network layer communicates with:

Transport layer

Data Link layer

Each layer formats the data packet

► Ex: Adds or deletes addresses

Page 8: Introduction to OSI model and Network Analyzer ...monet.skku.edu/wp-content/uploads/2015/09/Wireshark_Tutorial.pdfThe model acts as a frame of reference in the design of ... Referring

Networking Laboratory 8/56

Role of Layers in OSI Model

7. Application

6. Presentation

1. Physical

Node A

Data Out

Data In

To/from

Node B

Page 9: Introduction to OSI model and Network Analyzer ...monet.skku.edu/wp-content/uploads/2015/09/Wireshark_Tutorial.pdfThe model acts as a frame of reference in the design of ... Referring

Networking Laboratory 9/56

Communication Between Layers (1/2)

7. Application

6. Presentation

5. Session

Data

Encapsulation

Data

Stripping

Page 10: Introduction to OSI model and Network Analyzer ...monet.skku.edu/wp-content/uploads/2015/09/Wireshark_Tutorial.pdfThe model acts as a frame of reference in the design of ... Referring

Networking Laboratory 10/56

Communication Between Layers (2/2)

7. Application

1. Physical

7. Application

1.Physical

Node a Node b

Page 11: Introduction to OSI model and Network Analyzer ...monet.skku.edu/wp-content/uploads/2015/09/Wireshark_Tutorial.pdfThe model acts as a frame of reference in the design of ... Referring

Networking Laboratory 11/56

Layer Operations in OSI Model

At each layer, additional information is added to the data packet

An example would be information related to the IP protocol that is

added at Layer 3

Page 12: Introduction to OSI model and Network Analyzer ...monet.skku.edu/wp-content/uploads/2015/09/Wireshark_Tutorial.pdfThe model acts as a frame of reference in the design of ... Referring

Networking Laboratory 12/56

Formatting of Data Through the Layers

Application Header Presentation Header Session Header

Transport Header Network Header

Data Link Header and Trailer Physical Frame Preamble

Page 13: Introduction to OSI model and Network Analyzer ...monet.skku.edu/wp-content/uploads/2015/09/Wireshark_Tutorial.pdfThe model acts as a frame of reference in the design of ... Referring

Networking Laboratory 13/56

Standardizing Packet Formatting

Packets must conform to a standard in order for the nodes in a

network to be able to communicate with one another

The International Standards Organization (ISO) has provided a

reference model

Standards are established for operations at each layer of the

ISO/OSI model in the form of protocols

Page 14: Introduction to OSI model and Network Analyzer ...monet.skku.edu/wp-content/uploads/2015/09/Wireshark_Tutorial.pdfThe model acts as a frame of reference in the design of ... Referring

Networking Laboratory 14/56

OSI Model Explained

Animation Video

Explanation of operation and purpose of OSI Layer Model

Page 15: Introduction to OSI model and Network Analyzer ...monet.skku.edu/wp-content/uploads/2015/09/Wireshark_Tutorial.pdfThe model acts as a frame of reference in the design of ... Referring

Networking Laboratory 15/56

OSI Model Explained

Animation Video

Page 16: Introduction to OSI model and Network Analyzer ...monet.skku.edu/wp-content/uploads/2015/09/Wireshark_Tutorial.pdfThe model acts as a frame of reference in the design of ... Referring

Networking Laboratory 16/56

W I R E S H A R K

Page 17: Introduction to OSI model and Network Analyzer ...monet.skku.edu/wp-content/uploads/2015/09/Wireshark_Tutorial.pdfThe model acts as a frame of reference in the design of ... Referring

Networking Laboratory 17/56

What is Wireshark ?

Formerly known as Ethereal

Wireshark is a GUI Network Protocol Analyzer

Display filters in Wireshark are very powerful

Follows the rules of the pcap library

0010100100101011101010101

Page 18: Introduction to OSI model and Network Analyzer ...monet.skku.edu/wp-content/uploads/2015/09/Wireshark_Tutorial.pdfThe model acts as a frame of reference in the design of ... Referring

Networking Laboratory 18/56

Functions

Capturing network traffic from the interface

Decodes packets of common protocols

Displays the network traffic in human-readable format

Page 19: Introduction to OSI model and Network Analyzer ...monet.skku.edu/wp-content/uploads/2015/09/Wireshark_Tutorial.pdfThe model acts as a frame of reference in the design of ... Referring

Networking Laboratory 19/56

Wireshark Startup

Page 20: Introduction to OSI model and Network Analyzer ...monet.skku.edu/wp-content/uploads/2015/09/Wireshark_Tutorial.pdfThe model acts as a frame of reference in the design of ... Referring

Networking Laboratory 20/56

Screen Layout of Wireshark

The summary line, briefly describing what the packet is.

A protocol tree is shown, allowing you to drill down to exact protocol or field that you interested in.

a hex dump shows you exactly what the packet looks like when it goes over the wire.

Filename Of Current File

Page 21: Introduction to OSI model and Network Analyzer ...monet.skku.edu/wp-content/uploads/2015/09/Wireshark_Tutorial.pdfThe model acts as a frame of reference in the design of ... Referring

Networking Laboratory 21/56

Edit -> Preferences ->Columns

Page 22: Introduction to OSI model and Network Analyzer ...monet.skku.edu/wp-content/uploads/2015/09/Wireshark_Tutorial.pdfThe model acts as a frame of reference in the design of ... Referring

Networking Laboratory 22/56

Enable Protocols

Page 23: Introduction to OSI model and Network Analyzer ...monet.skku.edu/wp-content/uploads/2015/09/Wireshark_Tutorial.pdfThe model acts as a frame of reference in the design of ... Referring

Networking Laboratory 23/56

Capture Options

Page 24: Introduction to OSI model and Network Analyzer ...monet.skku.edu/wp-content/uploads/2015/09/Wireshark_Tutorial.pdfThe model acts as a frame of reference in the design of ... Referring

Networking Laboratory 24/56

Capture Options

To Specify the interface to be monitored

To Record all traffic even not for you

Only Capture part of the packet

To Store the result in file

Automatic Stop Condition

Only Capture certain packet

Page 25: Introduction to OSI model and Network Analyzer ...monet.skku.edu/wp-content/uploads/2015/09/Wireshark_Tutorial.pdfThe model acts as a frame of reference in the design of ... Referring

Networking Laboratory 25/56

Start Capturing

Page 26: Introduction to OSI model and Network Analyzer ...monet.skku.edu/wp-content/uploads/2015/09/Wireshark_Tutorial.pdfThe model acts as a frame of reference in the design of ... Referring

Networking Laboratory 26/56

Stop Capturing

Page 27: Introduction to OSI model and Network Analyzer ...monet.skku.edu/wp-content/uploads/2015/09/Wireshark_Tutorial.pdfThe model acts as a frame of reference in the design of ... Referring

Networking Laboratory 27/56

Display Packet Captured

Frame #

Ethernet Header

Destination Mac Address Field in Ethernet Header

Page 28: Introduction to OSI model and Network Analyzer ...monet.skku.edu/wp-content/uploads/2015/09/Wireshark_Tutorial.pdfThe model acts as a frame of reference in the design of ... Referring

Networking Laboratory 28/56

Column Sorting

Output is Sorted By Frame No By Default

Output is Sorted By Source Address

Page 29: Introduction to OSI model and Network Analyzer ...monet.skku.edu/wp-content/uploads/2015/09/Wireshark_Tutorial.pdfThe model acts as a frame of reference in the design of ... Referring

Networking Laboratory 29/56

Conversation List

Page 30: Introduction to OSI model and Network Analyzer ...monet.skku.edu/wp-content/uploads/2015/09/Wireshark_Tutorial.pdfThe model acts as a frame of reference in the design of ... Referring

Networking Laboratory 30/56

Saving Packets Captured

Page 31: Introduction to OSI model and Network Analyzer ...monet.skku.edu/wp-content/uploads/2015/09/Wireshark_Tutorial.pdfThe model acts as a frame of reference in the design of ... Referring

Networking Laboratory 31/56

Capture Filters

The capture filter syntax follows the rules of the pcap

library

This syntax is different from the display filter syntax

Referring manual page of tcpdump

(http://www.tcpdump.org/tcpdump_man.html )

Sample filters:

► src ip 192.168.1.1

► ether src 00:50:BA:48:B5:EF

Page 32: Introduction to OSI model and Network Analyzer ...monet.skku.edu/wp-content/uploads/2015/09/Wireshark_Tutorial.pdfThe model acts as a frame of reference in the design of ... Referring

Networking Laboratory 32/56

Capture Filters

A capture filter for HTTP than captures traffic to and from a

particular host

► tcp port 80 and host 10.10.10.5

A capture filter for HTTP than captures traffic not from a

particular host

► tcp port 80 and not host 10.10.10.5

A capture filter to and from an Ethernet address

► ether 00:00:01:01:02:22

Page 33: Introduction to OSI model and Network Analyzer ...monet.skku.edu/wp-content/uploads/2015/09/Wireshark_Tutorial.pdfThe model acts as a frame of reference in the design of ... Referring

Networking Laboratory 33/56

Display Filters

C-like symbols, or through English-like abbreviations:

► eq, == Equal

► ne, != Not equal

► gt, > Greater than

► lt, < Less Than

► ge, >= Greater than or Equal to

► le, <= Less than or Equal to

Page 34: Introduction to OSI model and Network Analyzer ...monet.skku.edu/wp-content/uploads/2015/09/Wireshark_Tutorial.pdfThe model acts as a frame of reference in the design of ... Referring

Networking Laboratory 34/56

Display Filters GUI

Quick Way to Learn Display

Filter Commands

Page 35: Introduction to OSI model and Network Analyzer ...monet.skku.edu/wp-content/uploads/2015/09/Wireshark_Tutorial.pdfThe model acts as a frame of reference in the design of ... Referring

Networking Laboratory 35/56

Display Filters GUI

1.

2.

3.

Page 36: Introduction to OSI model and Network Analyzer ...monet.skku.edu/wp-content/uploads/2015/09/Wireshark_Tutorial.pdfThe model acts as a frame of reference in the design of ... Referring

Networking Laboratory 36/56

Display Filters GUI

Page 37: Introduction to OSI model and Network Analyzer ...monet.skku.edu/wp-content/uploads/2015/09/Wireshark_Tutorial.pdfThe model acts as a frame of reference in the design of ... Referring

Networking Laboratory 37/56

Follow TCP Stream

Page 38: Introduction to OSI model and Network Analyzer ...monet.skku.edu/wp-content/uploads/2015/09/Wireshark_Tutorial.pdfThe model acts as a frame of reference in the design of ... Referring

Networking Laboratory 38/56

Follow TCP Stream

red - stuff you sent blue - stuff you get

Page 39: Introduction to OSI model and Network Analyzer ...monet.skku.edu/wp-content/uploads/2015/09/Wireshark_Tutorial.pdfThe model acts as a frame of reference in the design of ... Referring

Networking Laboratory 39/56

Expert Info

Page 40: Introduction to OSI model and Network Analyzer ...monet.skku.edu/wp-content/uploads/2015/09/Wireshark_Tutorial.pdfThe model acts as a frame of reference in the design of ... Referring

Networking Laboratory 40/56

Conversations

Page 41: Introduction to OSI model and Network Analyzer ...monet.skku.edu/wp-content/uploads/2015/09/Wireshark_Tutorial.pdfThe model acts as a frame of reference in the design of ... Referring

Networking Laboratory 41/56

Conversations

Page 42: Introduction to OSI model and Network Analyzer ...monet.skku.edu/wp-content/uploads/2015/09/Wireshark_Tutorial.pdfThe model acts as a frame of reference in the design of ... Referring

Networking Laboratory 42/56

IOGraphs

Page 43: Introduction to OSI model and Network Analyzer ...monet.skku.edu/wp-content/uploads/2015/09/Wireshark_Tutorial.pdfThe model acts as a frame of reference in the design of ... Referring

Networking Laboratory 43/56

IOGraphs

Page 44: Introduction to OSI model and Network Analyzer ...monet.skku.edu/wp-content/uploads/2015/09/Wireshark_Tutorial.pdfThe model acts as a frame of reference in the design of ... Referring

Networking Laboratory 44/56

IOGraphs

Page 45: Introduction to OSI model and Network Analyzer ...monet.skku.edu/wp-content/uploads/2015/09/Wireshark_Tutorial.pdfThe model acts as a frame of reference in the design of ... Referring

Networking Laboratory 45/56

IOGraphs

Page 46: Introduction to OSI model and Network Analyzer ...monet.skku.edu/wp-content/uploads/2015/09/Wireshark_Tutorial.pdfThe model acts as a frame of reference in the design of ... Referring

Networking Laboratory 46/56

IOGraphs

Page 47: Introduction to OSI model and Network Analyzer ...monet.skku.edu/wp-content/uploads/2015/09/Wireshark_Tutorial.pdfThe model acts as a frame of reference in the design of ... Referring

Networking Laboratory 47/56

Flow Graphs

Page 48: Introduction to OSI model and Network Analyzer ...monet.skku.edu/wp-content/uploads/2015/09/Wireshark_Tutorial.pdfThe model acts as a frame of reference in the design of ... Referring

Networking Laboratory 48/56

Flow Graphs

Page 49: Introduction to OSI model and Network Analyzer ...monet.skku.edu/wp-content/uploads/2015/09/Wireshark_Tutorial.pdfThe model acts as a frame of reference in the design of ... Referring

Networking Laboratory 49/56

HTTP Analysis

Page 50: Introduction to OSI model and Network Analyzer ...monet.skku.edu/wp-content/uploads/2015/09/Wireshark_Tutorial.pdfThe model acts as a frame of reference in the design of ... Referring

Networking Laboratory 50/56

HTTP Analysis – Load Distribution

Page 51: Introduction to OSI model and Network Analyzer ...monet.skku.edu/wp-content/uploads/2015/09/Wireshark_Tutorial.pdfThe model acts as a frame of reference in the design of ... Referring

Networking Laboratory 51/56

HTTP Analysis – Packet Counter

Page 52: Introduction to OSI model and Network Analyzer ...monet.skku.edu/wp-content/uploads/2015/09/Wireshark_Tutorial.pdfThe model acts as a frame of reference in the design of ... Referring

Networking Laboratory 52/56

HTTP Analysis – Requests

Page 53: Introduction to OSI model and Network Analyzer ...monet.skku.edu/wp-content/uploads/2015/09/Wireshark_Tutorial.pdfThe model acts as a frame of reference in the design of ... Referring

Networking Laboratory 53/56

And there is much much more which you should explore on

your own … Happy Exploring

Page 54: Introduction to OSI model and Network Analyzer ...monet.skku.edu/wp-content/uploads/2015/09/Wireshark_Tutorial.pdfThe model acts as a frame of reference in the design of ... Referring

Networking Laboratory 54/56

Improving WireShark Performance

Don’t use capture filters

Increase your read buffer size

Don’t update the screen dynamically

Get a faster computer

Use a TAP

Don’t resolve names

Page 55: Introduction to OSI model and Network Analyzer ...monet.skku.edu/wp-content/uploads/2015/09/Wireshark_Tutorial.pdfThe model acts as a frame of reference in the design of ... Referring

Networking Laboratory 55/56

Some Useful Information

Wireshark

http://www.wireshark.org

TCPDUMP MAN Page

http://www.tcpdump.org/tcpdump_man.html

IP Protocol

http://www.networksorcery.com/enp/protocol/ip.htm

Page 56: Introduction to OSI model and Network Analyzer ...monet.skku.edu/wp-content/uploads/2015/09/Wireshark_Tutorial.pdfThe model acts as a frame of reference in the design of ... Referring

Networking Laboratory 56/56

Thank you