![]() However, the IP header, which was generated by the original computer, remains intact until it reaches the final destination. This IP header, along with the data, is then encapsulated in a MAC header, which includes the source and destination MAC addresses for the current “hop” in the path.Īs the data travels from one router to the next, the MAC address header is stripped off and a new one is generated for the next hop. When a computer sends data, it first wraps it in an IP header, which includes the source and destination IP addresses. The IP addresses ensure that the data gets from its original source reaches its final destination and it is also called “end-to-end” delivery of data. These IP addresses are used to identify devices on a network and to route traffic between networks. On the other hand, Layer 3 ( Network Layer ) uses an IP (Internet Protocol) address. The primary function of MAC addresses is to manage how data is transported from one network node to another on a direct, physical basis – this is also referred to as “hop to hop” delivery. ![]() These are unique identifiers assigned to network interfaces for communications at the data link layer. Layer 2 (Data Link Layer ) uses a MAC (Media Access Control) address. Layer 3 uses IP addresses and is responsible for packet delivery from end to end.Layer 2 uses MAC addresses and is responsible for packet delivery from hop to hop.It’s divided into seven layers, each performing specific functions. This model is a conceptual framework that describes how data is sent and received over a network. The reason for having both IP and MAC addresses lies in the way the Internet works, specifically in the structure of the OSI Model. Reason to Have Both IP and MAC Addresses. Frames that are destined with MAC address FF-FF-FF-FF-FF-FF will reach every computer belonging to that LAN segment. Ethernet frames with ones in all bits of the destination address (FF-FF-FF-FF-FF-FF) are referred to as the broadcast addresses. Broadcast: Similar to Network Layer, Broadcast is also possible on the underlying layer( Data Link Layer). IEEE has allocated the address block 01-80-C2-xx-xx-xx (01-80-C2-00-00-00 to 01-80-C2-FF-FF-FF) for group addresses for use by standard protocols.ģ. In Layer-2 (Ethernet) Multicast address, the LSB (least significant bit) of the first octet of an address is set to one. Multicast: The multicast address allows the source to send a frame to a group of devices. The MAC Address of the source machine is always Unicast.Ģ. If the LSB (least significant bit) of the first octet of an address is set to zero, the frame is meant to reach only one receiving NIC. Unicast: A Unicast-addressed frame is only sent out to the interface leading to a specific NIC. Software Engineering Interview Questionsġ.Top 10 System Design Interview Questions and Answers. ![]() ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |