一种面向sdn的服务功能链构建方法_4

文档序号:9670864阅读:来源:国知局
s〉
</component)
〈component componentID=〃6〃>
<name>VlanPr1rity</name>
〈!一Vlan优先级一>
<synopsis>The pr1rity of a vlan.〈/synopsis〉
</component)
〈component componentID=〃7〃>
<name>IPSrcAddress</name>
〈!一源IP地址一> <synopsis>The IP source address.〈/synopsis〉
</component)
〈component componentID=〃8〃>
<name>IPDstAddress</name>
<!—目的IP地址一>
<synopsis>The IP destinat1n address.〈/synopsis〉
</component)
〈component componentID=〃9〃>
<name>IP Proto</name>
〈!一IP协议类型一>
<synopsis>The identificat1n of an IP protocol.〈/synopsis〉
</component)
〈component componentID=〃10〃>
<name>IP Tos〈/name>
<! —IP服务质量类型—>
<synopsis>The type of service bit.</synopsis)
</component)
〈component componentID=〃ll〃>
<name>TCP/UDP Src Port</name>
〈!一TCP/UDP 源端口一>
<synopsis>The source port of TCP/UDP.〈/synopsis〉
</component)
〈component componentID=〃12〃>
<name>TCP/UDP Dst Port</name>
〈!一TCP/UDP 目的端口一>
<synopsis>The destinat1n port of TCP/UDP.〈/synopsis〉
</component)
</metadataLib>
网络节点SI上报的调度算法:
<schdDisciplineLib>
<component componentID=〃l〃>
<name>FCFS</name>
〈!一先到先服务算法一>
<synopsis>First Come First Served scheduling discipline.</synopsis) </component)
<component componentID=〃2〃>
<name>RR</name>
〈!一循环调度算法一>
<synopsis>Round Robin scheduling discipline.〈/synopsis〉 </component)
<component componentID=〃3〃>
<name>WRR</name>
〈!一加权循环调度算法一>
<synopsis>ffeighted Round Robin scheduling discipline.〈/synopsis〉 </component)
<component componentID=〃4〃>
<name>SP</name>
〈!一严格优先级算法一>
<synopsis>Strict Pr1rity scheduling discipline.〈/synopsis〉
</component)
</schdDisciplineLib>
网络节点S2上报元数据:
<metadataLib>
〈component componentID=〃l〃>
<name>ingressPort</name>
<synopsis>The input port of the packets.〈/synopsis〉
</component)
〈component componentID=〃2〃>
<name>EtherSrcAddress</name>
<synopsis>The Ethernet source address.〈/synopsis〉
</component)
〈component componentID=〃3〃>
<name>EtherDstAddress</name>
<synopsis>The Ethernet destinat1n address.〈/synopsis〉
</component)
〈component componentID=〃4〃>
<name>EtherType</name>
<synopsis>The type of an Ethernet packet header.〈/synopsis〉
</component)
〈component componentID=〃5〃>
<name>VlanID</name>
<synopsis>The identificat1n of a Vlan.〈/synopsis〉
</component)
〈component componentID=〃6〃>
<name>VlanPr1rity</name>
<synopsis>The pr1rity of a vlan.〈/synopsis〉
</component)
〈component componentID=〃7〃> <name>IPSrcAddress</name>
<synopsis>The IP source address.〈/synopsis〉
</component)
〈component componentID=〃8〃>
<name>IPDstAddress</name>
<synopsis>The IP destinat1n address.〈/synopsis〉
</component)
〈component componentID=〃9〃>
<name>IP Proto</name>
<synopsis>The identificat1n of an IP protocol.〈/synopsis〉
</component)
〈component componentID=〃10〃>
<name>IP Tos〈/name>
<synopsis>The type of service bit.</synopsis)
</component)
〈component componentID=〃ll〃>
<name>TCP/UDP Src Port</name>
<synopsis>The source port of TCP/UDP.〈/synopsis〉
</component)
〈component componentID=〃12〃>
<name>TCP/UDP Dst Port</name>
<synopsis>The destinat1n port of TCP/UDP.〈/synopsis〉
</component)
〈component componentID=〃13〃>
<name>serverLatency </name>
<synopsis>The latency of each server.〈/synopsis〉
</component)
</metadataLib>
第四步,控制器根据网络节点的资源状况和服务功能链信息设计服务功能实例链,月艮务功能实例链是由服务功能块首位相接组成。如图3所示,本实施例中的服务功能实例链包括网络节点SI上的认证服务功能块、流量管理服务功能块和网络节点S2上的负载均衡服务功能块。
[0022]第五步,对于支持服务功能块的网络节点,控制器将服务功能实例链的描述直接下发到相关的网络节点并要求预留资源,对于支持OpenFlow的网络节点,控制器将服务功能实例链的描述转化为流表再下发。本实施例中,网络节点S1、S2都支持服务功能块,因此服务功能实例链的描述可以直接下发。
[0023]网络节点SI上的认证服务功能块的描述如下:
<SFBInstanceDefs>
〈SFBInstanceDef SFBInstanceID=,, I 〃><name>Authenticat1n</name>
<!—认证一>
〈synopsis〉 a SFB to divide the authenticated flow and non—authenticatedflow.</synopsis〉
<vers1n>l.0</vers1n>
<classID>l</classID>
<inputPorts>
<inputPort>
<name>pktsln</name>
<ID>1</ID>
〈synopsis〉
Input port of packets.Each input port has an unique ID.</synopsis)
〈expectat1n〉
<frameExpected>
<ref>IPv4</ref>
</frameExpected>
<metadataExpected>
<ref>PHYPortID</ref>
</metadataExpected>
</expectat1n)
</inputPort>
</inputPorts>
<outputPorts>
<outputPort>
<name>normalPortI</name>
<ID>2</ID>
〈synopsis〉
The normal port in which the flow will be sent to the followingnetwork devices.</synopsis)
〈product〉
<frameProduced>
<ref>IPv4</ref>
</frameProduced>
〈/product〉
<nextInstanceID>2</nextInstanceID>
<nextPortID>l</nextPortID >
〈!一连接到编号为2的服务功能块的I端口一> </outputPort>
<outputPort>
<name>normalPort2</name>
<ID>3</ID>
〈synopsis〉
The normal port in which the flow will be sent to the followingnetwork devices.</synopsis)
〈product〉
<frameProduced>
<ref>IPv4</ref>
</frameProduced>
〈/product〉
<nextInstanceID>2</nextInstanceID>
<nextPortID>2</nextPortID >
〈!一表示连接到编号为2的服务功能块的2端口一>
</outputPort>
<outputPort>
<name>auditPort</name>
<ID>4</ID>
<synopsis>An audit port in which the flow will be sent forauditing.</synopsis)
〈product〉
<frameProduced>
<ref>IPv4</ref>
</frameProduced>
〈/product〉
〈nextInstanceID>_1〈/nextInstanceID>
<nextPortID>5</nextPortID >
<!-5表示连接到编号为5的物理端口,-1表示不连接到服务功能块一> </outputPort>
</outputPorts>
<componentValues>
〈componentValue componentID=〃I〃>
<value>l</value>
〈!一表示本服务功能块已经被控制器设置成工作状态一>
</componentValue)
〈componentValue componentID=〃2〃>
<value>l</value><!-表示本服务功能块处于正常工作状态一>
</componentValue)
〈componentValue componentID=〃3〃>
<metadataDispatchEntryType>
<!—该表项表示源IP地址为10.20.4.0/24网段,目标地址不是10.20.4.0/24网段,目标IP地址为10.20.9.1和输入端口为4的数据包发往该服务功能块的 normalPort 和 auditPort—>
〈condit1n〉
<metadataEntryType>
〈metadatalD >7</metadataID >
<!-表示使用IP源地址作为元数据一
当前第4页1 2 3 4 5 6 
网友询问留言 已有0条留言
  • 还没有人留言评论。精彩留言会获得点赞!
1