Lecture#27-32 Media Access Control (MAC) Layer
Lecture#27-32 Media Access Control (MAC) Layer
Lecture#27-32
Pros Cons
• single active node can • collisions, wasting slots
continuously transmit at • idle slots
full rate of channel • nodes may be able to
• highly decentralized: only detect collision in less
slots in nodes need to be than time to transmit
packet
in sync
• clock synchronization
• simple
4/14/2024 Media Access Control Sub Layer 5-16
Slotted Aloha efficiency
Efficiency is the long-run • For max efficiency with N
fraction of successful slots nodes, find p* that
when there are many nodes, maximizes
each with many frames to send Np(1-p)N-1
• For many nodes, take limit
• Suppose N nodes with many of Np*(1-p*)N-1 as N goes
frames to send, each to infinity, gives 1/e = .37
transmits in slot with
probability p
• prob that node 1 has success At best: channel
in a slot = p(1-p)N-1 used for useful
• prob that any node has a transmissions 37%
success = Np(1-p)N-1 of time!
= p . (1-p)2(N-1)
Even worse !
= 1/(2e) = .18
Preamble:
• 7 bytes and each byte has the pattern 10101010 followed by
one byte with pattern 10101011
• used to synchronize receiver, sender clock rates
Data:
• 46-1500 bytes
1
efficiency =
1 + 5t prop / ttrans
Repeater [9]
“A repeater receives a signal, regenerates it, and passes it
on.
It can regenerate and retime network signals at the bit level
to allow them to travel a longer distance on the media.
It operates at Physical Layer of OSI
The Four Repeater Rule for 10-Mbps Ethernet should be
used as a standard when extending LAN segments.
This rule states that no more than four repeaters can be
used between hosts on a LAN.
This rule is used to limit latency added to frame travel by
each repeater.”
4/14/2024 Media Access Control Sub Layer 55
Repeater, Hub, Bridge & Switch
Hub [9]
“Hubs are used to connect multiple
nodes to a single physical device,
which connects to the network.
Hubs are actually multiport
repeaters.
Using a hub changes the network
topology from a linear bus, to a
star.
With hubs, data arriving over the
cables to a hub port is electrically
repeated on all the other ports
connected to the same network
segment, except for the port on
which the data was sent. “
4/14/2024 Media Access Control Sub Layer 56
Repeater, Hub, Bridge & Switch
Bridge [9]
“Bridges are used to logically separate
network segments within the same network.
They operate at the OSI data link layer (Layer
2) and are independent of higher-layer
protocols.
The function of the bridge is to make
intelligent decisions about whether or not to
pass signals on to the next segment of a
network.
When a bridge receives a frame on the
network, the destination MAC address is
looked up in the bridge table to determine
whether to filter, flood, or copy the frame
onto another segment. Broadcast Packets are
forwarded”
4/14/2024 Media Access Control Sub Layer 57
Repeater, Hub, Bridge & Switch
Switch [9]
“Switches are Multiport Bridges.
Switches provide a unique network segment on each port,
thereby separating collision domains.
Today, network designers are replacing hubs in their wiring
closets with switches to increase their network performance and
bandwidth while protecting their existing wiring investments.
Like bridges, switches learn certain information about the data
packets that are received from various computers on the
network.
Switches use this information to build forwarding tables to
determine the destination of data being sent by one computer to
another computer on the network. “
4/14/2024 Media Access Control Sub Layer 58
Repeater, Hub, Bridge & Switch
B’ A’