1 tac2000/2000.7 laboratory 117 analyzing sip call flows dr. quincy wu national chiao tung...

36
1 TAC2000/2000.7 LABORATORY 117 Analyzing SIP Call Flows Dr. Quincy Wu Dr. Quincy Wu National Chiao Tung National Chiao Tung University University Email: [email protected] Email: [email protected]

Upload: jade-tucker

Post on 01-Jan-2016

223 views

Category:

Documents


6 download

TRANSCRIPT

Page 1: 1 TAC2000/2000.7 LABORATORY 117 Analyzing SIP Call Flows Dr. Quincy Wu National Chiao Tung University Email: solomon@ipv6.club.tw

11 TAC2000/2000.7

LABORATORY 117

Analyzing SIP Call Flows

Dr. Quincy WuDr. Quincy Wu

National Chiao Tung UniversityNational Chiao Tung University

Email: [email protected]: [email protected]

Page 2: 1 TAC2000/2000.7 LABORATORY 117 Analyzing SIP Call Flows Dr. Quincy Wu National Chiao Tung University Email: solomon@ipv6.club.tw

22 TAC2000/2000.7

LABORATORY 117

Packets Capturing &

Analyzing

Page 3: 1 TAC2000/2000.7 LABORATORY 117 Analyzing SIP Call Flows Dr. Quincy Wu National Chiao Tung University Email: solomon@ipv6.club.tw

33 TAC2000/2000.7

LABORATORY 117

Ethereal – What Is It? Every network manager at some time or other needs a tool that Every network manager at some time or other needs a tool that

can capture packets off the network and analyze them. can capture packets off the network and analyze them. In the past, such tools were either very expensive, proprietary, In the past, such tools were either very expensive, proprietary,

or both.or both. With the advent of Ethereal, all that has changed. With the advent of Ethereal, all that has changed.

Page 4: 1 TAC2000/2000.7 LABORATORY 117 Analyzing SIP Call Flows Dr. Quincy Wu National Chiao Tung University Email: solomon@ipv6.club.tw

44 TAC2000/2000.7

LABORATORY 117

Features of Ethereal

Available for UNIX and Windows. Available for UNIX and Windows. Capture and display packets from any interface on a UNIX system. Capture and display packets from any interface on a UNIX system. Display packets captured under a number of other capture programs: Display packets captured under a number of other capture programs:

tcpdump tcpdump Network Associates Sniffer and Sniffer Pro Network Associates Sniffer and Sniffer Pro NetXray NetXray Microsoft Network Monitor Microsoft Network Monitor

Filter packets on many criteria. Filter packets on many criteria. Colorize packet display based on filters Colorize packet display based on filters Allow people to add new protocols to Ethereal.Allow people to add new protocols to Ethereal.

Page 5: 1 TAC2000/2000.7 LABORATORY 117 Analyzing SIP Call Flows Dr. Quincy Wu National Chiao Tung University Email: solomon@ipv6.club.tw

55 TAC2000/2000.7

LABORATORY 117

Where to Get Ethereal Official site: Official site: http://www.ethereal.com/http://www.ethereal.com/ Local mirror: Local mirror: http:/http://voip/voip.ipv6.club.ipv6.club.tw.tw/Download//Download/

Page 6: 1 TAC2000/2000.7 LABORATORY 117 Analyzing SIP Call Flows Dr. Quincy Wu National Chiao Tung University Email: solomon@ipv6.club.tw

66 TAC2000/2000.7

LABORATORY 117

Install Ethereal under Windows Install WinPcap.Install WinPcap.

WinPcap is an architecture for packet capture and network analysis for WinPcap is an architecture for packet capture and network analysis for the Win32 platforms. the Win32 platforms.

It includes It includes a kernel-level packet filter, a kernel-level packet filter, a low-level dynamic link library (packet.dll), and a low-level dynamic link library (packet.dll), and a high-level and system-independent library (wpcap.dll, based on libpcap a high-level and system-independent library (wpcap.dll, based on libpcap

version 0.6.2) version 0.6.2)

Install Ethereal 0.10.3. Install Ethereal 0.10.3.

Page 7: 1 TAC2000/2000.7 LABORATORY 117 Analyzing SIP Call Flows Dr. Quincy Wu National Chiao Tung University Email: solomon@ipv6.club.tw

77 TAC2000/2000.7

LABORATORY 117

Starting Ethereal

Page 8: 1 TAC2000/2000.7 LABORATORY 117 Analyzing SIP Call Flows Dr. Quincy Wu National Chiao Tung University Email: solomon@ipv6.club.tw

88 TAC2000/2000.7

LABORATORY 117

Capturing packets with Ethereal

Page 9: 1 TAC2000/2000.7 LABORATORY 117 Analyzing SIP Call Flows Dr. Quincy Wu National Chiao Tung University Email: solomon@ipv6.club.tw

99 TAC2000/2000.7

LABORATORY 117

The Capture Preferences dialog box

Page 10: 1 TAC2000/2000.7 LABORATORY 117 Analyzing SIP Call Flows Dr. Quincy Wu National Chiao Tung University Email: solomon@ipv6.club.tw

1010 TAC2000/2000.7

LABORATORY 117

Stop after you have collected enough packets

Page 11: 1 TAC2000/2000.7 LABORATORY 117 Analyzing SIP Call Flows Dr. Quincy Wu National Chiao Tung University Email: solomon@ipv6.club.tw

1111 TAC2000/2000.7

LABORATORY 117

File – Save As

Page 12: 1 TAC2000/2000.7 LABORATORY 117 Analyzing SIP Call Flows Dr. Quincy Wu National Chiao Tung University Email: solomon@ipv6.club.tw

1212 TAC2000/2000.7

LABORATORY 117

Show Packet in New Window

Page 13: 1 TAC2000/2000.7 LABORATORY 117 Analyzing SIP Call Flows Dr. Quincy Wu National Chiao Tung University Email: solomon@ipv6.club.tw

1313 TAC2000/2000.7

LABORATORY 117

Capture Filters

Page 14: 1 TAC2000/2000.7 LABORATORY 117 Analyzing SIP Call Flows Dr. Quincy Wu National Chiao Tung University Email: solomon@ipv6.club.tw

1414 TAC2000/2000.7

LABORATORY 117

Filtering While Capturing

Page 15: 1 TAC2000/2000.7 LABORATORY 117 Analyzing SIP Call Flows Dr. Quincy Wu National Chiao Tung University Email: solomon@ipv6.club.tw

1515 TAC2000/2000.7

LABORATORY 117

Syntax of the tcpdump capture filter language

[[not] not] primitiveprimitive [and|or [not] [and|or [not] primitiveprimitive ...] ...] tcp port 23 and host 10.0.0.5tcp port 23 and host 10.0.0.5 tcp port 23 and not host 10.0.0.5tcp port 23 and not host 10.0.0.5

tcpdumptcpdump filter language is explained in the man page. filter language is explained in the man page.

Page 16: 1 TAC2000/2000.7 LABORATORY 117 Analyzing SIP Call Flows Dr. Quincy Wu National Chiao Tung University Email: solomon@ipv6.club.tw

1616 TAC2000/2000.7

LABORATORY 117Capturing SIP signaling(filter: udp port 5060)

Page 17: 1 TAC2000/2000.7 LABORATORY 117 Analyzing SIP Call Flows Dr. Quincy Wu National Chiao Tung University Email: solomon@ipv6.club.tw

1717 TAC2000/2000.7

LABORATORY 117

SIP Call Establishment It is simple, which contains a number of interim responses.It is simple, which contains a number of interim responses.

Page 18: 1 TAC2000/2000.7 LABORATORY 117 Analyzing SIP Call Flows Dr. Quincy Wu National Chiao Tung University Email: solomon@ipv6.club.tw

1818 TAC2000/2000.7

LABORATORY 117Basic Call Flow

Page 19: 1 TAC2000/2000.7 LABORATORY 117 Analyzing SIP Call Flows Dr. Quincy Wu National Chiao Tung University Email: solomon@ipv6.club.tw

1919 TAC2000/2000.7

LABORATORY 117

REGISTER

Page 20: 1 TAC2000/2000.7 LABORATORY 117 Analyzing SIP Call Flows Dr. Quincy Wu National Chiao Tung University Email: solomon@ipv6.club.tw

2020 TAC2000/2000.7

LABORATORY 117

200 OK

Page 21: 1 TAC2000/2000.7 LABORATORY 117 Analyzing SIP Call Flows Dr. Quincy Wu National Chiao Tung University Email: solomon@ipv6.club.tw

2121 TAC2000/2000.7

LABORATORY 117

INVITE

Page 22: 1 TAC2000/2000.7 LABORATORY 117 Analyzing SIP Call Flows Dr. Quincy Wu National Chiao Tung University Email: solomon@ipv6.club.tw

2222 TAC2000/2000.7

LABORATORY 117

SDP in INVITE

Page 23: 1 TAC2000/2000.7 LABORATORY 117 Analyzing SIP Call Flows Dr. Quincy Wu National Chiao Tung University Email: solomon@ipv6.club.tw

2323 TAC2000/2000.7

LABORATORY 117

200 OK

Page 24: 1 TAC2000/2000.7 LABORATORY 117 Analyzing SIP Call Flows Dr. Quincy Wu National Chiao Tung University Email: solomon@ipv6.club.tw

2424 TAC2000/2000.7

LABORATORY 117

SDP in 200 OK

Page 25: 1 TAC2000/2000.7 LABORATORY 117 Analyzing SIP Call Flows Dr. Quincy Wu National Chiao Tung University Email: solomon@ipv6.club.tw

2525 TAC2000/2000.7

LABORATORY 117

ACK

Page 26: 1 TAC2000/2000.7 LABORATORY 117 Analyzing SIP Call Flows Dr. Quincy Wu National Chiao Tung University Email: solomon@ipv6.club.tw

2626 TAC2000/2000.7

LABORATORY 117

Capturing the packets of Media Data

Page 27: 1 TAC2000/2000.7 LABORATORY 117 Analyzing SIP Call Flows Dr. Quincy Wu National Chiao Tung University Email: solomon@ipv6.club.tw

2727 TAC2000/2000.7

LABORATORY 117

RTP Traffic (udp port 9000)

What’s wrong?What’s wrong?

Page 28: 1 TAC2000/2000.7 LABORATORY 117 Analyzing SIP Call Flows Dr. Quincy Wu National Chiao Tung University Email: solomon@ipv6.club.tw

2828 TAC2000/2000.7

LABORATORY 117

Tools – Decode As RTP

Page 29: 1 TAC2000/2000.7 LABORATORY 117 Analyzing SIP Call Flows Dr. Quincy Wu National Chiao Tung University Email: solomon@ipv6.club.tw

2929 TAC2000/2000.7

LABORATORY 117

Display Filter

Page 30: 1 TAC2000/2000.7 LABORATORY 117 Analyzing SIP Call Flows Dr. Quincy Wu National Chiao Tung University Email: solomon@ipv6.club.tw

3030 TAC2000/2000.7

LABORATORY 117

Display – Colorize Display

Page 31: 1 TAC2000/2000.7 LABORATORY 117 Analyzing SIP Call Flows Dr. Quincy Wu National Chiao Tung University Email: solomon@ipv6.club.tw

3131 TAC2000/2000.7

LABORATORY 117

Emphasize the packets you are interested in

Page 32: 1 TAC2000/2000.7 LABORATORY 117 Analyzing SIP Call Flows Dr. Quincy Wu National Chiao Tung University Email: solomon@ipv6.club.tw

3232 TAC2000/2000.7

LABORATORY 117

Hold/Unhold of NBEN UA

Page 33: 1 TAC2000/2000.7 LABORATORY 117 Analyzing SIP Call Flows Dr. Quincy Wu National Chiao Tung University Email: solomon@ipv6.club.tw

3333 TAC2000/2000.7

LABORATORY 117

Hold

Page 34: 1 TAC2000/2000.7 LABORATORY 117 Analyzing SIP Call Flows Dr. Quincy Wu National Chiao Tung University Email: solomon@ipv6.club.tw

3434 TAC2000/2000.7

LABORATORY 117

Retrieve

Page 35: 1 TAC2000/2000.7 LABORATORY 117 Analyzing SIP Call Flows Dr. Quincy Wu National Chiao Tung University Email: solomon@ipv6.club.tw

3535 TAC2000/2000.7

LABORATORY 117

Summary We demonstrate the functions of Windows Messenger and We demonstrate the functions of Windows Messenger and

NBEN UA, which are two SIP User Agents with friendly user NBEN UA, which are two SIP User Agents with friendly user interface.interface.

We demonstrate the functions of Ethereal, which is a powerful We demonstrate the functions of Ethereal, which is a powerful tool for packets capturing & analyzing:tool for packets capturing & analyzing: Capture FiltersCapture Filters Colorized PacketsColorized Packets

Practice using this tool to capture SIP signaling in the following Practice using this tool to capture SIP signaling in the following call flowscall flows REGISTER – REGISTER – 200 OK200 OK INVITE – INVITE – 200 OK200 OK - ACK - ACK BYE – BYE – 200 OK200 OK Hold/RetrieveHold/Retrieve

Page 36: 1 TAC2000/2000.7 LABORATORY 117 Analyzing SIP Call Flows Dr. Quincy Wu National Chiao Tung University Email: solomon@ipv6.club.tw

3636 TAC2000/2000.7

LABORATORY 117

NTP VoIP Platform

NCTU PBX

PU PBX

Phone31842

Phone31924

Phone31340

Phone31350

Call Server Media Gateway

SIP Phone0944021021SIP Phone

0944021022

Media Gateway

SIP Phone0944021401

Phone13411

Phone13404

Phone13419

Phone13429

WLAN User

Phone04-22251133

StationInterface

StationInterface

StationInterface

StationInterface

Phone03-5912312

Admin Console

Edge Route

Edge Route

SIP Phone0944021026

SIP Phone0944021402

Hsinchu

Taichung

TrunkInterface

03-5712121

04-26328001TrunkInterface

Call Server

WLAN AP

WLAN Gateway

TANet

Campus Network

PSTN

Campus Network