Commit 58d1ae72 authored by Lluis Gifre Renom's avatar Lluis Gifre Renom
Browse files

NFV-SDN'22 scenario:

- updated per-domain descriptors
- deactivated deploy script to deploy a single domain for testing purposes
- added script to reset components' status
- (partially) documented scenario and workflows
- added script to show deploy
parent 4bc896fa
Loading
Loading
Loading
Loading
+47 −0
Changes for src/tests/scenario2/Scenario.md: 47 added lines, 0 removed lines.
Original line number Diff line number Diff line
# Scenario:

- 4 TFS instances

    - domain D1 (source for e-2-e service)
        5 routers + 1 DC
        R1@D1/2 <--> R2@D1/1
        R2@D1/3 <--> R3@D1/2
        R2@D1/5 <--> R5@D1/2
        R3@D1/4 <--> R4@D1/3
        R4@D1/5 <--> R5@D1/4
        R5@D1/1 <--> R1@D1/5
        R1@D1/100 <--> DCGW@D1/eth1

    - domain D2 (transit for e-2-e service)
        6 routers
        R1@D2/2 <--> R2@D2/1
        R1@D2/6 <--> R6@D2/1
        R1@D2/5 <--> R5@D2/1
        R2@D2/3 <--> R3@D2/2
        R2@D2/4 <--> R4@D2/2
        R2@D2/5 <--> R5@D2/2
        R2@D2/6 <--> R6@D2/2
        R3@D2/6 <--> R6@D2/3
        R4@D2/5 <--> R5@D2/4

    - domain D3 (transit for e-2-e service)
        4 routers
        R1@D3/2 <--> R2@D3/1
        R2@D3/3 <--> R3@D3/2
        R3@D3/4 <--> R4@D3/3
        R4@D3/1 <--> R1@D3/4
        R2@D3/4 <--> R4@D3/2

    - domain D4 (end for e-2-e service)
        3 routers
        R1@D4/2 <--> R2@D4/1
        R1@D4/3 <--> R3@D4/1
        R2@D4/3 <--> R3@D4/2
        R3@D4/100 <--> DCGW@D4/eth1

    - interdomain links
        R4@D1/10 <--> R1@D2/10
        R5@D1/10 <--> R1@D3/10
        R4@D2/10 <--> R2@D4/10
        R5@D2/10 <--> R2@D3/10
        R3@D3/10 <--> R1@D4/10
+78 −0
Changes for src/tests/scenario2/Workflows.md: 78 added lines, 0 removed lines.
Original line number Diff line number Diff line
#########################
# NFV-SDN pending tasks
#########################

Preparation
-----------

IDC: on start
    - subscribe to Context events

DLT: on start
    - subscribe to DLT events
    - start gRPC server


Workflow #1 - Send/Receive changes through DLT
----------------------------------------------
IDC: subscribe to changes in Context
IDC: on event from context
        - if not change in local domain: return
        - compute abstraction
            - get local abstracted topology from context
            - update local abstracted topology
            - set local abstracted topology in context
        - convert changes to records
        - issue change records to DLT
        - on OK from DLT, end

DLT: on request to store record
        - store record on blockchain
        - retrieve status
        - check result

DLT: on event received
        - find record id in event
        - retrieve record using record id
        - update Context with data in record
        - check result


Workflow #2 - Activate inter-domain slices with SLAs
----------------------------------------------------

PathComp:
- request inter-domain context
- perform inter-domain pathcomp

Slice: CreateSlice
- detect type of request
- if not multi-domain, use local single-domain logic
- issue request to IDC

Slice: OrderSliceWithSLAs
- create service S
- associate policy

Policy: CreatePolicy
...

IDC:
- request to PathComp the inter-domain path
- parse returned inter-domain path
- for each domain involved
    - if local domain
        - request to Slice: OrderSliceWithSLAs
    - if remote domain
        - add record in DLT: (context=remote-domain)

DLT: on OrderSiceWithSLAs
    - issue request to IDC
    - would be local slice
    - request to Slice create slice, service, policy as usual
    - record slice updated in DLT


Workflow #3 - Resolve SLA violation on inter-domain slice
---------------------------------------------------------
+13 −13
Changes for src/tests/scenario2/deploy_all.sh: 13 added lines, 13 removed lines.
Original line number Diff line number Diff line
#!/bin/bash

# Delete old namespaces
kubectl delete namespace tfs-dom1 tfs-dom2 tfs-dom3 tfs-dom4
kubectl delete namespace tfs-dom1 #tfs-dom2 tfs-dom3 tfs-dom4

# Delete secondary ingress controllers
kubectl delete -f nfvsdn22/nginx-ingress-controller-dom1.yaml
kubectl delete -f nfvsdn22/nginx-ingress-controller-dom2.yaml
kubectl delete -f nfvsdn22/nginx-ingress-controller-dom3.yaml
kubectl delete -f nfvsdn22/nginx-ingress-controller-dom4.yaml
#kubectl delete -f nfvsdn22/nginx-ingress-controller-dom2.yaml
#kubectl delete -f nfvsdn22/nginx-ingress-controller-dom3.yaml
#kubectl delete -f nfvsdn22/nginx-ingress-controller-dom4.yaml

# Delete MockBlockchain
kubectl delete namespace tfs-bchain

# Create secondary ingress controllers
kubectl apply -f nfvsdn22/nginx-ingress-controller-dom1.yaml
kubectl apply -f nfvsdn22/nginx-ingress-controller-dom2.yaml
kubectl apply -f nfvsdn22/nginx-ingress-controller-dom3.yaml
kubectl apply -f nfvsdn22/nginx-ingress-controller-dom4.yaml
#kubectl apply -f nfvsdn22/nginx-ingress-controller-dom2.yaml
#kubectl apply -f nfvsdn22/nginx-ingress-controller-dom3.yaml
#kubectl apply -f nfvsdn22/nginx-ingress-controller-dom4.yaml

# Create MockBlockchain
./deploy_mock_blockchain.sh
@@ -26,13 +26,13 @@ source nfvsdn22/deploy_specs_dom1.sh
./deploy.sh

# Deploy TFS for Domain 2
source nfvsdn22/deploy_specs_dom2.sh
./deploy.sh
#source nfvsdn22/deploy_specs_dom2.sh
#./deploy.sh

# Deploy TFS for Domain 3
source nfvsdn22/deploy_specs_dom3.sh
./deploy.sh
#source nfvsdn22/deploy_specs_dom3.sh
#./deploy.sh

# Deploy TFS for Domain 4
source nfvsdn22/deploy_specs_dom4.sh
./deploy.sh
#source nfvsdn22/deploy_specs_dom4.sh
#./deploy.sh
+21 −4
Changes for src/tests/scenario2/descriptors/domain1.json: 21 added lines, 4 removed lines.
Original line number Diff line number Diff line
{
    "contexts": [
        {
            "context_id": {"context_uuid": {"uuid": "admin"}},
            "topology_ids": [], "service_ids": []
            "context_id": {"context_uuid": {"uuid": "D1"}},
            "topology_ids": [
                {"context_id": {"context_uuid": {"uuid": "D1"}}, "topology_uuid": {"uuid": "admin"}}
            ], "service_ids": []
        }
    ],
    "topologies": [
        {
            "topology_id": {"context_id": {"context_uuid": {"uuid": "admin"}}, "topology_uuid": {"uuid": "admin"}},
            "device_ids": [], "link_ids": []
            "topology_id": {"context_id": {"context_uuid": {"uuid": "D1"}}, "topology_uuid": {"uuid": "admin"}},
            "device_ids": [
                {"device_uuid": {"uuid": "DC1-GW@D1"}},
                {"device_uuid": {"uuid": "R1@D1"}},
                {"device_uuid": {"uuid": "R2@D1"}},
                {"device_uuid": {"uuid": "R3@D1"}},
                {"device_uuid": {"uuid": "R4@D1"}},
                {"device_uuid": {"uuid": "R5@D1"}}
            ], "link_ids": [
                {"link_uuid": {"uuid": "DC1-GW@D1/eth1==R1@D1/100"}},
                {"link_uuid": {"uuid": "R1@D1/2==R2@D1/1"}},
                {"link_uuid": {"uuid": "R2@D1/3==R3@D1/2"}},
                {"link_uuid": {"uuid": "R2@D1/5==R5@D1/2"}},
                {"link_uuid": {"uuid": "R3@D1/4==R4@D1/3"}},
                {"link_uuid": {"uuid": "R4@D1/5==R5@D1/4"}},
                {"link_uuid": {"uuid": "R5@D1/1==R1@D1/5"}}
            ]
        }
    ],
    "devices": [
+2 −2
Changes for src/tests/scenario2/descriptors/domain2.json: 2 added lines, 2 removed lines.
Original line number Diff line number Diff line
{
    "contexts": [
        {
            "context_id": {"context_uuid": {"uuid": "admin"}},
            "context_id": {"context_uuid": {"uuid": "D2"}},
            "topology_ids": [], "service_ids": []
        }
    ],
    "topologies": [
        {
            "topology_id": {"context_id": {"context_uuid": {"uuid": "admin"}}, "topology_uuid": {"uuid": "admin"}},
            "topology_id": {"context_id": {"context_uuid": {"uuid": "D2"}}, "topology_uuid": {"uuid": "admin"}},
            "device_ids": [], "link_ids": []
        }
    ],
Loading