2015May.pdf - THE UNIVERSITY OF HONG KONG FACULTY OF ENGINEERING DEPARTMENT OF COMPUTER SCIENCE COMP3322\/CSIS0322 Modern Technologies on World Wide Web

2015May.pdf - THE UNIVERSITY OF HONG KONG FACULTY OF...

This preview shows page 1 - 6 out of 17 pages.

THE UNIVERSITY OF HONG KONG FACULTY OF ENGINEERING DEPARTMENT OF COMPUTER SCIENCE COMP3322/CSIS0322 Modern Technologies on World Wide Web Date: May 19, 2015 Time: 2:30 pm - 5:30 pm University Number: Only approved calculators as announced by the Examinations Secretary can be used in this examination. It is the candidates' responsibility to ensure that their calculator operates satisfactorily, and candidates must record the name and type of the calculator used on the front page of the examination script. Candidates are allowed to bring into the examination hall one piece of A 4 paper with printed or written notes on both sides. Answer ALL questions in the space provided. Write your university number at the top of each page. Total mark is 100. Question Score 1 (20%) 2 (25%) 3 (20%) 4 (23%) 5 (12%) Total (100%) Page 1of17
Image of page 1
Question 1 (20%}: Answer the following questions. (1) What is the difference between WWW and the Internet? (2) Briefly explain the services provided in each layer of the Internet protocol stack. Page 2of17
Image of page 2
(3) Briefly explain the tunneling technology for 1Pv4-to-1Pv6 transition. (4) What are the benefits of using JSON in AJAX communication, as compared to using XML? Page 3of17
Image of page 3
(5) Briefly explain what the HTML DOM (Document Object Model) is (6) Briefly compare SOAP and RESTful web services. about. Page 4of17
Image of page 4
Question 2 (25%): Consider two hosts participating in a peer-to-peer application to data from each other, as shown in the following figure. Each hosts is connected Internet via a NAT-enabled router. The external IP addresses of the two routers are given the figure. Suppose each of the hosts runs a server process on port 8372 and a client process on port 2563. When host A requests data from host B, host A's client process the request to the server process on host B; and when host B requests data from host host B's client process send.s the request to the server process on Host A NAT-enabled Router 1 NAT-enabled Router 2 (1) (4%) Suppose host A resides in a home network 172.16.0.0/12 and host B resides home network 192.168.0.0/16. Allocate an IP address for host A, router l's interface B, router 2's interface j, respectively. (2) (7%) What technology needs to be adopted to enable host A (or B) to serve as a server behind a NAT-enabled router? What rule needs to be installed on router 1 and respectively? request to the in sends A, host A. Host B in a i, host router 2,
Image of page 5
Image of page 6

You've reached the end of your free preview.

Want to read all 17 pages?

  • Fall '13
  • Dr. C. Wu
  • Computer Science, IP address, Network address translation, IP address spoofing

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture