Giter Club home page Giter Club logo

ipv6-prefix-generator's People

Contributors

originalutkin avatar

Stargazers

 avatar

Watchers

 avatar  avatar

ipv6-prefix-generator's Issues

Incorrect calculating prefix depth

Incorrect calculating prefix depth in binary trie. Eg. isn't possible to add a prefix with length 64.

Calculating new prefix Len in generating phase using tree traversal

Incorrect detection prefix leafs

input: 2001:0200:e000::/35, 2001:0418:5c03::/48
rgr: 0
depth_distribution: {35:1, 39:1, 48:1, 61: 1}
prefix_q: 2
This is a correct input. Expected flow: generating new prefixes. Issues:

  • raise ValueError(f"There is no leaf prefixes in trie for generate new prefixes on {depth} depth")

  • raise ValueError(f"There is no leaf prefixes in trie for generate new prefixes on {depth} depth")

Check depth distribution

Number of prefixes in input parameter depth distributions should be equal (or probably less) than parameter prefix which define final count of prefixes after generate
Depends on #4

Get new prefixes

Get and return new generated full prefixes after tree traversing

Prefix input parameter

Check prefix input parameter. Should be more(>) or equal(=) current count of prefixes in trie

  • If > -> gonna generate
  • else = -> Nothing to do

Random generating

generování specifikovaného počtu zcela náhodně generovaných prefixů (viz parametr RGR): generování začíná od nejnižších úrovní, na kterých mají být do trie přidány nové prefixy, což potenciálně usnadní kontroly při rozgenerovávání existujících prefixů (listů vstupní trie)

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.