play poker online roulett spielen ohne geld fun poker online roulett online flash poker live spielen poker einzahlbonus online casino 300 roulette spielen ohne einzahlung roulette spielen pokerautomat online pc pokerspiel download casino bonus ohne einzahlung 2010 poker bonus clearen american poker spielen online roulette seriös poker welche karten spielen roulette online um geld online casino mac kartenspiel pokern online casino blackjack tilt poker online pokerspiel für pc online poker spielen um geld eurogrand casino bonus poker spielgeld aufladen poker automaten spielen geld poker online poker gewinnen free online poker multiplayer pokerräume online poker 2 online online poker millionäre poker online anbieter test online poker online poker testsieger casino online mac titan poker online online poker tournament europa casino bonus code poker kartenspiel echtgeld poker paypal spielkarussell poker online roulette geld verdienen online poker erfolgreich online poker iphone app online poker geld machen online poker willkommensbonus poker online browser online poker full tilt roulette online cam poker pc spiel freeware blackjack online online multiplayer poker poker startkapital geschenkt online casino ohne bonus spielen casino deposit bonus poker spiel downloaden online poker sicherheit casino slots online casino live online play poker free online pokeridol bonus spiele roulette poker spielbank berlin casino bonus auszahlen roulette online roulett spiel online poker im browser play online poker free roulette online spiel poker startguthaben geschenkt poker play online casino bonus ohne einzahlung pokern geld online casino roulette ohne limit roulette bonus online poker geld auszahlen online poker sofortbonus hamburg spielbank poker blackjack online game geld mit poker roulette spieltuch online casino 10 euro iphone poker online online poker mit elv pokerspiel download titan poker bonus berufsspieler roulette online poker mit geld online pokerturniere download pokerspiel online roulett geld verdienen pokertime bonus poker online um geld online casino microgaming joyland casino bonus pokertime bonus code pokern startgeld casino riva bonus code online roulett spieltisch roulette roulette ohne geld spielen pokerstars turniergeld online casino ohne limit online poker iphone poker online paypal online casino live roulette casino gutschein ohne einzahlung online poker liga poker spielen gegen pc poker geld gewinnen poker casino online casino share bonus online poker smartphone playtech casinos no deposit bonus playtech casino bonus ohne einzahlung poker heaven bonus code casino online ohne einzahlung poker multiplayer online online poker room poker online gucken roulette ohne einzahlung pokeranbieter im internet roulette sicherer gewinn poker holdem online free online casino slot machine games poker bonus codes casino spielen ohne einzahlung riva casino bonus code roulett spiele pc pokerspiel texas poker kostenlos spielen online roulette spielen online poker gegen computer casinoeuro bonus code online poker anbieter casino bonus no deposit online casino american poker poker online liga pokern mit geld titan poker bonus codes online casino mac download poker online geld online poker empfehlung online blackjack paypal casino bonus blog online poker cash game echtgeld casino poker bonusse casino bonus whoring poker spiele zum downloaden titan casino online online casino willkommensbonus ohne einzahlung online poker turnier strategie poker geldrangliste pokern um geld in deutschland mermaid poker bonus code online poker geld verdienen online casinos online poker bester bonus winner casino bonus code pokerstars turnierdollar poker online bonus online poker flash poker spielen deutsch online casino no deposit bonus online casino spielautomaten prestige casino bonus joyland casino bonus code spielautomaten roulette spielautomat roulette online casino kleine einsätze online pokerliga casino ohne einzahlung bonus poker online zocken poker echtgeld startguthaben poker online software online browser poker online poker auszahlung legal online casino ohne bonus spielen roulett poker online ohne download online casino seriös online poker casino poker spielen um geld poker online turniere poker spiel pc online pokern um echtes geld flash online roulette goodgame poker mehr geld poker echtes geld online casino slots spielautomaten poker casino online slots poker online store casino bonus 60 min online poker deutschland online casino eröffnen poker online usa online poker tournaments poker startbonus poker bundesliga online roulette no deposit bonus online poker im test pokerturniere online online poker american poker 3 online spielen online spielcasino texas poker spielen pokern jetzt spielen poker spielen deutschland poker online schweiz startgeld poker schweiz online poker online poker flash game online slots casino online live casinos poker flash spiel america poker 2 online spielen online poker auf iphone texas poker online pokerstars download spielgeld casino 200 bonus poker startkapital online casino 1 cent roulette angebote poker 50 dollar poker online elv pokern online ohne download pokern um geld im internet mansion casino bonus casino king bonus geld mit pokern roulette online spiele american poker online online poker mit paypal bonus casino tropez bonus poker poker geld online roulette geld online roulette bonus poker echtgeld paypal 50 poker bonus online casino casino tropez bonus code wiesbaden spielbank poker casino bonus roulette spieltisch poker online flash casino 400 bonus online poker deutsch

Subscribe

Sniffin’ the VOIP traffic

This time we will install a network protocol analyzer to watch the traffic on our LAN from initiating and connecting a SIP call.

The Wireshark open source project was formerly known as Ethereal. I used to work for a great company called Cybera as a programmer, and I was always fascinated by networking. I’d bug the network engineers for any information I could, and play around with Ethereal to try to understand what they were talking about.

If you’re working under windows, download the installer. For our Ubuntu or Debian friends, it’s available under the standard free apt archives.

There’s one little trick you need to be aware of during the install.

winpcap

Make sure you select WinPCAP as part of the installed goods.Complete the install and start the program. Minimize it for the time being.

Launch your VMWare server and the Trixbox instance, log in, and you’ll notice the IP address shown after you log in. Mine is 192.163.1.93.

Run over to another box on your LAN and make sure you can ping this address, as detailed in my last post.

If you don’t see ‘Logged In’ in the faux LCD window, most likely you’ll need to update the IP address that the phone needs for Asterisk.

Click the little Menu button juuuust to the left of the green phone button. Select System Settings->Sip Proxy->Default.

Menu

Make sure that the IP address for Domain/Realm, SIP Proxy, and Outbound proxy are all set to the IP address of the Asterisk Trixbox server you just started via VMWare.

Remeber, Nerd Vittles set us up with 500 and 501 as 2 extensions to use with these phones. Dial 501 from the 500 phone or vice versa. I launched mine just now and I can hear the kids, dog, and my wife doing fun stuff. Frankly at this point I have to sit back and marvel at the processes running to make this possible. It just blows my mind.
Now comes the hackin’ part. As the SIP call is in progress, flip back to Wireshark.

wiresharc-startup.PNG

From the main window, select Capture->Interfaces.

wriesharcints.PNG

I can see one of the listed network interfaces dealing with a lot of traffic. Choose that one and press the capture button.

wriesharkcaping.PNG

Let wireshark capture at least 5 or so seconds of traffic. So far, on mine, the vast majority of this VOIP traffic is of the UDP variety. Click Stop and wireshark will dump it all into its analysis window.

analyze.PNG

Every line that says OICQ Protocol represents one UDP (User Datagram Protocol) VOIP packet traversing the network. As a side note, it appears that Wireshark has made the assumption for us that these packets are really part of a chat protocol popular in China, which, of course, is not correct.

Right click on one, and select ‘Open in new window’. Go down to the bottom and look at the ‘data’ section of the packet. This data section represents the actual digitized voice of the VOIP call. It’s interesting to me that the protocol used is UDP, which is one of the two major types of IP packets, the other being TCP. UDP is a connectionless protocol, which means that the client generating the traffic simply puts the packet on the wire without regard to checking to see if the recipient actually received it. This also implies that the recipient has to collect the correct UDP packets and reorder them to form a meaningful conversation. I wonder what role the SIP ’stack’ in asterisk plays in this function. I suppose we’ll find out here at Asteriskblog!

Well, I hope you’ve found that illuminating, and I’m sure we’ll be referring to this tool to diagnose our further work in Asterisk. Please contact me if you have any questions.

Don't miss a post! Subscribe to the RSS feed or by email today!

AddThis Social Bookmark Button
Related posts:

9 Responses to “Sniffin’ the VOIP traffic”

  1. Is this by you? Can I link to it?

  2. A little info about VoIP calls:

    VoIP calls (similarly to POTS calls) basically break down into two parts: the signalling (SIP) and the actual transport (RTP). SIP/RTP is not the one and only protocol for this, there are other protocols for signalling and transporting, Asterisk’s IAX for exampe does both.

    SIP: Session Initiation Protocol
    RTP: Realtime Transport Protocol
    SIP is used only for signaling, RTP is used for transport. SIP itself doesn’t provide any means of transporting the actual voice data.
    The SIP protocol can run over TCP or UDP connections. Asterisk (1.2) only supports SIP on UDP. After two endpoints negotiated a session using the SIP protocol they start exchanging voice data which is transported by RTP.
    SIP as well as RTP are by default unencrypted, that’s why you can even playback phone calls in realtime. There are “secure” versions of SIP and RTP called SIPS and SRTP that provide authentication and data encryption.

    Regarding reording:
    SIP messages are quite small and compact, resembling e-mail headers in structure, and they won’t exceed the 64kByte limit for UDP packet size so there is no need for any reordering.
    RTP (which uses UDP) defines its own additional header with sequence number and timestamp.

  3. If Wireshark catches the SIP transaction, it will identify the stream as RTP and can dig into the details. You can also force Wireshark to crack into the udp packets to see if they’re RTP from the protocol options.

    Once the packet is identified as RTP, you can run analysis on it to find out of order packets, jitter, and latency. You can also display the SIP call setup in graph form.

    Sean

  4. Hi,

    Sorry but I do not think there is any news in this article. Ethereal can sniff and decode most of the VoIP protocol for ages.

    Moreover Intel has published (in 2004) a paper named “Using Ethereal to Debug SIP and RTP on Voice over IP (VoIP) Products from Intel”. The Intel publication is not restricted to Intel products and gives a lot of tips and hints to debug SIP/RTP calls in details.

    So try to give it a shot ;)

    Cheers.

  5. Ho my bad, I forgot the URL of the Intel paper.

    http://www.intel.com/network/csp/applnots/9008an.htm

  6. None, I thank you for your comment. My intent was to illustrate this from a newbie’s perpective, and for our audience to learn as I myself learn. I’m new to VOIP. That’s why your link is so helpful!

  7. […] En http://www.asteriskblog.com/sniffin-the-voip-traffic/, puedes ver cómo se instala y configura el EtherReal (WireShark) para este objetivo. Un artículo muy interesante a la hora de obtener datos que ayuden a resolver estos problemas comunes que tenemos todos. […]

  8. A burning question:
    When two Remote (Internet) Extensions are connected to each other in a conversation, does the VoIP traffic traverse through the Trixbox Server?

Leave a Reply



© 2007 Asterisk VOIP Tips | Powered by WordPress | Theme originally by Bob, heavily tweaked.