Podcast
Questions and Answers
What is the primary purpose of the source MAC address field in an Ethernet frame?
What is the primary purpose of the source MAC address field in an Ethernet frame?
When a NIC receives an Ethernet frame, it automatically forwards the frame regardless of the destination MAC address.
When a NIC receives an Ethernet frame, it automatically forwards the frame regardless of the destination MAC address.
False
What does MAC stand for in the context of network addressing?
What does MAC stand for in the context of network addressing?
Media Access Control
A __________ is a one-to-all transmission in network communication.
A __________ is a one-to-all transmission in network communication.
Signup and view all the answers
Which of the following describes multicast transmissions?
Which of the following describes multicast transmissions?
Signup and view all the answers
A MAC address is typically 6 bytes or 28 bits in length.
A MAC address is typically 6 bytes or 28 bits in length.
Signup and view all the answers
Match the following types of transmission with their descriptions:
Match the following types of transmission with their descriptions:
Signup and view all the answers
What method does a Layer 2 switch use to forward packets?
What method does a Layer 2 switch use to forward packets?
Signup and view all the answers
What happens when a packet's destination MAC address cannot be found in the MAC address table?
What happens when a packet's destination MAC address cannot be found in the MAC address table?
Signup and view all the answers
Line discipline in the Data Link layer helps determine which device can send data and when.
Line discipline in the Data Link layer helps determine which device can send data and when.
Signup and view all the answers
What two methods are used to achieve line discipline?
What two methods are used to achieve line discipline?
Signup and view all the answers
In the Stop-and-wait method, the sender waits for an __________ after every frame it sends.
In the Stop-and-wait method, the sender waits for an __________ after every frame it sends.
Signup and view all the answers
What does the positive acknowledgement (ACK) indicate in the ENQ/ACK method?
What does the positive acknowledgement (ACK) indicate in the ENQ/ACK method?
Signup and view all the answers
Match the flow control methods with their descriptions:
Match the flow control methods with their descriptions:
Signup and view all the answers
Flow control restricts the number of frames a sender can send before an acknowledgement from the receiver.
Flow control restricts the number of frames a sender can send before an acknowledgement from the receiver.
Signup and view all the answers
What is the main purpose of flow control in the Data Link layer?
What is the main purpose of flow control in the Data Link layer?
Signup and view all the answers
What is the primary function of the data-link layer?
What is the primary function of the data-link layer?
Signup and view all the answers
What is the purpose of error-detecting codes?
What is the purpose of error-detecting codes?
Signup and view all the answers
The data-link layer is responsible for error detection in communications.
The data-link layer is responsible for error detection in communications.
Signup and view all the answers
An ARP request is sent only when a device has an entry for the IPv4 address in its ARP table.
An ARP request is sent only when a device has an entry for the IPv4 address in its ARP table.
Signup and view all the answers
What two sublayers make up the data-link layer and what are their functions?
What two sublayers make up the data-link layer and what are their functions?
Signup and view all the answers
What is the Frame Check Sequence (FCS) used for?
What is the Frame Check Sequence (FCS) used for?
Signup and view all the answers
The data-link layer prepares network data for the ______.
The data-link layer prepares network data for the ______.
Signup and view all the answers
The process of sending multiple frames before needing acknowledgements is known as _____.
The process of sending multiple frames before needing acknowledgements is known as _____.
Signup and view all the answers
Which topology refers to the arrangement of network devices?
Which topology refers to the arrangement of network devices?
Signup and view all the answers
An end device can be classified as a node in a computer network.
An end device can be classified as a node in a computer network.
Signup and view all the answers
What information is contained in an ARP request?
What information is contained in an ARP request?
Signup and view all the answers
Match the following terms with their definitions:
Match the following terms with their definitions:
Signup and view all the answers
What is the purpose of the Start Frame of Preamble in data transmission?
What is the purpose of the Start Frame of Preamble in data transmission?
Signup and view all the answers
Match the following terms with their descriptions:
Match the following terms with their descriptions:
Signup and view all the answers
Noise during transmission can change a 0 bit to a 1 bit or vice versa.
Noise during transmission can change a 0 bit to a 1 bit or vice versa.
Signup and view all the answers
What are the two basic functions of ARP?
What are the two basic functions of ARP?
Signup and view all the answers
Study Notes
IDT6.4/3 - Data-Link Layer
- The data link layer prepares network data for the physical network.
- It sits between the network layer and the physical layer in the OSI model.
- It enables upper layers to access the media, which the upper layer isn't aware of.
- It accepts Layer 3 packets (e.g., IPv4 or IPv6) and encapsulates them into Layer 2 frames.
- It controls how data is placed and received on the media, including the transmission and receipt of frames between endpoints.
- The data link layer directs encapsulated Layer 3 packets to the appropriate upper-layer protocol.
- It detects and rejects corrupt frames.
- A PDU (protocol data unit) at the data link layer is called a frame.
- A node is a device on a network.
- The media are the physical means used to carry data signals.
- A network is two or more devices connected to a common medium.
Data-Link Layer Purpose
- The Data Link layer is responsible for communications between end-device network interface cards.
- The layer allows upper-layer protocols to access physical-layer media.
- It encapsulates Layer 3 packets (IPv4 and IPv6) into Layer 2 frames.
- It performs error detection and rejects corrupt frames.
Data Link Layer Terms
- Frame: A PDU (Protocol Data Unit) at the Data Link layer
- Node: A device on a network
- Media: The physical means used to carry data signals
- Network: Two or more devices connected to a common medium
Data Link Layer Sublayers
- Logical Link Control (LLC): Communicates between network software and device hardware at upper and lower layers.
- Media Access Control (MAC): Responsible for data encapsulation and media access control. IEEE 802.3 (Ethernet), 802.11 (Wireless LAN), 802.15 (Wireless PAN).
Data Link Layer Protocols
- Data link layer protocols are defined by engineering organizations (IEEE, ITU, ISO, ANSI) for protocols such as Ethernet, WLAN, and Wireless PAN.
Data Link Frame - Frame Fields
- Frame has three parts: Header, Data, Trailer.
- Fields in the header and trailer vary according to data-link layer protocol.
- Amount of control information in the frame varies based on access control and logical topology.
- Frame Start and Stop: Identifies beginning and end of the frame.
- Addressing: Identifies source and destination nodes.
- Type: Identifies encapsulated Layer 3 protocol.
- Control: Identifies flow control services.
- Data: Contains the frame payload.
- Error Detection: Used for determining transmission errors/corruptions.
Start Frame of Preamble
- The Start of Frame fields are used for synchronization between sending and receiving devices.
- The first few bytes tell receivers to get ready to receive a new frame.
Addressing
- Destination MAC Address Field: Identifies where the frame needs to go.
- Source MAC Address Field: Identifies the originating NIC or interface of the frame.
Ethernet MAC Addresses
- A device sending a message will include Source MAC address and Destination MAC address in the Ethernet Header.
- When a NIC receives a frame, it checks the destination MAC address against its own physical MAC address in RAM.
- If there is a match, the frame is passed up OSI layers for de-encapsulation; otherwise, the frame is discarded.
- Ethernet NICs accept frames if the destination MAC is broadcast or multicast.
Transmission types at the Data Link Layer
- Unicast: Frame is sent to a single destination MAC address.
- Multicast: A single stream of frames is sent to multiple devices.
- Broadcast: A one-to-all transmission to all devices on the network.
MAC Address Table
- MAC Address Table determines where to forward data on a LAN.
- It maps each switch port to the MAC address of the device connected.
- This optimizes traffic forwarding, only forwarding to the port associated with the destination MAC address.
Switch Learning and Forwarding
- Every frame entering the switch is checked for new source MAC address information.
- If the source MAC address is not in the switch's table, it is added, and the incoming port is associated with the MAC address.
- If the address exists on the table, on a different port, the switch treats it as a new entry.
- Entries are removed from the table after 5 minutes by default.
Packet Forwarding
- The device uses the MAC address table to forward packets.
- In unicast mode, the switch forwards the packet to the interface matching the destination MAC address.
- Broadcast mode: The packet is sent out all ports (except the incoming port) to all devices on the LAN..
Sending the Frame to the Default Gateway
- The devices in the network will use switches to forward the data or frame to the default gateway when the destination is outside the local network.
- The default gateway is typically a router.
- When a device needs to send data to another network, it sends the frame to the default gateway, which then forwards the frame to the appropriate destination.
Data Link Layer Functions
- Line discipline: Determines who should send data.
- Flow Control: Regulates the amount of data sent to prevent overwhelming a slow receiver.
- Error Control: Detects and corrects errors during transmission.
Line Discipline
- Line Discipline is a functionality of the Data Link layer that coordinates link systems and determines which device can send data and when.
- Methods include ENQ/ACK (enquiry/acknowledgement) and poll/select.
- Using ENQ/ACK, the transmitter sends an ENQ to the receiver requesting permission to send data.
- If the receiver is ready, it responds with an ACK, allowing the transmitter to send data.
- If the receiver isn't ready, it sends a NACK, and the transmitter waits and retries.
- Following an error, the transmission will be restarted.
Flow Control
- Flow control regulates the amount of data sent to prevent a fast sender from overwhelming a slow receiver.
- Methods include Stop-and-Wait, which sends one frame at a time and waits for acknowledgement. Sliding window, which sends multiple frames and tracks the unacknowledged frames.
Error Detection
- Errors occur when receiver and sender data don't match.
- Noise in transmission can modify the binary bits ('0' to '1' or '1' to '0') during transmission.
- Error detecting codes, including parity bits and frame check sequences (FCS) are used to detect errors in the transmitted message/frame.
ARP (Address Resolution Protocol)
- ARP is used to determine the MAC address of a device given its IP address on the same local network.
- ARP provides two basic functions: (1) Resolving IPv4 addresses to MAC addresses; and (2) Maintaining a table of IPv4 to MAC address mappings.
- ARP request: Sent when a device needs a MAC address, and doesn't have one in its table.
- The request is encapsulated in an Ethernet frame with a broadcast destination MAC address to all devices on the local network, requesting the requested MAC address.
- The device having the requested IP address responds with its MAC address, updating the sending device's ARP table.
Studying That Suits You
Use AI to generate personalized quizzes and flashcards to suit your learning preferences.
Related Documents
Description
This quiz covers the essential functions and purposes of the Data Link layer in the OSI model. It examines how Layer 2 frames encapsulate Layer 3 packets and the role of the Data Link layer in ensuring reliable communication between network devices. Test your knowledge on the mechanics of data transmission and frame handling.