Sie sind auf Seite 1von 3

Computer Networks Exam ­1st & 2nd  term ­ ETSIAp – June, 9th 2008 

NAME:____________________________________________________________________________

1. The internet is a network of __NETWORKS_______. Complete the sentence. 

2. A computer connected to the network is also called as  HOSTS/END­SYSTEMS. 

3. What are the two tasks of a router? 

Routing and forwarding

4. What is the name of the documents that detail Internet protocols? 

RFC – Request For Comments

5. Name two different types of network services? 

Virtual circuit and datagram (Connection­oriented / Connectionless).

6. Which elements can be found on the so­called network edge? 

Hosts (clients and servers)

7. And in the network core? 

Routers and links

8. List two different models for network applications. 

Client/server & Peer­to­peer

9. How does a circuit switching network work? 

It creates an electric circuit connecting both ends of the communication

10.What is the propagation delay? 

the time it takes the signal to cover the distance between two ends of a link

11.On the client/server model: Clients issue _REQUESTS_ and servers provide __RESPONSES___.  

12.What is a URL? 

It's a Uniform Resource Locator (it's use to specify a document's location on the Internet)

13.What HTTP POST method is used for? 
To upload data to a web server.

14.What are cookies? What they are for? 

Small data files. Cookies are used to store state information on the user's browser.

15.In the FTP application, who starts a data connection when using passive mode? 

The client.

16.In SMTP protocol, what data sequence determines the end of the DATA command? 

An empty line containing a single dot (<.><CR><LF>)

17.Using Java code, create a connection to www.upv.es webserver. 

Socket s = new Socket ( “www.upv.es”, 80);

18.How do we obtain the data contained on DatagramPacket p stored on String s? 

s = new String( p.getData(), 0 , p.getLength()); 

19.What is UDP protocol header size? 

8 bytes

20.What is the best case utilization of an stop & wait protocol if data transmission time is 10 msec, 
acknowledge transmission is 3msec and propagation delay is 1 msec? 

10 10 1
= =  so it's 33.33% channel utilization
1032x1 15 3

21.What happens when a timer expires in the "selective repeat" sliding window protocol? 

A single frame is retransmitted (as the name suggests)

22.What is the TCP Congestion Window value at the end of Slow Start? 

CongWin>=Threshold

23.If a TCP segment sequence number is S and the number of bytes it carries is L, what will be the 
value of the acknowledgment number sent back from the other end (once segment is successfully 
received)? 

ack = S+L+1

24.What do you receive if you connect to TCP port 22 using telnet or sock application? 

The protocol version of the SSH server (or nothing if a server is not there).
25.You are given the function ProcessClient(Socket s) to make a concurrent server listening on port 
8000. Write the server's main loop.

while ( true ) {
 Server server = new Server (ss.accept());
 server.start();
}

I've assumed the whole server code could be like this:

class Server extends Thread {
 Socket client=null;
 Server(Socket s) {client =s;} 
 void ProcessClient(Socket s) {....} // it is provided !!!
 void run() {ProcessClient(client);}
 public static void main(String arg[]) {
ServerSocket ss = new ServerSocket(8000);
while ( true ) {
  Server server = new Server (ss.accept());
server.start();
}
 }
}

Das könnte Ihnen auch gefallen