PHP Api PPPOE Traffic

Hello.
I want to monitor the traffic of the pppoe user that I selected on my NAS device instantly (for example in 0.5 seconds).
How can I do it? I’ll be happy if you can help me.