Input ports, output ports, a switching fabric, and a routing processor are the four components of a generic router. An input port is the point of entrance for incoming packets and the point of attachment for a physical link. Line cards, which commonly accommodate 4, 8, or 16 ports, are used to create ports.