MAC адреса | Курс "Компьютерные сети"
Mac Address: Understanding the Basics
Introduction to Mac Addresses
- The speaker, Andrey Sazykhin, introduces the topic of MAC addresses within the context of telecommunications systems.
- MAC addresses operate at the data link layer of the OSI model, specifically for media access control (MAC), which is essential when multiple devices share a communication medium.
Purpose and Functionality
- MAC addresses are standardized by IEEE 802 and are crucial for identifying devices on a network. Common standards include Ethernet (IEEE 802.3) and Wi-Fi (IEEE 802.11).
- A MAC address consists of 6 bytes (48 bits), typically represented in hexadecimal format, separated by colons or dashes.
Types of MAC Addresses
- There are three types of MAC addresses:
- Unicast: Directly targets a single device.
- Multicast: Targets a group of devices configured to receive data sent to that address.
- Broadcast: Sends data to all devices on the network; represented as all bits set to one (FF:FF:FF:FF:FF:FF).
Uniqueness and Assignment
- Each MAC address must be unique within its local network segment; duplicates can lead to communication failures among devices.
- Two methods exist for assigning MAC addresses:
- Centralized Assignment: Manufacturers embed unique identifiers into hardware during production.
- Local Assignment: Network administrators manually assign addresses, ensuring no duplicates occur within their segment.
Structure and Identification
- The second bit of the first byte indicates how an address was assigned; '0' signifies centralized assignment while '1' indicates local assignment.
- The first three bytes represent an Organizationally Unique Identifier (OUI), allocated by IEEE to manufacturers, ensuring global uniqueness across devices.
Viewing Your Device's MAC Address
- Users can find their device's MAC address through command-line tools:
- Windows users can use
ipconfig /all.
- Linux users can utilize
ifconfigorip link.
Conclusion on Importance