UVA: Tentamen Inleiding Telematica (bachelors Informatica) 29 mei 2006. Schrijf netjes! Geef uitleg, houdt uw antwoorden kort! Studentnummer en naam op elk vel! Uw eindcijfer is de som van alle punten / 10, met een max van 10!
Vraag 1. Protocollen Het programma Ethereal luistert het netwerkverkeer af dat over een bepaalde ethernetkaart in mijn laptop gaat, analyseert het en kan het als volgt afdrukken: No.
Time 1 0.000000
Source 10.254.11.36
Destination 145.18.11.202
Protocol Info TCP 2259 > http [SYN] Seq=0 Ack=0 Win=32000 Len=0 MSS=1460
Frame 1 (62 bytes on wire, 62 bytes captured) Ethernet II, Src: DellComp_89:88:ce (00:b0:d0:89:88:ce), Dst: ZyxelCom_51:b4:4d (00:a0:c5:51:b4:4d) Internet Protocol, Src: 10.254.11.36 (10.254.11.36), Dst: 145.18.11.202 (145.18.11.202) Transmission Control Protocol, Src Port: 2259 (2259), Dst Port: http (80), Seq: 0, Ack: 0, Len: 0 No.
Time 2 0.011761 MSS=1460
Source 145.18.11.202
Destination 10.254.11.36
Protocol Info TCP http > 2259 [SYN, ACK] Seq=0 Ack=1 Win=5840 Len=0
Frame 2 (62 bytes on wire, 62 bytes captured) Ethernet II, Src: ZyxelCom_51:b4:4d (00:a0:c5:51:b4:4d), Dst: DellComp_89:88:ce (00:b0:d0:89:88:ce) Internet Protocol, Src: 145.18.11.202 (145.18.11.202), Dst: 10.254.11.36 (10.254.11.36) Transmission Control Protocol, Src Port: http (80), Dst Port: 2259 (2259), Seq: 0, Ack: 1, Len: 0 No.
Time 3 0.011822
Source 10.254.11.36
Destination 145.18.11.202
Protocol Info TCP 2259 > http [ACK] Seq=1 Ack=1 Win=32120 Len=0
Frame 3 (54 bytes on wire, 54 bytes captured) Ethernet II, Src: DellComp_89:88:ce (00:b0:d0:89:88:ce), Dst: ZyxelCom_51:b4:4d (00:a0:c5:51:b4:4d) Internet Protocol, Src: 10.254.11.36 (10.254.11.36), Dst: 145.18.11.202 (145.18.11.202) Transmission Control Protocol, Src Port: 2259 (2259), Dst Port: http (80), Seq: 1, Ack: 1, Len: 0 No.
Time 4 0.012276
Source 10.254.11.36
Destination 145.18.11.202
Protocol Info HTTP GET / HTTP/1.1
Frame 4 (376 bytes on wire, 376 bytes captured) Ethernet II, Src: DellComp_89:88:ce (00:b0:d0:89:88:ce), Dst: ZyxelCom_51:b4:4d (00:a0:c5:51:b4:4d) Internet Protocol, Src: 10.254.11.36 (10.254.11.36), Dst: 145.18.11.202 (145.18.11.202) Transmission Control Protocol, Src Port: 2259 (2259), Dst Port: http (80), Seq: 1, Ack: 1, Len: 322 Hypertext Transfer Protocol No.
Time 5 0.027391
Source 145.18.11.202
Destination 10.254.11.36
Protocol Info TCP http > 2259 [ACK] Seq=1 Ack=323 Win=6432 Len=0
Frame 5 (60 bytes on wire, 60 bytes captured) Ethernet II, Src: ZyxelCom_51:b4:4d (00:a0:c5:51:b4:4d), Dst: DellComp_89:88:ce (00:b0:d0:89:88:ce) Internet Protocol, Src: 145.18.11.202 (145.18.11.202), Dst: 10.254.11.36 (10.254.11.36) Transmission Control Protocol, Src Port: http (80), Dst Port: 2259 (2259), Seq: 1, Ack: 323, Len: 0 No.
Time 6 0.030786
Source 145.18.11.202
Destination 10.254.11.36
Protocol Info HTTP HTTP/1.0 200 OK (text/html)
Wat is een protocol? 1 Afgaande op de tekst hierboven, wat is Ethereal voor een programma? 1 Wat is een internetprotocol? 2 Wat wordt hierboven met “frame” bedoeld? 2 Het eerste frame in bovenstaande tekst wordt als volgt samengevat: Vraag Vraag Vraag Vraag No.
Time 1 0.000000
a. b. c. d.
Source 10.254.11.36
Vraag e.
Destination 145.18.11.202
Protocol Info TCP 2259 > http [SYN] Seq=0 Ack=0 Win=32000 Len=0 MSS=1460
Wat wordt met 2259 > http [SYN] bedoeld?
2
Pagina 1 van 6
UVA: Tentamen Inleiding Telematica (bachelors Informatica) 29 mei 2006. Schrijf netjes! Geef uitleg, houdt uw antwoorden kort! Studentnummer en naam op elk vel! Ook kan men in de analyse van frame 1 de volgende tekst tegen komen Ethernet II, Src: DellComp_89:88:ce (00:b0:d0:89:88:ce), Dst: ZyxelCom_51:b4:4d (00:a0:c5:51:b4:4d)
Wat is het verband tussen DellComp_89:88:ce en het ethernetadres 00:b0:d0:89:88:ce? (of die tussen ZyxelCom_51:b4:4d en 00:a0:c5:51:b4:4d? Dell en Zyxel zijn fabrikanten van ICT. 2 Vraag g. Wat zijn de internetadressen van de client en de server? 2 Vraag h. Welke client toepassing heeft de bovenstaande computercommunicatiesessie tot gevolg gehad? 2 Vraag i. Welk framenummer is de laatste die voorkomt tengevolge van de TCPsessieopbouw? 2 Vraag j. Welk framenummer bevat de eerste protocol data unit (PDU) van de applicatiesessie? 2 Vraag k. Maak van bovenstaande tekst een zogenaamd PDU tijdsdiagram (“time sequence diagram”)? 8 Vraag f.
Vraag 2: SIP RFC, 3261 De tekstfragmenten komen uit de SIP RFC. 1 Introduction There are many applications of the Internet that require the creation and management of a session, where a session is considered an exchange of data between an association of participants. The implementation of these applications is complicated by the practices of participants: users may move between endpoints, they may be addressable by multiple names, and they may communicate in several different media - sometimes simultaneously.
Hoe identificeert het internetprotocol een eindpoint? 1 Waarom is het lastig voor applicatiesessies als “users may move between endpoints”? 1 Vraag c. Wat wordt er bedoeld met they may communicate in several different media - sometimes simultaneously? 1 Vraag d. Als u een client-server applicatie moet schrijven die via twee media communiceert, hoeveel TCP sessies heeft u dan nodig? 2 Vraag a. Vraag b.
Numerous protocols have been authored that carry various forms of real-time multimedia session data such as voice, video, or text messages. The Session Initiation Protocol (SIP) works in concert with these protocols by enabling Internet endpoints (called user agents) to discover one another and to agree on a characterization of a session they would like to share.
Pagina 2 van 6
UVA: Tentamen Inleiding Telematica (bachelors Informatica) 29 mei 2006. Schrijf netjes! Geef uitleg, houdt uw antwoorden kort! Studentnummer en naam op elk vel! Vraag e.
vinden.
Noem/bedenk drie mechanismen hoe clients op het internet servers kunnen 3
For locating prospective session participants, and for other functions, SIP enables the creation of an of network hosts (called proxy servers) to which user agents can send registrations, invitations to sessions, and other requests.
Vraag f. Vraag g. Vraag h.
Wat is een user agent hier? 2 Noem twee voordelen en twee nadelen van deze “infrastructure”? 2 Noem drie (zinvolle) dingen die een user agent zou kunnen registreren? 3
... 2 Overview of SIP Functionality SIP is an application-layer control protocol that can establish, modify, and terminate multimedia sessions (conferences) such as Internet telephony calls.
Vraag i. Vraag j.
Wat is een applicatielaagprotocol? Noem vier applicatielaagprotocollen?
1 4
SIP can also invite participants to already existing sessions, such as multicast conferences. Media can be added to (and removed from) an existing session. SIP transparently supports name mapping and redirection services, which supports personal mobility [27] - users can maintain a single externally visible identifier regardless of their network location. Vraag k. Wat is het nut van die single externally visible identifier? 2
Bij de volgende vragen kan het voorkomen dat u de teksten/plaatje na de vraag ook moet lezen. ... 4 Overview of Operation This section introduces the basic operations of SIP using simple examples. ... The first example shows the basic functions of SIP: location of an end point, signal of a desire to communicate, negotiation of session parameters to establish the session, and teardown of the session once established. Figure 1 shows a typical example of a SIP message exchange between two users, Alice and Bob. (Each message is labeled with the letter "F" and a number for reference by the text.) In this example, Alice uses a SIP application on her PC (referred to as a softphone) to call Bob on his SIP phone over the Internet. Also shown are two SIP proxy servers that act on behalf of Alice and Bob to facilitate the session establishment. This typical arrangement is often referred to as the "SIP trapezoid" as shown by the geometric shape of the dotted lines in Figure 1.
Teken in het plaatje de computers die betrokken zijn bij de communicatie tussen Alice en Bob. Geef daarin aan wat de rol van deze computers is? 4
Vraag l.
Pagina 3 van 6
UVA: Tentamen Inleiding Telematica (bachelors Informatica) 29 mei 2006. Schrijf netjes! Geef uitleg, houdt uw antwoorden kort! Studentnummer en naam op elk vel!
Alice "calls" Bob using his SIP identity, a type of Uniform Resource Identifier (URI) called a SIP URI.
Vraag m.
Wat is een resource hier?
2
SIP URIs are defined in Section 19.1. It has a similar form to an email address, typically containing a username and a host name. In this case, it is sip:
[email protected], where biloxi.com is the domain of Bob's SIP service provider. Alice has a SIP URI of sip:
[email protected].
Vraag n.
Wat is een SIP uri?
2
Alice might have typed in Bob's URI or perhaps clicked on a hyperlink or an entry in an address book. ... SIP is based on an HTTP-like request/response transaction model.
Wat zou een transactie zijn (het volgende legt uit hoe het werkt maar niet wat het conceptueel is)? 3
Vraag o.
Each transaction consists of a request that invokes a particular method, or function, on the server and at least one response. In this example, the transaction begins with Alice's softphone sending an INVITE request addressed to Bob's SIP URI. INVITE is an example of a SIP method that specifies the action that the requestor (Alice) wants the server (Bob) to take.
Welke andere twee methods zou u bedenken die ook nuttig zouden kunnen zijn om voice over IP sessies te supporten? 4
Vraag p.
The INVITE request contains a number of header fields. Header fields are named attributes that provide additional information about a message. The ones present in an INVITE include a unique identifier for the call, the destination address, Alice's address, and information about the type of session that Alice wishes to establish with Bob.
Vraag q.
Leg stuk voor stuk uit waarom INVITE deze atributen nodig heeft? ]
5
Pagina 4 van 6
UVA: Tentamen Inleiding Telematica (bachelors Informatica) 29 mei 2006. Schrijf netjes! Geef uitleg, houdt uw antwoorden kort! Studentnummer en naam op elk vel! The INVITE (message F1 in .
atlanta.com proxy
Figure 1) might look like this: . . . biloxi.com proxy
.
.
. Alice's . . . . . . . . . . . . . . . . . . . . Bob's softphone SIP Phone | | | | | INVITE F1 | | | |--------------->| INVITE F2 | | | 100 Trying F3 |--------------->| INVITE F4 | |<---------------| 100 Trying F5 |--------------->| | |<-------------- | 180 Ringing F6 | | | 180 Ringing F7 |<---------------| | 180 Ringing F8 |<---------------| 200 OK F9 | |<---------------| 200 OK F10 |<---------------| | 200 OK F11 |<---------------| | |<---------------| | | | ACK F12 | |------------------------------------------------->| | Media Session | |<================================================>| | BYE F13 | |<-------------------------------------------------| | 200 OK F14 | |------------------------------------------------->| | | Figure 1: SIP session setup example with SIP trapezoid
Waarom is er bij F12 geen communicatie via de proxy servers meer? 3 Waarom staat “Media Session” aangegeven? 1 Zou het SIP protocol ook toe moeten staan dat Alice de BYE in F13 verstuurt? 1 Vraag u. Leg alle stappen F1 t/m F14 uit? 14 Vraag r. Vraag s. Vraag t.
Hieronder ziet u het zogenaamde Session Description Protocol behorende bij Alice’s INVITE. INVITE sip:
[email protected] SIP/2.0 Via: SIP/2.0/UDP pc33.atlanta.com;branch=z9hG4bK776asdhds Max-Forwards: 70 To: Bob <sip:
[email protected]> From: Alice <sip:
[email protected]>;tag=1928301774 Call-ID:
[email protected] CSeq: 314159 INVITE Contact: <sip:
[email protected]> Content-Type: application/sdp Content-Length: 142
Vraag v.
Wat bevat het SDP, conceptueel gezien, dan?
2
Pagina 5 van 6
UVA: Tentamen Inleiding Telematica (bachelors Informatica) 29 mei 2006. Schrijf netjes! Geef uitleg, houdt uw antwoorden kort! Studentnummer en naam op elk vel! Van welk applicatielaag protocol lijkt het formaat van het SDP van gekopieerd? 2
Vraag w.
(Alice's SDP not shown) The first line of the text-encoded message contains the method name (INVITE). The lines that follow are a list of header fields. This example contains a minimum required set. The header fields are briefly described below:
Vraag x.
Welnu, doet u eens een poging voor drie van de getoonde headerfields? 10
Pagina 6 van 6