Self Studies

Computer Networks Test 5

Result Self Studies

Computer Networks Test 5
  • Score

    -

    out of -
  • Rank

    -

    out of -
TIME Taken - -
Self Studies

SHARING IS CARING

If our Website helped you a little, then kindly spread our voice using Social Networks. Spread our word to your readers, friends, teachers, students & all those close ones who deserve to know what you know now.

Self Studies Self Studies
Weekly Quiz Competition
  • Question 1
    1 / -0
    In which of the following phase of the TCP congestion control algorithm, the size of the congestion window increases additively?
    Solution

    In the slow start phase

    The size of the congestion window increases exponentially until it reaches a threshold.

    In congestion avoidance 

    The size of the congestion window increases additively until it reaches a threshold.

    In congestion detection

    the size of the threshold is dropped to half (multiplicative decrease). It may vary based on the type of congestion is severe or mild

  • Question 2
    1 / -0

    The transport layer protocols used for SMTP, TFTP, Telnet, SNMP and FTP respectively are:

    Solution

    SMTP stands for Simple Mail Transfer Protocol. SMTP is used when email is delivered from an email client, such as Outlook Express, to an email server or when email is delivered from one email server to another. SMTP uses port 25.

    POP3 stands for Post Office Protocol. POP3 allows an email client to download an email from an email server. The POP3 protocol is simple and does not offer many features except for download. Its design assumes that the email client downloads all available email from the server, deletes them from the server and then disconnects. POP3 normally uses port 110.

    IMAP stands for Internet Message Access Protocol. IMAP shares many similar features with POP3. It, too, is a protocol that an email client can use to download email from an email server. However, IMAP includes many more features than POP3. The IMAP protocol is designed to let users keep their email on the server. IMAP requires more disk space on the server and more CPU resources than POP3, as all emails are stored on the server. IMAP normally uses port 143.

  • Question 3
    1 / -0

    Consider a receive in a sliding window protocol uses of 6 bits window length. What is the sequence number of one hundred and eighty frame?

    Assume Sequence number starts with 0.

    Solution

    Concept:

    In a sliding window protocol,

    window size of sender = Ws = 26 bits = 64

    window size of sender = window size of receiver

    Calculation:

    ∴ Ws +Wr   =  n

    Ws = Wr

    ∴ 2Ws    =  

    ∴ n = 2 × 64  =  128

    1st frame → 0 (sequence number)

    128th frame → 127

    129th frame → 0

    180th frame → 52

  • Question 4
    1 / -0

    Consider a TCP session for which the bandwidth is 4 Gbps. TCP session starts with a hexadecimal number BCAF. What is the minimum time in seconds before BCAF sequence number can be used again?

    Solution

    4 Gbps → 1 second

    \(1b \to \frac{1}{{4 \times {{10}^9}\;}}\;seconds\)

    \(\frac{1}{8}\;B \to \frac{1}{{500 \times {{10}^6}\;}}\;seconds\)

    \(1 \; B \rightarrow \frac{8}{{4 \times {{10}^9}\;}}\;seconds\)

    Sequence number = 32 bits

    \({2^{32}}\;B \rightarrow \frac{8 \times 2^{32}}{{4 \times {{10}^9}\;}}\;seconds\)

    \({2^{32}}B \to 8.5899\;seconds\)

    The minimum time before this sequence number can be used again is 8.5899  ≈ 9 seconds

  • Question 5
    1 / -0

    Which of the following is TRUE about three way handshaking?

    I. The client sends the first segment, SYN segment along with window size.

    II. The server sends the second segment, a SYN + ACK segment with two flag bits set: SYN and ACK.

    III. The server sends the third segment, ACK segment. It consumes one sequence number.

    Solution

    The client sends the first segment, an SYN segment, in which only the SYN flag is set. This segment is for synchronization of sequence numbers. This segment does not contain an acknowledgment number. It does not define the window size either.

    The server sends the second segment, an SYN + ACK segment with two flag bits set: SYN and ACK. An SYN + ACK segment cannot carry data but does consume one sequence number.

    The client sends the third segment, ACK segment. It acknowledges the receipt of the second segment with the ACK flag and acknowledgment number field. An ACK segment, if carrying no data, consumes no sequence number.

  • Question 6
    1 / -0

    Consider a client has established TCP connection with a server and sending data. The propagation delay is 5 ms and there are no timeouts and errors during transmission. The size of the receiver advertised window is 128 KB, the slow-start threshold at the client is 64 KB, and the maximum segment size is 4 KB. The connection is established at time T = 10 ms. What is the size of the congestion window (in KB) at time 90 ms after all acknowledgements are processed?

    Solution

    Data:

    Propagation delay = 5 ms

    Round Trip Time RTT = 2 × 5 = 10 ms

    Size of receiver window = 256 KB

    Slow start threshold = 64 KB

    Maximum Segment size MSS = 4 KB

    At t = 10, there are no timeouts.

    Threshold = 32 KB

    MSS = 4 KB

    Explanation:

    The state of congestion window changes as below

    At  10 ms: 1 MSS

    Now, for every RTT, MSS will grow exponentially until the slow start threshold/2 is reached.

    T

    MSS

    size in KB

    Phase

    10

    1

    4

     

     

     

    Slow start

    20

    2

    8

    30

    4

    16

    40

    8

    32

    50

    16

    64 KB (threshold)

    60

    17

    68

     

     

    Congestion avoidance

    70

    18

    72

    80

    19

    76

    90

    20

    80

    The size of the congestion window size is 80 KB.

  • Question 7
    1 / -0

    Consider a host, sending 2000 bytes of data in a TCP connection. The first byte is numbered as 12345 in decimal. If the data is divided into 7 segments in which the first 6 segments are equal data each and the last segment is having 500 bytes of data. Find the sum of last byte number of 6th segment and 7th segment?

    Solution

    Data size = 2000 bytes 

    Size of 6 segments + Last segment = 2000 bytes

    Size of 6 segments = 1500 bytes

    Since each segment length is equal

    Size of 1 segment = \(\frac{1500}{6}= 250 \;bytes\)

    First segment: 12345 to 12594  \\ (12345+250-1=  12594)

    Second segment: 12595 to 12844

    Third segment: 12845 to 13094

    Fourth segment: 13095 to 13344

    Fifth segment: 13345 to 13594

    Sixth segment: 13595 to 13844

    Seventh segment: 13845 to 14344

    Sum =  13844 + 14344 = 28188

    Tips and Tricks:

    Seventh segment last byte: 12345 + 2000 - 1 = 14344

    Sixth segment last byte: 12345 + 250×6 - 1 = 13844

  • Question 8
    1 / -0

    Consider the following statements about socket API functions.

    I. Bind() converts an unconnected active TCP socket into a passive socket.

    II. Listen() waits for incoming connections.

    III. Accept() is used to associate a socket with a port on the local machine.

    Which of the above statements are incorrect?

    Solution

    Bind() is used to associate a socket with a port on the local machine. The port number is used by the kernel to match an incoming packet to a process.

    Listen() waits for incoming connections. It converts an unconnected active TCP socket into a passive socket. Bind() must be called before Listen().

    accept() gets the pending connection on the port user is listen() ing on.

  • Question 9
    1 / -0
    A host machine uses the token bucket for congestion control with a capacity of 9 GB and the maximum output rate is 250 MBps. The minimum time required to transmit the data is 50 seconds. Tokens arrive to sustain output at a rate of x MBps per second. Find the value of x.
    Solution

    C = capacity of bucket = 9 GB

    M = maximum output rate = 250 MBps

    e = Input rate​

    S = minimum time required to transmit the data

    \(S = \frac{C}{(M-e)}\)

    \(50 = \frac{(9 ×10^{9})}{(250×10^{6}-e)}\)

    e = \(70 \times 10^6\)Bps

    e = 70 MBps

    x = e = 70

    Notes:

    Bandwidth is always taken in power of 10, that is,

    1KB = 103 B

    1MB = 10B

    1GB = 109 B

Self Studies
User
Question Analysis
  • Correct -

  • Wrong -

  • Skipped -

My Perfomance
  • Score

    -

    out of -
  • Rank

    -

    out of -
Re-Attempt Weekly Quiz Competition
Selfstudy
Selfstudy
Self Studies Get latest Exam Updates
& Study Material Alerts!
No, Thanks
Self Studies
Click on Allow to receive notifications
Allow Notification
Self Studies
Self Studies Self Studies
To enable notifications follow this 2 steps:
  • First Click on Secure Icon Self Studies
  • Second click on the toggle icon
Allow Notification
Get latest Exam Updates & FREE Study Material Alerts!
Self Studies ×
Open Now