Community discussions

MikroTik App
 
soueidan
just joined
Topic Author
Posts: 8
Joined: Sun Nov 25, 2012 9:49 pm

PPPoE Service name ?!

Thu Jun 16, 2016 2:16 am

Hello Everyone,

As mentioned in the wiki about PADR: PPPoE Active Discovery Request

When a PADO packet is received, the PPPoE client responds with a PADR packet. This packet is sent to the unicast address of the Access Concentrator. The client may receive multiple PADO packets, but the client responds to the first valid PADO that the client received. If the initial PADI packet had a blank "service-name" field filed, the client populates the "service-name" field of the PADR packet with the first service name that had been returned in the PADO packet.


[table][tr][td]service-name (string; Default: "")[/td]
[td]The PPPoE service name. Server will accept clients which sends PADI message with service-names that matches this setting or if service-name field in PADI message is not set.[/td]
[/tr]
[/table]

Assuming that there are 2 pppoe servers in the network, one set with no service name, and the other set with a service name. Both servers can serve a blank service name.

The question is, if a client send PADI with NO service name (blank), with which server is the connection going to be established ?! The one with a service name or the other with a blank service name ? 
 
User avatar
ZeroByte
Forum Guru
Forum Guru
Posts: 4047
Joined: Wed May 11, 2011 6:08 pm

Re: PPPoE Service name ?!

Thu Jun 16, 2016 5:18 am

Whichever reply arrives faster. I've even heard of installations of multiple PPPoE servers so that statistically, the connections balance across them based on who's less loaded at each new request.
 
leonset
Member Candidate
Member Candidate
Posts: 256
Joined: Wed Apr 01, 2009 9:09 pm

Re: PPPoE Service name ?!

Thu Jun 16, 2016 9:28 am

You have to fill in the "service name" on the PPPoE client if you want it to connect only to your PPPoE server with a specific "service name". Also, on latests versions there's an option "pppoe-server - added pado-delay option;" which can be used to give less preference to some PPPoE Server.
 
soueidan
just joined
Topic Author
Posts: 8
Joined: Sun Nov 25, 2012 9:49 pm

Re: PPPoE Service name ?!

Fri Jun 17, 2016 9:45 pm

You have to fill in the "service name" on the PPPoE client if you want it to connect only to your PPPoE server with a specific "service name". Also, on latests versions there's an option "pppoe-server - added pado-delay option;" which can be used to give less preference to some PPPoE Server.
As it is mentioned in the wiki, both servers are able to serve both PADI. The PADO delay option is not usable in this situation as it is going to delay (postpone) the reply, causing the request to go to the other server. ( For example if the PADI contains a service name and it is intended to connect to the server with a service name, then it is going to be redirected and accepted by the server with no service name).
IF both servers have a service name, then it is going to be solved, however, in my case, I can only set up one service name on a server. ( NOT having access to the other server).
A solution to this may be like, to force the server with the service name to ONLY accept PADI with a service name, and not to serve a blank PADI.
Any ideas ?
 
pierpul
just joined
Posts: 15
Joined: Fri Jan 18, 2013 9:05 pm

Re: PPPoE Service name ?!

Wed Sep 19, 2018 12:06 am

You have to fill in the "service name" on the PPPoE client if you want it to connect only to your PPPoE server with a specific "service name". Also, on latests versions there's an option "pppoe-server - added pado-delay option;" which can be used to give less preference to some PPPoE Server.
As it is mentioned in the wiki, both servers are able to serve both PADI. The PADO delay option is not usable in this situation as it is going to delay (postpone) the reply, causing the request to go to the other server. ( For example if the PADI contains a service name and it is intended to connect to the server with a service name, then it is going to be redirected and accepted by the server with no service name).
IF both servers have a service name, then it is going to be solved, however, in my case, I can only set up one service name on a server. ( NOT having access to the other server).
A solution to this may be like, to force the server with the service name to ONLY accept PADI with a service name, and not to serve a blank PADI.
Any ideas ?
Anyone solve with any rule? Please, help me. Thanks

Who is online

Users browsing this forum: Elvis1991, jaclaz, vahelduvool and 44 guests