Community discussions

MikroTik App
 
Syonyk
Member Candidate
Member Candidate
Topic Author
Posts: 109
Joined: Mon Feb 14, 2005 6:32 pm
Location: Coralville, IA
Contact:

Ascend-Data-Rate & Ascend-Xmit-Rate reversed?

Wed Feb 16, 2005 12:23 am

I've been messing around with HotSpot & Ascend-Data-Rate.

Ascend-Data-Rate works properly when it's the only attribute - limits speeds to the requested value.

However, when I have Ascend-Data-Rate and Ascend-Xmit-Rate both in place, the values are reversed. Xmit controls the download speed, and Data controls the upload rate.

Is this correct? It's consistent (when I change the values, it behaves), but it seems like it's kind of backwards.

-=Russ=-
 
cmit
Forum Guru
Forum Guru
Posts: 1552
Joined: Fri May 28, 2004 12:49 pm
Location: Germany

Wed Feb 16, 2005 11:49 am

It makes sense, if you look at it from the NAS's perspective: Xmit (transmit) seen from the routers' side is "download" as seen be the client...
Best regards,
Christian Meis
 
User avatar
YazzY
Member Candidate
Member Candidate
Posts: 140
Joined: Fri May 28, 2004 3:26 pm
Location: Norway, Østfold
Contact:

Wed Feb 16, 2005 7:49 pm

You can stick to Ascend-Data-Rate all the way for both tx and rx.
Then you need to add prio to your radius table
I.E
INSERT INTO radreply VALUES (199,'user','Ascend-Data-Rate','=','4096000',1);
INSERT INTO radreply VALUES (200,'user','Ascend-Data-Rate','=',524288'',0);

Your sql.conf for mysql and freeradius would have:
authorize_reply_query = "SELECT id,UserName,Attribute,Value,op FROM ${authreply_table} WHERE Username = '%{SQL-User-Name}' ORDER BY prio DESC"
 
Syonyk
Member Candidate
Member Candidate
Topic Author
Posts: 109
Joined: Mon Feb 14, 2005 6:32 pm
Location: Coralville, IA
Contact:

Tue Feb 22, 2005 2:16 am

Thanks! I'll play with that. I figured there was some good reason for why it seemed reversed, and that makes sense.

-=Russ=-

Who is online

Users browsing this forum: Bing [Bot], DarkNate, Google [Bot], Znevna and 91 guests