Tp2 Report: Point Coordination Function (PCF)
Tp2 Report: Point Coordination Function (PCF)
Tp2 Report: Point Coordination Function (PCF)
By
RBIH BOULANOUAR
GROUP 03
PCF Overview
Step 1 − PC sends a beacon frame after waiting for PIFS. The beacon frame
reaches every station in the wireless network.
Step 2 − If AP has data for a particular station, say station X, it sends the data
and a grant to station X.
Step 3 − When station X gets the grant from the AP, if it has a data frame for
AP, it transmits data and acknowledgement (ACK) to the AP.
Step 5 − The AP then sends goes to the next station, say station Y. If AP has
data for Y, it sends data and grant to Y, otherwise it sends only grant to Y.
Step 6 − On receiving grant from AP, station Y transmits its data (if any) to AP.
Step 7 − This process continues for all the stations in the poll.
Step 8 − At the end of granting access to all the stations, the AP sends an ACK
to the last station. It then notifies all stations that this is the end of polling.
PCF implementation in java
In the implementation I used 3 class:
Run() it is for creating a thread and run the access point on it and I used
the function synchronized(AP) for synchronous between the access
point and stations.
send(String msg) this function send the received frame to the target if
the is no other communications is happening .
receive() for receiving frames from the stations
2-STATION CLASS:
It is similar to the access point with the same methods except that station can’t
send frame directly to another station , the frame must send first to the access
point and the access point resend it to the target station.
the two other methods (send frame receive frame) are the same as the
AP send and receive methods
3-PCF CLASS:
The main class contain the main function for creating the stations and the
access point and calling the send/receive function.
Main()