Computer Network Final Exam V2
Computer Network Final Exam V2
Set IP Addressing :
Q 1. What is IP address ? Write the difference between MAC ,
IPV4 and IPV6.
Answer: IP address stands for internet protocol address; it is an
identifying number that is associated with a specific computer
or computer network. When connected to the internet, the IP
address allows the computers to send and receive information.
Definition: MAC - Unique identifier for network interfaces
IPV4 - Internet Protocol version 4
IPV6- Internet Protocol version 6
Format: Six groups of two hexadecimal digits | Four decimal
numbers separated by periods | Eight groups of four hexadecimal
digits separated by colons.
Length: 48 bits (6 bytes) | 32 bits (4 bytes) | 128 bits (16 bytes)
Example: 00:1A:2B:3C:4D:5E | 192.168.1.1 |
2001:0db8:85a3:0000:0000:8a2e:0370:7334
Q 2: Explain classes of IPV4.
Answer: Class A: IP addresses belonging to class A are assigned to
the networks that contain a large number of hosts. The network ID is
8 bits long. The host ID is 24 bits long. IP addresses belonging to
class A ranges from 0.0.0.0 – 127.255.255.255.
Class B: IP address belonging to class B is assigned to networks
that range from medium-sized to large-sized networks. The network
ID is 16 bits long. The host ID is 16 bits long. IP addresses belonging
to class B ranges from 128.0.0.0 – 191.255.255.255.
Class C: IP addresses belonging to class C are assigned to small-
sized networks. The network ID is 24 bits long. The host ID is 8 bits
long. IP addresses belonging to class C range from 192.0.0.0 –
223.255.255.255.
Class D: IP address belonging to class D is reserved for multi-
casting. The higher-order bits of the first octet of IP addresses
belonging to class D is always set to 1110. The remaining bits are for
the address that interested hosts recognize.
Class D does not possess any subnet mask. IP addresses belonging
to class D range from 224.0.0.0 – 239.255.255.255.
Class E: IP addresses belonging to class E are reserved for
experimental and research purposes. IP addresses of class E range
from 240.0.0.0 – 255.255.255.254. This class doesn’t have any
subnet mask. The higher-order bits of the first octet of class E are
always set to 1111.
Q 3: What is classful and classless IP?
Answer: Classful Addressing: Introduced in 1981, A classful IP
address refers to an IP address that follows the original
classification system for IP addresses, which divides the address
space into five classes (A, B, C, D, and E). This system was used in
the early days of the Internet to simplify IP address assignment and
routing.
Classless Addressing: Classless Inter-Domain Routing (CIDR) is
another name for classless addressing. An IP address allocation and
routing methodology that allows for variable-length subnet masking
(VLSM). CIDR eliminates the rigid boundaries of the classful IP
addressing system, enabling more efficient use of the IP address
space. CIDR notation, which specifies an IP address followed by a
slash and a prefix length (e.g., 192.168.1.0/24). The prefix length
indicates the number of bits used for the network portion of the
address.
Q 4: Difference between public IP and private IP
Answer: The differences between private and public IP addresses at
a glance:
1. The scope of Private IP is local. | The scope of Public IP is
global.
2. It is used to communicate within the network. | It is used to
communicate outside the network.
3. Private IP addresses of the systems connected in a network
differ in a uniform manner. | Public IP may differ in a uniform or
non-uniform manner.
4. It works only on LAN. | It is used to get internet service.
5. It is used to load the network operating system. | It is controlled
by ISP.
6. It is available free of cost. | It is not free of cost.
Range - Private IP address ranges: 10.0.0.0 – 10.255.255.255,
172.16.0.0 – 172.31.255.255,
192.168.0.0 – 192.168.255.255 | Any IP address that isn’t within a
private IP address range.
Q 5: What is CIDR? Consider the CIDR address in
192.168.10.0/26 the find the number of network, number of IP
addresses on each network, number of host in each network,
subnet mask, broadcast ID, starting and ending IP address.
Answer: CIDR Notation: 192.168.10.0/26; Prefix Length: 26 bits
Subnet Mask: The subnet mask for a /26 prefix is:
• Binary: 11111111.11111111.11111111.11000000
• Decimal: 255.255.255.192
Number Subnet/Network: A /24 network (which is the original
network) can be divided into subnets with a /26 prefix. So after 3rd
octet we have taken 2 additional bit so the number of network will
be 22 = 4
Number of IP Addresses per Network: The number of IP addresses
in a /26 network is 232-26=26=64
Usable IP Addresses per Network: Subtracting the network
address and the broadcast address, the number of usable IP
addresses is 64−2=62.
Summary
1. Peak Data Rate (PDR): The maximum rate at which data can
be transmitted over a network for a specified period.
2. Sustainable Data Rate (SDR): The average rate at which data
can be transmitted over a network without exceeding a
specified limit over a long period.
3. Maximum Burst Size (MBS): The largest amount of data that
can be sent in a burst at the
peak data rate without
violating the network's QoS
policies.
4. Committed Information
Rate (CIR): The guaranteed
average data rate that a network agrees to provide to a user.
5. Excess Information Rate (EIR): The additional data rate above
the CIR that the network can support if resources are
available.
6. Burst Tolerance (BT): The allowable deviation from the
committed data rate, providing flexibility in managing bursty
traffic.
7. Delay (Latency): The time it takes for data to travel from the
source to the destination.
8. Jitter: The variation in delay for packets belonging to the same
data flow, which can affect real-time applications like VoIP
and video conferencing.
9. Packet Loss Rate: The percentage of packets lost during
transmission, affecting the reliability and quality of the
communication.
10. Minimum Policed Unit (MPU): The smallest unit of data
that can be transmitted and monitored by the network.
11. Cell Loss Priority (CLP): A priority level assigned to cells
in ATM networks indicating the likelihood of cell discard under
congestion.
12. Service Data Unit (SDU) Size: The size of the data units
delivered by the higher layer to the lower layer for
transmission.
3. Implicit Signaling:
In implicit signaling, there is no communication between the
congested nodes and the source. The source guesses that there is
congestion in a network. For example when sender sends several
packets and there is no acknowledgment for a while, one
assumption is that there is a congestion.
4. Explicit Signaling:
In explicit signaling, if a node experiences congestion it can
explicitly sends a packet to the source or destination to inform
about congestion. The difference between choke packet and
explicit signaling is that the signal is included in the packets that
carry data rather than creating a different packet as in case of
choke packet technique.
Explicit signaling can occur in either forward or backward
direction.
• Forward Signaling: In forward signaling, a signal is sent in
the direction of the congestion. The destination is warned
about congestion. The receiver in this case adopts policies
to prevent further congestion.
• Backward Signaling: In backward signaling, a signal is sent
in the opposite direction of the congestion. The source is
warned about congestion, and it needs to slow down.