3213 Quiz 2 Flashcards
MAC Address
Header to frame specifies address of receiver
48 bits = 6 bytes // repped as 12 hexadecimal digits
What is bit stuffing
What are steps
Used to avoid confusion / help manage
Insert 0 after a string of 5 - 1’s in frame
If next bit 0, delete bit stuffing
if 10 - flag
if 11 - error
Three types of MAC Address
Unicast - To one user in LAN (2nd digit needs to be even)
Multicast - To group of users in LAN (2nd dig odd)
Broadcast - To all users in LAN // FF:FF…:FF
What is ARP
Address Resolution Protocol
Service of getting MAC address for a specified IP address
ARP Table
IP/MAC address mappings for LAN nodes
<IP address, MAC address, Time-to-Live>
TTL = time after map is forgotten (20-60mins)
Describe ARP example
Node A wants to send frame to B
A broadcasts ARP request containing B’s IP
All machines receive req, B receives ARP req
B replies to A with MAC Address via unicast
A saves IP-to-MAC pair in ARP table
Frame Error in DLL
2 types of error
Probability?
Lost Frame: not received
Damaged Frame: bits are corrupted
Prob of Bit Error (BER) :
wireless - pb = 10^-3
copper - pb = 10^-6
fiber - pb=10^-9
Types of error (2)
Single bit errors: one bit in frame corrupted
Burst errors: two or more bits in frame corrupted
Error control method 1:
Detect + Automatic repeat reQuest
ARQ: waste of bandwidth + return channel required
Key idea of error control?
Redundancy bits: add extra bits for detect + correct
Block coding
Data stream split into blocks of datawords which then converted to code word of larger size. Error detected if code word got corrupted and is no longer apart of possible codewords in dictionary
Hamming distance
number of distance between corresponding bits
found by XORing two codewords and counting # of 1’s in result
Minimum hamming distance for detection
dmin = s + 1
Such that s errors are guaranteed to be detected in all cases
Minimum hamming distance for correction
dmin = 2t + 1
Such that t errors are guaranteed to be corrected in all cases
Example [ Hamming distance]
A code scheme has a Hamming distance dmin=4. What is the error detection and
error correction capability of this scheme?
detection - s = 3
correction - t = 1.5
Floor the results