Unit 5
Unit 5
Network Layer
Routing and Forwarding
Prepared By: Ami Mehta
[email protected]
Routing and Forwarding
1. Input ports
An input port performs several key functions.
It performs the physical layer function of terminating an
incoming physical link at a router; this is shown in the
leftmost box of the input port and the rightmost box of
the output port in Figure.
An input port also performs link-layer functions needed
to interoperate with the link layer at the other side of
the incoming link; this is represented by the middle
boxes in the input and output ports.
Router architecture
1. Input ports
Perhaps most crucially, the lookup function is also
performed at the input port; this will occur in the
rightmost box of the input port. It is here that the
forwarding table is consulted to determine the router
output port to which an arriving packet will be
forwarded via the switching fabric.
Control packets (for example, packets carrying routing
protocol information) are forwarded from an input port
to the routing processor.
Router architecture
2. Switching fabric
The switching fabric connects the router’s input ports
to its output ports.
This switching fabric is completely contained within
the router - a network inside of a network router!
Router architecture
3. Output ports
An output port stores packets received from the
switching fabric and transmits these packets on the
outgoing link by performing the necessary link-layer
and physical-layer functions.
When a link is bidirectional (that is, carries traffic in
both directions), an output port will typically be
paired with the input port for that link on the same
line card.
Router architecture
4. Routing processor
The routing processor executes the routing protocols,
maintains routing tables and attached link state
information and computes the forwarding table for
the router.
It also performs the network management functions.
Types of switching fabrics
Prepared By: Ami Mehta
[email protected]
Types of switching fabrics
DHCP ACK
The server responds to the DHCP request message
with a DHCP ACK message, confirming the requested
parameters.
Network Address
Translation (NAT)
Prepared By: Ami Mehta
[email protected]
Network Address Translation (NAT)