The City College of New York: Networking & Security MIS G 2030
The City College of New York: Networking & Security MIS G 2030
1
4/3/2019
2
4/3/2019
3
4/3/2019
MAC Frame
A sends to B
datagram
frame
• Flow Control:
– pacing between sender and receivers
• Error Detection:
– errors caused by signal attenuation, noise.
– receiver detects presence of errors:
• signals sender for retransmission or drops
frame
• Error Correction:
– receiver identifies and corrects bit error(s) without
resorting to retransmission
4
4/3/2019
M application
Ht M transport
Hn Ht M network data link network
protocol
Hl Hn Ht M link link Hl Hn Ht M
physical physical frame
phys. link
adapter card
ARP protocol
ARP: Address resolution protocol
• A knows B's IP address, wants to learn physical
address of B
• A broadcasts ARP query pkt, containing B's IP
address
– all machines on LAN receive ARP query
• B receives ARP packet, replies to A with its
(B's) physical layer address
• A caches (saves) IP-to-physical address pairs
until information becomes old (times out)
5
4/3/2019
6
4/3/2019
7
4/3/2019
• Taking turns
– tightly coordinate shared access to avoid collisions
• Random Access
– allow collisions
– “recover” from collisions
8
4/3/2019
9
4/3/2019
10
4/3/2019
11
4/3/2019
12
4/3/2019
13
4/3/2019
Example
Example
14
4/3/2019
A (Bit = 1) 1 -1 -1 1 -1 1
B (Bit = 1) 1 1 -1 -1 1 1
Combined Signal 2 0 -2 0 0 2
Receiver Codeword
1 -1 -1 1 -1 1
Multiplication 2 0 2 0 0 2 6
15
4/3/2019
16
4/3/2019
Polling:
Token passing
17
4/3/2019
ALOHA
An early solution to the problem of allocating
a shared channel
18
4/3/2019
19
4/3/2019
Slotted ALOHA
• Time is divided into equal size slots
• Node with new arriving pkt: transmit at
beginning of next slot
• If collision: retransmit pkt in future slots with
probability p, until successful.
20
4/3/2019
21
4/3/2019
22
4/3/2019
References
1. http://www.eecs.northwestern.edu/~rberry/ECE333/Lectures/
2. http://www.ecse.rpi.edu/Homepages/shivkuma/teaching/fall2001/index.
html - Shivkumar Kalvanaraman & Biplab Sikdar
3. http://www.cs.gsu.edu/~cscyip/csc8221/Chapt-07.pdf
4. http://webpages.math.luc.edu/~pld/courses/346/spr05/tbl9.pdf
5. http://calliope.uwaterloo.ca/~ggong/ECE710T4/lec5-ch3c.pdf
23