The copperbelt university



Download 290.5 Kb.
Page7/9
Date20.03.2023
Size290.5 Kb.
#60933
1   2   3   4   5   6   7   8   9
CS 460 SESSIONAL EXAM 2020 AUGUST ANSWERS
BBF221 FINAL CA - FT
QUESTION SIX

  1. List three reasons why most network specialists prefer Link State Routing instead of Distance Vector Routing. [3 marks]

  2. Explain in detail how the traceroute program works. [3 marks]

  3. Explain briefly the Dynamic Server Creation concept [4 marks]

  4. Give the sequence of procedure calls for both server and client for connection-oriented application. [4 marks]

  5. Draw the format of ICMP header [2 marks]

  6. Suppose you need to send one message to three different users: user1@example.com, user2@example.com, and user3@example.com. Is there any difference between sending one separate message per user vs. sending only one message with multiple (i.e., three) recipients? Please explain. [2 marks]

  7. Suppose a TCP SYN message is sent from a client with IP address 128.119.40.186 and client port number 5345 to a server with IP address 41.123.7.94 and server port number 80 HTTP). Once the TCP connection has been established, what will be the client-side IP address, client--‐side port number, server‐side IP address and server-side port number of the TCP segment carrying the HTTP GET message. [2 marks]

ANSWER


  1. Fast, loopless convergence.

Two phases are used: (a) Rapid transmission via flooding and,
Local computation of the routes. Cf Distance vector protocols.
Support of precise metrics and multiple metrics - if desired.
Avoids the problem of counting to infinity, finer grain metrics are now possible.
Support of multiple paths to a destination.
If there are some almost equivalent routes in terms of cost, these may be used in link state protocol systems.
Separate representation of external routes.

  1. Traceroute sends a series of packets for which it sets the IP “Time To Live” (TTL) hop-count field to different values. Setting the TTL to N will result in the Nth router generating a “Time Exceeded” ICMP message which it sends back to the originating host. Because ICMP messages are sent using IP packets, traceroute can extract from their source address the IP address associated with the router at the Nth hop. (Strictly speaking it’s not the IP address associated with the router, since routers have one IP address for each of their interfaces.)

  2. Most concurrent servers operate dynamically. The server creates a new thread for each request that arrives. The server program, actually, is constructed in two parts: one that accepts requests and creates a new thread for the request, and another that consists of the code to handle an individual request. When a concurrent server starts executing only the first part runs. That is, the main server thread waits for a request to arrive. When a request arrives, the main thread creates a new service thread to handle the request. The service thread handles one request and then terminates. Meanwhile, the main thread keeps the server alive - after creating a thread to handle a request, the main thread waits for another request to arrive. If N clients are using a given service on a single computer, there are N + 1 threads providing the service: the main thread is waiting for additional requests, and N service threads are each interacting with a single client.


SERVER CLIENT

getprotobyname gethostbyname


socket getprotobyname




bind socket

listen


connect
accept recv


send

close close



  1. ICMP is an error reporting protocol. ICMP uses IP to transport each error message. ICMP header contains an 8-bit integer message TYPE field that identifies the message, an 8-bit CODE field that provides further information about the message type, and a 16-bit Checksum field.







  1. If a separate message is sent for each of the users, one MAIL, one RCPT, and one DATA command will be issued for each of the messages, resulting in the transmission of three copies of the message data. If only one message with multiple recipients (three) is sent, one MAIL, multiple RCPT, and one DATA command will be issued, resulting in the transmission of only one copy of the message data.

There is not much difference between sending one message to multiple users and sending one separate message per user. Most of the effects come on the sender’s side. While sending a message to multiple recipients, the message is first sent to the outgoing email server. The email server then makes a copy for each recipient and forwards them to corresponding domain. Since there are multiple recipients of same message, the server has to send them at the same time. In this case, the usage of processor of the server is higher than usual, but there is benefit of saving disc space because the server keeps only one copy of the message. On the other hand, while sending separate message per user, there is no pressure on email server. The server forwards the message as it receives from the sender. But the disadvantage is that the messages with different email addresses have to be saved on the server even if the message is same.



  1. Exactly as specified in the problem statement.




Download 290.5 Kb.

Share with your friends:
1   2   3   4   5   6   7   8   9




The database is protected by copyright ©ininet.org 2024
send message

    Main page