Righty. The saga semi continues 
Re the bandwidth split, a relatively easy way to do this (not 100% accurate though)
512/256k users per example:
512+256 = 768k in total
Recv-Limit = (TotalBandwidth - UsedBandwidth)/768256
Xmit-Limit = (Totalbandwidth - UsedBandwidth)/768512
The sum of Recv-Limit and Xmit-Limit will never be higher than TotalBandwidth - UsedBandwidth, so I should be in the clear.
Now, on to the next issue. I am using MT 2.8.24 for my test / development NAS. For some reason, the MT sends Accounting-Stop requests twice to the Radius server… Can anyone allaborate why?
rad_recv: Accounting-Request packet from host 192.168.1.254:1028, id=98, length=275
Service-Type = Framed-User
Framed-Protocol = PPP
NAS-Identifier = "nas.domain.com"
NAS-Port = 51
NAS-Port-Type = Virtual
User-Name = "testy@prepaid.domain.com"
Calling-Station-Id = "192.168.1.10"
Called-Station-Id = "192.168.1.254"
MS-CHAP-Domain = "prepaid.domain.com"
Acct-Session-Id = "8100001c"
Framed-IP-Address = 198.18.1.212
Acct-Authentic = RADIUS
Acct-Session-Time = 5
Acct-Input-Octets = 5265
Acct-Input-Packets = 27
Acct-Output-Octets = 110
Acct-Output-Packets = 9
Acct-Status-Type = Stop
Acct-Terminate-Cause = User-Request
NAS-IP-Address = 192.168.1.254
Acct-Delay-Time = 0
Mikrotik-Attr-9 = 0x707265706169642e63656e657267796e6574776f726b732e636f6d
Processing the preacct section of radiusd.conf
rad_recv: Accounting-Request packet from host 192.168.1.254:1028, id=98, length=275
Service-Type = Framed-User
Framed-Protocol = PPP
NAS-Identifier = "nas.domain.com"
NAS-Port = 51
NAS-Port-Type = Virtual
User-Name = "testy@prepaid.domain.com"
Calling-Station-Id = "192.168.1.10"
Called-Station-Id = "192.168.1.254"
MS-CHAP-Domain = "prepaid.domain.com"
Acct-Session-Id = "8100001c"
Framed-IP-Address = 198.18.1.212
Acct-Authentic = RADIUS
Acct-Session-Time = 5
Acct-Input-Octets = 5265
Acct-Input-Packets = 27
Acct-Output-Octets = 110
Acct-Output-Packets = 9
Acct-Status-Type = Stop
Acct-Terminate-Cause = User-Request
NAS-IP-Address = 192.168.1.254
Acct-Delay-Time = 16777216
Mikrotik-Attr-9 = 0x707265706169642e63656e657267796e6574776f726b732e636f6d
Processing the preacct section of radiusd.conf
The only difference between the packets, is the Acct-Delay-Time. I am currently looking to see what the relavence of this Attribute is, but why does MT send it twice? Because I receive the Accounting Stop request twice, this means that I will subtract the used bandwidth in the terminated session twice - and thus, it is not the desired result.
At the moment, I am using Acct-Delay-Time = 0 as a parser to only process the first Accounting-Stop request, but I am not sure whether or not this will 1) be accurate, and 2) whether Acct-Delay-Time will always be 0 for the first of the two requests…
Can anyone perhaps give some info again? I’m pretty sure this is not a Radius issue, it is the actual MT sending the Accounting Stop request twice (two actual packets), thus there is not allot on the Radius side I can do to fix this.
Thanks everyone 