Notice: Due to an ongoing migration of our storage and publishing system, material requested since last month will not be uploaded for the time being, and new requests are paused. All existing notes remain available.
Which famous algorithm is commonly used to find the shortest path in network routing?
Not quite. Try another option.
Answer: Dijkstra's Algorithm
Dijkstra's algorithm is a well-known shortest path algorithm used extensively in link-state routing protocols like OSPF.
Question 16 of 60 · Distance vector Routing · Easy
In Distance Vector Routing, what does a router share with its immediate neighbors?
Not quite. Try another option.
Answer: Its entire routing table
In Distance Vector routing protocols (like RIP), routers periodically share their entire routing table with their direct neighbors.
Question 17 of 60 · Distance vector Routing · Easy
What is the 'Count-to-Infinity' problem primarily associated with?
Not quite. Try another option.
Answer: Distance Vector Routing
The 'Count-to-Infinity' problem is a known routing loop issue in Distance Vector routing protocols.
Question 18 of 60 · Link State routing · Easy
In Link State Routing, what information does each router broadcast to all other routers in the network?
Not quite. Try another option.
Answer: The state of its directly connected links
In Link State routing, every router floods information about its direct links to all other routers, allowing each to build a complete map of the network.
Question 19 of 60 · Link State routing · Easy
Which routing protocol is a classic example of Link State Routing?
Not quite. Try another option.
Answer: OSPF
OSPF (Open Shortest Path First) is a widely used routing protocol based on the Link State algorithm.
What is the metric typically used by shortest path algorithms to determine the 'best' path?
Not quite. Try another option.
Answer: Cost (e.g., delay, distance, or bandwidth)
Shortest path algorithms calculate the path with the lowest overall cost, which can be based on metrics like distance, delay, or bandwidth.
Question 21 of 60 · IPv4 Header · Medium
An IPv4 datagram is fragmented into three pieces. The total length of the original datagram payload was 4000 bytes. If the first two fragments each carry 1480 bytes of payload, what will be the value of the fragment offset field in the third fragment's IPv4 header?
Not quite. Try another option.
Answer: 370
The fragment offset specifies the starting byte of the payload in the fragment relative to the original payload, measured in units of 8 bytes. The first fragment carries 1480 bytes, the second carries another 1480 bytes. The third fragment starts at byte 2960. The offset value is .
Question 22 of 60 · IPv4 Header · Medium
If the Header Length (HLEN) field in an IPv4 header contains the binary value 0111, what is the total size of the IPv4 header in bytes, and how many bytes of options are included?
Not quite. Try another option.
Answer: 28 bytes total, 8 bytes of options
The HLEN field measures the header length in 4-byte words. A value of 0111 (7 in decimal) means the header is bytes. Since the standard base header is 20 bytes, there are bytes of options.
Question 23 of 60 · IPv6 Header · Medium
In the IPv6 base header, which field replaces the IPv4 'Time to Live' (TTL) field to prevent packets from endlessly circulating in the network?
Not quite. Try another option.
Answer: Hop Limit
The 'Hop Limit' field in IPv6 serves the exact same purpose as the TTL field in IPv4. It is decremented by 1 by each router that forwards the packet, and the packet is discarded when the limit reaches zero.
Question 24 of 60 · IPv6 Header · Medium
Which of the following correctly describes how IPv6 handles packet fragmentation?
Not quite. Try another option.
Answer: Fragmentation is performed only by the source node, using a Fragment Extension Header.
In IPv6, intermediate routers do not fragment packets to increase processing speed. If fragmentation is necessary, the source node performs it and indicates it using a Fragment Extension Header.
Question 25 of 60 · IPv6 Addressing · Medium
Which of the following is the correct, most compressed representation of the IPv6 address 2001:0db8:0000:0000:0001:0000:0000:0001?
Not quite. Try another option.
Answer: 2001:db8::1:0:0:1
The zero compression rule (::) can only be used once in an IPv6 address to avoid ambiguity. Thus, 2001:db8::1:0:0:1 compresses the first block of zeros. Compressing the second block instead (2001:db8:0:0:1::1) is also valid, but the first is standard when block sizes are equal.
Question 26 of 60 · IPv6 Addressing · Medium
An IPv6 Anycast address is syntactically indistinguishable from a Unicast address. How does a router know how to route a packet destined for an Anycast address?
Not quite. Try another option.
Answer: The router routes it to the nearest interface sharing that address based on routing protocol metrics.
Anycast addresses are assigned to multiple interfaces (usually on different nodes). The routing infrastructure routes the packet to the 'nearest' interface possessing that address, according to the routing protocol's measure of distance.
Question 27 of 60 · Network Address Translation (NAT) · Medium
In a scenario where multiple internal hosts use a single public IP address to access the Internet simultaneously, which specific mechanism does NAT utilize to distinguish between the return traffic for different internal hosts?
Not quite. Try another option.
Answer: Port Address Translation (PAT) using Layer 4 port numbers
Port Address Translation (PAT), also known as NAT overload, translates both the IP address and the Layer 4 (TCP/UDP) port numbers. This unique combination of public IP and mapped port number allows the router to multiplex multiple private IP streams over a single public IP.
Question 28 of 60 · Network Address Translation (NAT) · Medium
A NAT router modifies a packet originating from a private network. Which of the following fields in the IPv4 header MUST the NAT router recalculate before forwarding the packet?
Not quite. Try another option.
Answer: Header Checksum
Because NAT changes the Source IP address in the IPv4 header, the router must recalculate the IPv4 Header Checksum to reflect this change; otherwise, the packet will be dropped as corrupt by the next hop.
Question 29 of 60 · NETWORK LAYER: Routing · Medium
Which of the following best differentiates a 'forwarding table' from a 'routing table' in modern routers?
Not quite. Try another option.
Answer: A routing table is built by control plane protocols, whereas a forwarding table is used by the data plane to actually switch packets.
The routing table (RIB) is created by routing algorithms (control plane). The router extracts the best paths from the routing table to populate the forwarding table (FIB), which is optimized for high-speed packet lookup and switching (data plane).
Question 30 of 60 · Unicast routing protocols · Medium
A network administrator needs a routing protocol to exchange routing information between two different Autonomous Systems (AS). Which protocol is designed specifically for this purpose?
Not quite. Try another option.
Answer: BGP (Border Gateway Protocol)
BGP is an Exterior Gateway Protocol (EGP) designed specifically to exchange routing and reachability information between different Autonomous Systems (AS) on the Internet. OSPF, RIP, and IS-IS are Interior Gateway Protocols (IGPs).
Question 31 of 60 · Unicast routing protocols · Medium
In the Routing Information Protocol (RIP), the maximum valid hop count is 15. What happens when a router running RIP receives a routing update for a network with a metric of 15?
Not quite. Try another option.
Answer: The router accepts the update, but if it forwards traffic to that network, the metric becomes 16, representing infinity/unreachable.
In RIP, a metric of 16 is defined as infinity (unreachable). If a router receives an update with a metric of 15, the network is 15 hops away from the sender. For the receiving router, it becomes hops away, making it unreachable.
Question 32 of 60 · Routing algorithms · Medium
Which of the following is a key characteristic that distinguishes dynamic routing algorithms from static routing?
Not quite. Try another option.
Answer: Dynamic algorithms automatically adapt to topology changes and link failures.
Dynamic routing algorithms continuously exchange messages to learn the network topology, allowing them to automatically reroute traffic if a link fails or a new path is added. Static routes must be manually updated by an administrator.
Question 33 of 60 · Routing algorithms · Medium
Which of the following solutions is NOT used to mitigate the 'Count-to-Infinity' problem commonly found in basic routing algorithms?
Not quite. Try another option.
Answer: Link State Advertisements (LSA)
Count-to-infinity is a problem specific to Distance Vector routing. Split Horizon, Poison Reverse, and defining a maximum metric (like 16 in RIP) are solutions for it. LSAs are a feature of Link State routing, which does not suffer from the count-to-infinity problem because routers have a complete topology map.
Question 34 of 60 · Routing Algorithm- Shortest path algorithm · Medium
In Dijkstra's shortest path algorithm, what does the set represent during the execution of the algorithm?
Not quite. Try another option.
Answer: The set of nodes whose shortest path from the source is definitively known.
In Dijkstra's algorithm, keeps track of the set of nodes for which the minimum cost path from the source node has already been finalized.
Question 35 of 60 · Routing Algorithm- Shortest path algorithm · Medium
Consider a network graph where link costs can be negative. Why might Dijkstra's algorithm fail to find the correct shortest path in this scenario?
Not quite. Try another option.
Answer: Dijkstra's algorithm assumes that adding an edge to a path can never decrease the total path cost.
Dijkstra's algorithm uses a greedy approach, definitively closing nodes (adding them to ) under the assumption that path costs only increase. Negative weights break this assumption, making the Bellman-Ford algorithm a better choice.
Question 36 of 60 · Distance vector Routing · Medium
According to the Bellman-Ford equation used in Distance Vector Routing, the cost of the least-cost path from node to node is computed as:
Not quite. Try another option.
Answer:
The Bellman-Ford equation states that the minimum cost from to is the minimum over all neighbors of the cost to reach , , plus the minimum cost from to , .
Question 37 of 60 · Distance vector Routing · Medium
How does the 'Split Horizon' rule improve the performance of Distance Vector routing?
Not quite. Try another option.
Answer: It prevents a router from advertising a route back out the same interface from which the route was learned, preventing two-node routing loops.
Split Horizon dictates that if node A learns about a route to network X through node B, node A will not advertise that route back to node B. This prevents immediate routing loops between two adjacent routers.
Question 38 of 60 · Link State routing · Medium
In Link State routing, which mechanism is used to ensure that all routers in the domain eventually receive the same routing information?
Not quite. Try another option.
Answer: Reliable Flooding of Link State Advertisements (LSAs)
Link State routing protocols (like OSPF) rely on routers generating Link State Advertisements (LSAs) and reliably flooding them to all other routers in the area, ensuring everyone builds identical topological maps.
Question 39 of 60 · Link State routing · Medium
What is the primary computational advantage of Link State (LS) routing over Distance Vector (DV) routing?
Not quite. Try another option.
Answer: LS routing is less susceptible to routing loops because each router computes the shortest path using a complete topology map.
In LS routing, every router possesses the entire network graph and computes paths independently (e.g., via Dijkstra's). This complete view prevents issues like the count-to-infinity problem and transient routing loops common in DV routing, where routers only have partial views.
Question 40 of 60 · NETWORK LAYER: Routing · Medium
When a router receives a packet destined for an IP address that does not match any specific subnet entry in its routing table, what action does it take?
Not quite. Try another option.
Answer: It forwards the packet to the Default Route (e.g., 0.0.0.0/0), if configured.
The default route (represented as 0.0.0.0/0 in IPv4) acts as a catch-all gateway. If no specific match is found in the routing table (longest prefix match), the router forwards the packet to the default gateway.
Question 41 of 60 · IPv4 Header · Hard
An IPv4 datagram of size 4000 bytes (including a standard 20-byte header) is to be forwarded over a link with an MTU of 1500 bytes. Which of the following correctly describes the fragmentation offset and the More Fragments (MF) flag of the third fragment?
Not quite. Try another option.
Answer: Offset = 370, MF = 0
The payload size is 3980 bytes. The link MTU is 1500 bytes, so max payload per fragment is 1480 bytes (must be a multiple of 8). Fragment 1: 1480 bytes, Offset = 0, MF = 1. Fragment 2: 1480 bytes, Offset = 1480/8 = 185, MF = 1. Fragment 3: 1020 bytes, Offset = 2960/8 = 370. Since it's the last fragment, MF = 0.
Question 42 of 60 · IPv4 Header · Hard
When a router receives an IPv4 packet and decrements the Time to Live (TTL) field by 1, how is the IPv4 header checksum most efficiently updated without recomputing the entire checksum?
Not quite. Try another option.
Answer: By adding (0x0100) to the existing checksum using one's complement arithmetic.
According to RFC 1141, since the TTL is the high byte of the 16-bit word (TTL, Protocol), decrementing the TTL by 1 subtracts 0x0100 from the header. To maintain the checksum, 0x0100 must be added to the old checksum using one's complement arithmetic.
Question 43 of 60 · IPv6 Header · Hard
In IPv6, if a packet requires Hop-by-Hop Options, Routing, and Fragment extension headers, what is the mandatory order in which these headers must appear after the main IPv6 header?
Not quite. Try another option.
Answer: Hop-by-Hop Options, Routing, Fragment
RFC 8200 specifies the recommended order of extension headers: Hop-by-Hop Options (which must be first if present), Destination Options (for routing), Routing, Fragment, Authentication, Encapsulating Security Payload, Destination Options, and finally upper-layer headers.
Question 44 of 60 · IPv6 Header · Hard
What is the primary implication of a router altering the 20-bit Flow Label field in an IPv6 header during transit?
Not quite. Try another option.
Answer: It violates RFC 6437, as the Flow Label must be delivered unchanged to maintain flow state.
According to RFC 6437, the IPv6 Flow Label is an end-to-end field. Forwarding nodes must not change the Flow Label value if it is non-zero, to ensure consistent flow identification for QoS and load balancing (like ECMP).
Question 45 of 60 · IPv6 Addressing · Hard
What is the Solicited-Node Multicast Address for an IPv6 interface assigned the global unicast address 2001:db8:85a3::8a2e:370:7334?
Not quite. Try another option.
Answer: ff02::1:ff70:7334
The Solicited-Node Multicast Address is formed by appending the lower 24 bits (6 hex digits) of the IPv6 address to the prefix ff02::1:ff00:0/104. The lower 24 bits of the given address are 70:7334. Therefore, the address is ff02::1:ff70:7334.
Question 46 of 60 · IPv6 Addressing · Hard
A host generates an IPv6 interface identifier using the modified EUI-64 format from its MAC address 00:1A:2B:3C:4D:5E. What will be the resulting 64-bit interface identifier?
Not quite. Try another option.
Answer: 021a:2bff:fe3c:4d5e
To form a modified EUI-64 ID, ff:fe is inserted in the middle of the MAC address (00:1A:2B:FF:FE:3C:4D:5E), and the Universal/Local (U/L) bit (the 7th bit of the first byte) is inverted. The first byte 00 (binary 00000000) becomes 02 (binary 00000010). The result is 021a:2bff:fe3c:4d5e.
Question 47 of 60 · Network Address Translation (NAT) · Hard
In the context of STUN and WebRTC, which type of NAT creates a unique external port mapping not just for the internal IP/port, but specifically for each distinct external destination IP and port combo, thus breaking standard UDP hole punching?
Not quite. Try another option.
Answer: Symmetric NAT
Symmetric NAT assigns a new external port for every new destination IP and port that the internal host contacts. Because the external port used to contact a STUN server will differ from the one used to contact a peer, standard UDP hole punching fails.
Question 48 of 60 · Network Address Translation (NAT) · Hard
A network utilizes 'Hairpinning' (NAT loopback). An internal host tries to reach internal host using host 's external (public) IP. Which of the following best describes the packet modification at the NAT router?
Not quite. Try another option.
Answer: The router alters both the source IP (to its own internal IP) and the destination IP (to host B's internal IP).
For hairpinning to work correctly without asynchronous routing (which breaks TCP), the NAT router must translate the destination IP to B's private IP, AND translate the source IP to the router's internal IP (SNAT). If it didn't SNAT, B would reply directly to A, but A expects a reply from the public IP, dropping the packet.
Question 49 of 60 · NETWORK LAYER: Routing · Hard
A router's forwarding table contains the following entries: 192.168.0.0/16 via Interface 1, 192.168.128.0/17 via Interface 2, and 192.168.192.0/18 via Interface 3. A packet arrives destined for 192.168.200.5. Which interface will it use, and why?
Not quite. Try another option.
Answer: Interface 3, due to Longest Prefix Match (LPM).
The destination 192.168.200.5 matches all three prefixes. 192.168.192.0/18 covers from 192.168.192.0 to 192.168.255.255. Since /18 is the most specific match (longest prefix length), the router forwards the packet out Interface 3.
Question 50 of 60 · NETWORK LAYER: Routing · Hard
Consider a router configured with policy-based routing (PBR). If a packet matches both a destination-based route in the routing table (RIB) and a PBR route-map specifying a next-hop based on the source IP, what is the default behavior in most commercial routers (e.g., Cisco)?
Not quite. Try another option.
Answer: The PBR route-map takes precedence, overriding the destination-based RIB entry.
Policy-Based Routing (PBR) intercepts packets before they are routed using the standard routing table (RIB). If a packet matches a PBR policy, the policy dictates the next hop, overriding the destination-based routing lookup.
Question 51 of 60 · Unicast routing protocols · Hard
In the Border Gateway Protocol (BGP), what is the primary purpose of the 'iBGP split-horizon' rule, and what architectural solution is typically implemented to bypass its scaling limitations?
Not quite. Try another option.
Answer: It prevents routing loops within a single AS by dropping routes learned from one iBGP peer if sent to another; solved by Route Reflectors or BGP Confederations.
The iBGP split-horizon rule states that a router cannot advertise a route learned from an iBGP neighbor to another iBGP neighbor. This prevents loops but requires a full mesh of iBGP peers. Route Reflectors and Confederations are used to break this full-mesh requirement for scalability.
Question 52 of 60 · Unicast routing protocols · Hard
In OSPF, a Not-So-Stubby Area (NSSA) allows the injection of external routes while retaining stub area characteristics. Which LSA type is uniquely generated by an ASBR within an NSSA to advertise these external routes, and what happens to it at the Area Border Router (ABR)?
Not quite. Try another option.
Answer: Type 7 LSA; the ABR translates it into a Type 5 LSA before flooding it into the backbone.
NSSAs use Type 7 LSAs to carry external route information. Because Type 5 LSAs are not allowed in stub/NSSA areas, the ASBR generates a Type 7 LSA. When this LSA reaches the ABR, the ABR translates it into a standard Type 5 external LSA to be injected into Area 0.
Question 53 of 60 · Routing algorithms · Hard
Which of the following scenarios describes a topology where the 'Split Horizon with Poisoned Reverse' mechanism fails to prevent the Count-to-Infinity problem?
Not quite. Try another option.
Answer: A three-node network with a routing loop involving all three nodes (a ring topology).
Split Horizon with Poisoned Reverse only breaks two-node routing loops (e.g., A routes through B, and B routes through A). If a loop involves three or more nodes (A points to B, B points to C, C points to A), the poison reverse messages do not propagate across the entire loop simultaneously, and count-to-infinity can still occur.
Question 54 of 60 · Routing algorithms · Hard
Consider a Distance Vector routing network. Node X routes traffic to Destination D via Node Y. Node X's current distance to D is . If X receives an update from Node Z indicating a path to D with cost , under which specific condition MUST X unconditionally accept Z's update, regardless of whether ?
Not quite. Try another option.
Answer: X must accept it if Z is the current next-hop for destination D (i.e., Y = Z).
In Distance Vector algorithms, if the router providing the update is the CURRENT next-hop to the destination, the receiving router must accept the update even if the metric increases. This indicates that the path through that next-hop has degraded, and the router must update its table to reflect reality.
Question 55 of 60 · Routing Algorithm- Shortest path algorithm · Hard
In an implementation of Link-State Routing, Dijkstra's algorithm is run using a Fibonacci Heap priority queue. For a network with routers and links, what is the asymptotic time complexity of computing the shortest path tree?
Not quite. Try another option.
Answer:
Using a Fibonacci heap, the extract-min operation takes amortized time, and the decrease-key operation takes amortized time. Since extract-min is called times and decrease-key is called at most times, the overall time complexity is .
Question 56 of 60 · Routing Algorithm- Shortest path algorithm · Hard
Equal-Cost Multi-Path (ECMP) routing requires routers to identify multiple shortest paths of identical cost. How must Dijkstra's algorithm be modified to support ECMP?
Not quite. Try another option.
Answer: Instead of keeping a single predecessor for each node, a set/list of predecessors must be maintained for nodes when discovering an equal-cost path.
Standard Dijkstra's tracks a single previous_node to construct the shortest path tree. To find all shortest paths (for ECMP), when the algorithm encounters a path to a node that exactly equals the current known shortest distance, it adds the new preceding node to a list of predecessors rather than overwriting the single predecessor.
Question 57 of 60 · Distance vector Routing · Hard
In the Distributed Bellman-Ford algorithm used by Distance Vector routing, a link cost increases significantly. Why does this trigger the 'Bad News Travels Slowly' phenomenon?
Not quite. Try another option.
Answer: Nodes iteratively rely on each other's outdated information, incrementing metrics gradually until infinity is reached.
When a link metric increases (or fails), nodes adjacent to the link may falsely believe they can route through their neighbors, completely unaware that those neighbors were relying on them for the path. They bounce increasing metrics back and forth (count-to-infinity) until the metric reaches the defined maximum ('infinity').
Question 58 of 60 · Distance vector Routing · Hard
What happens if a negative weight cycle exists in a routing domain utilizing the Bellman-Ford algorithm, and how is this handled in practical Distance Vector protocols like RIP?
Not quite. Try another option.
Answer: The algorithm fails to converge as path costs decrease infinitely. RIP avoids this inherently because network links cannot have negative latencies or costs.
In graph theory, Bellman-Ford cannot find shortest paths if a negative weight cycle exists because walking the cycle endlessly decreases the cost. In practical routing protocols like RIP, link metrics represent physical realities (hops, delay) which are strictly positive, making negative weight cycles impossible.
Question 59 of 60 · Link State routing · Hard
In Link State routing, Sequence Numbers are used to distinguish new LSAs from old ones. To prevent the sequence number wrap-around problem (where an LSA with a small sequence number is incorrectly deemed newer after the space wraps), which specific arithmetic space is typically employed by modern protocols like OSPF?
Not quite. Try another option.
Answer: Linear sequence space starting from 0x80000001 to 0x7FFFFFFF, using signed 32-bit integers with a MaxAge timer.
OSPF uses a linear sequence space utilizing signed 32-bit numbers, starting at 0x80000001 (Initial) and ending at 0x7FFFFFFF (Max). It relies on the MaxAge timer to age out old LSAs before sequence wrap-around can cause conflicts, rather than using the older lollipop method (used in early ARPANET).
Question 60 of 60 · Link State routing · Hard
During a massive network instability event (a 'broadcast storm' of topology changes), how do Link State (LS) and Distance Vector (DV) protocols fundamentally differ in their computational degradation at the router level?
Not quite. Try another option.
Answer: LS suffers severe CPU spikes due to repeated Dijkstra executions; DV suffers network congestion due to full routing table exchanges.
In a highly unstable network, an LS protocol receives many tiny topology changes (LSAs) and must repeatedly re-run the CPU-intensive Dijkstra's algorithm. A DV protocol reacts by frequently broadcasting its entire (or partial) routing table to neighbors, which eats up link bandwidth and causes network congestion (Bad news travels slowly/routing loops).
That's unit 4
Answer a few questions and your score shows up here.
Nearly through. Did unit 4 of CSE306 save you a night before the exam?
LPU Notes is free. A student pays for the servers.
Did unit 4 of CSE306 save you a night before the exam?
Then you can help keep it free for the next batch. Ads cover part of the server bill;
the rest comes out of a student's own pocket: the domain, the storage, and keeping
the site up through the weeks everyone needs it at once.
The payment button didn't load. An ad blocker or a filtered network is the usual reason.
to try again.