Dit deel is nog niet vertaald. Je ziet de Engelse tekst.
$ als gewone gebruiker# als root (of met sudo)
What the course covers
How VoLTE carries voice as packets, and the IMS core that controls it: P-CSCF, I-CSCF, S-CSCF, and the HSS.
- IMS identities: IMPI, IMPU, and the ISIM on the UICC card.
- The LTE side: bearers, APNs, power up, handover, tracking, and paging.
- SIP in the IMS: proxies, Via, Route, and IMS-specific headers.
- Diameter, H.248, Initial Filter Criteria, presence, SDP, and QoS.
- Call flows: register, invite, CS fallback, SR-VCC, emergency calls, and charging.
- DNS, ENUM, regex, RTP, DTMF, SIP timers, and NAT.
- Wireshark labs on real packet captures, plus a troubleshooting method. The IMS lecture lessons are slide and video decks. The Wireshark part has step-by-step text and commands.
Welcome to Alta3 Research Labs!
The course starts in the Alta3 lab environment, a Linux desktop with a browser and a terminal.
- VIRGIL is the lab coach. It answers questions about the lab and the code.
- The lessons cover copy and paste and the basic Linux commands used later in the labs.
VoLTE and the IMS
IMS core and identity
- VoLTE sends voice in the packet domain. The old model sent voice in the circuit domain. Packet voice removes the MSC, lets voice and data share one network, and makes real-time video affordable.
- The IMS core is built from SIP proxies. The P-CSCF is the first SIP contact for the phone and the policy link to the network. The I-CSCF finds the right S-CSCF. The S-CSCF serves the subscriber and runs the service triggers.
Subscriber data and identity
- The HSS is the central subscriber database. The HLR is a subset of it (3GPP TS 23.002). For each IMSI it holds subscription, location, security, user profile, S-CSCF allocation, and subscribed APNs.
- Multiple HSS databases may exist, and user data may not span all of them. Diameter is the protocol that queries the HSS.
- The UICC card holds three applications: SIM (the GSM original), USIM (needed on 3G), and ISIM (for IMS). The ISIM stores the IMPI, one or more IMPUs, the home domain URI, and the long-term secret. The IMPI is the private identity; the IMPU is the public identity other users call.
LTE access and mobility
- A VoLTE call rides on an EPS bearer, also called IMS APN access. Under it sit the radio bearer, the S1 bearer, the E-RAB, and the S5/S8 bearer.
- The path runs UE to eNodeB, then S-GW, then P-GW, then the P-CSCF over the Gm interface. The MME controls the signaling over S1-MME and S11, and talks to the HSS over S6a.
- The power up lesson follows the phone from attach to a working IMS registration: get an IP address, open the IMS APN, find the P-CSCF, then register.
- Handover between eNodeBs keeps the call alive while the phone moves. Tracking and paging show how the network finds an idle phone when a call arrives.
SIP in the IMS
- SIP sets up, changes, and ends sessions. It carries the call signaling; the voice itself travels in RTP.
- SIP entities in the lessons are the user agent, the proxy, the registrar, and the servers that route or serve a request.
Routing and headers
- The Via header records each hop a request passes, and the response follows that path back. A branch parameter tags each transaction.
- Route and Record-Route headers pin the path through the proxies, so later requests in the same dialog use the same route.
- IMS adds its own headers. The Call-ID is a globally unique ID that groups all messages of one dialog. The example in the slides looks like
9abe99c8-...@192.168.30.189. - Other IMS headers seen in the slides include P-Asserted-Identity, P-Charging-Vector, P-Visited-Network-ID, and P-Access-Network-Info.
Diameter, H.248, and service triggers
- Diameter is the signaling protocol between IMS nodes. On the Cx interface it lets the I-CSCF and S-CSCF query the HSS for subscriber data and S-CSCF selection.
- H.248 is the media gateway control protocol. It lets a controller drive the gateways that connect packet voice to other networks.
Service triggers and presence
- Initial Filter Criteria (iFC) are stored in the HSS and sent to the S-CSCF. They decide which application server handles a session.
- An iFC can inspect the Request-URI, the SIP method, a SIP header, the session case (originating or terminating), and the SDP.
- Presence uses PUBLISH to send state, SUBSCRIBE to ask for it, and NOTIFY to deliver it. The payload is XML, for example
presence > tuple > status > basicwith the valueopen.
Media and QoS
- SDP is the offer and answer that describes the media. The
m=line gives the media type, port, and codec list. Thec=line gives the IP address for RTP. - The QoS lessons follow TS 23.203, the policy and charging architecture. The PCRF makes the policy decision. The PCEF sits in the P-GW and enforces it.
- The P-CSCF sends the SDP to the PCRF over Rx. The PCRF sends the rule to the P-GW over Gx. Charging uses Gy and Gz.
- A call first uses the default bearer. A dedicated bearer is added for voice. The P-GW opens gates for the RTP streams, and a packet classifier matches source IP, destination IP, source port, destination port, protocol, and mode.
Media transport and NAT
- RTP carries the voice. DTMF covers the touch tones, and the lesson compares ways to send them in a packet network.
- NAT is a problem for SIP and RTP, because the address in the message may not be the address on the wire. The lesson covers the concepts that govern SIP NAT.
Call flows and services
- A registration is a challenge and response: REGISTER, 401, REGISTER with the answer, then 200. The S-CSCF gets the profile from the HSS over Cx.
- A normal call is INVITE, 100 Trying, 180 Ringing, 200 OK, ACK, then RTP. A BYE from either side ends the dialog, and the other side answers 200.
Service examples
- Call flow examples put the pieces together: P-CSCF, I-CSCF, S-CSCF, HSS, and the application servers.
- Circuit Switched Fallback (CSFB) lets an LTE phone use the 2G/3G network for a voice call when VoLTE is not available.
- SR-VCC keeps a voice call alive when the phone moves to another access network.
Emergency and charging
- The emergency call flow shows how an emergency call is set up in the IMS.
- Charging in the IMS separates online charging (credit checks during the call) from offline charging (billing records after it).
DNS, ENUM, and dial plans
- Phones and IMS nodes use DNS to find servers, for example the P-CSCF.
- ENUM uses DNS to route dialed digits, so a phone number can become a SIP URI.
- Regex is the pattern language used to match and rewrite those digits and names.
- SIP timers control retransmission and timeouts, so a lost message does not hang a call forever.
Wireshark Labs
The Wireshark window has three panes: the packet list, the packet details, and the packet bytes. For SIP, expand only the SIP tree and its Message Header.
- The labs use display filters such as
sip,rtp, andmgcp. Filters are lowercase.Statistics > Flow Graphdraws the message flow.
Registration
- A successful REGISTER shows REGISTER, 401, REGISTER, 200. A failed login shows REGISTER, 401, REGISTER, 403.
- The 401 carries the puzzle in
WWW-Authenticate. The second REGISTER answers with a Digest MD5 response. The password itself is never sent. - A deREGISTER is a REGISTER with an expiry of 0, which logs the user out.
Calls and troubleshooting
- A call starts with an INVITE, which the registrar may challenge with 401. The responses 100, 180, and 200 follow, then ACK. A BYE from either side ends it, and the other side answers 200.
- The troubleshooting lab uses a call to a number with no route. The registrar answers 404, because the dial plan has no entry for those digits.
Media and presence
- Other labs cover SDP, one-way audio (an on-hold reINVITE), and PUBLISH for presence. In PUBLISH, the presence server may challenge the message with a 401.
Telephony > VoIP Callslists the calls, andTelephony > RTP > RTP Playerplays the captured audio. RTP can also be exported as a.wavfile.
Key commands and tools
wget https://static.alta3.com/courses/sip/SIP_REGISTER.pcapng— download a capture.termshark -r SIP_REGISTER.pcapng— read a capture in the terminal.- Wireshark display filters:
sip,rtp,mgcp. Statistics > Flow Graph— draw the SIP ladder diagram.Telephony > VoIP Calls— list the calls in a capture.Telephony > RTP > RTP Player— play the voice stream.- Wireshark profiles and color rules — save a layout, then color packets by protocol.
- Capture options: choose the interface, then start and stop the live capture.
- The "Apply a display filter" box sits above the packet list. The red X clears it.
View > Time Display Formatchanges the time column.View > Packet Byteshides the hex pane.- Header names to know: Via, From, To, Contact, Call-ID, CSeq, Route, Record-Route, Authorization, WWW-Authenticate, Expires.
- Response codes to know: 100 Trying, 180 Ringing, 200 OK, 401 Unauthorized, 403 Forbidden, 404 Not Found.
Key terms
The words of this course in one table. Learn them before the quiz or exam.
| Term | Meaning |
|---|---|
| APN | Access Point Name. The name of the network a phone connects to, for example the IMS APN. |
| CSFB | Circuit Switched Fallback. An LTE phone uses the 2G/3G network for a call when VoLTE is not available. |
| Diameter | The signaling protocol that IMS nodes use to query the HSS, for example on the Cx interface. |
| DTMF | Dual-Tone Multi-Frequency. The tones a phone sends when you press a key. |
| ENUM | A DNS system that turns a phone number into a SIP address. |
| EPS bearer | The packet path that carries a phone's traffic from the phone to the P-GW. |
| HSS | Home Subscriber Server. The central database of subscriber data. The HLR is a part of it. |
| I-CSCF | Interrogating Call Session Control Function. It finds the right S-CSCF for a request. |
| iFC | Initial Filter Criteria. Rules in the HSS that tell the S-CSCF which server handles a session. |
| IMPI | IMS Private Identity. The private identity used for authentication, stored on the ISIM. |
| IMPU | IMS Public Identity. The public SIP identity that other users call. |
| IMS | IP Multimedia Subsystem. The core network that sets up and controls packet voice and video sessions. |
| ISIM | IMS SIM. The application on the card that stores the IMS identities and secret. |
| NAT | Network Address Translation. It rewrites addresses, and can break SIP and RTP if it is not handled. |
| P-CSCF | Proxy Call Session Control Function. The first SIP contact for the phone, and the link to the policy system. |
| PCEF | Policy and Charging Enforcement Function. It sits in the P-GW and applies the PCRF rules. |
| PCRF | Policy and Charging Rules Function. It decides the QoS and charging rules for a session. |
| QoS | Quality of Service. The priority and bandwidth rules that keep voice clear. |
| RTP | Real-time Transport Protocol. It carries the voice or video stream. |
| S-CSCF | Serving Call Session Control Function. It serves the subscriber, fetches the profile, and runs service triggers. |
| SDP | Session Description Protocol. The offer and answer that lists codecs, IP addresses, and media ports. |
| SIP | Session Initiation Protocol. The text protocol that sets up, changes, and ends calls. |
| SR-VCC | Single Radio Voice Call Continuity. It keeps a voice call alive when the phone changes access network. |
| UICC | Universal Integrated Circuit Card. The smart card that holds the SIM, USIM, and ISIM. |
| VoLTE | Voice over LTE. A phone call that travels as data packets on the LTE network. |
Check yourself
Answer each question first, then open it to check the answer.
1What is the main difference between VoLTE and the old circuit switched voice?
VoLTE sends voice as packets on the LTE network. The old model used a separate circuit switched network with MSCs. VoLTE removes the MSC and lets voice and data share one network.
2What does the P-CSCF do, and what does the S-CSCF do?
The P-CSCF is the phone's first SIP contact and the policy link to the PCRF. The S-CSCF serves the subscriber, gets the profile from the HSS, and runs the service triggers.
3What is the difference between an IMPI and an IMPU?
The IMPI is the private identity, used for authentication and stored on the ISIM. The IMPU is the public identity, the SIP URI that other users call.
4Which four SIP messages make a successful REGISTER?
REGISTER, 401, a second REGISTER with the Digest response, then 200 OK.
5What does the c= line in SDP tell you?
It gives the IP address the device wants to use for RTP. The m= line gives the port and codecs.
Useful links
Official documentation and pages for this course.
- Alta3 Research — training, planning, and consulting.
- Alta3 Research on YouTube — free videos.
- Alta3 Research on GitHub — lab code and examples.
- Wireshark — the packet analyzer used in every lab.
- Wireshark download page