Slotted ALOHA
Step 1: Background Knowledge
Summarize the background knowledge (with text and figures)
- In slotted ALOHA, time is assumed to be slotted in timeslots of duration , and STAs can only start their packet transmissions at the beginning of the next timeslot after the packet has formed
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
- Each STAs can have two states: idle or backlogged.
- When a STA has nothing to transmit it is in the idle state.
- If the packet was received successfully the STA enters the idle state again, otherwise it goes to backlogged state.
Idle State
- As there are a total of STAs in the network, each of the nonbacklogged STAs will transmit a packet immediately in the given slot if one or more packets arrived at these STAs
- These new arrivals are Poisson distributed with mean , so probability of no arrivals is
- This implies that the probability of an unbacklogged STA transmits packets in a given slot is
Backlogged state
- Each backlogged STAs retransmits with probability in each successive slot until successful transmission happens
- Let denote the number of backlogged STAs at the beginning of a given slot, each of the STAs will transmit a packet in a given slot independent of the other nodes, with probability
- is offered load, and throughput
- Collision Probability
- Mean delay
Step 2: System Model
Define the problem by specifying the system model you considered
- There are m STAs,
- Time is divided into fixed-length slots
- Packet arrivals are poisson distribution with mean
- When STAs are in the idle state, probability of new arrival for each STAs is
- When in backlogged state, probability of retransmission is
- An STA will stay in backlogged state until the packet is successful, when the packet is successful STA will become idle and waiting for a new packet arrival
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
Figure 2.1 Timing Diagram
I/P |
Value |
number of STAs |
100 |
|
[0:0.1:5] |
simulation Time |
timeslots |
3b. Draw a timing diagram showing the transmission behavior of a STA
Draw a timing dirgram showing the concepts you learned
Step 4 : Simulator
Write a simulator to verify the concept
4a. Define the parameters (their ranges need to be specified) and data structures to be used in your simulator
STA's Data structure
datatype |
meaning |
range |
int[status] |
STA status, idle or backlogged |
|
float[pa] |
packet arrival probability |
|
float[pr] |
packet retransmission probability |
|
int[N] |
packet transmitted in a given slot |
|
int[totalPacketAt] |
total packets attempted |
|
int[totalPacketTr] |
total packets successfully transmitted |
|
|O/P|
|-|-|
| : packet collision probability |
| : throughput |
| : offered load |
| : mean delay |
4b. Draw the flowchart
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
Step 5 : Verification
Implement a simulator. Use the values you generated from the simulator and verified them one-by-one based on Step 3
this is the transmission behavior when lambda=1
https://raw.githubusercontent.com/bariqfirmansyah/slottedaloha/master/lambda1.txt
this is also the transmission behavior when lambda=1
https://raw.githubusercontent.com/bariqfirmansyah/slottedaloha/master/lambda1a.txt
this is the transmission behavior when lambda=5
https://raw.githubusercontent.com/bariqfirmansyah/slottedaloha/master/lambda5.txt
look at how the packet transmission occurs more when lambda=5
Step 6 : Simulation Result
Show us the simulation results
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →