Last revision: 2 Feb 2016
Contents and references for a technical university course segment on Internet application layer protocols and standards. This course segment was given once or twice a year in September-October until 2008. The course is not given any more since 2008.
Table of contents
Swedish, less complete info (Svensk information, kortare och ej helt aktuell).
This course segment describes the most common application layer protocols on the Internet, and describes the general principles and methods used in these protocols.
This course segment will give useful information if, in the future, you will design, specify or write programs which communicate acting as mail, web or other clients or acting as the corresponding servers, or if you will design, specify or write software for new applications which need communication between processes on different servers. The course segment is also useful if you will work with maintenance and extension of such software. It is also useful if you want to understand better how the Internet works. HTTP and SMTP are today the most common protocols used as a basis when designing new protocols.
Changes in the fall of 2000: There will be more about e-mail standards and technology, and a new compendium 9 with information about e-mail has been added to the course segment documentation.
Changes in the spring of 2000: Much more complete coverage of XML.The work task is changed and is based on XML instead of on HTML. New additional compendiums with XML information.
Changes in August 2007: WebDav, RSS and BitTorrent added, course extended from four to five weeks (from 6 to 7,5 hp).
To get a complete view of the changes until September 2003, just take any two of the files below and compute a diff between them, for example using the Tools -> Track changes -> Compare documents command in MS Word.
In order to understand this segment, you have to have some experience in using the Internet, especially the World Wide Web and e-mail. If you do not have such experience, you will have problems following the segment. This segment is not primarily a course segment about usage of the Internet, it is a segment about how Internet works, for students who already know the basics of how to use the Internet. If you do not know the basics of how Internet works, read some book about it and try it out yourself before the start of the course segment.
You should also have some knowledge about how computers work, such as a programming course segment or some other technically oriented course segment about computers.
Information about registration, etc. is provided by Pia Haapala, phone +46-8-16 49 43, e-mail <firstname.lastname@example.org>.
All KTH students must register their participation in this course segment to the study counseling ("studievägledning") at KTH.
Students in KTH courses of type self-contained and further education ("fristående", "fortbildning" and "vidareutbildning") must use application forms provided by the education and research administrative unit, Valhallavägen 79, KTH. The forms can be ordered from utbildningsexpeditionen, phone +46-8-790 70 07 or +46-8-790 70 08, fax +46-8-790 68 87.
Mailing List, First Class Conference
Important information about this segment will be distributed through an e-mail mailing list and this mailing list will be copied to a First Class conference. The same information will be sent to both media, so students can choose to subscribe to either. If, however you want to send a question, send it to the mailing list, not to the First Class forum.
All course segment participants should either register for this mailing list or regularly access the First Class conference.
To send a message to the mailing list, write to
Go to the web page http://lists.dsv.su.se/intprot to register for the mailing list. Remember the password you use, since you will need it to unsubscribe from the list when you have passed the course.
Lectures in Swedish
The lectures are not mandatory, but there may be questions in the exam which ask about things mentioned in the overheads but more fully described in the lectures. Thus, if you do not go to the lectures, read the overheads carefully and ensure that you understand what is behind each overhead, not only what is actually on the overhead.
You can go to the DSV terminal rooms at any time, but if you go at times when the terminal rooms are booked for this course segment, you have priority of using the computers. At other times, other course segments may have priority in using the computers.
For passing this course segment you must pass the written exam (3.5 points), and you must submit the XML work task as described below (0.5 points). The written exam usually consists of four questions, with six points maximum grading on each question, and with a minimum of 12 out of 24 points for passed and a minimum of 18 out of 24 for VG.
For those exams, which are in the Forum building, room will be announced on a notice board inside the main entrance immediately before the exam and on a telephone answerer on number 674 70 04 the day before the exam.
Do not forget that you must register in advance, in order to participate in the exam. Registran is done using Daisy. If you do not have any account in Daisy, you can get such an account in Passerkortsrummet, Forum, Kista, lift A, floor 6. This rooms is only open at certain times, which are displayed on the door of the room.
Note that many of the documents for this course segment can be brought and used during the exam. For more info on which documents can be brought to the exam, see the list of reading material.
A few copies of the reading material, which are allowed to use during the exam, will be available for loan during the exam, for those who have not bought their own copies of these documents.
If you, on an exam got almost passed (1 or 2 points below the limit for passing the exam), you can complete the exam instead of doing the whole exam again. Such completion means that you need only answer some, but not all, the questions on the next exam. To do this, you must agree with the teacher about this in advance, and the teacher will then tell you which questions you have to answer on the next exam, depending on what part of the course you got particularly low points on. Such completion on an exam can never give you more than the lowest level of a passed exam (SU: G, KTH: 3).
Note: The contents of the course segment has shifted over the years, so old exams may not give a correct representation of the current course segment content. For example, XML was added in the year 2000, exams before 2000 do not ask such detailed questions on XML.
Note that since the exams above were given, this course segment has been extended from 3 to 4 weeks (points), by adding part from a previous course segment *:73. Below are some examples of exams from *:73:
Below are exams given after the change from 3 to 4 points
Important note: Since XML was not included in this course segment before the year 2000, exams in the year 2000 or later may contain questions about XML, even though there are no such questions in the old exams. Similarly, CSS was added to the course in the fall of 2004, so there are no CSS questions in exams before that date.
Observe especially the following exam questions:
About cheating: It is not allowed to download an existing DTD or XML from the Internet, or from a task done by someone else, and supply it, either as is or modified. It is not allowed to falsely report the validation result. Cheating may result in exclusion from future studies at the university for a period of several weeks or months.
Old work task: The work task is entirely different from the spring 2000 onwards, compared to 1999 and earlier.
Scheduled times: The times scheduled for the work tasks ("laborationer") are only scheduled so that you have priority to the workstations at those times. There will be no tutor present, you can do the work tasks with other workstations or home computers if you so prefer, there is no scheduled plan for the content of these times.
Submission time: Work tasks should be submitted on or before the Monday after the first exam. I will collect late arriving tasks and process them every second month.
Submit the work task in the box for work task submissions outside Studentexpeditionen, DSV, or send it by postal mail to Jacob Palme, DSV, Forum 100, 164 40 Kista.
If you need extra fast handling of the work task, send it by postal mail to Jacob Palme, Skeppargatan 73, 11530 Stockholm, and mark the work task with the words "URGENT" or "BRÅTTOM" in large visible letters on the first page of the work task submission.
Students enrolled in the course segment in 1999 or earlier, can instead perform the old work task which was used in the course segment during those years.
Some hints on common problems with the XML task
Problems with National characters (åäöüøé¿, etc.) in XML: You must choose to encode the National characters using either UTF-8 or ISO 8859-1. If you use ISO 8859-1, then the processing instruction
The validator cannot find my files: Check with an ordinary web browser that you can access the DTD and XML files using the same URL as sent to the validator.
How to get neat layout of the XML when shown with a web browser: This is not required for the work task. But if you want to do it, you can use CSS, see the example in compendium 8, section 1.35.
Combining DTD and XML in one file: It is possible to combine DTD and XML in a single file. This means that you do not have to upload the DTD file to a server before validating your XML.
The reading material consists of ten compendiums numbered 0 to 9.
They are sold by Studerandeexpeditionen, DSV.
If you have old compendium, there are additions-compendiums with new information added to the course at various times. New information in the autumn 2002 can be found in this additions-compendium.
Table of contents for the reading materials sold by Studentexpeditionen:
Incomplete texts for the compendiums are available online in PDF format as follows:
For the September 2003 course segment, the compendiums were re-organized. Here is a list of the new compendiums, after the re-organisation.
List of additional (partly not mandatory, and partly not up-to-date) reading materials for this course segment:
Study Plan (also included in compendium 0):
Additional overheads for the lectures might be added at URL:
An explanation of how to think when solving ASN.1 question:
Which font is most readable on the screen:
Font size comparisons:
Why bitmapped screen dumps sometimes get ugly when shown on the screen
A web-based ASN.1 series of exercises with automatic checking that the answer you write is correct can be found at http://asn1.elibel.tm.fr/tutorial.
Additional Reading (If you want to learn more)
"ASN.1 - Communication between heterogeneous systems" by Olivier Dubuisson, available on the net and from bookstores. A very comprehensive and detailed book about ASN.1.
URL for this web page