Networking Protocols Quiz

Choose a study mode

Play Quiz
Study Flashcards
Spaced Repetition
Chat to Lesson

Podcast

Play an AI-generated podcast conversation about this lesson

Questions and Answers

What is the primary difference between unslotted ALOHA and slotted ALOHA?

Unslotted ALOHA does not require synchronization and allows transmission immediately when a frame arrives, while slotted ALOHA divides time into discrete slots for synchronization.

Explain how the efficiency of pure ALOHA is affected by the channel probability.

The efficiency of pure ALOHA is given by the formula $P(success) = p(1-p)2(N-1)$, leading to an optimum efficiency of $1/(2e) \approx 0.18$.

Describe the CSMA protocol and its significance in network communications.

CSMA stands for Carrier Sense Multiple Access, where nodes listen before transmitting; if the channel is idle, they transmit, which helps to reduce collisions.

What challenges does collision detection (CSMA/CD) face in wireless LANs?

<p>In wireless LANs, collision detection is challenging because the received signal strength can be overwhelmed by the local transmission strength, making it difficult to measure and compare signals.</p> Signup and view all the answers

How do propagation delays affect collisions in CSMA protocols?

<p>Propagation delays can cause nodes to transmit simultaneously without realizing another node is transmitting, leading to increased collision probability.</p> Signup and view all the answers

What are the primary concerns associated with token message systems in networking?

<p>The primary concerns are token overhead, latency, and the risk of a single point of failure.</p> Signup and view all the answers

Explain the difference between MAC addresses and IP addresses.

<p>MAC addresses are used locally for data link layer communication and are unique to each device, while IP addresses are used for network layer forwarding and can vary based on the device's subnet.</p> Signup and view all the answers

What is the purpose of the MAP frame in a cable access network?

<p>The MAP frame assigns upstream time slots for cable modems to transmit data.</p> Signup and view all the answers

Describe the role of random access protocols such as CSMA/CD in Ethernet networks.

<p>Random access protocols like CSMA/CD allow devices to sense the channel for activity and transmit data while avoiding collisions.</p> Signup and view all the answers

What are the key functions of the Address Resolution Protocol (ARP)?

<p>ARP is used to determine a device's MAC address given its IP address, facilitating communication on a local network.</p> Signup and view all the answers

In the context of cable access networks, what is the function of FDM and TDM?

<p>FDM (Frequency Division Multiplexing) allocates different frequency channels for downstream and upstream communication, while TDM (Time Division Multiplexing) assigns specific time slots for upstream data transmission.</p> Signup and view all the answers

How does the assignment of MAC addresses differ from the assignment of IP addresses?

<p>MAC addresses are assigned to devices by manufacturers and are unique to each network interface, while IP addresses are hierarchical and can change based on the device's network location.</p> Signup and view all the answers

How does a switch learn the location of a sender?

<p>A switch learns the location of a sender by recording the MAC address of the sending host and the incoming LAN segment when a frame is received.</p> Signup and view all the answers

What information is stored in each entry of a switch table?

<p>Each entry of a switch table contains the MAC address of the host, the interface to reach the host, and a timestamp.</p> Signup and view all the answers

What is the initial state of the switch table when it begins operating?

<p>The switch table is initially empty before it starts learning the locations of hosts.</p> Signup and view all the answers

Explain the basic process a switch uses when a frame is received.

<p>When a frame is received, the switch records the incoming link and MAC address of the sending host, then indexes the switch table using the MAC destination address.</p> Signup and view all the answers

What role does timestamp play in a switch table entry?

<p>The timestamp indicates the time-to-live (TTL) for the entry, which helps manage the table by allowing it to discard outdated entries.</p> Signup and view all the answers

What is meant by 'self-learning' in the context of switches?

<p>'Self-learning' refers to the switch's ability to autonomously learn and remember the network topology by recording sender-location pairs as frames are processed.</p> Signup and view all the answers

How does a switch determine where to forward a received frame?

<p>The switch determines where to forward a received frame by looking up the MAC destination address in its switch table.</p> Signup and view all the answers

In what way is a switch table similar to a routing table?

<p>A switch table is similar to a routing table in that it contains mappings of addresses to specific interfaces, enabling efficient data forwarding.</p> Signup and view all the answers

What happens if a switch receives a frame with a destination MAC not in its table?

<p>If the switch receives a frame with a destination MAC not in its table, it will flood the frame to all interfaces except the one it was received on.</p> Signup and view all the answers

What is the purpose of the ARP table in a local area network (LAN)?

<p>The ARP table contains mappings of IP addresses to MAC addresses for devices on the LAN, enabling communication between them.</p> Signup and view all the answers

What happens to an IP-MAC address mapping in the ARP table when the TTL expires?

<p>The IP-MAC address mapping is forgotten and removed from the ARP table once the TTL (Time To Live) expires.</p> Signup and view all the answers

Describe the scenario in which device A needs to use ARP to communicate with device B.

<p>Device A must use ARP to obtain device B's MAC address when it is not present in A's ARP table.</p> Signup and view all the answers

What does the acronym ARP stand for, and what is its function?

<p>ARP stands for Address Resolution Protocol, and it resolves IP addresses to MAC addresses within a local network.</p> Signup and view all the answers

In a specific ARP table listing, what two pieces of information are typically included for each node?

<p>The ARP table typically includes the IP address and the corresponding MAC address for each node on the LAN.</p> Signup and view all the answers

What action does device A take once it receives the MAC address of device B through ARP?

<p>Device A caches the IP-to-MAC address mapping for future communication after receiving B's MAC address.</p> Signup and view all the answers

If an ARP table shows an IP address of 137.196.7.78, what other related information would it typically display?

<p>It would typically display the associated MAC address and the TTL for that mapping.</p> Signup and view all the answers

Why is it important for devices on a LAN to have an updated ARP table?

<p>An updated ARP table is crucial for ensuring accurate and efficient communication between devices on the LAN.</p> Signup and view all the answers

What might occur if device A attempts to send data to device B but has an outdated ARP table?

<p>If device A has an outdated ARP table, it may fail to locate device B's MAC address, resulting in communication failure.</p> Signup and view all the answers

Flashcards

Pure ALOHA

A simple, unslotted protocol where nodes transmit immediately upon receiving a frame.

Collision Probability (Pure ALOHA)

The likelihood that two or more nodes transmit at the same time, leading to data loss.

CSMA

Carrier Sense Multiple Access: a protocol where nodes listen to the channel before transmitting.

CSMA/CD

Carrier Sense Multiple Access with Collision Detection: a protocol that detects collisions and stops transmission to avoid wasted time.

Signup and view all the flashcards

Ethernet CSMA/CD

A specific implementation of the CSMA/CD protocol used in Ethernet networks.

Signup and view all the flashcards

Token Overhead

The time and resources consumed in passing a token around a network to grant access to send data.

Signup and view all the flashcards

Latency in Token Passing

The delay involved in waiting for the token to arrive, which affects data transmission time in a token-passing network.

Signup and view all the flashcards

Single Point of Failure (Token)

If the device holding the token fails, the entire network is disrupted, as no other device can send data.

Signup and view all the flashcards

MAC Address vs. IP Address

MAC address is a physical hardware address for a network interface, while IP address is a logical address for a device on a network.

Signup and view all the flashcards

ARP's Role

ARP (Address Resolution Protocol) translates IP addresses to MAC addresses for communication within a local network.

Signup and view all the flashcards

MAC Address Portability

MAC addresses are tied to hardware and can be moved between different networks.

Signup and view all the flashcards

IP Address Non-Portability

IP addresses are tied to a specific network and cannot be directly moved to another network.

Signup and view all the flashcards

ARP Table

A table on each IP network node (like a computer or router) storing mappings between IP addresses (like addresses on the internet) and MAC addresses (like unique hardware IDs of devices).

Signup and view all the flashcards

IP/MAC Mapping

A pair of information in an ARP table that links an IP address to a corresponding MAC address.

Signup and view all the flashcards

TTL

Time To Live in an ARP table entry, indicating how long the IP/MAC mapping will be stored before needing to be refreshed.

Signup and view all the flashcards

ARP Protocol

A protocol used to determine the MAC address of a device on the same LAN network based on its IP address.

Signup and view all the flashcards

Why does a device need ARP?

A device needs ARP to find the MAC address of another device on the same LAN in order to send data to it.

Signup and view all the flashcards

Caching in ARP

When a device receives a response to an ARP request, it saves the new mapping in its ARP table for future use, reducing future lookup time.

Signup and view all the flashcards

ARP Request

A message sent out on a LAN by a device when it needs to find the MAC address of another device on the same network.

Signup and view all the flashcards

ARP Reply

A message sent in response to an ARP request, containing the MAC address of the requested device.

Signup and view all the flashcards

How does ARP work when a device needs to send data?

A device first checks its ARP table for the MAC address of the destination device. If it's not there, it sends out an ARP request. The device with the target IP address responds with its MAC address, which is then cached in the requester's ARP table.

Signup and view all the flashcards

Switch Table

A table inside a network switch that helps it learn the location of connected devices based on their MAC addresses.

Signup and view all the flashcards

Switch Table Entries

Each entry in the switch table stores the MAC address of a connected device, the interface on the switch that the device is connected to, and a timestamp.

Signup and view all the flashcards

How does the switch learn

The switch learns the location of devices by receiving frames. When a switch receives a frame, it records the sender's MAC address and the interface it came in on. This information is then stored in the switch table.

Signup and view all the flashcards

Self Learning

The act of a switch automatically updating its table based on observed network traffic without any external configuration. This process is what makes the switch a "learning" device.

Signup and view all the flashcards

Switch Frame Filtering

A switch uses its table to determine where to forward incoming frames. It checks the destination MAC address of the frame and looks up the corresponding interface in its table.

Signup and view all the flashcards

Switch Frame Forwarding

Once the switch finds the destination interface, it then forwards the frame out of the appropriate port. This ensures that the frame only goes to the intended recipient.

Signup and view all the flashcards

Switch Table Maintenance

Switch tables are constantly updated as devices connect and disconnect, and as traffic flows through the network. Entries time out if they are not refreshed, preventing the table from filling up with outdated information.

Signup and view all the flashcards

Switch Table Role in Network Efficiency

The switch table allows for efficient frame forwarding by eliminating unnecessary broadcasts, speeding up communication and reducing network traffic.

Signup and view all the flashcards

Switch Table vs Routing Table

Switch tables operate at layer 2 (data link layer), addressing devices based on their MAC addresses. Routing tables operate at layer 3 (network layer) and route traffic based on IP addresses.

Signup and view all the flashcards

Study Notes

  • This chapter discusses the link layer, which is responsible for transferring datagrams between physically adjacent nodes on a network.
  • The link layer uses various protocols to manage communication channels and provide services such as error detection and correction.
  • Terminology: Hosts and routers are referred to as nodes. Communication channels are called links. Links can be wired or wireless. A layer-2 packet is a frame, encapsulating a datagram.
  • Link Layer Services:
    • Framing and Link Access: Encapsulates datagrams into frames by adding headers and trailers. Used to access shared mediums ("MAC" addresses identify source and destination). Different than IP addressing.
    • Reliable Delivery: This is less commonly used for low bit-error links. Wireless links use both link-level and end-end reliability.
    • Flow Control: Manages the pacing between sending and receiving nodes on a link.
    • Error Detection: Detects errors caused by signal attenuation or noise. Methods like parity checks and cyclic redundancy checks (CRCs) are used to find and correct errors.
    • Error Correction: Identifies and corrects errors without requiring retransmission.
    • Half-duplex and Full-duplex: Half-duplex allows transmission in one direction at a time, while full-duplex allows transmission in both directions simultaneously.
  • Location: The link layer is implemented in a network interface card (NIC) or on a chip within each host.
  • Adaptors (NICs) communicate by encapsulating datagrams in a frame, adding error detection bits (or other error correction), and performing rdt (reliable data transfer) and flow control.
  • Link Layer, LANs Outline: Covers topics like introduction, services, error detection, correction; multiple access protocols (e.g. TDMA, FDMA); and local area networks (LANs) including addressing, ARP, Ethernet, switches, and Virtual LANs (VLANs). Also includes link virtualization (MPLS), data center networking, and a case study on a typical web request.
  • MAC Addresses and ARP: Each network interface (NIC) has a unique 48-bit MAC address. ARP (Address Resolution Protocol) is used to translate an IP address to a MAC address, and vice-versa, allowing communication within a local area network.
  • Ethernet: A widely used wired LAN technology. It uses a shared bus or star topology, CSMA/CD (Carrier Sense Multiple Access/Collision Detection) for access protocols;
    • Ethernet's physical topology varies from bus to star.
    • An Ethernet frame structure has a preamble, destination and source addresses, type, data, and CRC (Cyclic Redundancy Check) fields.
  • Ethernet, Reliable and Connectionless. Ethernet is unreliable and connectionless, meaning it doesn't use handshaking between sending and receiving NICs, and receiving NICs don't send acks or nacks to sending NICs.
    • For data in dropped frames, the higher layer protocol like TCP adds retransmission methods to ensure reliability.
  • 802.3 Ethernet Standards: Details many different Ethernet standards, speeds (2 Mbps to 10 Gbps), and physical layers like fiber and cable.
  • Ethernet Switch: An active link layer device that stores and forwards frames. It examines MAC addresses in incoming frames to selectively forward them to the appropriate outgoing links. A switch uses CSMA/CD to access the segment. Switches are transparent, meaning hosts are unaware of their presence, and plug-and-play, meaning they can be used without needing configuration. Switches also use self-learning to build their forwarding tables.
  • Switch Forwarding Tables: A switch maintains a forwarding table mapping MAC addresses to ports. This table is dynamically updated as the switch learns which hosts are reachable through which interfaces in the LAN.
  • Switch Self-Learning: A switch's ability to learn the MAC addresses of hosts on its connected network segments and create a forwarding table to efficiently forward frames.
  • Interconnecting Switches: Switches can be interconnected together to create larger networks.
  • Data Center Networks: Details the architecture of networks in data centers and the challenges in design to support the ever-increasing number of high-speed connections and traffic. Load balancing and redundancy are key concepts that are discussed. A section on the typical interactions involved in a web server request is reviewed to exemplify the protocols mentioned in this chapter.
  • MPLS (Multiprotocol Label Switching): A high-speed IP forwarding technique that uses fixed-length labels instead of IP addresses for fast lookup and forwarding.
  • MPLS Signaling: Describes the protocols and techniques involved in network configuration for forwarding to ensure data can transition across different LANs.
  • VLANs (Virtual Local Area Networks): A networking technology that allows the creation of multiple logical networks (VLANs) over a single physical network infrastructure. Using VLANs improves network security and efficiency.

Additional Topics (from Chapter 5, as identified in the discussion)

  • Wireless, Multimedia, Network Security, Network Management. These topics are not further explored in the current chapter but may be discussed in later chapters.

Studying That Suits You

Use AI to generate personalized quizzes and flashcards to suit your learning preferences.

Quiz Team

Related Documents

More Like This

CSMA/CD vs CSMA/CA
6 questions

CSMA/CD vs CSMA/CA

ManeuverableForgetMeNot2590 avatar
ManeuverableForgetMeNot2590
Use Quizgecko on...
Browser
Browser