cncf / cnf-testbed

ARCHIVED: 🧪🛏️Cloud-native Network Function (CNF) Testbed --> See LFN Cloud Native Telecom Initiative https://wiki.lfnetworking.org/pages/viewpage.action?pageId=113213592
https://wiki.lfnetworking.org/pages/viewpage.action?pageId=113213592
Apache License 2.0
162 stars 51 forks source link

Spec: Add DANM use case to the CNF Testbed #285

Open lixuna opened 5 years ago

lixuna commented 5 years ago

Topic: Add DANM enabled examples to the CNF Testbed

Idea: to show Network Management w/ tenant networks and cluster networks

Brainstorming and use case discussion: https://docs.google.com/document/d/1VaF59CRVStx7kxH7X9Y-ltxnpzmlsqTF1PEBUEEYLkc/edit#

Reference links:

lixuna commented 5 years ago

Other use case ideas:

CsatariGergely commented 5 years ago

Some notes from our meeting on the topic on ONS EU with @taylor @lixuna @denverwilliams , @wavell and @Levovar (and later @ijw):

  1. We should showcase not only SR-IOV, but other features of DANM, like TenantNetworks and ClusterNetworks
    • Control of the assignement of physical NIC-s to pods. See @lixuna -s notes for a better description
  2. Radio Access Network (RAN) / packet core use case
    • DPDK
    • SR-IOV
    • This could be implemented by fix in the current Physical NIC GW test case which uses privileged mode due to the usage of DPKD's PMD drivers
    • Implementation alternatives
      • Insert the SR-IOV VF directly to the containers running the application when there is a need for external communication
      • A single client connected to the GW while the GW uses SR-IOV
    • Traffic simulators
  3. Equality for all interfaces
    • Service discovery of non-primary interfaces over the ServiceDiscovery API
  4. Multiple segregated networks
nickolaev commented 5 years ago

The Physical NIC GW test case uses privileged mode because DPKD's PMD drivers need ti tin order to get control over the PCI devices assigned to the container. At least that's what we found with @michaelspedersen . The fact that later it exposes memif has nothing to do with this, in fact with NSM memif interfaces are working perfectly fine without any special privileges.

CsatariGergely commented 5 years ago

@nickolaev okay, I got confused by the acronyms on the meeting. It is corrected now. Main point is that no container should have privileged mode in production.

Levovar commented 5 years ago

I think it depends on the PMD. I'm not saying I'm 100% sure, but IMO e.g. the Mellanox PMD does not require privileged. Probably the Intel also does not need full privileged, just either SYS_ADMIN and/or NET_ADMIN (which is arguably not much better, but still)

lixuna commented 4 years ago

To discuss multiple specs/use cases, we can also use a shared google doc (easier to collaborate vs github)

https://docs.google.com/document/d/1VaF59CRVStx7kxH7X9Y-ltxnpzmlsqTF1PEBUEEYLkc/edit#

Levovar commented 4 years ago

Anyone thinks something is still missing from the spec? from my side it is complete wrt. at least use-case1, and we can always come back and adapt it

I would also propose to rename the UC to "[DANM Use Case]#1: Simulated vDU deployment with Intel physical functions" to be inline with how the NSM use-cases are tracked

If everyone agrees - I will create the UC description with an exact set of tasks and references as we discussed on the meeting!

Levovar commented 4 years ago

BTW I'm thinking about creating two issues for the use-case First is about introducing the generic possibility to use DANM as a building block for any use-case The second issue would be about requirements related to deploying the test workload for this specific UC

michaelspedersen commented 4 years ago

BTW I'm thinking about creating two issues for the use-case First is about introducing the generic possibility to use DANM as a building block for any use-case The second issue would be about requirements related to deploying the test workload for this specific UC

I think it would be a good idea to split it as you mention. Having DANM as a building block will definitely be a huge benefit, and then as a follow-up having the UC(s) for a quick way of showcasing the functionality makes it easier for anyone interested in trying it out without too much effort involved.