Chapter 4: The Network Layer I Flashcards
What is the difference between routing and forwarding?
Forwarding is a data plane action, where a router sends a packet out the correct port.
Routing is a control plane action, where routers determine the best possible paths through.
What are the parts of a router?
Input ports: they terminate an incoming physical link at a router and perform a lookup
Switch fabric: The connection of input ports to the output ports.
Output ports: they transmit packets on the outgoing link.
Routing processor: Performs control-plane functions.
What are the types of input port forwarding?
destination-based forwarding and generalised forwarding.
How are routing tables copied from the router processor to the line cards?
A separate bus, such as a PCI bus.
What is the longest prefix matching rule?
In a forwarding table, the entry with the most digits from the start that match the lookup value is consulted for the forwarding port.
What are the options for switching inside a router?
- Switching via memory: the input packet is copied to the processor memory. The processor analyses the header and consults its forwarding table. It copies the packets into the output port’s buffers. [As there is one read/write bus, only one packet can be forwarded at a time.]
- Switching via a bus: An input packet is transferred straight to the output port through a bus. The input port prepends a label to the packet with the required output port, and all ports receive it.
[As there is only one bus, only one packet can be forwarded at a time.] - Switching via an interconnected network: A crossbar of 2N buses is controlled by the switch fabric itself, with intersections being closed to allow the signal to travel along the correct path.
[Non-blocking when the packets have different output ports.]
What is the amount of buffering that should be used in a router?
B = RTT * Link_Capacity/sqrt(N) where N is the number of independent flows.
What is bufferbloat?
Long delays caused by persistent buffering.
What types of queuing exist?
FIFO.
Priority: Two queues - low and high priority are set up. High priority is always taken first.
Round-robin: packets are grouped into classes, and one from each is sent in turn.
Weighted fair queuing: a round robin queue where each class has a weighting. The bandwidth allocated to a class is the fraction of the total weighting of that class.
What are the fields in an IPv4 header?
4 bits: Version number
4 bits: Header length (typically 20 bytes)
8 bits: Type of service (configured by admins)
16 bits: Datagram length (header + data) in bytes.
16 bits: Identifier
3 bits: Flags
13 bits: Fragmentation offset
8 bits: Time to live
8 bits: Upper-layer protocol
16 bits: Header checksum
32 bits: Source IP address
32 bits: Destination IP address
Options
How many IPv4 addresses are there?
2^32 (roughly 4 billion).
What is a subnet?
Device interfaces that can physically reach each other without passing through an intervening router.
To identify them, erase all routers from a diagram and the remaining link systems are subnets.
What is CIDR?
A number that indicates how many bytes are allocated to the subnet part of the IP address (address is split into subnet then host).
What are the classes of subnet?
A: subnet mask of 255.0.0.0
B: subnet mask of 255.255.0.0
C: subnet mask of 255.255.255.0
How does an organisation get an address block?
ICANN allocates addresses to regional Internet registries. These then allocated subblocks to their ISPs, and so on. The local ISP then allocates a block to the organisation.