|
Posted by Aswin on July 18, 2007, 7:54 am
If you were Registered and logged in, you could reply and use other advanced thread options
How would a MAC layer look into the MAC header if it is the one to put
the MAC header onto the packet coming from upper layer (Network
layer)? I am talking about the packet that a node sends out to other
node. I am not talking about MAC layer's function after it "receives"
the packet from
other node. Please let me know how a MAC header is created by a node.
It has to some how look at the IP header of the frame coming from
above layer in order to append the MAC layer header to the packet.
More specifically, i would like to know that how a node that is
sending out a MAC packet would know the destination MAC address? Is it
communicated to it by the higher layer? If yes, how is it done for
higher layer protocols other than IP?
Thanks in advance.
Aswin
|

| |
Posted by Albert Manfredi on July 18, 2007, 10:11 am
If you were Registered and logged in, you could reply and use other advanced thread options
> How would a MAC layer look into the MAC header if it is the one to put
> the MAC header onto the packet coming from upper layer (Network
> layer)? I am talking about the packet that a node sends out to other
> node. I am not talking about MAC layer's function after it "receives"
> the packet from
> other node. Please let me know how a MAC header is created by a node.
> It has to some how look at the IP header of the frame coming from
> above layer in order to append the MAC layer header to the packet.
>
> More specifically, i would like to know that how a node that is
> sending out a MAC packet would know the destination MAC address? Is it
> communicated to it by the higher layer? If yes, how is it done for
> higher layer protocols other than IP?
You are looking for something called Address Resolution Protocol (ARP),
for IP Version 4, or Neighbor Discovery (ND), for IPv6. Respectively,
http://www.ietf.org/rfc/rfc0826.txt?number=826
and
http://www.ietf.org/rfc/rfc2461.txt?number=2461
These are used when the destination is on the same IP subnet as the
sending host. If the sending host sees that the destination IP address
is not on its own IP subnet, then the destination MAC address is the
address of the default router (typically).
ARP is not IP-specific, by the way. It can accept any Layer 3 addresses,
in principle.
Bert
|
|
Posted by glen herrmannsfeldt on July 18, 2007, 2:47 pm
If you were Registered and logged in, you could reply and use other advanced thread options
Albert Manfredi wrote:
(snip)
>> More specifically, i would like to know that how a node that is
>> sending out a MAC packet would know the destination MAC address? Is it
>> communicated to it by the higher layer? If yes, how is it done for
>> higher layer protocols other than IP?
> You are looking for something called Address Resolution Protocol (ARP),
> for IP Version 4, or Neighbor Discovery (ND), for IPv6. Respectively,
> http://www.ietf.org/rfc/rfc0826.txt?number=826
(snip)
> ARP is not IP-specific, by the way. It can accept any Layer 3 addresses,
> in principle.
In principle, but do you know any other than IP that use it?
Apple's ethertalk uses AARP. I don't know where an online
reference is. See "Inside AppleTalk, second edition".
DECNet assigns the MAC address based on the DECNet area and node.
http://linux-decnet.sourceforge.net/faq-4.html#ss4.2
-- glen
|
|
Posted by Albert Manfredi on July 19, 2007, 10:26 am
If you were Registered and logged in, you could reply and use other advanced thread options
>> ARP is not IP-specific, by the way. It can accept any Layer 3
>> addresses, in principle.
>
> In principle, but do you know any other than IP that use it?
No, but that's why I said "in principle." For example, even IPv6 *could*
use ARP. But IPv6 has its own unique mechanism.
Another point is that ARP gets a lot of bad press for using broadcasts
for its queries. But once virtually everything was migrated to IPv4, I
don't think it made a whole lot of difference anymore. There were not
many hosts out there that got interrupted unnecessarily. ND, with its
multicast queries, will eventually interrupt all hosts too, if IPv6
becomes the norm.
> Apple's ethertalk uses AARP. I don't know where an online
> reference is. See "Inside AppleTalk, second edition".
>
> DECNet assigns the MAC address based on the DECNet area and node.
DECnet had some sort of address resolution protocol. I forget the name.
You had to discover all the nodes on your network, but it was a one time
deal. Remember? It took a few minutes to populate the table.
>
> http://linux-decnet.sourceforge.net/faq-4.html#ss4.2
>
> -- glen
Bert
|
|
Posted by Albert Manfredi on July 19, 2007, 10:49 am
If you were Registered and logged in, you could reply and use other advanced thread options
> DECnet had some sort of address resolution protocol. I forget the
> name. You had to discover all the nodes on your network, but it was a
> one time deal. Remember? It took a few minutes to populate the table.
Maybe I'm confusing that with LAT?
Bert
|
| Similar Threads | Posted | | MAC destination address | July 19, 2007, 12:06 am |
| byte order of ethernet destination address | July 26, 2006, 11:31 pm |
| MAC address of an IPv6 address | April 10, 2007, 4:42 pm |
| Valid mac address | February 7, 2006, 8:21 pm |
| Change MAC address | June 20, 2007, 7:19 am |
| Change IP and MAC address | December 10, 2007, 4:59 am |
| Mac address and VLAns | June 17, 2008, 1:27 am |
| Multicast MAC and Unicast IP Address | August 18, 2005, 4:54 pm |
| assigning MAC address to a VLAN | March 14, 2008, 4:58 am |
| Source MAC address per IP packet | June 15, 2008, 3:02 pm |
|
|