Skip to content
Snippets Groups Projects
05-implementation.md 2.58 KiB
Newer Older
  • Learn to ignore specific revisions
  • Manuel Kieweg's avatar
    Manuel Kieweg committed
    # Implementation Aspects of the goSDN Controller
    
    
    ## Why we do this in go
    
    Martin Stiemerling's avatar
    Martin Stiemerling committed
    Because it rocks, but let's see afterwards what can be written here.
    
    ## Storing Information
    
    
    Section XXX (Conceptual Design of a SDN Controller as Network Supervisor)
    
    Martin Stiemerling's avatar
    Martin Stiemerling committed
    discusses the need to store information about for element inventories and
    topology inventories.
    
    Manuel Kieweg's avatar
    Manuel Kieweg committed
    
    
    ### Element Inventories
    
    Storing information about network elements and their properties is a relative
    static process, at least when one considers potential changes over time.
    Typically such network elements are added to a network and they will remain in
    the network for a longer time, i.e., multiple minutes or even longer.
    
    ### Topology Inventories
    
    Every network has one given physical topology and on top of this at least one
    logical topology. There may be multiple logical topologies on top logical
    topologies, i.e., a recursion.
    
    A topology consists out of interfaces, which are attached to their respective
    network elements, and links between these interfaces.
    
    Mathematically, such a topology can be described as a directed graph, whereas
    the interfaces of the network elements are the nodes and the links are
    the edges.
    
    G <sub>physical</sub> ist a superset of G <sub>logical1</sub>. 
    
    
    ### Potential other Inventories
    
    There may be the potential need to store information beyond pure topologies,
    actually about network flows, i.e., information about a group of packets
    belonging together.
    
    
    
    ## YANG to code
    
    The base of the development of goSDN are YANG modules. The RESTful API used for RESTCONF is defined in an OpenAPI 2.0 file. This API documentation is generated from the YANG module. The YANG module description is also used to generate code stubs for the goSDN RESTCONF client.
    
    
    Manuel Kieweg's avatar
    Manuel Kieweg committed
    \includegraphics{gfx/yang-schematics.pdf}
    
    
    ### YANG
    
    
    YANG defines an abstract network interface. It is the foundation of the RESTCONF protocol. Several code generators exist to generate code stubs from a given definition.
    
    
    ### OpenAPI
    
    OpenAPI - formerly known as Swagger - is a framework that defines RESTful APIs. We use OenAPI documentations to define the RESTCONF server implementation of the cocsn YANG modules.
    
    ### Toolchain
    
    We use 3 different tools for the code generation workflow. For the RESTCONF server `yanger` is used to generate the OpenAPI documentation from the YANG file. `go-swagger` is used to generate a RESTCONF server with stubs for the REST calls.
    
    The RESTCONF  client stubs used by goSDN are generated from YANG files using YGOT.
    
    ### Dependencies
    
    
    Martin Stiemerling's avatar
    Martin Stiemerling committed
    For now we can only use the OpenAPI 2.0 standard. This is because `go-swagger` does not support OpenAPI 3.0 specifications yet.