Self Studies

Computer Networks Test 2

Result Self Studies

Computer Networks Test 2
  • 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
    Let X and Y be the two stations on an Ethernet and both stations have a ready state of frames to send. Both X and Y attempt to transmit a frame after the first collision. What is the probability that neither X nor Y wins?
    Solution

    Using the Back-off algorithm:

    Since both 1 and 2 transmit after the first collision.

    Range (0, 21 -1) = Rang (0, 1)

    Station whose time is less wins the or the person whose time is more back-offs

    X

    Y

    Situation

    0

    0

    No one wins

    0

    1

    X wins

    1

    0

    Y wins

    1

    1

    No one wins

     

    The probability that neither X nor Y wins = \(\frac{2}{{4\;}} = 0.5\)

  • Question 2
    1 / -0
    If an 16 bit frame sequence numbers is used in selective repeat protocol then the maximum window size for the data transmission is _____?
    Solution

    Concept:

    For any sliding window protocol,

    Available Sequence Numbers ≥  Sender window size + Receiver window size

    In Selective repeat Protocol, sender  window size = receiver window size = W

    Calculation:

    With 16 bits, the total number of sequence numbers possible = 216.

    Available Sequence Numbers ≥  Sender window size + Receiver window size

    216 ≥  W + W

    ∴ W ≤ \(\frac{2^{16}}{2}\) 

    Wmax = 215 = 32768

    The maximum window size for the data transmission is 32768.

  • Question 3
    1 / -0

    Sender X wants to transfer (7766554433221100)8 message to sender Y. Sender X uses the CRC polynomial x11 + x10 +x8+ x5 + x4 + x + 1. What is the corresponding octal number generated by the CRC generator?

    Solution

    Concept:

    If the polynomial is of order n then the number bits generated by CRC generator is n + 1.

    Data:

    Message = (7766554433221100)8 = 0010 1010 0100 1110

    CRC polynomial = x11 + x10 +x8+ x5 + x4 + x + 1

    Explanation:

    CRC polynomial = x11 + x10 + 0.x9 + x+ 0.x7 + 0.x6 + x5 + x4 + 0.x3 + 0.x2 + 1.x + 1

    CRC generator generates = (110 100 110 011)2 = (6463)8 

  • Question 4
    1 / -0
    A bit-stuffing based framing protocol uses an 8-bit delimiter pattern of HDLC’s flag. If the input bit string is 1011111110111110, then the output bit string after stuffing is
    Solution
    In the HDLC the flag is the predetermined bit stream 01111110. Therefore, sender will stuff the bit 0 after each occurrence of 011111. So, data sequence after bit stuffing will become 101111101101111100.
  • Question 5
    1 / -0
    In GB4, if every 8th packet is lost and we have to send 16 packets, then number of packets to be transmitted is __________.
    Solution

    1st lost:

    1

    2

    3

    4

    5

    6

    7

    8

    9

    10

    11


    8th packet is lost, and window size is 4 then packet number 8, 9, 10 ,11 is send again

    Note that out of 8,9,10,11 packet 9th packet is first packet send

    2nd lost:

    8

    9

    10

    11

    12

    13

    14

    15


    ∴ 12th packet is the 8th lost packet

    3rd lost:

    12

    13

    14

    15

    16


    ∴ 16th packet is the 8th lost packet

    16


    number of packets transmitted = 11 + 8 + 5 + 1 = 25 

  • Question 6
    1 / -0
    In a simplified time slotted MAC protocol, where each host send data with a probability of 0.3 in every slot. There is no backup algorithm used in collision. What is the maximum number of hosts which this protocol can support, if each host has to be provided a minimum throughput of 0.21 frames per slot?
    Solution

    Data:

    Probability = p = 0.3

    Throughput = T = 0.21

    Number of hosts = n

    Formula:

    \(nT={{~}^{n}}{{C}_{1}}\left( p \right){{\left( q \right)}^{n-1}}~\)

    Solution

    n × 0.21 = n × (0.3) × (0.7)n-1

    0.7 = (0.7)n-1

    n – 1 = 1

    ∴ n = 2

  • Question 7
    1 / -0
    The message 11010101 is to be transmitted using the CRC polynomial x3 + x2 + 1 to protect it from error. The message that should be transmitted is
    Solution

    Message: 11010101

    CRC polynomial: x3 + x2 + 0.x+1

    CRC generator: 1101

    Since polynomial is of order 3 append 3 0’s at the end of message

    Message: 11010101000

     

     1101 0101 000

           ⊕ 1101
               _____________

               0000 01010

                      ⊕ 1101
                    __________

                           01110

                         ⊕ 1101
                        ________

                                 110

    Transmitted Message: 11010101110
  • Question 8
    1 / -0

    In a network, two systems are connected and the distance between the system is 5000 km. The propagation speed of the medium is 2 × 107 m/s. The bandwidth of the network is 500 MBps. If the average packet size is 108 bits and the network is used to its full capacity. The minimum size of the sequence number field is n bits. The processing delay at nodes is 0 ms. What is the value of n in case of Go-Back-N sliding window protocol?

    Solution

    Data:

    Distance = 5000 km

    Bandwidth = 500 MBps = 500 × 106  × 8 bps = 4 × 109 bps

    Propagation speed = 2× 107 m/s

    Average packet size = 108 bits

    Window size in Go-Back-N protocol = 2n – 1

    Formula:

    \({\rm{Transmission\;time}} = \frac{{{\rm{packet\;size}}}}{{{\rm{bandwidth}}}}\)

    \({\rm{Propagation\;time}} = \frac{{{\rm{Distance}}}}{{{\rm{velocity}}}}\)

    Calculation:

    \({\rm{Transmission\;time}} = \frac{{{{10}^8}}}{{4 × {{10}^9}}} = 25\;ms\)

    \({\rm{Propagation\;time}} = {\rm{\;}}\frac{{5000 × 1000}}{{2 × {{10}^7}}} = 250{\rm{\;ms}}\)

    RTT = 2 × Propagation time = 2 × 250 = 500 seconds

    Number of packets that can be transmitted =  500 ÷ 25

    ∴ window size = 20 

    2– 1 ≥   20

    2n ≥ 21,

    n > 4

    n = 5

  • Question 9
    1 / -0

    Which of the following statement/s is/are false?

    I. In the continuous ARQ protocol, the sender sends the frames continuously without waiting for acknowledgement.

    II. In go-back-n ARQ, the timer expires the sender sends all outstanding frames.  

    III. In go-back-n ARQ, the receiver window can slide one or more slots at time when a correct frame has arrived.
    Solution

    I. True: The most popular ARQ protocol is the go-back-N ARQ, where the sender sends the frames continuously without waiting for acknowledgment. That is why it is also called as continuous ARQ.

    II. True: If no acknowledgement is received after sending N frames, the sender takes the help of a timer. After the time-out, it resumes retransmission.

    II. False: A send window can slide one or more slots when a valid acknowledgment arrives. The receive window also slides but only one slot at a time. When a correct frame is received and a frame is received only one at a time, the window slides.
  • Question 10
    1 / -0

    Consider two systems A and B connected with each other and bound to stop and wait protocol. System A needed to transfer 570 packets to system B but system A ended up sending 750 packets in the link. The error in the link is _____ percentage?

    Solution

    Concept:

    In stop and wait protocol, packet lost during transmission is the only packet retransmitted.

    Data:

    Total packet send = 750

    Actual packet = 560

    Error rate = p

    Calculation:

    Total number of packets transmitted by the sender:

    570 + p× (570) + p × (p × 570) + p × (p × p× 570) … = 750

    570(1 + p + p2 + p3 …) = 750

    \(570 × \left( {\frac{1}{{1\; - p}}} \right) = 750\)

    \(1- p=\frac{{570}}{{750}}\)

    p = 1 - 0.76 = 0.24

    Error in link = 0.24× 100 = 24%.

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