sip-based voip lab
DESCRIPTION
SIP-based VoIP Lab. Step 1: Connect Your PC to The Network. Get your laptop connected to the campus WLAN. Run ipconfig to show your own IP address Ping NCNU.SIP.voip.edu.tw (163.22.21.82) Ping voipgw.ncnu.edu.tw (163.22.9.227). 11 – 10.10.19.165 12 – 10.10.19.188 13 - 10.10.19.71 - PowerPoint PPT PresentationTRANSCRIPT
![Page 1: SIP-based VoIP Lab](https://reader035.vdocuments.net/reader035/viewer/2022081513/568148c6550346895db5e37f/html5/thumbnails/1.jpg)
1
SIP-based VoIP Lab
![Page 2: SIP-based VoIP Lab](https://reader035.vdocuments.net/reader035/viewer/2022081513/568148c6550346895db5e37f/html5/thumbnails/2.jpg)
2
Step 1: Connect Your PC to The Network
• Get your laptop connected to the campus WLAN.– Run ipconfig to show your own IP address– Ping NCNU.SIP.voip.edu.tw (163.22.21.82)– Ping voipgw.ncnu.edu.tw (163.22.9.227)
![Page 3: SIP-based VoIP Lab](https://reader035.vdocuments.net/reader035/viewer/2022081513/568148c6550346895db5e37f/html5/thumbnails/3.jpg)
4
IP Addresses We Obtained
• 11 – 10.10.19.165• 12 – 10.10.19.188• 13 - 10.10.19.71• 14 – 10.10.19.170• 15 – 10.10.19.121
• 10 – 10.10.19.4– P204S (WiFi)
• 16 – 10.10.19.47• 17 – 10.10.19.199• 18 – 10.10.19.164• 19 – 10.10.19.94• 20 – 10.10.19.85
![Page 4: SIP-based VoIP Lab](https://reader035.vdocuments.net/reader035/viewer/2022081513/568148c6550346895db5e37f/html5/thumbnails/4.jpg)
5
Step 2: Install Ethereal under Windows
• Install Wireshark 1.4.1. – It will automatically install WinPcap.
• Install WinPcap 4.1.– WinPcap is an architecture for packet capture and
network analysis for the Win32 platforms.
– It includes • a kernel-level packet filter,
• a low-level dynamic link library (packet.dll), and
• a high-level and system-independent library (wpcap.dll, based on libpcap version 1.1.1)
![Page 5: SIP-based VoIP Lab](https://reader035.vdocuments.net/reader035/viewer/2022081513/568148c6550346895db5e37f/html5/thumbnails/5.jpg)
6
Where to Get Wireshark
• Official site: – http://www.wireshark.org/download.html
![Page 6: SIP-based VoIP Lab](https://reader035.vdocuments.net/reader035/viewer/2022081513/568148c6550346895db5e37f/html5/thumbnails/6.jpg)
7
Step 3: Install a SIP UA
• Windows Messenger 4.7 (4.7.2009)– Windows XP SP2 will remove the SIP support
in Messengers
• Windows Messenger 5.1
• X-Lite 3.0
• Linphone
• Act-Tel WiFi phone
![Page 7: SIP-based VoIP Lab](https://reader035.vdocuments.net/reader035/viewer/2022081513/568148c6550346895db5e37f/html5/thumbnails/7.jpg)
8
Step 4: REGISTER
• Configure the proxy server to be– NCNU.SIP.voip.edu.tw (163.22.21.82)
• Start your Ethereal – Disable promiscuous mode– Capture Filter: udp port 5060– Display the captured packets in real-time– OK
• Start X-Lite• Sign-in and observe the packets you capture
![Page 8: SIP-based VoIP Lab](https://reader035.vdocuments.net/reader035/viewer/2022081513/568148c6550346895db5e37f/html5/thumbnails/8.jpg)
HTTP-Digest on SIP
9
![Page 9: SIP-based VoIP Lab](https://reader035.vdocuments.net/reader035/viewer/2022081513/568148c6550346895db5e37f/html5/thumbnails/9.jpg)
10
• Ex 1:– Everybody sign-in and sign-off to see the SIP messages.– Sign-in
• Expires: 3600
– Sign-off• Expires: 0
• Ex 2:– Two UAs sign in with the same username.
• 2 Bindings
– One UA signs off• 1 Binding
– The other UA signs off• 0 Bindings
![Page 10: SIP-based VoIP Lab](https://reader035.vdocuments.net/reader035/viewer/2022081513/568148c6550346895db5e37f/html5/thumbnails/10.jpg)
11
• Now everybody restores to your original username.
• Keep Wireshark running.
![Page 11: SIP-based VoIP Lab](https://reader035.vdocuments.net/reader035/viewer/2022081513/568148c6550346895db5e37f/html5/thumbnails/11.jpg)
12
Test Your Microphone & Speaker
![Page 12: SIP-based VoIP Lab](https://reader035.vdocuments.net/reader035/viewer/2022081513/568148c6550346895db5e37f/html5/thumbnails/12.jpg)
13
Call Scenarios
• Practice using this tool to capture SIP signaling in the following call flows– REGISTER – 200 OK– INVITE – 200 OK – ACK– INVITE – CANCEL – 200 OK - ??? – ACK– INVITE – Decline (???) - ACK– BYE – 200 OK– Hold/Retrieve
![Page 13: SIP-based VoIP Lab](https://reader035.vdocuments.net/reader035/viewer/2022081513/568148c6550346895db5e37f/html5/thumbnails/13.jpg)
14
INVITE
• Pairing students into groups• Let the student with lower username be the caller,
and the other student be the callee. Make the call.• Exchange the role, and make the call again.
1. Call instructor’s X-Lite – [email protected]
2. Call NCNU PBX– 4161 (COM), 4131 (CSIE)– [email protected]
• Compare the signaling flow of the above two cases
![Page 14: SIP-based VoIP Lab](https://reader035.vdocuments.net/reader035/viewer/2022081513/568148c6550346895db5e37f/html5/thumbnails/14.jpg)
15
Via
• On The receiver side, observe the Via header field of a request, and compare it with the Via header field which was generated by the sender.
• Also observe the difference of the Max-Forwards header field.
![Page 15: SIP-based VoIP Lab](https://reader035.vdocuments.net/reader035/viewer/2022081513/568148c6550346895db5e37f/html5/thumbnails/15.jpg)
16
Try to capture RTP packets
• Open a new Wireshark– The old one is still running to capture SIP
signaling.
• Capturing Filter: udp
• You will obtain 50 packets in a second– Analyze – Decode As – RTP
• Can you choose a different codec?
![Page 16: SIP-based VoIP Lab](https://reader035.vdocuments.net/reader035/viewer/2022081513/568148c6550346895db5e37f/html5/thumbnails/16.jpg)
17
X-Lite
• INVITE/200 OK/ACK
• BYE/200 OK
• Hold/Retrive
• RTP
![Page 17: SIP-based VoIP Lab](https://reader035.vdocuments.net/reader035/viewer/2022081513/568148c6550346895db5e37f/html5/thumbnails/17.jpg)
18
SIP Forking
• Ex 1:– A calls B, C. – B answers.– C receives a CANCEL request.
• Ex 2:– B calls A, C– Nobody answers.– C hangs up.
![Page 18: SIP-based VoIP Lab](https://reader035.vdocuments.net/reader035/viewer/2022081513/568148c6550346895db5e37f/html5/thumbnails/18.jpg)
19
Contact List
• Presence– SUBSCRIBE/NOTIFY– RFC 3265
• Instant Message– MESSAGE– RFC 3428