Hi, I am bit confused in Data Link Layer. When a sender machine send a data to Reciever machine then it starts from App--Pres--Sess--Transp---Network---Data??? I have understood all upper 5 layer function but in the Network layer the packet has information of Soure and Destination Address then why it needs to have MAC address. Please answer me in details. Thanks
On the Datalink Layer you will see or work only with Mac-Adresses. A Switch see only mac adresses he can't interpret IP Adresses , the next layer device the router see the IP Adress and say, this packet with this destination must go out of this interface. The switch see the mac and knows to which port he must send the frame. He has all mac's in this arp table.
Sender will send the layer2 frame containing the IP packet to Int 1 using the mac-address of Int 1 as the layer2 destination address and its own mac-address as the layer2 source address.
Whe Router A receives this frame, it will decapsulate the IP packet from this frame.
It will then look at the destination IP address of the packet. Using the routing table it will know that it has to send the IP packet to Receiver through Int 2.
Therefore it will encapsulate the IP packet in another layer2 frame. In this case the source mac-address of the frame will be the mac-address of Int 2, the destination mac-address will be the mac-address of Receiver.
The Network Layer header hast the Source and Destination Address (IP address) of the sender and the end receiver. The Data Link header has the Source and Destination address (MAC address) of the sender and the following device in the path to reach the sender.
The sender know where it wants to go (Destination IP address), to reach that destination it has to reach the next device in the path and for that it needs the Destination MAC address of that device... once the packet is in that second device (and it still knows where it wants to go (Destination IP address), now it has a new source MAC address and a new destination MAC address because it wants to get to the next device (may be router 2)... once it gets to router 2 (and it still knows where it wants to go) the packet (in its data link header) now has a new MAC Address in its source and destination.... finaly it gets to the last device and it knows that the Destination IP is in its LAN.
Data link header helps the frame to make it to the next device.... Network Layer header helps you to reach the final destination through all the devices.
Hi everyone, I would like to thank you in advance for any help you can provide a newcomer like myself!
Im studying the 100-105 book by Odom and am currently on the topic of Port security. I purchased a used 2960 and I'm trying to follow a...
While deploying a number of 18xx/2802/3802 model access points (APs), which run AP-COS as their operating platform. It can be observed on some occasions that while many of their access points were able to join the fabric WLC withou...
I am going to design and build an LAN network under a tunnel underground with long distance between the switches.
I will have 2 Catalyst switches and 8 Industrial IE3000, and they will be connected with fiber.
For now I am planning on use Layer-2 s...