4. Datalink Layer Protocols Flashcards
(36 cards)
Datalink Layer Protocols define rules & procedures for:
- Framing
- Addressing
- Transmitting
- Receiving data on a network segment
What does the Standard Ethernet do?
- Provides connectionless service
- connects devices within a LAN
- Uses CSMA/CD
- Uses 1-persistent method (send once channel is idle)
Cable 10BaseX implies:
- data rate: 10Mbps
- digital signal
- X = type/length of cable:
- 5 = 500m coaxial
- 2 = 185m coaxial
- T = Twisted Pair (UTP)
- F = Fiber-optic
Give details about Fast Ethernet
- 100 Mbps
- compatible with standard Ethernet:
- same frame format & size
- no CSMA as hosts don’t compete with each other.
- uses full-duplex links.
- uses switches with buffers to store frames.
Describe 2 Ethernet Encoding methods
MLT-3:
- 3 levels (-1, 0, 1)
- signal level changes if next bit is 1
8B6T:
- Converts 8 bits to 6 base-3 symbols.
Describe 4B/5B encoding
- Converts 4 bits into 5-bit codes
- Ensures frequent transitions for clock sync.
- 25% overhead (extra bits for reliability)
Describe 8B/10B encoding
- Converts 8 bits into 10-bit codes
- high speed transmission
Gigabit Ethernet
- Speed: 1000 Mbps (1 Gbps)
- same frame format & length
- same address size
Ethernet addressing: define a MAC address
- 6 bytes in hex with colon every 2 bytes (xx.xx.xx.xx.xx.xx)
- assigned by NIC of station
Define the Unicast address type
- Source address is always unicast (frame comes from only 1 station)
- destination address can be unicast, multicast or broadcast
Define the Multicast address type
- defines group of devices that should receive the frame.
- First byte can’t be 0 (LSB = 1)
Define the Broadcast address type
- defines all hosts
- Broadcast MAC address consists of all 1s
Define the Preamble field of a frame
- to sync clocks
- receiver may miss some bits
Define the SFD of a frame
- 1 byte (10101011)
When does the Type/Length field of a frame define the type or the length?
- if more than 1500: defines length
- if less than 1500: defines protocol type of encapsulated payload
Define the Data field of a frame
- carries data encapsulated from upper-layer protocols.
- if <46 pad with 0s
Define the CRC (error detection) field of a frame
- calculated over address, type & data fields.
- if CRC = 0 discard frame
How does CSMA/CD avoid collisions?
- Compare sent vs received bits
- if collision, wait & resend
- interframe gap (IFG): 12 bytes between frames
Signal attenuation limits LAN range, what amplifying devices r used to balance this out?
- Repeaters
- Hubs
- Switches
- cut-through switching
What does a Repeater do?
- join LANs together
- amplify/regenerate signals
- extend network range
What does a hub do?
- join input lines
- broadcast signals to all ports
- is a collision domain
What does a switch do?
Connect computers:
- extract destination addy from frame.
- looks up destination in table.
- forwards frame to appropriate host
- support simultaneous communication
Pros of switches:
- reduces collisions
- each connection can send in both directions
- secure & private
- if busy, store frame in buffer
- frame sent only to necessary host
- can adjust sender & receiver transmission rates
Disadvantages of switches
- high cost
- needs to build forwarding table
- forwarding delay (as needs to receive, parse, look-up store & forward)