Test 3

powered by FreeFind

Modified: 

Name _____________

0. (1 pt) What does the smiley  :-X  mean?

1. (10 pt)   

Give the XML that defines the family tree of descendants for one set of grandparents, similar to that below. The tree should be organized by relationship to the grandparents (son, daughter, grandson, granddaughter) and include name and date of birth for each person in the tree.

           grandparents
                 |                     
|                |                   |
son          daughter     daughter 
                 |                 
   |                              |
grandson               granddaughter

Verification and display of the XML is described below.

  1. XML to define two employees with first and last names. As a test, copy the following to file named family.xml:
<?xml version="1.0"?>
<Employees>
   <Employee>Secretary
      <First>James</First>
      <Last>Borg</Last>
    </Employee>
    <Employee>Manager
       <First>Joyce</First>
       <Last>English</Last>
    </Employee>
</Employees>
  1. JavaScript to test that the XML is well-formed and format to reflect the hierarchy. Copy to file named parser.htm in same directory as family.xml file.
<SCRIPT LANGUAGE="JavaScript">
var xmlDoc = new ActiveXObject("Microsoft.XMLDOM");
  try { xmlDoc.load("family.xml");
         document.write("<pre>");
         traverse(xmlDoc.documentElement,"");
         document.write("</pre>");
   }
   catch(e) { document.write( "URL "+xmlDoc.parseError.url+" Line "+xmlDoc.parseError.line+
                                          " position "+xmlDoc.parseError.linepos+" "+
                                           xmlDoc.parseError.srcText + " " + xmlDoc.parseError.reason);
   }
   function traverse(node,indent) {
      var i, children, type = node.nodeTypeString;
      if (type == "element") {
         document.write("<br>" + indent + node.nodeName);
         children = node.childNodes;
         if (children != null)
            for (i=0; i<children.length; i++)
               traverse (children.item(i), indent + "| ");
      }
      else document.write(" " + node.text);
   }
</SCRIPT>
  1. In the browser address enter: parser.htm to verify that the XML in family.xml is well-formed. The browser result is:
Employees
|    Employee Secretary
|    |    First James
|    |    Last Borg
|    Employee Manager
|    |    First Joyce
|    |    Last English

2. (5 pts) An HTML page is as follows:

<html><body>
<a href="www.ius.edu">Click here</a>
</body></html>

A user clicks the hyperlink.

  1. What are the line(s) sent then by the browser to the Web server.
  2. What are the first six lines sent from the Web server to the browser.

The above diagrams a typical network consisting of:

3. (25 pts)

The characters of your first name are transmitted from Host A to Host B as a single packet to an UDP application on an 802.3 LAN as in the diagram above.

  1. List five protocols required to send the one UDP datagram from Host A to Host B.
  2. Give the details of the message containing your first name as sent by Host A to Host B.
    1. Ethernet - Give the frame (see page 276 of the text) source and destination address, length, data, and pad fields.
    2. IP - Give the header (see page 434 of the text) total length, fragment offset, source and destination address, and data.
    3. UDP - Give the complete header (see page 526 of the text) and data, the checksum is not computed.
  3. The packet crosses the point-to-point network having a maximum packet size of 40 bytes. Which protocol handles fragmentation?
  4. Give the details of the message containing your first name as received by Host B.
    1. Ethernet - Give the frame (see page 276 of the text) source and destination address, length, data, and pad fields.
    2. IP - Give the header (see page 434 of the text) total length, fragment offset, source and destination address, and data.
    3. UDP - Give the complete header (see page 526 of the text) and data, the checksum is not computed.

4. (10 pts) For the network diagram above:

  1. What should be the default gateway for Host A?
  2. What should be the default gateway for Host B?
  3. Give the route command(s) to define the static routing table for Gateway/router A.
  4. Give the route command(s) to define the static routing table for Gateway/router B.

5. (10 pts)

The following program returns a delayed quote of IBM stock price. Though not necessary, the StockQuote.vbs file can be executed on a computer with .NET installed at command prompt by: cscript StockQuote.vbs

  Set gr = CreateObject("MSSOAP.SoapClient") 
  gr.mssoapinit "http://services.xmethods.net/soap/urn:xmethods-delayed-quotes.wsdl"
  wscript.echo gr.getQuote ("IBM")

6. (30 pts) Project Questions - Do any 5.

  1. Why does ATM use small, fixed-length cells?
  2. Consider the design of a peer-to-peer, UDP-based application such as the Master Mind Game, in which the identical program code is to run on at least two peers. Explain the key problem facing the designer that would not be an issue in a client-server relationship.
  3. Give an example of steganography in data communication or computer networking. Explain how the true message is represented.
  4. How would SMB (Server Message Block) protocol be useful in a networked game?
  5. Explain two known vulnerabilities of WEP (Wired Equivalent Privacy).
  6. List the protocols used and explain whether a client-server, a peer-to-peer or other relationship was utilized the by the BeatBox application.
  7. Suppose three physical LANs, P1, P2, P3 are configured as two Virtual LANs, V1 and V2 with P1 and P2 on V1 and P3 on V2. Can a machine on P1 now ARP a machine on P2? Explain.
  8. Explain a digital signature in the context of public-key (e.g. RSA) signatures.
  9. What is the function of the Universal Description, Discovery and Integration (UDDI) protocol?