DATA COMMUNICATION
DATA COMMUNICATION
1. Data Link layer contains protocols responsible for flow and error controls.
2. Physical layer controls protocols responsible for bit-by-bit delivery of information.
3. A traditional local telephone network (in the 1990s) is an example of a circuit-switched
network.
4. A class B network on the Internet has a subnet mask of 255.255.248.0. What is the
maximum number of hosts per subnet?
Subnet mask: 255.255.248.0 = /21 (since 248 = 11111000 → 5 bits, and 255.255 = 16
bits → total = 21 bits for network).
Remaining host bits = 32 - 21 = 11 bits
Maximum hosts = 2¹¹ - 2 = 2046
5. Peer-to-Peer network protocols are part of the Application layer
.
6. The difference between bit rate and baud rate lies in what is being counted per
second in data communication:
Formula Relation:
Bit Rate:
I. If X is a Hub:
● Broadcast Domain: A hub operates in a way that it doesn’t break up broadcast
domains. All devices connected to the hub are in the same broadcast domain. Hence,
there is only one broadcast domain for the entire network.
● Collision Domain: A hub functions as a layer 1 device and broadcasts data to all
connected devices. However, it doesn't separate the collision domains. Since all devices
connected through a hub share the same medium (the cable), there is one collision
domain for the entire network.
II. If X is a Switch:
● Broadcast Domain: A switch operates at layer 2 (data link layer), and it forwards frames
based on MAC addresses. While switches do not create multiple broadcast domains by
themselves, if all devices are on the same VLAN, the broadcast domain remains the
same as a hub. Therefore, there is still only one broadcast domain.
● Collision Domain: Unlike a hub, a switch has the capability to segment collision
domains. Each port on the switch creates a separate collision domain. Since there are 8
devices connected to 8 ports on the switch, there are 8 collision domains in this
scenario (one per port).
III. If X is a Router:
● Broadcast Domain: Routers operate at layer 3 (network layer) and are used to connect
different networks. A router breaks up broadcast domains because broadcasts cannot
pass from one network to another. In this scenario, the router would create a separate
broadcast domain for each interface. Since the router is connecting multiple networks,
there will be one broadcast domain per interface. Given that there are 8 devices
connected to 8 different ports on the router, there are 8 broadcast domains.
● Collision Domain: Similar to the switch scenario, a router doesn’t allow any collision to
propagate from one interface to another, effectively separating each interface into its
own collision domain. Therefore, each port on the router is a separate collision
domain. In this case, the router creates 8 collision domains (one per interface).
Summary (If X is a Router):
Explanation:
● Hub: A hub doesn’t segment the network, so everything is in one broadcast and collision
domain.
● Switch: A switch segments the collision domain at each port, but it doesn’t break up the
broadcast domain unless VLANs are used.
● Router: A router breaks up both broadcast and collision domains by segmenting the
network into separate subnets. Each interface on a router represents a separate
broadcast and collision domain.
11.ok
Given:
● IP address: 199.68.89.139
● Subnet mask: 255.255.255.224
IP address: 199.68.89.139
Binary representation:
● 199 → 11000011
● 68 → 01000100
● 89 → 01011001
● 139 → 10001011
11000011.01000100.01011001.10001011
● 255 → 11111111
● 255 → 11111111
● 255 → 11111111
● 224 → 11100000
11111111.11111111.11111111.11100000
To get the Subnet ID, perform a bitwise AND operation between the IP address and the subnet
mask.
IP Address: 11000011.01000100.01011001.10001011
---------------------------------------------------
● 11000011 → 199
● 01000100 → 68
● 01011001 → 89
● 10000000 → 128
The first host in the subnet is the first IP address after the Subnet ID. So, increment the last
octet of the Subnet ID by 1.
The last host is one less than the broadcast address. To find the broadcast address, you need
to use the inverted subnet mask (i.e., perform the bitwise OR operation between the Subnet ID
and the inverted subnet mask).
00000000.00000000.00000000.00011111
Now perform a bitwise OR operation between the Subnet ID (199.68.89.128) and the inverted
subnet mask:
---------------------------------------------------
Broadcast Addr:11000011.01000100.01011001.10011111
● 11000011 → 199
● 01000100 → 68
● 01011001 → 89
● 10011111 → 159
The direct broadcast address is the broadcast address itself, which we calculated as
199.68.89.159.
✅ So, the usable addresses are always 2 less than the total.
7. Can two hosts with IPs 172.16.33.10 and 172.16.38.250 and subnet
mask 255.255.248.0 communicate directly without a router? Justify.
✅ Yes, they can communicate directly since they are in the same subnet.