cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
736
Views
0
Helpful
3
Replies

Does a router have multiple DLLs inside?

Aamirkhanna
Level 1
Level 1

came across a practice question of true/false answer type . The statement is:

"A router has single network layer that will interact with 2 Data link layers" .

Ans:True (no explanation given)

wH4Qz.png

 

I get that N/w layer is common for all interfaces on router(Nw layer is implemented by os).

DLL at router receives the incoming packet,pass it to N/W layer above,N/W layer finds the appropriate interface using routing table and forwards the packet to that interface . For this , the packet has to pass again through the DLL in the router .

My question is does the router have multiple DLLs(multiple NICs) with different mac addr(since Mac addr is based on NIC), each associated with their corresponding interface such that the receiving DLL passes the packet to NL above and during outgoing of same packet NL passes it to DLL of the appropiate interface which in turn passes it next hop?

OR

Router has only single DLL that handles all interfaces on router,(DLL->NL->DLL) and the packet passes through the same DLL in router twice (during incoming and during outgoing)?can ignore the distinction shown in DLL in router in the image above?

 

3 Replies 3

arsalanpti
Level 1
Level 1

Yes - potentially, a router talks to a different data link layer network (ie. L2 segment) on each of its (sub)interfaces. On different physical interfaces you can even have different L2 protocols (very common in practice). unionwells

 

My question is does the router have multiple DLLs(multiple NICs) with different mac addr(since Mac addr is based on NIC), each associated with their corresponding interface such that the receiving DLL passes the packet to NL above and during outgoing of same packet NL passes it to DLL of the appropiate interface which in turn passes it next hop?

Yes. A router has two or more interfaces (not necessarily true NICs), each usually connecting into a different L2 segment (or data-link-layer instance, which I think you mean by DLL).

A router forwards a received packet to the next hop towards the destination (the next hop can also be the destination itself). For that, the router uses the underlying L2 that provides data framing and often requires addressing, possibly by MAC.

Manoj Reddy
Level 1
Level 1

Hi, 

I am not a professional, but will try to answer what i can!!

 

A Router can act  as a virtual routers if you have VRFs in place, it's always not necessilarly required to have multiple NIC cards for router. Using router on stick concepts and VRF you can make your router virtually different as it's a physically one. 

Thanks

Giuseppe Larosa
Hall of Fame
Hall of Fame

Hello @Aamirkhanna ,

a router performs inter networking between different IP subnets that are mapped to different L2 segments

 

>> My question is does the router have multiple DLLs(multiple NICs) with different mac addr(since Mac addr is based on NIC), each associated with their corresponding interface such that the receiving DLL passes the packet to NL above and during outgoing of same packet NL passes it to DLL of the appropiate interface which in turn passes it next hop?

 

This is true, the router is not limited to LAN interfaces it can have WAN interfaces of different types synch serial using different encapsulations or ATM or POS.

Using the CEF tables : Forwarding Information Base FIB and the Adjacency Table a router is able to efficiently process a received packet extracting the IP packet from the received frame, adjusting the IPv4 header  ( decrease by 1 the TTL and recompute the header checksum that will increment by 1) . The IPv4 packet with the updated header will be object of packet rewrite that is encapsulated in a frame according to the exit interface and using MAC addresses in case of a LAN interface with MAC SA = exit interface MAC and Dest MAC = MAc of next-hop or final destination. In case of non LAN exit interface MAC addresses are not involved for example for serial interface with PPP, in the case of FR there is an outgoing value that is the DLCI value to reach tne next-hop.

With ATM is even more complex as the packet has to be segmented in 48 bytes cell payloads to travel in ATM cells that are fixed size of 53 bytes with 5 bytes of header ( before Segmentation the IPv4 packet is placed within an AAL5 PDU with AAL5snap being the more common encapsulation). In the ATM cell header the values of VPI and VCI are the equivalent of FR DLCI to send the cells over a specific PVC permanent virtual circuit to the next-hop that will re-assembly the AAL5 PDU and it will extract the IP packet.

 

The diagram that you have provided shows how a router works at network layer for example for IPv4 and interconnects two different data link segments

 

Hope to help

Giuseppe

 

 

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card