Self Studies

Computer Networks Test 3

Result Self Studies

Computer Networks Test 3
  • 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

    Consider a classless IP address 173.91.43.43/25. The number of IP addresses, first IP address, and the last IP address in 173.91.43.43/25 are ___ respectively?

    Solution

    IP address: 173.91.43.43./25.

    Here, no. of mask bits = n = 25

    In classless addressing, no. of address are given by 232-n

    No. of addresses = 232-25 = 27 = 128

    For first address set 32 – n rightmost bits to zero.

    i.e. set 7 rightmost bits to zero.

    43 → 0010 1011 

    First address → 173.91.43.0

    For last address set 32 – n rightmost bits to 1.

    i.e. set 7 rightmost bits to 1.

    43 → 0010 1011 

    last address → 173.91.43.127
  • Question 2
    1 / -0
    If the size of header in an IPv4 is given as 50 bytes then how it represented in the IPv4’s header field?
    Solution

    Minimum header size of IPv4 = 20 byte

    Maximum header size of IPv4 = 60 byte

    Header length field in IPv4 header is of 4 bits.

    Maximum possible value (1111) = 15

    Scaling factor of \(\frac{{60}}{{15}} = 4\) is introduced

    Since 50 is not divisible by 4, append in 0’s to increase the length to a multiple of 4

    Header size = 50 + 0’s append = 52 Byte

    \(\frac{{52}}{4} = 13\)

    Represent 13 in header length field = 1101

  • Question 3
    1 / -0

    In a classful addressing schema, a host of Class B is split into 5-bit subnet number. If the Host Id is H bits and the maximum host per network is N then what is the value of H×N? 

    Solution

    Concept:

    In class B, 16 bits are reserved for Network id and 16 for host id.

    Explanation

    5 bit more is added due to subnetting

    Total Network Id = 16 + 5 = 21

    Number of bit in host id = 32 - 21 = 11 bits

    The number of available hosts = 2h − 2,

    = 211 - 2 = 2048 - 2 = 2046

    H×N =11 × 2046 = 22506

    Important Point:

    Since first address (Network) and last address (broadcast address) cannot be assigned to a Host

  • Question 4
    1 / -0
    Internet protocol version 6 (IPv6) is the next-generation Internet Protocol version designated as the successor to IPv4 address space is being exhausted. Which one of the following address space is being exhausted. Which one of the following descriptions about IPv6 is correct?
    Solution
    The IPv6 multicast traffic is same as that of IPv4 broadcast. The packet intended to multiple hosts is sent on a special IPv6 multicast address. Any host or interface that are member of that multicast address will receive the  multicast information or packet and process it.
  • Question 5
    1 / -0

    Consider the following two statements with respect to IPv4 in computer networking:

    P: The loopback(IP) address is a member of class B network

    Q: The loopback(IP) address is used to send a packet from host to itself

    What can you say about the statements P and Q?

    Solution

    IPv4 address: 32 bits

    IP address = Network ID + Host ID

    Network ID + Host ID =32

    PREFIX is the part of the Network ID

    Class

    PREFIX (bits reserved from 1st byte)

    Network ID (bits)

    Range of 1st byte

    No. of IP address consumed

    Number of networks

    IP address per network

    Host per network

    Percentage of IPV4 address consumed  

    Class A

    0

    8

    0 -127

    231

    27

    224

    224 – 2

    50%

    Class B

    10

    16

    128-191

    230

    214

    216

    216 – 2

    25%

    Class C

    110

    24

    192 -223

    229

    221

    28

    28 – 2

    12.5%

    Class D

    1110

    -

    224- 239

    228

    MULTICAST ADDRESS

    6.25%

    Class E

    1111

    -

    240-255

    228

    RESERVED FOR FUTURE

    6.25%

     

    The address between the range 127. 0. 0. 0 to 127.255.255.255 (exclude 127. 0. 0. 0 and 127.255.255.255) can be used as a loopback address that falls in the range of Class A network. Therefore, the loopback (IP) address is a member of class A network. Therefore, statement P is false.

    A loopback address is primarily used to validate that the locally connected physical network card is working properly and the TCP/IP stack installed. A data packet sent on a loopback address, never leaves the host system and is sent back to the source application (to itself). Therefore, statement Q is true.

    Hence option 2 is correct

  • Question 6
    1 / -0

    Consider two systems S and R connected by routers serially, Let R0, R1, R2, R3  ... R6 be the intermediate routers connected serially between S and R where R0 is connected with S and R1 and R6 is connected with R and R5. If data is transferred from S to R with the time to live at S as (0001 0011)2 then what is the time to live at R in binary number system? 

    Note: Ignore leading 0's in the answer?     

    Solution

    Concept:

    • Time to live at S = (0001 0011)= 19 
    • Time to Live is 8 bits field present in IPv4 header.
    • TTL is a mechanism that limits the lifespan of a packet in a computer network.
    • TTL prevents a data packet from circulating indefinitely which is present in IPv4 header
    • Every host (operates at Network layer) that passes the packet must reduce the TTL by at least one unit.
    • Routers can view the TTL field and decrease the value of if when a packet is passed through it.

    Explanation:

    There are 7 routers and 1 receiver ∴

    Therefore, the final value of TTL = 19 – 8 = (11)10 = (0000 1011)= (1011)2

    Tips and Tricks:
    TTL (Time to Live) is present in IPv4 header and the IP protocol is present in the Network layer, So devices that have access at least up to the network layer can decrement the value of TTL. 

  • Question 7
    1 / -0

    An Internet Service Provider (ISP) has the following chunk of CIDR-based IP addresses available with it: 176.129.160.0/21. The ISP wants to give half of this chunk of addresses to TESTBOOK, and a quarter to SCHOLARS, while retaining the remaining with itself.

    Which of the following is valid allocation of addresses to TESTBOOK and SCHOLARS respectively?

    I. 176.129.160.0/22 and 176.129.164.0/23

    II. 176.129.160.0/22 and 176.129.166.0/23

    III. 176.129.164.0/22 and 176.129.160.0/23

    IV. 176.129.164.0/22 and 176.129.162.0/23

    Solution

    176.129.160.0/21

    Network ID + Host ID = 32

    21 + Host ID = 32

    ∴ Host ID = 11

    1011 0000. 1000 0001. 1010 0000. 0000 0000

    NETWORK ID

    HOST ID

    Classless Representation

    1011 0000. 1000 0001. 1010 0

    000. 0000 0000

    176.129.160.0/21

     

    First Divide the IP address in Half (need 1 host ID)

    FIRST HALF

    NETWORK ID

    HOST ID

    Classless Representation

    1011 0000. 1000 0001. 1010 00

    00. 0000 0000

    176.129.160.0/22

     

    SECOND HALF

    NETWORK ID

    HOST ID

    Classless Representation

    1011 0000. 1000 0001. 1010 01

    00. 0000 0000

    176.129.164.0/22

     

    Either FIRST HALF is divided or second half

    Assume FIRST HALF division

    1st Quarter

    NETWORK ID

    HOST ID

    Classless Representation

    1011 0000. 1000 0001. 1010 000

    0. 0000 0000

    176.129.160.0/23

     

    2nd Quarter

    NETWORK ID

    HOST ID

    Classless Representation

    1011 0000. 1000 0001. 1010 001

    0. 0000 0000

    176.129.162.0/23

     

    SECOND HALF division

    1st Quarter

    NETWORK ID

    HOST ID

    Classless Representation

    1011 0000. 1000 0001. 1010 010

    0. 0000 0000

    176.129.164.0/23

     

    2nd Quarter

    NETWORK ID

    HOST ID

    Classless Representation

    1011 0000. 1000 0001. 1010 011

    0. 0000 0000

    176.129.166.0/23

     

    If first half is allocated to TESTBOOK then 1st quarter of second half or 2nd quarter of second half is allocated to SCHOLARS

    If second half is allocated to TESTBOOK then 1st quarter of first half or 2nd quarter of first half is allocated to SCHOLARS

  • Question 8
    1 / -0

    Consider Source S and Destination D are connected by an intermediate router R. Datagram of size 1160 byte is received by R. The maximum transmission unit is 200 bytes and the header size is 40 bytes. If the initial offset value is 1 then what is the offset value of the fifth fragment?

    Solution

    Sender:

    Total length = Data length + header length

    1160 = Data length + 40

    ∴ Data length = 1120 byte

    Router (MTU):

    Total length = Data length + header length

    200 = Data length + 40

    ∴ Data length = 160 byte

    Number of fragments = \(\frac{{1120}}{{160}} = 7\) 

    Offset uses scaling factor of \(\frac{{{2^{16}}}}{{{2^{13}}}} = 8\)

    → offset value of 1st segmen = 1

    → offset value of 2nd segment = \(1 + \frac{{160}}{8} = 21\)

    → offset value of 3rd segment = \(21 + \frac{{160}}{8} = 21+ 20 = 41\)

    → offset value of 4th segment = \(41 + \frac{{160}}{8} = 41 + 20 = 61\)

    → offset value of 5th segment = \(61 + \frac{{160}}{8} = 61 + 20 = 81\)

    Shortcuts:

    The number of fragments is 5, since every fragment has 20 more offset than the previous one.

    Fragment offset of last fragment = initial offset + (n - 1) × 20

    = 1 + 4 × 20 = 81
  • Question 9
    1 / -0
    Consider three machines A, B, and C with IP addresses 200.175.168.1, 200.175.168.5, and 200.175.168.7 respectively. The subnet mask is set to 255.255.255.248 for all the three machines. Which one of the following is true?
    Solution

    Subnet mask: 255.255.255.248 = 1111 1111. 1111 1111. 1111 1111. 1111 1000

    A’ IP address: 200.175.168.1 = 1100 1000. 1010 1111. 1010 1000. 0000 0001

    Subnet Mask & A’ IP address = 1100 1000. 1010 1111. 1010 1000. 000 0000

    ∴ Subnet Id = 200.175.168.0

    B’ IP address: 200.175.168.5 = 1100 1000. 1010 1111. 1010 1000. 0000 0101

    Subnet Mask & A’ IP address = 1100 1000. 1010 1111. 1010 1000. 000 0000

    ∴ Subnet Id = 200.175.168.0

    C’ IP address: 200.175.168.5 = 1100 1000. 1010 1111. 1010 1000. 0000 0111

    Subnet Mask & A’ IP address = 1100 1000. 1010 1111. 1010 1000. 000 0000

    ∴ Subnet Id = 200.175.168.0

    ∴ A, B and C belongs to same subnet 200.175.168.0

    Tips and Tricks:

    & → bit wise AND

    Since Network Mask is 255.255.255.248, not have to check first 3-byte because subnet id will same as first 3 byte of IP address. Only 4th byte need to bit wise AND with given IP address
  • Question 10
    1 / -0

    ICMP error message should NOT be sent after receiving:

    (i). Another ICMP error message.

    (ii). An IGMP message of any kind.

    (iii). Any fragment other than the first fragment from a fragmented IP datagram.

    (iv) A datagram for which fragmentation is required but DF bit is set in the IP header.

    (v) A datagram with TTL exceeded.

    Solution

    ICMP error message should NOT be sent after receiving when:

    • After another ICMP error message
    • After an IGMP message of any kind.
    • After any fragment other than the first fragment from a fragmented IP datagram

    ICMP error message should be sent after receiving when:

    • If DF( do not fragment) bit is set and a router needs to fragment the datagram to send it further then the ICMP error message must be sent to the sender.
    • If TTL is exceeded then also it should report to the sender by sending the ICMP error message.
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