---
# System prepended metadata

title: CSMA/CD

---

# CSMA/CD

```flow

st=>start: 開始
ed0=>end: 送出成功
ed1=>end: 放棄傳送
temp=>operation: CSMA/CD
mg0=>operation: 延遲9.6μs送出資料框
mg1=>operation: 延遲一段時間
mg2=>operation: 演算法算出隨機等待時間
mg3=>operation: 等待一段隨機時間
cond0=>condition: 傾聽網路是否空閒?
cond1=>condition: 發生碰撞
cond2=>condition: 還沒嘗試15次

st->temp->cond0
mg0->cond1
cond0(yes)->mg0
cond0(no)->mg1(top)->temp
cond1(yes)->cond2
cond1(no)->ed0
cond2(no)->ed1
cond2(yes)->mg2->mg3(right)->temp

```