To realize the information communication in networks, we need not only the server who provides the information and the client who receives the information, but also the medium which is used to transmit the information as well as control the transmition procedure.
For these few weeks, I have learned something about the working principles of Local Area Network (LAN) and Medium Access Control (MAC) Protocols.
In a network, what our concern much is the throughput of the data transmission. To understand the concepts more clearly, we study an example -- ALOHA. ALOHA originated from University of Hawaii with campuses on different islands.
The MAC protocol of Pure ALOHA is as below:
- Transmit whenever there is a packet to send
- If there are collisions (Aloha does not detect collisions directly), retransmission will be triggered after a time-out period. Retransmission time must be random.
In order to raise the throughput of the system, Slotted ALOHA was applied. Time is divided into slots and every frame can be transmitted only at the beginning of a timeslot.
Thus, vulnerable period decreases to be the same as the frame's duration time and the throughput increased to be
I also learned about other Random Access Protocol of transmitting data in the network, such as Carrier Sense Multiple Access (CSMA).
For CSMA, there are 3 typical modes -- non-Persistence, 1-Persistence and p-Persistence. p-Persistence has the highest efficiency and its algorithm is as below:
- Sense the channel. If idle, transmit with probability p and go to Step 3; wait for tprop with probability (1-p) before repeating Step 1.
- Step 2: If channel is busy, continue to listen until channel is idle, then go to Step 1.
- If collision, wait a random amount of time (i.e., back-off), then go to Step 1 to retransmit the same packet.
Now, we can compare the throughput of these random access schemes:
There are many other knowledge I have gained these few weeks, such as how the polling systems works, what's the differences between bridge, hub and switch, how to resolve the hidden-station problem and so on. Computer network is such an interesting course, and although I will finish this course soon, I hope to learn more about it!
只專注與將ALOHA挺好的,可以讓我們詳細地瞭解到ALOHA的運作方式。如果你還要改進這篇BLOG的話,建議可以寫寫還有什麽其他的MAC protocol 并講講它們與ALOHA 的比較。這個樣就可以從一個系統的高度瞭解到這個主題了。
ReplyDelete