Data Link Layer

  • Ethernet and MAC Addresses

    • Ethernet: protocol most widely used for software at higher levels of the stack to send and receive data across individual links

    • Served as a protocol to solve the problem of collision domain by using a technique known as carrier sense multiple access with collision detection (CSMA/CD)

      • determines when the communications channels are clear, and when a device is free to transmit data

    • Mac address: globally unique identifier attached to an individual network interface

      • 48-bit number normally represented by six groups of two hexadecimal numbers (represents numbers w/ 16 digits (1-9 & A-F)

      • Split into two sections: OUI

        • Organizationally Unique Identifier (OU): first three octets of a MAC address assigned to individual hardware manufatuers by the IEEE

    • Ethernet uses MAC addresses to ensure that the data it sends has both an address for the machine that sent the transmission, as well as the one the transmission was intended for

  • Unicast, Multicast, and Broadcast

    • Unicast: transmission meant for just one receiving address

      • If the least significant bit in the first octet of. destination address is set to zero, it means that ethernet frame is intended for only the destination address

    • Multicast:transmission accepted or discarded by each device depending on criteria aside from their own hardware MAC address

      • If the least significant bit in the first octet of a destination address is set to one, it means you’re dealing with a multicast frame

      • network interfaces can be configured to accept lists of configured multicast addresses

    • Broadcast: sent to every single device on a LAN through a broadcast address

      • Ethernet broadcast address: used so devices can learn more about each other

  • Ethernet Frames

    • Data packet: any single set of binary data being sent across. a network link

    • Ethernet frames: data packets at the Ethernet level represented through a highly structured collection of information presented in a specific order

    • Preamble: first part of the Ethernet frame

      • 8 bytes / 64 bits long

      • Can be split into two sections

        • 1st 7 bytes: series of alternating ones and zeros- buffer b/w frames, used by network interfaces to synchronize internal clocks used to regulate data transfer speed

        • Last byte: Start Frame Delimiter (SFD), which signals to a receiving device that the preamble is over and that the actual frame contents will now follow

      • Destination address: second part of the Ethernet frame

        • hardware address of the intended recipient

      • Source Mac address: third part of the ethernet frame

        • Where the frame originated from

      • Ether-type field: the fourth part (or fifth part if following the VLAN header) of the ethernet frame used to describe the protocol of the contents of the frame

        • 16 bits long (2 bytes)

      • VLAN header: option two of the fourth part of the ethernet frame that indicates the frame itself is a VLAN frame

        • VLAN (Virtual LAN): allows you to have multiple logical LANs operating on the same physical equipment

      • Payload: the actual data being transported (5th or 6th part of the ethernet frame)

      • Frame check sequence: 4-byte (32 bit) number representing a checksum value for the entire frame (6th or 7th part of the ethernet frame)

        • Calculated by performing cyclical redundancy check against the frame

        • cyclical redundancy check: important concept for data integrity and computing. is a mathematical transformation using polynomial division. tocreate a number that represents a larger set of data