VT 2006, Period 4, 2G1325 and 2G5564 Practical Voice Over IP (VoIP): SIP and related protocols
(Röst över IP (VoIP) i praktiken: SIP och relaterade protokoll)

Last modified: 2006-06-13 17:07:46 MEST 2006


As of 2006.05.31, all papers that have been received have been commented upon and this information set to the student. If you have submitted a paper and have not received comments, then please contact the instructor. As of 2006.06.12 all grades (for submitted papers) have been reported in LADOK.

jobs: Nostratic söker nyexaminerade studenter har kunskap i SIP, kontakta Mathias för mer information.
Nostratic, Mathias Ericsson, Konsult chef, mathias.ericsson@nostratic.se, phone: +46 8 711 04 34

  • For students who are looking for examples of papers - see the ACM Sigcomm 2005 proceedings - which are in the Computer Communication Review, Volume 35, Number 4, October 2005.
  • Put another copy of the book by Henry Sinnreich and Alan B. Johnston in the libary, you can only borrow it for 2 days at a time
  • See some of the topics which Theo Kanter has suggested for papers
  • Note the exjobb annoucement (in swedish)
  • lecture notes for 2006 have been added to the site
  • Students who are not regularily enrolled can apply for the course by filling out an application form -- please bring this form with you to class - so that I can expedite its processing (since normally this application should be submitted in advance of the course.
  • Note shifted afternoon hours on thursday - to avoid conflict with 2G1305
  • For your document, you should be sure to use A4 sized paper rather than US letter.
  • For those using LaTeX, you can improve the look of the document by:
    • switching to using PostScipt fonts (instructions)
    • You can also turn off hyphenation or at least limit its use with "\hyphenpenalty=5000 \tolerance=1000"

2G1325/2G5564 Practical Voice Over IP (VoIP): SIP and related protocols (Röst över IP (VoIP) i praktiken: SIP och relaterade protokoll) is a 5 point course designed for advanced undergraduates (2G1325) and graduate (2G5564) students; especially those in the Telecommunication Graduate Program or the International Masters Wireless program.

Advanced undergraduates should have completed the course 2G1305 (Internetworking) or 2G1701 (Advanced Internetworking) or an equivalent course and obtain permission of the instructor.

Information is available on:


This course will give both practical and general knowledge concerning Voice over IP. The emphasis will be on the underlying protocols. After this course you should have some knowledge of these protocols: what they are, how they can be used, and how they can be extended. You should be able to read the current literature at the level of conference papers in this area.

As with the Internetworking course you may not be able to understand all of the papers in journals, magazines, and conferences in this area - you should be able to read 90% or more of them and have good comprehension. In this area it is especially important that you develop a habit of reading the journals, trade papers, etc. In addition, you should also be aware of both standardization activities, new products/services, and public policy in the area.

You should be able to write papers suitable for submission to Globecomm, Voice on the Net (VON), and other conferences and journals in the area. This course should prepare you for starting an exjobb in this area (for undergraduate students) or beginning a thesis or dissertation (for graduate students).


  • Telesys, gk or Datorkommunikation och datornät/Data and Computer Communications or equivalent knowledge in Computer Communications; Internetworking; and permission of the instructor

Students considering participating in this course should contact the instructor.


This course will focus on the protocls associate with Voice over IP. The course should give both practical and more general knowledge concerning the these protocols. One of the major aims of the course is that student should be able to build upon these protocols to enable new services.

The course consists of 10 hours of lectures and an assigned paper requiring roughly 50h of work by each student.


  • Session Initiation Protocol (SIP)
  • Real-time Transport Protocol (RTP)
  • Real-time Streaming Protocol (RTSP)
  • Common Open Policy Server (COPS)
  • SIP User Agents
  • Location Server, Redirect Server, SIP Proxy Server, Registrar Server, ... , Provisioning Server, Feature Server
  • Call Processing Language (CPL)

Examination Requirements

  • An assigned paper requiring roughly 50h of work by each student (5 p)
  • Registration: Monday 03-Apr-06 at 23:59, to maguire@it.kth.se with the subject: 2G1325 topic" giving:
    • Group members, leader.
    • Topic selected
  • Written report
    • The length of the final report should be 10 pages (roughly 5,000 words) for each student; it should not be longer than 12 pages for each student - papers which are longer than 12 pages per student will be graded as "U".
    • If there are multiple students in a project group, the report may be in the form of a collections of papers, with each paper suitable for submission to a conference or journal.
    • Contribution by each member of the group - must be clear (in the case where the report is a collection of papers - the role of each member of the group can be explained in the overall introduction to the papers.
    • The report should clearly describe: 1) what you have done; 2) who did what; if you have done some implementation and measurements you should describe the methods and tools used, along with the test or implementation results, and your analysis.
    • Final Report: written report due Monday 01-May-06 at 23:59 + oral presentations scheduled Friday 19-May-06 from 08:00-17:00 in room 439.
    • Send email with URL link to maguire@it.kth.se
    • Late assignments will not be accepted
    • Note that it is pemissible to start working well in advance of the deadlines!
    • For graduate students the paper should be of the quality that it could be submitted to a conference - immediately following the course.
  • Oral presentations; Each group should present their results for 20 minutes, followed by 10 minutes of discussion. You only need to attend the day you present.

Grades: U, 3, 4, 5

"komplettering" - students who do not pass can submit a revised version of their paper (or a completely new paper) - which will be evaluated.

Code of Honor and Regulations

KTH has a common code of honor and regulations (see Code of Honor and Regulations).


Main Text-Book

The course will mainly be based on the book: Luan Dang, Cullen Jennings, and David Kelly, Practical VoIP: Using VOCAL, O'Reilly, 2002, ISBN 0-596-00078-2.

The second book is: Henry Sinnreich and Alan B. Johnston, Internet Communications Using SIP: Delivering VoIP and Multimedia Services with Session Initiation Protocol, Wiley, 2001, ISBN: 0-471-41399-2

Additional Reference Books

  • none - at the present time

Lecture notes are available on-line in PDF format. See the notes associated with each of the course topics.

Errata for Henry Sinnreich and Alan B. Johnston, Internet Communications Using SIP: Delivering VoIP and Multimedia Services with Session Initiation Protocol (note this is a work in progress)

Supplementary readings

Useful URLs


The schedule for lectures for 2G1325/2G5564 Practical Voice Over IP (VoIP) are shown below (Note that in the following "xx" means "xx:00", not "xx:15".):

Thursday 16-Mar-06 10:00-12:00 Sal E Föreläsning 1
Thursday 16-Mar-06 14:00-17:00 Sal E Föreläsning 2
Friday 17-Mar-06 10:00-12:00 Sal C1 Föreläsning 3
Friday 17-Mar-06 14:00-17:00 Sal C1 Föreläsning 4 ; note that 16:00-16:30 Per Björklund from Efftel will speak about their VoIP solution as an example.

Note that Sal E is in the Forum building in Kista, while Sal C1 is in the Electrum building in Kista.

Lecture Plan and Lecture Material (OH slides)

Note that the lectures will occur in a very intensive fashion to accommodate graduate students coming from elsewhere in Sweden.

version of lectures for 2006(2.2MB)

revised version of lectures from 2006 (with a change in a URL)(2.2MB)

Staff Associated with the Course

  • Lecturer (kursansvarig, föreläsare): Prof. Gerald Q. Maguire Jr. (maguire@it.kth.se)
  • Administrative Assistant -- for administrative questions: recording of grades, ... contact - to be annouced


Use the normal process for registering. For most students this means you should speak with your study advisor (studievägledare.

Previous versions of the course

Other on-line Course Material

Gizmo Project, SIPphone, Inc.

Google Talk voice-chat

PeerMe, PeerMe, Inc.

Yahoo! builds upon Dialpad acquisition to offer VoIP via its messanger

MCI Web Calling for Windows Live Call

Stefano Ventura, VoIP&Security for Enterprise, 8.11.2005 - a very nice introduction to VoIP security (in french)

Internet Voice Campaign - part of the Voice On the Net (VON) Coalition (www.von.org)
Founding members of the Internet Voice Campaign include EarthLink, Google, Level 3, Pulver.com, Skype, Sonus Networks, and USA Datanet.

A sample call and how to record with tcpdump and decode with tcpdump, ethereal, and ipgrab.

Running /usr/local/vocal/bin/sipset as user 1010 on a linux PC named "tlclab01" (which will have the SIP URL sip:1010@ and making a call to 1010@ (which will have the SIP URL sip:1010@ Thus user 1010 on tlclab01 makes a call, which user 1010 on (a Cisco ATA 186) answers.
At the end of the call, the user on tlclab01 hangs up.

Examples of written reports submitted in 2004:
Andreas Ångström and Johan Sverin, VoiceXML and Khurram Jahangir Khan and Ming-Shuang Lang, Voice over Wireless LAN and analysis of MiniSIP as an 802.11 Phone both reports appear here with permission of the authors.

Sources for Further Information

Some ideas to investigate

2006.03.25 Theo Kanter contributed some interesting potential ideas for projects/papers (edited by Maguire).

  • Policy work with Presence: If you share a contact list with someone, can you assure it stays with this person?
  • In 3GPP there are a number of application servers. To create a multiservice application one can consider connecting them together - much as one does with web services. However, this may generate high latencies, what can be done to minimize the messaging and reduce this latency?
  • Distributed shared Audio/Video. P2P SIP inspired:
    Can you share media between (mobile) devices not relying on messaging/multicast?
    For example, you record an audio/video clip with your mobile phone/pda/camera. You want it to turn up in your home server and on your family members devices. Today you email, but we want the interactivity. You could of course have SIP-UAs subscribe to content notification and let the co-located applications fetch the content from the devices to which the group server points. However, this assumes you do not get disconnected. Alternatively, you could overlay such SIP messages over something like BitTorrent, Gnutella, etc. Then clients that move should benefit from SIP and be able to tell the other P2P clients that they moved. Potentially something like Azareus (open source Java BitTorrent client) could be of interest.
  • Mobile Audio Prototype revisited, Battery saver strategy:
    Assume synchronized global time available. One device has an audio/video clip. Assume global knowledge of where the access points are; assume location information to be available. Device1's application & WLAN wakes up and sends the invite. No reply: then it tells the Context Server when it will try again. Device 2 finds the note on the Context Server and determines it fits in the schedule, extrapolating when this occurs in the map from calculating the average velocity. Device 1 and 2 wake up and exchange the clip or some of it.

Page History

2006.05.02 added list of titles of oral presentations
2006.03.25 added some of Theo Kanter's suggestions for topics
2006.03.20 added link to Per's e-mail address
2006.03.12 added link to lecture notes for 2006
2005.12.29 added link to SER with CPL information
2005.11.15 added information on the Internet Voice Campaign
2005.11.02 added dates and times for 2006
2005.10.03 made the 2006 version of the web page the default
2005.08.22 added note regarding "komplettering"
2005.06.28 First version for 2006

© Copyright 2004, 2005, 2006 G.Q.Maguire Jr. (maguire@it.kth.se)
All Rights Reserved.
Last modified: 2006-06-13 17:07:46 MEST 2006

Valid HTML 4.01!

Feedback News