Skip to content

GATE CS 2019 Q49 — Data Link Layer: Framing, Error Detection, MAC, Ethernet Bridging

Explain with AI
Consider that 1515 machines need to be connected in a LAN using 88-port Ethernet switches. Assume that these switches do not have any separate uplink ports. The minimum number of switches needed is ______
View worked solution

Answer: 3

To find the minimum number of switches needed, we can analyze the relationship between the number of switches, the ports used for interconnecting them, and the ports available for the machines.

Let nn be the number of 88-port switches used.

  • Each switch has 88 ports. For nn switches, the total number of ports is 8n8n.
  • To connect nn switches together in a single network (without loops), we need at least n−1n - 1 links between them.
  • Since there are no dedicated uplink ports, each inter-switch link connects a standard port on one switch to a standard port on another switch. Thus, each link consumes 22 ports.
  • Therefore, n−1n - 1 links will consume 2(n−1)2(n - 1) ports.

The number of ports remaining to connect the 1515 machines is:

Available Ports=8n−2(n−1)=6n+2\text{Available Ports} = 8n - 2(n - 1) = 6n + 2

Since we need to connect 1515 machines, the number of available ports must be at least 1515:

6n+2≥156n + 2 \ge 156n≥136n \ge 13n≥136≈2.17n \ge \frac{13}{6} \approx 2.17

Since the number of switches nn must be an integer, we round up to the next whole number:

n=⌈2.17⌉=3n = \lceil 2.17 \rceil = 3

Thus, the minimum number of switches needed is 3.

Free practice · Your answers on this page are not saved.

Published
Report a correction
Keep exploringMore Data Link Layer: Framing, Error Detection, MAC, Ethernet Bridging questions