NWC203c PE23
NWC203c PE23
Q2 :
To determine the smallest possible frame size that allows continuous transmission,
we need to calculate the round-trip time (RTT) for a signal to travel from Earth to the
Moon and back.
The efficiency factor takes into account the protocol overhead, such as header and
trailer bits.
To convert to bytes:
Therefore, the smallest possible frame size that allows continuous transmission on a
2 Mbps HDLC link to the Moon is approximately 1.5625 megabytes.
Q3 :
Forwarding table for B1:
MAC Address Port
--------------------
S1 MAC port 2
S2 MAC port 1
S3 MAC port 3
B2 MAC port 4
When S1 transmits to S5, the frame goes through B1 and B2 before reaching S5. B1
learns S1's MAC address on port 2 and forwards the frame to B2, which learns S5's MAC
address on port 1.
When S3 transmits to S2, the frame goes through B1 before reaching S2. B1 learns S3's
MAC address on port 3 and forwards the frame to B2, which learns S2's MAC address on
port 3.
When S4 transmits to S3, the frame goes through B2 before reaching S3. B2 learns S4's
MAC address on port 2 and forwards the frame to B1, which learns S3's MAC address on
port 3.
When S2 transmits to S1, the frame goes through B2 and B1 before reaching S1. B2
learns S2's MAC address on port 3 and forwards the frame to B1, which learns S1's MAC
address on port 2.
When S5 transmits to S4, the frame goes through B2 and B1 before reaching S4. B2
already knows S5's MAC address on port 1 from the first transmission, so it forwards the
frame to B1, which learns S4's MAC address on port 2.
Q4 :
a. To modify Selective Repeat ARQ so that ACK messages contain a list of the next m
frames that it expects to receive, the protocol needs to be modified as follows:
The sender maintains a sliding window that includes all unacknowledged frames, as in
the standard Selective Repeat ARQ protocol.
When the receiver receives a frame, it checks to see if it is the next expected frame in the
sequence. If it is, the receiver sends an ACK message that contains a list of the next m
frames that it expects to receive.
If there are gaps in the received frames, the receiver sends an ACK message that requests
retransmission of the missing frames. The sender then retransmits the requested frames.
b. The effect of this change on protocol performance depends on the value of m and the
characteristics of the network.
Q5 :
(a) If a packet with an IP address of 135.46.61.31 arrives, the router will forward the
packet to Interface 1. This is because the destination address falls within the range of the
CIDR entry 135.46.60.0/22, which has a longer prefix than the other matching CIDR
entry for the destination address.
(b) If a packet with an IP address of 135.46.57.63 arrives, the router will forward the
packet to Interface 0. This is because the destination address falls within the range of the
CIDR entry 135.46.56.0/22, which has a longer prefix than the other matching CIDR
entry for the destination address.
In general, when a packet arrives at a router, the router looks up the destination IP
address in its routing table to determine where to forward the packet. The router selects
the route with the longest matching prefix (i.e., the most specific entry), known as the
"most-specific match," to determine the next hop for the packet. If there are multiple
matching entries with the same prefix length, the router uses the entry with the lowest
administrative distance, which is a value assigned by the router to indicate how
trustworthy the route is. If no matching routes are found in the routing table, the router
forwards the packet to the default route, which is typically the gateway to an external
network such as the internet.