dpdk-vbng-cp / docker-accel-ppp

6 stars 1 forks source link

Add shaper events to redis event publisher #18

Open butjar opened 3 years ago

butjar commented 3 years ago

@micron10 requested to publish shaper events to redis. Indeed, we do not support this event type atm.

butjar commented 3 years ago

@micron10 let's see if we find time to help you with your feature. It would help if you drop, what you have already found out, here.

micron10 commented 3 years ago

Hi Martin And thanks for getting back to me

for my research the right way is to get shaper in Access-Accept from radius in this part of request:

[2020-11-26 10:38:15]: info: vlan100: recv [RADIUS(1) Access-Accept id=1 <Framed-Pool "Dynamic Private Pool"> <Mikrotik-Address-List "Users50M"> <Acct-Interim-Interval 900> <Mikrotik-Rate-Limit "51200k/51200k 56320k/56320k"> <Class 0x6375693d61736b64697075322c736b3d336c336d64667662356331662c626b69643d31313931383334332c626b7269643d312c6d763d3531313035333437393138332c6d743d3630353536322c676d743d3630343830302c73703d312c73723d2c61633d312c75693d32343134362c6363693d302c63633d2c61733d312c636f3d2c64623d35313230302c75623d35313230302c63626b69643d3131393138333434> <Reply-Message "Welcome">]

Need to parse this request and get speed for Mikrotik ,Cisco or Unknow vendor ( this part with parsing is have in shaper/shaper.c

Mikrotik-Rate-Limit and get up/down and burst speed.

if get this information we will disable shaper and pppd_compat module and will get performace incress of accel daemon (may be 20-30%) and with redis any one will have options to make sample script will shaper and all needed information.

Radius Accep-Acess may be check in pppd_compat how get information i part : static void write_radattr

if you need other info i will search I try to ask Dimka88 from Accel to help with this but waiting .

Martin

On Thu, Nov 26, 2020, 14:01 Martin Fleischer notifications@github.com wrote:

@micron10 https://github.com/micron10 let's see if we find time to help you with your feature. It would help if you drop, what you have already found out, here.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/dpdk-vbng-cp/docker-accel-ppp/issues/18#issuecomment-734258447, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADCWD5HAVI7SQUGHMQEN3IDSRY7R5ANCNFSM4UDUM2BQ .

micron10 commented 3 years ago

and need options to set attr if set Mikrotik to filter from Access-Accept this attr only Many people use Filter-Id or <Mikrotik-Rate-Limit or Cisco...

On Thu, Nov 26, 2020, 15:06 Martin Zaharinov micron10@gmail.com wrote:

Hi Martin And thanks for getting back to me

for my research the right way is to get shaper in Access-Accept from radius in this part of request:

[2020-11-26 10:38:15]: info: vlan100: recv [RADIUS(1) Access-Accept id=1 <Framed-Pool "Dynamic Private Pool"> <Mikrotik-Address-List "Users50M"> <Acct-Interim-Interval 900> <Mikrotik-Rate-Limit "51200k/51200k 56320k/56320k"> <Class 0x6375693d61736b64697075322c736b3d336c336d64667662356331662c626b69643d31313931383334332c626b7269643d312c6d763d3531313035333437393138332c6d743d3630353536322c676d743d3630343830302c73703d312c73723d2c61633d312c75693d32343134362c6363693d302c63633d2c61733d312c636f3d2c64623d35313230302c75623d35313230302c63626b69643d3131393138333434> <Reply-Message "Welcome">]

Need to parse this request and get speed for Mikrotik ,Cisco or Unknow vendor ( this part with parsing is have in shaper/shaper.c

Mikrotik-Rate-Limit and get up/down and burst speed.

if get this information we will disable shaper and pppd_compat module and will get performace incress of accel daemon (may be 20-30%) and with redis any one will have options to make sample script will shaper and all needed information.

Radius Accep-Acess may be check in pppd_compat how get information i part : static void write_radattr

if you need other info i will search I try to ask Dimka88 from Accel to help with this but waiting .

Martin

On Thu, Nov 26, 2020, 14:01 Martin Fleischer notifications@github.com wrote:

@micron10 https://github.com/micron10 let's see if we find time to help you with your feature. It would help if you drop, what you have already found out, here.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/dpdk-vbng-cp/docker-accel-ppp/issues/18#issuecomment-734258447, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADCWD5HAVI7SQUGHMQEN3IDSRY7R5ANCNFSM4UDUM2BQ .

micron10 commented 3 years ago

and one more if have options to get statistic active users from show stats: active 232 and active user per vlan:

vlan200 - 232 , vlan235 - 22, vlan264 - 124

Martin

On Fri, Nov 27, 2020, 10:39 Martin Zaharinov micron10@gmail.com wrote:

and need options to set attr if set Mikrotik to filter from Access-Accept this attr only Many people use Filter-Id or <Mikrotik-Rate-Limit or Cisco...

On Thu, Nov 26, 2020, 15:06 Martin Zaharinov micron10@gmail.com wrote:

Hi Martin And thanks for getting back to me

for my research the right way is to get shaper in Access-Accept from radius in this part of request:

[2020-11-26 10:38:15]: info: vlan100: recv [RADIUS(1) Access-Accept id=1 <Framed-Pool "Dynamic Private Pool"> <Mikrotik-Address-List "Users50M"> <Acct-Interim-Interval 900> <Mikrotik-Rate-Limit "51200k/51200k 56320k/56320k"> <Class 0x6375693d61736b64697075322c736b3d336c336d64667662356331662c626b69643d31313931383334332c626b7269643d312c6d763d3531313035333437393138332c6d743d3630353536322c676d743d3630343830302c73703d312c73723d2c61633d312c75693d32343134362c6363693d302c63633d2c61733d312c636f3d2c64623d35313230302c75623d35313230302c63626b69643d3131393138333434> <Reply-Message "Welcome">]

Need to parse this request and get speed for Mikrotik ,Cisco or Unknow vendor ( this part with parsing is have in shaper/shaper.c

Mikrotik-Rate-Limit and get up/down and burst speed.

if get this information we will disable shaper and pppd_compat module and will get performace incress of accel daemon (may be 20-30%) and with redis any one will have options to make sample script will shaper and all needed information.

Radius Accep-Acess may be check in pppd_compat how get information i part : static void write_radattr

if you need other info i will search I try to ask Dimka88 from Accel to help with this but waiting .

Martin

On Thu, Nov 26, 2020, 14:01 Martin Fleischer notifications@github.com wrote:

@micron10 https://github.com/micron10 let's see if we find time to help you with your feature. It would help if you drop, what you have already found out, here.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/dpdk-vbng-cp/docker-accel-ppp/issues/18#issuecomment-734258447, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADCWD5HAVI7SQUGHMQEN3IDSRY7R5ANCNFSM4UDUM2BQ .