Giter Site home page Giter Site logo

Comments (6)

psanford avatar psanford commented on July 29, 2024

The identifier field for a radius packet is only 1 byte. See https://tools.ietf.org/html/rfc2865 section 3 for details:

"The Identifier field is one octet, and aids in matching requests
and replies. The RADIUS server can detect a duplicate request if
it has the same client source IP address and source UDP port and
Identifier within a short span of time."

The identifier only needs to be unique for a specific ip:port pair. If you need to handle more than 255 concurrent in flight requests from a single device you can use multiple ports.

from node-radius.

sizovilya avatar sizovilya commented on July 29, 2024

@psanford thank you for response.
I use next schema:
UI(gw) --> Node.js --> Remote Radius Server.
I think, if node.js server will receive any parallel requests from UI and will send this requests to remote radius, im not have guarantee for right response ordering to clients, right ? Client B, by default, can get UDP packet which intended for Client A, right ? Is it not realized on system\package level and i must realize it myself, right ? Or with 'identifier' parameter it works automatically ?

from node-radius.

psanford avatar psanford commented on July 29, 2024

I don't think I have enough information to answer your question. Are you using node-radius as a client, a
server or both?

from node-radius.

sizovilya avatar sizovilya commented on July 29, 2024

@psanford only as a client.

from node-radius.

psanford avatar psanford commented on July 29, 2024

One simple solution would be to use a different udp port (making a new udp socket object) for each request. On the udp socket you can call .bind(0) which will bind to a random available port. Then you don't need to track the packets by the identifier field since you know that each socket will only be used to send 1 packet.

from node-radius.

sizovilya avatar sizovilya commented on July 29, 2024

@psanford
I think it very fast, but not good solution, because all ports should be opened.
Okey, i understand. I need simple requests query mechanism.

Thank you !

from node-radius.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.