CS138-lecture-20210427
Note: We skipped the slides on multicast last lecture.

image_2021-04-27-09-00-49 image_2021-04-27-09-02-58 image_2021-04-27-09-03-51 image_2021-04-27-09-07-04

image_2021-04-27-09-09-53

MAC = media access control, MAC addresses are 48 bits.

image_2021-04-27-09-13-35

image_2021-04-27-09-16-29 image_2021-04-27-09-17-45

rdt = reliable data transfer

Error detection/correction #

image_2021-04-27-09-19-22 image_2021-04-27-09-20-33 image_2021-04-27-09-27-45 image_2021-04-27-09-28-52 image_2021-04-27-09-30-43

G G can be any sequence as long as the sender and receiver use the same sequence.

image_2021-04-27-09-33-52

So if we pad the right side of D D with R=011 R = 011 , we will get a remainder of 0 0 when the receiver performs the division.

Multiple access protocols #

image_2021-04-27-09-38-35 image_2021-04-27-09-41-08 image_2021-04-27-09-43-00 image_2021-04-27-09-44-38 image_2021-04-27-09-44-57 image_2021-04-27-09-46-32 image_2021-04-27-09-49-02

CSMA/CD is used by ethernet, CSMA/CA is used by wifi.

image_2021-04-27-09-51-55 image_2021-04-27-09-53-15

On axis: C = collision, E = empty, S = successful

image_2021-04-27-09-58-11

If we have N N nodes, for a given node in slotted ALOHA, the probability is Np(1p)(1p)(1p)(1p) Np(1 - p)(1-p)(1-p) \cdots (1-p) .

Success = Np(1p)N1 Np(1-p)^{N-1} .

image_2021-04-27-10-02-50 image_2021-04-27-10-05-30

image_2021-04-27-10-07-32

CSMA is still a random access protocol.

image_2021-04-27-10-10-26 image_2021-04-27-10-10-34 image_2021-04-27-10-11-21 image_2021-04-27-10-11-43