CS138-lecture-20210429

Multiple access protocols cont. #

CSMA cont. #

CSMA/CD is used by ethernet.

image_2021-04-29-09-01-07 image_2021-04-29-09-01-48 image_2021-04-29-09-02-57

CD = collision detection, CA = collision avoidance

It is not easy to detect collision (because of signal strength) in wireless LAN.

image_2021-04-29-09-04-46

CSMA/CD algorithm #

image_2021-04-29-09-05-37

NIC = network interface card

Binary backoff:

After the \( m \) th collision, we choose \( K \) randomly in the range of \( \{0, 1, 2, \ldots, 2^m - 1\} \) . We then wait \( 512K \) bit times to retransmit.

So, if

  • \( m = 0 \) , there is no collision, immediate transmission
  • \( m = 1 \) , there has been 1 collision, \( K \) will be either 0 or 1, and we we wait \( 512K = 0 \) or \( 512K = 512 \) bit times until retransmission.
  • and so on…
Note: A bit time is the speed that the NIC takes to send 1 bit. Read more.

image_2021-04-29-09-05-59

“Taking turns” MAC protocols #

image_2021-04-29-09-20-59 image_2021-04-29-09-21-01 image_2021-04-29-09-22-33

Cable access network #

image_2021-04-29-09-26-15 image_2021-04-29-09-27-35

Summary of MAC protocols #

image_2021-04-29-09-31-57

LAN #

image_2021-04-29-09-32-47

LAN = local area network

image_2021-04-29-09-33-04 image_2021-04-29-09-36-44 image_2021-04-29-09-37-30

ARP: address resolution protocol #

image_2021-04-29-09-40-51 image_2021-04-29-09-43-17

Addressing #

image_2021-04-29-09-45-23

  • A will know B’s IP address via DNS.
  • A will know R’s address via DHCP.
  • A will know R’s MAC address via ARP.

image_2021-04-29-09-50-08 image_2021-04-29-09-51-15 image_2021-04-29-09-51-29 image_2021-04-29-09-51-46 image_2021-04-29-09-52-12 image_2021-04-29-09-52-56 image_2021-04-29-09-53-01

Ethernet #

image_2021-04-29-09-55-55 image_2021-04-29-09-57-07 image_2021-04-29-09-59-13 image_2021-04-29-10-01-54 image_2021-04-29-10-04-55 image_2021-04-29-10-07-26

Switches #

image_2021-04-29-10-08-19 image_2021-04-29-10-09-19 image_2021-04-29-10-11-08 image_2021-04-29-10-11-30 image_2021-04-29-10-11-50 image_2021-04-29-10-12-38 image_2021-04-29-10-12-50 image_2021-04-29-10-13-11 image_2021-04-29-10-14-55