SFC+ X意图

SFC + X ,这个X就是SFC在的一个系统,比如选课系统,教学系统什么的

弹性SFC定义

下面弹性定义与SF的功能实现粒度及编排的视角有关系

假设以SF为粒度,一个SFC的弹性是指从SFC中按照QOS要求增加(删除)一个或者多个SF或者SF的所需资源,持续满足用户的SLA。

满足SF、X的弹性的操作可以是

  1. 资源角度:SF、X的物理资源(CPU、存储、带宽)伸缩(水平或者垂直);和/或

  2. 功能角度:SF、X的功能升级或者降级。但是不破坏原SFC的逻辑顺序。

SFC顺序图

image-20241120201641170

SFC表

序号 Name of Some well-known middle-boxes layer
1 NAT 网络层
2 Gateways 网络层
3 IP tunnel endpoints 传输层
4 Packetclassififiers/markers/schedulers 应用层,传输层
5 Transport relays 物理层
6 TCP performance enhancingproxies 传输层,应用层,网络层
7 Load balancers 网络层,链路层,应用层
8 Firewalls 应用层,传输层,网络层
9 Virus scanners 应用层,传输层,网络层
10 Deep packet inspectors 应用层,传输层,网络层
11 Gatekeepers 应用层,传输层,网络层
12 Session control boxes 应用层,传输层,网络层
13 Transcoders 应用层
14 Proxies 应用层
15 Encryption/Decryption devices 应用层
16 Caches 应用层
17 DNS (Domain name system) 应用层
18 Content distribution boxes 应用层
19 Interceptors 应用层
20 Involuntary packet redirectors 应用层
21 Network monitors 网络层
22 Anonymizers 应用层,网络层,传输层
23 WoC (web optimization controller) 应用层
24 ADC(Application Delivery Controller) 应用层
25 Web proxy
26 Video Optimizer

输出规范

VNF Descriptor描述SF
VNFFG Descriptor描述SFC

https://docs.openstack.org/tacker/wallaby/user/index.html#user-guide

这里面的链接最新版本可能打不开删掉了,可以找一下旧版本的链接

https://docs.openstack.org/tacker/wallaby/user/dynamic_vnffg_usage_guide.html
https://docs.openstack.org/tacker/wallaby/user/vnfd-sol001.html

参照TOSCA规范,可用于了解如何写VNF Descriptor和VNFFG Descriptor,也可以用出模板。TOSCA还有其他规范,需要找出SFC相关的规范,

https://docs.oasis-open.org/tosca/TOSCA-Simple-Profile-YAML/v1.3/
https://support.huaweicloud.com/aos_faq/aos_faq_00004.html
https://qinghua.github.io/tosca/
https://www.ctyun.cn/developer/article/490328536682565


https://github.com/dangtrinhnt/DynamicSFCDemo/blob/master/tosca_templates/suricata_vnfd.yaml
https://github.com/K-OpenNet/OPNFV-OpenStack-VNFFG-Healing/blob/master/samples/tosca-templates/vnffg-nsd/tosca-multiple-vnffg-nsd.yaml
https://github.com/tw0927041027/OpenStack-Tacker-Exercise/tree/master/free5gc-ns-exercise
https://github.com/hotephen/vnffg-scaling/tree/master/samples/tosca-templates
https://github.com/K-OpenNet/OPNFV-Tacker-ResourceAware-IFG/tree/master/openstack-tacker/samples/tosca-templates/vnffgd

硬件参数参考

类型/参数 内存 CPU 磁盘 带宽
类型一 8 1 1000 10
类型二 16 2 1000 20
类型三 32 4 1000 100
类型四 64 8 1000 200

输出模板

检测模板的工具

https://github.com/openstack/tosca-parser/tree/master

使用命令

tosca-parser --template-file=samples/tests/data/tosca_helloworld.yaml

模板文件

tosca_definitions_version: tosca_simple_yaml_1_3
description: Template for deploying a SFC with predefined properties.
node_types:
abstract.Firewall:
derived_from: tosca.nodes.Root
properties:
vendor:
type: string
rules:
type: list
entry_schema:
type: string
topology_template:
node_templates:
database_server:
type: tosca.nodes.Database
requirements:
- host:
node_filter:
capabilities:
- host:
properties:
- num_cpus: { in_range: [ 2, 8 ] }
- mem_size: { greater_or_equal: 32 GB }
- os:
properties:
- architecture: { equal: x86_64 }
- type: linux
- distribution: centos
application_server:
type: tosca.nodes.WebServer
requirements:
- host:
node_filter:
capabilities:
- host:
properties:
- num_cpus: { in_range: [ 4, 16 ] }
- mem_size: { greater_or_equal: 64 GB }
- os:
properties:
- architecture: { equal: x86_64 }
- type: linux
- distribution: ubuntu
firewall:
type: abstract.Firewall
directives:
- substitute
properties:
vendor: "cisco"
rules:
- "allow tcp 80,443 from any to any"
- "allow tcp 22 from 192.168.1.0/24 to any"
- "allow tcp 3306 from 10.0.0.0/8 to db_subnet"
- "deny all"