Self Studies

Computer Networks Test 4

Result Self Studies

Computer Networks Test 4
  • 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
    If the value of MF is 1 and fragment offset is 0, what can be said about the type of fragment?
    Solution

    The relation between the MF and fragment offset is given below:

     MF Fragment Offset Property
    10 1st fragment
    1

    ≠0

     Intermediate fragment
    0

    ≠0

     Last fragment
    00 Single datagram i.e. Not fragmented
  • Question 2
    1 / -0

    Which of the following is/are not true about the IP based router functionality

    1. It is necessary for a router to implement either RIP or OSPF routing algorithm 

    2. A router reassembles the IP packet in some special scenarios. 

    Solution

    Statement 1:  False.

    • A router need not necessarily implement any (RIP or OSPF) routing protocol .
    • If no routing protocol is specified for a router, default routing with address 0.0.0.0 is implemented.

    Statement 2:  False

    • Re-assembly of IP fragments into a single IP packet is done only at the receiver site.

    Therefore both statement are not true

  • Question 3
    1 / -0

    Consider and IP packet arrived at a router of size 1850 bytes. If the header length field in IPv4 header is 1010 and the packet is sent to a router whose Maximum transmission unit is 160 bytes then what is the number of fragments that the IP packet will be divided?

    Solution

    Data:

    Packet size = 1850

    Maximum transmission unit= 160 bytes

    Header length = (1010)2 = (10)2 = 10 ×4(scaling factor) = 40bytes 

    Calculation: 

    Data length = 1850 - 40 = 1810 bytes

    Data of one packet = 160 - 40 = 120

    Number of fragments = \(\lceil\frac{{1810}}{{120}}\rceil=16\)

  • Question 4
    1 / -0
    The maximum number of IPv4 router addresses that can be listed in the record route (RR) option field of an IPv4 header is _____.
    Solution

    Concept:

    Record route record the routers an IP packet takes as it propagates from source to destination device.

    Format:

    Code

    (1 byte)

    Length

     (1 byte)

    Pointer 

    (1 byte)

    Data

     

    In IPv4, for options, 40 bytes are reserved. 3 bytes are already used 1 for code, 1 for length and 1 for the pointer. So only 37 bytes are remaining.

    An IP address is of 4 bytes (32 bits)

    Router addresses that can be listed in record route option field = \(floor\left( {\frac{{37}}{4}} \right) = 9\)

  • Question 5
    1 / -0

    Which of the following statement is/are incorrect about the Routing Information Protocol (RIP) protocol and Open Shortest Path First (OSPF) protocol?

    (P) RIP packets are sent using TCP.

    (Q) OSPF packets are sent using TCP.

    (R) OSPF packets are sent using UDP.

    Solution

    Statement P: Incorrect

    RIP uses distance vector routing (DVR) protocol which employs the hop count as a routing metric and RIP uses the UDP as its transport protocol with port no 520.

    Statement Q and R: Incorrect

    OSPF uses link-state routing (LSR) protocol works within a single Autonomous System. OSPF encapsulates its data directly into IP Packets and does not use either TCP or UDP. Therefore, OSPF is not send using UDP packet

  • Question 6
    1 / -0
    Consider the store and forward packet switched network in which bandwidth of each link is 2 × 106 bytes/sec. A user on host A sends a file of size 5000 bytes to host B through routers R1, R2, and R3 in three different ways. In the first case a single packet containing the complete file is transmitted from A to B. In the second case, the file is split into 20 equal parts, and these packets are transmitted from A to B. In the third case, the file is split into 40 equal parts and these packets are sent from A to B. Each packet contains 100 bytes of header information along with the user data. Consider only transmission time and ignore processing, queuing and propagation delays. Also assume that there are no errors during transmission. Let T1, T2 and T3 be the times taken to transmit the file in the first, second and third case respectively. Which one of the following is CORRECT?
    Solution

    File size (data) = 5000 byte

    Header size = 100 byte

    Bandwidth (BW) = 2 × 106 byte/second

    First case,

    \(Transmission\;time\left( {{T_t}} \right) = \frac{{data\; + \;header}}{{BW}}\;\)

    \({T_t}\; = \;\frac{{5000 + 100}}{{2\; \times \;{{10}^6}}}\; = \;2.55\;ms\)

    A → R1 → R2 → R3 → B

    4 hops are needed

    T1 = 4 × 2.55 ms

    T1 = 10.2 ms

    Second case,

    Data per packet = 5000 ÷ 20 = 250 B

    Header size = 100 B

    \(Transmission\;time\left( {{T_t}} \right) = \frac{{data\; + \;header}}{{BW}}\;\)

    \({T_t}\; = \;\frac{{250 + 100}}{{2\; \times \;{{10}^6}}} = 0.175\;ms\)

    X → R1 → R2 → R3 → Y

    4 hops are needed

    ∴ time needed for 1st packet = 4 × 0.175 ms = 0.7 ms

    And time needed for remaining 19 packets = 19 × 0.175 = 3.325 ms

    T2 = 0.7 + 3.325 = 4.025 ms

    Third case,

    Data per packet = 5000 ÷ 40 = 125 B

    Header size = 100 B

    \(Transmission\;time\left( {{T_t}} \right)\; = \;\frac{{data\; + \;header}}{{BW}}\;\)

    \({T_t} = \frac{{125 + 100}}{{2\; \times \;{{10}^6}}} = 0.1125\;ms\)

    X → R1 → R2 → R3F → Y

    4 hops are needed

    ∴ time needed for 1st packet = 4 × 0.1125 ms = 0.45 ms

    And time needed for remaining 19 packets = 39 × 0.1125 = 4.3875 ms

    ∴ T3 = 0.45 + 4.3875 = 4.8375 ms
  • Question 7
    1 / -0
    Consider two systems P and Q connected via a router R with the bandwidth of 2 Gbps. The length of the packet is 1000 bytes. The propagation delay between P and Q is 200 microseconds. The distance between the P and R is 10 km while the distance between R and Q is 5 km. The propagation speed in meter per second if each link is having the same propagation speed is _____ 103 km/s?
    Solution

    Data:

    Length of packet = 1000 byte

    Bandwidth (BW) = 2 Gbps

    Propagation delay = Tp = 200 μs

    d1 = 10 km, d2 = 5 km

    Propagation speed = v m/s

    Formula:

    \(\frac{{{{\rm{d}}_1}}}{v} + \frac{{{d_2}}}{v} = {T_p}\)

    Calculation:

    \(\frac{{10 × {{10}^3}\;m}}{v} + \frac{{5 × {{10}^3}}}{v} = 200 × {10^{ - 6}}\)

    \(v = \frac{{15 × {{10}^3}}}{{200 × {{10}^{ - 6}}}} = 75 ×10^6 m/s\)

    v = 75 × 103 km/s

  • Question 8
    1 / -0

    Consider the following statements:

    S1: Distance vector routing is based on Dijkstra’s algorithm.

    S2: In Link State Routing, if a packet with a sequence number is higher than the highest one seen so far ever arrives, then it is rejected.

    S3: The age field in Link State packets is used to make sure no packet can get lost and live for an indefinite period of time.

    S4: Flooding technique is used in Distance Vector Routing.

    S5: Distance Vector Routing is a non-adaptive routing algorithm.

    Which of the above statement(s) is/are true?

    Solution

    Link state routing:

    • Link state routing is based on Dijkstra’s algorithm.
    • In Link state routing, if a packet with a sequence number higher than the highest one seen so far ever arrives, then it has more recent data, so it is used to update. If the sequence number is lower than the highest then it is obsolete and so rejected.
    • Flooding technique is used in Link State Routing

    Distance vector routing:

    • Distance vector routing is based on the bellman ford algorithm or ford Fulkerson algorithm. 
    • In distance vector routing only neighbors are updated. Distance vector routing is an adaptive routing algorithm which changes routing decision to reflect changes in topology and traffic.

    Therefore statements S1, S2,S4, and S5, are false and only S3 is true.

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