Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:

Excercise_5

.doc
Скачиваний:
15
Добавлен:
25.02.2016
Размер:
427.01 Кб
Скачать

Начало формы

Dauletbay Gulzat CSSE-111

Exercise 5

Question1. XML and HTML

One necessary component to facilitate electronic commerce is the capability to exchange data over varying systems. In this section, you will strengthen your knowledge of XML as a portable language that enables data to be handled by any computer system.

  1. What does the term “XML” stand for? What is the function of XML tags, and how does the function of XML tags differ from the function of HTML tags?

Another text document markup language is XML (eXtensible Markup Language). While HTML tags are primarily concerned with how text should be displayed, XML tags can be used to describe what a piece of text means. Another major difference between HTML and XML is that there are no predefined tags in XML. Users have the freedom to define their own tags.

  1. Contrast the flexibility of using XML tags and HTML tags.

Due to XML's flexibility and interoperability, it is becoming the standard for exchanging data over the Internet.

  1. What is XSL? What is the function of XSL in terms of XML?

Since XML just organizes data by assigning them descriptive tags, Extensible Stylesheet Language (XSL) is used to specify how an XML document would be interpreted and displayed by the browser.

  1. What does a DTD file do?

DTD (document type definition) .Applications can use the DTD to read and display the content of the document. One advantage of using the DTD is that changing the document format would involve just modifying the DTD.

e. What is one reason why storing data in XML may be preferred to enable multiple systems to exchange data?

Download and save Movies100EX.xml and display.html on your Desktop.

Open Movies100EX.xml using Notepad.exe to see the content of the XML file.

Because XML is platform-independent and therefore data stored in XML format should be exchangeable among any system.

Question 2. Network Transmission

In this section, you will explore different network components and trace through how a string, "http://www.cmu.edu", is transmitted from a computer at home, through a modem using services provided by an ISP, and reaches the website on the Internet.

When requesting a Web page, the user types a URL in a Web browser that converts the string into binary so that the computer can understand. The binary data is then transmitted as digital signals that are sent through the modem at home to the receiving modem maintained by the ISP.

Figure 1 Network diagram

  1. How does a dial-up modem work? Can you explain the noise you would hear if you were to pick up the phone when the modem is transmitting data? What happens to the data at the receiving modem?

The dial-up modem converts the digital signals into analog tones, causing the noise made by the modem. The analog signals are then converted back to digital signals at the receiving modem.

  1. What is DSL, and why is it better than a dial-up modem?

DSL is digital subscriber line technologies, such as ADSL, HDSL, and VDS.

DSL modem connects computer to an Internet Service Provider (ISP) to provide broadband Internet service from 128 kilobytes per second (Kbps) to 3000 Kpbs. DSL better than dial-up because:

You can leave your Internet connection open and still use the phone line for voice calls. The speed is much higher than a dial-up modem.

  1. What is an ISP and what does it do?

ISP – (Internet Service Provider) company that maintains an Internet host computer

  • provides Internet access to businesses and individuals

  • charges monthly fee

  • offered over telephone lines, cable TV, or satellite dish

  1. A website is hosted by a computer connected to the Internet. In order to reach the website on the Internet, your computer sends a request for an IP address through the ISP. What is an IP address?

Internet Protocol Address (or IP Address) is an unique address that computing devices use to identify itself and communicate with other devices in the Internet Protocol network.

  1. What service does an ISP provide to determine the destination IP address for a URL?

 Domain Name System

  1. After the IP address is returned to your computer, data is sent from your computer to the destination computer hosting the website. The data sent is split into packets. What information is contained in these packets?

These packets have requests for Web pages, with the address of your computer, the destination IP address, sequence numbers

  1. The packets of data are then sent to a router. What does a router do? What information does a router store? How does it handle packets?

A router is a device that is connected to more than two networks,that makes decisions about the best route for data.Router stores a list of host  IP addresses to which was connected and list of IP addresses of its nearby routers. If the destination address attached to the packets is in the router’s host table, the router will deliver them to the host; otherwise, the router must send these packets to another router. This process will go on until these packets reach their destination.

h. One way to ensure that the data is transmitted correctly is to use parity bits, which involves keeping track of the number of 1’s and 0’s the data should contain. Using even parity protocol, fill in the parity bits for the following data:

Data

Parity Bit

00000000

 0

01010101

 0

11010101

 1

01010111 

 1

11111111

 0

10000000

 1

Question 3. Live Networks

You will now use application programs to see a list of gateways through which a packet passes while traveling to its final destination:

Let’s first explore the properties of DNS servers using NSLookup, a program to query Internet domain name servers.

Go to an Internet website such as http://www.webreference.com/cgi-bin/nslookup.cgi and enter the domain name "www.yahoo.com". You can also locate other NSLookup sites by searching for "NSLookup gateways" in http://www.google.com.

  1. How many IP addresses are listed? How are they different?

Server: google.com

Addresses: 72.14.203.138, 72.14.203.139, 72.14.203.100, 72.14.203.101, 72.14.203.101, 72.14.203.102, 72.14.203.113

ThThey are belong to same network which IP address is 72.14.203._

B But the difference between them is that the last numbers in the IP addresses are different.

To balance the heavy workload on one Web Server when thousands of people visit

c. Recall the function of a DNS server. How does a DNS server handle a request to a popular destination such as "www.yahoo.com"?

Now let’s explore the properties of routers.

The program you will be using is called Traceroute. It is called Tracert in some systems such as Windows. The Traceroute program attempts to trace the route an IP packet would follow to a specified Internet host by sending three probe packets and then listening for a "time exceeded" reply from a gateway. If there is no response within a three second timeout interval, a "*" is printed for that probe.

In the Windows command console, at the prompt C:\, type "tracert www.yahoo.com". If that does not work for you, you may be behind a firewall. Try to locate other Traceroute sites by searching for "Traceroute gateways" with http://www.google.com.

Dynamically locates an IP address matching the domain name.

d.How did you do Traceroute? From what site did your Traceroute start? Record the result of this command.

  1. What is indicated by each part of "www.yahoo.com"?

Com means top level means. (generic)

Yahoo means the domain in which the machine www resides.

www(World Wide Web) means the actual name of the machine (server) which provides the Web Service

  1. What is the IP address of www.yahoo.com used in this Traceroute?

209.191.122.70

g. How many hops did it take to reach the destination?

21

  1. What is the IP address of the node that took the longest time?

Do Traceroute to "www.yahoo.com" again.

98.139.183.24

i. Record the result of this command.

j. Did the two Traceroute results show that the packets were sent through the same path? Explain your answer.

Traceroute command can also be used to determine where packets may have been lost. You can check the following: -whether the packets were sent successfully from your computer to your ISP -whether the packets were sent successfully from your ISP to the destination

Not the same path, the yahoo IP address is 98.139.183.24

To balance the heavy workload on one Web Server, there are many Web Servers for people to visit.

Another cause is that each node from the source to destination exchanges the data by their real situation and algorithm dynamically, so the path computed by nodes maybe different.

k. Using Traceroute, you noticed that your packets were lost before they reach your ISP server. Where may the problem be (your server, your ISP server, or the destination server)?

The problem maybe on our server.

l. What if your packets are lost after they have reached your ISP?

The problem maybe occurs on the routers between the ISP and the destination server.

m. What if your packets are lost just before it reaches your destination server?

The problem maybe occurs on the routers between the ISP and the destination server.

n. Do a Traceroute to www.icarnegie.com. What may be a cause of the Tracert result?

o. List two problems that may be diagnosed using Traceroute?

Our ISP server is down and can not shared printer

The destination server is down and can not access email.

Question 4. Network Failure

In addition to Tracert, other network tools such as IPconfig and Ping can be used to troubleshoot network issues.

You can use ipconfig command to see whether your computer is connected to the Internet.

Pull up the command console. Type “ipconfig /all”.

  1. Are you connected to the Internet? Paste the screenshot showing the result of the command, ipconfig.

  1. What is your IP address?

192.168.1.100

c. What are the IP addresses of your DNS servers?

76.73.126.98

168.95.1.1

You can use Ping to test the response of the destination server.

  1. First, launch the Windows Command Console. Type, “ping www.yahoo.com”. Copy and paste the screenshot of the Ping command.

  1. Did you get a response from the target server?

No, I can’t get.

f. List two possible explanation(s) for the result of the Ping command below:

One explanation is the source host is not connected to the network.

The other explanation is: the Destination host is not exists, or power off, they must be unreachable.

Other explanation perhaps, the network is very busy, unstableness or not dependable, the packets of request all lost, so the request can’t be unreachable.

Конец формы

Соседние файлы в предмете [НЕСОРТИРОВАННОЕ]