Teknik Akses Jaringan - Non Carrier Sense Pertemuan 11 Tahun

advertisement
Matakuliah : H0484/Jaringan Komputer
Tahun
: 2007
Teknik Akses Jaringan - Non Carrier Sense
Pertemuan 11
Learning Outcomes
Pada akhir pertemuan ini, diharapkan mahasiswa
akan mampu :
• Menjelaskan teknik akses ke jaringan secara random
Bina Nusantara
Outline Materi
• ALOHA
• Slotted ALOHA
• Reservation ALOHA
Bina Nusantara
Medium Sharing Techniques
Allocation Principles
• Channel partitioning (Multiple Access)
– Divide channel into smaller pieces (time slots, frequency)
– Allocate piece to node for exclusive use
• Random access
– Allow collisions and Recover from collisions
• Scheduled /Taking turns
– Tightly coordinate shared access to avoid collisions
Bina Nusantara
Broadcast Networks
• N senders and receivers connected by a shared medium
(copper wire, atmosphere, water)
• Shared local access to the same media
• Multiple Access Protocol Determine which host is allowed to
transmit next to a shared medium
•Channel partition: TDMA, FDMA, CDMA
•Random access: ALOHA, CSMA/CD, CSMA/CA
• Local Area Network (LAN)
• Ethernet, Fast Ethernet, Gigabit Ethernet, Wireless
Ethernet, or 802.11 b/a, or WiFi
Bina Nusantara
Multiple-access protocols
Bina Nusantara
Medium Access Methods
Bina Nusantara
Random Access Protocols
• General principles:
• No Carrier Sensing
• Carrier Sensing
• Wait for silence
• Then talk (transmit)
• Listen while talking
• Backoff if there is transmission .
• Repeat
• Protocols also add a random increasing timeout
Bina Nusantara
No Carrier Sensing
ALOHA
– Useful in which uncoordinated users are
competing for the use of a single shared channel.
– Pure Aloha (no global time synchronization) and
Slotted Aloha (global time synch. required)
Bina Nusantara
ALOHA Network
Bina Nusantara
Pure ALOHA
–
–
–
–
–
Bina Nusantara
PURE ALOHA
Stations transmit whenever they have information to
send at all times.
Collision will occur when two hosts try to transmit
packets at the same time
If first bit of a frame overlaps with last bit of an earlier
frame then both will be destroyed
Colliding frames destroyed detected by listening to the
channel
Such a system is called a contention system
Pure ALOHA
– If no ACK by timeout, then wait a randomly selected
delay to avoid repeated collisions, then retransmit
– Too short : large number of collisions
– Too long : underutilization
– Frames are the same size
– In LAN feedback is immediate. For satellite broadcast
270msec delay
Bina Nusantara
Pure ALOHA - Collision
• No synchronization
• Send without awaiting for beginning of slot
• Collision of packets can occur when a packet overlaps another
packet:
– Packet sent at t0 collide with packets sent at [t0-1] or at [t0+1]
Wasted Time Colliding with B
Overlap
Overlap
with start of with end of
packet B
packet B
Packet A
Packet B
Packet C
t0-1
Bina Nusantara
t0
Collision
t0+1
Collision
time
Slotted ALOHA
• Rather than sending a packet at any time, send along time
slot boundaries
• Collisions are confined to one time slot
Wasted Time
Colliding with B
Packet A
Packet B Packet C
time
t0-1
t0
Collision
Bina Nusantara
t0+1
Efficiency of ALOHA
Bina Nusantara
Download