network analyzer :- introduction to wireshark part...

24
Networking Laboratory 1/56 Sungkyunkwan University Copyright 2000-2017 Networking Laboratory Network Analyzer :- Introduction to Wireshark Part -2 Syed M. Raza [email protected] H. Choo [email protected]

Upload: others

Post on 10-Mar-2020

5 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Network Analyzer :- Introduction to Wireshark Part -2monet.skku.edu/wp-content/uploads/2016/09/Wireshark... · 2017-09-07 · Networking Laboratory 5/24 Introduction (3/3) Some of

Networking Laboratory 1/56

Sungkyunkwan University

Copyright 2000-2017 Networking Laboratory

Network Analyzer :- Introduction to Wireshark

Part -2

Syed M. Raza – [email protected]

H. Choo – [email protected]

Page 2: Network Analyzer :- Introduction to Wireshark Part -2monet.skku.edu/wp-content/uploads/2016/09/Wireshark... · 2017-09-07 · Networking Laboratory 5/24 Introduction (3/3) Some of

Networking Laboratory 2/24

Recap

Page 3: Network Analyzer :- Introduction to Wireshark Part -2monet.skku.edu/wp-content/uploads/2016/09/Wireshark... · 2017-09-07 · Networking Laboratory 5/24 Introduction (3/3) Some of

Networking Laboratory 3/24

Introduction (1/3)

Network Traffic Trace

► A recording of the network packets both received by and transmitted

from a network interface

What is a pcap file?

► pcap = Packet Capture

► File format originally designed for tcpdump/libpcap

► Most widely used packet capture format

Page 4: Network Analyzer :- Introduction to Wireshark Part -2monet.skku.edu/wp-content/uploads/2016/09/Wireshark... · 2017-09-07 · Networking Laboratory 5/24 Introduction (3/3) Some of

Networking Laboratory 4/24

Introduction (2/3)

What is Wireshark ?

► Formerly known as Ethereal

► Wireshark is a GUI Network Protocol Analyzer

► Follows the rules of the pcap library

► Found at http://www.wireshark.org

► The complete manual is located here

Page 5: Network Analyzer :- Introduction to Wireshark Part -2monet.skku.edu/wp-content/uploads/2016/09/Wireshark... · 2017-09-07 · Networking Laboratory 5/24 Introduction (3/3) Some of

Networking Laboratory 5/24

Introduction (3/3)

Some of its functions

► Capturing network traffic from the interface

► Decodes packets of common protocols

► Displays the network traffic in human-readable format

Some of its uses

► Troubleshoot network problems.

► Learn network protocol internals.

► Debug protocol/program implementation.

► Examine network-related security issues

Page 6: Network Analyzer :- Introduction to Wireshark Part -2monet.skku.edu/wp-content/uploads/2016/09/Wireshark... · 2017-09-07 · Networking Laboratory 5/24 Introduction (3/3) Some of

Networking Laboratory 6/24

Wireshark GUI

Page 7: Network Analyzer :- Introduction to Wireshark Part -2monet.skku.edu/wp-content/uploads/2016/09/Wireshark... · 2017-09-07 · Networking Laboratory 5/24 Introduction (3/3) Some of

Networking Laboratory 7/24

Wireshark GUI and Layout

Video

Brief introduction of Wireshark GUI, its different options and

layout

Page 8: Network Analyzer :- Introduction to Wireshark Part -2monet.skku.edu/wp-content/uploads/2016/09/Wireshark... · 2017-09-07 · Networking Laboratory 5/24 Introduction (3/3) Some of

Networking Laboratory 8/24

Wireshark GUI and Layout

Video

Page 9: Network Analyzer :- Introduction to Wireshark Part -2monet.skku.edu/wp-content/uploads/2016/09/Wireshark... · 2017-09-07 · Networking Laboratory 5/24 Introduction (3/3) Some of

Networking Laboratory 9/24

Wireshark Startup

Main Screen

List of interfaces

Select one of the listed

interfaces to start the

capture on that interface

Page 10: Network Analyzer :- Introduction to Wireshark Part -2monet.skku.edu/wp-content/uploads/2016/09/Wireshark... · 2017-09-07 · Networking Laboratory 5/24 Introduction (3/3) Some of

Networking Laboratory 10/24

Screen Layout of Wireshark

Packet List

The summary

line, briefly

describing what

the packet is.

Packet Details

A protocol tree is

shown in detail,

allowing you to

drill down deep

your interest

Packet Bytes

shows what the

packet looks like

when it goes

over the wire. Filename Of Current File

Menu

Page 11: Network Analyzer :- Introduction to Wireshark Part -2monet.skku.edu/wp-content/uploads/2016/09/Wireshark... · 2017-09-07 · Networking Laboratory 5/24 Introduction (3/3) Some of

Networking Laboratory 11/24

Basic UI Options (1/2)

Change columns in the packet list to see the information

relevant to you

► Edit -> Preferences ->Columns

Different interface

related options

Columns is one of the

options

New column can be

added or removed

Column title and information

shown in that column can be

changed

Select the type of information

shown in a column

Page 12: Network Analyzer :- Introduction to Wireshark Part -2monet.skku.edu/wp-content/uploads/2016/09/Wireshark... · 2017-09-07 · Networking Laboratory 5/24 Introduction (3/3) Some of

Networking Laboratory 12/24

Basic UI Options (2/2)

File -> Open

► Opens a packet capture file

View -> Time Display Format

► Change the format of the packet timestamps in the packet list pane

► Switch between absolute and relative timestamps

► Change level of precision

View -> Name Resolution

► Allow wireshark to resolve names from addresses at different

protocol layers

Page 13: Network Analyzer :- Introduction to Wireshark Part -2monet.skku.edu/wp-content/uploads/2016/09/Wireshark... · 2017-09-07 · Networking Laboratory 5/24 Introduction (3/3) Some of

Networking Laboratory 13/24

Enable Protocols

Enabled protocol list shows which protocols

Wireshark can understand and can dissect (parse)

It’s a huge list which covers almost all protocols, and gets updated with

every new version release

Page 14: Network Analyzer :- Introduction to Wireshark Part -2monet.skku.edu/wp-content/uploads/2016/09/Wireshark... · 2017-09-07 · Networking Laboratory 5/24 Introduction (3/3) Some of

Networking Laboratory 14/24

Wireshark Packet Capture and Options

Video

Brief introduction about different options of packet capture

options

Page 15: Network Analyzer :- Introduction to Wireshark Part -2monet.skku.edu/wp-content/uploads/2016/09/Wireshark... · 2017-09-07 · Networking Laboratory 5/24 Introduction (3/3) Some of

Networking Laboratory 15/24

Wireshark Packet Capture and Options

Video

Page 16: Network Analyzer :- Introduction to Wireshark Part -2monet.skku.edu/wp-content/uploads/2016/09/Wireshark... · 2017-09-07 · Networking Laboratory 5/24 Introduction (3/3) Some of

Networking Laboratory 16/24

Packet Capture

Capture -> Interfaces

► Available network interfaces for capture

► Total packets per interface

► Packet rate per interface

All interfaces in

the system

Interfaces status

Page 17: Network Analyzer :- Introduction to Wireshark Part -2monet.skku.edu/wp-content/uploads/2016/09/Wireshark... · 2017-09-07 · Networking Laboratory 5/24 Introduction (3/3) Some of

Networking Laboratory 17/24

Capture Options (1/2)

Page 18: Network Analyzer :- Introduction to Wireshark Part -2monet.skku.edu/wp-content/uploads/2016/09/Wireshark... · 2017-09-07 · Networking Laboratory 5/24 Introduction (3/3) Some of

Networking Laboratory 18/24

Capture Options (2/2)

To secify the interface to be monitored

To record all traffic (even traffic not

meant for you)

Only Capture part of the packet

To Store the result in file

Automatic Stop Condition

Only Capture certain packet

Page 19: Network Analyzer :- Introduction to Wireshark Part -2monet.skku.edu/wp-content/uploads/2016/09/Wireshark... · 2017-09-07 · Networking Laboratory 5/24 Introduction (3/3) Some of

Networking Laboratory 19/24

Start Capturing

Page 20: Network Analyzer :- Introduction to Wireshark Part -2monet.skku.edu/wp-content/uploads/2016/09/Wireshark... · 2017-09-07 · Networking Laboratory 5/24 Introduction (3/3) Some of

Networking Laboratory 20/24

Stop Capturing

Page 21: Network Analyzer :- Introduction to Wireshark Part -2monet.skku.edu/wp-content/uploads/2016/09/Wireshark... · 2017-09-07 · Networking Laboratory 5/24 Introduction (3/3) Some of

Networking Laboratory 21/24

Packet List(1/2)

Displays all of the packets in the trace in the order they

were recorded

Columns

► Time – the timestamp at which the packet crossed the interface

► Source – the originating host of the packet

► Destination – the host to which the packet was sent

► Protocol – the highest level protocol that Wireshark can detect

► Length – the length in bytes of the packet on the wire

► Info – an informational message pertaining to the protocol in the

protocol column

Page 22: Network Analyzer :- Introduction to Wireshark Part -2monet.skku.edu/wp-content/uploads/2016/09/Wireshark... · 2017-09-07 · Networking Laboratory 5/24 Introduction (3/3) Some of

Networking Laboratory 22/24

Packet List (2/2)

Coloring

► Default Coloring

Gray – TCP packets

Black with red letters – TCP Packets with errors

Green – HTTP Packets

Light Blue – UDP Packets

Pale Blue – ARP Packets

Lavender – ICMP Packets

Black with green letters – ICMP Packets with errors

► Colorings can be changed under View -> Coloring Rules

Page 23: Network Analyzer :- Introduction to Wireshark Part -2monet.skku.edu/wp-content/uploads/2016/09/Wireshark... · 2017-09-07 · Networking Laboratory 5/24 Introduction (3/3) Some of

Networking Laboratory 23/24

Column Sorting

Output is Sorted By Frame No By Default

Output is Sorted By Source Address

Page 24: Network Analyzer :- Introduction to Wireshark Part -2monet.skku.edu/wp-content/uploads/2016/09/Wireshark... · 2017-09-07 · Networking Laboratory 5/24 Introduction (3/3) Some of

Networking Laboratory 24/24

Thank you