Data plane Flashcards
What is the network layer?
Transports segments from sender to receiver.
segments are encapsulated by the sender into datagrams, and then passed up to transport layer by receiver
What devices use network layer protocols?
Use by every host and router, as it allows for datagrams to be addressed
What are the functions of the network layer?
Forwarding
Routing
What is forwarding?
Move packets from router’s input to appropriate output.
What is routing?
Determine route to be taken by packets from source to destination
What is the data plane?
Local, per-router function. Determines how datagrams on a router should be forwarded
What is the control plane?
Network-wide logic, Determine how datagram is routed among routers along end-to-end path
What are the two approaches to control-plane implementation?
Traditional routing algorithms: Implemented in routers
Software-defined networking (SDN): Implemented in remote server
How do traditional routing algorithms work?
Individual algo. components in each router interact with the control plane.
What is the architecture of a router?
Division into control plane and data plane.
Control plane contains routing processor
Data plane contains input/output ports and a high-seed switching fabric which speaks with the routing processor.
What is the structure of an input port?
Line termination, into link layer protocol (receive), into input buffer which is for queueing lookups and forwarding.
What happens at the input buffer in the input port?
Input port is given instruction by routing processor.
lookup output port using forwarding table in memory.
What types of forwarding is there for a router?
Destination-based forwarding: Based on IP address
Generalised forwarding: Forward based on any set of header field values.
How do forwarding tables decide what output port to use?
Longest prefix matching, find the longest address prefix matching the destination address (basically, most specific)
What type of memory is used in routers?
TCAMS
Ternary content addressable memories
Allows for the retrieval of an address in one clock cycle.
What is a switching fabric?
Transfers packet from input buffer to output buffer.
What is switching rate?
Rate is the rate at which packets can be transferred through the switching fabric.
Often measured as multiple of input/output line rate.
N inputs should aim for N * line rate.
What are the three types of switching fabrics?
Memory
Bus
Crossbar
How does switching via memory work?
Packet copied to system’s memory, speed limited by memory bandwidth as it 2 busses have to be crossed per datagram.
How does switching via bus work?
Datagram from input port memory to output port memory via a shared bus.
BUs contention: Switching speed is limited by bus bandwidth.
As bus is shared, data flows from input to output without leaving it. (think of Harry Potter staircase)
How is Switching via crossbar done?
Can split datagrams into n length cells and switch them through the network.
Overcomes bus bandwidth limitations.
How does input port queuing occur and what can be done about it?
Occurs when the switching fabric is slower than the input ports combined, causes delay and loss on buffer overflow.
Can also cause HOL blocking.