Friday, November 23, 2012

Gain the Knowledge about LAN and MAC Protocal

    The Internet is such a big idea that represents the network over the world. However, we can separate it into much smaller groups -- Local Area Network (LAN). The Internet just works as a combination of these small LANs.


    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. 
     A frame can be transmitted successfully only when there is no other frame transmitted on the way of its transmission, which means there is no collision. However, under this ALOHA MAC protocol, the vulnerable period is twice as the frame's duration time. Then the throughput of the system is



    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:

  1. 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.
  2. Step 2: If channel is busy, continue to listen until channel is idle, then go to Step 1.
  3. If collision, wait a random amount of time (i.e., back-off), then go to Step 1 to retransmit the same packet.
    In addition, to improve the throughput, Collision Detection and Collision Avoidance can be used for Ethernet network and Wireless network respectively.

    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!

1 comment:

  1. 只專注與將ALOHA挺好的,可以讓我們詳細地瞭解到ALOHA的運作方式。如果你還要改進這篇BLOG的話,建議可以寫寫還有什麽其他的MAC protocol 并講講它們與ALOHA 的比較。這個樣就可以從一個系統的高度瞭解到這個主題了。

    ReplyDelete