• No results found

Network Trace Analysis

N/A
N/A
Protected

Academic year: 2021

Share "Network Trace Analysis"

Copied!
49
0
0

Loading.... (view fulltext now)

Full text

(1)

Network Trace Analysis

Dmitry Vostokov

Software Diagnostics Services

Version 1.0

(2)

Wires

hark

Hark

Listen (to)

“Hark! There’s the big bombardment.”

Speak in one’s ear; whisper

Shorter Oxford English Dictionary

Hark back

(idiom)

To return to a previous point,

as in a narrative

http://www.thefreedictionary.com/hark

(3)

Prerequisites

Interest in software diagnostics,

troubleshooting, debugging and

network trace analysis

Experience in network trace analysis

using Wireshark or Network Monitor

(4)

Why?

A common diagnostics language

Network diagnostics as software

diagnostics

(5)

Software Diagnostics

A discipline studying abnormal

software structure and behavior in

software execution artifacts (such

as memory dumps, software and

network traces

and logs) using

pattern-driven

,

systemic

and

pattern-based

analysis

methodologies.

(6)

Diagnostics Pattern

A common recurrent identifiable

problem together with

a set of

recommendations

and

possible

solutions to apply in a specific

context.

(7)

Pattern Orientation

© 2013 Software Diagnostics Services

Pattern-driven

Finding patterns in software artefacts

Using checklists and pattern catalogs

Pattern-based

Pattern catalog evolution

(8)

Catalog Classification

By abstraction

Meta-patterns

By artifact type

Software Log

*

Memory Dump

Network Trace

*

By story type

Problem Description

Software Disruption

UI Problem

By intention

Malware

(9)

Traces and Logs

(10)

Trace and Log Patterns

(11)

Software Narrative

A temporal sequence of events

related to software execution.

(12)

Software Trace

© 2013 Software Diagnostics Services

A sequence of formatted messages

Arranged by time

(13)

Network Trace

© 2013 Software Diagnostics Services

A sequence of formatted packets as trace

messages

Arranged by time

(14)

Network Trace Analysis

© 2013 Software Diagnostics Services

Software Trace Analysis Patterns

(15)

Capture Tool Placing

Sniffer placing

Process Monitor placing

(16)

Trace Maps

Network map

Deployment architecture map

(17)

Name Resolution

MAC -> IP and IP -> DNS

PID -> process name

(18)

Trace Presentation

© 2013 Software Diagnostics Services

Full Trace (Story, Fable, Fabula)

Trace 1

(Plot,

Sujet)

Trace 2

(Plot,

Sujet)

Trace 3

(Plot,

Sujet)

Trace 4

(Plot,

Sujet)

Trace 5

(Plot,

Sujet)

Trace

Presentation

A

(Discourse)

Trace

Presentation

B

(Discourse)

Trace

Presentation

C

(Discourse)

(19)

Minimal Trace Graphs

© 2013 Software Diagnostics Services

Time

(20)

Pattern-Driven Analysis

© 2013 Software Diagnostics Services

(21)

Pattern-Based Analysis

© 2013 Software Diagnostics Services

Software Trace

New Pattern

Discovery

Pattern

Catalog

+

Usage

(22)

Pattern Classification

© 2013 Software Diagnostics Services

Vocabulary

Error

Trace as a Whole

Large Scale

Activity

Message

Block

Trace Set

(23)

Reference and Course

© 2013 Software Diagnostics Services

Catalog from Software Diagnostics Library

Software Trace Analysis Patterns

Free reference graphical slides

Accelerated-Windows-Software-Trace-Analysis-Public.pdf

Training course*

Accelerated Windows Software Trace Analysis

(24)

Selected Patterns

(25)

Master Trace

Normal network capture

© 2013 Software Diagnostics Services

Pattern Category

(26)

Message Current

Packets/s

© 2013 Software Diagnostics Services

Time

# Src Dst Time Message

Time

# Src Dst Time Message 10.100 10.200 10.100 12.100

J

1

>

J

2

Pattern Category

Trace as a Whole

(27)

Message Density

D

1

>

D

2

© 2013 Software Diagnostics Services

Time

# Src Dst Time Message

Pattern Category

(28)

Characteristic Block

D

1

<

D

2

L

1

>

L

2

© 2013 Software Diagnostics Services

Time

# Src Dst Time Message

Pattern Category

(29)

Example

(30)

Thread of Activity

© 2013 Software Diagnostics Services

Pattern Category

Activity

Time

# Src Dst Time Message

Time

# Src Dst Time Message

(31)

Adjoint Thread

Filtered by:

Source

Destination

Protocol

Message

Expression

© 2013 Software Diagnostics Services

Pattern Category

Activity

Time

# Src Dst Time Message

Time

# Src Dst Time Message

(32)

No Activity

© 2013 Software Diagnostics Services

Time

# Src Dst Time Message

We messages from other servers but only see our own traffic

Pattern Category

(33)

Discontinuity

© 2013 Software Diagnostics Services

Pattern Category

Activity

Time

# Src Dst Time Message

Time

# Src Dst Time Message

(34)

Dialog

Conversation between 2 endpoints

© 2013 Software Diagnostics Services

Time

(35)

Significant Event

Time Reference feature in Wireshark

© 2013 Software Diagnostics Services

Time

# Src Dst Time Message

Pattern Category

(36)

Marked Messages

Marked Packets

feature in Wireshark

© 2013 Software Diagnostics Services

Annotated messages:

session initialization [+]

session tear-off [-]

port A activity [+]

port B activity [-]

protocol C used [-]

address D used [-]

[+]

activity is present in a trace

[-]

activity is undetected or not present

Pattern Category

(37)

Partition

Connection initiation (Prologue) and

termination (Epilogue)

© 2013 Software Diagnostics Services

Tail

Epilogue

Head

Time

Prologue

Core

# Src Dst Time Message

Pattern Category

Trace as a Whole

(38)

Inter-Correlation

Several packet sniffers at once

Internal and external views

Process Monitor log + network trace

© 2013 Software Diagnostics Services

Pattern Category

(39)

Circular Trace

© 2013 Software Diagnostics Services

Pattern Category

Trace as a Whole

Time

# Src Dst Time Message Problem Repro

(40)

Split Trace

© 2013 Software Diagnostics Services

Pattern Category

Trace Set

Time

(41)

Paratext

Info column in Wireshark

(42)

Frames

OSI, TCP/IP Layers

© 2013 Software Diagnostics Services

Time

# Src Dst Time Message

Pattern Category

(43)

Visibility Limit

Visibility window for sniffing

© 2013 Software Diagnostics Services

PC 1

PC 2

PC 3

sniffer

Pattern Category

Trace as a Whole

(44)

Incomplete History

Packet loss

Missing ACK

(45)

Possible New Patterns

Full Trace (promiscuous mode)

Embedded Message (PDU chain, protocol data

unit, packet)

Ordered Message (TCP/IP sequence numbers)

Illegal Message (sniffed with illegally obtained

privileges)

Dual Trace (in / out, duplex)

(46)

Further Reading

Practical Packet Analysis, 2

nd

edition, by Chris Sanders

Software Diagnostics Institute

Memory Dump Analysis Anthology: Volumes 3, 4, 5, 6, …

Volume 7 is in preparation (July, 2013)

Introduction to Software Narratology

Malware Narratives

(47)

What’s Next?

© 2013 Software Diagnostics Services

Accelerated Network Trace Analysis

Generative Software Narratology

(48)

Q&A

Please send your feedback using the contact

form on DumpAnalysis.com

(49)

Thank you for attendance!

© 2013 Software Diagnostics Services

References

Related documents

(2012) Chapter 2: 15 million preterm births: Priorities for action based on national, regional and global estimates. In Born Too Soon: the Global Action Report on Preterm Birth.

Private Location Spacious rooms Low running costs Established gardens Good rental potential Communal swimming pool Easy access to public transport Walking distance to turquoise

3 Attack Model C.: Malicious nodes launch DoR attacks to reduce the target nodes’ reputation and cause them to be evicted from their TGrps: Although these attacks can be successful,

The 4 th part, based on the situation of suzhou B bank , designing a new porformence manager syetem, designing a new balance of distribution standard and evaluation

This article will do the research of the compensation system of X company' s E-commerce department and discover how to improve and optimize the compensation

• Incremental rate: 50% of the increase in expenses incurred during that period compared to the average from the previous two fiscal years, up to € 1,500,000 (for newly

[r]

Strengthen us to bring forth the fruits of the Spirit, that through life and death we may live in your Son, Jesus Christ, our Savior and Lord, who lives and reigns with you and