Hi,
I am looking for PRBS Pattern Generating C/C++ API, So that i can insert it in Payload of UDP.
If anybody know the procedure for generating PRBS pattern it would be greatfull.
Hi,
I am looking for PRBS Pattern Generating C/C++ API, So that i can insert it in Payload of UDP.
If anybody know the procedure for generating PRBS pattern it would be greatfull.
please try to check if the src code from http://www.walterg.uklinux.net/prbs.htm can help.
Jin
PRBS patterns for networking is often done using Linear Feedback Shift Registers. Perhaps simulating one of these in software would suffice for you.
I'm unsure if there's a library which can match your purpose. I can give you some pointers on the implementation though:
The basis of your implementation will be a LFSR. You can implement one in two ways:
For more information on how taps are specified and what sequences you can obtain you can start here. Note that your implementation choices above can have the same cycle length and sequence of output bits for an appropriate choice of initial states (seeds).
That's your basic requirement right there. LFSRs have output streams that are very uniformly distributed and sufficiently long periods. I'd suggest not to use it for cryptographic purposes, as it's extremely weak - being a linear system. There are workarounds, but nothing substantial except the shrinking generator (which I find extremely cool).
Links to implementations have already been given, so good luck!