Changes between Version 2 and Version 3 of SameSubnet


Ignore:
Timestamp:
Aug 20, 2018, 11:04:34 PM (15 months ago)
Author:
vicky
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • SameSubnet

    v2 v3  
    11= Same Subnet =
    22
    3 == Introduction ==
    4 
    5 Current code (CfgSubnets[46] add()) just checks same ID and same textual prefix. This is far to be enough both because there are good reasons to have the same prefix and because the textual and loosely checked prefix is used defending only against bad cut & pastes.
    6 
    7 References: Trac #5423 [https://kea.isc.org/ticket/5423] and #5424 [https://kea.isc.org/ticket/5424].
    8 
    9 == Problem statement ==
    10 
    11 The ultimate goal, checking ambiguous / depending over subnet order subnet selection, is clearly unreachable because of subnet guards.
    12 
    13 So we can split into two different modes:
    14  - a default strict mode where obvious ambiguities raise an error.
    15 
    16  - a relaxed mode requiring IDs where only duplicated IDs raise an error.
    17 
    18 Note subnet selection can be overwritten by a hook (cf the RADIUS hook which optionally does this) so we can consider that in not-default relaxed mode the administrator knows what (s)he does.
    19 
    20 == Common changes ==
    21 
    22 Bad formed prefixes, e.g., 192.162.0.1/14, will be rejected (i.e. raise an error at parsing). To canonize stored prefixes is an open question (IMHO unneeded when bad formed prefixes are rejected, note it matters more for IPv6...)
    23 
    24 Current textual prefix is broken and will be removed.
    25 
    26 == Relaxed mode ==
    27 
    28 Easy: add a new global flag false by default.
    29 
    30 IDs will be required (i.e. no auto-generation) and will be checked for duplicate. No other checks about duplication will be done.
    31 
    32 == Strict mode ==
    33 
    34 Keep the duplicate ID check and add some new checks against selection ambiguities:
    35  - overlapping prefixes (cf current poolOverlaps) between two unguarded subnets
    36 
    37  - shared relay info between two unguarded subnets
    38 
    39  - guarded subnet matching a previous not-guarded subnet (with matching being overlapping prefixes or shared relay info)
    40 
    41 Open questions:
    42  - should we do something about interfaces? (clearly it can broken most shared-network configs)
    43 
    44  - DHCPv4-over-DHCPv6?
    45 
    46 == Backward compatibility ==
    47 
    48 Strict mode will be the default so a few ambiguous or badly formed configurations will be rejected.
    49 Well formed not ambiguous configurations will work as in previous releases.
     3Migrated to gitlab. Please make any updates here: https://gitlab.isc.org/isc-projects/kea/wikis/designs/same-subnet