<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
span.EmailStyle18
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-GB" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal">Hi, <o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I would like some help regarding the networking-SFC in openstack. I have been trying to set it up but I am  not able to see any packets in the VMs in the service chain when I do a ping command from the source VM to the destination VM even
 though I am getting a ping response. <o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">The following is what I see for the IP addresses of the VMs when I do
<b>ovs-ofctl dump-flows br-int.</b> <o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">cookie=0x51e24153cd662cb7, duration=76955.198s, table=24, n_packets=13, n_bytes=546, priority=2,arp,in_port="qvoc5a16c34-53",arp_spa=50.50.50.29 actions=resubmit(,25)<o:p></o:p></p>
<p class="MsoNormal">cookie=0x51e24153cd662cb7, duration=76955.179s, table=24, n_packets=5, n_bytes=210, priority=2,arp,in_port="qvo0edc6dab-9c",arp_spa=50.50.50.19 actions=resubmit(,25)<o:p></o:p></p>
<p class="MsoNormal">cookie=0x51e24153cd662cb7, duration=76955.169s, table=24, n_packets=5, n_bytes=210, priority=2,arp,in_port="qvo3f5fdc8e-56",arp_spa=50.50.50.13 actions=resubmit(,25)<o:p></o:p></p>
<p class="MsoNormal">cookie=0x51e24153cd662cb7, duration=76955.154s, table=24, n_packets=10, n_bytes=420, priority=2,arp,in_port="qvo36c64023-a8",arp_spa=50.50.50.11 actions=resubmit(,25)<o:p></o:p></p>
<p class="MsoNormal">cookie=0x51e24153cd662cb7, duration=76810.903s, table=24, n_packets=5, n_bytes=210, priority=2,arp,in_port="qvo55b6db77-73",arp_spa=50.50.50.14 actions=resubmit(,25)<o:p></o:p></p>
<p class="MsoNormal">cookie=0x51e24153cd662cb7, duration=76810.894s, table=24, n_packets=23, n_bytes=966, priority=2,arp,in_port="qvoaebad029-52",arp_spa=50.50.50.3 actions=resubmit(,25)<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I am following the steps from the following tutorial <a href="https://www.openstack.org/assets/presentation-media/SFC-for-OpenStack-Austin-Aummit-publich.pdf">
https://www.openstack.org/assets/presentation-media/SFC-for-OpenStack-Austin-Aummit-publich.pdf</a>. I installed networking-sfc version 6.0.0 for Openstack Queens as per
<a href="https://docs.openstack.org/networking-sfc/latest/install/install.html">https://docs.openstack.org/networking-sfc/latest/install/install.html</a>.  <o:p></o:p></p>
<p class="MsoNormal">Kindly let me know if there is an alternate way of achieving the SFC mechanism or if I am missing something.  <o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Regards,<o:p></o:p></p>
<p class="MsoNormal">Kalyani<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US" style="mso-fareast-language:EN-GB">From:</span></b><span lang="EN-US" style="mso-fareast-language:EN-GB"> Kalyani Rajkumar
<br>
<b>Sent:</b> 15 May 2019 13:24<br>
<b>To:</b> openstack-discuss@lists.openstack.org<br>
<b>Subject:</b> [networking-sfc] Unable to get Service Function Chain Mechanism working in Neutron<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Hi, <o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I have been trying to enable the networking SFC mechanism in OpenStack. I have successfully created port pairs, port pair groups, port chain and a flow classifier. However, I am unable to get the service chain working. The architecture
 of the set up I have deployed is attached. I have used the queens version of OpenStack.
<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">The steps that I followed are as below.<o:p></o:p></p>
<p class="MsoNormal">•             Create port<o:p></o:p></p>
<p class="MsoNormal">    neutron port-create --name <p1-p6> sfc-Network<o:p></o:p></p>
<p class="MsoNormal">•             Create VMs and attach the interfaces with them accordingly<o:p></o:p></p>
<p class="MsoNormal">       VM1 – P1 & P2; VM2 – P3 & P4; VM3 – P5 & P6 <o:p></o:p></p>
<p class="MsoNormal">•             Create port pairs<o:p></o:p></p>
<p class="MsoNormal">    neutron port-pair-create pp1 -- ingress p1 -- egress p2<o:p></o:p></p>
<p class="MsoNormal">    neutron port-pair-create pp2 -- ingress p3 -- egress p4<o:p></o:p></p>
<p class="MsoNormal">    neutron port-pair-create pp3 -- ingress p5 -- egress p6<o:p></o:p></p>
<p class="MsoNormal">•             Create port pair groups <o:p></o:p></p>
<p class="MsoNormal">    neutron port-pair-group-create -- port-pair pp1 ppg1<o:p></o:p></p>
<p class="MsoNormal">    neutron port-pair-group-create -- port-pair pp2 ppg2<o:p></o:p></p>
<p class="MsoNormal">    neutron port-pair-group-create -- port-pair pp3 ppg3<o:p></o:p></p>
<p class="MsoNormal">•             Create flow classifier<o:p></o:p></p>
<p class="MsoNormal">    neutron flow-classifier-create --source-ip-prefix <ip of p1> --destination-ip-prefix <ip of p6> --logical-source-port p1 fc1<o:p></o:p></p>
<p class="MsoNormal">•             Create port chain <o:p></o:p></p>
<p class="MsoNormal">    neutron port-chain-create --port-pair-group ppg1 --port-pair-group ppg2 --port-pair-group ppg3 --flow-classifier fc1 pc1<o:p></o:p></p>
<p class="MsoNormal">I am testing this architecture by sending a ping request from VM1 to VM3. Therefore, the destination port is P6. If SFC is working correctly, I should be able to see the packets go through the VM2 to VM3 when I do a tcpdump in VM2. As I
 am new to OpenStack and SFC, I am not certain if this is logically correct. <o:p>
</o:p></p>
<p class="MsoNormal">I would like to pose two questions. <o:p></o:p></p>
<p class="MsoNormal">1)            All the VMs are on the same network,  is it logically correct to expect the ping packets to be routed from VM1 > VM2 > VM3 in the SFC scenario? Because all the ports are on the same network, I get a ping response but it is
 not via VM2 even though the port chain is created through VM2. <o:p></o:p></p>
<p class="MsoNormal">2)            If not, how do I make sure that the packets are routed through VM2 which is the second port pair in the port pair chain. Could it be something to do with the OpenVSwitch configuration?<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Any help would be highly appreciated. <o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Regards,<o:p></o:p></p>
<p class="MsoNormal">Kalyani Rajkumar<o:p></o:p></p>
<p class="MsoNormal">High Performance Networks Group, University of Bristol<o:p></o:p></p>
</div>
</body>
</html>