Wednesday, 3 April 2013

Media Access Control (MAC Sub Layer)


In the seven-layer OSI model of computer networking, media access control (MAC) data communication protocol is a sublayer of the data link layer, which itself is layer 2. The MAC sublayer provides addressing and channel access control mechanisms that make it possible for several terminals or network nodes to communicate within a multiple access network that incorporates a shared medium, e.g. Ethernet. The hardware that implements the MAC is referred to as a medium access controller.

The MAC sublayer acts as an interface between the logical link control (LLC) sublayer and the network's physical layer. The MAC layer emulates a full-duplex logical communication channel in a multi-point network. This channel may provide unicast, multicast or broadcast communication service.

Functions performed in the MAC sublayer


  • Receive/transmit normal frames
  • Half-duplex retransmission and backoff functions
  • Append/check FCS (frame check sequence)
  • Interframe gap enforcement
  • Discard malformed frames
  • Append(tx)/remove(rx) preamble, SFD, and padding
  • Half-duplex compatibility: append(tx)/remove(rx) MAC address



Addressing mechanism


The local network addresses used in IEEE 802 networks and FDDI networks are called MAC addresses; they are based on the addressing scheme used in early Ethernet implementations. A MAC address is a unique serial number. Once a MAC address has been assigned to a particular network interface (typically at time of manufacture), that device should be uniquely identifiable amongst all other network devices in the world.

This guarantees that each device in a network will have a different MAC address (analogous to a street address). This makes it possible for data packets to be delivered to a destination within a subnetwork, i.e. hosts interconnected by some combination of repeaters, hubs, bridges and switches, but not by network layer routers.

Thus, for example, when an IP packet reaches its destination (sub)network, the destination IP address (a layer 3 or network layer concept) is resolved with the Address Resolution Protocol for IPv4, or by Neighbor Discovery Protocol (IPv6) into the MAC address (a layer 2 concept) of the destination host.
Example of a physical network are Ethernet networks and Wi-Fi networks.

Channel access control mechanism


The channel access control mechanisms provided by the MAC layer are also known as a multiple access protocol. This makes it possible for several stations connected to the same physical medium to share it. Examples of shared physical media are bus networks, ring networks, hub networks, wireless networks and half-duplex point-to-point links. The multiple access protocol may detect or avoid data packet collisions if a packet mode contention based channel access method is used, or reserve resources to establish a logical channel if a circuit switched or channelization based channel access method is used. The channel access control mechanism relies on a physical layer multiplex scheme.

The most widespread multiple access protocol is the contention based CSMA/CD protocol used in Ethernet networks. This mechanism is only utilized within a network collision domain, for example an Ethernet bus network or a hub-based star topology network. An Ethernet network may be divided into several collision domains, interconnected by bridges and switches.

A multiple access protocol is not required in a switched full-duplex network.

Common multiple access protocols


Examples of common packet mode multiple access protocols for wired multi-drop networks are:

  • CSMA/CD (used in Ethernet and IEEE 802.3)
  • Token bus (IEEE 802.4)
  • Token ring (IEEE 802.5)
  • Token passing (used in FDDI)

3 comments:

  1. Is there any manual trick to permanently change the MAC Address of network adapters?

    Thanks
    Silvester Norman

    Change Mac Address

    ReplyDelete
  2. you can find more information about a media access control address on the website http://wlan-wifi.com/mac-address

    ReplyDelete
  3. The physical layer sets limits on the distance over which data can be transmitted without significant signal degradation[url=https://futbollibre.co.uk/]futbollibre[/url]

    ReplyDelete