Got it

Problem with Acct-Session-Id malformed field

Created: Jul 24, 2019 01:29:01Latest reply: Aug 1, 2019 09:18:24 2003 14 3 0 1
  Rewarded HiCoins: 0 (problem resolved)

Dear all,


Someone had a problem with malformed information on Acct-Session-Id field using the V800R010C10SPC500 version on NE20 Routers?


According Huawei documentation, this field has to be formed for HexDecimal characters, but when we upgrade equipment to V800R010C10SPC500 version, this field recieves other Alphabetical characters.


[sessionid] => 12AAAABQ


When using V800R009C10SPC200 version we recieve the correct format on this field.


[sessionid] => 8D002509


Regards,

Featured Answers

Recommended answer

chenhui
Admin Created Jul 24, 2019 02:15:13

Hi,
it's normal, the format is modified in the version V800R010C10SPC500.
In the previous version the last six bytes of the RADIUS attribute Acct-Session-ID (44) indicate the index of a BRAS user, expressed in hexadecimal notation.
In the version V800R010C10SPC500 the last six bytes of the RADIUS attribute Acct-Session-ID (44) indicate the index of a BRAS user, expressed in the Base-64 format.
View more
  • x
  • convention:

All Answers
@LuizPuppin Hi,
which Acct-Session-Id version is configured?
View more
  • x
  • convention:

LuizPuppin
LuizPuppin HCIE Author Created Jul 24, 2019 01:50:14

Posted by chenhui at 2019-07-23 14:47 @LuizPuppin Hi,which Acct-Session-Id version is configured?
Version 2
View more
  • x
  • convention:

Hi,
it's normal, the format is modified in the version V800R010C10SPC500.
In the previous version the last six bytes of the RADIUS attribute Acct-Session-ID (44) indicate the index of a BRAS user, expressed in hexadecimal notation.
In the version V800R010C10SPC500 the last six bytes of the RADIUS attribute Acct-Session-ID (44) indicate the index of a BRAS user, expressed in the Base-64 format.
View more
  • x
  • convention:

LuizPuppin
LuizPuppin HCIE Author Created Jul 24, 2019 02:21:50

Posted by chenhui at 2019-07-23 15:15 Hi,it's normal, the format is modified in the version V800R010C10SPC500.In the previous version th ...
But this information was not changed on HeDex. ;)
We have a clients who use a software to collect this informations and th parameter is configured to recieve Hex Decimal information.
You have a link where I can see this change to send to clients?
View more
  • x
  • convention:

Please download the NE20E-S V800R010C10SPC500 Release Notes.

The information is provided in the V800R008C00-V800R010C10SPC500 Feature Delta Information
Acct-Session-ID

View more

This article contains more resources

You need to log in to download or view. No account? Register

x
  • x
  • convention:

Posted by Popeye_Wang at 2019-07-24 07:52 Please download the NE20E-S V800R010C10SPC500 Release Notes.https://support.huawei.com/enterprise/en ...
Hello,

I have this problem too with the version V800R010C10SPC500.

I'm using acct-session-id-version version3, and we can't get the user-index based on the reported RADIUS Acct-Session-Id, neither with hexadecimal, the decimal nor the base64.

For example:

display access-user username ******** verbose
  -------------------------------------------------------------------
Basic:
  User access index             : 262
  State                         : Used
  User name                     : ********
  Domain name                   : ********
  User backup state             : No
  RUI user state                : -
  User access interface         : GigabitEthernet0/3/1.1003


User access index = 262
Acct-Session-Id = 32AAAAEO



Trying to get user-index via encode/decode base64:

beraca:~ rafael$ perl -MMIME::Base64 -e 'print encode_base64(262);'
MjYy
beraca:~ rafael$ perl -MMIME::Base64 -e 'print encode_base64(000262);'
MTc4

beraca:~ rafael$ perl -MMIME::Base64 -e 'print decode_base64(AAAAEO);'

beraca:~ rafael$ perl -MMIME::Base64 -e 'print decode_base64(EO);'

beraca:~ rafael$ perl -MMIME::Base64 -e 'print decode_base64(MjYy);'
262


As you can see, the AAAAEO doesn't match the user-index in base64 format.

Do you know how can I convert the value to match user-index?
View more
  • x
  • convention:

Posted by rganacim at 2019-07-24 16:35 Hello,I have this problem too with the version V800R010C10SPC500.I'm using acct-session-id-version ...
Hi,
the user access index and Acct-Session-ID are two different parameters.
user access index is used to mark the access user locally, while the Acct-Session-ID is a unique Accounting ID to make it easy to match start and stop records in a log file.
View more
  • x
  • convention:

Posted by chenhui at 2019-07-26 04:08 Hi, the user access index and Acct-Session-ID are two different parameters.user access index is us ...
Hello @chenhui,

In according with Hdx, the acct-session-id is generated based on information that belongs to the current connection. Its not just a random number.

I'm using version 3:

version3

The accounting session ID of this version has eight bytes. The accounting session ID of this version on Ethernet interfaces has the following format: CPUTICK (2 digits) + User index (6 digits). The CPUTICK value and user index are in hexadecimal notation.



In versions before V800R010C10SPC500 we can get the User Index and another information from acct-session-id.


For example, in the V800R009C10SPC200 version:


<RT-Huawei-PPPoE-DC>display version
Huawei Versatile Routing Platform Software
VRP (R) software, Version 8.150 (NE20E V800R009C10SPC200)


<RT-Huawei-PPPoE-DC>display access-user username ****** verbose
-------------------------------------------------------------------
Basic:
User access index : 2958
State : Used
User name : ******



Acct-Session-ID from radius: huawei1cs000b8e


Converting the last 6 digits to Hexadecimal like Hdx says:

beraca:~ rafael$ perl -e "print unpack('s',pack 's', hex('000b8e'))"
2958


Exactly the same user-index from access-user command.


Do you know how to get the user-index from newer versions?



View more
  • x
  • convention:

Posted by rganacim at 2019-07-26 13:18 Hello @chenhui,In according with Hdx, the acct-session-id is generated based on information that b ...
@rganacim Hi,
I checked with the R&D guys, the first two digits of the acct-session-id is in hexadecimal notation, the last 6 digits is in 64-base.
let's take an example, acct-session-id = 32AAAAEO, the AAAAEO is in 64-base, and it indicates the user access id. AAAAEO equals 270(decimal), AAAAEG equals 262(decimal)
View more
  • x
  • convention:

12
Back to list

Comment

You need to log in to comment to the post Login | Register
Comment

Notice: To protect the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but are not limited to the following:
  • Politically sensitive content
  • Content concerning pornography, gambling, and drug abuse
  • Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including trade marks, copyrights, and patents, and personal privacy
Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see " User Agreement."

My Followers

Login and enjoy all the member benefits

Login

Block
Are you sure to block this user?
Users on your blacklist cannot comment on your post,cannot mention you, cannot send you private messages.
Reminder
Please bind your phone number to obtain invitation bonus.