GATE 2006
191 questions
MCQ 1911-mark 191
Questions 171–175 of 191
Answer: (B)
The shortest frame is 84 bytes bits. Short frames arrive the fastest in terms of packets per second, so they leave the least time to process each packet.
Time between arriving frames .
For wirespeed forwarding, processing one packet must take no longer than this, so the maximum is . (Option (C), 6.72 , is the time for one interface alone.)
Answer: (B)
Answer: (A)
In computer networks, goodput is the application level throughput. It is the number of useful information bits that the network delivers to a certain destination per unit of time. (From wikipedia).
So a packet is delivered successfully only if has been received for it.
So by time we would have sent packets, but only of them can be acknowledged, as the minimum time for a packet to get acknowledged is . Since is , which is equal to the window size, the sender has no waiting time.
So, successfully delivered packets
Time for transmission
Goodput
Therefore (A)
Answer: (C)
Ethernet frame: it ends with a 4-byte CRC field (the frame check sequence), which covers the whole frame.
IP packet: its header has a 16-bit Header Checksum field, which covers the IP header only. IP uses a checksum, not a CRC.
So the Ethernet frame has a CRC field and the IP packet has a checksum field.
Answer: (C)
Each bridge identifies a port (the root port) through which it will forward frames to the root bridge. Port conflicts are always resolved in favour of the port with the lower index value. When there is a possibility of multiple bridges forwarding to the same LAN (but not through the root port), ties are broken as follows: bridges closest to the root get preference and between such bridges, the one with the lowest serial number is preferred.
Let host H1 send out a broadcast ping packet. Which of the following options represents the correct forwarding table on B3?
Answer: (A)
Root ports. B5 and B3 are one hop from B1, and each touches both X and Y at the same cost. Ties go to the lower port index, so B5 uses port 2 (on X) and B3 uses port 3 (on Y). B4 and B2 are two hops from B1, through B3 or B5. B4 touches P by port 1 and Q by port 2, so its root port is 1. B2 touches Q by port 1 and P by port 2, so its root port is 1.
Designated bridges. B1 forwards onto both X and Y, so B5 port 3 (on Y) and B3 port 4 (on X) are blocked. P and Q are each reached by B5, B3, B4 and B2, and only one of them may forward onto each LAN. The one closest to the root wins, and a tie goes to the lower serial number. B3 and B5 are both one hop away, so B3 wins: it forwards onto P through port 1 and onto Q through port 2. So B5 ports 1 and 4, B4 port 2 and B2 port 2 are blocked.
Forwarding table of B3. Port 3 (root port): H1, H2, H3, H4. Port 1: H5, H6, and H9, H10 (behind B4, which is attached to P by its root port). Port 2: H7, H8, and H11, H12 (behind B2, attached to Q by its root port).
Table (A) shows exactly this. Option (C) puts H1, H2 on port 4, which is blocked. Option (B) puts H1, H2 on port 4, which is blocked, and gives H11, H12 no port. Option (D) lists H7 under port 1, leaves out H6, and uses port 4, which is blocked.
Answer: (A)
Each bridge identifies a port (the root port) through which it will forward frames to the root bridge. Port conflicts are always resolved in favour of the port with the lower index value. When there is a possibility of multiple bridges forwarding to the same LAN (but not through the root port), ties are broken as follows: bridges closest to the root get preference and between such bridges, the one with the lowest serial number is preferred.
For the given connection of LANs by bridges, which one of the following choices represents the depth first traversal of the spanning tree of bridges?
Answer: (A)
- Pick as the root bridge. The question says to choose the bridge with the lower serial ID.
- Every port of the root bridge is a designated port, and all of them are in forwarding state.
- Each non-root bridge needs one root port. All root ports are set to forwarding state.
- The root port is the port closest to the root bridge.
- Take bridge as an example.
- It has two ports that lead to the root bridge. Let the bridge-to-bridge cost be unit. Then both paths cost the same. So, as the question says, we pick the port with the lower index as the root port of bridge .
- So port 3 of is the root port.
- By the same logic, we find the root port for too.
- Next, find the root port for .
- Here again two paths have the same cost. We pick port 1 as the root port of .
- By the same logic, port is picked as the root port of as well.
- Now look at the designated ports.
- A designated port is the port that forwards traffic onto a network segment.
- There are network segments (LANs) in total. Each segment has one designated port.
- and connect to the root bridge itself through two designated ports. So there is no problem for the traffic of segments and .
- Now take the other segments.
- For example, .
- , , and can all forward traffic to segment .
- As the question says, we keep only the bridges nearer to the root bridge .
- and are both nearer to the root bridge.
- We break the tie with the lower bridge serial ID. So is chosen, and the designated port is port 1 of for segment .
- is connected to port 1 of , port 2 of , port 2 of and port 1 of . and are one hop from the root, while and are two hops away. Between and , the lower serial number wins, so port 2 of is the designated port for .
- Only (port 3) is connected to , and only (port 3) to , so those are their designated ports.
- All the remaining ports are blocked ports.
- This is the final spanning tree.
- In the tree, has children and . has no children, and has children and . A depth first traversal from visits .
Answer: (A)