SIP
Session Initiation ProtocolApplication layer · OSI 7Setting up internet phone calls and routing RTP voice
| No. | Time | Source | Destination | Protocol | Info | Size |
|---|---|---|---|---|---|---|
| 1 | 0.000 s | 192.168.1.10 | 203.0.113.50 | SIP | REGISTER sip:example.com | 354 B |
Overview
starts, manages, and ends internet phone calls. Phones register with their provider, trade INVITE, 180 Ringing, and 200 OK messages to pick codecs, and then stream voice over packets.
Session Initiation Protocol (RFC 3261) uses HTTP-like text requests over UDP/TCP port 5060 (or TLS 5061). SIP sets up sessions carrying SDP bodies (RFC 4566); continuous G.711 audio then streams via RTP (RFC 3550).
Key facts
- Layer
- Application (UDP/TCP 5060, SIPS 5061)
- Call handshake
- INVITE -> 180 -> 200 OK -> ACK
- Audio plane
- RTP (G.711, 160 B / 20 ms)
- Proxy vs SBC
- Proxy adds Via; SBC relays media
- Defined in
- RFC 3261, RFC 5621, RFC 3550
Signaling set up the call; RTP carried voice
Alice's phone signed in without exposing its password, invited Bob through the provider's SIP proxy and SBC relay, heard it ring, and exchanged 20 ms RTP audio packets until BYE ended the session.
Completed RFC 3261 Digest registration, INVITE/180/200/ACK signaling with SBC NAT media anchoring, G.711 RTP audio streaming, and BYE teardown.
- Core methods
- REGISTER, INVITE, ACK, BYE
- Audio stream
- 50 RTP packets/s each way
- NAT helper
- SBC media relay (ports 40000/40002)
- Encrypted upgrade
- SIPS (TLS 5061) + SRTP
Try it yourself
Send an unauthenticated SIP OPTIONS ping
Tools like `sngrep` or `sipsak` let network engineers inspect live SIP signaling messages on port 5060.
Test-NetConnection -ComputerName sip.example.net -Port 5061